max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,724
#include <libmath/Vec2.h> #include "tests/Driver.h" TEST(math_vec2_add) { Math::Vec2f a{2.0f, 1.0f}; Math::Vec2f b{3.0f, 4.0f}; auto c = a + b; Assert::equal(c.x(), 5.0f); Assert::equal(c.y(), 5.0f); } TEST(math_vec2_sub) { Math::Vec2f a{2.0f, 1.0f}; Math::Vec2f b{3.0f, 4.0f}; auto...
330
416
<reponame>bakedpotato191/sdks<gh_stars>100-1000 // // INSpeakableString.h // Intents // // Copyright (c) 2016-2017 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <Intents/INSpeakable.h> NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.2)) @interface INSpeaka...
491
1,848
<reponame>j-channings/rust-bindgen // bindgen-flags: --rustified-enum ".*" enum Foo { Bar = 1, Dupe = 1 };
54
561
<gh_stars>100-1000 // // Test for read_conf_file // #include <string> #include "gtest/gtest.h" #include "common/kafka/kafka_config.h" namespace kafka { TEST(KafkaConfigTest, ConfigFileTest) { ConfigMap configMap; std::string configFile = std::string("client_config.properties"); EXPECT_TRUE(KafkaConfig::read_...
420
8,468
#ifndef __NTDDPACKET #define __NTDDPACKET 1 #include "devioctl.h" /*#include <packon.h> */ struct _PACKET_OID_DATA { ULONG Oid; ULONG Length; UCHAR Data[1]; }; typedef struct _PACKET_OID_DATA PACKET_OID_DATA, *PPACKET_OID_DATA; /*#include <packoff.h> */ #define FILE_DEVICE_PROTOCOL ...
660
1,241
/* * Copyright (c) 2017. * * 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 writ...
3,692
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Roquecor","circ":"2ème circonscription","dpt":"Tarn-et-Garonne","inscrits":281,"abs":122,"votants":159,"blancs":25,"nuls":3,"exp":131,"res":[{"nuance":"RDG","nom":"Mme <NAME>","voix":97},{"nuance":"FN","nom":"<NAME>","voix":34}]}
117
575
#!/usr/bin/env python # 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. import json import multiprocessing import os import platform import subprocess import sys import common def is_linux(): return sys...
1,528
7,886
<filename>litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/completion/RequiredPropLookupElement.java /* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
725
3,602
from api.models import * from workflow import general, direct, direct_list from core import utils def parse_special_line(line): parts = line.split(';;') jsonl = {} for part in parts: key = part.split('|')[0].lower() value = ''.join(part.split('|')[1:]) jsonl[key] = value return...
4,667
6,557
{ "dragDescriptionKeyboard": "Sürüklemeyi başlatmak için Enter'a basın.", "dragDescriptionTouch": "Sürüklemeyi başlatmak için çift tıklayın.", "dragDescriptionVirtual": "Sürüklemeyi başlatmak için tıklayın.", "dragItem": "{itemText}’i sürükle", "dragSelectedItems": "Sürükle {count, plural, one {# seçili öge} ...
722
852
<reponame>ckamtsikis/cmssw /// /// \class l1t::Stage1Layer2HFRingSumAlgorithm /// /// Description: interface for MP firmware /// /// Implementation: /// /// \author: <NAME> /// // #ifndef Stage1Layer2HFRingSumAlgorithm_h #define Stage1Layer2HFRingSumAlgorithm_h #include "DataFormats/L1TCalorimeter/interface/CaloRegi...
418
2,111
/* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. 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 * notice,...
2,033
1,225
package com.d.ui.view.advertswitcher; import android.annotation.TargetApi; import android.app.Activity; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.View; import com.d.lib.common.util.ViewHelper; import com.d.lib.ui.view.advertswitcher.AdvertSwitch...
1,102
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 ...
3,405
570
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_TabDrawer_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_TabDrawer_TestsVersionString[];
56
2,151
/* * This file is part of Wireless Display Software for Linux OS * * Copyright (C) 2014 Intel Corporation. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 o...
2,055
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...
8,821
16,989
<reponame>kjlubick/bazel // Copyright 2016 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/LICENSE-2.0 // // U...
2,777
691
// 2019/06/13 - modified by <NAME> // - added TaskView interface // // 2019/04/17 - created by <NAME> #pragma once #include <iostream> #include <sstream> #include <vector> #include <cstdlib> #include <cstdio> #include <atomic> #include <memory> #include <deque> #include <optional> #include <thread> #include <algorit...
2,214
852
#ifndef SimG4Core_BeginOfEvent_H #define SimG4Core_BeginOfEvent_H #include "G4Event.hh" class BeginOfEvent { public: BeginOfEvent(const G4Event* tEvent) : anEvent(tEvent) {} const G4Event* operator()() const { return anEvent; } private: const G4Event* anEvent; }; #endif
108
742
package org.support.project.knowledge.control.open; import org.support.project.di.DI; import org.support.project.di.Instance; import org.support.project.knowledge.control.Control; import org.support.project.web.boundary.Boundary; import org.support.project.web.control.service.Get; @DI(instance = Instance.Prototype) p...
200
1,275
<reponame>ananthdurai/pinot /** * 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...
6,437
16,461
#import "EXEnvironment.h" #import <Foundation/Foundation.h> @interface EXEnvironment (Tests) - (void)_loadShellConfig:(NSDictionary *)shellConfig withInfoPlist:(NSDictionary *)infoPlist withExpoKitDevUrl:(NSString *)expoKitDevelopmentUrl withEmbeddedManifest:(NSDictionary *)embeddedManifest ...
195
648
<reponame>swrobel/fhir {"resourceType":"DataElement","id":"MeasureReport.group.stratifier.stratum.measureScore","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/MeasureReport.group.stratifier.stratum.measureScore","status":"draft","experimental":true,"stringency":"fully-spec...
209
72,551
<reponame>jerodji/swift<filename>lib/Sema/TypeCheckAvailability.cpp //===--- TypeCheckAvailability.cpp - Availability Diagnostics -------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache Licen...
51,683
398
<filename>src/main/java/com/ruiyun/jvppeteer/core/page/Accessibility.java package com.ruiyun.jvppeteer.core.page; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.ruiyun.jvppeteer.core.Constant; import com.ruiyun.jvppeteer.protocol.accessbility.Seria...
1,485
589
<filename>inspectit.shared.cs/src/test/java/rocks/inspectit/shared/cs/ci/business/valuesource/impl/HttpParameterValueSourceTest.java<gh_stars>100-1000 package rocks.inspectit.shared.cs.ci.business.valuesource.impl; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import...
1,668
3,200
<reponame>PowerOlive/mindspore # Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
1,491
432
/* $FreeBSD: head/sys/dev/usb/template/usb_template_mouse.c 246125 2013-01-30 16:05:54Z hselasky $ */ /*- * Copyright (c) 2010 <NAME>. 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. Re...
2,519
2,918
import re import json import fnmatch import sys config = json.load(open('config.json')) test_error_set = set(config['TestErrorMap'].keys()) obsolete_disabled_tests = set() all_tests = set() failing_tests = set() unimpl_tests = set() disabled_tests = set() passed_tests = set() for line in sys.stdin: m = re.match(...
575
5,383
<filename>test/ext/mypy/files/inspect.py<gh_stars>1000+ """ test inspect() however this is not really working """ from sqlalchemy import Column from sqlalchemy import create_engine from sqlalchemy import inspect from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy.engine.reflection import Insp...
303
1,037
<reponame>fgdadiaonan/android-open-project-demo<filename>sticky-header-listview-demo-sunfusheng/app/src/main/java/com/sunfusheng/StickyHeaderListView/model/OperationEntity.java package com.sunfusheng.StickyHeaderListView.model; import java.io.Serializable; /** * Created by sunfusheng on 16/4/20. */ public class Ope...
425
2,151
// Copyright (c) 2012 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/ui/ash/chrome_browser_main_extra_parts_ash.h" #include <utility> #include "ash/public/cpp/ash_switches.h" #include "ash/pub...
4,095
569
package us.koller.cameraroll.ui; import android.annotation.SuppressLint; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.drawable.Animatable; import android.graphics.drawable.AnimatedVectorDrawable; import android.graphics.drawable.Drawable; import android.net.Uri; import android...
9,003
828
<filename>hasor-db/src/main/java/net/hasor/db/dal/dynamic/nodes/ArrayDynamicSql.java<gh_stars>100-1000 /* * Copyright 2008-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 c...
1,106
852
<gh_stars>100-1000 /* <NAME>, <NAME>, <NAME> (C) JINR/Dubna <EMAIL>, <EMAIL>, <EMAIL> November. 2, 2005 */ #ifndef HADRONDECAYER_INCL...
342
21,684
// Copyright 2010-2014 RethinkDB, all rights reserved. #include "rdb_protocol/geo/distances.hpp" #include "rdb_protocol/geo/ellipsoid.hpp" #include "rdb_protocol/geo/exceptions.hpp" #include "rdb_protocol/geo/geojson.hpp" #include "rdb_protocol/geo/geo_visitor.hpp" #include "rdb_protocol/geo/karney/geodesic.h" #includ...
2,643
4,857
<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...
24,228
442
<filename>jmqtt-mqtt/src/main/java/org/jmqtt/mqtt/protocol/impl/PubCompProcessor.java package org.jmqtt.mqtt.protocol.impl; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.mqtt.MqttMessage; import org.jmqtt.mqtt.MQTTConnection; import org.jmqtt.mqtt.netty.MqttNettyUtils; import org.jmqtt.m...
331
3,075
package org.powermock.core.classloader; import org.assertj.core.api.ThrowableAssert.ThrowingCallable; import org.junit.Before; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter...
4,337
13,885
/* * Copyright (C) 2018 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
298
5,133
<reponame>Saljack/mapstruct /* * 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.inheritfromconfig; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.factory.Mapper...
248
839
<filename>microprofile-opentracing/src/main/java/org/wildfly/quickstarts/microprofile/opentracing/ExplicitlyTracedBean.java /* * JBoss, Home of Professional Open Source * Copyright 2020, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distributi...
513
2,453
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <AppKit/NSView.h> @class NSString; @interface IDEAnalyzeSubActionPlaceholderView : NSView { NSString *_placeholderMessage; } - (void).cxx_destruct; @property(copy) NSSt...
160
1,108
<filename>rest/tests/test_rest_service.py<gh_stars>1000+ ''' Offline tests ''' from unittest import TestCase from mock import MagicMock from mock import mock_open from rest_service import RestService from rest_service import (log_call, error_catch, validate_json, validate_schema) import mock i...
14,027
782
<filename>ch04/src/main/java/coprocessor/RowCountEndpoint.java package coprocessor; import com.google.protobuf.RpcCallback; import com.google.protobuf.RpcController; import com.google.protobuf.Service; import coprocessor.generated.RowCounterProtos; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.Ce...
1,393
3,913
<gh_stars>1000+ package cn.iocoder.yudao.framework.sms.config; import cn.iocoder.yudao.framework.sms.core.client.SmsClientFactory; import cn.iocoder.yudao.framework.sms.core.client.impl.SmsClientFactoryImpl; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration...
213
679
<filename>main/ucb/source/ucp/webdav/SerfSession.hxx<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 informatio...
5,074
4,036
int x; x == 4; // most likely = was intended. Otherwise this statement has no effect. ...
25
925
<gh_stars>100-1000 package org.openni; /** * The CoordinateConverter class converts points between the different coordinate systems. * * <b>Depth and World coordinate systems</b> * * OpenNI applications commonly use two different coordinate systems to represent depth. These two * systems are referred to as Dep...
3,020
584
<gh_stars>100-1000 package com.mercury.platform; import com.mercury.platform.files.FileDescriptor; import java.io.Serializable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Spliterator; import java.util.function.Consumer; public class PatchDescriptor<E extends FileDe...
289
1,275
/** * 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...
959
698
<reponame>joschu/c #include "execution.h" #include <cstdio> #include <queue> #include <set> #include <vector> #include "util/ThreadPool.h" #include "unistd.h" namespace cgt { using std::vector; using std::atomic; using std::mutex; // ================================================================ // Sequential inte...
4,165
672
/* * Copyright (c) 2013 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this fi...
13,840
3,102
<filename>clang/test/CodeGen/transparent-union-redecl.c // RUN: %clang_cc1 -Werror -triple i386-linux -emit-llvm -o - %s | FileCheck %s // Test that different order of declarations is acceptable and that // implementing different redeclarations is acceptable. // rdar://problem/34949329 typedef union { int i; floa...
678
416
/* * Copyright (c) 2007 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * complia...
2,109
2,323
#ifndef CORSIX_TH_TH_STRINGS_H_ #define CORSIX_TH_TH_STRINGS_H_ #include "config.h" #include <cwctype> #include <stdexcept> constexpr unsigned int invalid_char_codepoint = 0xFFFD; constexpr unsigned int ideographic_space_codepoint = 0x3000; size_t discard_leading_set_bits(uint8_t& byte) { size_t count = 0; whil...
2,052
12,824
package anns; import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) @Repeatable(Ann_0.Container.class) public @interface Ann_0 { String name(); String value(); @Retention(RetentionPolicy.RUNTIME) public static @interface Container { public Ann_0[] value() default {}; } }
115
1,899
<gh_stars>1000+ #pragma once #include <math.h> #include <float.h> #include <opencv2/opencv.hpp> #include "Types.h" namespace bgslibrary { namespace algorithms { namespace lb { class BGModel { public: BGModel(int width, int height); virtual ~BGModel(); void Ini...
382
1,337
<gh_stars>1000+ /* * Copyright (c) 2008-2016 Haulmont. * * 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...
710
34,359
/*++ Copyright (c) Microsoft Corporation Licensed under the MIT license. Module Name: - SettingContainer Abstract: - This is a XAML container that wraps settings in the Settings UI. It interacts with the inheritance logic from the TerminalSettingsModel and represents it in the Settings UI. Author(s):...
556
777
<reponame>google-ar/chromium // Copyright (c) 2012 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 UI_GL_GL_BINDINGS_H_ #define UI_GL_GL_BINDINGS_H_ // Includes the platform independent and platform dependent GL...
8,959
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Bonneuil-sur-Marne","circ":"1ère circonscription","dpt":"Val-de-Marne","inscrits":8972,"abs":5484,"votants":3488,"blancs":83,"nuls":22,"exp":3383,"res":[{"nuance":"COM","nom":"M. <NAME>","voix":1112},{"nuance":"REM","nom":"<NAME>","voix":825},{"nuance":...
369
1,162
package io.digdag.server.rs; import com.google.common.base.Optional; public class QueryParamValidator { public static int validatePageSize(Optional<Integer> pageSize, int maxPageSize, int defaultPageSize) throws IllegalArgumentException { if (!pageSize.isPresent()) { return defaultPageSize...
354
880
<filename>logback-android/src/main/java/ch/qos/logback/classic/joran/action/FindIncludeAction.java /** * Copyright 2019 <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 * * ht...
811
8,828
<filename>codelabs/gke-source-to-prod/front50/pipelines/205a774a-2869-452a-9050-5fb95ae6624a/specification.json {"expectedArtifacts":[{"defaultArtifact":{"kind":"default.gcs","name":"{%BUCKET_URI%}/manifests/frontend.yml","reference":"{%BUCKET_URI%}/manifests/frontend.yml","type":"gcs/object"},"id":"dfc04116-f241-4af7-...
1,278
515
<filename>docs/source/conf.py # Copyright (c) 2021-2022, InterDigital Communications, Inc # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted (subject to the limitations in the disclaimer # below) provided that the following conditions are met: # *...
1,157
364
// The MIT License (MIT) // Copyright (c) 2016, Microsoft // 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...
6,003
357
<filename>PsychSourceGL/Source/Common/PsychHID/PsychHIDGetCollections.c /* PsychToolbox3/Source/Common/PsychHID/PsychHIDGetCollections.c PROJECTS: PsychHID PLATFORMS: OSX AUTHORS: <EMAIL> awi <EMAIL> mk HISTORY: 5/11/03 awi Created. TO DO: */ #include "PsychHID.h" ...
2,798
399
<reponame>KirmesBude/REGoth-bs<gh_stars>100-1000 #pragma once #include "RTTIUtil.hpp" #include <components/UIFocusText.hpp> namespace REGoth { class RTTI_UIFocusText : public bs::RTTIType<UIFocusText, UIElement, RTTI_UIFocusText> { BS_BEGIN_RTTI_MEMBERS // This class should not be serialized BS_END_RTT...
211
504
package org.dayatang.cache.redis; import redis.clients.jedis.Jedis; /** * Created by yyang on 15/9/8. */ public interface JedisAction { void doInRedis(Jedis jedis); }
74
399
<filename>library/java/io/envoyproxy/envoymobile/engine/types/EnvoyStringAccessor.java package io.envoyproxy.envoymobile.engine.types; public interface EnvoyStringAccessor { /** * Called to retrieve a string from the Application */ String getEnvoyString(); }
84
348
{"nom":"Longuyon","circ":"3ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":4027,"abs":2669,"votants":1358,"blancs":19,"nuls":10,"exp":1329,"res":[{"nuance":"REM","nom":"<NAME>","voix":399},{"nuance":"FN","nom":"Mme <NAME>","voix":272},{"nuance":"LR","nom":"<NAME>","voix":179},{"nuance":"FI","nom":"M. <NAME>"...
335
931
<filename>bindgen/thread_db_wrapper.h #define _GNU_SOURCE #include <thread_db.h> #include <proc_service.h>
43
1,433
//****************************************************************** // // Copyright 2015 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
857
542
<filename>flink-redis/src/test/java/com/intsmaze/test/ShardedJedisPoolTemplate.java package com.intsmaze.test; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import redis.clients.jedis.*; public class ShardedJedisPoolTemplate { pub...
578
13,648
<filename>tests/micropython/kbd_intr.py # test the micropython.kbd_intr() function import micropython try: micropython.kbd_intr except AttributeError: print("SKIP") raise SystemExit # just check we can actually call it micropython.kbd_intr(3)
100
16,989
// Copyright 2015 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/LICENSE-2.0 // // Unless required by appl...
1,150
348
{"nom":"<NAME>","circ":"3ème circonscription","dpt":"Morbihan","inscrits":1707,"abs":846,"votants":861,"blancs":37,"nuls":35,"exp":789,"res":[{"nuance":"REM","nom":"<NAME>","voix":504},{"nuance":"FI","nom":"Mme <NAME>","voix":285}]}
95
3,096
/* * Copyright 1999-2012 Alibaba 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 applicable la...
1,611
416
import org.simpleflatmapper.converter.ContextualConverterFactoryProducer; module org.simpleflatmapper.converter.protobuf { requires org.simpleflatmapper.util; requires org.simpleflatmapper.converter; requires protobuf.java; exports org.simpleflatmapper.converter.protobuf; provi...
173
368
<filename>src/com/oltpbenchmark/benchmarks/auctionmark/procedures/NewItem.java<gh_stars>100-1000 /****************************************************************************** * Copyright 2015 by OLTPBenchmark Project * * ...
6,292
3,269
# Time: O(m + n) # Space: O(m + n) class Solution(object): def fairCandySwap(self, A, B): """ :type A: List[int] :type B: List[int] :rtype: List[int] """ diff = (sum(A)-sum(B))//2 setA = set(A) for b in set(B): if diff+b in setA: ...
216
852
import FWCore.ParameterSet.Config as cms process = cms.Process("makeSD") process.configurationMetadata = cms.untracked.PSet( version = cms.untracked.string('$Revision: 1.1 $'), annotation = cms.untracked.string('Onia central skim'), name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMS...
1,269
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
2,943
1,382
<filename>examples/firpfb_rrrf_example.c // firpf_rrrf_example.c - demonstrate poly-phase filter-bank as interpolator #include <stdlib.h> #include <stdio.h> #include "liquid.h" #define OUTPUT_FILENAME "firpfb_rrrf_example.m" int main(int argc, char*argv[]) { // options unsigned int M = 16; // interp...
990
335
package moze_intel.projecte.capability; import java.util.List; import java.util.function.Supplier; import javax.annotation.Nonnull; import javax.annotation.Nullable; import net.minecraft.item.ItemStack; import net.minecraft.nbt.CompoundNBT; import net.minecraft.util.Direction; import net.minecraftforge.common.capabili...
810
540
// File generated from our OpenAPI spec package com.stripe.model; public class SubscriptionScheduleCollection extends StripeCollection<SubscriptionSchedule> {}
38
3,372
<reponame>rbalamohan/aws-sdk-java /* * 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...
1,510
521
<reponame>Fimbure/icebox-1 /* $Id: VBoxNetCfg.cpp $ */ /** @file * VBoxNetCfg.cpp - Network Configuration API. */ /* * Copyright (C) 2011-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can red...
72,398
538
<gh_stars>100-1000 from vint.ast.node_type import NodeType from typing import Dict, Any, Optional # noqa: F401 import re CONFIG_COMMENT_PATTERN = re.compile(r'^\s*vint:\s*') POLICY_SWITCH_PATTERN = re.compile(r'(?:^|\s)[-+]\S+') NEXT_LINE_FLAG_PATTERN = 'next-line' class ConfigComment: def __init__(self, config_...
710
1,056
<filename>ide/xml.text/src/org/netbeans/modules/xml/text/completion/ElementResultItem.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF ...
1,596
1,484
{"data": [{"Vulnerability": {"CVSS": [], "Description": "", "FixedIn": [{"Name": "ansible-base", "NamespaceName": "alpine:3.13", "Version": "2.9.13-r0", "VersionFormat": "apk"}], "Link": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14330", "Metadata": {"NVD": {"CVSSv2": {"Score": 2.1, "Vectors": "AV:L/AC:L/A...
1,852
852
#ifndef SurveyInputTextReader_h #define SurveyInputTextReader_h // // Class to read in survey data from text file // // The format of the file is assumed to be: // // DetId AlignableObjectId dx sigma_x dy sigma_y dz sigma_z angle_x sigma(angle_x) ... // angle_y sigma(angle_y) angle_z sigma(angle_z) // Where all numbe...
334
939
/* Copyright 2021 Google LLC. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
1,927
575
// 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 CONTENT_PUBLIC_BROWSER_GPU_SERVICE_REGISTRY_H_ #define CONTENT_PUBLIC_BROWSER_GPU_SERVICE_REGISTRY_H_ #include <string> #include <utility> #incl...
312
1,662
<gh_stars>1000+ """ Test reactions more wrt dynamism. """ import gc import sys import weakref from flexx.util.testing import run_tests_if_main, skipif, skip, raises from flexx.event.both_tester import run_in_both, this_is_js from flexx.util.logging import capture_log from flexx import event loop = event.loop logger...
8,580
340
<reponame>nkumar04/concord-bft // Concord // // Copyright (c) 2019-2021 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in // compliance with the Apache 2.0 License. // // This product may include a number of subco...
2,848
1,375
<gh_stars>1000+ package com.vise.baseble.exception; import com.vise.baseble.common.BleExceptionCode; /** * @Description: 初始化异常 * @author: <a href="http://www.xiaoyaoyou1212.com">DAWI</a> * @date: 16/8/14 10:30. */ public class InitiatedException extends BleException { public InitiatedException() { sup...
159