max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
607
/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once namespace stm32plus { namespace display { /** * @brief A point co-ordinate structure */ struct Point { ...
672
354
import torch import torch.nn as nn import math from .resnet import ResNet_imagenet, ResNet_cifar, BasicBlock, Bottleneck from .modules.se import SEBlock __all__ = ['resnext', 'resnext_se'] class ResNeXt_imagenet(ResNet_imagenet): def __init__(self, width=[128, 256, 512, 1024], groups=[32, 32, 32, 32], expansion...
837
8,747
<filename>components/bt/test/test_bt_common.c /* Tests for the BT common things implementation */ #include <stdbool.h> #include "unity.h" extern bool btdm_controller_compile_version_check(void); TEST_CASE("bt_controller_git_commit_check", "[bt_common]") { TEST_ASSERT(btdm_controller_compile_version_check() == ...
123
491
<reponame>clayne/unicorn_pe # For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [m68k_const.py] # M68K registers UC_M68K_REG_INVALID = 0 UC_M68K_REG_A0 = 1 UC_M68K_REG_A1 = 2 UC_M68K_REG_A2 = 3 UC_M68K_REG_A3 = 4 UC_M68K_REG_A4 = 5 UC_M68K_REG_A5 = 6 UC_M68K_REG_A6 = 7 UC_M68K_REG_A7 = 8 UC_M68K_REG_D0 = 9 UC_M68K...
306
5,133
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.bugs._1772; import org.mapstruct.ap.testutil.IssueKey; import org.mapstruct.ap.testutil.ProcessorTest; import org.mapstruct.ap.testutil.WithC...
344
335
{ "word": "Unrelenting", "definitions": [ "Not yielding in strength, severity, or determination.", "Not giving way to kindness or compassion." ], "parts-of-speech": "Adjective" }
81
1,871
<reponame>igor0/gpt-neox # coding=utf-8 # Copyright (c) 2020, 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/...
1,075
1,165
/******************************************************************************* * Copyright 2018 T Mobile, 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. You may obtain a copy * o...
1,378
1,018
/* * Copyright 2011-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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
1,068
626
<reponame>kasys-lab/anserini import argparse import json import logging import os import pickle import time import scipy.sparse import sklearn.preprocessing import numpy as np import utils def dump_docvectors(config): run = config['target']['run'] source_name = config['target']['name'] index = config['t...
2,114
5,964
<reponame>wenfeifei/miniblink49 // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BeaconLoader_h #define BeaconLoader_h #include "core/CoreExport.h" #include "core/loader/PingLoader.h" #include "...
521
3,586
package com.linkedin.datahub.upgrade; /** * Represents the result of executing an {@link Upgrade} */ public interface UpgradeResult { /** * The execution result. */ enum Result { /** * Upgrade succeeded. */ SUCCEEDED, /** * Upgrade failed. */ FAILED, /** * Upgr...
215
482
<reponame>facebook/fblualib /** * Copyright 2014 Facebook * @author <NAME> (<EMAIL>) */ #include <fblualib/LuaUtils.h> #include <fblualib/thrift/LuaObject.h> #include <fblualib/thrift/Serialization.h> using namespace fblualib; using namespace fblualib::thrift; namespace { int pushAsString(lua_State* L, const Lua...
2,463
456
<gh_stars>100-1000 { "index_name": "titanphp", "start_urls": [ "http://kilavuz.titanphp.com/" ], "stop_urls": [ "http://kilavuz.titanphp.com/index.html", "http://kilavuz.titanphp.com/surum_notlari.html" ], "selectors": { "lvl0": ".main-content h1", "lvl1": ".main-content h2.subTitle", ...
200
311
raise ImportError("Azure AD B2C can be configured via AzureAdOAuthenticator")
21
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Dialer", "definitions": [ "a device or piece of software for calling telephone numbers automatically." ], "parts-of-speech": "Noun" }
82
788
/* * * * Licensed to the Apache Software Foundation (ASF) under one or more * * contributor license agreements. The ASF licenses this file to You * * 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 ...
3,033
430
// // NUDParagraphStyle.h // textExample // // Created by <NAME> on 2018/11/1. // Copyright © 2018 com.CAI. All rights reserved. // #import <UIKit/UIKit.h> @interface NUDParagraphStyle : NSMutableParagraphStyle @end @interface NSMutableParagraphStyle (NUDParagraphStyle) - (void)nud_mergeParagraphStyle:(NSMutab...
133
362
<reponame>WEBZCC/whois package net.ripe.db.whois.query.hazelcast; import com.hazelcast.cluster.MembershipEvent; import com.hazelcast.cluster.MembershipListener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class HazelcastMemberShipListener implements MembershipListener { private static final L...
283
10,225
package io.quarkus.arc.test.unproxyable; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.spi.DeploymentException; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.jboss.shrinkwrap.api.spec.JavaArchive; import org.junit.jupiter....
546
2,132
// // Licensed under the terms in License.txt // // Copyright 2010 <NAME>. All rights reserved. // #import <Kiwi/Kiwi.h> @interface TestSpy : NSObject<KWMessageSpying> #pragma mark - #pragma mark Checking Notifications @property (nonatomic, readonly) BOOL wasNotified; @end
97
2,151
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrCCPathProcessor_DEFINED #define GrCCPathProcessor_DEFINED #include "GrCaps.h" #include "GrGeometryProcessor.h" #include "SkPath.h" #include <array> class GrOnFlush...
1,576
410
{ "authors": [ "<NAME>", "<NAME>", "<NAME>", "Telegraph View", "<NAME>", "<NAME>" ], "date_download": "2017-11-30T19:51:11", "date_modify": null, "date_publish": "2016-11-11T08:42:13", "description": "The death toll from a powerful Taliban truck bombing at the German consulate in Afg...
764
416
import os import sys sys.path.append(os.path.dirname(os.path.dirname(__file__))) import numpy as np from data import get_loader from utils import update_state, save_ckpt_file from utils import joint_transforms as jnt_trnsf from utils import summarize_model from networks import get_network import torch import torchvi...
6,086
14,668
<gh_stars>1000+ // 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. package org.chromium.webapk.test; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.pm.Applic...
2,408
500
from sklearn.ensemble import RandomForestClassifier def portfolio_rf(): rf = [ RandomForestClassifier(criterion='entropy', max_features=0.13891783454814322, min_samples_leaf=2, min_samples_split=9, ...
4,506
360
<filename>src/common/interfaces/libpq/client_logic_fmt/gs_copy.h /* * 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:...
438
914
<reponame>sb1705/AdversarialAutoencoder<filename>adversarialAE/utils/image_utils.py import keras.backend as K import numpy as np from keras.layers import Input, Reshape def dim_ordering_fix(x): if K.image_dim_ordering() == 'th': return x else: return np.transpose(x, (0, 2, 3, 1)) def dim_ord...
502
2,868
/* * Copyright (c) 2015-2017, Intel Corporation * * 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 f...
1,953
803
# Copyright 2019 DeepMind Technologies Limited. 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,978
678
<reponame>bzxy/cydia<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary */ #import <PhotoLibrary/PhotoLibrary-Structs.h> #import <PhotoLibrary/UITableViewDataSource.h> #import <PhotoLibrary/UITableViewDelegate.h> ...
830
14,668
// 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 "components/paint_preview/common/version.h" namespace paint_preview { const uint32_t kPaintPreviewVersion = 2; } // namespace paint_preview
95
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...
3,301
478
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "AdaptiveActionParserRegistration.h" #include "AdaptiveElementParserRegistration.h" #include "CustomActionWrapper.h" #include "AdaptiveShowCardActionParser.h" #include "AdaptiveSubmitActionParser.h"...
1,731
354
<reponame>wangtong106/deep_srl import numpy import theano from theano import config as theano_config from neural_srl.shared.numpy_utils import random_normal_initializer floatX = theano_config.floatX def numpy_floatX(data): return numpy.asarray(data, dtype=floatX) def get_variable(name, shape, initializer=None, dt...
182
964
<reponame>cxMiguelSilva/kics<filename>assets/queries/cloudFormation/aws/config_configuration_aggregator_to_all_regions_disabled/test/positive_expected_result.json<gh_stars>100-1000 [ { "queryName": "Configuration Aggregator to All Regions Disabled", "severity": "HIGH", "line": 10, "fileName": "positiv...
545
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...
851
1,374
<filename>3装饰模式/3装饰模式/ConcreteComponent.h<gh_stars>1000+ // // ConcreteComponent.h // 3装饰模式 // // Created by huangchengdu on 17/5/25. // Copyright © 2017年 黄成都. All rights reserved. // #import "Component.h" @interface ConcreteComponent : Component @end
125
580
// DynaMix // Copyright (c) 2013-2019 <NAME>, <NAME> // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #include <dynamix/core.hpp> #include <dynamix/combinators.hpp> #include "doctest/doctest.h" TEST_SUITE_BEGIN("combinators"); ...
2,234
5,411
/* * (C) 2013 <NAME> * (C) 2016 <NAME>, Rohde & Schwarz Cybersecurity * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_GCM_GHASH_H_ #define BOTAN_GCM_GHASH_H_ #include <botan/sym_algo.h> namespace Botan { /** * GCM's GHASH * This is not intended for general use, but is expos...
907
1,444
package mage.cards.t; import java.util.UUID; import mage.MageInt; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.SacrificeTargetCost; import mage.abilities.effects.common.continuous.BoostSourceEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.const...
552
2,665
package com.geccocrawler.gecco.demo.jd; import org.apache.commons.lang3.StringUtils; import com.geccocrawler.gecco.annotation.PipelineName; import com.geccocrawler.gecco.pipeline.Pipeline; import com.geccocrawler.gecco.request.HttpRequest; import com.geccocrawler.gecco.scheduler.SchedulerContext; @PipelineName("prod...
402
713
<filename>server/tests/src/test/java/org/infinispan/server/functional/RestServerResource.java package org.infinispan.server.functional; import static org.infinispan.server.test.core.Common.sync; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.as...
1,492
716
<gh_stars>100-1000 from envi.archs.msp430.regs import * checks = [ # INC ( 'INC r15', { 'regs': [(REG_R15, 0x1)], 'flags': [(SR_N, 0), (SR_Z, 0), (SR_C, 1), (SR_V, 0)], 'code': "1f53", 'data': "" }, { 'regs': [(REG_R15, 0x2)], 'flags': [(SR_N, 0), (SR_Z, 0), (SR_C, 0), (SR_V, 0)], 'code...
1,223
1,697
<filename>IOT-Guide-Custom-Protocol/src/main/java/iot/technology/custom/protocol/request/HeartBeatRequestPacket.java package iot.technology.custom.protocol.request; import iot.technology.custom.protocol.Packet; import static iot.technology.custom.protocol.command.Command.HEARTBEAT_REQUEST; /** * @author james mu *...
170
441
<reponame>javamonkey/beetl2.0 package org.beetl.core.statement; import java.io.IOException; import org.beetl.core.Context; import org.beetl.core.InferContext; import org.beetl.core.exception.BeetlException; /** * ${exp,format=""} * @author joelli * */ public final class PlaceholderST extends Stateme...
1,109
348
{"nom":"Bussy-Lettrée","circ":"5ème circonscription","dpt":"Marne","inscrits":248,"abs":153,"votants":95,"blancs":6,"nuls":1,"exp":88,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":53},{"nuance":"FN","nom":"<NAME>","voix":35}]}
94
1,853
/* * Copyright 2017-2021 Dromara.org * * 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 agree...
449
1,120
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef K4APOINTCLOUDVIEWCONTROL_H #define K4APOINTCLOUDVIEWCONTROL_H // System headers // // Library headers // #include "k4aimgui_all.h" #include "linmath.h" // Project headers // namespace k4aviewer { // The type of...
597
2,113
<gh_stars>1000+ //----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 wi...
2,381
972
<filename>core/src/main/java/fr/pilato/elasticsearch/crawler/fs/service/FsCrawlerManagementService.java /* * Licensed to <NAME> (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author lice...
693
1,831
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <chrono> #include <boost/any.hpp> #include <boost/program_options.hpp> #inclu...
2,624
634
<reponame>halotroop2288/consulo /* * Copyright 2000-2009 JetBrains s.r.o. * * 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...
3,997
7,629
<gh_stars>1000+ /* * Fuzzing of boost property tree parsers. * by <NAME> 20180818 * * 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 ...
561
353
<reponame>AdarshSai/Final_project import builtins import os import subprocess import sys import textwrap def test_simple(): assert 1 + 1 == 2 def test_override_builtins(): import pylab ok_to_override = { '__name__', '__doc__', '__package__', '__loader__...
626
1,131
<reponame>ycyun/ablestack-cloud<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 L...
3,959
344
#pragma once #include "global.h" #include "sprite.h" #include "constants/field_effects.h" extern const struct SpriteTemplate *const gFieldEffectObjectTemplatePointers[36]; extern const struct OamData gNewGameBirchOamAttributes; #define gFieldEffectArguments ((u32*) 0x20386E0) //extern u32 gFieldEffectArguments[8]; ...
628
2,084
<reponame>JieDing/WasmEdge // SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: 2019-2022 Second State INC //===-- wasmedge/po/parser.h - Single Argument parser ---------------------===// // // Part of the WasmEdge Project. // //===----------------------------------------------------------------------===/...
1,032
2,863
<gh_stars>1000+ package org.spockframework.mock.runtime; import spock.lang.Specification; /** * The Object implementing this interface can be attached to and * detached from a {@link Specification}. * * @author <NAME> */ public interface SpecificationAttachable { /** * Attaches the mock to a specification....
152
892
{ "schema_version": "1.2.0", "id": "GHSA-4cc7-pcqm-mp56", "modified": "2022-05-02T06:18:31Z", "published": "2022-05-02T06:18:31Z", "aliases": [ "CVE-2010-1051" ], "details": "Multiple SQL injection vulnerabilities in index.php in AudiStat 1.3 allow remote attackers to execute arbitrary SQL commands vi...
357
348
<gh_stars>100-1000 {"nom":"<NAME>","circ":"4ème circonscription","dpt":"Var","inscrits":5155,"abs":3111,"votants":2044,"blancs":138,"nuls":40,"exp":1866,"res":[{"nuance":"REM","nom":"<NAME>","voix":1014},{"nuance":"FN","nom":"<NAME>","voix":852}]}
102
3,434
<reponame>feixueck/jetcache<gh_stars>1000+ package com.alicp.jetcache.anno.config.combined; import com.alicp.jetcache.anno.Cached; /** * Created on 2017/2/14. * * @author <a href="mailto:<EMAIL>">huangli</a> */ public interface Service { @Cached int combinedTest1(); int combinedTest2(); }
131
5,813
<reponame>RomaKoks/druid /* * 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...
4,800
2,222
// // RTCollectionViewController.h // RTRootNavigationController // // Created by ricky on 16/6/9. // Copyright © 2016年 rickytan. All rights reserved. // #import <UIKit/UIKit.h> @interface RTCollectionViewController : UICollectionViewController @end
90
501
<reponame>siklu/mina-sshd /* * 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 ...
4,268
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.ai.formrecognizer.models; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; /** Defines values for DocumentFieldType. */ public final class DocumentFieldType ...
630
348
{"nom":"Balagny-sur-Thérain","circ":"3ème circonscription","dpt":"Oise","inscrits":1171,"abs":649,"votants":522,"blancs":13,"nuls":0,"exp":509,"res":[{"nuance":"FN","nom":"<NAME>","voix":172},{"nuance":"REM","nom":"<NAME>","voix":107},{"nuance":"LR","nom":"<NAME>","voix":59},{"nuance":"FI","nom":"Mme <NAME>","voix":46}...
327
383
#!/usr/bin/env python3 import argparse import sys import os import re from collections import OrderedDict script_dir = os.path.dirname(os.path.abspath(__file__)) root_dir = os.path.dirname(script_dir) sys.path.append(root_dir) tercom_path = os.path.join(script_dir, 'tercom.jar') from translate.evaluation import corp...
1,515
361
/* * 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 ...
542
554
package github.tornaco.xposedmoduletest.ui.activity.workflow; import android.content.Context; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v4.content.ContextCompat; import android.support.v7.widget.SwitchCompat; import android.view.Menu; import android.view.M...
3,113
539
<filename>UI/CacheSimMainWindow.h /* Copyright (c) 2017, Insomniac Games All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list ...
569
348
{"nom":"Saleignes","circ":"3ème circonscription","dpt":"Charente-Maritime","inscrits":47,"abs":16,"votants":31,"blancs":1,"nuls":3,"exp":27,"res":[{"nuance":"REM","nom":"<NAME>","voix":18},{"nuance":"LR","nom":"<NAME>","voix":9}]}
93
5,926
from foobar.Foo import Foo from foobar.Bar import Bar
16
3,200
# Copyright 2019 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 law or agreed to...
9,283
1,475
<filename>geode-core/src/main/java/org/apache/geode/cache/DiskStore.java /* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to Y...
2,109
1,405
<filename>sample4/recompiled_java/sources/com/lenovo/safecenter/net/support/UidDetailProvider.java package com.lenovo.safecenter.net.support; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.conten...
1,951
651
package org.spongycastle.crypto.tls; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class HeartbeatExtension { protected short mode; public HeartbeatExtension(short mode) { if (!HeartbeatMode.isValid(mode)) { throw new IllegalArgume...
580
1,177
<filename>tests/tests/simple_maker_taker_fee_tests.cpp /* * Copyright (c) 2020 <NAME>, and contributors. * * The MIT License * * 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 r...
43,769
1,836
<reponame>keichinger/skip /** * 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. */ #include "skip/Type.h" #include "testutil.h" #include <gtest/gtest.h> using namespace skip; using nam...
4,768
929
<gh_stars>100-1000 from datetime import datetime from django.contrib.contenttypes.models import ContentType from django.template.defaultfilters import slugify import factory from nose.tools import eq_ from kitsune.access.tests import PermissionFactory from kitsune.forums.models import Forum, Thread, Post from kitsun...
1,232
1,350
<reponame>billwert/azure-sdk-for-java<filename>sdk/keyvault/azure-security-keyvault-keys/src/samples/java/com/azure/security/keyvault/keys/ReadmeSamples.java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.security.keyvault.keys; import ...
4,854
833
#include "common.h" u64 sub64_ir(u64 x, u64 y) { u32 xh, xl, yh, yl; u32 hi, lo; xl = (u32) x; yl = (u32) y; lo = xl - yl; xh = (u32) (x >> 32); yh = (u32) (y >> 32); hi = xh - yh - (lo > xl); /* underflow? */ return ((u64)hi << 32) | (u64)lo; ...
206
3,976
<reponame>saurabh896/python-1<gh_stars>1000+ # coding=utf-8 import urllib2 from bs4 import BeautifulSoup """ 0008:一个HTML文件,找出里面的正文。 """ def show_content(url, content_tag, content_tag_class): content = urllib2.urlopen(url).read() soup = BeautifulSoup(content) for tag in soup.find_all(content_tag, cont...
211
415
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance # with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
6,691
30,023
"""Signal Messenger for notify component.""" from __future__ import annotations import logging from typing import Any from pysignalclirestapi import SignalCliRestApi, SignalCliRestApiError import requests import voluptuous as vol from homeassistant.components.notify import ( ATTR_DATA, PLATFORM_SCHEMA, B...
2,716
347
package org.ovirt.engine.ui.uicommonweb.models.vms; import java.util.List; import org.ovirt.engine.core.compat.Guid; public abstract class IconCacheMockBase extends IconCache { public IconCacheMockBase() { super(); } public void inject() { IconCache.setInstance(this); } public...
339
6,098
package hex.gam.MatrixFrameUtils; import hex.VarImp; import hex.gam.GAMModel; import hex.glm.GLMModel; import water.fvec.Frame; import water.util.ArrayUtils; import water.util.Log; import water.util.TwoDimTable; import static hex.ModelMetrics.calcVarImp; import static hex.gam.GAMModel.GAMParameters; import static hex...
5,338
1,510
<reponame>mayyamus/drill /* * 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...
602
575
<gh_stars>100-1000 // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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-...
1,494
704
<filename>governator-core/src/test/java/com/netflix/governator/package1/AutoBindModule.java package com.netflix.governator.package1; import com.google.inject.AbstractModule; import com.netflix.governator.annotations.AutoBindSingleton; @AutoBindSingleton public class AutoBindModule extends AbstractModule { @Overri...
131
403
<filename>plugins/jdbc/src/main/java/com/megaease/easeagent/plugin/jdbc/interceptor/JdbcStmPrepareSqlInterceptor.java /* * Copyright (c) 2021, MegaEase * 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. * Yo...
1,464
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. #include "ash/system/power/power_button_test_base.h" #include "ash/public/cpp/ash_switches.h" #include "ash/session/session_controller.h" #include "ash/s...
1,723
310
<reponame>dreeves/usesthis<gh_stars>100-1000 { "name": "Inspiron 6000", "description": "A PC laptop with a 15.4 inch screen.", "url": "http://en.wikipedia.org/wiki/Dell_Inspiron#Inspiron_6000" }
78
1,200
<reponame>MemorySpring/DDMQ /** * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.xiaojukeji.carrera.thrift; import org.apache.thrift.EncodingUtils; import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift...
7,441
3,215
<reponame>listuser/jc import os import json import unittest import jc.parsers.dmidecode THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class MyTests(unittest.TestCase): def setUp(self): # input with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/dmidecode.out'), 'r', en...
1,059
302
#include "cascadecolorhighlightwidgetitem.h" #include <QApplication> #include <QLabel> #include <QTextDocument> #include <QTimer> #include <QVBoxLayout> #include <QWidget> #include <QDebug> int main(int argc, char *argv[]) { QApplication a(argc, argv); CascadeColorHighlightWidgetItem widget(1, QColor("red")); ...
189
485
<filename>indexr-query-opt/src/main/java/io/indexr/query/plan/logical/LogicalPlan.java<gh_stars>100-1000 package io.indexr.query.plan.logical; import java.util.List; import java.util.function.Function; import io.indexr.query.Resolver; import io.indexr.query.expr.Expression; import io.indexr.query.expr.attr.Attribute;...
1,562
1,043
<filename>modules/simple-java-mail/src/main/java/org/simplejavamail/mailer/internal/MailerFromSessionBuilderImpl.java package org.simplejavamail.mailer.internal; import org.simplejavamail.api.internal.clisupport.model.Cli; import org.simplejavamail.api.mailer.MailerFromSessionBuilder; import org.jetbrains.annotations...
476
7,892
sound_type snd_make_tonev(sound_type s1, sound_type hz); sound_type snd_tonev(sound_type s1, sound_type hz); /* LISP: (snd-tonev SOUND SOUND) */
67
310
<reponame>dreeves/usesthis<gh_stars>100-1000 { "name": "make", "description": "Software to prepare code for compilation.", "url": "http://www.gnu.org/software/make/manual/make.html" }
70