max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
823
<gh_stars>100-1000 package burp; import java.util.List; public class FatGet extends ParamScan { FatGet(String name) { super(name); } @Override List<IScanIssue> doScan(IHttpRequestResponse baseRequestResponse, IScannerInsertionPoint insertionPoint) { // don't scan POST if (base...
1,109
524
import json import logging from aiohttp import web from ledfx.api import RestEndpoint from ledfx.config import save_config # from ledfx.api.websocket import WebsocketConnection from ledfx.utils import generate_id _LOGGER = logging.getLogger(__name__) class IntegrationsEndpoint(RestEndpoint): """REST end-point...
3,346
14,668
// 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. #ifndef UI_OZONE_PLATFORM_WAYLAND_HOST_WAYLAND_BUFFER_BACKING_SHM_H_ #define UI_OZONE_PLATFORM_WAYLAND_HOST_WAYLAND_BUFFER_BACKING_SHM_H_ #include "base/...
534
7,272
<filename>lectures/17-oop/code/src/com/kunal/staticExample/Main.java package com.kunal.staticExample; public class Main { public static void main(String[] args) { // Human kunal = new Human(22, "Kunal", 10000, false); // Human rahul = new Human(34, "Rahul", 15000, true); // Human arpit = new H...
457
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 ...
3,138
777
<reponame>google-ar/chromium // 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.net.impl; import android.support.annotation.IntDef; import static org.chromium.net.UrlRequest.Status.CO...
2,392
350
/****************************************************************************** * Copyright (c) 2014, 2018 Potential Ventures Ltd * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redis...
19,625
541
<reponame>Jerryxiaoyu/maml_rl_v2 import numpy as np import tensorflow as tf import sandbox.rocky.tf.core.layers as L ### Start Helper functions ### def make_input(shape, input_var=None, name="input", **kwargs): if input_var is None: if name is not None: with tf.variable_scope(name): ...
1,256
36,552
<filename>src/core/lib/gprpp/memory.h /* * * Copyright 2017 gRPC 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 * * Unle...
533
9,734
<reponame>dbbyn/arrow<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, Ve...
938
3,428
<reponame>ghalimi/stdlib {"id":"01976","group":"easy-ham-1","checksum":{"type":"MD5","value":"36f1e6364384d6b12b89200071b5c926"},"text":"From <EMAIL> Thu Sep 26 16:42:45 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (...
483
652
<reponame>brayest/testcode<filename>server/api/push_notifications.py import json from pathlib import Path import firebase_admin from firebase_admin import credentials, messaging from firebase_admin.messaging import ApiCallError from loguru import logger from server.error_handling import NotificationError def init_a...
362
2,151
<gh_stars>1000+ /* * Copyright (C) 2011 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 requ...
1,896
679
/************************************************************** * * 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...
1,693
713
<reponame>franz1981/infinispan<filename>core/src/test/java/org/infinispan/persistence/ClusteredTxConditionalCommandTest.java package org.infinispan.persistence; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertTrue; import org.infinispan.configuration.cache.CacheMode; impo...
953
1,508
package org.knowm.xchange.ftx.dto.trade; import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; public class FtxModifyOrderRequestPayload { private final BigDecimal price; private final BigDecimal size; private final String clientId; public FtxModifyOrderRequestPayload( ...
418
8,844
(c for b in a) (d for e in f)
16
348
<filename>docs/data/t2/047/47266.json<gh_stars>100-1000 {"nom":"Saint-Pé-Saint-Simon","dpt":"Lot-et-Garonne","inscrits":174,"abs":32,"votants":142,"blancs":6,"nuls":4,"exp":132,"res":[{"panneau":"1","voix":74},{"panneau":"2","voix":58}]}
102
322
<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 licenses this file to You under the Apache License, Version 2.0 * (the "...
569
782
<reponame>YunLemon/BoofCV<filename>main/boofcv-feature/src/main/java/boofcv/alg/tracker/dda/DetectDescribeAssociateTracker.java /* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
3,662
1,074
<gh_stars>1000+ #!/usr/bin/env python3 # 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 unittest import crypten try: from ..benchmarks import benchmark except ValueError: #...
1,673
2,504
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A P...
1,118
2,177
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer....
1,135
435
<reponame>amaajemyfren/data<filename>pycon-italia-2018/videos/m-scarpa-pelican-e-perche-generare-siti-statici.json<gh_stars>100-1000 { "copyright_text": null, "description": "Oggi nel web tutti hanno un sito o un blog che aggiornano e mantengono\ncon articoli e informazioni di vario genere ed esistono svariate\npia...
686
360
<filename>src/include/access/extreme_rto/redo_item.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://license.co...
1,068
697
<filename>src/VAC/LayersWidget.cpp // Copyright (C) 2012-2019 The VPaint Developers. // See the COPYRIGHT file at the top-level directory of this distribution // and at https://github.com/dalboris/vpaint/blob/master/COPYRIGHT // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this...
4,722
302
""" @Author : <NAME> @Email : <EMAIL> @Time : 2020/7/25 14:16 """
37
1,005
<reponame>wxy347/gan-compression<filename>interactive_demo/models/sub_mobile_resnet_generator.py<gh_stars>1000+ import functools from torch import nn from models.mobile_modules import SeparableConv2d class MobileResnetBlock(nn.Module): def __init__(self, ic, oc, padding_type, norm_layer, dropout_rate, use_bias)...
2,463
4,036
<reponame>vadi2/codeql #define MY_MACRO() MY_MACRO() #ifdef UNRELATED_MACRO #undef UNRELATED_MACRO #endif
49
589
<filename>KKJSBridgeDemo/KKJSBridgeDemo/HtmlURLProtocol.h // // HtmlURLProtocol.h // KKJSBridgeDemo // // Created by <NAME> on 2020/7/22. // Copyright © 2020 karosli. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface HtmlURLProtocol : NSURLProtocol + (void)HtmlURLProtoc...
174
5,169
{ "name": "SSBannerViewController", "version": "1.0.0", "summary": "Simple infinite scrolling bannerView with custom page control", "description": "A simple infinite scrolling bannerView with custom page control.\nThe shining part is to use 2 UIImageView to accomplish any number of banner image scrolling, so as...
269
1,253
<reponame>CarbonDDR/al-go-rithms import cv2 import numpy as np lemur = cv2.imread("./lemur.png") flag = cv2.imread("./flag.png") height, width, color = lemur.shape answer = np.empty([height, width, color]) for i in range(height): for j in range(width): for k in range(color): answer[i][j][k] = ...
176
364
// The MIT License (MIT) // Copyright (c) 2016, Microsoft // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mo...
1,950
335
{ "word": "Wastebasket", "definitions": [ "A waste-paper basket." ], "parts-of-speech": "Noun" }
60
2,325
<filename>tests/modules/embedders/embedder_utils_test.py """ Unit tests for embedder utils. """ import tensorflow as tf from texar.tf.modules.embedders import embedder_utils class GetEmbeddingTest(tf.test.TestCase): """Tests embedding creator. """ def test_get_embedding(self): """Tests :func:`~t...
631
432
package org.openmhealth.shim.fitbit.mapper; import com.fasterxml.jackson.databind.JsonNode; import org.openmhealth.schema.domain.omh.*; import org.openmhealth.shim.common.mapper.DataPointMapperUnitTests; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import java.io.IOException; import j...
2,253
716
<filename>unittest/python/bindings_inverse_dynamics_derivatives.py import unittest from test_case import PinocchioTestCase as TestCase import pinocchio as pin import numpy as np class TestDeriavtives(TestCase): def setUp(self): self.model = pin.buildSampleModelHumanoidRandom() self.data = self.mo...
881
9,861
<reponame>offa/Catch2 // 311-Gen-CustomCapture.cpp // Shows how to provide custom capture list to the generator expression // Note that using variables inside generators is dangerous and should // be done only if you know what you are doing, because the generators // _WILL_ outlive the variables. Also, even if you kno...
561
2,111
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 <NAME> <<EMAIL>> #include <stdio.h> #include "main.h" #include <unsupported/Eigen/NumericalDiff> // Generic functor template<typename _Scalar, int NX=Dynamic, int NY=Dynamic> struct Functor { typed...
1,439
382
<filename>src/org/swiftjava/javax_swing/CaretListenerProxy.java /// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' /// /// interface javax.swing.event.CaretListener /// package org.swiftjava.javax_swing; @SuppressWarnings("JniMissingFunction") public class CaretListenerProxy impleme...
354
5,168
<filename>imperative/python/megengine/random/__init__.py # -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the Lice...
258
580
<gh_stars>100-1000 from icevision.models.mmdet.models.retinanet import backbones from icevision.models.mmdet.common.bbox.single_stage import * from icevision.models.interpretation import Interpretation, _move_to_device from icevision.models.mmdet.common.interpretation_utils import ( sum_losses_mmdet, loop_mmdet...
235
1,038
<reponame>vickyi/data-algorithms-book<gh_stars>1000+ /** * This package (org.dataalgorithms.chap09) contains source code for * chapter 09 of the Data Algorithms book published by O'Reilly. * * @author <NAME> * */ package org.dataalgorithms.chap09; //rest of the file is empty
99
310
<filename>gear/hardware/a/alpha-7r.json { "name": "Alpha 7R", "description": "A 36.4 megapixel full-frame digital camera.", "url": "http://store.sony.com/a7r-alpha-7r-interchangeable-lens-camera-zid27-ILCE7R/B/cat-27-catid-All-Alpha-NEX-Cameras" }
110
672
/* * Copyright (c) 2012 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except ...
6,902
326
<filename>src/main/java/org/araymond/joal/core/ttorrent/client/announcer/response/AnnounceResponseHandlerChain.java package org.araymond.joal.core.ttorrent.client.announcer.response; import com.turn.ttorrent.common.protocol.TrackerMessage.AnnounceRequestMessage.RequestEvent; import org.araymond.joal.core.ttorrent.c...
1,658
652
<reponame>pyparallel/pyparallel<filename>Lib/px/command.py<gh_stars>100-1000 #=============================================================================== # Imports #=============================================================================== from ctk.commandinvariant import ( InvariantAwareCommand, ) #=====...
181
1,563
# -*- coding: utf-8 -*- # 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
698
14,668
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_CRONET_IOS_TEST_CRONET_TEST_BASE_H_ #define COMPONENTS_CRONET_IOS_TEST_CRONET_TEST_BASE_H_ #include <Cronet/Cronet.h> #include "base/...
1,395
342
package com.alibaba.chaosblade.exec.plugin.lettuce; /** * @author yefei * @create 2020-11-23 14:58 */ public class LettuceConstants { public final static String KEY = "key"; public final static String VALUE = "value"; public final static String CMD = "cmd"; public final static String CLASS = "io.l...
133
435
<filename>web-services/map-reduce-embedded/src/main/java/datawave/security/authorization/EmbeddedDatawaveUserService.java package datawave.security.authorization; import javax.annotation.Priority; import javax.enterprise.inject.Alternative; import javax.interceptor.Interceptor; import java.util.Collection; /** * Loo...
238
310
<filename>gear/hardware/c/classic-grain-mill.json { "name": "Classic Grain Mill", "description": "A flour grinder.", "url": "https://pleasanthillgrain.com/komo-classic-grain-mill-flour-grinder-wood-stone" }
78
6,342
<filename>djangox/lib/python3.8/site-packages/allauth/socialaccount/providers/keycloak/urls.py # -*- coding: utf-8 -*- from allauth.socialaccount.providers.keycloak.provider import KeycloakProvider from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns urlpatterns = default_urlpatterns(KeycloakPr...
112
5,169
{ "name": "CTidy", "version": "0.1.0", "license": "Simplified BSD License", "summary": "libtidy Objective-C wrapper.", "homepage": "https://github.com/siuying/CTidy", "authors": { "<NAME>": "<EMAIL>" }, "source": { "git": "https://github.com/siuying/CTidy.git", "tag": "0.1.0" }, "source_...
212
403
package org.camunda.hackdays2016.BanMadInkProcesses; import java.util.HashMap; import java.util.Map; import org.camunda.bpm.engine.delegate.BpmnError; import org.camunda.bpm.engine.delegate.DelegateExecution; import org.camunda.bpm.engine.delegate.JavaDelegate; import org.camunda.bpm.engine.runtime.Execution; import ...
486
1,007
<reponame>AkshayJainG/veles /*! @file engine.cc * @brief Class which is responsible for scheduling unit runs. * @author <NAME> <<EMAIL>> * @version 1.0 * * @section Notes * This code partially conforms to <a href="http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml">Google C++ Style Guide</a>. * ...
707
1,112
package com.survivingwithandroid.weathermap; import android.support.v4.app.FragmentActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Spinner; import com.google.android.gms.maps.GoogleMap; import com.google.android...
2,588
854
__________________________________________________________________________________________________ sample 4 ms submission class Solution { private: int dfs(vector<int>& dp, int target, vector<int>& nums) { if (target == 0) return 1; if (dp[target] != -1) return dp[target]; ...
556
1,471
# TODO: Create VyperWarning class similarly to what is being done with exceptinos? class ContractSizeLimitWarning(Warning): pass
35
777
<reponame>google-ar/chromium<filename>components/offline_pages/core/background/scheduler_stub.cc // 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 "components/offline_pages/core/background/schedu...
389
1,099
package com.example.commonlibrary.mvp.presenter; import com.example.commonlibrary.mvp.view.IView; import com.example.commonlibrary.mvp.model.BaseModel; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.disposables.Disposable; public class BasePresenter<V extends IView, M extends BaseModel> i...
758
758
<gh_stars>100-1000 from __future__ import absolute_import, division, print_function from collections.abc import Iterator from collections import OrderedDict from io import BytesIO import numpy as np import numba as nb import toolz as tz import xarray as xr import dask.array as da from PIL.Image import fromarray fro...
16,857
1,821
<reponame>hangqiu/pixie /* * Copyright 2018- The Pixie 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...
1,539
10,125
<filename>OpenCorePkg/Library/OcHiiDatabaseLib/HiiDatabaseEntry.c /** @file This file contains the entry code to the HII database, which is defined by UEFI 2.1 specification. Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "HiiDatabase...
2,419
486
<reponame>yncxcw/MHiBench<filename>stormbench/streaming/src/main/java/com/intel/hibench/stormbench/topologies/SingleSpoutTops.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...
645
32,544
package com.baeldung.reactorbus; import com.baeldung.reactorbus.consumer.NotificationConsumer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApp...
259
342
<reponame>gspu/bitkeeper /* * Copyright 2000-2004,2006,2009-2011,2015-2016 BitMover, 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-...
1,782
1,861
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.spectrum.plugins.png; import static com.facebook.spectrum.image.EncodedImageFormat.PNG; import com.facebook....
835
402
// Copyright (c) 2017 Samsung Electronics Co., LTD // Distributed under the MIT License. // See the LICENSE file in the project root for more information. /// \file platform.h This file contains platform-specific (Windows/Unix) definitions. #pragma once // TODO replace in code, remove this macros #ifdef _MSC_VER #d...
415
511
<reponame>SenthilKumarGS/TizenRT /****************************************************************** * * Copyright 2018 Samsung Electronics 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...
1,227
1,405
package com.lenovo.safecenter.antivirus.utils; import java.io.File; import java.io.IOException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class SHA1Util { protected static char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e',...
2,758
3,084
<gh_stars>1000+ #include <pch.h> /* ** Driver TODO: Add code to EvtDeviceOwnershipChange to reset the device state to a default. ** ** PosCx calls this callback to signal that the ownership of the device has transitioned from one file handle ** to another. When this happens, app developers expect that the sett...
1,665
500
/* * Copyright 2017 The Native Object Protocols 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 app...
788
1,909
<reponame>grmkris/XChange package org.knowm.xchange.examples.gateio.marketdata; import java.io.IOException; import org.knowm.xchange.Exchange; import org.knowm.xchange.ExchangeFactory; import org.knowm.xchange.ExchangeSpecification; import org.knowm.xchange.gateio.GateioExchange; public class GateioMetaDataDemo { ...
259
20,295
/** * @file * @brief [Travelling Salesman Problem] * (https://en.wikipedia.org/wiki/Travelling_salesman_problem) implementation * * @author [<NAME>](http://github.com/Mayank17M) * * @details * Travelling salesman problem asks: * Given a list of cities and the distances between each pair of cities, what is * t...
1,405
14,668
<filename>chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/components/LayoutTab.java // Copyright 2015 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.chrome.browser.compositor....
10,995
1,350
<filename>sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/implementation/ChatOptionsProvider.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.communication.chat.implementation; import com.azure.communication.cha...
1,301
3,705
<reponame>zaltoprofen/chainer #pragma once namespace chainerx { class Kernel { public: Kernel() = default; virtual ~Kernel() = default; Kernel(const Kernel&) = delete; Kernel(Kernel&&) = delete; Kernel& operator=(const Kernel&) = delete; Kernel& operator=(Kernel&&) = delete; }; } // namesp...
124
7,471
#include "mvDrag.h" #include <utility> #include "mvContext.h" #include "dearpygui.h" #include <string> #include "mvItemRegistry.h" #include "mvPythonExceptions.h" #include "AppItems/fonts/mvFont.h" #include "AppItems/themes/mvTheme.h" #include "AppItems/containers/mvDragPayload.h" #include "mvPyObject.h" #include "AppI...
14,244
1,585
/* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2020 The University of Tennessee and The University * of Tennessee Resea...
1,456
788
<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 licenses this file to You under the Apache License, Version 2.0 * (the "...
760
815
<reponame>xj361685640/ParaView<filename>Plugins/ZSpace/zSpace/vtkPVZSpaceView.h<gh_stars>100-1000 /*========================================================================= Program: ParaView Module: vtkPVZSpaceView.h Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.para...
1,759
679
/************************************************************** * * 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...
3,802
388
#!/usr/bin/env python # -*- coding: utf-8 -*- channel_list = { "mono": 1, "stereo": 2, "2.1": 3, "3.0": 3, "3.0(back)": 3, "3.1": 4, "4.0": 4, "quad": 4, "quad(side)": 4, "5.0": 5, "5.1": 6, "6.0": 6, "6.0(front)": 6, "hexagonal": 6, "6.1": 7, "6.1(front)...
837
509
<reponame>time-series-tools/seglearn<filename>seglearn/tests/test_util.py<gh_stars>100-1000 # Author: <NAME> # License: BSD import numpy as np from seglearn.datasets import load_watch from seglearn.base import TS_Data from seglearn import util def test_util(): df = load_watch() data = TS_Data(df['X'], df['...
1,003
2,535
#pragma once #include <foundation/python_types.h> #include <third_party/akaze/lib/AKAZE.h> namespace features { py::object akaze(foundation::pyarray_uint8 image, AKAZEOptions options); }
70
411
<filename>giraph-block-app/src/main/java/org/apache/giraph/block_app/reducers/collect/CollectPrimitiveReduceOperation.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 * regardin...
866
1,617
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: peer/chaincode.proto */ #ifndef PROTOBUF_C_peer_2fchaincode_2eproto__INCLUDED #define PROTOBUF_C_peer_2fchaincode_2eproto__INCLUDED #include <protobuf-c/protobuf-c.h> PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1000000 # e...
6,030
14,668
// Copyright 2015 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/sessions/tab_loader_tester.h" #include "base/run_loop.h" #include "base/test/bind.h" TabLoaderTester::TabLoaderTester() = defau...
1,193
868
<filename>third_party/protobuf/3.4.0/src/google/protobuf/compiler/js/js_generator.cc // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // m...
52,350
870
/* * 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 ...
505
14,668
<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. #ifndef CHROMEOS_SERVICES_LIBASSISTANT_GRPC_SERVICES_STATUS_PROVIDER_H_ #define CHROMEOS_SERVICES_LIBASSISTANT_GRPC_SERVICES_STATUS_PROVID...
512
2,776
<reponame>Brianspha/Colonisation<gh_stars>1000+ { "Execute binaries from npm packages.\n%s": "Esegui il binario del pacchetto npm.\n%s", "Package to be installed.": "Pacchetto da installare.", "Location of the npm cache.": "Percorso della cache npm.", "Skip installation if a package is missing.": "Salta l'insta...
754
306
#pragma once #include <stdint.h> void init_stacktrace(uint8_t* data, uint32_t size); void stacktrace_print();
43
2,003
<filename>src/common/metric/percentile_counter.h #pragma once // Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "common/metric/collector.h" #include "common/metric/subscriber.h" #include "common/met...
974
310
{ "name": "Day One (iOS)", "description": "A journal app.", "url": "https://itunes.apple.com/us/app/day-one-journal/id421706526" }
55
30,023
<filename>homeassistant/components/analytics/__init__.py """Send instance and usage analytics.""" import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.const import EVENT_HOMEASSISTANT_STARTED from homeassistant.core import HomeAssistant from homeassistant.helpers.event import ...
907
5,279
<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 * ...
5,942
1,063
[ { "category": "``ec2``", "description": "Update ec2 client to latest version", "type": "api-change" }, { "category": "``s3``", "description": "Update s3 client to latest version", "type": "api-change" }, { "category": "``resourcegroupstaggingapi``", "description": "Upd...
318
4,535
'''This example demonstrates the use of Convolution1D for text classification. Gets to 0.89 test accuracy after 2 epochs. 90s/epoch on Intel i5 2.4Ghz CPU. 10s/epoch on Tesla K40 GPU. ''' from __future__ import print_function import numpy as np import keras.callbacks from keras.preprocessing import sequence from ke...
915