max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
318
#pragma once #ifndef OPENGM_OPERATION_NORMALIZE_HXX #define OPENGM_OPERATION_NORMALIZE_HXX #include <typeinfo> #include "opengm/opengm.hxx" #include "opengm/operations/multiplier.hxx" namespace opengm { /// Normalization w.r.t. a binary operation (e.g. Multiplier) and a unary accumulation (e.g. Integrator) struct N...
340
389
/* * Copyright 2014 <NAME>, Inc. */ package gw.internal.gosu.parser.coercion; import gw.lang.parser.exceptions.ParseResultsException; import gw.lang.parser.resources.Res; import gw.test.TestClass; import gw.util.GosuTestUtil; /** */ public class CrossCastTest extends TestClass { public void testCrossCastClassTo...
535
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...
7,759
11,699
<reponame>kxxt/taichi<filename>taichi/backends/metal/env_config.cpp #include "taichi/backends/metal/env_config.h" #include "taichi/lang_util.h" #include "taichi/util/environ_config.h" TLANG_NAMESPACE_BEGIN namespace metal { EnvConfig::EnvConfig() { simdgroup_enabled_ = get_environ_config("TI_USE_METAL_SIMDGR...
195
308
<filename>tests/contrib/flask/web.py<gh_stars>100-1000 # -*- coding: utf-8 -*- import os from flask import Flask from flask import render_template class TestError(Exception): pass class HandleMe(Exception): pass def create_app(): """Initializes a new Flask application. This method is required to ...
860
335
{ "word": "Essentialism", "definitions": [ "A belief that things have a set of characteristics which make them what they are, and that the task of science and philosophy is their discovery and expression; the doctrine that essence is prior to existence.", "The view that all children should be ta...
169
541
<filename>dspace-server-webapp/src/main/java/org/dspace/app/rest/converter/CollectionConverter.java /** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ pac...
399
2,854
/* * Copyright 2019 Qameta Software 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 ...
982
362
<reponame>yuhao-su/RECIPE-TEST /** * author: UncP * date: 2018-10-05 * license: BSD-3 **/ #ifndef _mass_tree_h_ #define _mass_tree_h_ #include "mass_node.h" typedef struct mass_tree { mass_node *root; }mass_tree; mass_tree* new_mass_tree(); void free_mass_tree(mass_tree *mt); int mass_tree_p...
246
348
{"nom":"<NAME>","circ":"5ème circonscription","dpt":"Maine-et-Loire","inscrits":1355,"abs":763,"votants":592,"blancs":45,"nuls":5,"exp":542,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":360},{"nuance":"DVD","nom":"M. <NAME>","voix":182}]}
99
892
{ "schema_version": "1.2.0", "id": "GHSA-322m-p39j-r5m2", "modified": "2020-08-31T18:24:48Z", "published": "2020-09-01T18:55:37Z", "aliases": [ "CVE-2017-16128" ], "summary": "Malicious Package in npm-script-demo", "details": "The `npm-script-demo` package is a piece of malware that opens a connecti...
693
1,066
#ifndef KISSFFT_I32_CLASS_HH #define KISSFFT_I32_CLASS_HH #include <complex> #include <utility> #include <vector> // TODO1: substitute complex<type> (behaviour not defined for nonfloats), should be faster // TODO2: use std:: namespace // TODO3: make unittests for all ffts (c, cpp, i32) template <typename DType> stru...
5,607
987
<gh_stars>100-1000 // // Created by XINGKAICHUN on 2021/9/14. // #include "MerkleTreeUtil.h" #include "Sha256Util.h" #include "../util/ByteUtil.h" #include "../util/MathUtil.h" namespace MerkleTreeUtil{ vector<unsigned char> calculateMerkleTreeRoot(vector<vector<unsigned char>> datas){ vector<vector<uns...
438
1,056
<filename>apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/queries/JavadocForBinaryImpl.java<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 * re...
2,495
480
<filename>examples/protocols/cbor/example_test.py from __future__ import unicode_literals import re import textwrap import ttfw_idf @ttfw_idf.idf_example_test(env_tag='Example_WIFI') def test_examples_cbor(env, extra_data): dut = env.get_dut('cbor', 'examples/protocols/cbor') dut.start_app() dut.expect(r...
1,427
348
{"nom":"Commenailles","circ":"1ère circonscription","dpt":"Jura","inscrits":618,"abs":292,"votants":326,"blancs":18,"nuls":8,"exp":300,"res":[{"nuance":"REM","nom":"<NAME>","voix":223},{"nuance":"LR","nom":"<NAME>","voix":77}]}
87
480
<gh_stars>100-1000 /* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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...
1,209
394
#include "jumptoframecommand.h" #include "gitlivkcmdevt.h" JumpToFrameCommand::JumpToFrameCommand(QObject *parent) : GitlAbstractCommand(parent) { } bool JumpToFrameCommand::execute( GitlCommandParameter& rcInputArg, GitlCommandParameter& rcOutputArg ) { QVariant vValue = rcInputArg.getParameter("poc"); ...
419
5,169
<filename>Specs/c/3/7/HYSDK/0.0.11/HYSDK.podspec.json { "name": "HYSDK", "version": "0.0.11", "summary": "幻意科技的ios客户端SDK", "description": "上海幻意科技的ios客户端SDK", "homepage": "https://gitee.com/morliaIT/HYSDL_iOS.git", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<EMAIL>": "<EMA...
571
4,538
<reponame>alibaba/AliOS-Things /* * Copyright (C) 2020-2021 Alibaba Group Holding Limited */ #ifndef AOS_TTY_H #define AOS_TTY_H #include <termios.h> #include <aos/device.h> typedef aos_dev_ref_t aos_tty_ref_t; #ifdef __cplusplus extern "C" { #endif /** * @brief Get a TTY device. * @param[out] ref T...
898
660
/* * Copyright (c) 2019, Intel Corporation * * 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, publis...
901
4,057
# -*- coding: utf-8 -*- from django_extensions.management.jobs import MonthlyJob from unittest import mock MONTHLY_JOB_MOCK = mock.MagicMock() class Job(MonthlyJob): help = "My sample monthly job." def execute(self): MONTHLY_JOB_MOCK()
102
675
/* * Copyright 2012-2014 eBay Software Foundation and selendroid committers. * * 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 re...
476
1,408
<reponame>kubistika/presidio import pytest from presidio_analyzer import RecognizerResult @pytest.mark.parametrize( # fmt: off "start, end", [ (0, 10), (2, 8), (0, 8), (0, 10), ], # fmt: on ) def test_given_recognizer_results_then_one_contains_another(start, end): ...
2,292
2,757
/* * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
2,702
27,066
package com.xkcoding.dynamic.datasource.datasource; import com.zaxxer.hikari.HikariDataSource; import lombok.Getter; import java.time.LocalDateTime; /** * <p> * 数据源管理类 * </p> * * @author yangkai.shen * @date Created in 2019-09-04 14:27 */ public class DatasourceManager { /** * 默认释放时间 */ priv...
600
435
{ "copyright_text": null, "description": "", "duration": 6964, "language": "eng", "recorded": "2015-04-24", "related_urls": [ { "label": "Conference schedule", "url": "https://pydata.org/dal2015/schedule/" } ], "speakers": [], "tags": [], "thumbnail_url": "https://i.ytimg.com/vi/...
243
916
# # Author: <EMAIL> # Date: 01/25/2019 # from glob import glob from collections import OrderedDict,defaultdict,Sequence import copy import math from scipy.special import softmax import numpy as np import pdb import os import sys import csv import random import torch import re import ujson as json from DeBERTa.apps.ta...
2,662
342
/* LibTomCrypt, modular cryptographic library -- <NAME> * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. * * <NAME>, <EMAIL>, http://libtomcrypt.com */ #inclu...
1,786
5,156
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ #include "util.h" int main(void) { char setname[16] = "prctl-test"; char getname[16]; unsigned long slack = sizeof(unsigned long) == 4 ? 1024 * 1024 * 1024 : (unsigned long)(102...
1,165
898
/**************************************************************************** Copyright (c) 2016-2017 Chukong Technologies Inc. http://www.cocos2d-x.org 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 Sof...
724
461
import java.util.HashMap; import java.util.Map; public class MapSum2 { private Node root; private class Node { private int val; private Map<Character, Node> next; public Node(boolean isWord, int val) { this.val = val; this.next = new HashMap<>(); ...
1,031
2,816
<gh_stars>1000+ //===----------------------------------------------------------------------===// // DuckDB // // duckdb/common/enums/optimizer_type.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/constants.hpp" na...
293
719
<reponame>skysliently/momo-code-sec-inspector-java-myversion<filename>src/test/testData/lang/java/rule/momosecurity/BroadCORSAllowOrigin/stub/CorsRegistration.java package org.springframework.web.servlet.config.annotation; public class CorsRegistration { public CorsRegistration(String arg1) {} public CorsReg...
131
437
<filename>src/test/java/com/fasterxml/jackson/dataformat/xml/fuzz/Fuzz465_32906_CDataReadTest.java package com.fasterxml.jackson.dataformat.xml.fuzz; import com.fasterxml.jackson.core.exc.StreamReadException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import ...
339
2,542
#pragma once namespace KtlThreadpool{ #define VOLATILE_MEMORY_BARRIER() asm volatile ("" : : : "memory") template<typename T> inline T VolatileLoad(T const * pt) { T val = *(T volatile const *)pt; VOLATILE_MEMORY_BARRIER(); return val; } template<typename T> inline void V...
1,186
348
<filename>docs/data/leg-t2/038/03810420.json {"nom":"Saint-Martin-de-Vaulserre","circ":"10ème circonscription","dpt":"Isère","inscrits":236,"abs":134,"votants":102,"blancs":6,"nuls":0,"exp":96,"res":[{"nuance":"REM","nom":"<NAME>","voix":68},{"nuance":"FN","nom":"<NAME>","voix":28}]}
117
412
public abstract class MyAbstractClass { abstract public int num(); public int concreteNum() { return 11; } }
35
674
"""update version string during build""" #============================================================================= # imports #============================================================================= from __future__ import with_statement # core import os import re import time from distutils.dist import Distrib...
708
2,113
<filename>Engine/source/afx/forces/afxForce.h<gh_stars>1000+ //~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~// // Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames // Copyright (C) 2015 Faust Logic, Inc. // // Permission is hereby granted, free of ch...
1,048
898
/****************************************************************************** * Spine Runtimes Software License v2.5 * * Copyright (c) 2013-2016, Esoteric Software * All rights reserved. * * You are granted a perpetual, non-exclusive, non-sublicensable, and * non-transferable license to use, install, execute, ...
974
3,084
<reponame>galeksandrp/Windows-driver-samples // // AecApoMFX.cpp -- Copyright (c) Microsoft Corporation. All rights reserved. // // Description: // // Implementation of CAecApoMFX // #include <atlbase.h> #include <atlcom.h> #include <atlcoll.h> #include <atlsync.h> #include <mmreg.h> #include <initguid...
11,649
3,212
<filename>nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/AbstractMongoQueryProcessor.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for addi...
2,573
491
<gh_stars>100-1000 // // ASMediaFocusBasicToolbarController.h // ASMediaFocusExemple // // Created by <NAME> on 05/02/2016. // Copyright © 2016 AutreSphere. All rights reserved. // #import <UIKit/UIKit.h> @interface ASMediaFocusBasicToolbarController : UIViewController @property (strong, nonatomic) IBOutlet UIBu...
117
521
<gh_stars>100-1000 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from torch import nn from mega_core.structures.bounding_box import BoxList from .roi_mask_feature_extractors import make_roi_mask_feature_extractor from .roi_mask_predictors import make_roi_mask_predictor from .inf...
1,303
1,802
// Copyright 2016 <NAME>. // // Author: <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, mo...
1,984
1,338
<filename>src/apps/launchbox/NamePanel.h /* * Copyright 2006-2011, <NAME> <<EMAIL>>. * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef NAME_PANEL_H #define NAME_PANEL_H #include "Panel.h" class BTextControl; class NamePanel : public Panel { public: NamePanel(const char* labe...
271
375
<filename>core/core/src/main/java/io/lumify/core/model/artifactThumbnails/ArtifactThumbnailRepository.java package io.lumify.core.model.artifactThumbnails; import com.altamiracorp.bigtable.model.ModelSession; import com.altamiracorp.bigtable.model.Repository; import com.altamiracorp.bigtable.model.Row; import io.lumif...
2,429
324
<filename>examples/action_dann_lightn/main.py<gh_stars>100-1000 """This example is about domain adaptation for action recognition, using PyTorch Lightning. Reference: https://github.com/thuml/CDAN/blob/master/pytorch/train_image.py """ import argparse import logging import pytorch_lightning as pl from config import ...
1,910
310
<gh_stars>100-1000 { "name": "Kuler", "description": "A web service for generating colour palettes.", "url": "https://en.wikipedia.org/wiki/Adobe_Kuler" }
58
348
{"nom":"Saint-Caprais-de-Lerm","circ":"1ère circonscription","dpt":"Lot-et-Garonne","inscrits":516,"abs":268,"votants":248,"blancs":27,"nuls":13,"exp":208,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":107},{"nuance":"UDI","nom":"<NAME>","voix":101}]}
102
1,227
import numpy as np import pytest from alibi_detect.cd import MMDDrift from alibi_detect.cd.pytorch.mmd import MMDDriftTorch from alibi_detect.cd.tensorflow.mmd import MMDDriftTF n, n_features = 100, 5 tests_mmddrift = ['tensorflow', 'pytorch', 'PyToRcH', 'mxnet'] n_tests = len(tests_mmddrift) @pytest.fixture def mm...
385
310
<filename>gear/hardware/w/workforce-545.json { "name": "WorkForce 545", "description": "An all-in-one printer, copier, scanner, and fax.", "url": "https://www.amazon.com/Epson-WorkForce-Smartphone-Compatible-C11CB88201/dp/B005IVL0ZK" }
95
778
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
1,885
384
/* * 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 writing, software * distribu...
2,788
2,577
<gh_stars>1000+ /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, ...
7,274
2,114
/* * Copyright 2017-present Facebook, 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 a...
1,646
791
#ifndef GENERATOR_MATH_HPP #define GENERATOR_MATH_HPP #define GENERATOR_USE_GLM #ifdef GENERATOR_USE_GLM #include <limits> #include <stdexcept> #include <core/math/math_includes.h> namespace gml { // Vectors using glm::bvec2; using glm::dvec2; using glm::ivec2; using glm::uvec2; using glm::vec2; using glm::bvec3;...
3,921
7,018
package com.tencent.mtt.supportui.utils.struct; /** * Created by leonardgong on 2018/2/9 0009. */ import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Iterator; /** * 弱引用事件Hub * @param <T> Event */ public final class WeakEventHub<T> { private static final String TAG = "WeakEventH...
1,502
333
// // SUPH5_OCViewController.h // SuperProject // // Created by NShunJian on 2018/4/20. // Copyright © 2018年 superMan. All rights reserved. // #import "SUPWebViewController.h" @interface SUPH5_OCViewController : SUPWebViewController @end
87
1,721
<reponame>xl20071926/JPVideoPlayer<filename>JPVideoPlayerDemo/JPVideoPlayerDemo/JPVideoPlayerCollectionViewController.h // // JPVideoPlayerCollectionViewController.h // ComponentDemo // // Created by Xuzixiang on 2018/6/4. // Copyright © 2018年 frankxzx. All rights reserved. // #import <UIKit/UIKit.h> @interface J...
125
3,434
<gh_stars>1000+ package com.alicp.jetcache; import java.util.HashMap; import java.util.Map; import java.util.Set; import java.util.function.Function; /** * Created on 2017/5/27. * * @author <a href="mailto:<EMAIL>">huangli</a> */ @FunctionalInterface public interface CacheLoader<K, V> extends Function<K ,V> { ...
424
826
<reponame>perlun/jackson-annotations<filename>src/main/java/com/fasterxml/jackson/annotation/Nulls.java package com.fasterxml.jackson.annotation; /** * Enumeration used with {@link JsonSetter} (for properties `nulls` * and `contentNulls`) * to define how explicit `null` values from input (if input format * has the...
467
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/081/08102061.json {"nom":"Castanet","circ":"2ème circonscription","dpt":"Tarn","inscrits":163,"abs":60,"votants":103,"blancs":4,"nuls":10,"exp":89,"res":[{"nuance":"REM","nom":"<NAME>","voix":71},{"nuance":"FN","nom":"Mme <NAME>","voix":18}]}
130
601
#include "toml.hpp" #include <iostream> #include <iomanip> int main(int argc, char **argv) { if(argc != 3) { std::cerr << "usage: ./check [filename] [valid|invalid]" << std::endl; return 1; } const std::string file_kind(argv[2]); try { const auto data = toml::parse(arg...
442
4,465
<filename>bridge/bindings/qjs/html_parser.h /* * Copyright (C) 2021 Alibaba Inc. All rights reserved. * Author: <NAME>. */ #ifndef KRAKENBRIDGE_HTML_PARSER_H #define KRAKENBRIDGE_HTML_PARSER_H #include "bindings/qjs/dom/element.h" #include "executing_context.h" #include "include/kraken_bridge.h" #include "third_pa...
287
403
package io.craft.atom.protocol.http.model; import static io.craft.atom.protocol.http.HttpConstants.S_COLON; import static io.craft.atom.protocol.http.HttpConstants.S_COMMA; import static io.craft.atom.protocol.http.HttpConstants.S_CR; import static io.craft.atom.protocol.http.HttpConstants.S_EQUAL_SIGN; import static ...
1,369
743
<reponame>SidGulatiMsft/AdaptiveCards package io.adaptivecards.objectmodel; import org.junit.Assert; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.*; public class SubmitActionPropertiesTest { static { System.loadLibrary("adaptivecards-native-lib"); } @Test ...
828
1,609
<gh_stars>1000+ package com.mossle.meeting.support; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.Date; import java.util.List; import java.util.Map; import com.mossle.meeting.persistence.domain.MeetingInfo; import org.slf4j.Logger; import org.slf4j.LoggerFact...
1,979
479
<filename>gerrit-server/src/main/java/com/google/gerrit/server/git/TagCache.java // Copyright (C) 2011 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 // /...
1,498
5,133
<gh_stars>1000+ /* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.bugs._2149; import org.mapstruct.BeanMapping; import org.mapstruct.Mapper; import org.mapstruct.Mapping; /** * @author <NAM...
763
521
<gh_stars>100-1000 # ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla....
4,650
396
package com.ljy.devring.http.support.throwable; import android.net.ParseException; import com.google.gson.Gson; import com.google.gson.JsonParseException; import org.json.JSONException; import java.io.IOException; import java.net.ConnectException; import java.net.SocketTimeoutException; import java.net.UnknownHostE...
1,061
348
{"nom":"Ychoux","circ":"1ère circonscription","dpt":"Landes","inscrits":1633,"abs":851,"votants":782,"blancs":13,"nuls":11,"exp":758,"res":[{"nuance":"MDM","nom":"<NAME>","voix":290},{"nuance":"FI","nom":"<NAME>","voix":114},{"nuance":"FN","nom":"M. <NAME>","voix":113},{"nuance":"LR","nom":"Mme <NAME>","voix":99},{"nua...
289
4,283
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
1,844
6,497
<reponame>JokerQueue/cachecloud package com.sohu.cache.web.service; import java.util.List; import com.sohu.cache.entity.ServerInfo; import com.sohu.cache.entity.ServerStatus; import com.sohu.cache.server.data.Server; public interface ServerDataService { /** * 查询服务器基本信息 * @param ip * @return @Serve...
784
364
<gh_stars>100-1000 package com.linkedin.dagli.transformer; import com.linkedin.dagli.annotation.equality.IgnoredByValueEquality; import com.linkedin.dagli.producer.Producer; import com.linkedin.dagli.transformer.internal.TransformerDynamicInternalAPI; import java.util.ArrayList; import java.util.Arrays; import java.ut...
830
492
package com.github.fakemongo.impl; import com.github.fakemongo.Fongo; import com.mongodb.*; import com.mongodb.operation.MapReduceStatistics; import com.mongodb.util.FongoJSON; import com.mongodb.util.ObjectSerializer; import org.mozilla.javascript.*; import org.mozilla.javascript.tools.shell.Global; import org.slf4j....
7,352
10,125
/** @file MSVC compiler intrinsics for IA32. Copyright (c) 2020, nms42. All rights reserved. SPDX-License-Identifier: BSD-3-Clause **/ /* Came from https://gist.github.com/mmozeiko/6a365d6c483fc721b63a#file-win32_crt_math-cpp */ #ifdef _M_IX86 // use this file only for 32-bit architecture #define CRT_LOWORD(x...
15,874
347
package org.ovirt.engine.ui.uicommonweb.models.vms; import java.util.List; import org.ovirt.engine.core.common.action.ActionParametersBase; import org.ovirt.engine.core.common.action.ActionType; import org.ovirt.engine.core.common.action.RemoveVmTemplateInterfaceParameters; import org.ovirt.engine.core.common.busines...
493
7,892
<gh_stars>1000+ /***************************************************/ /*! \class Generator \brief STK abstract unit generator parent class. This class provides common functionality for STK unit generator sample-source subclasses. by <NAME> and <NAME>, 1995 - 2005. */ /*********************************...
403
387
#pragma once namespace Arcane { class Singleton { public: Singleton(const Singleton &singleton) = delete; // Get rid of copy ctor Singleton(const Singleton &&singleton) = delete; // Get rid of move ctor Singleton& operator=(const Singleton &singleton) = delete; Singleton& operator=(const Singleton &&sing...
138
2,707
<filename>jetlinks-components/gateway-component/src/main/java/org/jetlinks/community/gateway/spring/MessageListener.java package org.jetlinks.community.gateway.spring; import org.jetlinks.core.event.TopicPayload; import reactor.core.publisher.Mono; public interface MessageListener { Mono<Void> onMessage(TopicPay...
106
6,497
package com.sohu.cache.dao; import com.sohu.cache.entity.InstanceFault; import java.util.List; /** * Created by yijunzhang on 14-12-29. */ public interface InstanceFaultDao { /** * 添加InstanceFault实例 * * @return */ int insert(InstanceFault instanceFault); /** ...
318
3,075
<gh_stars>1000+ /* * Copyright 2009 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 req...
1,265
839
<reponame>T-V-J/Qt-Frameless-Window-DarkStyle /* ############################################################################### # # # The MIT License # # ...
7,105
399
#pragma once #include "shared/vkFramework/Renderer.h" /** VkAccessFlags srcAccess, VkAccessFlags dstAccess, VkImageLayout oldLayout VkImageLayout newLayout // Before next stage (convert from ) ImageBarrier(ctx_, VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT, VK_ACCESS_SHADER_READ_BIT, VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL, VK_I...
2,181
575
<filename>chrome/browser/web_applications/test/test_app_registrar.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_WEB_APPLICATIONS_TEST_TEST_APP_REGISTRAR_H_ #define CHROME_BROW...
1,443
756
<gh_stars>100-1000 #define _GNU_SOURCE #include <arpa/inet.h> #include <errno.h> #include <fcntl.h> #include <linux/netlink.h> #include <sched.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ipc.h> #include <sys/mman.h> #include <sys/msg.h> #include <sys/socket.h> #includ...
4,273
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
1,138
1,144
<filename>backend/de.metas.ui.web.base/src/main/java/de/metas/ui/web/order/sales/purchasePlanning/process/PurchaseViewBasedProcess.java package de.metas.ui.web.order.sales.purchasePlanning.process; import de.metas.process.IProcessPrecondition; import de.metas.ui.web.order.sales.purchasePlanning.view.PurchaseRowChangeR...
517
609
package org.consenlabs.tokencore.testutils; import org.consenlabs.tokencore.wallet.KeystoreStorage; import java.io.File; /** * Created by xyz on 2018/4/8. */ public class LocalFileStorage implements KeystoreStorage { @Override public File getKeystoreDir() { return new File("/tmp/imtoken"); } }
106
1,408
/* * Copyright (c) 2019-2020, Broadcom * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef BOARD_FAMILY_H #define BOARD_FAMILY_H #if defined(DRIVER_SPD_ENABLE) && !defined(DRIVER_SPD_SPOOF) #include <spd.h> #endif #ifdef USE_GPIO /* max number of supported GPIOs to construct the bitmap for board detection */ #d...
286
3,227
<filename>BGL/include/CGAL/boost/graph/IO/Generic_facegraph_builder.h // Copyright (c) 2019 GeometryFactory // // This file is part of CGAL (www.cgal.org); // // $URL$ // $Id$ // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial // // Author(s) : <NAME> // <NAME> #ifndef CGAL_BGL_...
3,666
713
package org.infinispan.client.rest.impl.okhttp.auth; import java.io.IOException; import okhttp3.Authenticator; import okhttp3.HttpUrl; import okhttp3.Request; import okhttp3.Route; public interface CachingAuthenticator extends Authenticator { Request authenticateWithState(Route route, Request request) throws IOEx...
183
3,139
<gh_stars>1000+ /* * Copyright (c) 2009-2021 jMonkeyEngine * 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 * notic...
2,481
10,225
package io.quarkus.cache.runtime; import javax.annotation.Priority; import javax.interceptor.AroundInvoke; import javax.interceptor.Interceptor; import javax.interceptor.InvocationContext; import org.jboss.logging.Logger; import io.quarkus.cache.CacheInvalidateAll; @CacheInvalidateAll(cacheName = "") // The `cacheN...
626
1,273
package org.broadinstitute.hellbender.utils.read; import htsjdk.samtools.Cigar; import htsjdk.samtools.CigarElement; import htsjdk.samtools.CigarOperator; import org.broadinstitute.hellbender.utils.Utils; import org.broadinstitute.hellbender.utils.param.ParamUtils; import org.testng.Assert; import org.testng.annotatio...
1,962
701
#include <bvm/obj/obj.h> BvmObj *bvm_obj_create(size_t size, BvmObj *proto, Alloc *alloc) { size_t alloc_size = sizeof(BvmObj) + size * sizeof(BvmVal); BvmObj *self = alloc_malloc(alloc, alloc_size); self->proto = proto; self->len = proto->len; return self; } BvmVal bvm_obj_load(BvmObj *self, si...
711
419
"""Small snippet to raise an IndexError.""" def index_error(): lst = list('foobar') print lst[len(lst)] if __name__ == '__main__': index_error()
63