max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
345
/* * Copyright 2016 HuntBugs 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 ...
5,227
2,591
package liquibase.integration.cdi.annotations; import javax.inject.Qualifier; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; /** * Qualifier Annotation * * @author <NAME> (http://github.com/...
154
521
/* $XFree86: xc/include/extensions/xtrapproto.h,v 1.2 2002/02/22 21:32:51 dawes Exp $ */ #ifndef __XTRAPPROTO__ #define __XTRAPPROTO__ /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1991 by Digital Equipment Corp., Maynard, MA Permission to use, copy,...
2,656
632
<reponame>comradekingu/Ghost-Android<filename>app/src/main/java/me/vickychijwani/spectre/event/BusProvider.java package me.vickychijwani.spectre.event; import android.support.annotation.RestrictTo; import com.squareup.otto.Bus; import com.squareup.otto.ThreadEnforcer; public class BusProvider { private static B...
202
318
<gh_stars>100-1000 #pragma once #include "Core/vaCore.h" #ifdef VA_BULLETPHYSICS_INTEGRATION_ENABLED #include "Core/vaMath.h" #include "IntegratedExternals\bullet\btBulletDynamicsCommon.h" #include "IntegratedExternals\bullet\btBulletCollisionCommon.h" #include "IntegratedExternals\bullet\BulletCollision\Collisio...
1,240
377
#pragma once //------------------------------------------------------------------------------ /** @class CoreGraphics::DisplayDevice A DisplayDevice object represents the display where the RenderDevice presents the rendered frame. @copyright (C) 2007 Radon Labs GmbH (C) 2013-2020 Individual c...
229
1,799
<reponame>peblue12345/Paddle-Lite /* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Un...
1,406
14,668
<reponame>zealoussnow/chromium<gh_stars>1000+ // 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 "base/win/nt_status.h" #include "base/check.h" #include <windows.h> #include <winternl.h> using ...
364
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
2,988
369
<filename>FreeRTOSv10.4.1/FreeRTOS/Demo/CORTEX_A5_SAMA5D2x_Xplained_IAR/AtmelFiles/drivers/peripherals/usart_lin.c /* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- * Co...
3,824
777
// 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 UI_ANDROID_UI_ANDROID_JNI_REGISTRAR_H_ #define UI_ANDROID_UI_ANDROID_JNI_REGISTRAR_H_ #include <jni.h> #include "ui/android/ui_android_export.h"...
199
1,194
package ca.uhn.fhir.jpa.provider; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.dstu2.resource.Questionnaire; public class QuestionnaireResourceProviderDstu2 extends JpaResourceProviderDstu2<Questionnaire> { @Override public Class<? extends IResource> getResourceType() { return Questionnaire.c...
119
190,993
<gh_stars>1000+ # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
3,879
2,898
<reponame>gary-jiao/enhanced_ocropy import inspect import numpy as np def summary(x): """Summarize a datatype as a string (for display and debugging).""" if type(x)==np.ndarray: return "<ndarray %s %s>"%(x.shape,x.dtype) if type(x)==str and len(x)>10: return '"%s..."'%x if type(x)==list...
880
421
// <snippet0> #using <System.EnterpriseServices.dll> using namespace System; using namespace System::EnterpriseServices; // References: // System.EnterpriseServices // <snippet1> [ObjectPooling(true)] public ref class ObjectPoolingAttributeCtorBool : public ServicedComponent { }; // </snippet1> // <sn...
708
1,299
/* * 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 ...
933
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 ...
614
3,006
package com.nightonke.wowoviewpagerexample; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.v4.view.ViewPager; import android.view.View; import android.widget.ImageView; import com.nightonke.wowoviewpager.Animation.WoWoAlphaAnimation; import com.nightonke.wowov...
5,263
12,278
// Copyright <NAME> 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #ifndef BOOST_HANA_TEST_EXT_BOOST_FUSION_LIST_AUTO_SPECS_HPP #define BOOST_HANA_TEST_EXT_BOOST_FUSION_LIST_AUTO_SPECS_HPP #include <boost/hana/e...
294
918
/* * 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 ...
526
16,989
// Copyright 2018 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
1,617
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Carpetbagging", "definitions": [ "Seeking political election in an area where one has no local connections." ], "parts-of-speech": "Adjective" }
95
370
package com.fastasyncworldedit.core.util.collection; import com.fastasyncworldedit.core.math.random.SimpleRandom; import java.util.Map; import static com.google.common.base.Preconditions.checkNotNull; /** * A RandomCollection holds multiple values that can be accessed by using * {@link RandomCollection#next(int, ...
500
1,338
<reponame>Kirishikesan/haiku /* * Copyright 2003-2015 Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> * <NAME>, <EMAIL> */ #include "PreviewView.h" #include <algorithm> #include <iostream> #include <CardLayout.h> #include <Catalog.h> #include <GroupL...
1,672
3,269
<reponame>Priyansh2/LeetCode-Solutions // Time: O(n) // Space: O(1) class Solution { public: vector<int> getSumAbsoluteDifferences(vector<int>& nums) { int prefix = 0, suffix = accumulate(cbegin(nums), cend(nums), 0); vector<int> result; for (int i = 0; i < size(nums); ++i) { s...
256
806
<reponame>mafyoo/process { "file": "wire\/modules\/Process\/ProcessPageView.module", "textdomain": "wire--modules--process--processpageview-module", "translations": { "a479e6c423ecad082c067f87a37c152a": { "text": "Alle Seitenansichten werden durch diesen Prozess geroutet" }, ...
211
695
import json from tests_python.debugger_unittest import ReaderThread, IS_JYTHON from tests_python.debug_constants import IS_PY3K import pytest import socket from _pydev_bundle import pydev_localhost from _pydevd_bundle.pydevd_comm import start_client ABORT_CONNECTION = 'ABORT_CONNECTION' pytestmark = pytest.mark.skip...
1,480
1,756
<filename>mailcore2/src/core/basetypes/MCMainThreadAndroid.cpp // // MCMainThreadAndroid.cpp // mailcore2 // // Created by <NAME> on 11/11/14. // Copyright (c) 2014 MailCore. All rights reserved. // #include "MCMainThread.h" #include "MCMainThreadAndroid.h" #include "com_libmailcore_MainThreadUtils.h" #include <l...
1,624
562
<gh_stars>100-1000 from conans import ConanFile, tools, errors class ReflCppConan(ConanFile): name = "refl-cpp" license = "MIT" url = "https://github.com/conan-io/conan-center-index" homepage = "https://github.com/veselink1/refl-cpp" description = "A modern compile-time reflection library for C++ ...
830
2,211
package com.egzosn.pay.wx.v3.bean; import com.egzosn.pay.common.bean.BillType; import com.egzosn.pay.common.util.str.StringUtils; import com.egzosn.pay.wx.api.WxConst; /** * 资金账户类型 * * @author Egan * <pre> * email <EMAIL> * date 2021/2/22 * </pre> */ public enum WxAccountType implements BillType { /** ...
1,248
319
<filename>zippy/edu.uci.python.test/src/tests/generator-partition-test.py # zwei 06/16/2014 # inspired by sympy.utilities.iterables.kbins.partition() def partition(lista, bins): # EnricoGiampieri's partition generator from # http://stackoverflow.com/questions/13131491/ # partition-n-items-into-k-bins-in...
308
627
<reponame>closer2/chrome-ec /* Copyright 2015 The Chromium OS 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 __CROS_EC_VEC_4_H #define __CROS_EC_VEC_4_H #include "math_util.h" typedef float floatv4_t[4]; typedef fp_t ...
152
665
# SPDX-FileCopyrightText: 2021 <NAME> for Adafruit Industries # # SPDX-License-Identifier: MIT import board import neopixel from adafruit_bluefruit_connect.packet import Packet from adafruit_bluefruit_connect.color_packet import ColorPacket from adafruit_ble import BLERadio from adafruit_ble.advertising.standard im...
532
348
{"nom":"<NAME>","circ":"2ème circonscription","dpt":"Dordogne","inscrits":1951,"abs":1009,"votants":942,"blancs":85,"nuls":41,"exp":816,"res":[{"nuance":"REM","nom":"<NAME>","voix":535},{"nuance":"FN","nom":"<NAME>","voix":281}]}
94
2,542
from typing import Optional, Callable, Any, Tuple, TypeVar from ..model import Model from ..util import use_nvtx_range _ModelT = TypeVar("_ModelT", bound=Model) def with_nvtx_range( layer: _ModelT, name: Optional[str] = None, *, forward_color: int = -1, backprop_color: int = -1, ) -> _ModelT: ...
522
348
{"nom":"Mortemart","circ":"3ème circonscription","dpt":"Haute-Vienne","inscrits":80,"abs":20,"votants":60,"blancs":14,"nuls":4,"exp":42,"res":[{"nuance":"LR","nom":"<NAME>","voix":23},{"nuance":"REM","nom":"<NAME>","voix":19}]}
92
1,652
<filename>services/ctrip-service/src/main/java/com/ctrip/xpipe/service/metric/HickwallClient.java package com.ctrip.xpipe.service.metric; import com.ctrip.xpipe.api.codec.Codec; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; i...
2,313
5,813
<filename>extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramVectorAggregator.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 informat...
1,037
1,311
<filename>Jolt/Math/Float4.h<gh_stars>1000+ // SPDX-FileCopyrightText: 2021 <NAME> // SPDX-License-Identifier: MIT #pragma once namespace JPH { /// Class that holds 4 float values. Convert to Vec4 to perform calculations. class [[nodiscard]] Float4 { public: Float4() = default; ///< Intentionally not initialized...
290
831
/* * Copyright (C) 2014 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...
925
2,209
import const # For const.NO_INTEGER import runtime #from pylib import unpickle #from core import util #f = util.GetResourceLoader().open('_devbuild/demo_asdl.pickle') #TYPE_LOOKUP = unpickle.load_v2_subset(f) #f.close() #TYPE_LOOKUP = {} class op_id_e(runtime.SimpleObj): #ASDL_TYPE = TYPE_LOOKUP['op_id'] pass ...
2,756
701
<filename>sources/libs/brutal/math/rand.c #include <brutal/math/rand.h> void m_rand_init(MRand *self, uint32_t seed) { self->state = seed | (uint64_t)seed << 32; self->inc = (seed | ((uint64_t)seed << 32)) ^ ((uint64_t)seed << 16); } uint64_t m_rand_next_u64(MRand *self) { return m_rand_next_u32(self) | (...
417
4,036
<gh_stars>1000+ // Generated automatically from com.google.common.collect.AbstractMultiset for testing purposes package com.google.common.collect; import com.google.common.collect.Multiset; import java.util.AbstractCollection; import java.util.Collection; import java.util.Set; abstract class AbstractMultiset<E> exte...
416
348
{"nom":"Betchat","circ":"2ème circonscription","dpt":"Ariège","inscrits":296,"abs":137,"votants":159,"blancs":7,"nuls":9,"exp":143,"res":[{"nuance":"FI","nom":"<NAME>","voix":80},{"nuance":"REM","nom":"<NAME>","voix":63}]}
89
921
// Copyright 2016-2021 <NAME> // Licensed under the Apache License, version 2.0 // See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0 #ifndef LIBCURV_MEANING_H #define LIBCURV_MEANING_H #include <libcurv/phrase.h> #include <libcurv/sc_frame.h> #include <libcurv/sstate.h> #include <libcurv/sy...
2,095
348
{"nom":"Ouessant","circ":"6ème circonscription","dpt":"Finistère","inscrits":864,"abs":435,"votants":429,"blancs":51,"nuls":15,"exp":363,"res":[{"nuance":"REM","nom":"<NAME>","voix":228},{"nuance":"LR","nom":"Mme <NAME>","voix":135}]}
92
482
package io.nutz.demo.servicecomb.rpc.service; public interface TimeService { long now(); }
32
313
/* * Copyright 2019 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
537
348
{"nom":"Boussy","circ":"1ère circonscription","dpt":"Haute-Savoie","inscrits":413,"abs":207,"votants":206,"blancs":13,"nuls":2,"exp":191,"res":[{"nuance":"REM","nom":"<NAME>","voix":119},{"nuance":"LR","nom":"<NAME>","voix":72}]}
91
679
<reponame>Grosskopf/openoffice<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 copyrig...
3,097
3,084
#include <pch.h> /* ** Driver TODO: Add logic to EvtIoRead to handle read requests from applications that don't use the Windows.Devices.PointOfService APIs. ** ** This is the callback for the IO queue that handles file read requests. In the POS magnetic ** stripe reader model, the application will always queue ...
585
17,104
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 <NAME> // 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.) // See http://www.boost.org/libs/iostreams for documentatio...
442
1,016
<reponame>peter-ls/kylo package com.thinkbiganalytics.nifi.v2.metadata; /*- * #%L * thinkbig-nifi-core-processors * %% * Copyright (C) 2017 ThinkBig Analytics * %% * 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...
3,443
432
package us.parr.bookish.model; import us.parr.bookish.entity.EntityDef; import java.util.List; public class SubSection extends Section { public SubSection(EntityDef def, String title, OutputModelObject content, List<ContainerWithTitle> subsections) { super...
150
892
{ "schema_version": "1.2.0", "id": "GHSA-5pvm-xfh9-cf8m", "modified": "2022-05-02T06:14:38Z", "published": "2022-05-02T06:14:38Z", "aliases": [ "CVE-2010-0663" ], "details": "The ParamTraits<SkBitmap>::Read function in common/common_param_traits.cc in Google Chrome before 172.16.31.10 does not initial...
632
703
<filename>Code/Engine/GameEngine/Debugging/LineToComponent.h #pragma once #include <GameEngine/GameEngineDLL.h> #include <Core/World/Component.h> #include <Core/World/ComponentManager.h> class ezLineToComponentManager : public ezComponentManager<class ezLineToComponent, ezBlockStorageType::FreeList> { using SUPER ...
490
796
# Generated by Django 2.2 on 2019-07-24 09:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("audits", "0011_auto_20190624_1622")] operations = [ migrations.AddField( model_name="auditresults", name="wpt_metric_first_view_vis...
277
507
# terrascript/resource/heroku.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:18:37 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.resource.heroku # # instead of # # >>> import terrascript.resource.heroku.heroku # # This is only available for 'official' and 'partner' provi...
123
444
<filename>orchestra/migrations/0093_todo_status_default.py # Generated by Django 2.2.13 on 2021-02-11 21:57 from django.db import migrations, models import orchestra.models.core.models class Migration(migrations.Migration): dependencies = [ ('orchestra', '0092_autostaff_updates'), ] operations ...
231
3,428
<reponame>ghalimi/stdlib {"id":"00388","group":"spam-1","checksum":{"type":"MD5","value":"53eae0055e66fcb7194f9cca080fdefe"},"text":"From <EMAIL> Fri Sep 20 11:41:27 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby zzzzason.org (Po...
967
14,793
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.invoice.reimburse.*; import me.chanjar.weixin.common.error.WxErrorException; import java.util.List; /** * 电子发票报销方相关接口 * 接口文档: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Reimburser_API_List.html * @author <a h...
739
1,799
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "rtklib.h" #include "plotmain.h" #include "timedlg.h" #include "tspandlg.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource ...
2,925
852
<gh_stars>100-1000 /** * \class L1RetrieveL1Extra * * * Description: retrieve L1Extra collection, return validity flag and pointer to collection. * * Implementation: * <TODO: enter implementation details> * * \author: <NAME> - HEPHY Vienna * * */ // this class header #include "L1Trigger/GlobalTriggerA...
18,255
841
<gh_stars>100-1000 package org.jboss.resteasy.test.client.resource; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; @Path("") public class GenericReturnTypeResource implements GenericReturnTypeInterface<String> { @GET @Path("t") @Produces("text/plain") public String t()...
133
675
<reponame>bigplayszn/nCine #include "gtest_hashmap.h" #include "test_movable.h" namespace { class HashMapMovableTest : public ::testing::Test { public: HashMapMovableTest() : hashmap_(Capacity) {} protected: nctl::HashMap<int, Movable, nctl::FixedHashFunc<int>> hashmap_; }; #if !TEST_MOVABLE_ONLY TEST_F(...
1,315
590
/* * wboxtest/path/dirname.c */ #include <wboxtest.h> static void * dirname_setup(struct wboxtest_t * wbt) { return NULL; } static void dirname_clean(struct wboxtest_t * wbt, void * data) { } static void dirname_run(struct wboxtest_t * wbt, void * data) { char path[VFS_MAX_PATH]; sprintf(path, "%s", "/usr/lib...
478
419
<filename>src/services/dev_bind/sha256.c /* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ // Optimized for minimal code size. #include <stdio.h> #include <string.h> #include "os.h" #include "sha256.h" #define ror(value, bits) (((value) >> (bits)) | ((value) << (32 - (bits)))) #define shr(value, bits) ...
2,525
7,091
import os import time import paddle import paddle.nn as nn from paddle.io import DataLoader import paddle.distributed as dist from args import parse_args, print_args from elmo import ELMo, ELMoLoss from dataset import load_vocab, OneBillionWordDataset def save_params(elmo, optimizer, save_dir, name): elmo_ckpt =...
1,678
379
<gh_stars>100-1000 /*- * * Copyright 2016 Skymind, 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....
557
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,393
1,687
<gh_stars>1000+ public class Solution { // 参考资料:https://zhuanlan.zhihu.com/p/187004523 public int findMinStep(String board, String hand) { int[] c = new int[128]; for (char x : hand.toCharArray()) { c[x]++; } return aux(board, c); } /** * @param board...
937
475
package com.softwaremill.example.serializers; import com.softwaremill.example.SomeJavaComplexObject; import com.softwaremill.session.MultiValueSessionSerializer; import com.softwaremill.session.converters.MapConverters; import scala.Function1; import scala.collection.immutable.Map; import scala.compat.java8.JFunction0...
534
652
#pragma once #include <stdbool.h> #include "redismodule.h" #define REDISAI_LLAPI_VERSION 1 #define MODULE_API_FUNC(x) (*x) #ifdef REDISAI_EXTERN #define REDISAI_API extern #endif #ifndef REDISAI_API #define REDISAI_API #endif #ifndef REDISAI_H_INCLUDE typedef struct RAI_Tensor RAI_Tensor; typedef struct RAI_Mod...
10,242
445
/* * Mixer Interface - python binding simple abstact module * Copyright (c) 2007 by <NAME> <<EMAIL>> * * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 ...
13,975
856
// // Copyright © 2019 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "SliceTestImpl.hpp" #include <QuantizeHelper.hpp> #include <ResolveType.hpp> #include <backendsCommon/test/TensorCopyUtils.hpp> #include <backendsCommon/test/WorkloadTestUtils.hpp> #include <test/Tenso...
4,809
401
<filename>app/src/main/java/com/zwh/mvparms/eyepetizer/mvp/ui/widget/DragBottomView.java package com.zwh.mvparms.eyepetizer.mvp.ui.widget; import android.content.Context; import android.graphics.Point; import android.support.annotation.AttrRes; import android.support.annotation.NonNull; import android.support.annotati...
2,296
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 "third_party/blink/renderer/core/script/script.h" #include "third_party/abseil-cpp/absl/types/optional.h" #include "third_party/blink/renderer/c...
242
436
package com.tickaroo.tikxml.annotationprocessing.elementlist.constructor; import com.tickaroo.tikxml.annotation.Element; import com.tickaroo.tikxml.annotation.Xml; import com.tickaroo.tikxml.annotationprocessing.element.EmptyTag; import java.util.List; /** * @author <NAME> */ @Xml public class EmptyTagListConstruct...
181
435
<gh_stars>100-1000 { "description": "Earlier this year, girls from Brisbane's Clayfield College in Year 12 Information Technology Systems class used Python 3 and the Pygame module for their assessment piece; making an arcade-style game to a prototype standard. The new environment replaced the previous use of Adobe Fl...
301
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // // #include "includes/kratos_flags.h" ...
7,241
993
/** * Copyright 2013 Netflix, Inc. * <p/> * 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 * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * Unless required by applicable law...
1,796
312
<filename>tests/cloudcraft_graph_test.py<gh_stars>100-1000 # #!/usr/bin/env pytest # # from json import loads # from os import environ # # import pytest # from modulestf.cloudcraft.graph import populate_graph # # events = ( # ( # { # "AlarmType": "Unsupported alarm type", # "AWSAccountId": "00...
1,502
407
<filename>saas/dataops/api/metric-flink/metric-common/src/main/java/com/elasticsearch/cloud/monitor/metric/common/metric/MetricInstancesAdRuleCache.java package com.elasticsearch.cloud.monitor.metric.common.metric; import com.elasticsearch.cloud.monitor.metric.common.uti.MysqlClient; import lombok.Data; import org.apa...
2,192
1,014
package com.github.neuralnetworks.analyzing.network.comparison; import java.io.File; import com.github.neuralnetworks.training.Trainer; import com.github.neuralnetworks.training.backpropagation.BackPropagationTrainer; import com.github.neuralnetworks.util.Serializer; /** * @author tmey */ public class CompareSaved...
424
714
<gh_stars>100-1000 package com.blueskykong.auth.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import lombok.Data; import java.util.UUID; @JsonPropertyOrder({ "id", "name", "description"}) @Data public class DefaultRole { ...
258
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 ...
2,700
1,253
def flatten(myList): newList = [] for item in myList: if type(item) == list: newList.extend(flatten(item)) else: newList.append(item) return newList def main(): myList1 = [1,2,3,[1,2],5,[3,4,5,6,7]] print(flatten(myList1)) myList2 = [1,[2,[3,[4,[5,[6,[7,[...
212
3,012
/** @file Application for Pseudorandom Number Generator Validation. Copyright (c) 2010, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "TestBaseCryptLib.h" #define RANDOM_NUMBER_SIZE 256 CONST UINT8 SeedString[] = "This is the random seed for...
532
5,903
/*! * Copyright (C) 2018 by <NAME> : http://www.pentaho.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
2,039
1,139
<reponame>ghiloufibelgacem/jornaldev package com.journaldev.array; public class TwoDimentionalArray { /** * This class will show how to initialize two dimensional array * @param args */ public static void main(String[] args) { //an array of int arrays of 2 row and 3 columns int[...
747
2,499
/** * 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,561
1,212
#include <map> #include <unordered_map> #include <string> #include <iostream> #include <chrono> #include <vector> #include <sparsepp/spp.h> #include <sstream> namespace patch { template <typename T> std::string to_string(const T& n) { std::ostringstream stm; stm << n; return stm.str();...
2,010
809
/* * LensKit, an open-source toolkit for recommender systems. * Copyright 2014-2017 LensKit contributors (see CONTRIBUTORS.md) * Copyright 2010-2014 Regents of the University of Minnesota * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentati...
5,504
5,169
{ "name": "CheckJailBreakDevice", "version": "1.0.0", "summary": "Detect JailBreak Device in Swift 5 (iOS) programmatically", "description": "Detect Jail break device| iOS| Avoid Attackers to intrude in your application by all means possible in a single page| Supported to Swift (world first Protocol Oriented La...
295
831
<reponame>qq1056779951/android /* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
4,755
1,687
import java.util.HashSet; import java.util.Set; public class Solution { public int[] intersection(int[] nums1, int[] nums2) { Set<Integer> set1 = new HashSet<>(); for (int value : nums1) { set1.add(value); } Set<Integer> set2 = new HashSet<>(); fo...
373
4,473
/* * Copyright (C) 2011 <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/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
2,351
914
<filename>cicada-db/src/main/java/top/crossoverjie/cicada/db/sql/Condition.java package top.crossoverjie.cicada.db.sql; import lombok.AllArgsConstructor; import lombok.Data; /** * Function: * * @author crossoverJie * Date: 2019-11-28 00:49 * @since JDK 1.8 */ public abstract class Condition { public Condit...
270
720
#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function import os import glob #os.environ['CUDA_VISIBLE_DEVICES'] = '0' import numpy as np import fid from scipy.misc import imread import tensorflow as tf # Paths image_path = '/tmp/images' # set path to some generated images stats_path =...
400
852
// -*- C++ -*- // // Package: SiStripMonitorPedestals // Class: SiStripMonitorPedestals // /**\class SiStripMonitorDigi SiStripMonitorDigi.cc DQM/SiStripMonitorDigi/src/SiStripMonitorDigi.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAM...
11,292