max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,755
/*========================================================================= Program: Visualization Toolkit Module: vtkCollectionRange.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WIT...
2,286
372
<gh_stars>100-1000 // // WalkinClient.h // ISPDemo1 // // Created by J_Knight_ on 2018/8/26. // Copyright © 2018年 J_Knight_. All rights reserved. // #import <Foundation/Foundation.h> #import "RestaurantProtocol.h" @interface WalkinClient : NSObject<RestaurantProtocol> @end
108
649
package net.serenitybdd.screenplay; public class UnexpectedEnumValueException extends AssertionError { public UnexpectedEnumValueException(String detailMessage) { super(detailMessage); } }
66
852
<reponame>ckamtsikis/cmssw<gh_stars>100-1000 // #include "Utilities/Configuration/interface/Architecture.h" /* * See header file for a description of this class. * * \author <NAME> - INFN Torino */ #include "MagneticField/Layers/interface/MagBSector.h" #include "MagneticField/Layers/interface/MagBRod.h" #inclu...
454
364
package rsc.publisher; import org.junit.Test; import rsc.test.TestSubscriber; public class PublisherNextTest { @Test(expected = NullPointerException.class) public void source1Null() { new PublisherNext<>(null); } @Test public void normal() { TestSubscriber<Integer> ts = new Test...
839
575
# Copyright 2018 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. """Top-level presubmit script for media/test/. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presub...
449
698
<filename>src/test/python/test_autocloseable.py import unittest import jep TestAutoCloseable = jep.findClass('jep.test.closeable.TestAutoCloseable') class TestAutoCloseables(unittest.TestCase): def test_with(self): with TestAutoCloseable() as writer: writer.write("abc") self.assert...
416
1,679
<filename>run_spec_tests.py import os import sys import subprocess def collect_wast(dir): ret = [] for item in os.listdir(dir): full_path = os.path.join(dir, item) if os.path.isfile(full_path) and full_path.endswith(".wast"): ret.append(full_path) return ret wast_files = coll...
447
652
/* * Copyright (C) 2014 Stratio (http://stratio.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 app...
920
1,262
<gh_stars>1000+ /* * * Copyright 2017 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 * * Unles...
5,150
6,201
{ "recommendations": [ "codezombiech.gitignore", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "mikestead.dotenv", "ms-azuretools.vscode-docker", "ms-vscode.vscode-typescript-tslint-plugin", "msjsdiag.debugger-for-chrome", "prisma.prisma", "graphql.vscode-graphql", "redha...
221
1,768
<gh_stars>1000+ package org.lamport.tla.toolbox.editor.basic.pcal; import org.eclipse.jface.text.rules.IWordDetector; import org.lamport.tla.toolbox.editor.basic.tla.TLAWordDetector; public class PCalWordDetector extends TLAWordDetector implements IWordDetector { /* (non-Javadoc) * @see org.lamport.tla.toolbox.ed...
254
402
<gh_stars>100-1000 /* * Copyright (c) 2016, <NAME>, ASL, ETH Zurich, Switzerland * Copyright (c) 2016, <NAME>, ASL, ETH Zurich, Switzerland * * 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 ...
2,730
1,259
<reponame>isobelLiu/appium<filename>sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/page_object/PageObjectWithCustomizedTimeOuts.java<gh_stars>1000+ package com.saucelabs.appium.page_object; import io.appium.java_client.MobileElement; import io.appium.java_client.pagefactory.WithTimeout; import org....
410
12,004
# Copyright 2016-2020, Pulumi Corporation. # # 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...
1,063
317
/*! * Copyright (c) 2016 by Contributors * \file op_suppl.h * \brief A supplement and amendment of the operators from op.h * \author <NAME>, zhubuntu */ #ifndef OP_SUPPL_H #define OP_SUPPL_H #include <string> #include <vector> #include "base.h" #include "shape.h" #include "operator.h" #include "MxNetCpp.h" namespac...
2,803
585
<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 "...
1,605
1,405
package com.tencent.tmsecure.module.aresengine; public abstract class OutgoingSmsFiter extends DataFilter<SmsEntity> { public static final int REMOVE_PRIVATE_SMS = 1; public abstract void setEntityConvertor(IEntityConverter iEntityConverter); public abstract void setPrivateListDao(IContactDao<? extends C...
163
777
/* * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, th...
11,314
2,338
<filename>mlir/lib/Dialect/SPIRV/Transforms/RewriteInsertsPass.cpp //===- RewriteInsertsPass.cpp - MLIR conversion pass ----------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier:...
1,349
30,023
"""DataUpdateCoordinator for Plugwise.""" from datetime import timedelta from typing import Any, NamedTuple from plugwise import Smile from plugwise.exceptions import PlugwiseException, XMLDataMissingError from homeassistant.core import HomeAssistant from homeassistant.helpers.debounce import Debouncer from homeassis...
804
854
<reponame>timxor/leetcode-journal __________________________________________________________________________________________________ sample 4 ms submission class Solution { public: vector<int> partitionLabels(string S) { vector<int> rez; vector<int> farest(26, -1); for (int i = 0; i < S.size(); ++i) fares...
612
350
package com.github.penfeizhou.animation.apng.decode; /** * @Description: 作用描述 * @Author: pengfei.zhou * @CreateDate: 2019/3/27 */ class IDATChunk extends Chunk { static final int ID = Chunk.fourCCToInt("IDAT"); }
93
474
<reponame>lzwjava/MCAlbum // // MCComment.h // LZAlbum // // Created by wangyuansong on 15/3/12. // Copyright (c) 2015年 lzw. All rights reserved. // #import "LZCommon.h" #import "LCAlbum.h" #define KEY_ALBUM @"album" #define KEY_COMMENT_USER @"commentUser" #define KEY_COMMENT_USERNAME @"commentUsername" #define K...
299
45,293
package jenum; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; public enum JEnum { OK("123"); @Retention(RetentionPolicy.RUNTIME) public @interface Foo {} JEnum(@Foo String foo) {} }
89
404
{ "type":"fail", "buildTargetPHID":"PHID-not-real", "unit":[ { "name":"TestCreateFile", "result":"pass", "namespace":"visualization", "engine":"Jenkins", "duration":0 }, { "name":"TestCreateFileOverwriteExisting", "result":"pass", "namespace":"visualizat...
657
6,717
<gh_stars>1000+ #include "internal.h" #if DISPATCH_COCOA_COMPAT void (*dispatch_begin_thread_4GC)(void) = dummy_function; void (*dispatch_end_thread_4GC)(void) = dummy_function; void *(*_dispatch_begin_NSAutoReleasePool)(void) = (void *)dummy_function; void (*_dispatch_end_NSAutoReleasePool)(void *) = (void *)dummy_fu...
3,575
4,234
#pragma once #include <mbgl/storage/resource.hpp> #include <functional> #include <string> namespace mbgl { class ResourceTransform { public: using FinishedCallback = std::function<void(const std::string&)>; using TransformCallback = std::function<void(Resource::Kind kind, const std::string& url, FinishedCal...
177
852
<reponame>ckamtsikis/cmssw #ifndef HcalSimAlgos_HcalShapes_h #define HcalSimAlgos_HcalShapes_h /** A class which decides which shape to return, based on the DetId */ #include "FWCore/Framework/interface/Frameworkfwd.h" #include "SimCalorimetry/CaloSimAlgos/interface/CaloShapes.h" #include "SimCalorimetry/HcalSimAl...
495
938
//===--------- JITLinkGeneric.cpp - Generic JIT linker utilities ----------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
6,531
2,151
/* Copyright (c) 2012 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. */ /* From pp_var.idl modified Wed Dec 14 18:08:00 2011. */ #ifndef PPAPI_C_PP_VAR_H_ #define PPAPI_C_PP_VAR_H_ #include "ppapi/c/pp_bool.h" #inclu...
2,451
348
{"nom":"Sarran","circ":"1ère circonscription","dpt":"Corrèze","inscrits":247,"abs":100,"votants":147,"blancs":12,"nuls":7,"exp":128,"res":[{"nuance":"REM","nom":"<NAME>","voix":82},{"nuance":"SOC","nom":"<NAME>","voix":46}]}
90
4,845
<reponame>zhangzi0291/sa-token package com.pj.util; /** * 用于测试用时 * @author kong * */ public class Ttime { private long start=0; //开始时间 private long end=0; //结束时间 public static Ttime t = new Ttime(); //static快捷使用 /** * 开始计时 * @return */ public Ttime start() { start=System.currentTimeMillis(); ...
449
439
<filename>portlet/src/main/java/org/apache/struts2/portlet/example/FormResultAction.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 li...
461
862
<gh_stars>100-1000 /* * (c) Copyright 2021 Palantir Technologies 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/LICENS...
1,166
1,337
/* * Copyright (c) 2008-2016 Haulmont. * * 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 agr...
3,180
365
/******************************************************************************* * Copyright 2009-2016 <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.or...
487
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "ngraph/visibility.hpp" /** * @file lpt_visibility.hpp * @brief Defines visibility settings for Inference Engine LP Transformations library */ #ifdef OPENVINO_STATIC_LIBRARY # define LP_TRANSFORMATIONS...
231
852
#include "EventFilter/EcalRawToDigi/interface/DCCTCCBlock.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "EventFilter/EcalRawToDigi/interface/EcalElectronicsMapper.h" #include "EventFilter/EcalRawToDigi/interface/DCCDataUnpacker.h" #include "EventFilter/EcalRawToDigi/interface/DCCEventBlock.h" D...
2,143
190,993
/* Copyright 2021 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 required by applicable law or a...
597
348
<reponame>tulumvinh/Raigad /** * Copyright 2017 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 re...
2,705
435
<reponame>amaajemyfren/data<gh_stars>100-1000 { "copyright_text": "Standard YouTube License", "description": "www.pydata.org\n\nPyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of dat...
596
2,118
// Copyright (c) 2006-2018 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef CDSLIB_COMPILER_VC_COMPILER_BARRIERS_H #define CDSLIB_COMPILER_VC_COMPILER_BARRIERS_H #include <intrin.h> #pragma intrinsic(_Re...
261
457
package io.agora.vlive.protocol.model.request; public class OssPolicyRequest extends Request { public static final int OSS_TYPE_AVATOR = 1; public OssPolicyRequest(String token) { this.token = token; } public String token; public int type = OSS_TYPE_AVATOR; }
103
14,668
<reponame>zealoussnow/chromium // Copyright 2018 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 THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_LAYOUT_SHIFT_REGION_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_LAYOUT...
655
317
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto package org.tensorflow.framework; public interface MemoryLogTensorAllocationOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MemoryLogTensorAllocation) com.google.protobu...
580
322
<filename>eagle-jpm/eagle-jpm-spark-history/src/main/java/org/apache/eagle/jpm/spark/history/SparkHistoryJobAppConfig.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...
2,221
7,956
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright © 2018- Spyder Kernels Contributors # Licensed under the terms of the MIT License # (see spyder_kernels/__init__.py for details) # -------------------------------------------------------------------------...
1,941
359
from learntools.core import * class YearPlot(ThoughtExperiment): # TODO: *could* make this a checked coding problem, checking the # value of c. I'm not sure that really helps though? I think it'll be # clear to the user by visual inspection of their results whether or not # they've succeeded. (And chec...
739
1,687
<reponame>agnes-yang/LeetCode-Solutions-in-Good-Style import java.util.Arrays; public class Solution3 { public int minIncrementForUnique(int[] A) { int len = A.length; if (len == 0) { return 0; } UnionFind unionFind = new UnionFind(); int res = 0; for (...
1,658
2,816
import duckdb import pytest try: import pyarrow as pa can_run = True except: can_run = False class TestArrowFetchChunk(object): def test_fetch_arrow_chunk(self, duckdb_cursor): if not can_run: return duckdb_cursor.execute("CREATE table t as select range a from range(3000);...
1,749
1,747
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
2,230
892
{ "schema_version": "1.2.0", "id": "GHSA-hc32-g7rr-m838", "modified": "2022-05-01T01:58:36Z", "published": "2022-05-01T01:58:36Z", "aliases": [ "CVE-2005-1422" ], "details": "Raysoft/Raybase Video Cam Server 1.0.0 beta allows remote attackers to conduct administrator operations and cause a denial of s...
394
9,724
/* Copyright (c) 2003-2006 <NAME> / <NAME> http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pu...
9,404
418
<filename>fhirclient/models/examplescenario_tests.py #!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import examplescenario from .fhirdate import FHIRDate class ExampleScenarioTest...
4,319
3,269
# Time: O(m * n) # Space: O(m * n) class Solution(object): def highestPeak(self, isWater): """ :type isWater: List[List[int]] :rtype: List[List[int]] """ directions = [(1, 0), (-1, 0), (0, 1), (0, -1)] q = [] for r, row in enumerate(isWater): fo...
1,232
1,474
<reponame>billzhonggz/Transfer-Learning-Library<filename>common/utils/analysis/tsne.py """ @author: <NAME> @contact: <EMAIL> """ import torch import matplotlib matplotlib.use('Agg') from sklearn.manifold import TSNE import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as col def visualize(sour...
671
4,054
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengl; /** * Native bindings to the <a target="_blank" href="https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_422_pixels.txt">EXT_422_pixels</a> extension...
605
468
# CheckMentioned.py # Find all the symbols in scintilla/include/Scintilla.h and check if they # are mentioned in scintilla/doc/ScintillaDoc.html. import string srcRoot = "../.." incFileName = srcRoot + "/scintilla/include/Scintilla.h" docFileName = srcRoot + "/scintilla/doc/ScintillaDoc.html" identCharacters = "_" + s...
370
903
/* * Copyright 2019 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" ...
1,311
348
{"nom":"Nelling","circ":"5ème circonscription","dpt":"Moselle","inscrits":224,"abs":127,"votants":97,"blancs":4,"nuls":0,"exp":93,"res":[{"nuance":"LR","nom":"<NAME>","voix":54},{"nuance":"REM","nom":"<NAME>","voix":39}]}
89
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.mediaservices; import com.azure.core.util.Context; import com.azure.resourcemanager.mediaservices.models.Job; import com.azure.r...
511
479
<reponame>jeremyvdw/aurora /** * 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...
1,917
1,205
<filename>nn.py<gh_stars>1000+ import theano import theano.tensor as T from utils import shared class HiddenLayer(object): """ Hidden layer with or without bias. Input: tensor of dimension (dims*, input_dim) Output: tensor of dimension (dims*, output_dim) """ def __init__(self, input_dim, outp...
4,976
1,172
<filename>ChasingTrainFramework_GeneralOneClassDetection/logging_GOCD.py # -*- coding:utf-8 -*- import logging import os import sys ''' logging module ''' def init_logging(log_file_path=None, log_file_mode='w', log_overwrite_flag=False, log_level=logging.INFO): # basically, the basic log offers console output ...
777
5,250
<reponame>jiandiao/flowable-engine /* 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 ...
1,677
335
<reponame>OotinnyoO1/N64Wasm #ifndef GLN64_H #define GLN64_H #ifdef __cplusplus extern "C" { #endif #include "m64p_config.h" #include "stdio.h" //#define DEBUG #define PLUGIN_NAME "gles2n64" #define PLUGIN_VERSION 0x000005 #define PLUGIN_API_VERSION 0x020200 #define renderCallback gln64RenderCallback extern ...
168
492
#!/usr/bin/env python """SNMP library for Python SNMP v1/v2c/v3 engine and Standard Applications suite written in pure-Python. Supports Manager/Agent/Proxy roles, Manager/Agent-side MIBs, asynchronous operation and multiple network transports. """ import os import re import sys classifiers = """\ Development Status :...
2,697
1,286
////////////////////////////////////////////////////////////////////////////// // UDTRefs bit maps #include "pdbimpl.h" #include "dbiimpl.h" #include <stdio.h> UDTRefs::UDTRefs(unsigned int cti_, bool fGrowRefSets_) : cti(cti_), ucur(0), fGrowRefSets(fGrowRefSets_) { } UDTRefs::~UDTRefs() { } unsigned int UDT...
574
60,067
#pragma once #include <torch/arg.h> #include <torch/csrc/WindowsTorchApiMacro.h> #include <torch/types.h> namespace torch { namespace nn { /// Options for the `AdaptiveLogSoftmaxWithLoss` module. /// /// Example: /// ``` /// AdaptiveLogSoftmaxWithLoss model(AdaptiveLogSoftmaxWithLossOptions(8, 10, {4, 8}).div_value(...
381
358
<gh_stars>100-1000 #pragma once #include <QCheckBox> #include <QSpinBox> #include <agz/editor/renderer/export/export_renderer.h> #include <agz/editor/ui/utility/real_slider.h> #include <agz/editor/ui/utility/vec_input.h> AGZ_EDITOR_BEGIN class ExportRendererPSSMLTPT : public ExportRendererWidget { public: expl...
395
805
<gh_stars>100-1000 #!/usr/bin/env python3 # Copyright 2018 <NAME> import argparse import os import numpy as np import sys import re parser = argparse.ArgumentParser(description="""Removes dev/test set lines from the LOB corpus. Reads the ...
1,811
7,794
<reponame>neilp78/dps #ifndef SASS_VALUES_H #define SASS_VALUES_H #include "ast.hpp" namespace Sass { union Sass_Value* ast_node_to_sass_value (const Expression_Ptr val); Value_Ptr sass_value_to_ast_node (const union Sass_Value* val); } #endif
105
1,006
<filename>boards/arm/lpc17xx_40xx/pnev5180b/src/pnev5180b.h /**************************************************************************** * boards/arm/lpc17xx_40xx/pnev5180b/src/pnev5180b.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file ...
1,834
886
package com.immomo.rhizobia.rhizobia_J; import com.immomo.rhizobia.rhizobia_J.sqli.DB2Sanitiser; import org.junit.Test; public class DB2SanitiserTest { @Test public void DB2Sanitise() { //确认是连接的是哪种数据库 6ms DB2Sanitiser db2Tool = DB2Sanitiser.getInstance(); //对sql语句进行特殊字符转义 Stri...
1,417
3,631
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
7,443
1,681
# -*- coding: utf-8 -*- import numpy as np import pytest from hypertools.tools.cluster import cluster from hypertools.plot.plot import plot cluster1 = np.random.multivariate_normal(np.zeros(3), np.eye(3), size=100) cluster2 = np.random.multivariate_normal(np.zeros(3)+100, np.eye(3), size=100) data = np.vstack([cluste...
377
2,890
package com.github.ltsopensource.kv.index; import com.github.ltsopensource.core.factory.NamedThreadFactory; import com.github.ltsopensource.core.logger.Logger; import com.github.ltsopensource.core.logger.LoggerFactory; import com.github.ltsopensource.kv.Entry; import com.github.ltsopensource.kv.StoreConfig; import com...
1,523
335
<gh_stars>100-1000 { "word": "Plutonium", "definitions": [ "A transuranic element with a fissile isotope of mass number 239 (plutonium 239) that can be produced from non-fissile uranium 238, as in a breeder reactor." ], "parts-of-speech": "Noun" }
103
1,179
<reponame>fengjixuchui/hypervisor-2 /// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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...
754
4,067
import sys from bintrees import RBTree def count_duplicates(lines): h, m = RBTree(), 0 for l in lines: if (l in h): h[l] += 1 else: h[l] = 1 if (m < h[l]): m = h[l] return h, m h, m = count_duplicates(sys.stdin) # print(len(h), m)
137
733
<reponame>trisadmeslek/V-Sekai-Blender-tools<gh_stars>100-1000 from rx import Observable, AnonymousObservable from rx.internal import extensionmethod @extensionmethod(Observable) def take_last_buffer(self, count): """Returns an array with the specified number of contiguous elements from the end of an observab...
498
14,668
// Copyright 2018 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/public/common/media/watch_time_component.h" #include "third_party/blink/public/common/common_export.h" #include "third_party/...
1,636
679
<filename>main/chart2/source/inc/NamedProperties.hxx<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 informatio...
538
1,056
<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 * ...
1,324
465
<filename>marmaray/src/main/java/com/uber/marmaray/utilities/KafkaUtil.java /* * Copyright (c) 2018 Uber Technologies, Inc. * 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 restrictio...
4,493
377
<filename>code/foundation/core/cvar.h #pragma once //------------------------------------------------------------------------------ /** @file cvar.h Contains API for creating, writing to, and reading from a Core::CVar @struct Core::CVar A console variable. Always handle as a opaque object. Pass t...
792
645
// Copyright 2013 Viewfinder. All rights reserved. // Author: <NAME> package co.viewfinder; import android.content.Context; import android.graphics.Typeface; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.*; import co.viewfinder.widgets.SpannableBuild...
7,893
839
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
1,562
595
<gh_stars>100-1000 /* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #ifndef _NJS_LVLHSH_H_INCLUDED_ #define _NJS_LVLHSH_H_INCLUDED_ typedef struct njs_lvlhsh_query_s njs_lvlhsh_query_t; typedef njs_int_t (*njs_lvlhsh_test_t)(njs_lvlhsh_query_t *lhq, void *data); typedef void *(*njs_lvlhsh_alloc_t)(void...
3,158
3,489
<filename>src/crf_trainer_averaged_perceptron.c #include "crf_trainer_averaged_perceptron.h" void crf_averaged_perceptron_trainer_destroy(crf_averaged_perceptron_trainer_t *self) { if (self == NULL) return; uint32_t feature_id; khash_t(class_weights) *weights; if (self->weights != NULL) { kh_...
14,320
1,093
<reponame>StandCN/spring-integration /* * Copyright 2002-2020 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 * * https://www.apache.org/licenses/L...
1,798
5,169
<filename>Specs/8/5/2/JJBadge/4.1/JJBadge.podspec.json { "name": "JJBadge", "version": "4.1", "summary": "Simple JJBadge.", "description": "'JJBadge is a awesome view for make counters easier'", "homepage": "https://github.com/only-icesoul/ios-jjbadge", "license": { "type": "Apache License 2.0", "fi...
277
3,705
<filename>chainer/types.py import numbers import typing as tp # NOQA import typing_extensions as tpe # NOQA try: from typing import TYPE_CHECKING # NOQA except ImportError: # typing.TYPE_CHECKING doesn't exist before Python 3.5.2 TYPE_CHECKING = False # import chainer modules only for type checkers to ...
872
634
<gh_stars>100-1000 /* * Copyright 2013-2019 consulo.io * * 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 applicabl...
1,216
10,182
<gh_stars>1000+ /* * Copyright (c) 2009-2017 Panxiaobo * * 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...
515
6,989
<reponame>erwinvanthiel/numpy #ifndef _NPY_ARRAY_SHAPE_H_ #define _NPY_ARRAY_SHAPE_H_ /* * Builds a string representation of the shape given in 'vals'. * A negative value in 'vals' gets interpreted as newaxis. */ NPY_NO_EXPORT PyObject * build_shape_string(npy_intp n, npy_intp const *vals); /* * Creates a sorted ...
359
3,909
<reponame>m-novikov/websockets from __future__ import annotations import logging from typing import List, NewType, Optional, Tuple, Union __all__ = [ "Data", "LoggerLike", "Origin", "Subprotocol", "ExtensionName", "ExtensionParameter", ] # Public types used in the signature of public APIs ...
463
2,072
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import logging from pyhocon import ConfigFactory, ConfigTree from databuilder.extractor.dashboard.mode_analytics.mode_dashboard_executions_extractor import ( ModeDashboardExecutionsExtractor, ) from databuilder.extractor.dash...
1,257
852
#ifndef CondFormats_L1TObjects_GlobalStableParameters_h #define CondFormats_L1TObjects_GlobalStableParameters_h /** * \class GlobalStableParameters * * * Description: L1 GT stable parameters. * * Implementation: * <TODO: enter implementation details> * * \author: <NAME> - HEPHY Vienna * * $Date$ ...
1,750