max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
5,169
{ "name": "VirtualGameController", "version": "0.0.7", "license": { "type": "MIT", "file": "LICENSE" }, "summary": "Feature-rich game controller framework for iOS, tvOS, OS X and watchOS in Swift 2.1.", "homepage": "https://github.com/robreuss/VirtualGameController", "authors": { "robreuss": "...
395
6,931
<reponame>EkremBayar/bayar<gh_stars>1000+ __all__ = ["bkfilter", "hpfilter", "cffilter", "miso_lfilter", "convolution_filter", "recursive_filter"] from .bk_filter import bkfilter from .hp_filter import hpfilter from .cf_filter import cffilter from .filtertools import miso_lfilter, convolution_filter, recursi...
124
1,255
/* * Copyright (c) 2014, <NAME>, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #i...
9,367
8,273
<reponame>AlohaChina/or-tools #!/usr/bin/env python3 # Copyright 2010-2021 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
4,279
328
<reponame>grvvy/greatfet # # This file is part of GreatFET # from ..interface import GreatFETInterface class SPIDevice(GreatFETInterface): """ Abstract base class representing an SPI-attached device. """ def __init__(self, spi_bus, chip_select, spi_mode=0): """ Sets up a new SPI-attached device. ...
676
852
// // #include "TopQuarkAnalysis/TopJetCombination/interface/TtSemiSimpleBestJetComb.h" TtSemiSimpleBestJetComb::TtSemiSimpleBestJetComb() {} TtSemiSimpleBestJetComb::~TtSemiSimpleBestJetComb() {} int TtSemiSimpleBestJetComb::operator()(std::vector<TtSemiEvtSolution>& sols) { // search the highest probChi^2 value...
702
465
#ifndef _CSR_MMAP_H_ #define _CSR_MMAP_H_ #include "csr_typedefs.h" #ifdef __cplusplus extern "C" { #endif typedef struct _csr_mmap_t csr_mmap_t; /* mmap.c */ csr_mmap_t *csr_mmap_file(const char *, unsigned char bLoadMem); csr_mmap_t *csr_mmap_file_w(const char *); void csr_munmap_file(csr_mmap_t *); void *csr_mma...
221
1,799
/*------------------------------------------------------------------------------ * rtklib unit test driver : norad two line element function *-----------------------------------------------------------------------------*/ #include <stdio.h> #include <assert.h> #include "../../src/rtklib.h" #define OUT stdout /* dump ...
2,656
3,799
<reponame>semoro/androidx /* * Copyright 2019 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 * * ...
577
7,482
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-04-27 flybreak the first version. */ #pragma once #include <cstdlib> #include <system_error> #include <chrono> #include <ratio> #include <rtthre...
489
580
<gh_stars>100-1000 // Author: <NAME> // Date: 04/01/2010 // 12289 - One-Two-Three // To fixxxxx #include <iostream> #include <string> using namespace std; int main () { int n; // Number of words in input cin >> n; if (n <=0 ) return 0; else { string word; for(int i= 0 ; i< n; i++) { ...
319
575
<gh_stars>100-1000 // 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. #include "chromecast/media/cma/base/balanced_media_task_runner_factory.h" #include <map> #include <utility> #include "base/bind.h" #i...
2,879
305
#!/usr/bin/env python from distutils.core import setup, Command import os import os.path def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='toproxy', version='3.2', description='Simple Tornado Async HTTP Proxy', long_description=open('README.md').read...
337
317
#ifndef EDYN_UTIL_ARRAY_HPP #define EDYN_UTIL_ARRAY_HPP #include <array> namespace edyn { // Create array filled with given value. From https://stackoverflow.com/a/41259045 namespace detail { template <typename T, std::size_t...Is> constexpr std::array<T, sizeof...(Is)> make_array(const T& value, std::index_...
239
369
<gh_stars>100-1000 // Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "Label.hpp" #include "Image.hpp" #include "ListItem.hpp" namespace gui { class BaseThreadItem : public ListItem { protected: ...
439
2,380
/** * * Copyright 2018-2021 <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...
561
583
<gh_stars>100-1000 #include "AbstractLocalyticsSupport.h" #include "core/RunnerMacros.h" AbstractLocalyticsSupport::AbstractLocalyticsSupport(ByteCodeRunner *owner) : NativeMethodHost(owner) { } NativeFunction * AbstractLocalyticsSupport::MakeNativeFunction(const char *name, int num_args) { #undef NATIVE_NAME_PR...
495
353
package org.nutz.plugins.event.impl; import org.nutz.integration.jedis.RedisService; import org.nutz.ioc.Ioc; import org.nutz.json.Json; import org.nutz.json.JsonFormat; import org.nutz.lang.Lang; import org.nutz.lang.Streams; import org.nutz.log.Log; import org.nutz.log.Logs; import org.nutz.plugins.event.Event; impo...
2,225
313
//------------------------------------------------------------------------------ // GB_AxB_saxpy5_bitmap.c: C+=A*B when C is full, A is bitmap, B is sparse/hyper //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2022, All Rights Reserved. // SPD...
1,237
428
<filename>Java/Loon-Neo-Robovm/src/main/java/loon/jni/CTFramesetter.java /** * Copyright 2008 - 2015 The Loon Game Engine 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 * * ...
672
790
import copy import pickle from django.utils.timezone import UTC, LocalTimezone from django.utils import unittest class TimezoneTests(unittest.TestCase): def test_copy(self): self.assertIsInstance(copy.copy(UTC()), UTC) self.assertIsInstance(copy.copy(LocalTimezone()), LocalTimezone) def test_...
252
322
<filename>vehicle/OVMS.V3/components/vehicle_jaguaripace/src/vehicle_jaguaripace.h /* ; Project: Open Vehicle Monitor System ; Date: 1st April 2021 ; ; Changes: ; 0.0.1 Initial release ; ; (C) 2021 <NAME> ; ; Permission is hereby granted, free of charge, to any person obtaining a co...
1,092
585
<filename>venv/Lib/site-packages/nipype/interfaces/semtools/utilities/tests/test_auto_FindCenterOfBrain.py # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..brains import FindCenterOfBrain def test_FindCenterOfBrain_inputs(): input_map = dict( args=dict( argstr="%s", ), ...
1,510
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-c463-rcwh-797m", "modified": "2022-05-02T03:56:59Z", "published": "2022-05-02T03:56:59Z", "aliases": [ "CVE-2009-4669" ], "details": "Multiple SQL injection vulnerabilities in RoomPHPlanning 1.6 allow remote attackers to execute arbitrary SQL...
430
761
import json import time import argparse import logging import os from word_generator import WordGenerator from google.cloud import storage logger = logging.getLogger(__name__) def upload_wotd(blob, word_generator): word = word_generator.generate_word() if not word: raise RuntimeError("Error during ge...
1,198
5,279
<reponame>hengfengli/beam /* * 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....
5,669
3,175
# coding=utf-8 # Copyright 2020 The TF-Agents 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/LICENSE-2.0 # # Unless required by applicable la...
3,747
672
<filename>velox/tpch/gen/tests/TpchGenTest.cpp /* * 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/licen...
8,873
589
package rocks.inspectit.agent.java.sdk.opentracing.internal.impl; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import io.opentracing.SpanContext; import rocks.inspectit.agent.java.sdk.opentracing.internal.util.RandomUtils; /** * Implementation of the {@li...
2,496
583
// // PlayerViewModel.h // KSYPlayerDemo // // Created by devcdl on 2017/8/23. // Copyright © 2017年 kingsoft. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "VideoListViewModel.h" @class VodPlayOperationView, VideoContainerView, LivePlayController, VodPlayController; @i...
460
912
<reponame>meson800/onedrive-sdk-python<gh_stars>100-1000 # -*- coding: utf-8 -*- ''' # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. ''' from __fut...
450
681
<reponame>nahimr/REDRIVER2 #ifndef SEARCH_H #define SEARCH_H extern void InitTextureNames(); // 0x0001BA88 #endif
49
1,338
/* * Copyright 2004-2007 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> */ #ifndef _DIRECTORY_FILE_PANEL_H #define _DIRECTORY_FILE_PANEL_H #include <FilePanel.h> #include <Button.h> static const uint32 MSG_DIRECTORY = 'mDIR'; class DirectoryRefFilte...
489
1,279
<gh_stars>1000+ from unittest import TestCase from samtranslator.model.eventsources.pull import SelfManagedKafka from samtranslator.model.exceptions import InvalidEventException class SelfManagedKafkaEventSource(TestCase): def setUp(self): self.logical_id = "SelfManagedKafkaEvent" self.kafka_event...
7,024
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-74q4-q7vc-p889", "modified": "2022-05-01T07:00:06Z", "published": "2022-05-01T07:00:06Z", "aliases": [ "CVE-2006-2537" ], "details": "Multiple format string vulnerabilities in (a) OpenBOR 2.0046 and earlier, (b) ...
891
7,482
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-04-29 supperthomas first version * */ #include <rtthread.h> #include <rthw.h> #include <nrfx_systick.h> #include "board.h" #include "drv_uart.h" #inc...
902
456
<filename>lib/djvUIComponents/SearchBox.cpp // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2004-2020 <NAME> // All rights reserved. #include <djvUIComponents/SearchBox.h> #include <djvUI/DrawUtil.h> #include <djvUI/IconWidget.h> #include <djvUI/LineEditBase.h> #include <djvUI/RowLayout.h> #include <djvUI/S...
3,623
322
<gh_stars>100-1000 #pragma once #include <immintrin.h> #include <ATen/ATen.h> #include <ATen/ExpandUtils.h> #include <ATen/Parallel.h> #include <c10/util/SmallVector.h> #include <limits> namespace torch_ipex { namespace cpu { namespace kernel { namespace vec { namespace vec512 { #define VEC_512_FP32_CAP (16) #defi...
5,859
535
/* * 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 ...
399
598
<reponame>yangboz/maro from maro.simulator import Env from maro.simulator.scenarios.vm_scheduling import AllocateAction, DecisionPayload from rule_based_algorithm import RuleBasedAlgorithm class FirstFit(RuleBasedAlgorithm): def __init__(self, **kwargs): super().__init__() def allocate_vm(self, deci...
275
852
import FWCore.ParameterSet.Config as cms # producer for alcahbhemuon (HCAL with muons) import Calibration.HcalAlCaRecoProducers.alcaHBHEMuonProducer_cfi HBHEMuonProd = Calibration.HcalAlCaRecoProducers.alcaHBHEMuonProducer_cfi.alcaHBHEMuonProducer.clone()
106
1,056
package org.netbeans.test.java.hints; /** * @author <NAME> */ public class CastOrMethodInvocation58494hUsee { public CastOrMethodInvocation58494hUsee() { } protected void doStuff(Integer i) { } void doStuff(Float i) { } }
116
573
.name = "Reimu (Extra Stage Intro)", .bgm = "intro", .phases = (CutscenePhase[]) { { "cutscenes/locations/moriya", { T_NARRATOR("— The Moriya Shrine"), T_NARRATOR("A workaholic shrine at the top of Yōkai Mountain."), { 0 }, }}, { "cutscenes/locations/moriya", { T_NARRATOR("Reimu was reading a book she'd bo...
1,712
714
<reponame>imadcat/science_rcn """ Learn a two-layer RCN model. See train_image for the main entry. """ from collections import namedtuple import logging import numpy as np import networkx as nx from scipy.spatial import distance, cKDTree from science_rcn.preproc import Preproc LOG = logging.getLogger(__name__) Model...
2,949
615
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, 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...
555
376
<gh_stars>100-1000 package net.zhuoweizhang.boardwalk.yggdrasil; import java.util.*; import java.net.*; import java.io.*; import net.zhuoweizhang.boardwalk.downloader.*; import net.zhuoweizhang.boardwalk.util.*; import com.google.gson.Gson; public class YggdrasilAuthenticator { private static final String API_URL ...
862
347
<reponame>hbraha/ovirt-engine<filename>backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendDataCenterClusterResourceTest.java package org.ovirt.engine.api.restapi.resource; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Asse...
4,904
348
<filename>docs/data/leg-t2/065/06502462.json {"nom":"Vidouze","circ":"2ème circonscription","dpt":"Hautes-Pyrénées","inscrits":203,"abs":112,"votants":91,"blancs":7,"nuls":5,"exp":79,"res":[{"nuance":"REM","nom":"<NAME>","voix":46},{"nuance":"RDG","nom":"<NAME>","voix":33}]}
118
319
/** * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of source code must retain ...
1,304
797
/* The MIT License (MIT) Copyright (c) 2015 <NAME> and Contributors 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...
3,146
607
<reponame>AIHZP/andysworkshop-stm32plus /* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once // ensure the MCU series is correct #ifndef STM32PLUS_F4 #error This class can only...
1,089
395
<filename>app/src/main/java/com/asksven/betterbatterystats/localeplugin/PluginApplication.java<gh_stars>100-1000 /* * Copyright (C) 2012 asksven * * 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 Lice...
1,410
325
<gh_stars>100-1000 #pragma GCC diagnostic warning "-Wgnu-statement-expression" int g = ({ int x = 5; x + 10; }); #pragma GCC diagnostic ignored "-Wgnu-statement-expression" void foo(void) { int x = ({}); ({ 1; }); ({ 2; 3; }); int y = ({ int z = 5; z += 10; z; }); ...
407
2,109
<reponame>Kipjr/core # Help functions for compatibility between python version 2 and 3 # From https://legacy.python.org/dev/peps/pep-0469 try: dict.iteritems except AttributeError: # python 3 def iteritems(d): return iter(d.items()) else: # python 2 def iteritems(d): return d.iteri...
130
659
<filename>notebooks/solutions/06B_basic_grid_search.py<gh_stars>100-1000 for Model in [Lasso, Ridge]: scores = [cross_val_score(Model(alpha), X, y, cv=3).mean() for alpha in alphas] plt.plot(alphas, scores, label=Model.__name__) plt.legend(loc='lower left')
120
1,285
package demo.commands; import net.kyori.adventure.text.Component; import net.minestom.server.command.CommandSender; import net.minestom.server.command.builder.Command; import net.minestom.server.command.builder.CommandContext; import net.minestom.server.command.builder.arguments.ArgumentType; import net.minestom.serve...
1,106
6,992
<reponame>kdombeck/spring-security /* * Copyright 2002-2021 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/LIC...
2,795
7,857
<gh_stars>1000+ #pragma once #include <napi.h> #include <QPointer> #include "Extras/Utils/nutils.h" #include "QtWidgets/QTableView/ntableview.hpp" #include "QtWidgets/QTableView/qtableview_macro.h" class DLL_EXPORT QTableViewWrap : public Napi::ObjectWrap<QTableViewWrap> { QTABLEVIEW_WRAPPED_METHODS_DECLARATION ...
245
365
<gh_stars>100-1000 # coding=utf-8 # Copyright 2019 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
971
530
#ifndef _VGUGV_COMMON_MULTIFRAMES_ #define _VGUGV_COMMON_MULTIFRAMES_ #include <memory> #include <vector> #include "../frame/frame.h" #include "../transformation/transformation.h" namespace VGUGV { namespace Common { template<class T_FeatureType, class T_FeatureDescriptorType> class MultiFrames { ...
503
14,668
# script to generate the generateKey tests import os here = os.path.dirname(__file__) successes_html = """<!DOCTYPE html> <meta charset=utf-8> <meta name="timeout" content="long"> <title>WebCryptoAPI: generateKey() Successful Calls</title> <link rel="author" title="<NAME>" href="mailto:<EMAIL>"> <link rel="help" hre...
1,009
754
/*- * << * UAVStack * == * Copyright (C) 2016 - 2017 UAVStack * == * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
5,289
545
int main() { const int i = 42; // const int auto j = 1; // int const auto &k = i; // const int & auto *p = &i; // const int * const auto j2 = i, &k2 = i; // const int, const int & return 0; }
85
1,199
<filename>aqua/qt4-mac/files/library_path/library_path_test.c #include <library_path_lib.h> int main (void) { test_cpath = 1; return (0); }
62
339
<filename>AfxHookSource/csgo_CCSGameMovement.h #pragma once extern bool g_Enable_csgo_CCSGameMovement_DuckFix; bool Hook_csgo_CCSGameMovement_DuckFix(void);
73
1,056
<filename>ide/api.lsp/src/org/netbeans/spi/lsp/HyperlinkLocationProvider.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this...
811
2,644
/* * Copyright (c) 2013-2015 <NAME> * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #include <app/cdcserialtest/cdcserialtest.h> #include <lk/err.h> #include <lk/debug.h> #include <stdio.h> #include <lk/trace.h> ...
2,729
561
<filename>minerva/op/impl/ps.h<gh_stars>100-1000 #pragma once #include <string> namespace minerva { void PushGradAndPullWeight(const float * grad, float * weights, size_t size, const std::string & layer_name); }
75
462
<reponame>matvaibhav/pensieve { "appDesc": { "description": "App description.", "message": "Google Drive: buat, bagikan, dan simpan semua dokumen Anda dalam satu tempat." }, "appName": { "description": "App name.", "message": "Google Drive" } }
118
759
<gh_stars>100-1000 /* * Copyright 2018 <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...
1,294
3,010
#include "shared-bindings/board/__init__.h" STATIC const mp_rom_map_elem_t board_module_globals_table[] = { CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS { MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PA17) }, { MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_PB23) }, { MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_PB...
438
483
<filename>49.丑数/49.丑数.py # -*- coding:utf-8 -*- class Solution: def GetUglyNumber_Solution(self, index): # write code here if index <= 0: return 0 dp = [1] t2 = t3 = t5 = 0 for i in range(index): ugly = min(min(dp[t2]*2,dp[t3]*3),dp[t5]*5) ...
347
9,491
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
1,362
475
// Copyright (c) 2015-2016 <NAME> // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 // http://vittorioromeo.info | <EMAIL> #pragma once #include <vrm/core/config.hpp> #include <ecst/config.hpp> #include <ecst/aliases.hpp> ECST_HARDWARE_NAMESPACE { namesp...
352
311
<reponame>sqreen/dd-trace-java package datadog.trace.bootstrap; import java.util.EnumSet; import org.slf4j.Logger; /** Tracks third-party libraries that may need special handling during agent startup. */ public enum Library { WILDFLY; /** * Best-effort detection of libraries potentially used by the applicatio...
307
872
<gh_stars>100-1000 #!/usr/bin/python3 """ Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n). """ __author__ = 'Danyang' import heapq class Solution: def thirdMax(self, nums): """ ...
554
3,631
/* * Copyright 2015 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
855
582
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.diagram; import org.eclipse.gef.palette.MarqueeToolEntry; import org.eclipse.gef.palette.PaletteRoot; impo...
1,122
2,540
public class Foo extends Exception implements Cloneable { }
12
344
<filename>lib_dasp/lib_dasp/impl/Sampling.cpp /* * Sampling.cpp * * Created on: Mar 25, 2012 * Author: david */ //------------------------------------------------------------------------------ #include <color.hpp> #include "Sampling.hpp" #include "../Superpixels.hpp" #include <pds/Tools.hpp> #include <densi...
2,878
2,448
<reponame>pologood/EasyTransaction package com.yiqiniu.easytrans.util; import com.yiqiniu.easytrans.protocol.TransactionId; public interface ByteFormIdCodec { byte[] getTransIdByte(TransactionId transId); byte[] getAppIdCeil(String appId); byte[] getAppIdFloor(String appId); TransactionId getTransIdFromByte(b...
115
2,322
<reponame>sckevmit/cartography<gh_stars>1000+ def test_basic(): assert True
32
602
package org.corfudb.infrastructure.logreplication.runtime.fsm; import lombok.extern.slf4j.Slf4j; import org.corfudb.infrastructure.logreplication.replication.LogReplicationSourceManager; /** * Log Replication Runtime Stopped State. * * In this state log replication has been stopped due to loss of leadership. * *...
333
353
package org.nutz.integration.grpc; import java.io.File; import java.io.IOException; import org.nutz.log.Log; import org.nutz.log.Logs; import io.grpc.Server; import io.grpc.ServerBuilder; /** * 简单封装一下 */ public class SimpleGrpcServer { private static final Log log = Logs.get(); private Server server; ...
665
373
/* * Power by www.xiaoi.com */ package com.eastrobot.doc.web; import com.eastrobot.doc.config.BaseController; import com.eastrobot.doc.config.SystemConstants; import com.eastrobot.doc.config.WebappContext; import com.eastrobot.doc.model.entity.Attachment; import com.eastrobot.doc.service.FileService; import com.east...
3,794
1,750
// // CROPrototypeB.h // Tests // // Created by <NAME> on 11/09/13. // // #import <Foundation/Foundation.h> @class CROSingletonA; @class CROPrototypeA; @interface CROPrototypeB : NSObject @property(nonatomic, strong, readonly) CROSingletonA *singletonA; @property(nonatomic, strong, readonly) CROPrototypeA *proto...
176
585
#include "gtest/gtest.h" #include "gbtsync/gbtsync.h" #include <fstream> #include <cstdio> TEST(DataManager, Pool) { // cleanup before start testing std::remove("testdata/filemanagertestdata/temp.empty.txt"); auto fileOperationManager = new FileDataOperationManager("testdata/filemanagertestdata/", {'G'...
1,010
642
/* * 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 ...
2,008
348
{"nom":"Brémontier-Merval","dpt":"Seine-Maritime","inscrits":409,"abs":93,"votants":316,"blancs":26,"nuls":12,"exp":278,"res":[{"panneau":"2","voix":174},{"panneau":"1","voix":104}]}
75
15,179
from jina import Executor class TestExecutor(Executor): pass
22
4,537
// 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 writing, software // distributed und...
429
442
<filename>autots/models/dnn.py<gh_stars>100-1000 """Neural Nets.""" import pandas as pd try: import tensorflow as tf except Exception: # except ImportError _has_tf = False else: _has_tf = True """ X, Y = window_maker(df, forecast_length = 6, shuffle = False, input_dim = 'univariate', w...
8,896
723
<gh_stars>100-1000 from bin_chunk.binary_chunk import BinaryChunk def main(): with open('./lua/hello.luac', 'rb') as f: chunk = f.read() if BinaryChunk.is_binary_chunk(chunk): bc = BinaryChunk(chunk) bc.undump() bc.print_header() bc.check_header() ...
200
371
<reponame>pambros/StereoKit<gh_stars>100-1000 #pragma once const unsigned char sks_shader_builtin_font_hlsl[11744] = { 83, 75, 83, 72, 65, 68, 69, 82, 2, 0, 8, 0, 0, 0, 115, 107, 47, 102, 111, 110, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
35,285
2,151
package com.android.ex.chips; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; import android.graphics.drawable.State...
9,493
582
<filename>com.archimatetool.editor/src/com/archimatetool/editor/ui/factory/IGraphicalObjectUIProvider.java /** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.ui.factor...
548
386
/* * Copyright (c) 2017 by <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 t...
671
361
<gh_stars>100-1000 /* SlimeVR Code is placed under the MIT license Copyright (c) 2021 <NAME> 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 with...
525
833
import logging from urllib.parse import urlencode import tornado.concurrent import tornado.escape import tornado.ioloop import tornado.web import tornado.websocket from utils.tornado_utils import redirect_relative from web.web_utils import identify_user LOGGER = logging.getLogger('web_server') webpack_prefixed_exte...
1,645
1,111
<filename>demos/kitchen_sink/libs/baseclass/chips.py from kivy.uix.screenmanager import Screen from kivymd.toast import toast class KitchenSinkChips(Screen): def callback_for_menu_items(self, instance): toast(instance.text)
90