max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
370
//------------------------------------------------------------------------------ // tri_simple: compute the number of triangles in a graph (simplest method) //------------------------------------------------------------------------------ // A bare-bones version of the many variants in tri_template.c, with no // parall...
821
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.ai.anomalydetector.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import...
952
357
/* * Copyright (c) 2012-2015 VMware, 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 ...
1,317
348
{"nom":"Ozeville","circ":"1ère circonscription","dpt":"Manche","inscrits":107,"abs":44,"votants":63,"blancs":1,"nuls":3,"exp":59,"res":[{"nuance":"LR","nom":"<NAME>","voix":46},{"nuance":"REM","nom":"<NAME>","voix":13}]}
88
466
class Production(object): def analyze(self, world): """Implement your analyzer here.""" def interpret(self, world): """Implement your interpreter here.""" class FuncCall(Production): def __init__(self, token, params): self.name = token[1] self.params = params self....
1,146
862
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
2,454
435
<gh_stars>100-1000 { "description": "<NAME>, <NAME>\nhttp://lanyrd.com/2015/writethedocs/sdmwxp/\nA software tester can be a tech writer\u2019s best friend, and vice versa. Jody (writer) and Arthur (tester) work together on APIs at Salesforce.com, and we\u2019ll talk about the tools and techniques we use to improve t...
506
1,370
<gh_stars>1000+ package ser.offheaplatency; import java.io.*; import java.util.*; import org.nustaq.offheap.*; import org.nustaq.serialization.simpleapi.*; public final class MyFSTSerializer{ private final boolean toStore; private final String fileName; private final long memorySize; private final FS...
894
366
<filename>networkit/cpp/centrality/GroupClosenessLocalSwaps.cpp #include <algorithm> #include <cassert> #include <omp.h> #include <queue> #include <networkit/auxiliary/Random.hpp> #include <networkit/centrality/GroupClosenessLocalSwaps.hpp> namespace NetworKit { GroupClosenessLocalSwaps::GroupClosenessLocalSwaps(co...
5,286
348
{"nom":"Bartrès","circ":"2ème circonscription","dpt":"Hautes-Pyrénées","inscrits":378,"abs":191,"votants":187,"blancs":25,"nuls":3,"exp":159,"res":[{"nuance":"REM","nom":"<NAME>","voix":93},{"nuance":"RDG","nom":"<NAME>","voix":66}]}
97
2,291
<reponame>M-i-k-e-l/osmdroid<filename>issues/osmdroid_issue405.json<gh_stars>1000+ { "id" : 405, "status" : "New", "summary" : "enhancement for gpx creator", "labels" : [ "Type-Defect", "Priority-Medium" ], "stars" : 0, "commentCount" : 1, "comments" : [ { "id" : 0, "commenterId" : -20601180341966...
318
682
<filename>vpr/src/place/place_timing_update.h /** * @file place_timing_update.h * @brief Timing update routines used by the VPR placer. */ #pragma once #include "timing_place.h" #include "place_util.h" ///@brief Initialize the timing information and structures in the placer. void initialize_timing_info(const Place...
1,159
749
from roboticstoolbox.robot.Robot import Robot from roboticstoolbox.robot.Link import Link from roboticstoolbox.robot.DHRobot import SerialLink, DHRobot from roboticstoolbox.robot.DHLink import ( DHLink, RevoluteDH, PrismaticDH, RevoluteMDH, PrismaticMDH, ) from roboticstoolbox.robot.ERobot import ER...
369
422
<filename>geotorch/exceptions.py class VectorError(ValueError): def __init__(self, name, size): super().__init__( "Cannot instantiate {} on a tensor of less than 2 dimensions. " "Got a tensor of size {}".format(name, size) ) class InverseError(ValueError): def __init__(...
472
1,766
<reponame>aalonsog/licode // This file was GENERATED by command: // pump.py callback.h.pump // DO NOT EDIT BY HAND!!! /* * Copyright 2012 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the...
2,929
2,061
package com.example.liuyongkui.tvdemo; import android.content.Context; import android.graphics.Canvas; import android.util.AttributeSet; import android.util.Log; import android.view.View; import android.widget.TextView; import android.widget.Toast; /** * Created by LIUYONGKUI726 on 2016-03-22. */ public class MyTes...
549
561
#pragma once #include "narray/image_batch.h" #include "narray/convolution_info.h" namespace minerva { class Convolution { public: static ImageBatch ConvForward(ImageBatch src, Filter filter, NArray bias, ConvInfo info); static ImageBatch ConvBackwardData(ImageBatch diff, ImageBatch bottom, Filter filter, ConvInf...
386
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.indexinglanguage.expressions; import com.yahoo.document.DataType; import com.yahoo.document.Field; import com.yahoo.document.StructDataType; import com.yahoo.document.datatypes.Array; import...
4,006
507
<reponame>alesmuc/bauh import os from bauh.api.constants import CACHE_PATH, CONFIG_PATH from bauh.commons import resource ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) SNAP_CACHE_PATH = CACHE_PATH + '/snap' CONFIG_FILE = '{}/snap.yml'.format(CONFIG_PATH) CATEGORIES_FILE_PATH = SNAP_CACHE_PATH + '/categories.t...
252
674
""" Archive tools for wheel. """ import logging import os.path import zipfile log = logging.getLogger("wheel") def archive_wheelfile(base_name, base_dir): '''Archive all files under `base_dir` in a whl file and name it like `base_name`. ''' olddir = os.path.abspath(os.curdir) base_name = os.path...
710
1,647
<gh_stars>1000+ #ifndef PYTHONIC_NUMPY_AROUND_HPP #define PYTHONIC_NUMPY_AROUND_HPP #include "pythonic/include/numpy/around.hpp" #include "pythonic/numpy/rint.hpp" #include "pythonic/numpy/power.hpp" #include "pythonic/numpy/asarray.hpp" #include "pythonic/numpy/floor_divide.hpp" #include "pythonic/numpy/float64.hpp"...
1,087
521
<reponame>Fimbure/icebox-1 /* Copyright (c) 2001, Stanford University * All rights reserved * * See the file LICENSE.txt for information on redistributing this software. */ #include "chromium.h" #include "cr_error.h" #include "cr_mem.h" #include "server_dispatch.h" #include "server.h" void SERVER_DISPATCH_APIENTR...
374
764
// // SwiftyDrop.h // SwiftyDrop // // Created by MORITANAOKI on 2015/06/21. // Copyright (c) 2015年 MORITANAOKI. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SwiftyDrop. FOUNDATION_EXPORT double SwiftyDropVersionNumber; //! Project version string for SwiftyDrop. FOUNDATION_EXPOR...
158
501
import numpy as np from numpy.testing import assert_array_equal, assert_equal from nose.tools import assert_raises from pystruct.models import ChainCRF def test_initialize(): rnd = np.random.RandomState(0) x = rnd.normal(size=(13, 5)) y = rnd.randint(3, size=13) crf = ChainCRF(n_states=3, n_features...
563
14,499
<filename>infer/tests/codetoanalyze/java/biabduction/DoubleExample.java /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package codetoanalyze.java.infer; import javax.annotation....
179
718
package j2html.tags.attributes; import j2html.tags.IInstance; import j2html.tags.Tag; public interface IHreflang<T extends Tag<T>> extends IInstance<T> { default T withHreflang(final String hreflang_) { return self().attr("hreflang", hreflang_); } default T withCondHreflang(final boolean enable, ...
199
818
/* GRT MIT License Copyright (c) <2012> <<NAME>, Media Lab, MIT> 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...
1,089
14,499
<gh_stars>1000+ /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package android.database; import java.io.IOException; public class CursorWrapper implements Cursor { protected ...
168
3,587
/// Copyright 2021 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...
336
14,525
<reponame>leonarduschen/zipline from zipline.utils.calendars import get_calendar class ExchangeInfo(object): """An exchange where assets are traded. Parameters ---------- name : str or None The full name of the exchange, for example 'NEW YORK STOCK EXCHANGE' or 'NASDAQ GLOBAL MARKET'....
845
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 ...
541
818
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,163
1,002
// Copyright (c) Microsoft Corporation. All rights reserved. // // Licensed under the MIT License. See LICENSE.txt in the project root for license information. #pragma once // // This mock object is given to a GraphicsDevice so that we can check that it // calls the methods we expect to call on it. // class MockDxgiD...
1,478
6,059
<reponame>penguin-wwy/redex /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.redex.examples.synth; import android.support.v7.app.AppCompatActivity; import and...
304
474
<filename>GVRf/Extensions/gvrf-physics/src/main/jni/engine/bullet/bullet_sliderconstraint.h /* Copyright 2015 Samsung Electronics 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 ...
836
14,793
package me.chanjar.weixin.common.util.http.jodd; import jodd.http.HttpConnectionProvider; import jodd.http.HttpRequest; import jodd.http.HttpResponse; import jodd.http.ProxyInfo; import lombok.extern.slf4j.Slf4j; import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; import me.chanjar.weixin.common.bean.resu...
664
2,816
<filename>third_party/sqlsmith/schema.cc<gh_stars>1000+ #include "schema.hh" #include "relmodel.hh" #include <typeinfo> using namespace std; void schema::generate_indexes() { cerr << "Generating indexes..."; for (auto &type : types) { assert(type); for (auto &r : aggregates) { if (type->consistent(r.restyp...
578
1,159
{ "name": "vizzu-unit.test", "scripts": { "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config=jest.config.js" }, "type": "module", "dependencies": { "jest": "*" } }
116
1,688
<reponame>bertilnilsson/TypeScript-Sublime-Plugin<gh_stars>1000+ from ..libs import * from .event_hub import EventHub class RenameEventListener: def on_load(self, view): client_info = cli.get_or_add_file(view.file_name()) # finish the renaming if client_info and client_info.rename_on_load:...
271
1,338
/* * Copyright 2004-2008, Haiku. * Distributed under the terms of the MIT License. * * Authors: * <NAME> */ #ifndef TEAM_LIST_ITEM_H #define TEAM_LIST_ITEM_H #include <Bitmap.h> #include <ListItem.h> #include <Path.h> #include <Roster.h> #include <String.h> extern bool gLocalizedNamePreferred; class TeamLi...
570
1,545
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to you under the Apache License, Version 2.0 (the * "License"); you may ...
1,338
5,169
<filename>Specs/DataPersistence/0.1.0/DataPersistence.podspec.json { "name": "DataPersistence", "version": "0.1.0", "summary": "DataPersistence is a drop in class that allows easy persistance of data using NSKeyedArchiver/NSKeyedUnarchiver.", "homepage": "https://github.com/tomdiggle/datapersistence", "licens...
246
375
<gh_stars>100-1000 { "id": 56, "logo_path": "/mpGWkDeikYLeAR8LVNaixig0vwE.png", "description": null, "name": "<NAME>", "parent_company": null, "homepage": null, "headquarters": null }
88
743
<gh_stars>100-1000 {"actions":[{"title":"OK","type":"Action.Submit"}],"body":[{"choices":[{"title":"Red","value":"1"},{"title":"Green","value":"2"},{"title":"Blue","value":"3"}],"id":"myColor4","isMultiSelect":true,"style":"Expanded","type":"Input.ChoiceSet","value":"1","wrap":true}],"type":"AdaptiveCard","version":"1....
96
2,151
<filename>third_party/android_tools/sdk/sources/android-25/android/text/method/DateTimeKeyListener.java /* * Copyright (C) 2006 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 c...
666
380
<gh_stars>100-1000 # -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2019, 2020, 2021 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t...
73,974
987
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: <NAME> <<EMAIL>> # Copyright (C) 2017 Rare Technologies # # This code is distributed under the terms and conditions # from the MIT License (MIT). import unittest import sys from bounter import HashTable uni_type = str if sys.version_info >= (3, 0) else unicod...
649
1,716
<reponame>hlemorvan/jimfs /* * Copyright 2014 Google 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 ap...
1,132
631
// Copyright 2018 The Beam Team // // 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...
2,706
879
<filename>plugin/localstorage/src/main/java/org/zstack/storage/primary/local/LocalStorageBase.java<gh_stars>100-1000 package org.zstack.storage.primary.local; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import org.zstack.compute.host.V...
70,718
350
# 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...
4,950
7,482
/******************************************************************************* * Copyright (C) 2020, Huada Semiconductor Co., Ltd. All rights reserved. * * This software component is licensed by HDSC under BSD 3-Clause license * (the "License"); You may not use this file except in compliance with the * License. ...
4,310
601
package io.lacuna.artifex; import java.util.ArrayList; import java.util.List; import static io.lacuna.artifex.Vec.vec; import static java.lang.Double.NaN; /** * @author ztellman */ public class Box2 extends Box<Vec2, Box2> { public static final Box2 EMPTY = new Box2(vec(NaN, NaN), vec(NaN, NaN)); public fina...
935
1,615
// // ArgoBindingConvertor.h // ArgoUI // // Created by <NAME> on 2020/9/2. // #import "MLNUIKiConvertor.h" NS_ASSUME_NONNULL_BEGIN @interface ArgoBindingConvertor : MLNUIKiConvertor /** 和- (id)toNativeObject:(int)idx error:(NSError **)error 的区别在于会将lua table转换成ArgoObservableMap or ArgoObservableArray @param...
406
772
{ "bg-BG": { "data": { "bubble_choice_description": { "courseD_bee_nestedLoops8_2021": "Съберете всичкия нектар от всяко цвете и правете мед на всяка пита. \r\n\r\nИзползвайте вложено повторение(цикъл). " } } } }
198
1,016
<filename>vertx-web/src/test/java/io/vertx/ext/web/it/RouterExtendedParamTest.java /* * Copyright (c) 2011-2014 The original author or authors * ------------------------------------------------------ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclip...
540
2,603
/*********************************************************************************************************************** * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No * other uses are authorized. This software is owned by Renesas E...
1,740
303
<filename>lightcrafts/src/com/lightcrafts/ui/layout/FadingTabConfiguration.java<gh_stars>100-1000 /* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.ui.layout; import javax.swing.*; /** * A fading tab is specified by a triplet: a component to show and hide, * a name for the button text, and tooltip text ...
221
851
/* * Copyright (C) 2017 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...
4,454
2,941
from aws_cdk import ( core, aws_lambda as _lambda, aws_apigateway as _apigw ) class ApiCorsLambdaStack(core.Stack): def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: super().__init__(scope, id, **kwargs) base_lambda = _lambda.Function(self, 'ApiCorsLambda', ...
930
11,024
#ifndef IOBASE_DEFINED #define IOBASE_DEFINED 1 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stddef.h> #include <time.h> #include <setjmp.h> #include <stdarg.h> #include <string.h> #endif
99
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/MailServices.framework/MailServices */ #import <MailServices/MSMailDefaultService.h> @interface MSSendDraft : MSMailDefaultService { } + (id)sendDraftWithURL:(id)url delegate:(id)delegate; // 0x3c29 + (id)smi_serve...
213
5,169
<reponame>Gantios/Specs { "name": "KJLoadingAnimation", "version": "1.1.5", "summary": "Loading Animation.", "homepage": "https://github.com/yangKJ/KJLoadingDemo", "license": "Copyright (c) 2019 77", "authors": { "77": "<EMAIL>" }, "platforms": { "ios": null }, "source": { "git": "https:...
338
839
/** * 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 m...
1,975
491
// Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 ...
1,589
5,169
<filename>Specs/DKUIViewExtensions/0.0.1/DKUIViewExtensions.podspec.json { "name": "DKUIViewExtensions", "version": "0.0.1", "license": "MIT", "summary": "An Animate Water view on iOS.", "homepage": "https://github.com/DK-L-iOS/DKUIViewExtensions", "authors": { "DK-Li": "<EMAIL>" }, "source": { ...
275
460
<filename>trunk/win/Source/Includes/QtIncludes/src/xmlpatterns/type/qnumerictype_p.h /**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file...
2,364
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...
1,116
9,095
<reponame>lorentzenchr/scipy<gh_stars>1000+ "Iterative Solvers for Sparse Linear Systems" #from info import __doc__ from .iterative import * from .minres import minres from .lgmres import lgmres from .lsqr import lsqr from .lsmr import lsmr from ._gcrotmk import gcrotmk from .tfqmr import tfqmr __all__ = [ 'bicg'...
220
440
/*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ // /// GenXCategory /// ------------ /// /// This pass performs five functions: ///...
15,762
1,138
""" Required Notice: Copyright (C) Zoomer Analytics GmbH. xlwings PRO is dual-licensed under one of the following licenses: * PolyForm Noncommercial License 1.0.0 (for noncommercial use): https://polyformproject.org/licenses/noncommercial/1.0.0 * xlwings PRO License (for commercial use): https://github.com/xlwing...
3,582
4,332
import os import time import numpy as np # from IPython import embed available_shots = {"three": 3, "one": 1} # available_shots = {'three':3} for shot, shots in available_shots.items(): print("## perform experiments on {}-shot wikipara-10K ##".format(shot)) # shots = available_shots[shot] num_of_classes...
969
445
<reponame>prismake/typegql { "$schema": "https://schemastore.azurewebsites.net/schemas/json/tsconfig.json", "extends": "./tsconfig.json", "compilerOptions": { "declaration": true, "emitDeclarationOnly": true, "plugins": [ { "transform": "@zerollup/ts-transform-paths" } ] } }
146
711
package com.java110.common.dao; import com.java110.utils.exception.DAOException; import com.java110.entity.merchant.BoMerchant; import com.java110.entity.merchant.BoMerchantAttr; import com.java110.entity.merchant.Merchant; import com.java110.entity.merchant.MerchantAttr; import java.util.List; import java.util.Map...
883
4,538
<filename>hardware/chip/haas1000/drivers/services/multimedia/speech/inc/iirfilt.h /* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifndef IIRFILT_H #define IIRFILT_H #include <stdint.h> enum IIR_BIQUARD_TYPE { // pass through IIR_BIQUARD_PASS = 0, // raw filter IIR_BIQUARD_RAW, // ...
909
400
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt #pragma once #include "LLS.h" #if 0 { const auto xydata = {V(0.f, 4.f), V(1.f, 4.f), V(2.f, 5.f), V(3.f, 4.f)}; using Eval = LinearRegressionPolynomialOrder<2>; LinearRegression<2, 1, Eval> regression(xydata.num()); for (auto xy : xyd...
767
1,500
"""Benchmarking experiment of the ContinuousMLPQFunction.""" import tensorflow as tf from garage import wrap_experiment from garage.envs import GymEnv, normalize from garage.experiment import deterministic from garage.np.exploration_policies import AddOrnsteinUhlenbeckNoise from garage.replay_buffer import PathBuffer ...
1,624
12,278
/* * Copyright <NAME> 2019. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * https://www.boost.org/LICENSE_1_0.txt) */ /*! * \file form_auto_newline.cpp * \author <NAME> * \date 23.06.2019 * * \brief This header con...
1,217
359
// // Copyright 2021 The Matrix.org Foundation C.I.C // // 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 l...
564
2,329
<filename>shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/PluginHandleServiceImpl.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. ...
2,730
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Tan", "definitions": [ "(of a pale-skinned person or their skin) become brown or browner after exposure to the sun.", "(of the sun) cause (a pale-skinned person or their skin) to become brown or browner.", "Convert (animal skin) into leather b...
174
1,338
<reponame>Kirishikesan/haiku #ifndef StringSearchTest_H #define StringSearchTest_H #include "TestCase.h" #include <String.h> class StringSearchTest : public BTestCase { private: protected: public: static Test *suite(void); void PerformTest(void); StringSearchTest(std::string name = ""); virtual ~StringSea...
126
335
{ "word": "Milk", "definitions": [ "An opaque white fluid rich in fat and protein, secreted by female mammals for the nourishment of their young.", "The milk from cows (or goats or sheep) as consumed by humans.", "The white juice of certain plants.", "A creamy-textured liquid wit...
137
2,441
<reponame>islandev/tablesaw package tech.tablesaw.filtering; import com.google.common.annotations.Beta; import java.util.function.Function; import tech.tablesaw.api.Table; import tech.tablesaw.selection.Selection; @Beta public class Not implements Function<Table, Selection> { private Function<Table, Selection> arg...
167
330
<filename>src/method_table_symbol.h /* Auto generated by make_method_table.rb */ #include "symbol_builtin.h" struct RClass *mrbc_init_class_symbol(struct VM *vm) { static const mrbc_sym method_symbols[] = { MRBC_SYMID_all_symbols, #if MRBC_USE_STRING MRBC_SYMID_id2name, #endif #if MRBC_USE_STRING MRBC_SYM...
361
304
"""Groupby aggregation benchmark.""" import time import matplotlib.pyplot as plt import seaborn as sns import numpy as np import pandas as pd import cudf from xfeat.helper import aggregation def main(): key_nunique = 5_000 n_samples = 10_000_000 records = [] for i in range(1, 8): df = pd.Da...
1,332
778
<gh_stars>100-1000 import KratosMultiphysics as Kratos import KratosMultiphysics.mpi as MPI #TODO: do not import the so directly (but I need a nice Python module first) import KratosMultiphysics.KratosUnittest as UnitTest class TestMPICommunicatorSetUp(UnitTest.TestCase): def setUp(self): self.model = Kr...
309
990
<reponame>SeirousLee/example-code-2e from tree import tree def test_1_level(): class One: pass expected = [('One', 0)] result = list(tree(One)) assert expected == result def test_2_levels_2_leaves(): class Branch: pass class Leaf1(Branch): pass class Leaf2(Branch): pass expected = [ ...
326
1,056
<filename>java/java.project/src/org/netbeans/spi/java/project/support/JavadocAndSourceRootDetection.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 owners...
6,286
1,444
package mage.cards.a; import java.util.UUID; import mage.constants.SubType; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility; import mage.abilities.condition.common.DidNotAttackThisTurnEnchantedCondition...
1,152
5,169
<gh_stars>1000+ { "name": "MediaLibrary", "version": "0.0.3", "summary": "图片、视频选择器", "description": "查看了Apple官方Demo后,高仿微信的图片、视频选择器", "homepage": "https://github.com/SwiftPartner", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "ryan": "<EMAIL>" }, "social_media_url": "http...
341
549
<gh_stars>100-1000 package net.notejam.spring.security.owner; import static org.mockito.Mockito.when; import java.util.Optional; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.springframework.security...
846
5,169
{ "name": "TestAlert", "version": "0.0.1", "summary": "A short demo description of TestAlert.", "description": "This is Sally's testAlert demo. Welcome here.", "homepage": "https://git.silvrr.com/Sallly/TestAlert", "license": { "type": "MIT", "file": "FILE_LICENSE" }, "authors": { "Sally": "...
278
526
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.adapters.connectors.governanceactions.remediation; import com.fasterxml.jackson.databind.ObjectMapper; import org.odpi.openmetadata.adapters.connectors.governanceactions.ffdc.GovernanceActi...
7,217
6,717
// $Id: ClDouble.java,v 1.8 1999/04/20 00:26:27 gjb Exp $ // // Cassowary Incremental Constraint Solver // Original Smalltalk Implementation by <NAME> // This Java Implementation by <NAME>, <<EMAIL>> // http://www.cs.washington.edu/homes/gjb // (C) 1998, 1999 <NAME> and <NAME> // See ../LICENSE for legal details regard...
513
13,885
<gh_stars>1000+ /* * Copyright (C) 2015 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...
1,100
427
<reponame>sabaalmas/Java-Coding-Problems package modern.challenge; public class Cart { }
37
2,053
<gh_stars>1000+ /* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * 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:...
749
842
#include "say.h" #include <iostream> void Say(const std::string& msg) { std::cout << msg << "!\n"; }
47
1,144
<gh_stars>1000+ // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 // See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> // /** * We modified the generated file to have the namespace prefices "invoice", "xenc" and "ds". *...
417