max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
831
<gh_stars>100-1000 /* * 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 * * Unl...
1,460
5,079
<gh_stars>1000+ #!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "L...
479
357
<gh_stars>100-1000 #include <exception> #include <algorithm> #include <numeric> #include <random> #include <cmath> #include <mipp.h> #include <catch.hpp> template <typename T1, typename T2> void test_reg_cvt() { constexpr int N1 = mipp::N<T1>(); constexpr int N2 = mipp::N<T2>(); T1 inputs1[N1]; std::iota(inputs1,...
1,540
2,111
# -*- coding: utf-8 -*- import pytest import env # noqa: F401 from pybind11_tests import ConstructorStats from pybind11_tests import multiple_inheritance as m def test_multiple_inheritance_cpp(): mt = m.MIType(3, 4) assert mt.foo() == 3 assert mt.bar() == 4 @pytest.mark.skipif("env.PYPY and env.PY2"...
4,747
328
package com.ctg.test.service; import com.ctg.test.model.User; import java.util.List; /** * @Description: TODO * @Author: yanhonghai * @Date: 2018/9/19 10:03 */ public interface UserService { User findByUserName(String userName); User findUserInfo(String userName); List<User> findAll(); }
115
14,668
<filename>third_party/private_membership/src/internal/aes_ctr_256_with_fixed_iv_test.cc // 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 // // https://www.a...
1,784
941
<reponame>3cL1p5e7/ic #!/usr/bin/env python3 """Helper package for parsing dependency inventories.""" import abc import collections import dataclasses import fnmatch import logging import os import pathlib import subprocess import typing import git import gitlab import json5 import jsonschema import toml import git_c...
10,016
668
<gh_stars>100-1000 /* * Copyright (c) 2016, 2018, Oracle and/or its affiliates. * * 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. Redistributions of source code must retain the abov...
2,626
3,705
import numpy from chainer.backends import cuda from chainer import function_node from chainer.functions.pooling import pooling_2d from chainer.utils import conv from chainer.utils import type_check class Upsampling2D(pooling_2d.Pooling2D): """Upsampling over a set of 2d planes w/ indices used for max pooling.""...
5,242
2,425
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2019 Google Inc. All rights reserved. // http://ceres-solver.org/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of so...
2,930
565
import pytest import torch from d3rlpy.models.builders import create_continuous_q_function from d3rlpy.models.encoders import DefaultEncoderFactory from d3rlpy.models.q_functions import MeanQFunctionFactory, QRQFunctionFactory from d3rlpy.models.torch.q_functions import compute_max_with_n_actions @pytest.mark.parame...
639
1,694
<reponame>dengliming/stagemonitor package org.stagemonitor.tracing.freemarker; import freemarker.core.Environment; import freemarker.core.Expression; import net.bytebuddy.asm.Advice; import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.description.type.TypeDescription; import net.bytebuddy....
1,635
1,676
<filename>chat-sdk-core/src/main/java/sdk/chat/core/image/ImageUploadResult.java package sdk.chat.core.image; public class ImageUploadResult { public String url; public String uri; public ImageUploadResult(String url, String uri) { this.url = url; this.uri = uri; ...
144
389
<reponame>tcmoore32/sheer-madness /* * Copyright 2014 Guidewire Software, Inc. */ package gw.internal.gosu.ir.compiler.bytecode; import gw.lang.ir.IRSymbol; import java.util.Collection; import java.util.HashMap; public class IRCompilerScope { private IRCompilerScope _parent; private HashMap<String, IRCompile...
531
10,608
"""TODO(blended_skill_talk): Add a description here.""" import json import datasets # TODO(blended_skill_talk): BibTeX citation _CITATION = """\ @misc{smith2020evaluating, title={Can You Put it All Together: Evaluating Conversational Agents' Ability to Blend Skills}, author={<NAME> and <NAME> and <NAME> an...
2,960
342
package sentinelgroup.io.sentinel.ui.custom; public interface VpnListSearchListener { void onSearchTriggered(String iSearchQuery); }
43
1,100
package com.xncoding.echarts.api.model.jmh; /** * XAxis * * @author XiongNeng * @version 1.0 * @since 2018/2/9 */ public class XAxis { private String type; private String name; public XAxis() { } public XAxis(String type, String name) { this.type = type; this.name = name; ...
262
357
/* * Copyright © 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 applica...
2,275
1,604
package org.bouncycastle.oer.its; import org.bouncycastle.asn1.ASN1Object; import org.bouncycastle.asn1.ASN1Primitive; /** * <pre> * SymmRecipientInfo ::= SEQUENCE { * recipientId HashedId8, * encKey SymmetricCiphertext * } * </pre> */ public class SymmRecipientInfo extends ASN1Obje...
365
307
<gh_stars>100-1000 {"name":"Seaside Surfin'","toppings":[{"id":6,"name":"mushroom"},{"id":7,"name":"olive"},{"id":3,"name":"basil"},{"id":1,"name":"anchovy"},{"id":8,"name":"onion"},{"id":11,"name":"sweetcorn"},{"id":9,"name":"pepper"},{"id":5,"name":"mozzarella"}],"id":2}
100
852
#ifndef VFillMap_H #ifndef __CINT__ #define VFillMap_H #include <map> #include <vector> #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" #include "DataFormats/DetId/interface/DetId.h" #include "CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h" #include "CondFormats/EcalObjects/...
643
335
<reponame>KitsuneAlex/ProjectE package moze_intel.projecte.network.packets.to_client; import javax.annotation.Nullable; import moze_intel.projecte.api.ItemInfo; import moze_intel.projecte.gameObjs.container.CondenserContainer; import moze_intel.projecte.network.packets.IPEPacket; import net.minecraft.client.Minecraft;...
541
512
<reponame>Serchinastico/CoolSwitch package com.serchinastico.sample; /* * Copyright (C) 2015 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/...
442
813
from torchvision.transforms import * from PIL import Image class ToGray(object): """ Convert image from RGB to gray level. """ def __call__(self, img): return img.convert('L')
73
2,151
// 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 ASH_METRICS_TIME_TO_FIRST_PRESENT_RECORDER_H_ #define ASH_METRICS_TIME_TO_FIRST_PRESENT_RECORDER_H_ #include <stdint.h> #include "ash/public/int...
712
956
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * Copyright(c) 2014 <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: * * ...
47,395
724
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
2,173
8,323
<gh_stars>1000+ from sympy.assumptions import Predicate from sympy.multipledispatch import Dispatcher class PrimePredicate(Predicate): """ Prime number predicate. Explanation =========== ``ask(Q.prime(x))`` is true iff ``x`` is a natural number greater than 1 that has no positive divisors ot...
1,034
2,542
<reponame>gridgentoo/ServiceFabricAzure // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------------------------------------...
720
2,574
{ "recurse": true, "skip": [ "http://localhost:8080*", "\/node_modules\/" ], "silent": true, "concurrency": 10, "directoryListing": true }
69
658
<filename>stage23/sys/lapic.c #include <stdint.h> #include <stddef.h> #include <stdbool.h> #include <sys/lapic.h> #include <sys/cpu.h> #include <lib/blib.h> #include <lib/acpi.h> #include <mm/pmm.h> struct madt { struct sdt header; uint32_t local_controller_addr; uint32_t flags; char madt_entries_b...
2,158
335
{ "word": "Patent", "definitions": [ "Easily recognizable; obvious.", "(of a vessel, duct, or aperture) open and unobstructed; failing to close.", "(of a parasitic infection) showing detectable parasites in the tissues or faeces.", "Made and marketed under a patent; proprietary."...
130
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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...
6,426
5,169
<gh_stars>1000+ { "name": "TTEmojiFlagString", "version": "0.1.1", "summary": "ObjectiveC category to convert 2 letter ISO 3166-1 alpha-2 country codes to a Unicode Flag Emoji", "description": "This little ObjectiveC category turns any given 2 letter ISO 3166-1 alpha-2 country code in an NSString to a Unicode F...
326
16,461
/* * 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. */ #import <UIKit/UIKit.h> #import <ABI42_0_0React/ABI42_0_0RCTSurfaceStage.h> #import <ABI42_0_0React/ABI42_0_0RCTSurfaceView.h> @c...
236
2,777
/* Copyright 2013-2021 MultiMC Contributors * * 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...
1,410
363
<gh_stars>100-1000 // Copyright (c) Improbable Worlds Ltd, All Rights Reserved #pragma once #include "SpatialView/OpList/OpList.h" #include "Templates/UniquePtr.h" #include <improbable/c_worker.h> namespace SpatialGDK { struct WorkerConnectionOpListData : OpListData { struct Deleter { void operator()(Worker_OpL...
311
521
/* rdesktop: A Remote Desktop Protocol client. Miscellaneous protocol constants Copyright (C) <NAME> 1999-2008 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of th...
7,927
12,278
// Boost Lambda Library -- member_ptr.hpp --------------------- // Copyright (C) 1999, 2000 <NAME> (<EMAIL>) // Copyright (C) 2000 <NAME> (<EMAIL>) // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // For mo...
10,281
575
<reponame>Ron423c/chromium // Copyright 2020 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 "ash/shelf/drag_handle.h" #include "ash/accessibility/accessibility_controller_impl.h" #include "ash/shelf/shelf_layo...
1,385
633
<gh_stars>100-1000 # --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.11.4 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [raw] raw_mimetype="text/res...
6,851
2,494
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
1,003
22,481
"""Block I/O being done in asyncio.""" from http.client import HTTPConnection from .util.async_ import protect_loop def enable() -> None: """Enable the detection of I/O in the event loop.""" # Prevent urllib3 and requests doing I/O in event loop HTTPConnection.putrequest = protect_loop(HTTPConnection.put...
155
589
<reponame>ClaudioWaldvogel/inspectIT package rocks.inspectit.shared.all.instrumentation.classcache.util; import java.util.Set; /** * Set that has a {@link #addOrUpdate(Object)} method. This is a special type of the add method that * if the element e2 exists in the set and element e is equal to it, the replace will ...
316
403
<gh_stars>100-1000 #ifndef VKHR_EMBREE_HAIR_STYLE_HH #define VKHR_EMBREE_HAIR_STYLE_HH #include <vkhr/scene_graph/hair_style.hh> #include <vkhr/ray_tracer/shadable.hh> #include <glm/glm.hpp> #include <embree3/rtcore.h> #include <vector> #include <vkhr/rasterizer/hair_style.hh> namespace vkhr { ...
986
933
/* All modification made by Intel Corporation: © 2016 Intel Corporation All contributions by the University of California: Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights reserved. All other contributions: Copyright (c) 2014, 2015, the respective contributors All rights rese...
1,141
1,334
package org.mockserver.serialization.serializers.schema; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.node.ObjectNode; ...
319
2,073
<filename>Hadoop/apache-mahout-0.10.2-compile/mr/src/test/java/org/apache/mahout/cf/taste/impl/recommender/ReversingRescorer.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 reg...
488
348
{"nom":"Rahon","circ":"3ème circonscription","dpt":"Doubs","inscrits":93,"abs":19,"votants":74,"blancs":2,"nuls":2,"exp":70,"res":[{"nuance":"LR","nom":"<NAME>","voix":55},{"nuance":"REM","nom":"M. <NAME>","voix":15}]}
89
1,816
"""New Rule Enclosure Command.""" import inflection import os from ...utils.filesystem import get_module_dir, make_directory, render_stub_file from ...utils.location import base_path from ...utils.str import as_filepath from ...commands.Command import Command class MakeRuleEnclosureCommand(Command): """ Crea...
603
521
<filename>include/retdec/bin2llvmir/optimizations/decoder/decoder_ranges.h /** * @file include/retdec/bin2llvmir/optimizations/decoder/decoder_ranges.h * @brief Representation of ranges to decode. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_DECODER_DE...
625
479
import windows import windows.generated_def as gdef def test_ipv4_connection(): windows.system.network.ipv4 # Better idea ? def test_ipv6_connection(): windows.system.network.ipv6 # Better idea ? def test_firewall(): firewall = windows.system.network.firewall assert firewall.enabled # Its a dict that...
234
695
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package controller.battlefield; import java.util.ArrayList; import java.util.List; import model.CommandManager; import model.battlefield.army.Unity; import model.battlefield.army.components.Unit; import con...
694
302
#ifndef ENGINE_H #define ENGINE_H class Engine { public: Engine(); }; #endif // ENGINE_H
43
826
<gh_stars>100-1000 // SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #ifndef INCLUDED_OCIO_FILEFORMAT_UTILS_H #define INCLUDED_OCIO_FILEFORMAT_UTILS_H #include <OpenColorIO/OpenColorIO.h> #include "ops/lut1d/Lut1DOpData.h" #include "ops/lut3d/Lut3DOpData.h" namespace OC...
407
355
<filename>mmselfsup/models/necks/nonlinear_neck.py # Copyright (c) OpenMMLab. All rights reserved. import torch.nn as nn from mmcv.cnn import build_norm_layer from mmcv.runner import BaseModule from ..builder import NECKS @NECKS.register_module() class NonLinearNeck(BaseModule): """The non-linear neck. Stru...
2,344
4,857
/* * 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 ...
3,015
8,747
<reponame>lovyan03/esp-idf #include "esp_log.h" /* Function used to tell the linker to include this file * with all its symbols. */ void bootloader_hooks_include(void){ } void bootloader_before_init(void) { /* Keep in my mind that a lot of functions cannot be called from here * as system initialization ha...
187
4,879
#include "kinetic_scroller.hpp" #include "visual_params.hpp" #include "indexer/scales.hpp" #include "base/logging.hpp" #include <algorithm> namespace df { double const kKineticDuration = 1.5; double const kKineticFadeoff = 4.0; double const kKineticThreshold = 50.0; double const kKineticAcceleration = 0.4; double c...
2,223
575
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/wm/full_restore/full_restore_controller.h" #include <cstdint> #include "ash/public/cpp/app_types.h" #include "ash/public/cpp/shell_window_...
3,706
2,032
/* Tencent is pleased to support the open source community by making PhxQueue available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice...
2,464
4,812
//===-- PPCInstrBuilder.h - Aides for building PPC insts --------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
451
4,640
<gh_stars>1000+ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"...
523
2,151
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/media/router/route_message_observer.h" #include "chrome/browser/media/router/media_router.h" namespace media_router { RouteMes...
260
1,288
<reponame>s3bubble/shaka-packager<filename>packager/media/crypto/subsample_generator_unittest.cc // Copyright 2018 Google LLC. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #...
8,572
937
import logging import uuid from datetime import timedelta from typing import List, Optional from django.apps import apps from django.db import IntegrityError, models, transaction from django.utils import dateformat, timezone from django.utils.encoding import smart_str from stripe.api_resources.abstract.api_resource im...
16,438
2,151
<gh_stars>1000+ // 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 IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_NTP_HOME_MEDIATOR_H_ #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_NTP_HOME_MEDIATOR...
911
488
/* * Copyright (c) Wipro Technologies Ltd, 2002. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it w...
2,055
341
from instapy_cli import client username = 'USERNAME' password = 'PASSWORD' # There are two ways to use instapy-cli programmatically: # vvv << see below >> vvv # Create cli and use it in functions/classes/parameters cli = client(username, password) ig = cli.api() me = ig.current_user() print(me) # Create cli using...
171
427
from __future__ import print_function import gdbremote_testcase from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestGdbRemoteThreadsInStopReply( gdbremote_testcase.GdbRemoteTestCaseBase): mydir = TestBase.compute_mydir(__file__) ...
3,413
4,842
package com.gpmall.user.dal.entitys; import lombok.Data; /** * 腾讯课堂搜索【咕泡学院】 * 官网:www.gupaoedu.com * 风骚的Mic 老师 * create-date: 2019/8/6-14:35 */ @Data public class ImageResult { String img; String code; }
133
4,145
<gh_stars>1000+ # Copyright (c) 2021, NVIDIA CORPORATION. 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 r...
1,741
848
# Copyright (C) 2020 Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # import re from collections import namedtuple import common import board_cfg_lib import scenario_cfg_lib VBAR_INFO_DEFINE="""#ifndef VBAR_BASE_H_ #define VBAR_BASE_H_ """ VBAR_INFO_ENDIF="""#endif /* VBAR_BASE_H_...
11,048
1,444
package mage.cards.t; import java.util.UUID; import mage.abilities.effects.common.continuous.BoostOpponentsEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; /** * * @author Loki */ public final class TurnTheTide extends CardImpl { ...
271
352
{ "description": "Counterfactual regret related experiments.", "order": [ "JuliaRL_TabularCFR_OpenSpiel.jl", "JuliaRL_DeepCFR_OpenSpiel.jl" ] }
64
4,036
<reponame>vadi2/codeql /* Foo */ #include "h.h" typedef int foo; /* Bar */ #include "i.h" typedef int bar;
56
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t1/062/06209195.json {"nom":"Calonne-sur-la-Lys","circ":"9ème circonscription","dpt":"Pas-de-Calais","inscrits":1227,"abs":627,"votants":600,"blancs":13,"nuls":6,"exp":581,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":190},{"nuance":"FN","nom":"M. <NAME...
343
723
<filename>mac/vendor/EDSemver/Project/semverTests/EDSemverGreaterThan.h // // EDSemverGreaterThan.h // semver // // Created by <NAME> on 7/7/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "EDSemverHarness.h" @interface EDSemverGreaterThan : SenTestCase @end
116
732
// // OpenShareHeader.h // openshare // // Created by LiuLogan on 15/5/15. // Copyright (c) 2015年 OpenShare <http://openshare.gfzj.us/>. All rights reserved. // #ifndef openshare_OpenShareHeader_h #define openshare_OpenShareHeader_h #import "OpenShare+QQ.h" #import "OpenShare+Weibo.h" #import "OpenShare+Weixin.h" ...
154
2,338
<reponame>mkinsner/llvm<gh_stars>1000+ /// Test that llvm-cov supports a fake gcov 4.2 format used before clang 11. // RUN: rm -rf %t && mkdir %t && cd %t // RUN: echo -e '\n\n\n\n\n\n\n\n\n' > test.cpp && echo > test.h // RUN: llvm-cov gcov test. --gcno=%S/Inputs/gcov-fake-4.2.gcno --gcda=%S/Inputs/gcov-fake-4.2.gcda...
887
572
from json import loads from behave import when, then from requests import get, post @when(u'faço uma requisição na url "{url}"') def request_url(context, url): context.response = get(url='{}{}'.format(context.base_url, url)) @then(u'a api deve responder') def check_response_json(context): assert context.re...
250
348
{"nom":"Viellenave-de-Navarrenx","circ":"4ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":115,"abs":35,"votants":80,"blancs":5,"nuls":2,"exp":73,"res":[{"nuance":"DVD","nom":"<NAME>","voix":46},{"nuance":"REM","nom":"<NAME>","voix":27}]}
104
402
/** * Copyright © 2018 spring-data-dynamodb (https://github.com/derjust/spring-data-dynamodb) * * 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/LIC...
1,045
335
{ "word": "Windproof", "definitions": [ "(of a garment or fabric) giving protection from the wind." ], "parts-of-speech": "Adjective" }
65
316
<reponame>burgerdev/vigra #include "g++_relops_workaround.hxx" #include "vector_2_image_policy.hxx" #include "basic_image_test.hxx" Vector2BasicImageTestSuite ::Vector2BasicImageTestSuite() : vigra::test_suite(" Vector2BasicImageTestSuite") { add ( new BasicImageTestSuite<Vector2ImagePolicy<vigra::FVe...
266
1,830
<filename>test-util/src/main/java/io/camunda/zeebe/test/util/bpmn/random/steps/StepTriggerTimerBoundaryEvent.java<gh_stars>1000+ /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for addit...
603
333
/* * Copyright 2018 NXP. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * Redistribut...
814
882
<filename>py2/jenkins_h2o_port_allocate.py<gh_stars>100-1000 #!/usr/bin/python # "Avoid locker or centralized resource by hard-wiring the port mapping within range" # "implied by max # of ports used per job, max # of executors per machine, and # of machines." # "Map of source determines port. in/out using env variabl...
2,859
716
<filename>runtime/flang/dbesy03f.c /* * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * */ /* clang-format off */ /* dbesy03f.c - Implements LIB3F dbesy0 subprogra...
186
3,066
/* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not use this f...
804
3,269
<filename>Algo and DSA/LeetCode-Solutions-master/Python/minimum-operations-to-reduce-x-to-zero.py # Time: O(n) # Space: O(1) class Solution(object): def minOperations(self, nums, x): """ :type nums: List[int] :type x: int :rtype: int """ target = sum(nums)-x ...
359
1,909
<filename>spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/JobExecutionDao.java /* * Copyright 2006-2018 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 obta...
946
988
<gh_stars>100-1000 //------------------------------------------------------------------------------ // GB_ek_slice.h: slice the entries and vectors of a matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved. // SPDX-...
4,438
1,350
<filename>sdk/eventhubs/azure-messaging-eventhubs-track1-perf/src/main/java/com/azure/messaging/eventhubs/perf/SendEventDataTest.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.messaging.eventhubs.perf; import com.microsoft.azure.eventhubs.EventDa...
836
3,631
<filename>kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/TrisoExtensionRegister.java /* * Copyright 2019 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. ...
618
620
<gh_stars>100-1000 import os import random import numpy as np from scipy.sparse import identity, csr_matrix from utils import (build_knns, knns2ordered_nbrs, fast_knns2spmat, build_symmetric_adj, clusters2labels, Timer) def chinese_whispers(feats, prefix, name, knn_method, knn, th_sim, iters, ...
2,348
347
package org.ovirt.engine.api.restapi.test.mappers.impl; import org.ovirt.engine.api.restapi.test.mappers.api.IFoo; public class FooImpl implements IFoo { private String s; private String other; public FooImpl() { } public FooImpl(String s) { this.s = s; } public FooImpl(String ...
258
335
{ "word": "Exude", "definitions": [ "(with reference to moisture or a smell) discharge or be discharged slowly and steadily.", "(of a person) display (an emotion or quality) strongly and openly.", "(of a place) have a strong atmosphere of." ], "parts-of-speech": "Verb" }
111
621
package net.neevek.android.lib.paginize; import android.content.Intent; import android.content.res.Configuration; import android.content.res.Resources; import android.os.Bundle; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import net.neevek.and...
4,000
521
<reponame>wk8/elle #ifndef VERSION_HPP # define VERSION_HPP # define BOOST_VERSION 105300 #endif
44