max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
609
<reponame>bytedance/CodeLocator<filename>CodeLocatorPlugin/src/main/java/com/bytedance/tools/codelocator/utils/ViewUtils.java package com.bytedance.tools.codelocator.utils; import com.bytedance.tools.codelocator.model.WView; import com.bytedance.tools.codelocator.panels.ScreenPanel; import java.util.ArrayList; import...
4,943
1,199
<reponame>davidlrichmond/macports-ports --- Theme.h Thu Aug 21 02:20:20 2003 +++ Theme.h.new Tue Sep 7 12:03:55 2004 @@ -81,7 +81,7 @@ #ifndef WIN32 DIR *dir; if ((dir = opendir(ThemeDir.c_str())) == NULL) { - ThemeDir = "/usr/share/games/gav/" + ThemeDir; + ThemeDir = "__PREFIX__/share/games/gav/" + Th...
199
3,807
package eu.davidea.flexibleadapter.livedata.models; import java.io.Serializable; import eu.davidea.flexibleadapter.items.IHolder; /** * This class is Pojo for the {@link IHolder} items. * It is used as base item for Item and Header model examples. * * By using Holder pattern, you can implement DB, XML & JSON (de...
480
2,059
import os, sys, zipfile from os.path import dirname, abspath, normpath, join from . import DATA_BASE_DIR ENCRYPTED_FILES_PASSWORD='<PASSWORD>' if sys.version_info[0] <= 2: # Python 2.x if sys.version_info[1] <= 6: # Python 2.6 # use is_zipfile backported from Python 2.7: from thirdpart...
463
315
package com.frogermcs.gactions.api; import java.util.HashMap; import java.util.Map; /** * Google Actions API config */ public class ActionsConfig { /** * Default tell-response for intent actions which aren't handled by user RequestHandler - Intent Action mapping */ public static final String ERROR...
344
375
<gh_stars>100-1000 /* Copyright (c) 2014, Intel Corporation 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 notice, this list of conditions and the following ...
12,410
412
<reponame>tobireinhard/cbmc /******************************************************************\ Module: functions_harness_generator_options Author: Diffblue Ltd. \******************************************************************/ #ifndef CPROVER_GOTO_HARNESS_FUNCTION_HARNESS_GENERATOR_OPTIONS_H #define CPROVER_GO...
2,373
1,253
<gh_stars>1000+ from rnn import RNN from tokens import tokenize, detokenize model = RNN(61,200) model.load('uwv.pkl') # print(model.U.shape) # generate(start_token, num_of_chars, top_k random predictions) text = model.generate(tokenize('F'), 300, 3) for i in text: print(detokenize(i), end="")
119
558
<gh_stars>100-1000 /* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2015-2021 Micron Technology, Inc. All rights reserved. */ #include "framework_external.h" #include <hse_ut/conditions.h> #include <hse_util/hse_err.h> #include <hse_util/inttypes.h> #include <hse_test_support/mock_api.h> #include <c...
945
5,169
<filename>Specs/b/e/5/Broadcast/1.3.2/Broadcast.podspec.json { "name": "Broadcast", "version": "1.3.2", "summary": "Lightweight instance syncing & property binding.", "description": "Broadcast is a quick-and-dirty solution for instance syncing and property binding.", "homepage": "https://github.com/mitchtreec...
290
1,602
<reponame>jhh67/chapel /* POWER7 gmp-mparam.h -- Compiler/machine parameter header file. Copyright 2019 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public L...
4,370
945
#include "vnl/vnl_sparse_matrix.hxx" template class VNL_EXPORT vnl_sparse_matrix<int>;
40
626
<reponame>VigneshwaranDev/zerocode<gh_stars>100-1000 package org.jsmart.zerocode.core.utils; import static java.lang.Integer.parseInt; import static java.lang.System.getProperty; import static java.lang.System.getenv; public class EnvUtils { public static Integer getEnvValueInt(String envKey) { String en...
221
317
<reponame>xcorail/OTB /* MIDWIN.f -- translated by f2c (version 19970805). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #ifdef __cplusplus extern "C" { #endif /* OTB patches: replace "f2c.h" by "otb_6S.h" */ /*#include "f2c.h"*/ #include "otb_6S.h" /* Common Block Dec...
1,633
52,316
"Test pathbrowser, coverage 95%." from idlelib import pathbrowser import unittest from test.support import requires from tkinter import Tk import os.path import pyclbr # for _modules import sys # for sys.path from idlelib.idle_test.mock_idle import Func import idlelib # for __file__ from idlelib import browser fr...
1,063
408
from typing import Type class RLBotException(Exception): """Base class for exceptions in this module.""" def __init__(self, msg=None): if msg is None: # Set some default useful error message msg = "An error occurred attempting to set RLBot configuration on the dll side" ...
1,370
1,431
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to Y...
1,199
348
{"nom":"Saint-Ferréol-d'Auroure","circ":"1ère circonscription","dpt":"Haute-Loire","inscrits":1907,"abs":916,"votants":991,"blancs":11,"nuls":2,"exp":978,"res":[{"nuance":"LR","nom":"Mme <NAME>","voix":321},{"nuance":"REM","nom":"Mme <NAME>","voix":276},{"nuance":"FN","nom":"<NAME>","voix":185},{"nuance":"FI","nom":"Mm...
288
347
/* * Copyright oVirt Authors * SPDX-License-Identifier: Apache-2.0 */ package org.ovirt.engine.api.restapi.resource; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Response; import org.ovirt.engine.api.model.ClusterFeature; import org.ovirt.engine.api.resource.ClusterFeatureResource; import or...
347
2,539
<filename>C/zstdmt/lz5-mt.h /** * Copyright (c) 2016 - 2017 <NAME> * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directo...
1,560
778
<filename>applications/SolidMechanicsApplication/custom_constitutive/custom_yield_criteria/yield_criterion.hpp // // Project Name: KratosSolidMechanicsApplication $ // Created by: $Author: JMCarbonell $ // Last modified by: $Co-Author: $ // Date: ...
4,597
488
<gh_stars>100-1000 PIrExpr PIrStatement_IrAssign_get_destAddr(PIrStatement NODE); int is_op_PIrStatement_IrAssign(PIrStatement NODE); PIrExpr PIrStatement_IrAssign_get_rightSide(PIrStatement NODE); LIST_PIrMultiAssign_Assign PIrStatement_IrMultiAssign_get_assigns(PIrStatement NODE); int is_op_PIrStatement_IrMultiAssign...
5,569
738
<reponame>liufangqi/hudi /* * 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...
5,784
1,490
# This code is supporting material for the book # Building Machine Learning Systems with Python # by <NAME> and <NAME> # published by PACKT Publishing # # It is made available under the MIT License # This script generates web traffic data for our hypothetical # web startup "MLASS" in chapter 01 import os import scipy...
449
709
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 <NAME> // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "IEmpty.hpp" namespace s3...
131
348
{"nom":"Saint-Aubin-d'Aubigné","circ":"6ème circonscription","dpt":"Ille-et-Vilaine","inscrits":2693,"abs":1286,"votants":1407,"blancs":17,"nuls":11,"exp":1379,"res":[{"nuance":"REM","nom":"<NAME>","voix":666},{"nuance":"UDI","nom":"M. <NAME>","voix":254},{"nuance":"FI","nom":"<NAME>","voix":175},{"nuance":"COM","nom":...
266
385
<reponame>3096/starlight /** * @file stream.h * @brief Binary/Text I/O Streaming */ #pragma once #include "types.h" namespace sead { class StreamFormat; class StreamSrc; class Endian { public: enum Types { BIG = 0, LITTLE = 1 }; }; clas...
521
2,999
<gh_stars>1000+ /* Copyright 2017 - 2021 <NAME> * Copyright 2017 - 2021 Quarkslab * * 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 * ...
1,035
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...
25,118
348
<filename>docs/data/leg-t2/040/04003070.json {"nom":"Castandet","circ":"3ème circonscription","dpt":"Landes","inscrits":302,"abs":112,"votants":190,"blancs":17,"nuls":1,"exp":172,"res":[{"nuance":"REM","nom":"<NAME>","voix":93},{"nuance":"SOC","nom":"<NAME>","voix":79}]}
110
2,151
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PROVIDER_IMPL_H_ #define IOS_CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_IOS_PRO...
518
13,885
<reponame>N500/filament<filename>filament/src/fg2/FrameGraphTexture.cpp /* * Copyright (C) 2021 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 * * ...
663
326
package com.rarepebble.colorpickerdemo; import android.app.Activity; import android.os.Bundle; import com.rarepebble.colorpicker.ColorPickerView; public class ViewDemoActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R...
157
1,103
/* * Copyright 2021 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
7,569
348
<filename>docs/data/leg-t1/003/00301309.json<gh_stars>100-1000 {"nom":"<NAME>","circ":"1ère circonscription","dpt":"Allier","inscrits":378,"abs":163,"votants":215,"blancs":3,"nuls":2,"exp":210,"res":[{"nuance":"REM","nom":"<NAME>","voix":54},{"nuance":"COM","nom":"<NAME>","voix":48},{"nuance":"LR","nom":"<NAME>-<NAME>"...
295
2,268
//========= Copyright Valve Corporation, All rights reserved. ============// #ifndef EYE_REFRACT_HELPER_H #define EYE_REFRACT_HELPER_H #ifdef _WIN32 #pragma once #endif #include <string.h> //----------------------------------------------------------------------------- // Forward declarations //----------------------...
876
1,127
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.ops.unique import Unique from openvino.tools.mo.front.extractor import FrontExtractorOp class UniqueFrontExtractor(FrontExtractorOp): op = 'Unique' enabled = True @classmethod def extract(cls, no...
267
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/password_manager/password_manager_uitest_util.h" #include "testing/gtest/include/gtest/gtest.h" void TestGenerationPopupObserve...
545
643
<filename>java/ql/test/stubs/jboss-logging-3.4.2/org/jboss/logging/Logger.java /* * JBoss, Home of Professional Open Source. * * Copyright 2011 Red Hat, 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 c...
6,554
778
package org.aion.p2p.impl; import java.io.IOException; import java.net.ServerSocket; public class TestUtilities { private TestUtilities() {} /** * Tries to return a free port thats currently not used * * @return */ public static int getFreePort() { try { ServerSock...
314
576
#pragma once #include "../../databags/databag.h" #include "core/templates/paged_allocator.h" #include "shape_base.h" #include <BulletCollision/CollisionShapes/btConeShape.h> struct BtCone : public BtRigidShape { COMPONENT_CUSTOM_CONSTRUCTOR(BtCone, SharedSteadyStorage) static void _bind_methods(); static void _ge...
394
527
<gh_stars>100-1000 #include "VariableCollection.h" #include <iostream> #include "FetlangException.h" bool VariableCollection::has(const std::string& variable_name) const { return variables.find(variable_name) != variables.end(); } Variable& VariableCollection::get(const std::string& variable_name) { if (!has(vari...
888
3,371
<gh_stars>1000+ package com.beloo.widget.chipslayoutmanager.gravity; import android.graphics.Rect; import com.beloo.widget.chipslayoutmanager.layouter.AbstractLayouter; import com.beloo.widget.chipslayoutmanager.layouter.Item; import java.util.List; class RTLRowFillSpaceStrategy implements IRowStrategy { @Over...
520
1,133
<gh_stars>1000+ #include <iostream> #include <fstream> #include "byteswap.h" #include "Cosar.hh" #include <stdlib.h> // Cosar files are big-endian // thus, we need to determine the endianness of the machine we are on // and decide whether we need to swap bytes Cosar::Cosar(std::string input, std::string output) { ...
945
2,443
// Copyright (c) 2015-2019 The HomeKit ADK Contributors // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors. #include "HAP+Internal.h" static const HAPLogObject lo...
11,026
2,770
<gh_stars>1000+ """Alert on the OneLogin event that a user has assumed the role of someone else.""" from streamalert.shared.rule import rule @rule(logs=['onelogin:events']) def onelogin_events_assumed_role(rec): """ author: @javutin description: Alert on OneLogin users assuming a different role. ...
195
700
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' pspice = SchLib(tool=SKIDL).add_parts(*[ Part(name='0',dest=TEMPLATE,tool=SKIDL,do_erc=True), Part(name='CAP',dest=TEMPLATE,tool=SKIDL,do_erc=True,aliases=['C']), Part(name='DIODE',dest=TEMPLATE,tool=SKIDL,do_erc=...
469
453
<filename>libc/libgloss/m32c/sample.c /* Copyright (c) 2008 Red Hat Incorporated. 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 ...
1,594
348
<filename>docs/data/leg-t1/077/07709377.json {"nom":"Presles-en-Brie","circ":"9ème circonscription","dpt":"Seine-et-Marne","inscrits":1525,"abs":832,"votants":693,"blancs":7,"nuls":1,"exp":685,"res":[{"nuance":"REM","nom":"M<NAME>","voix":238},{"nuance":"LR","nom":"<NAME>","voix":146},{"nuance":"FN","nom":"M. <NAME>","...
321
713
<gh_stars>100-1000 # Solution 01: class TrieNode(object): def __init__(self): self.children = {} self.isEnd = False self.data = None self.rank = 0 class AutocompleteSystem(object): def __init__(self, sentences, times): """ :type sentences: List[str] :...
1,019
1,682
<reponame>haroldl/rest.li /* Copyright (c) 2015 LinkedIn Corp. 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 a...
622
922
package me.zbl.fullstack.mapper; import me.zbl.fullstack.entity.Article; import me.zbl.fullstack.entity.dto.form.ArticleSearchForm; import me.zbl.fullstack.framework.mapper.IMyMapper; import me.zbl.fullstack.mapper.provider.ArticleSqlProvider; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annot...
742
2,703
<filename>tests/visual/test_widget_radioselect.py from selenium.webdriver.common.keys import Keys from django.test.utils import override_settings from .. import test_widget_radioselect as test from . import VisualTest @override_settings(ROOT_URLCONF='tests.test_widget_radioselect') class Test(VisualTest): def te...
1,066
3,428
{"id":"00418","group":"spam-1","checksum":{"type":"MD5","value":"6321175c76411371c109eafc99563d2c"},"text":"From <EMAIL> Sun Sep 22 14:13:25 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby zzzzason.org (Postfix) with ESMTP id EE16...
852
302
// // ARViewController.h // Renaissance // // Created by <NAME> on 15/12/21. // Copyright © 2015年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "ARFrontView.h" #import "GeoJSON_Root.h" @interface ARViewController : UIViewController @property (nonatomic,strong) ARFrontView *ARView; @property (no...
150
348
{"nom":"Domèvre-en-Haye","circ":"5ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":276,"abs":149,"votants":127,"blancs":9,"nuls":2,"exp":116,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":64},{"nuance":"REM","nom":"<NAME>","voix":52}]}
104
488
<reponame>chauffer/BulletSharpUnity3d #include "main.h" extern "C" { EXPORT btMultiBodyJointLimitConstraint* btMultiBodyJointLimitConstraint_new(btMultiBody* body, int link, btScalar lower, btScalar upper); }
86
725
<reponame>mb64/swipl-devel<filename>src/win32/console/history.c /* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 1999-2012, University of Amsterdam All rights reserved. Redistribution and use in source and binary forms,...
1,909
348
{"nom":"Gaillères","circ":"1ère circonscription","dpt":"Landes","inscrits":467,"abs":221,"votants":246,"blancs":12,"nuls":8,"exp":226,"res":[{"nuance":"MDM","nom":"<NAME>","voix":136},{"nuance":"SOC","nom":"<NAME>","voix":90}]}
90
8,599
<reponame>dolphin57/Activiti /* * Copyright 2010-2020 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
3,897
1,056
<filename>ide/db.sql.editor/src/org/netbeans/modules/db/sql/analyzer/InsertStatementAnalyzer.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 * regarding copyrigh...
3,030
1,545
<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...
1,186
8,664
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
529
578
/* * Copyright (c) Facebook, Inc. and 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/licenses/LICENSE-2.0 * * Unless required by applic...
493
1,673
/* bug #250 - Array size compile-time optimization stops halfway */ #include <stdlib.h> #define LZO_MAX(a,b) ((a) >= (b) ? (a) : (b)) unsigned char c[2*4]; unsigned char b[2*LZO_MAX(8,sizeof(int))]; // this will not compile int main(void) { /* FIXME: add some runtime check */ return EXIT_SUCCESS; }
133
376
<filename>vapory/helpers.py WIKIREF = "http://wiki.povray.org/content/Reference:" def vectorize(arr): """ transforms [a, b, c] into string "<a, b, c>"" """ return "<%s>" % ",".join([str(e) for e in arr]) def format_if_necessary(e): """ If necessary, replaces -3 by (-3), and [a, b, c] by <a, b, c> """ ...
277
17,318
/* * Copyright (c) 2011-2018, <NAME>. All Rights Reserved. * * 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 t...
2,646
1,080
<gh_stars>1000+ /* * ccommon - a cache common library. * Copyright (C) 2013 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....
4,195
1,875
/* * Copyright 2020 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
5,861
1,609
// $Id$ // // Copyright (c) 2008, Novartis Institutes for BioMedical Research 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: // // * Redistributions of source code must retain t...
28,104
2,338
<gh_stars>1000+ // RUN: %clang_cc1 -triple i386-pc-linux-gnu -DBITCODE -emit-llvm-bc -o %t.bc %s // RUN: %clang_cc1 -triple i386-pc-linux-gnu -DBITCODE2 -emit-llvm-bc -o %t-2.bc %s // RUN: %clang_cc1 -triple i386-pc-linux-gnu -mlink-bitcode-file %t.bc \ // RUN: -O3 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK...
648
518
package io.sdb.controller; import com.alibaba.fastjson.JSON; import com.jfinal.kit.JsonKit; import com.jfinal.kit.LogKit; import io.sdb.common.entity.kuaidi100.NoticeRequest; import io.sdb.common.entity.kuaidi100.NoticeResponse; import io.sdb.common.entity.kuaidi100.Result; import io.sdb.model.Logistics; import lombok...
1,199
332
/** * Package for DIRT JDBC util classes. */ package org.springframework.xd.dirt.jdbc.util;
34
1,374
package def.dom; import def.js.Object; public class SVGAnimatedInteger extends def.js.Object { public double animVal; public double baseVal; public static SVGAnimatedInteger prototype; public SVGAnimatedInteger(){} }
73
312
<gh_stars>100-1000 /******************************************************************************* * Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * w...
378
361
package li.cil.oc2.common.item; import net.minecraft.item.IDyeableArmorItem; public final class FloppyItem extends AbstractStorageItem implements IDyeableArmorItem { public FloppyItem(final int capacity) { super(capacity); } }
80
2,783
from stompest.config import StompConfig from stompest.protocol import StompSpec from stompest.sync import Stomp CONFIG = StompConfig('tcp://localhost:61613', version=StompSpec.VERSION_1_1) QUEUE = '/queue/test' if __name__ == '__main__': client = Stomp(CONFIG) client.connect(heartBeats=(0, 10000)) client.subscr...
230
330
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 INSTALLED_HANDLERS = None EXCLUDED_HANDLERS = [] RAPIDSMS_HANDLERS_EXCLUDE_APPS = []
70
377
//------------------------------------------------------------------------------ // vkstreamtexturepool.cc // (C) 2016-2020 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "render/stdneb.h" #include "vkstreamtexturepool.h" #include "cor...
6,683
4,962
package net.bytebuddy.implementation.bind; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.description.type.TypeDescription; import net.bytebuddy.implementation.bytecode.Removal; import net.bytebuddy.implementation.bytecode.StackManipulation; import net.bytebuddy.implementation.bytecode...
959
418
/* MIT License Copyright (c) 2019 Advanced Micro Devices, Inc. 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, m...
5,635
5,079
from unittest import TestCase from thriftpy2.thrift import TType, TPayload from thriftpy2.transport.memory import TMemoryBuffer from thriftpy2.protocol.binary import TBinaryProtocol from thriftpy2._compat import CYTHON class Struct(TPayload): thrift_spec = { 1: (TType.I32, 'a', False), 2: (TTyp...
1,766
6,034
<filename>product-service-project/product-service-api/src/main/java/cn/iocoder/mall/productservice/rpc/attr/dto/ProductAttrKeyValueRespDTO.java<gh_stars>1000+ package cn.iocoder.mall.productservice.rpc.attr.dto; import lombok.Data; import lombok.experimental.Accessors; import java.io.Serializable; /** * 商品规格 KEY + ...
326
14,668
<reponame>zealoussnow/chromium<gh_stars>1000+ // 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/resource_coordinator/public/cpp/memory_instrumentation/global_memory_dump.h" #include <v...
875
6,457
#pragma once #include "RealSenseTypes.h" #include "RealSenseContext.generated.h" UCLASS(ClassGroup="RealSense", BlueprintType) class REALSENSE_API URealSenseContext : public UObject { GENERATED_UCLASS_BODY() friend class FRealSensePlugin; public: virtual ~URealSenseContext(); struct rs2_context* G...
370
1,088
package com.riversoft.weixin.mp.event.care; import com.fasterxml.jackson.annotation.JsonProperty; import com.riversoft.weixin.common.event.EventRequest; /** * Created by exizhai on 11/22/2015. */ public class SessionForwardEvent extends EventRequest { @JsonProperty("FromKfAccount") private Strin...
297
521
<reponame>braymar/afl #include <ipxe/nap.h> PROVIDE_NAP_INLINE ( null, cpu_nap );
42
348
{"nom":"Pont-Péan","circ":"1ère circonscription","dpt":"Ille-et-Vilaine","inscrits":3256,"abs":1901,"votants":1355,"blancs":145,"nuls":37,"exp":1173,"res":[{"nuance":"REM","nom":"<NAME>","voix":717},{"nuance":"UDI","nom":"<NAME>","voix":456}]}
101
379
<filename>src/main/java/com/oim/core/net/connect/codec/DataCodecDecoder.java<gh_stars>100-1000 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.oim.core.net.connect.codec; import java.nio.charset.Charset; import org.apache.mina.core.buffer.IoBuffer; impor...
986
1,144
package de.metas.util.time.generator; import java.time.LocalDateTime; import java.util.Set; import com.google.common.collect.ImmutableSet; import lombok.NonNull; import lombok.Value; @Value public final class SameDateSequenceExploder implements IDateSequenceExploder { public static final SameDateSequenceExploder i...
215
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.processing.test; import com.yahoo.component.chain.Chain; import com.yahoo.processing.Processor; import com.yahoo.processing.Request; import com.yahoo.processing.Response; import com.yahoo.processi...
871
778
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // license: structural_mechanics...
2,611
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.ai.formrecognizer.implementation.util; import com.azure.ai.formrecognizer.models.DocumentFieldType; import com.azure.ai.formrecognizer.administration.models.DocumentFieldSchema; import ja...
735
648
{"resourceType":"DataElement","id":"Contract.subject","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/Contract.subject","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"Contract.subject","path":"Contract.subject","short":"Contract Target...
414
1,122
//Problem: https://www.hackerrank.com/challenges/utopian-tree //Java 8 import java.io.*; import java.util.*; import java.lang.Math; public class Solution { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named S...
460
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,049
2,962
<filename>tests/scripts/thread-cert/pktverify/layer_fields_container.py<gh_stars>1000+ #!/usr/bin/env python3 # # Copyright (c) 2019, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condit...
1,144
1,652
#pragma once #include <optional.h> #include <chrono> #include <string> struct Timer { using Clock = std::chrono::high_resolution_clock; static long long GetCurrentTimeInMilliseconds(); // Creates a new timer. A timer is always running. Timer(); // Returns elapsed microseconds. long long ElapsedMicrose...
304
799
<gh_stars>100-1000 import unittest from Base64EncodeV2 import encode class Base64EncodeV2(unittest.TestCase): def test_encode_japanese(self): """ Given: Japanese characters. When: Encoding the characters using Base64. Then: Validate that the human readable and context outputs are p...
1,416
506
// https://uva.onlinejudge.org/external/117/11749.pdf #include<bits/stdc++.h> using namespace std; using iii=tuple<int,int,int>; using vi=vector<int>; using vvi=vector<vi>; using viii=vector<iii>; int main(){ ios::sync_with_stdio(0); cin.tie(0); for(;;){ int n,m,u,v,w,W=-2147483648,M=0; cin>>n>>m; if(...
562