max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
425
<reponame>a10y/sparser /** * bitmap.h * * A simple bitmap implementation. * */ #ifndef _BITMAP_H_ #define _BITMAP_H_ // for popcnt #include <immintrin.h> #define WORDSZ 64 typedef struct { uint64_t *bits; size_t capacity; size_t words; size_t count; } bitmap_t; /** Initialize a new bitmap with `bits...
1,164
303
<reponame>mr-c/LightZone /* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.model; /** * A kind of Operation that does spotting: blotting out small regions by * cloning in their surroundings. This is similar to CloneOperation, except * the Operation's Curves are ellipses. * <p> * It adds no methods to...
154
14,668
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/performance_manager/decorators/frame_visibility_decorator.h" #include "components/performance_manager/graph/frame_node_impl.h" #incl...
1,002
416
// // MLCSGDOptimizer.h // MLCompute // // Copyright © 2019 Apple. All rights reserved. // #import <MLCompute/MLCompute.h> @class MLCDevice; @class MLCOptimizerDescriptor; NS_ASSUME_NONNULL_BEGIN /*! @class MLCSGDOptimizer @discussion The MLCSGDOptimizer specifies a stochastic gradient descent optimizer...
650
1,909
<reponame>grmkris/XChange package org.knowm.xchange.poloniex; import org.apache.commons.lang3.StringUtils; import org.knowm.xchange.exceptions.CurrencyPairNotValidException; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.exceptions.ExchangeSecurityException; import org.knowm.xchange.po...
398
815
<gh_stars>100-1000 """ Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ from pathlib import Path from typing import Dict import h5py import numpy as np def save_reconstructions(reconstruction...
551
303
from redun import task redun_namespace = "redun.examples.simple" @task() def adder(a: int, b: int): return a + b @task() def multiplier(a: int, b: int): return a * b @task() def my_zip(my_task, pairs): results = [] for a, b in pairs: results.append(my_task(a, b)) return results @task(...
287
1,486
<gh_stars>1000+ import xbmc from xbmcaddon import Addon import xbmcvfs import json from resources.lib.storage import PersistentStorage from resources.lib.compat import compat_unicode class Signals(object): PLAYBACK_INITIATED = 'playback_initiated' class NetflixCommon(object): """ Stuff shared between /...
2,343
14,668
// 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. #include "base/task/sequence_manager/work_deduplicator.h" #include "testing/gtest/include/gtest/gtest.h" namespace base { namespace sequence_manager { na...
3,081
677
<filename>plugins/ios/WeexSDK/weex_core/Source/include/JavaScriptCore/runtime/TypeSet.h /* * Copyright (C) 2008, 2014 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. Redistri...
1,362
923
// Ouzel by <NAME> #ifndef OUZEL_GRAPHICS_OGLSTATECACHE_HPP #define OUZEL_GRAPHICS_OGLSTATECACHE_HPP #include "../../core/Setup.h" #if OUZEL_COMPILE_OPENGL #include <array> #include <unordered_map> #include "OGL.h" #if OUZEL_OPENGLES # include "GLES/gl.h" # include "GLES2/gl2.h" # include "GLES2/gl2ext.h" # i...
1,165
4,868
<reponame>cjkall/parking-system package com.cf.carpark.domain; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class CfCarParkCheckpointExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public CfCarPar...
11,203
5,119
<reponame>xuchunmei000/bpftrace #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/syscall.h> #include <time.h> #include <unistd.h> void usage() { printf("Usage:\n"); printf("\t./syscall <syscall name> [<arguments>]...
1,970
3,934
<gh_stars>1000+ # This sample tests the logic that validates that a concrete class that # explicitly derives from a protocol class implements the variables # and functions defined in the protocol. from typing import ClassVar, Protocol class Protocol1(Protocol): cm1: ClassVar[int] cm2: ClassVar[int] = 0 ...
472
2,542
<filename>src/prod/src/data/utilities/ReaderWriterAsyncLock.h<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ---------------...
1,753
5,169
<filename>Specs/Formalist/0.1.0/Formalist.podspec.json { "name": "Formalist", "version": "0.1.0", "license": { "type": "MIT" }, "homepage": "https://github.com/seedco/Formalist", "authors": { "<NAME>": "<EMAIL>" }, "summary": "Declarative form building framework for iOS", "description": "Swift...
297
370
<reponame>gerritg/voxelshop<filename>src/main/java/com/vitco/app/layout/content/shortcut/ShortcutManagerViewInterface.java<gh_stars>100-1000 package com.vitco.app.layout.content.shortcut; import javax.swing.*; /** * Handle the displaying and the logic for the editing of shortcuts. (view & link to logic) */ public i...
149
1,026
<reponame>GraphiteEditor/Graphite { "description": "A convenience package for calling the real package.json in ./frontend", "private": true, "scripts": { "serve": "cd frontend && npm run serve", "build": "cd frontend && npm run build", "lint": "cd frontend && npm run lint", "lint-no-fix": "cd frontend && npm...
126
329
<reponame>NotMorven/cavaface.pytorch from calmsize import size as calmsize def readable_size(num_bytes): return '{:.2f}'.format(calmsize(num_bytes))
63
423
<filename>src/main/java/com/appslandia/plum/tags/FunctionTldGenerator.java<gh_stars>100-1000 // The MIT License (MIT) // Copyright © 2015 AppsLandia. All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Softwar...
1,303
1,091
<gh_stars>1000+ /* * Copyright 2018-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 r...
427
325
<reponame>Pospelove/efsw #include <efsw/FileWatcherKqueue.hpp> #if EFSW_PLATFORM == EFSW_PLATFORM_KQUEUE || EFSW_PLATFORM == EFSW_PLATFORM_FSEVENTS #include <sys/time.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include ...
2,035
10,225
package io.quarkus.runtime.configuration; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.stream.Collectors; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.logging.Logger; impo...
969
828
{ "mainClass": "com.google.cloud.teleport.v2.templates.DataStreamToMongoDB", "classPath": "/template/datastream-to-mongodb/*:/template/datastream-to-mongodb/libs/*:/template/datastream-to-mongodb/classes", "defaultParameterValues": { "labels": "{\"goog-dataflow-provided-template-type\":\"flex\",\"goog-dataflo...
144
1,963
/* ******************************************************************************* * Copyright (c) 2019-2021, STMicroelectronics * All rights reserved. * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You...
1,441
585
/* * 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,858
335
{ "word": "Wallop", "definitions": [ "strike or hit (someone or something) very hard." ], "parts-of-speech": "Verb" }
65
22,688
<gh_stars>1000+ /****************************************************************************** * Copyright 2018 The Apollo 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...
1,919
611
package fr.adrienbrault.idea.symfony2plugin.profiler.dict; import org.jetbrains.annotations.NotNull; /** * @author <NAME> <<EMAIL>> */ public class MailMessage { @NotNull private final String message; @NotNull private final String title; @NotNull private final String format; public M...
284
316
<filename>tests/settings.py import environ env = environ.Env() DEBUG = True DATABASES = {"default": env.db(default="sqlite://:memory:")} ROOT_URLCONF = "tests.urls" SECRET_KEY = "<PASSWORD>" INSTALLED_APPS = [ "tests.app_a", "tests.app_b", "tests.app_c", "tests.app_d", "tests.basic", "tests....
324
356
# # Package analogous to 'threading.py' but using processes # # processing/__init__.py # # This package is intended to duplicate the functionality (and much of # the API) of threading.py but uses processes instead of threads. A # subpackage 'processing.dummy' has the same API but is a simple # wrapper for 'thr...
2,812
735
/* * Copyright (C) 2006 <NAME>. * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2014 XStream Committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * * Created...
839
372
<filename>opensoap/src/server/SSMLInfoFunc.h /* -*- mode: c++; -*- *----------------------------------------------------------------------------- * $RCSfile: SSMLInfoFunc.h,v $ * * See Copyright for the status of this software. * * The OpenSOAP Project * http://opensoap.jp/ *------------------------------------...
167
1,185
from model import * import json import re import os def load(f): data = json.loads(re.compile(r'^var\s+\w+\s*=(.*);\s*$', re.S).sub(r'\1', f.read())) model = Model() model.vertices = [Vertex(*v) for v in data['vertices']] if 'normals' in data: for v, n in zip(model.vertices, data['normals']): ...
735
1,442
<reponame>VersiraSec/epsilon-cfw<filename>apps/sequence/list/list_parameter_controller.cpp #include "list_parameter_controller.h" #include "list_controller.h" #include "../app.h" #include "../../shared/poincare_helpers.h" #include <apps/i18n.h> using namespace Poincare; using namespace Shared; using namespace Escher; ...
1,581
500
<gh_stars>100-1000 """Global configuration. Not threadsafe, not copied by joblib.""" _global_config = {'truncate_labels': True} def get_config(): """Retrieve global configuration values set by set_config. Returns ------- config : dict Keys are parameter names that can be passed to set_config...
260
2,151
// // Copyright 2016 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // CompilerNULL.h: // Defines the class interface for CompilerNULL, implementing CompilerImpl. // #ifndef LIBANGLE_RENDERER_NULL_COMPILERNUL...
270
310
<filename>gear/hardware/0/3d-microphone-ta-1.json { "name": "3D Microphone TA-1", "description": "A 3D microphone for the Theta V.", "url": "https://us.ricoh-imaging.com/index.php/accessories/theta-22/ta-1" }
90
1,909
package org.knowm.xchange.bitbay.v3; import java.util.concurrent.TimeUnit; import org.knowm.xchange.BaseExchange; import org.knowm.xchange.Exchange; import org.knowm.xchange.ExchangeSpecification; import org.knowm.xchange.bitbay.v3.service.BitbayAccountService; import org.knowm.xchange.bitbay.v3.service.BitbayTradeSer...
513
443
/* ------------------------------------------------------------------------- // WINX: a C++ template GUI library - MOST SIMPLE BUT EFFECTIVE // // This file is a part of the WINX Library. // The use and distribution terms for this software are covered by the // Common Public License 1.0 (http://opensource.org/lic...
4,190
852
<reponame>ckamtsikis/cmssw #ifndef ECALTPGWEIGHTIDMAPRCD_H #define ECALTPGWEIGHTIDMAPRCD_H #include "FWCore/Framework/interface/EventSetupRecordImplementation.h" class EcalTPGWeightIdMapRcd : public edm::eventsetup::EventSetupRecordImplementation<EcalTPGWeightIdMapRcd> {}; #endif
107
1,561
<reponame>anshuman35/java-docs-samples /* * Copyright 2019 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 requir...
2,175
2,725
<filename>testData/obfuscated/b.java<gh_stars>1000+ import java.util.Date; public class b<K, V> { protected ah a; protected long b; protected long c; protected final K d; protected V e; protected long f; protected long g; public ah a() { return this.a; } public long b() { re...
866
2,143
<filename>archunit/src/test/java/com/tngtech/archunit/core/domain/testobjects/ComponentTypeDependency.java package com.tngtech.archunit.core.domain.testobjects; public class ComponentTypeDependency { }
66
1,799
<gh_stars>1000+ package io.cucumber.junit; import io.cucumber.core.eventbus.EventBus; import io.cucumber.core.gherkin.Feature; import io.cucumber.core.gherkin.Pickle; import io.cucumber.core.options.RuntimeOptions; import io.cucumber.core.plugin.Options; import io.cucumber.core.runtime.CucumberExecutionContext; import...
2,880
379
"""Fonduer tensorboard logger.""" from tensorboardX import SummaryWriter class TensorBoardLogger(object): """A class for logging to Tensorboard during training process.""" def __init__(self, log_dir: str): """Create a summary writer logging to log_dir.""" self.writer = SummaryWriter(log_dir) ...
216
3,024
"""Example sqlfluff plugin."""
10
301
/****************************************************************** * * Copyright 2016 Samsung Electronics 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 * ...
1,930
1,541
package com.bwssystems.HABridge.plugins.fhem; public class FHEMDevice { private String address; private String name; private Result item; public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getName() { return name...
196
852
<filename>SimG4Core/PhysicsLists/plugins/FTFPCMS_BERT.cc #include "FTFPCMS_BERT.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "SimG4Core/PhysicsLists/interface/CMSHadronPhysicsFTFP_BERT.h" #include "G4EmStandardPhysics.hh" #include "G4DecayPhysics.hh" #include "G4EmExtraPhysics.hh" #include "G4...
813
852
<filename>CommonTools/RecoUtils/src/PF_PU_AssoMapAlgos.cc #include "CommonTools/RecoUtils/interface/PF_PU_AssoMapAlgos.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "DataFormats/Math/interface/deltaR.h" #include "DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h" #include "RecoVert...
14,648
843
<gh_stars>100-1000 # Generated by Django 2.2.6 on 2019-11-28 10:10 from django.db import migrations import django_extensions.db.fields.json class Migration(migrations.Migration): dependencies = [ ('blocklist', '0004_multiblocksubmit'), ] operations = [ migrations.AddField( m...
208
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 namespace Hostin...
326
852
/*---------------------------------------------------------------------- ----------------------------------------------------------------------*/ #include "FWCore/Framework/interface/ProducerBase.h" #include "DataFormats/Provenance/interface/ModuleDescription.h" #include "DataFormats/Provenance/interface/ProductReg...
1,639
10,225
<reponame>vonatzigenc/quarkus<filename>independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RequestMapper.java package org.jboss.resteasy.reactive.server.mapping; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util...
3,563
16,989
<reponame>jobechoi/bazel<gh_stars>1000+ // Copyright 2017 The Bazel 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/L...
471
2,338
//===-- LibCxxTuple.cpp ---------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
1,033
311
from django.contrib import admin from oscarapi import models # Register your models here. admin.site.register(models.ApiKey)
38
1,444
package mage.cards.t; import java.util.UUID; import mage.abilities.effects.common.combat.MustBeBlockedByAllTargetEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; import mage.target.common.TargetCreaturePermanent; /** * * @author fire...
337
7,482
<gh_stars>1000+ /* * Copyright (c) 2015, Freescale Semiconductor, Inc. * Copyright 2016-2018 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_flexcan.h" /******************************************************************************* * Definitions *************************...
43,474
1,047
<filename>bh_search.py """ BracketHighlighter. Copyright (c) 2013 - 2016 <NAME> <<EMAIL>> License: MIT """ import sublime from collections import namedtuple BH_SEARCH_LEFT = 0 BH_SEARCH_RIGHT = 1 BH_SEARCH_OPEN = 0 BH_SEARCH_CLOSE = 1 BH_ADJACENT_LEFT = 0 BH_ADJACENT_RIGHT = 1 class BhEntry(object): """Generic ...
7,195
1,861
<filename>android/src/main/cpp/spectrumjni/io/JniOutputStreamImageSink.cpp // Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include "JniOutputStreamImageSink.h" #include <fbjni/fbjni.h>...
588
1,346
from plex.core.idict import idict from plex.interfaces.core.base import Interface class PlaylistsInterface(Interface): path = 'playlists' def all(self, type=15, sort=None, playlist_type=None, smart=None): response = self.http.get('all', query=[ ('type', type), ('sort', sort), ...
631
1,093
/* * Copyright 2014-2019 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
422
302
<gh_stars>100-1000 #ifndef _DEBUGDISPLAY_H #define _DEBUGDISPLAY_H //**************************************************************************** //** //** DebugDisplay.h //** - Provides display capabilities for debugging. Because it is //** specifically for debugging and not final release, we don't //**...
494
2,151
<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. #ifndef NGLineBoxFragmentBuilder_h #define NGLineBoxFragmentBuilder_h #include "third_party/blink/renderer/core/layout/ng/geometry/ng_log...
2,559
892
{ "schema_version": "1.2.0", "id": "GHSA-32p2-76xv-rj3g", "modified": "2022-04-30T18:20:07Z", "published": "2022-04-30T18:20:07Z", "aliases": [ "CVE-2002-0886" ], "details": "Cisco DSL CPE devices running CBOS 2.4.4 and earlier allows remote attackers to cause a denial of service (hang or memory consu...
683
307
<reponame>jmalvarezf-lmes/halyard /* * Copyright 2020 Amazon, 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...
957
14,668
// 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. #include "chrome/browser/ash/power/auto_screen_brightness/fake_model_config_loader.h" namespace ash { namespace power { namespace auto_screen_brightness ...
445
584
<filename>AppleIntelWifiAdapter/compat/linux/kernel.h // // kernel.h // AppleIntelWifiAdapter // // Created by qcwap on 2020/1/5. // Copyright © 2020 钟先耀. All rights reserved. // #ifndef kernel_h #define kernel_h #include "types.h" #include <sys/errno.h> #include <libkern/OSTypes.h> #include <IOKit/IOLib.h> #de...
3,379
411
<reponame>kaiyuan-li/giraph /* * 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,603
310
<reponame>dreeves/usesthis { "name": "Medis", "description": "In-ear headphones.", "url": "https://www.urbanears.com/headphones/medis/medis-black/" }
62
3,931
/* * This file is part of dependency-check-core. * * 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 ...
26,102
14,668
<filename>services/audio/local_muter.cc // Copyright 2018 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 "services/audio/local_muter.h" #include <utility> #include "base/bind.h" #include "services/audio/loopb...
760
4,640
<reponame>XiaoSong9905/tvm<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, Ve...
3,299
1,338
/* * Copyright 2006, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "PowerStatus.h" #include <Alert.h> #include <Application.h> #include <Catalog.h> #include <Deskbar.h> #include <Entry.h> #include <stdio.h> #include <stdlib.h> #i...
1,182
10,245
/* * Copyright 2014 The gRPC Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
617
590
<reponame>Roznoshchik/Lurnby import datetime from venv import create from sqlalchemy import desc from app import create_app from app.models import User, Event def print_data(): count = User.query.count() users = User.query.all() print("Total Users: " + str(count)) print('\n') for u in users: ...
837
32,544
<reponame>zeesh49/tutorials package com.baeldung.guava.tutorial; import com.google.common.util.concurrent.Monitor; import org.junit.Assert; import org.junit.Test; public class MonitorUnitTest { @Test public void whenGaurdConditionIsTrue_IsSuccessful() { Monitor monitor = new Monitor(); boolea...
617
4,238
#!/usr/bin/env python """Entry point of filesystem server.""" from absl import app from grr_response_client.unprivileged import server_main_lib if __name__ == "__main__": app.run(server_main_lib.main)
70
350
package com.github.penfeizhou.animation.loader; import com.github.penfeizhou.animation.io.Reader; import java.io.IOException; /** * @Description: Loader * @Author: pengfei.zhou * @CreateDate: 2019-05-14 */ public interface Loader { Reader obtain() throws IOException; }
98
580
<gh_stars>100-1000 // this file is temporarily here // in is a backup documentation of the message declaration macros // until the header files are properly arranged // use these macros for the docs only /** * Macro that declares a message * * This generates the stand-alone function which is users should use to call...
1,814
1,318
# 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 applica...
871
320
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.jme3.gde.assetpack.online; import java.io.*; import java.net.*; /** * <code>MultiPartFormOutputStream</code> is used to write * "multipart/form-data" to a <code>java.net.URLConnection</code> for * POSTin...
5,497
1,968
<reponame>khoih-prog/stlink<filename>inc/stm32.h /* * File: stm32.h * * STM32-specific defines & identification parametres */ #ifndef STM32_H #define STM32_H /* STM32 Cortex-M core ids (CPUTAPID) */ enum stm32_core_id { STM32_CORE_ID_M0_SWD = 0x0bb11477, // (RM0091 Section 32.5.3) F0 SW-DP ...
5,532
305
# -*- coding: utf-8 -*- """Besides running NeuroChem trainer by programming, we can also run it by ``python -m torchani.neurochem.trainer``, use the ``-h`` option for help. """ import torch from . import Trainer if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argu...
724
8,054
#ifndef URLDRAGDROPUTILS_H #define URLDRAGDROPUTILS_H #include <functional> #include <QStringList> class QDragEnterEvent; class QDropEvent; namespace vnotex { // Help to handle Url-related Drag&Drop events. class UrlDragDropUtils { public: UrlDragDropUtils() = delete; static bool ha...
206
940
import networkx as nx from graphgym.register import register_feature_augment def example_node_augmentation_func(graph, **kwargs): ''' compute node clustering coefficient as feature augmentation :param graph: deepsnap graph. graph.G is networkx :param kwargs: required, in case additional kwargs are pr...
202
400
<reponame>shaziji/ofdrw<filename>ofdrw-core/src/test/java/org/ofdrw/core/signatures/sig/ProviderTest.java<gh_stars>100-1000 package org.ofdrw.core.signatures.sig; import org.junit.jupiter.api.Test; import org.ofdrw.TestTool; import org.ofdrw.gv.GlobalVar; import static org.junit.jupiter.api.Assertions.*; public clas...
340
841
<reponame>fomich-artem/jbpm<gh_stars>100-1000 /* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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/lic...
866
3,305
/** * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <pybind11/stl.h> #include <pybind11/stl_bind.h> #include "Pybind.h" #include "OptionMap.h" #inc...
183
335
<filename>B/Benchmark.json { "word": "Benchmark", "definitions": [ "something that serves as a standard by which others may be measured or judged", "a point of reference from which measurements may be made", "a standardized problem or test that serves as a basis for evaluation or compar...
129
407
<filename>paas/tesla-authproxy/tesla-authproxy-server/src/main/java/com/alibaba/tesla/authproxy/service/UserService.java<gh_stars>100-1000 package com.alibaba.tesla.authproxy.service; import com.alibaba.tesla.authproxy.model.TeslaServiceUserDO; /** * 老tesla主站用户表 users * * @author cdx * @date 2019/11/7 14:53 */ p...
158
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/ScreenReaderOutputServer.framework/ScreenReaderOutputServer */ #import <ScreenReaderOutputServer/SCROIOHIDElement.h> // iOSOpenDev: wrapped with define check (since occurs in other dumped files) #...
184
575
<reponame>Ron423c/chromium // 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. #include "ui/accessibility/ax_tree_manager_map.h" #include "base/containers/contains.h" #include "ui/accessibility/ax_enums.mo...
720
421
<reponame>hamarb123/dotnet-api-docs //<Snippet1> // This sample demonstrates the use of the PermissionSet class. using namespace System; using namespace System::Reflection; using namespace System::Security::Permissions; using namespace System::Security; using namespace System::IO; using namespace System::Colle...
2,617
434
#pragma once namespace resumef { /** * @brief 切换协程的可等待对象。 */ struct switch_scheduler_awaitor { using value_type = void; using state_type = state_t<value_type>; using promise_type = promise_t<value_type>; using lock_type = typename state_type::lock_type; switch_scheduler_awaitor(scheduler_t* sch) ...
2,177
1,232
<filename>dbus-router/src/main/java/com/creditease/dbus/router/spout/ack/AckWindows.java /*- * << * DBus * == * Copyright (C) 2016 - 2019 Bridata * == * 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 t...
2,645
1,079
<filename>client-common/src/test/java/com/cloudera/livy/client/common/TestClientConf.java<gh_stars>1000+ /* * Licensed to Cloudera, Inc. under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Cloudera, Inc. l...
2,651
445
<reponame>yesme/Multiverso #include "logreg.h" #include <vector> #include <sstream> #include "util/log.h" #include "util/common.h" #include "reader.h" #include "util/timer.h" #include "multiverso/io/io.h" namespace logreg { template<typename EleType> LogReg<EleType>::LogReg(const std::string &config_file) { confi...
2,057