max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,588
<filename>erupt-monitor/src/main/java/xyz/erupt/monitor/constant/MonitorConstant.java<gh_stars>1000+ package xyz.erupt.monitor.constant; import xyz.erupt.core.constant.EruptRestPath; /** * @author YuePeng * date 2021/1/29 18:25 */ public class MonitorConstant { public static final String REST_MONITOR = EruptR...
134
303
{"id":2125,"line-1":"Jujuy Province","line-2":"Argentina","attribution":"©2014 CNES / Astrium, Cnes/Spot Image, DigitalGlobe","url":"https://www.google.com/maps/@-23.253253,-65.114808,16z/data=!3m1!1e3"}
83
14,668
<filename>chrome/browser/ash/nearby/nearby_process_manager_factory.h // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_ASH_NEARBY_NEARBY_PROCESS_MANAGER_FACTORY_H_ #define CHROME_BR...
613
314
{ "$schema" : "http://json-schema.org/draft-04/schema", "title" : "Extras", "description" : "Application-specific data.", "gltf_sectionDescription" : "**Implementation Note:** Although extras may have any type, it is common for applications to store and access custom data as key/value pairs. As best pra...
119
1,405
package com.lenovo.safecenter.systeminfo.entity; public class Category { public static final String COLUMN_ID = "_id"; public static final String COLUMN_NAME = "name"; public static final String TABLE_NAME = "category"; private int a; private String b; public Category() { } public Cat...
595
471
<reponame>nipun-gupta-e3183/jesque<gh_stars>100-1000 /* * Copyright 2011 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
1,822
338
<reponame>Nanthini10/interpret-community # --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- """Defines a light-weight chained identity for logging.""" import logging class ChainedIdentity...
195
1,085
<reponame>luxms/dremio-oss<filename>common/src/main/java/com/dremio/common/util/DremioGetObject.java /* * Copyright (C) 2017-2019 Dremio 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 ...
1,643
377
<gh_stars>100-1000 import os, sys from subprocess import Popen from mongo_connection import mongo_client import logging from findPorts import portScan from findVulnerability import vulnerabilityScan from findTechnology import technologyScan def start_scan(): # config database client = mongo_client() db = client.co...
644
6,594
# coding=utf-8 # 书中代码 map,filter 前面的list是多余的,因为map本来就会返回一个list def square(): items = [1,2,3,4,5] print map(lambda x: x**2, items) def multiply(x): return x*x def add(x): return x+x def filter_less_than_zero(): number_list = range(-5, 5) print filter(lambda x: x<0, number_list) def main(): square() funcs ...
230
16,407
package org.spring.springboot.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * Created by bysocket on 08/09/2017. */ @Configuration public class MessageConfiguration { @Bean public String message() { return "message confi...
104
892
{ "schema_version": "1.2.0", "id": "GHSA-m7jg-f799-8948", "modified": "2022-05-02T06:10:00Z", "published": "2022-05-02T06:10:00Z", "aliases": [ "CVE-2010-0072" ], "details": "Unspecified vulnerability in the Oracle Secure Backup component in Oracle Secure Backup 10.2.0.3 allows remote attackers to aff...
452
335
{ "word": "Rob", "definitions": [ "Take property unlawfully from (a person or place) by force or threat of force.", "Overcharge (someone) for something.", "Steal.", "Deprive someone of (something needed or deserved)", "Deprive (an opposing player) of the ball." ], ...
136
5,119
<gh_stars>1000+ #include "common.h" namespace bpftrace { namespace test { namespace codegen { TEST(codegen, ptr_to_ptr) { test( R"PROG(kprobe:f { $pp = (int32 **)0; printf("%d\n", **kptr($pp)); })PROG", NAME); } } // namespace codegen } // namespace test } // namespace bpftrace
130
2,023
class attrview(object): """Wrapper class that provides a dictionary-style, dynamic access to the properties of the wrapped object. Any mutating map operations done to the wrapper mutate the wrapped object. Because objects may implement attributes using __getattr__ and friends, and there is no __di...
1,152
1,323
<filename>ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputRecordAudioTipView.h<gh_stars>1000+ // // GJGCChatInputRecordAudioTipView.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-10-29. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> @interface GJGCChatInputReco...
388
606
// This is an auto-generated file. #import <Foundation/Foundation.h> @interface PFResources : NSObject + (NSData *)twitter_icon3x_png;//modified:2020-08-14 12:39:40 -0500 + (NSData *)apple_icon3x_png;//modified:2020-08-14 10:58:53 -0500 + (NSData *)facebook_icon2x_png;//modified:2020-08-14 10:38:50 -0500 + (NSData *)pa...
388
12,252
<reponame>rmartinc/keycloak package org.keycloak.performance.templates.idm.authorization; import org.apache.commons.lang.Validate; import org.keycloak.performance.dataset.Entity; import org.keycloak.performance.dataset.idm.Role; import org.keycloak.performance.dataset.idm.authorization.ResourceServer; import org.keycl...
2,145
7,601
<reponame>uNetworking/uWebSockets<gh_stars>1000+ /* This is a fuzz test of the permessage-deflate module */ #define WIN32_EXPORT #include <cstdio> #include <string> #include <bitset> /* We test the permessage deflate module */ #include "../src/PerMessageDeflate.h" #include "helpers.h" extern "C" int LLVMFuzzerTest...
952
1,056
<filename>enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/index/JsfIndex.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...
5,992
5,169
{ "name": "TimerHJQueue", "version": "1.0.0", "summary": "This is a simple queue with Infinite or limit length and also dequeue periodic with timer for iOS platforms Edit Add topics Edit\nAdd topics", "homepage": "https://github.com/Husseinhj/TimerHJQueue", "authors": { "Name": "<EMAIL>" }, "license":...
232
5,169
{ "name": "IGStoriesView", "version": "0.0.2", "summary": "IGStoriesView is a timeline stories card view", "description": "This CocoaPods library helps you integrate timeline stories card with designable view way so you can change layout of border using Interface builder easily.", "homepage": "https://github....
320
5,908
package org.testcontainers.utility; import com.google.common.util.concurrent.Futures; import lombok.SneakyThrows; import org.junit.Test; import java.util.Collections; import java.util.List; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.IntStream; import stat...
1,061
4,258
# Copyright 2014 Netflix, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
1,389
334
<reponame>bincrack666/BlackObfuscator<gh_stars>100-1000 /* * Copyright 2013, Google 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: * * * Redistributions of source code must ret...
2,206
687
// 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 applicable law or agreed t...
789
2,113
package io.noties.markwon.core.spans; import android.text.TextPaint; import android.text.style.MetricAffectingSpan; public class StrongEmphasisSpan extends MetricAffectingSpan { @Override public void updateMeasureState(TextPaint p) { p.setFakeBoldText(true); } @Override public void updat...
154
3,212
<filename>nifi-nar-bundles/nifi-extension-utils/nifi-record-utils/nifi-standard-record-utils/src/main/java/org/apache/nifi/schema/validation/StandardValidationError.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * t...
1,896
314
<reponame>TalonCB/ReChorus # -*- coding: UTF-8 -*- import torch import torch.nn as nn import numpy as np class MultiHeadAttention(nn.Module): def __init__(self, d_model, n_heads, kq_same=False, bias=True): super().__init__() """ It has projection layer for getting keys, queries and values...
1,483
2,494
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0...
365
417
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: sw=4:ts=4:expandtab """ meza.fntools ~~~~~~~~~~~~ Provides methods for functional manipulation of content Examples: basic usage:: >>> from meza.fntools import underscorify >>> >>> header = ['ALL CAPS', 'Illegal $%^', 'Lots of space'] ...
15,529
839
<reponame>AnEmortalKid/cxf<filename>services/sts/systests/advanced/src/test/java/org/apache/cxf/systest/sts/distributed_caching/CustomUsernameTokenProvider.java<gh_stars>100-1000 /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distribut...
1,249
436
/** * The MIT License * Copyright (c) 2019- Nordic Institute for Interoperability Solutions (NIIS) * Copyright (c) 2018 Estonian Information System Authority (RIA), * Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK) * Copyright (c) 2015-2017 Estonian Information System Autho...
4,312
1,272
/* * Copyright 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" f...
998
647
#ifndef DPM_TABLE_HH #define DPM_TABLE_HH #include <vector> #include <libxml/tree.h> #include "DPM/DPM_component.hh" #include "DPM/DPM_column.hh" #include "DPM/DPM_time_constraints.hh" /** * This class represents a table. * @author <NAME> */ class DPM_table : public DPM_component { public: /** * Constructor...
521
12,705
{ "public": true, "trailingSlash": true, "redirects": [ { "source": "/about/", "destination": "/community/about/" }, { "source": "/advanced/", "destination": "/guides/" }, { "source": "/advanced/api/", "destination": "/packages/mdx/#api" }, { "...
2,043
1,350
<filename>sdk/sqlvirtualmachine/azure-resourcemanager-sqlvirtualmachine/src/main/java/com/azure/resourcemanager/sqlvirtualmachine/models/package-info.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. /** * P...
186
25,073
<reponame>Nico-du/SpringAll package com.example.demo.runner; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; /** * @author MrBird */ @Component public class HelloCommandLineRunner implements CommandLineRunner { @Override public void run(String... args) { ...
126
60,067
## @package workspace # Module caffe2.python.workspace
15
4,140
/* * 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 ...
555
347
package org.ovirt.engine.ui.common.utils; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.List; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.T...
1,902
875
package com.jeecg.p3.cms.service.impl; import java.util.List; import javax.annotation.Resource; import org.jeecgframework.p3.core.util.oConvertUtils; import org.jeecgframework.p3.core.utils.common.PageList; import org.jeecgframework.p3.core.utils.common.PageQuery; import org.jeecgframework.p3.core.utils.common.PageQ...
1,080
726
<reponame>JSTransformationBenchmarks/deepforge from operations import Operation from typing import Tuple class ExampleOperation(Operation): def execute(hello, world, count): self.myOutput = hello + world return self.myOutput
76
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. package org.chromium.components.browser_ui.photo_picker; import android.content.res.Resources; import android.graphics.Bitmap; import android.os.SystemCl...
2,690
7,158
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html // This code is also subject to the license terms in the LICENSE_WillowGarage.md file found in this module's directory #inclu...
4,190
488
#define W3C_PACKAGE "w3c-libwww" #define W3C_VERSION "5.4.0" #define PACKAGE "w3c-libwww" #define VERSION "5.4.0"
59
1,056
<reponame>arusinha/incubator-netbeans<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...
8,280
1,352
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
2,019
7,567
/* ** $Id: luaconf.h,v 1.259.1.1 2017/04/19 17:29:57 roberto Exp $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ #ifndef luaconf_h #define luaconf_h #include <limits.h> #include <stddef.h> #include <stdint.h> #include <stdbool.h> #include "user_config.h" /* ** ==================================...
5,226
2,210
/* * Copyright 2020-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/LICENSE-2.0 * * Unless required by a...
2,383
335
{ "word": "Actionable", "definitions": [ "Giving sufficient reason to take legal action.", "Able to be done or acted on; having practical value." ], "parts-of-speech": "Adjective" }
83
3,710
<gh_stars>1000+ #include <sstream> /* std::ostringstream */ /* Not use boost at toonz-6.1 */ // #include <boost/shared_array.hpp> /* boost::shared_array<> */ #include "tfxparam.h" #include "stdfx.h" #include "ino_common.h" //------------------------------------------------------------ class ino_channel_selector final ...
4,886
527
<filename>tests/performance/agents/utils/process.py #!/usr/bin/env python3 # Copyright 2020 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...
789
777
<filename>chrome/browser/supervised_user/legacy/supervised_user_registration_utility.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_REGIS...
1,345
510
<reponame>avboy1337/TrustKit-Android package com.datatheorem.android.trustkit.utils; import android.util.Log; import com.datatheorem.android.trustkit.BuildConfig; public final class TrustKitLog { public static void i(String message) { // Disable debug printing for Release build if (BuildConfig.D...
180
313
<filename>kernel/zarch/zaxpy.c<gh_stars>100-1000 /*************************************************************************** Copyright (c) 2017, The OpenBLAS Project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condition...
5,060
330
package chapter_14; import java.util.*; /** * 删除无用代码 * * @author biezhi * @date 2018/9/24 */ public class Example3 { public Map<String, String> readData(){ Map<String, String> result = new HashMap<>(); result.put("title", i18n("title", "cn")); result.put("bannerText", i18n("bannerTex...
224
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,028
427
<gh_stars>100-1000 // RUN: %clangxx_tsan %s -o %t // RUN: not %run %t 2>&1 | FileCheck %s // RUN: %env_tsan_opts=detect_deadlocks=1 not %run %t 2>&1 | FileCheck %s // RUN: %env_tsan_opts=detect_deadlocks=0 %run %t 2>&1 | FileCheck %s --check-prefix=DISABLED // RUN: echo "deadlock:mai...
546
1,338
<gh_stars>1000+ /* * Copyright 2009, <NAME>, <EMAIL>. * Copyright 2008, <NAME>. * Copyright 2004-2010, <NAME>, <EMAIL>. * Copyright 2002-2003, <NAME>. * * Distributed under the terms of the MIT License. */ #ifndef ATA_PRIVATE_H #define ATA_PRIVATE_H #include <ata_types.h> #include <bus/ATA.h> #include <bus/SCS...
4,064
10,016
<reponame>eas5/zaproxy /* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2011 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
1,668
1,514
FUNC(size_t, snd_pcm_hw_params_sizeof, (void)); FUNC(size_t, snd_pcm_sw_params_sizeof, (void)); FUNC(size_t, snd_pcm_info_sizeof, (void)); FUNC(size_t, snd_ctl_card_info_sizeof, (void)); FUNC(int, snd_ctl_card_info, (snd_ctl_t *ctl, snd_ctl_card_info_t *info)); FUNC(int, snd_card_next, (int *card)); FUNC(const char *, ...
2,474
13,458
public class Count { public static void main(String[] args) { for(int i = 1; i <= 10; i++) { System.out.println(i); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } } }
169
363
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='scholarly', version='1.4.3', author='<NAME>, <NAME>, <NAME>, <NAME>', author_email='<EMAIL>, <EMAIL>, <EMAIL>, <EMAIL>', description='Simple access to Google Scholar authors and citations'...
734
614
# 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 applica...
624
479
/** * 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 * distribu...
609
416
<gh_stars>100-1000 package org.simpleflatmapper.jdbc.impl; public class DatabaseMeta { private final String product; private final int majorVersion; private final int minorVersion; public DatabaseMeta(String product, int majorVersion, int minorVersion) { this.product = product; this.m...
443
360
#include "DepthPolicy.h" namespace tzw { DepthPolicy::DepthPolicy() { m_depthTest = RenderFlag::DepthTestMethod::Less; m_enable = true; } bool DepthPolicy::enable() const { return m_enable; } void DepthPolicy::setEnable(bool enable) { m_enable = enable; } RenderFlag::DepthTestMethod DepthPolicy::dept...
172
2,338
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
347
317
<gh_stars>100-1000 #ifndef EDYN_CONSTRAINTS_CONSTRAINT_IMPULSE_HPP #define EDYN_CONSTRAINTS_CONSTRAINT_IMPULSE_HPP #include <array> #include "edyn/config/constants.hpp" namespace edyn { /** * @brief Holds the impulses that have been applied to a constraint in the last * solver update. This information needs to be ...
310
357
<gh_stars>100-1000 /* * Copyright (c) 2012-2015 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * ...
742
1,788
<reponame>jeek120/fingernft package com.fingerchar.controller; import com.alibaba.fastjson.JSON; import com.fingerchar.base.controller.BaseController; import com.fingerchar.domain.FcAdminToken; import com.fingerchar.domain.FcAdminUser; import com.fingerchar.service.*; import com.fingerchar.utils.*; import com.google....
4,261
338
package com.camnter.newlife.ui.activity; import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.os.Build; impor...
6,670
1,431
/* ==================================================================== 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...
987
2,113
<filename>Engine/source/core/util/zip/test/zipTest.h //----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Soft...
1,174
349
<gh_stars>100-1000 package com.ray3k.skincomposer.dialog.scenecomposer.undoables; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposer; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposerModel; public class TextButtonDisabledUndoable implements SceneComposerUndoable { private ...
679
852
<reponame>ckamtsikis/cmssw #include "G4Electron.hh" #include "G4Positron.hh" #include "G4PrimaryParticle.hh" #include "G4PrimaryVertex.hh" #include "G4SDManager.hh" #include "G4Step.hh" #include "G4VProcess.hh" #include "SimG4CMS/Calo/interface/CaloG4HitCollection.h" #include "SimG4Core/Notification/interface/BeginOfE...
3,604
4,436
<filename>cameraview/src/main/java/com/otaliastudios/cameraview/internal/GlTextureDrawer.java package com.otaliastudios.cameraview.internal; import android.opengl.GLES11Ext; import android.opengl.GLES20; import androidx.annotation.NonNull; import com.otaliastudios.cameraview.CameraLogger; import com.otaliastudios.c...
1,173
1,831
<reponame>majra20/LogDevice /** * Copyright (c) 2018-present, Facebook, Inc. and its affiliates. * 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. */ #pragma once #include <mutex> #include "logdevice/common/...
420
629
<gh_stars>100-1000 /* * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "cherrypi.h" #include "common/assert.h" #include "common/rand.h" #include "src/forkserver.h" #include "test.h...
6,183
1,338
/*- * SPDX-License-Identifier: ISC * * Copyright (c) 2002-2009 <NAME>, <NAME> * Copyright (c) 2002-2006 Atheros Communications, Inc. * * 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 p...
6,055
426
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #pragma once #include <vector> #include <map> #include <sstream> #include <string> #include "ifcpp/model/GlobalDefines.h" #include "ifcpp/model/BasicTypes.h" #include "ifcpp/model/BuildingObject.h" #include "IfcGeometricRepresentationContext....
1,044
6,451
<gh_stars>1000+ from great_expectations.core.expectation_configuration import ExpectationConfiguration from great_expectations.expectations.core.expect_column_values_to_be_in_set import ( ExpectColumnValuesToBeInSet, ) from great_expectations.expectations.registry import get_expectation_impl def test_registry_bas...
258
347
<reponame>hbraha/ovirt-engine package org.ovirt.engine.core.common.businessentities.comparators; import java.io.Serializable; import java.util.Comparator; import org.ovirt.engine.core.common.businessentities.VM; public class VmsComparer implements Comparator<VM>, Serializable { private static final long serialVe...
166
892
<reponame>github/advisory-database { "schema_version": "1.2.0", "id": "GHSA-c998-93wx-vqcj", "modified": "2022-05-13T01:09:35Z", "published": "2022-05-13T01:09:35Z", "aliases": [ "CVE-2016-6042" ], "details": "IBM AppScan Enterprise Edition could allow a remote attacker to execute arbitrary code on th...
459
898
/**************************************************************************** Copyright (c) 2012-2013 cocos2d-x.org http://www.cocos2d-x.org 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 withou...
1,724
323
<filename>tests/test_sklearn_glm_regressor_converter.py # SPDX-License-Identifier: Apache-2.0 """Tests GLMRegressor converter.""" import unittest from distutils.version import StrictVersion import numpy from numpy.testing import assert_almost_equal try: # scikit-learn >= 0.22 from sklearn.utils._testing impor...
16,316
1,382
/* * Copyright (c) 2007 - 2015 <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 without limitation the rights * to use, copy, modify, merge, publi...
2,044
940
<gh_stars>100-1000 /* * video_blit.cpp - Video/graphics emulation, blitters * * Basilisk II (C) 1997-2008 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of...
9,057
657
<filename>src/glyph_cache.cpp // Copyright 2016 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //...
4,517
1,398
class MomentumGradientDescent(GradientDescent): def __init__(self, params, lr=0.1, momentum=.9): super(MomentumGradientDescent, self).__init__(params, lr) self.momentum = momentum self.velocities = [torch.zeros_like(param, requires_grad=False) for param in params]...
339
678
// // BuiltInActionController.h // ClipMenu // // Created by <NAME> on 08/03/06. // Copyright 2008 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> extern NSString *const CMBuiltInActionRemove; extern NSString *const CMBuiltInActionPasteAsPlainText; extern NSString *const CMBuiltInActionPasteAsFilePath; e...
280
852
import FWCore.ParameterSet.Config as cms from CommonTools.ParticleFlow.pfNoPileUpIso_cff import pfPileUpIso, pfNoPileUpIso, pfNoPileUpIsoTask from RecoEgamma.EgammaIsolationAlgos.egmIsoConeDefinitions_cfi import IsoConeDefinitions as _IsoConeDefinitions from RecoEgamma.EgammaIsolationAlgos.egmIsolationDefinitions_cff ...
523
1,031
#!/usr/bin/env python3 """ Copyright (c) 2020 Intel 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...
7,975
1,459
<filename>tests/Handler/PhpFpm/alb-query-string-mixed-encoding.json { "requestContext": { "elb": { "targetGroupArn": "arn:aws:elasticloadbalancing:eu-west-1:000000000000:targetgroup/my-target-0000000000000/7aae1aad13b5638f" } }, "httpMethod": "GET", "path": "/widgets/report/another-report", "que...
719
454
<reponame>zwkjhx/vertx-zero package cn.originx.uca.graphic; import cn.originx.refine.Ox; import io.vertx.core.Future; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; public class NodeAddPixel extends AbstractPixel { public NodeAddPixel(final String identifier) { super(identifie...
249
685
#include <vector> #include <string> #include <string_view> #include <stdio.h> #include <Lemon/System/Util.h> #include <lemon/syscall.h> #include <Lemon/GUI/WindowServer.h> const char* normalColour = "\e[0m"; const char* accentColour = "\e[0m\e[33m"; std::vector<const char*> icon { " ,g@@@@@@@@@@@@...
2,357
348
{"nom":"Saint-Germain-du-Pinel","circ":"5ème circonscription","dpt":"Ille-et-Vilaine","inscrits":665,"abs":375,"votants":290,"blancs":6,"nuls":1,"exp":283,"res":[{"nuance":"LR","nom":"Mme <NAME>","voix":164},{"nuance":"REM","nom":"Mme <NAME>","voix":119}]}
105
561
<gh_stars>100-1000 import torch from torch import nn from modules.commons.layers import LayerNorm import torch.nn.functional as F class DurationPredictor(torch.nn.Module): def __init__(self, idim, n_layers=2, n_chans=384, kernel_size=3, dropout_rate=0.1, offset=1.0): super(DurationPredictor, self).__init...
2,179
5,766
// // DOMImplementation.h // // Library: XML // Package: DOM // Module: DOM // // Definition of the DOM DOMImplementation class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef DOM_DOMImplementation_INCLUDED #define ...
672