max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
1,249
13,511
<gh_stars>1000+ /* * 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.stetho.inspector.helper; import javax.annotation.Nullable; import javax.annotation.concurrent...
1,518
1,088
<gh_stars>1000+ # Copyright 2021 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
515
1,433
//----------------------------------------------------------------------------- // // SensorAlarm.cpp // // Implementation of the Z-Wave COMMAND_CLASS_SENSOR_ALARM // // Copyright (c) 2010 <NAME> <<EMAIL>> // // SOFTWARE NOTICE AND LICENSE // // This file is part of OpenZWave. // // OpenZWave is free software: you can ...
2,118
2,603
/******************************************************************************* * (c) Copyright 2016-2018 Microsemi SoC Products Group. All rights reserved. * * @file encodings.h * @author Microsemi SoC Products Group * @brief Mi-V soft processor register bit mask and shift constants encodings. * * SVN ...
8,064
317
<gh_stars>100-1000 /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
5,293
3,049
import logging import numpy as np logger = logging.getLogger(__name__) class ImageNetCombiner(object): def aggregate(self, Xs, features_names): print("ImageNet Combiner aggregate called") logger.debug(Xs) return (np.reshape(Xs[0],(1,-1)) + np.reshape(Xs[1], (1,-1)))/2.0
126
2,570
<reponame>macneek/tensorflow-without-a-phd # Copyright 2018 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 b...
1,395
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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...
1,780
5,937
<gh_stars>1000+ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #pragma once ///////////////////////////////////////////////////////////////////////////// templa...
1,834
1,531
/** * Common utility classes. */ package net.grinder.util;
19
647
<filename>trick_source/sim_services/VariableServer/VariableServerThread_write_stdio.cpp #include "trick/VariableServer.hh" #include "trick/variable_server_message_types.h" #include "trick/tc_proto.h" int Trick::VariableServerThread::write_stdio(int stream, std::string text) { char header[16] ; sprintf(header...
196
16,989
<filename>src/main/cpp/util/path_posix.cc // 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...
1,912
674
<gh_stars>100-1000 """passlib.handlers.phpass - PHPass Portable Crypt phppass located - http://www.openwall.com/phpass/ algorithm described - http://www.openwall.com/articles/PHP-Users-Passwords phpass context - blowfish, bsdi_crypt, phpass """ #========================================================================...
1,773
372
<filename>dgl/ImageBase.hpp /* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2021 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission notice appear in a...
1,433
1,029
<reponame>d3lta-v/node-lame /* * Version numbering for LAME. * * Copyright (c) 1999 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the L...
829
1,014
<gh_stars>1000+ { "IES.L": { "short_name": "INVINITY ENERGY SYSTEMS PLC ORD", "long_name": "Invinity Energy Systems plc", "summary": "Invinity Energy Systems plc manufactures and sells vanadium flow batteries for energy storage applications of businesses, industries, and electricity netw...
1,570
1,694
<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "MMUIViewController.h" #import "AirKissViewControllerDelegate-Protocol.h" #import "CNetworkStatusExt-Protocol.h" #im...
520
1,108
from dataclasses import dataclass from jiant.tasks.lib.templates.shared import labels_to_bimap from jiant.tasks.lib.templates import multiple_choice as mc_template from jiant.utils.python.io import read_json_lines @dataclass class Example(mc_template.Example): @property def task(self): return Commons...
1,306
1,210
<gh_stars>1000+ # -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making GameAISDK available. This source code file is licensed under the GNU General Public License Version 3. For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code pac...
991
348
{"nom":"Castineta","dpt":"Haute-Corse","inscrits":54,"abs":38,"votants":16,"blancs":1,"nuls":3,"exp":12,"res":[{"panneau":"1","voix":9},{"panneau":"2","voix":3}]}
70
14,668
<filename>chrome/browser/enterprise/connectors/file_system/box_upload_file_chunks_handler.cc // 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 "chrome/browser/enterprise/connectors/file_system/bo...
2,511
325
<filename>src/parsers/nop.cc #include "parser.h" using namespace wasmdec; string wasmdec::parsers::nop(Context* ctx, Expression* ex) { return util::tab(ctx->depth) + "// <Nop expression>\n"; // Nop expressions do nothing }
82
354
<gh_stars>100-1000 /*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms...
1,622
10,225
<gh_stars>1000+ package io.quarkus.it.amqp; import io.quarkus.test.junit.NativeImageTest; @NativeImageTest public class AmqpConnectorIT extends AmqpConnectorTest { }
64
428
<filename>Java/Examples/towerdefence(0.5)/src/org/test/towerdefense/StartGameButton.java package org.test.towerdefense; import loon.LTexture; import loon.LTextures; import loon.action.sprite.SpriteBatch; import loon.action.sprite.painting.DrawableGameComponent; import loon.action.sprite.painting.IGameComponent; impor...
639
731
package com.webank.weevent.broker.protocol.mqtt.store; import io.netty.handler.codec.mqtt.MqttQoS; import lombok.Getter; import lombok.Setter; import lombok.ToString; /** * @author websterchen * @version v1.0 * @since 2019/6/3 */ @Getter @Setter @ToString public class SubscribeData { private String clientId; ...
313
5,166
<gh_stars>1000+ //snippet-sourcedescription:[GetBotStatus.java demonstrates how to get the status of an Amazon Lex bot.] //snippet-keyword:[AWS SDK for Java v2] //snippet-keyword:[Code Sample] //snippet-service:[Amazon Lex] //snippet-sourcetype:[full-example] //snippet-sourcedate:[09/27/2021] //snippet-sourceauth...
1,163
357
<reponame>nicesu/wiki #include <stdio.h> #include <stdlib.h> #define MAXSIZE 100 int place(int k, int x[]) { int i = 1; while (i < k) { if (x[i] == x[k] || abs(x[i] - x[k]) == abs(i - k)) return 0; i++; } return 1; } void N_QUEEN(int n, int x[]) { x[1] = 0; int k = 1; while (k > 0) { x[k] += 1; wh...
375
3,589
package picocli.examples.mixin; import picocli.CommandLine.Command; import picocli.CommandLine.Option; @Command(footer = "Common footer") public class CommonOption { @Option(names = "-x", description = "reusable option you want in many commands") int x; }
87
538
#pragma once #include "VGMInstrSet.h" #include "VGMSampColl.h" #include "VGMRgn.h" #include "AkaoFormat.h" #include "Matcher.h" struct AkaoInstrDatLocation { uint32_t instrAllOffset; uint32_t instrDatOffset; uint32_t startingArticulationId; uint32_t numArticulations; AkaoInstrDatLocation() noexcept : instrA...
1,780
2,023
<gh_stars>1000+ 'Toolkit for automatic-differentiation of Python functions' # Resources for automatic-differentiation: # https://en.wikipedia.org/wiki/Automatic_differentiation # https://justindomke.wordpress.com/2009/02/17/ # http://www.autodiff.org/ from __future__ import division import math ## Dual Number Class...
7,300
348
{"nom":"Saint-Maudan","circ":"3ème circonscription","dpt":"Côtes-d'Armor","inscrits":315,"abs":152,"votants":163,"blancs":5,"nuls":2,"exp":156,"res":[{"nuance":"LR","nom":"<NAME>","voix":100},{"nuance":"REM","nom":"<NAME>","voix":56}]}
95
1,927
package com.bytedance.scenedemo.restore; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CheckBox; import android.widget.TextView; import android.widget....
1,006
4,184
/* * File: lrucache.hpp * Author: <NAME> * * Created on June 20, 2013, 5:09 PM */ #ifndef _LRUCACHE_HPP_INCLUDED_ #define _LRUCACHE_HPP_INCLUDED_ #include <map> #include <list> #include <cstddef> #include <stdexcept> #include "optional.hpp" namespace cache { template<typename key_t, typename value_t> class...
817
3,705
#include "chainerx/native/im2col.h" #include <algorithm> #include <cstdint> #include <vector> #include "chainerx/array.h" #include "chainerx/array_index.h" #include "chainerx/backend.h" #include "chainerx/constant.h" #include "chainerx/device.h" #include "chainerx/dims.h" #include "chainerx/indexable_array.h" #includ...
2,820
772
<reponame>code-dot-org/code-dot-org { "fi-FI": { "data": { "bubble_choice_description": { "courseD_bee_nestedLoops8_2021": "Kerää kaikki mesi kukista ja tee hunaja hunajakennoihin. Käytä sisäkkäistä silmukkaa. " } } } }
131
465
<filename>ChangeTheme/app/src/main/java/com/mjj/changetheme/activity/SecondActivity.java<gh_stars>100-1000 package com.mjj.changetheme.activity; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.v...
464
475
package org.micro.neural.config.event; import org.micro.neural.extension.SPI; /** * The Event Notify. * * @author lry **/ @SPI("log") public interface IEventListener { /** * The initialize * * @param eventConfig {@link EventConfig} */ void initialize(EventConfig eventConfig); /**...
221
552
#include <iostream> #include "writer.h" Writer::Writer() { } void Writer::Write(const std::string msg) { std::cout << msg << std::endl; } void Writer::WriteLine(const std::string msg) { this->Write(msg); std::cout << std::endl; } void Writer::Write(const int number) { std::cout << number; } void W...
166
1,863
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
838
591
#pragma once template <typename... Args> struct sumSizeOfArgs { static constexpr size_t totalSize = 0; }; template <typename T, typename... Args> struct sumSizeOfArgs<T, Args...> { static constexpr size_t totalSize = sizeof(typename std::decay<T>::type) + sumSizeOfArgs<Args...>::totalSize; }; template <typename ...
675
6,620
<filename>numba/cuda/tests/cudapy/test_alignment.py import numpy as np from numba import from_dtype, cuda from numba.cuda.testing import skip_on_cudasim, CUDATestCase import unittest class TestAlignment(CUDATestCase): def test_record_alignment(self): rec_dtype = np.dtype([('a', 'int32'), ('b', 'float64')]...
655
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...
870
782
/* * 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 not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org...
1,885
672
/* * Copyright (c) 2000-2006 Apple Computer, 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 th...
751
1,845
<filename>examples/blob_blob_table.h // This table was created to illustrate usage of the table with untyped blobs. // See `int_str_table.h` for more comments regarding the semantics of creating // header files for use with C programs. #ifndef BLOB_BLOB_TABLE_H #define BLOB_BLOB_TABLE_H // In C, assignment is not def...
270
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-94xh-5q62-p3f9", "modified": "2022-05-01T17:53:52Z", "published": "2022-05-01T17:53:52Z", "aliases": [ "CVE-2007-1456" ], "details": "** DISPUTED ** PHP remote file inclusion vulnerability in common.php in PHP P...
562
33,601
class balanceException(Exception): pass
11
964
[ { "queryName": "Operation Object Without 'produces'", "severity": "MEDIUM", "line": 9, "filename": "positive1.json" }, { "queryName": "Operation Object Without 'produces'", "severity": "MEDIUM", "line": 7, "filename": "positive2.yaml" } ]
119
321
/** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2014 * http://www.hoteia.com - http://twitter.com/hoteia - <EM...
7,428
1,180
/* * Copyright(c) 2019 Netflix, Inc. * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE fi...
15,076
14,668
<gh_stars>1000+ // Copyright 2019 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_PUBLIC_COMMON_CSS_NAVIGATION_CONTROLS_H_ #define THIRD_PARTY_BLINK_PUBLIC_COMMON_CSS_NAVIGATION_CONTROLS_H_ nam...
200
4,036
typedef struct { int x, y; } MyCoords; int getX(MyCoords *coords); void doSomething(void *something); typedef struct { char isTrue; } MyBool; void myTest_with_local_flow(MyBool *b, int pos) { MyCoords coords = {0}; if (b->isTrue) { goto next; } next: coords.x = coords.y = pos + 1; // There is flow from `...
190
852
import FWCore.ParameterSet.Config as cms BtagPerformanceESProducer_TTBARWPBTAGCSVL = cms.ESProducer("BtagPerformanceESProducer", # this is what it makes available ComponentName = cms.string('TTBARWPBTAGCSVL'), # this is where it gets the payload from PayloadName ...
1,199
455
<gh_stars>100-1000 /* Copyright (c) 2001 <NAME>. * Copyright (c) 2001-2004, <NAME>. * Copyright (c) 2004-2006, <NAME>, <NAME>. * Copyright (c) 2007-2019, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file loadkey.h * \brief Header file for loadkey.c **/ #ifndef TOR_LOADKEY_H #defin...
1,411
356
import os import itertools import numpy as np from PIL import Image from torch.utils.data import Dataset import torchvision.transforms as transforms from torch.utils.data.sampler import Sampler NO_LABEL = -1 class DataSetWarpper(Dataset): """Enable dataset to output index of sample """ def __...
1,119
311
package org.javacs.lsp; public class ReferenceContext { public boolean includeDeclaration; }
30
416
<filename>iPhoneOS10.3.sdk/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastConfiguration.h // // RPBroadcastConfiguration.h // ReplayKit // // Copyright © 2016 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> NS_CLASS_AVAILABLE_IOS(10_0) NS_ASSUME_NONNULL_BEGIN @interface RPBr...
282
439
<gh_stars>100-1000 /** * Baidu.com,Inc. * Copyright (c) 2000-2013 All Rights Reserved. */ package com.baidu.hsb.server.response; import java.nio.ByteBuffer; import com.baidu.hsb.mysql.PreparedStatement; import com.baidu.hsb.net.FrontendConnection; import com.baidu.hsb.net.mysql.EOFPacket; import com.baidu.hsb.net....
902
847
<gh_stars>100-1000 package com.crazysunj.multityperecyclerviewadapter.testlevel; import androidx.annotation.Nullable; import static com.crazysunj.multityperecyclerviewadapter.testlevel.TestLevelAdapter.TYPE_LEVEL_SECOND_ERROR; /** * @author: sunjian * created on: 2019/1/7 上午10:21 * description: */ public class L...
379
1,431
package com.asura.monitor.configure.entity; /** * <p></p> * * <PRE> * <BR> 修改记录 * <BR>----------------------------------------------- * <BR> 修改日期 修改人 修改内容 * </PRE> * * @author zhaozq * @version 1.0 * @since 1.0 */ public class SysinfoDataEntity { // 数据名称 private String name; ...
439
419
{ "PlaceholderDesc_Hours": "Hours of the time", "PlaceholderDesc_Minutes": "Minutes of the time", "PlaceholderDesc_TotalMinutes": "Total minutes of the time. Will be calculated as Hours * MinutesPerHour + Minutes." }
75
764
{"symbol": "TSX","address": "0x734C90044a0bA31B3F2e640c10dC5d3540499Bfd","overview":{"en": ""},"email": "","website": "https://tradestars.app/","state": "NORMAL","links": {"blog": "https://www.facebook.com/TradeStarsOK","twitter": "https://twitter.com/tradestarsOK","telegram": "","github": ""}}
114
347
<reponame>hbraha/ovirt-engine package org.ovirt.engine.core.common.action; import org.ovirt.engine.core.common.businessentities.VmRngDevice; /** * Unifies command parameters of commands manipulating RNG devices. */ public interface HasRngDevice { VmRngDevice getRngDevice(); void setRngDevice(VmRngDevice r...
143
5,169
{ "name": "MyFirstCocoaPodTest", "version": "0.1.0", "summary": "This is test pod. it can be remove any time", "description": "'This is test pod. it can be remove any timeThis is test pod. it can be remove any timeThis is test pod. it can be remove any time'", "homepage": "https://github.com/RajaReddyiOS/MyFi...
283
2,458
{ "$schema": "https://developer.microsoft.com/json-schemas/heft/heft.schema.json", "extends": "@rushstack/heft-web-rig/profiles/library/config/heft.json", "eventActions": [ { "actionKind": "copyFiles", "heftEvent": "bundle", "actionId": "add-dts-file", "copyOperations...
264
686
/* * Implementation of hyperlinking (hlink.dll) * * Copyright 2005 <NAME> for CodeWeavers * * 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 of the License, or...
7,989
326
package com.bihell.dice.system.service; import com.bihell.dice.system.entity.AuthContent; /** * @author haseochen */ @Deprecated public interface AuthContentService { AuthContent save(AuthContent authContent); AuthContent update(AuthContent authContent) ; }
85
3,112
#pragma once #include "engine/input_system.h" namespace Lumix { struct ControllerDevice : InputSystem::Device { static void init(InputSystem& input_system); static void frame(float dt); static void shutdown(); const char* getName() const override { return "controller"; } }; } // namespace Lumix
92
721
package com.github.tminglei.slickpg; /** * Used by [[PgEnumSupportSuite]] * * Created by gwilson on 6/24/16. */ public enum Languages { SCALA("Scala"), JAVA("Java"), CLOJURE("Clojure"); private final String value; Languages(final String value) { this.value = value; } public ...
154
687
<gh_stars>100-1000 // Copyright 2021 The XLS Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
746
348
{"nom":"Achun","circ":"2ème circonscription","dpt":"Nièvre","inscrits":108,"abs":40,"votants":68,"blancs":8,"nuls":0,"exp":60,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":35},{"nuance":"SOC","nom":"M. <NAME>","voix":25}]}
94
558
<filename>src/main/java/com/endava/cats/args/CheckArguments.java package com.endava.cats.args; import lombok.Getter; import picocli.CommandLine; import javax.inject.Singleton; /** * Holds all args related to category of Fuzzers to run. */ @Singleton @Getter public class CheckArguments { @CommandLine.Option(nam...
493
3,200
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
1,592
17,703
#include <iostream> #include <string> #include "source/common/common/fancy_logger.h" #include "source/common/common/logger.h" #include "benchmark/benchmark.h" namespace Envoy { /** * Benchmark for the main slow path, i.e. new logger creation here. */ static void fancySlowPath(benchmark::State& state) { FANCY_LO...
2,706
539
DEF_STATIC_CONST_VAL_STRING(val_0000,"pau"); DEF_STATIC_CONST_VAL_STRING(val_0001,"BB"); DEF_STATIC_CONST_VAL_FLOAT(val_0002,2.000000); #define CTNODE_cmu_us_awb_dur_NO_0001 3 DEF_STATIC_CONST_VAL_FLOAT(val_0003,0.000000); #define CTNODE_cmu_us_awb_dur_NO_0000 4 DEF_STATIC_CONST_VAL_FLOAT(val_0004,1.200000); DEF_STATIC...
133,366
347
# # ovirt-engine-setup -- ovirt engine setup # # Copyright oVirt Authors # SPDX-License-Identifier: Apache-2.0 # # """ovirt-host-setup network plugin.""" from otopi import util from . import firewall_manager from . import firewall_manager_firewalld from . import firewall_manager_human from . import firewall_manager...
215
2,225
<filename>packages/linden-hill/package.json { "name": "@fontsource/linden-hill", "version": "4.5.0", "description": "Self-host the Linden Hill font in a neatly bundled NPM package.", "main": "index.css", "publishConfig": { "access": "public" }, "keywords": [ "fontsource", "font", "font fam...
274
2,707
<filename>jetlinks-manager/rule-engine-manager/src/main/java/org/jetlinks/community/rule/engine/service/DebugMessage.java<gh_stars>1000+ package org.jetlinks.community.rule.engine.service; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.io.Ser...
238
3,957
<filename>sample/src/main/java/com/yanzhenjie/nohttp/sample/app/normal/NormalPresenter.java /* * 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://...
1,633
931
/* Src : LeetCode -------------- Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase characters as follows: 1. Characters ('a' to 'i') are represented by ('1' to '9') respectively. 2. Characters ('j' to 'z') are represented by ('10#' to '26#') respectively. Return the string...
366
45,293
<reponame>AndrewReitz/kotlin import javax.annotation.*; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.annotation.meta.TypeQualifierNickname; import javax.annotation.meta.When; import kotlin.annotations.jvm.*; @Documented @Type...
168
313
/* * SimpleRenderEngine (https://github.com/mortennobel/SimpleRenderEngine) * * Created by <NAME> ( http://www.nobel-joergensen.com/ ) * License: MIT */ #pragma once #include <vector> #include <chrono> #include <memory> #include "sre/RenderStats.hpp" #include "sre/Framebuffer.hpp" #include "sre/WorldLights.hp...
912
5,166
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """ Stub functions that are used by the AWS Lambda unit tests. When tests are run against an actual AWS account, the stubber class does not set up stubs and passes all calls through to the Boto 3 client. """ fr...
1,190
521
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
5,673
5,169
{ "name": "SwiftPhoneFormat", "version": "1.0.0", "summary": "A framework for formatting phone numbers in Swift for iOS projects.", "description": "A phone number string formatting framework designed and built for iOS in Swift.", "homepage": "https://github.com/appteur/phoneformat.git", "license": { "ty...
291
497
<reponame>valentinmamontov/sgrc187 { "name": "mongoose-deep-populate", "version": "3.2.0", "description": "Mongoose plugin to enable deep population of nested models", "keywords": [ "mongo", "mongodb", "mongoose", "populate", "population", "deep populate", "deep population", "mod...
614
916
<reponame>coder-chriswang/java-study<filename>src/main/java/com/pancm/basics/AbstractTest.java<gh_stars>100-1000 package com.pancm.basics; /** * @author pancm * @Data 2017-6-1 * @Description abstract 抽象类测试 */ public class AbstractTest { public static void main(String[] args) { // 这句会报错,因为抽象类不能实例化 // Animal a...
710
340
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
3,533
4,407
<reponame>Anita1017/nlp-recipes # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import argparse import os import sys import time import torch import torch.distributed as dist import torch.multiprocessing as mp # torch.set_printoptions(threshold=5000) nlp_path = os.path.a...
3,787
2,151
<gh_stars>1000+ /* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS...
887
971
package com.ucar.datalink.biz.service.impl; import com.alibaba.fastjson.JSONObject; import com.ucar.datalink.biz.service.JobControlService; import com.ucar.datalink.biz.service.JobService; import com.ucar.datalink.biz.utils.flinker.FlinkerJobUtil; import com.ucar.datalink.biz.utils.URLConnectionUtil; import com.ucar.d...
1,490
2,637
/* Copyright Statement: * * (C) 2005-2016 MediaTek Inc. All rights reserved. * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licens...
6,438
1,405
package com.lenovo.safecenter.aidl.healthcheck; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.os.RemoteCallbackList; import android.os.RemoteException; import android.text.TextUtils; import android.util.Log; import com.lenovo.safecenter.HealthCheck.HealthCheckCall...
5,466
542
import os import sys import numpy as np from mxnet.gluon.data.vision import transforms
31
348
{"nom":"Bony","circ":"2ème circonscription","dpt":"Aisne","inscrits":105,"abs":48,"votants":57,"blancs":3,"nuls":0,"exp":54,"res":[{"nuance":"FN","nom":"Mme <NAME>","voix":33},{"nuance":"LR","nom":"M. <NAME>","voix":21}]}
92
305
package org.mamute.model; import static org.junit.Assert.assertEquals; import org.junit.Test; import org.mamute.dao.TestCase; import org.mamute.model.Flag; import org.mamute.model.FlagType; public class FlagTest extends TestCase { @Test(expected=IllegalStateException.class) public void should_throw_exception_when...
256
5,169
{ "name": "IndexArray", "version": "1.0.1", "summary": "The combination of dictionary and array.", "homepage": "https://github.com/lincf0912/IndexArray", "license": "MIT", "authors": { "lincf0912": "<EMAIL>" }, "platforms": { "ios": "7.0" }, "source": { "git": "https://github.com/lincf09...
222
879
<reponame>luiz158/Hibernate-SpringBoot<gh_stars>100-1000 package com.bookstore.repository; import com.bookstore.entity.Author; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; @Repository @Transacti...
173