max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
622
package tudelft.countletters; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class CountLettersTest { @Test public void multipleMatchingWords() { int words = new CountLetters().count("cats|dogs"); Assertions.assertEquals(2, words); } @Test publ...
247
743
<gh_stars>100-1000 /* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ // Created by <NAME> on 08.02.12. #import <Cocoa/Cocoa.h> @interface TreeOutline : NSOut...
135
545
#pragma once #include <pcl/registration/correspondence_rejection.h> #include <pcl/point_cloud.h> using namespace pcl; template <typename SourceT, typename TargetT> class PolyRejector: public registration::CorrespondenceRejector { using registration::CorrespondenceRejector::input_correspondences_; using registratio...
5,789
1,802
#!/usr/bin/python2.5 # # Copyright 2017 <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 # t...
1,556
374
<filename>objc/objc_malloc.h #import <stdlib.h> void *objc_malloc(size_t size); void *objc_realloc(void *ptr, size_t size); void *objc_calloc(size_t count, size_t size); void objc_free(void *ptr);
86
2,143
package com.tngtech.archunit.library.metrics; import java.util.Map; import com.google.common.collect.ImmutableSet; import org.junit.Test; import static com.tngtech.archunit.library.metrics.TestElement.GET_DEPENDENCIES; import static com.tngtech.archunit.library.metrics.TestMetricsComponentDependencyGraph.fromNode; i...
1,983
525
/* * Copyright 2015 Odnoklassniki Ltd, Mail.Ru Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
1,566
2,571
/****************************************************************************** * Copyright (c) 2011, <NAME>. All rights reserved. * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
3,442
366
from openie.openie import StanfordOpenIE # noqa
15
332
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
1,105
412
# encoding: utf-8 # Copyright 1999-2017 Alibaba Group Holding 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 # # Unless required b...
985
381
package com.tngtech.jgiven.impl; import static org.assertj.core.api.Assertions.assertThat; import java.lang.annotation.Annotation; import java.util.Collections; import com.tngtech.jgiven.GivenTestStep; import com.tngtech.jgiven.ScenarioTestBaseForTesting; import org.junit.Before; import org.junit.Test; import com.t...
1,000
2,151
<reponame>MauroArgentino/RSXGL<gh_stars>1000+ /* * Mesa 3-D graphics library * Version: 7.1 * * Copyright (C) 1999-2007 <NAME> All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to de...
705
330
# # Dummy solver class, for empty models # import pybamm import numpy as np class DummySolver(pybamm.BaseSolver): """Dummy solver class for empty models. """ def __init__(self): super().__init__() self.name = "Dummy solver" def _integrate(self, model, t_eval, inputs_dict=None): "...
482
747
// // events.h // Algorithms - events // // Created by YourtionGuo on 25/04/2017. // Copyright © 2017 Yourtion. All rights reserved. // #ifndef EVENTS_H #define EVENTS_H #include <stdlib.h> #include "queue.h" /** 事件 */ typedef struct Event_ { int type; } Event; /** 将要处理的事件入队 - O(1) @param events 事...
321
5,169
<reponame>Gantios/Specs { "name": "EstimoteMirrorCore", "version": "0.1.4", "summary": "Estimote MirrorCore SDK is responsible for the communication between the phone and Mirror.", "description": "Estimote MirrorCore SDK is responsible for the communication between the phone and Mirror.", "homepage": "https:/...
285
348
{"nom":"Dannemois","circ":"2ème circonscription","dpt":"Essonne","inscrits":662,"abs":309,"votants":353,"blancs":2,"nuls":1,"exp":350,"res":[{"nuance":"MDM","nom":"<NAME>","voix":115},{"nuance":"LR","nom":"<NAME>","voix":113},{"nuance":"FN","nom":"Mme <NAME>","voix":50},{"nuance":"FI","nom":"M. <NAME>","voix":38},{"nua...
255
841
package org.jboss.resteasy.test.response.resource; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; import jakarta.ws.rs.core.Response; @Path(value = "/GetTest") public class MethodDefaultResource { static String html_content = "<html>" + "<head><title>CTS-get text/html...
471
679
<reponame>Grosskopf/openoffice<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyrig...
4,794
3,372
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
1,132
634
#pragma once class m_IDirectSound3DBuffer8 : public IDirectSound3DBuffer8, public AddressLookupTableDsoundObject { private: LPDIRECTSOUND3DBUFFER8 ProxyInterface; public: m_IDirectSound3DBuffer8(LPDIRECTSOUND3DBUFFER8 pSound8) : ProxyInterface(pSound8) { LOG_LIMIT(3, "Creating interface " << __FUNCTION__ << " ("...
845
809
/** * @file * * @date Mar 29, 2018 * @author <NAME> */ #ifndef SRC_DRIVERS_VIDEO_LYNXFB_LYNXFB_H_ #define SRC_DRIVERS_VIDEO_LYNXFB_LYNXFB_H_ #include <stdint.h> #include <stddef.h> /* please use revision id to distinguish sm750le and sm750*/ #define LYNXFB_SPC_SM750 0 #define LYNXFB_SPC_SM712 ...
1,722
942
<gh_stars>100-1000 r"""Efficient kernel change point detection (dynamic programming)""" from ruptures.base import BaseEstimator from ruptures.costs import cost_factory from ruptures.utils import from_path_matrix_to_bkps_list, sanity_check from ruptures.exceptions import BadSegmentationParameters import numpy as np fr...
3,066
2,628
from __future__ import absolute_import, print_function, division import unittest from datetime import datetime, date, time from pony.orm.tests.testutils import raises_exception from pony.converting import str2time class TestTimeParsing(unittest.TestCase): def test_time_1(self): self.assertEqual(str2time...
2,950
1,687
<reponame>agnes-yang/LeetCode-Solutions-in-Good-Style public class Solution5 { // 方法三:对暴力方法的优化 // 思路:我们只关心之前(不包括今天)看到的最低股价,时间复杂度:O(N) public int maxProfit(int[] prices) { int len = prices.length; if (len < 2) { return 0; } int res = 0; // 表示在当前位置之前的最小值,...
434
8,664
<reponame>P1umer/ChakraCore<filename>pal/inc/assert_only.h //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. ...
487
543
<filename>src/ui/gpaste-ui-panel-history.c /* * This file is part of GPaste. * * Copyright (c) 2010-2018, <NAME> <<EMAIL>> */ #include <gpaste-ui-panel-history.h> #include "gpaste-gtk-compat.h" struct _GPasteUiPanelHistory { GtkListBoxRow parent_instance; }; typedef struct { GPasteClient *client; G...
2,148
1,163
<filename>iree/tools/iree-translate-main.cc<gh_stars>1000+ // Copyright 2019 The IREE Authors // // Licensed 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 #include "iree/tools/iree_translate_li...
154
762
<gh_stars>100-1000 package com.wsk.service; import com.wsk.pojo.Specific; import java.util.List; /** * Created by wsk1103 on 2017/5/13. */ public interface SpecificeService { int deleteByPrimaryKey(Integer id); int insert(Specific record); int insertSelective(Specific record); Specific selectByP...
162
906
<reponame>SizableShrimp/Mixin /* * This file is part of Mixin, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated docu...
1,317
3,282
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.download; import android.app.Activity; import android.app.DownloadManager; import android.content.Context; import and...
13,826
320
<reponame>sdsnatcher73/openMSX #include "catch.hpp" #include "IterableBitSet.hh" #include "ranges.hh" #include <iostream> #include <vector> template<size_t N> void expect(const IterableBitSet<N>& s, const std::vector<size_t>& expected) { auto it = expected.begin(); s.foreachSetBit([&](size_t i) { REQUIRE(it != exp...
1,759
600
#ifndef _OPENBOR_ICON_32X32_PNG_H_ #define _OPENBOR_ICON_32X32_PNG_H_ static const struct { size_t size; unsigned char data [1900]; } openbor_icon_32x32_png = { 1900, "\x89""PNG""\15\12\32\12\0\0\0\15""IHDR""\0\0\0\40\0\0\0\40\10\6\0\0\0""szz""\xF4\0\0\0\1""sRGB""\0\xAE" "\xCE\34\xE9\0\0\0\11""pHYs""\0\0\13\23\0\0\...
5,597
364
<filename>tuple/src/template/generated/com/linkedin/dagli/tuple/TupleValue7.java // AUTOGENERATED CODE. DO NOT MODIFY DIRECTLY! Instead, please modify the tuple/TupleValueX.ftl file. // See the README in the module's src/template directory for details. package com.linkedin.dagli.tuple; /** * An interface for retrie...
163
2,226
<gh_stars>1000+ from .yolox_mode_switch_hook import YOLOXModeSwitchHook __all__ = ['YOLOXModeSwitchHook']
43
1,006
<gh_stars>1000+ #pragma once #include <atomic> struct MemoryModel { enum { // No barriers or synchronization. RELAXED = __ATOMIC_RELAXED, // Data dependency only for both barrier and synchronization with another thread. CONSUME = __ATOMIC_...
649
764
<filename>erc20/0xF7461C8D8E469e9c41a9013dC09Ba8AbED66ef65.json {"symbol": "CTAT","address": "0xF7461C8D8E469e9c41a9013dC09Ba8AbED66ef65","overview":{"en": "Cryptassist will simplify the way crypto is used. With one login on either your web or mobile device, you are able to access everything."},"email": "<EMAIL>","webs...
181
1,011
<filename>Tools/PartioViewer/main.cpp<gh_stars>1000+ #include "SPlisHSPlasH/Common.h" #include <iostream> #include "Utilities/Timing.h" #include "Utilities/Counting.h" #include "PartioViewer.h" // Enable memory leak detection #ifdef _DEBUG #ifndef EIGEN_ALIGN #define new DEBUG_NEW #endif #endif INIT_LOGGING INIT_T...
215
766
/* * Copyright 2008-2017 <NAME> * * See LICENCE for the full copyright terms. */ #include <assert.h> #include <stddef.h> #include <fsm/fsm.h> #include <adt/alloc.h> #include <adt/path.h> struct path * path_push(const struct fsm_alloc *a, struct path **head, fsm_state_t state, char c) { struct path *new; ass...
297
1,137
<reponame>jkost/gctoolkit // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. package com.microsoft.gctoolkit.event; public class SurvivorMemoryPoolSummary { private final long occupancyBeforeCollection; private final long occupancyAfterCollection; private final long size; publ...
348
4,283
{ "instance": { "hazelcast-client": { "load-balancer": { "type": "invalid" } } }, "error": { "schemaLocation": "#/definitions/LoadBalancer", "pointerToViolation": "#/hazelcast-client/load-balancer", "causingExceptions": [{ "schemaLocation": "#/definitions/LoadBalancer...
261
471
///////////////////////////////////////////////////////////////////////////// // Name: src/os2/statline.cpp // Purpose: OS2 version of wxStaticLine class // Author: <NAME> // Created: 10/23/99 // Copyright: (c) 1999 <NAME> // Licence: wxWindows licence /////////////////////////////////////////...
1,497
2,151
<gh_stars>1000+ #!/usr/bin/env python # 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. import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '../../..')) import json5_generator impor...
2,261
528
#include "gtest/gtest.h" #include "commonMacros.h" class ZfpArrayConstructTest : public ::testing::Test { protected: virtual void SetUp() { size_t num_64bit_entries = DIV_ROUND_UP(ZFP_HEADER_SIZE_BITS, CHAR_BIT * sizeof(uint64)); buffer = new uint64[num_64bit_entries]; bs = stream_open(buffer, num_64bit...
314
1,009
/* * * The contents of this file are subject to the Initial * Developer's Public License Version 1.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.ibphoenix.com/idpl.html. * * Software distribute...
1,315
1,615
// // MLNUITypeUtil.h // MLNUI // // Created by MoMo on 2018/9/19. // #import <Foundation/Foundation.h> #import "MLNUIStaticExportProtocol.h" @interface MLNUITypeUtil : NSObject <MLNUIStaticExportProtocol> @end
92
777
<reponame>google-ar/chromium // Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/utility/media_galleries/pmp_column_reader.h" #include <stddef.h> #include <stdint.h> #include <cstring> #i...
2,381
764
<gh_stars>100-1000 {"symbol": "KORE","address": "0xA866F0198208Eb07c83081d5136BE7f775c2399e","overview":{"en": "KORE is a non-inflationary cryptocurrency with autonomous profit generation."},"email": "<EMAIL>","website": "https://kvault.finance/","state": "NORMAL","links": {"blog": "https://medium.com/kvault-finance","...
150
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 * ...
921
372
<gh_stars>100-1000 /* * 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 ...
1,398
2,389
package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; import java.lang.Boolean; public class V1EndpointConditionsBuilder extends io.kubernetes.client.openapi.models.V1EndpointConditionsFluentImpl<io.kubernetes.client.openapi.models.V1EndpointConditio...
1,113
4,047
#include <stdio.h> int some_symbol (void); int main () { int ret = some_symbol (); if (ret == 1) return 0; fprintf (stderr, "ret was %i instead of 1\n", ret); return -1; }
80
1,452
<filename>docs/add_custom_css.py # Makes Sphinx create a <link> to feedparser.css in the HTML output def setup(app): app.add_css_file('feedparser.css')
55
474
package org.javacord.api.entity.server.invite; /** * An enum with all target user types. */ public enum TargetUserType { STREAM(1), UNKNOWN(-1); /** * The id of the target user type. */ private final int id; /** * Creates a new target user type. * * @param id The id of...
433
16,461
// Copyright 2018-present 650 Industries. All rights reserved. #import <ExpoModulesCore/EXSingletonModule.h> #import <ExpoModulesCore/EXLogHandler.h> @interface EXReactLogHandler : EXSingletonModule <EXLogHandler> @end
70
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. #ifndef CHROMEOS_SERVICES_DEVICE_SYNC_FAKE_CRYPTAUTH_FEATURE_STATUS_SETTER_H_ #define CHROMEOS_SERVICES_DEVICE_SYNC_FAKE_CRYPTAUTH_FEATURE_STATUS_SETTER_H...
1,243
333
<filename>src/main/java/com/alipay/api/domain/CountInfo.java package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 计数信息 * * @author auto create * @since 1.0, 2017-11-29 17:17:03 */ public class CountInfo extends AlipayObject { pri...
478
1,374
<filename>core-lib/es6/src/main/java/def/dom/HTMLObjectElement.java package def.dom; @jsweet.lang.Extends({GetSVGDocument.class}) public class HTMLObjectElement extends HTMLElement { /** * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object ...
1,591
764
<reponame>freeunion1possible/sia-gateway<gh_stars>100-1000 /*- * << * sag * == * Copyright (C) 2019 sia * == * 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.apach...
1,026
14,668
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_ #define PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_ #include <stdint.h> #include "...
359
400
/* * v4l2_device.h - v4l2 device * * Copyright (c) 2014-2015 Intel Corporation * * 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,851
581
<gh_stars>100-1000 int i = 42; int main() { int j = 12; j = i; i = 10; return i; }
47
413
<reponame>phanan/kupo { "license": "MIT", "scripts": { "lint": "eslint resources/assets/js --ext=js,vue", "dev": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "watch": "yarn dev --watch", "hot...
544
522
#ifdef RTP_SOCKETTYPE_WINSOCK #include <winsock2.h> #include <ws2tcpip.h> #ifndef _WIN32_WCE #include <sys/types.h> #endif // !_WIN32_WCE #else #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #endif // RTP_SOCKETTYPE_WINSOCK int main(void) { int testval; struct ip_mreq mreq,mreq2; ...
213
2,645
<filename>src/test/java/org/springframework/data/elasticsearch/repository/support/SimpleElasticsearchRepositoryIntegrationTests.java /* * Copyright 2013-2021 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 ...
7,703
1,131
<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 # "License"...
7,922
1,587
<filename>spring-boot/spring-boot-testing/src/main/java/io/reflectoring/customer/business/CustomerService.java package io.reflectoring.customer.business; public class CustomerService { }
55
348
<filename>docs/data/leg-t1/061/06101421.json {"nom":"Saint-Mars-d'Egrenne","circ":"1ère circonscription","dpt":"Orne","inscrits":535,"abs":280,"votants":255,"blancs":11,"nuls":5,"exp":239,"res":[{"nuance":"DVD","nom":"Mme <NAME>","voix":96},{"nuance":"LR","nom":"<NAME>","voix":48},{"nuance":"SOC","nom":"M. <NAME>","voi...
317
521
/* ***** 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.org/MPL/ * ...
8,065
1,694
<reponame>CrackerCat/iWeChat // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <MMCommon/WXPBGeneratedMessage.h> @class BaseRequest, NSString, SKBuiltinBuffer_t, SKBuiltinString_t; ...
677
1,094
/** * Copyright (c) 2015 <NAME> <<EMAIL>> * * 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 ...
4,119
412
/* Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
11,896
588
<filename>tests/actions/base/tests.py import pytest from shortcuts.actions.base import ( BaseAction, BooleanField, ChoiceField, FloatField, IntegerField, ArrayField, VariablesField, ) class TestBaseAction: def test_get_parameters(self): base_action = BaseAction() base_...
2,047
656
""" Tests for the build model database migrations """ from django_test_migrations.contrib.unittest_case import MigratorTestCase from InvenTree import helpers class TestForwardMigrations(MigratorTestCase): """ Test entire schema migration sequence for the build app """ migrate_from = ('build', helpe...
1,381
1,195
<reponame>Hello-World-Test12/pymatting from pymatting.util.util import trimap_split from pymatting.laplacian.cf_laplacian import cf_laplacian from pymatting.preconditioner.ichol import ichol from pymatting.solver.cg import cg import numpy as np def estimate_alpha_cf( image, trimap, preconditioner=None, laplacian_...
1,043
372
/* * 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 ...
2,558
3,215
<reponame>listuser/jc [{"type":"reply","destination_ip":"fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b","sent_bytes":56,"pattern":"0xabcd","timestamp":null,"response_bytes":64,"response_ip":"fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b","icmp_seq":1,"ttl":59,"time_ms":27.9,"duplicate":false},{"type":"reply","destination_ip":"fd00...
2,600
1,136
#! /usr/bin/env python # coding=utf-8 import redis from multiprocessing import Process, Queue import unittest KIDS_HOST = {'host': 'localhost', 'port': 3388} num_process = 10 def subscriber(queue,topics): red = redis.StrictRedis(**KIDS_HOST) red = red.pubsub() for topic in topics: red.subscribe(to...
1,700
514
<reponame>i-Taozi/MAVEN_FORK_TEST_Trigger package no.priv.garshol.duke.comparators; import no.priv.garshol.duke.Comparator; /** * An implementation of the Levenshtein distance metric. This is a * fairly complicated metric, and there are a number of different ways * to implement it, with different performance char...
4,153
886
#ifndef BOOST_METAPARSE_V1_IMPL_SIZE_HPP #define BOOST_METAPARSE_V1_IMPL_SIZE_HPP // Copyright <NAME> (<EMAIL>) 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/metaparse/confi...
1,006
852
<gh_stars>100-1000 int main() { volatile int* a = new int[10]; return a[0]; }
35
5,279
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,896
335
/* Copyright (c) 2020 Themaister * * 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, publish, *...
631
316
<reponame>roblabs/maplibre-gl-native // This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #pragma once #include "layer.hpp" #include "../transition_options.hpp" #include <mbgl/layermanager/fill_layer_factory.hpp> #include <mbgl/style/layers/fill_layer.hpp> #include <jni/jni.hpp>...
1,078
348
<filename>docs/data/leg-t2/02B/02B02097.json {"nom":"Costa","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":63,"abs":18,"votants":45,"blancs":2,"nuls":0,"exp":43,"res":[{"nuance":"REM","nom":"<NAME>","voix":26},{"nuance":"REG","nom":"<NAME>","voix":17}]}
112
373
/** @file CRC16 calculation routines. Copyright (c) 2021 <NAME> All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Uefi.h> STATIC CONST UINT16 gCrc16LookupTable[256] = { 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf, 0x8c48, 0x9dc1, 0xaf5a, 0xbed...
1,885
313
<gh_stars>100-1000 // // YBLCreditsPayViewController.h // YC168 // // Created by 乔同新 on 2017/3/25. // Copyright © 2017年 乔同新. All rights reserved. // #import "YBLMainViewController.h" #import "YBLCreditsPayViewModel.h" @interface YBLCreditsPayViewController : YBLMainViewController @property (nonatomic, strong) YB...
141
649
package net.serenitybdd.junit.runners; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import java.util.HashSet; import java.util.Set; @XmlRootElement(name="rerunnableClass")...
320
1,199
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
2,755
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license...
826
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Abuse", "definitions": [ "Use (something) to bad effect or for a bad purpose; misuse.", "Make excessive and habitual use of (alcohol or drugs, especially illegal ones)", "Treat with cruelty or violence, especially regularly or repeatedly.", ...
210
661
<reponame>ivanlardis/dagger-reflect<gh_stars>100-1000 package com.example; import dagger.Component; import dagger.MembersInjector; import dagger.Module; import dagger.Provides; import javax.inject.Inject; @Component(modules = MemberInjectorGenericType.Module1.class) interface MemberInjectorGenericType { MembersInje...
183
2,729
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypes.h" #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) #include "SkData.h" #include "SkImageGenerator.h" #include <memory> namespace SkImageGenerat...
176
1,664
/* * 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 ...
936
535
<reponame>tinocyngn/mynewt-core<filename>fs/nffs/selftest/src/testcases/cache_large_file_test.c /* * 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...
1,588
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...
9,629
778
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
3,463
2,146
#include "termcolor/termcolor.hpp" #include <iostream> using namespace termcolor; int main(int, char**) { std::cout << blue << on_green << "Blue in Green" << reset << " is the third tune on Miles " "Davis' 1959 album, Kind of " << blue << "Blue." << reset << std::endl; return 0; }
113
970
<reponame>tensorflow/transform<gh_stars>100-1000 # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
1,520
1,177
[ { "url": "https://docs.python.org/3/reference/expressions.html#comparisons", "description": "Comparisons in Python (Python language reference)" }, { "url": "https://www.tutorialspoint.com/python/python_basic_operators.htm", "description": "Python basic operators on Tutorials Point" }, { ...
680