max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
388
<gh_stars>100-1000 from unittest import TestCase from uuid import UUID, uuid4 from botframework.streaming.payloads import StreamManager from botframework.streaming.payloads.assemblers import PayloadStreamAssembler from botframework.streaming.payloads.models import Header class TestStreamManager(TestCase): def te...
1,474
11,433
<gh_stars>1000+ import torch import pytest from allennlp.common import Params from allennlp.modules.transformer import BiModalAttention @pytest.fixture def params_dict(): return { "hidden_size1": 6, "hidden_size2": 4, "combined_hidden_size": 16, "num_attention_heads": 2, "...
719
533
<reponame>Tiamat-Tech/pieces-alex-bainter<gh_stars>100-1000 { "title": "Oxalis 1", "makePiece": "./dist/esm.js", "image": "./image.png", "id": "oxalis-1", "artistId": "alex-bainter", "isRecordable": true, "tags": [ "acoustic", "calm" ], "releaseDate": "2020-03-31T00:00:00.000Z", "visualizati...
294
696
/* * Copyright (C) 2017 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.basics.index; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;...
2,326
4,054
// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package ai.vespa.hosted.plugin; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; /** * Sets suspension status for a Vespa application deployment. *...
228
14,793
<filename>weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/payscore/Location.java package com.github.binarywang.wxpay.bean.payscore; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 服务位置信息. * * @author doger.wa...
285
775
<reponame>opencv/openvino_training_extensions _base_ = [ '../../../submodule/samples/cfgs/models/backbones/resnet50.yaml', '../../../submodule/recipes/stages/_base_/models/detectors/vfnet.custom.py' ]
84
3,372
<gh_stars>1000+ /* * 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 * * ...
2,315
13,648
# test SyntaxError with := operator def test(code): try: print(eval(code)) except SyntaxError: print('SyntaxError') test("x := 1") test("((x, y) := 1)") # these are currently all allowed in MicroPython, but not in CPython test("([i := i + 1 for i in range(4)])") test("([i := -1 for i, j in [(...
187
5,169
<reponame>Gantios/Specs { "name": "LocalMeasureWidgetKit", "version": "0.1.1", "summary": "Quick and easy Local Measure widget integration.", "description": "This CocoaPod provides the ability to integrate Local Measure Widgets to your app quickly and easily.", "homepage": "https://github.com/localmeasure/Loc...
351
32,544
<filename>jackson-simple/src/test/java/com/baeldung/jackson/ignorenullfields/IgnoreNullFieldsUnitTest.java package com.baeldung.jackson.ignorenullfields; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParseException; i...
809
5,535
<filename>gpcontrib/gpcloud/include/s3log.h #ifndef __S3_LOG_H__ #define __S3_LOG_H__ #include "s3common_headers.h" #include "s3conf.h" #include "s3exception.h" // log level enum LOGLEVEL { EXT_FATAL, EXT_ERROR, EXT_WARNING, EXT_INFO, EXT_DEBUG }; // log type enum LOGTYPE { REMOTE_LOG, // log to remote UDP se...
660
998
<filename>Source/VoxelFoliage/Public/VoxelFoliageBlueprintLibrary.h // Copyright 2021 Phyronnaz #pragma once #include "CoreMinimal.h" #include "VoxelEnums.h" #include "VoxelIntBox.h" #include "VoxelFoliageSave.h" #include "VoxelInstancedMeshSettings.h" #include "Kismet/BlueprintFunctionLibrary.h" #include "...
901
640
<reponame>gxw1/review_the_national_post-graduate_entrance_examination<filename>books_and_notes/professional_courses/C++_Programming/sources/cpp_code/exam/Chapter2/2_3/2_3.cpp<gh_stars>100-1000 //2_3.cpp #include<iostream> using namespace std; int main() { int x, y; cout << "Enter x and y:"; cin >> x >> y; if (x !...
206
2,338
<filename>clang/test/InterfaceStubs/template-template-parm-decl.cpp // RUN: %clang_cc1 -o - -emit-interface-stubs %s | FileCheck %s // CHECK: --- !ifs-v1 // CHECK-NEXT: IfsVersion: 3.0 // CHECK-NEXT: Target: // CHECK-NEXT: Symbols: // CHECK-NEXT: ... template<template<typename...> class a> struct S6 { };
133
1,337
/* * 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 applicable law or agr...
463
774
<reponame>isaki/easymock /* * Copyright 2001-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 License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
2,386
466
package com.gykj.zhumulangma.home.bean; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.SerializedName; import java.util.List; /** * Author: Thomas.<br/> * Date: 2020/12/5 17:18<br/> * GitHub: https://github.com/TanZhiL<br/> * CSDN: https://blog.csdn.net/weixin_4270344...
1,305
3,034
<filename>log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.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 copyright ownershi...
5,332
1,652
<filename>redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/exception/BadRequestException.java package com.ctrip.xpipe.redis.console.exception; /** * http code:400 * @author shyin * * Aug 15, 2016 */ public class BadRequestException extends RedisConsoleRuntimeException{ private static final long se...
159
478
<filename>framework/include/minko/component/Skinning.hpp /* Copyright (c) 2014 Aerys 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...
2,136
806
package com.github.davidmoten.rx.jdbc; import com.github.davidmoten.guavamini.Preconditions; class ConnectionProviderBatch implements ConnectionProvider { private final int batchSize; private final ConnectionProvider cp; private ConnectionBatch con; ConnectionProviderBatch(ConnectionProvid...
309
1,799
// Copyright (c) 2019 PaddlePaddle 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...
5,647
2,151
<reponame>zipated/src // 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 COMPONENTS_UPDATE_CLIENT_ACTION_RUNNER_H_ #define COMPONENTS_UPDATE_CLIENT_ACTION_RUNNER_H_ #include <stdint.h> #include <...
555
512
package xyz.staffjoy.faraday.core.interceptor; import xyz.staffjoy.faraday.config.MappingProperties; import xyz.staffjoy.faraday.core.http.RequestData; public class NoOpPreForwardRequestInterceptor implements PreForwardRequestInterceptor { @Override public void intercept(RequestData data, MappingProperties ma...
103
15,577
#pragma once #include <QueryPipeline/SizeLimits.h> #include <QueryPipeline/ExecutionSpeedLimits.h> namespace DB { /** What limitations and quotas should be checked. * LIMITS_CURRENT - checks amount of data returned by current stream only (BlockStreamProfileInfo is used for check). * Currently it is used in root ...
306
4,283
<filename>hazelcast/src/main/java/com/hazelcast/collection/BaseQueue.java /* * 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 ...
1,238
2,151
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
374
347
<filename>app/src/main/java/com/spengilley/activityfragmentmvp/ui/main/presenters/IntroPresenter.java<gh_stars>100-1000 package com.spengilley.activityfragmentmvp.ui.main.presenters; import com.spengilley.activityfragmentmvp.ui.common.BaseFragmentPresenter; import com.spengilley.activityfragmentmvp.ui.main.views.Intr...
153
2,095
<filename>rsocket-core/src/test/java/io/rsocket/util/ByteBufPayloadTest.java package io.rsocket.util; import io.netty.buffer.Unpooled; import io.netty.util.IllegalReferenceCountException; import io.rsocket.Payload; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; public class ByteBufPayloadT...
910
479
__author__ = "<NAME>"
7
995
{ "examples": { "basic": "Basic Usage", "config": "Custom configuration" }, "lds": null }
43
10,225
<gh_stars>1000+ package io.quarkus.it.envers; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.UniqueConstraint; import org.hibernate.envers.Audited; @Entity @Table(...
319
892
{ "schema_version": "1.2.0", "id": "GHSA-gqcq-3xpw-m8xf", "modified": "2022-04-29T03:01:17Z", "published": "2022-04-29T03:01:17Z", "aliases": [ "CVE-2004-2360" ], "details": "Targem Battle Mages 1.0 allows remote attackers to cause a denial of service (infinite loop) via a UDP packet with incomplete d...
514
550
def setup(): from . import gridded_fits # noqa from . import astropy_table # noqa from . import hdf5 # noqa
49
751
import snoop import numpy as np import pandas as pd @snoop.snoop() def main(): arr = np.arange(10000) arr = arr.reshape((100, 100)) df = pd.DataFrame(arr) series = df[0] return series
90
4,234
{ "default": { "log": [ [1, "WARNING", "ParseStyle", "Image coordinates must be an array of four longitude latitude pairs"] ] } }
56
988
/* * 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,165
678
// // LKCoreBridge.h // Saily // // Created by <NAME> on 2019/7/20. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface LKCBObject : NSObject - (void)call_to_daemon_with:(NSString *)str; - (void)redirectConsoleLogToDocumentFolder; @end
110
3,486
<filename>titan-hadoop-parent/titan-hadoop-1/src/main/java/com/thinkaurelius/titan/hadoop/compat/h1/MapredJarConfigurer.java package com.thinkaurelius.titan.hadoop.compat.h1; import com.thinkaurelius.titan.hadoop.config.job.JobClasspathConfigurer; import org.apache.hadoop.mapreduce.Job; import java.io.IOException; p...
262
372
/* * 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 distributed under t...
1,257
315
/* * 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 n...
1,442
2,151
<filename>third_party/robolectric/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDownloadManager.java package org.robolectric.shadows; import android.app.DownloadManager; import android.database.Cursor; import android.net.Uri; import android.util.Pair; import java.util.ArrayList; import java...
2,861
2,757
<filename>AppPkg/Applications/Python/Python-2.7.2/Lib/xml/dom/__init__.py<gh_stars>1000+ """W3C Document Object Model implementation for Python. The Python mapping of the Document Object Model is documented in the Python Library Reference in the section on the xml.dom package. This package contains the following...
1,901
785
<reponame>mikhail-shibanov/servicetalk /* * Copyright © 2018 Apple Inc. and the ServiceTalk project 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/...
769
1,026
from bs4 import BeautifulSoup class HTMLTableToList(): def __init__(self, table_html): self.table_html = table_html def get_list(self): list_of_list = [] soup = BeautifulSoup(self.table_html,"lxml") table = soup.find('table') all_tr = table.findAll('tr') for tr in all_tr: current_row = [] all_th ...
232
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 ...
6,085
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...
812
313
# 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/LICENSE-2.0 # # Unless required by applicable la...
637
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 Naming...
478
2,151
<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. #ifndef CHROME_BROWSER_RESOURCE_COORDINATOR_SITE_CHARACTERISTICS_DATA_READER_H_ #define CHROME_BROWSER_RESOURCE_COORDINATOR_SITE_CHARACTER...
341
915
<filename>other/sockslib/src/main/java/sockslib/common/net/DatagramSocketMonitor.java package sockslib.common.net; import java.net.DatagramPacket; /** * @author <NAME> * @version 1.0 * @date Sep 23, 2015 11:37 AM */ public interface DatagramSocketMonitor { /** * This method will be called after {@link j...
272
5,079
# (c) 2005 <NAME> and contributors # This module is part of the Python Paste Project and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php # Some of this code was funded by: http://prometheusresearch.com from time import localtime from datetime import date from paste.util.datetimeu...
2,459
521
<filename>third_party/virtualbox/src/VBox/Additions/x11/x11include/xorg-server-1.18.0/glamor.h /* * Copyright © 2008 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software w...
6,228
488
/* * Copyright (c) 2004-2005 Massachusetts Institute of Technology. * All Rights Reserved. * * MIT grants permission to use, copy, modify, and distribute this software and * its documentation for NON-COMMERCIAL purposes and without fee, provided that * this copyright notice appears in all copies. * * MIT provid...
808
549
#include "polygon.cpp" point polygon_centroid(polygon p) { double cx = 0.0, cy = 0.0; double mnx = 0.0, mny = 0.0; int n = size(p); rep(i,0,n) mnx = min(mnx, real(p[i])), mny = min(mny, imag(p[i])); rep(i,0,n) p[i] = point(real(p[i]) - mnx, imag(p[i]) - mny); rep(i,0,n) { int j = (i + 1) % n...
306
328
package lcn; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import qa.Globals; public class EntityFragmentFields { // entity dictionary public static HashMap<String, Integer> entityName2I...
769
695
#include <vector> #include <string> // #include "formula.h" made in cmake #include <pybind11/pybind11.h> #include <pybind11/numpy.h> #if USE_CUDA extern "C" { int cudafshape(__TYPE__ ooSigmax2,__TYPE__ ooSigmaf2, __TYPE__ ooSigmaXi2, __TYPE__* x_h, __TYPE__* y_h, __TYPE__* f_...
2,330
539
#include "geometrycentral/pointcloud/sample_cloud.h" #include <random> namespace geometrycentral { using surface::Face; using surface::SurfacePoint; namespace pointcloud { std::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<SurfacePoint>> uniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh...
748
4,036
#ODASA-3688 def generate_random_string(char_sequences, length): random_string = "" # Two tests of the same variable to force splitting of the flow-graph if char_sequences: for char_seq in char_sequences: pass def func_used(): pass #Only use the variable on one of the ...
175
679
<filename>main/basic/inc/basic/vbahelper.hxx /************************************************************** * * 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 o...
1,417
721
/* * Copyright 2001-2005 The Apache Software 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 required by ap...
894
417
<gh_stars>100-1000 {"name":{"common":"Seychelles","official":"Republic of Seychelles","native":{"crs":{"common":"Sesel","official":"Repiblik Sesel"},"eng":{"common":"Seychelles","official":"Republic of Seychelles"},"fra":{"common":"Seychelles","official":"République des Seychelles"}}},"demonym":"Seychellois","capital":...
560
16,789
"""Facilities for implementing hooks that call shell commands.""" import logging from typing import List from typing import Optional from typing import Set from certbot import configuration from certbot import errors from certbot import util from certbot.compat import filesystem from certbot.compat import misc from c...
3,212
834
// // YYStockConstant.h // YYStock ( https://github.com/WillkYang ) // // Created by WillkYang on 16/10/5. // Copyright © 2016年 WillkYang. All rights reserved. // #ifndef YYStockConstant_h #define YYStockConstant_h #endif /* YYStockConstant_h */ /** * K线最小的厚度 */ #define YYStockLineMinThick 0.5 /** * K线最...
1,094
3,428
<gh_stars>1000+ {"id":"00900","group":"easy-ham-1","checksum":{"type":"MD5","value":"04d3fc4b18f2def855155994cd956529"},"text":"From <EMAIL> Sun Oct 6 22:57:27 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>assassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP ...
1,382
778
package org.knowm.xchart.style.markers; /** @author timmolter */ public class MatlabSeriesMarkers implements SeriesMarkers { private final Marker[] seriesMarkers; /** Constructor */ public MatlabSeriesMarkers() { seriesMarkers = new Marker[] {CIRCLE, SQUARE, DIAMOND}; } @Override public Marker[] ge...
121
1,040
<reponame>Ybalrid/orbiter // Copyright (c) <NAME> // Licensed under the MIT License // ============================================================== // ORBITER VISUALISATION PROJECT (OVP) // D3D7 Client module // ============================================================== // ==================================...
1,808
687
package io.kestra.core.tasks.executions; import com.google.common.collect.ImmutableMap; import io.kestra.core.models.annotations.Example; import io.kestra.core.models.annotations.Plugin; import io.kestra.core.models.annotations.PluginProperty; import io.kestra.core.models.executions.statistics.ExecutionCount; import i...
2,817
609
<gh_stars>100-1000 /******************************************************************************* * thrill/common/sampling.hpp * * Part of Project Thrill - http://project-thrill.org * * Copyright (C) 2016 <NAME> <<EMAIL>> * Copyright (C) 2017-2018 <NAME> <<EMAIL>> * * All rights reserved. Published under the ...
2,980
713
package org.infinispan.counter.exception; import static java.lang.String.format; import org.infinispan.counter.api.StrongCounter; /** * A {@link CounterException} signalling that the {@link StrongCounter} has reached its bounds. * * @author <NAME> * @since 9.0 */ public class CounterOutOfBoundsException extends...
277
410
<reponame>redchew-fork/BlueshiftEngine // Copyright(c) 2017 POLYGONTEK // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http ://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
5,379
543
<reponame>CoenRijsdijk/Bytecoder<filename>core/src/test/java/de/mirkosertic/bytecoder/ssa/DominanceTest.java /* * Copyright 2018 <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 *...
2,308
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,875
348
{"nom":"Monnaie","circ":"2ème circonscription","dpt":"Indre-et-Loire","inscrits":2988,"abs":1682,"votants":1306,"blancs":95,"nuls":21,"exp":1190,"res":[{"nuance":"REM","nom":"<NAME>","voix":687},{"nuance":"LR","nom":"<NAME>","voix":503}]}
97
1,350
<reponame>Kryword/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.imagebuilder.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.lo...
1,406
1,118
{"deu":{"common":"Norwegen","official":"Königreich Norwegen"},"fin":{"common":"Norja","official":"Norjan kuningaskunta"},"fra":{"common":"Norvège","official":"Royaume de Norvège"},"hrv":{"common":"Norveška","official":"Kraljevina Norveška"},"ita":{"common":"Norvegia","official":"Regno di Norvegia"},"jpn":{"common":"ノルウ...
221
3,200
<gh_stars>1000+ # Copyright 2021 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 by applicable ...
1,181
302
package com.kunminx.viabus.ui; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.kunminx.core.bus.Result; import com.kun...
1,329
1,144
// Generated Model - DO NOT CHANGE package org.compiere.model; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; import javax.annotation.Nullable; /** Generated Model for C_ProjectIssue * @author metasfresh (generated) */ @SuppressWarnings("unused") public class X_C_ProjectIssue...
2,636
391
import justext def test_words_should_be_split_by_br_tag(): paragraphs = justext.justext('abc<br/>def becoming abcdef', justext.get_stoplist("English")) assert [p.text for p in paragraphs] == ["abc def becoming abcdef"]
78
1,310
<reponame>akrzemi1/Mach7 // // Mach7: Pattern Matching Library for C++ // // Copyright 2011-2013, Texas A&M University. // Copyright 2014 <NAME>. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions a...
14,155
2,268
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $Workfile: $ // $Date: $ // //----------------------------------------------------------------------------- // $Log: $ // // $NoKeywords: $ //===================================================================...
1,264
2,542
<filename>src/prod/src/ServiceModel/management/FaultAnalysisService/InvokeQuorumLossResult.cpp<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for licens...
583
921
<gh_stars>100-1000 package sqlancer.cockroachdb.gen; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import sqlancer.Randomly; import sqlancer.cockroachdb.CockroachDBCommon; import sqlancer.cockroachdb.CockroachDBProvider.CockroachDBGlobalState; import sqlancer.cockroachdb.Cockr...
7,039
443
<gh_stars>100-1000 /* ------------------------------------------------------------------------- // 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:/...
1,547
1,639
<reponame>bazzyadb/all-code<filename>Dynamic Programming Optimizations/Persistent CHT.cpp struct PT { int x, y; PT(int x = 0, int y = 0): x(x), y(y) {} friend ll dot(PT &a, PT &b) { return 1ll * a.x * b.x + 1ll * a.y * b.y; } friend int orientation(PT &a, PT &b, PT &c) { ll s = 1ll * (b.x - a.x) * (c....
654
332
// Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.queries.board; import com.vk.api.sdk.client.AbstractQueryBuilder; import com.vk.api.sdk.client.VkApiClient; import com.vk.api.sdk.client.actors.UserActor; import java.util.Arrays; import java.util.List; /** * Query for Board.c...
1,603
707
<filename>wpilibj/src/main/java/edu/wpi/first/wpilibj/simulation/NotifierSim.java // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package edu.wpi.first.wpilibj.simulati...
272
813
import contextlib import datetime class Timer(object): def start(self): self.start = datetime.datetime.now() def stop(self): self.stop = datetime.datetime.now() def elapsed(self): return self.stop - self.start def assertHasDate(self, date): assert self.start <= date...
249
1,236
/*************************************************************************** * * Copyright (c) 2016 Baidu, 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 * ...
5,141
429
{ "dependencies": { "FluentAssertions": "4.19.4", "MicroBuild.Core": "0.2.0", "Microsoft.SqlServer.DacFx.x86": "140.3745.1", "Microsoft.VisualStudio.ComponentModelHost": "15.4.27004", "Microsoft.VisualStudio.Editor": "15.4.27004", "Microsoft.VisualStudio.ImageCatalog": "15.4.27004", "Micr...
547
1,083
<gh_stars>1000+ #ifndef DALE_CONTEXT #define DALE_CONTEXT #include <map> #include <set> #include <string> #include <vector> #include "../ErrorReporter/ErrorReporter.h" #include "../Function/Function.h" #include "../Linkage/Linkage.h" #include "../Namespace/Namespace.h" #include "../NativeTypes/NativeTypes.h" #include...
5,368
409
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2018, <NAME>, FU Berlin // All rights reserved. // // Redistribution and use in s...
21,070
848
# # Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
1,146
32,544
<gh_stars>1000+ package com.baeldung.templatemethod.model; import java.util.Map; public class HighEndComputer extends Computer { public HighEndComputer(Map<String, String> computerParts) { super(computerParts); } }
88
656
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.conf.urls import url, include from rest_framework import generics, permissions from rest_framework.views import APIView from rest_framework.au...
1,615
360
""" Copyright (c) 2020 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WI...
1,126
348
{"nom":"Ners","circ":"4ème circonscription","dpt":"Gard","inscrits":554,"abs":306,"votants":248,"blancs":22,"nuls":7,"exp":219,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":116},{"nuance":"FN","nom":"Mme <NAME>","voix":103}]}
91
2,504
<reponame>dujianxin/Windows-universal-samples // // PageToPrint.xaml.h // Declaration of the PageToPrint class // #pragma once #include "PageToPrint.g.h" namespace SDKTemplate { /// <summary> /// Page content to send to the printer /// </summary> [Windows::Foundation::Metadata::WebHost...
209