max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,444
package mage.cards.t; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.SacrificeTargetCost; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.effects.common.turn.AddExtraTurnControllerEffect; import mage...
435
892
<reponame>github/advisory-database { "schema_version": "1.2.0", "id": "GHSA-fcvh-7h6p-x524", "modified": "2022-05-17T03:17:05Z", "published": "2022-05-17T03:17:05Z", "aliases": [ "CVE-2015-4537" ], "details": "Lockbox in EMC Documentum D2 before 4.5 uses a hardcoded passphrase when a server lacks a D2...
424
416
<filename>sfm-reflect/src/main/java/org/simpleflatmapper/reflect/meta/IndexedColumn.java package org.simpleflatmapper.reflect.meta; public class IndexedColumn { private final int indexValue; private final String indexProperty; private final PropertyNameMatcher subPropertyNameMatcher; private final int...
480
4,391
# This sample tests that an unbound variable that is generated in # a function does not propagate beyond that function to callers. from typing import Literal def func1(): # This should generate an error return a # This should not. b = func1() tb1: Literal["Unknown"] = reveal_type(b) def func2(val: int):...
165
892
<filename>advisories/unreviewed/2022/05/GHSA-622x-gpp9-6rc3/GHSA-622x-gpp9-6rc3.json { "schema_version": "1.2.0", "id": "GHSA-622x-gpp9-6rc3", "modified": "2022-05-13T01:24:43Z", "published": "2022-05-13T01:24:43Z", "aliases": [ "CVE-2016-5340" ], "details": "The is_ashmem_file function in drivers/sta...
755
930
<filename>src/point_cloud.cpp // Copyright 2017-2019, <NAME> and the Polyscope contributors. http://polyscope.run. #include "polyscope/point_cloud.h" #include "polyscope/file_helpers.h" #include "polyscope/pick.h" #include "polyscope/polyscope.h" #include "polyscope/render/engine.h" #include "polyscope/point_cloud_co...
4,306
496
# -*- coding: utf-8 -*- import moment from .Config import g_conf class Metadata(dict): """Metadata 文章以及页面的元数据 """ def __init__(self, fr): dict.__init__({}) self["title"] = str(fr.get("title", "")) self["slug"] = str(fr.get("slug", self["title"])) self["date"] = moment.da...
490
2,177
<gh_stars>1000+ /** * */package org.nutz.mvc.filter;
26
930
<filename>scripts/txtool/txtool/__init__.py from util import * from check import * from compile import * from tx_count import get_transaction_count __all__ = ['util', 'check', 'compile', 'generate_account', 'tx_count']
71
6,210
/* * 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,577
3,301
<gh_stars>1000+ package com.alibaba.alink.params.classification; /** * parameters of logistic regression predictor. */ public interface LogisticRegressionPredictParams<T> extends LinearModelMapperParams <T> { }
64
4,816
<filename>include/retdec/fileformat/types/visual_basic/visual_basic_structures.h /** * @file include/retdec/fileformat/types/visual_basic/visual_basic_structures.h * @brief Visual basic metadata structures. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_FILEFORMAT_TYPES_VISU...
4,731
340
<reponame>cloudnoize/concord-bft<filename>bftengine/src/bftengine/ClientsManager.hpp<gh_stars>100-1000 // Concord // // Copyright (c) 2018-2021 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in // compliance with...
4,058
1,144
package de.metas.payment.paypal; import java.net.URL; import org.adempiere.ad.trx.api.ITrxManager; import org.adempiere.exceptions.AdempiereException; import org.adempiere.service.IClientDAO; import org.compiere.model.I_C_Order; import org.springframework.stereotype.Service; import com.google.common.annotations.Visi...
4,362
417
package de.delbrueg.predictor.position; import javax.vecmath.Point2d; import de.delbrueg.math.Circle; import de.delbrueg.math.Line; import de.janquadflieg.mrracer.Utils; /** * This is the resurrection of CenterCircleTargetPositionPredictor. * Now its better because we use the step_size given from the plan module, s...
715
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
762
921
//-***************************************************************************** // // Copyright (c) 2009-2012, // Sony Pictures Imageworks Inc. and // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. // // All rights reserved. // // Redistribution and use in source and binary forms, with ...
3,994
721
<reponame>gaybro8777/nucleus # 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 by applicable ...
1,858
320
import random import string def randomword(length: int) -> str: """Return a random word of specified length.""" letters = string.ascii_lowercase return "".join(random.choice(letters) for _ in range(length))
69
357
<filename>vmdir/include/vmdircommon_schema.h /* * Copyright © 2016 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/LICE...
7,290
311
<filename>test-ports/default/lang/python37/files/patch-Modules_posixmodule.c # Add closefrom(2) support # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274 # https://bugs.python.org/issue38061 # TODO: Upstream --- Modules/posixmodule.c.orig 2019-10-14 22:32:36 UTC +++ Modules/posixmodule.c @@ -7810,8 +7810,16 @...
409
6,098
package water.api.schemas3; import water.Iced; import water.api.API; public class RemoveV3 extends RequestSchemaV3<Iced, RemoveV3> { @API(help="Object to be removed.") public KeyV3 key; @API(help="If true, removal operation will cascade down the object tree.", direction = API.Direction.INPUT) public boolean...
107
471
package com.dtflys.test.http.model; import com.alibaba.fastjson.annotation.JSONField; public class JsonTestUser2 { private String Username; @JSONField(name = "Username") public String getUsername() { return Username; } public void setUsername(String username) { Username = userna...
123
2,542
<filename>src/prod/src/ServiceModel/ReplicasHealthEvaluation.h // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // -----------------------------...
1,044
72,551
<gh_stars>1000+ @import Foundation; typedef NS_ENUM(NSInteger, BackgroundActivityResult) { BackgroundActivityResultFinished = 1, BackgroundActivityResultDeferred = 2, }; typedef void (^BackgroundActivityCompletionHandler)(BackgroundActivityResult result); @interface BackgroundActivityScheduler : NSObject - (...
115
14,668
<gh_stars>1000+ // 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. #include "android_webview/browser/aw_download_manager_delegate.h" #include "android_webview/browser/aw_content_browser_client.h" #inc...
564
785
<gh_stars>100-1000 package kafka.streams.table.join; import java.util.Map; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.common.serialization.Serde; import org.apache.kafka.common.serialization.StringSerializer; import org.junit.Af...
1,142
1,444
<reponame>FateRevoked/mage<filename>Mage.Tests/src/test/java/org/mage/test/cards/copy/DeceiverOfFormTest.java package org.mage.test.cards.copy; import mage.constants.PhaseStep; import mage.constants.Zone; import mage.filter.Filter; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** ...
655
1,104
<reponame>Zorghts/roll20-character-sheets { "html": "thesprawl_sheet.html", "css": "thesprawl_style.css", "authors": "<NAME>, <NAME>", "roll20userid": "209786, 95207", "preview": "Screenshot1.png", "instructions": "A modified version of the base Sprawl character sheet by <NAME>. This version includes elemen...
139
923
import argparse import random import torch from torch import nn, optim from torch.utils.data import DataLoader from torchvision.transforms import transforms from dataset import LiverDataset from unet import Unet # 是否使用cuda device = torch.device("cuda" if torch.cuda.is_available() else "cpu") x_transforms = transfor...
1,714
1,615
/** * Created by MomoLuaNative. * Copyright (c) 2019, Momo Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. */ package org.luaj.vm2; import android.util.LongSp...
1,835
877
from .shim import * if QT_AVAILABLE: from .util import * from .waitbox import WaitBox
37
304
<filename>apps/app4_links/views.py # coding: utf-8 """ We will use most views from the previous app. """ from django.shortcuts import render from django.urls import reverse def index(request): # reverse() can take a route name (and optionally, url parameters), # and return the proper URL based on all u...
157
578
<filename>src/gfx-pbr/PipelinePbr.h // Copyright (c) 2019 <NAME> <EMAIL> // This software is provided 'as-is' under the zlib License, see the LICENSE.txt file. // This notice and the license may not be removed or altered from any source distribution. #pragma once #ifndef TWO_MODULES #include <stl/table.h> #include...
1,190
580
/** * Copyright 2012, Big Switch Networks, Inc. * Originally created by <NAME>, Big Switch Networks * * 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.apa...
431
2,603
/* ---------------------------------------------------------------------------- * SAM Software Package License * ---------------------------------------------------------------------------- * Copyright (c) 2014, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and bi...
1,979
2,231
<reponame>SwampertX/FStar<filename>examples/low-level/old/huffman/ocaml/huffman_ffi.c<gh_stars>1000+ #include <caml/memory.h> #include <caml/fail.h> #include "camlstack.h" #include "stack.h" static value empty_string = (value)0; CAMLprim value stack_mknode(value v1, value v2, value v3, value v4, value v5) { CAMLpar...
507
459
<reponame>dimitri-justeau/choco-solver /* * This file is part of choco-solver, http://choco-solver.org/ * * Copyright (c) 2021, IMT Atlantique. All rights reserved. * * Licensed under the BSD 4-clause license. * * See LICENSE file in the project root for full license information. */ package org.chocosolver.solv...
389
412
package temp; class A { int toint() { return 123456; } }
32
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-f8wp-q2v8-9hc2", "modified": "2022-01-27T00:03:11Z", "published": "2022-01-20T00:00:23Z", "aliases": [ "CVE-2021-33912" ], "details": "libspf2 before 1.2.11 has a four-byte heap-based buffer overflow that might a...
623
637
<gh_stars>100-1000 /* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., <NAME>, * <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, in...
2,003
569
<filename>app/src/main/java/com/anarchy/classifyview/ContentActivity.java package com.anarchy.classifyview; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.helper.ItemTouchHel...
757
14,668
<reponame>zealoussnow/chromium // 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. #include "printing/printer_status.h" namespace printing { PrinterStatus::PrinterStatus() = default; PrinterStatus::Print...
129
3,897
<reponame>pradeep-gr/mbed-os5-onsemi /** * @file * @brief Registers, Bit Masks and Bit Positions for the PMU module. */ /* **************************************************************************** * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. * * Permission is hereby granted, free ...
4,799
641
/********************************************************************* * SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * ...
1,910
1,089
/* Copyright 2011, 2015 Pixplicity, Larva Labs LLC and Google, 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 r...
3,276
634
<filename>zentral/contrib/monolith/migrations/0029_auto_20170919_1521.py # -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-09-19 15:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('monolith', '0028_au...
301
1,056
<filename>ide/subversion/test/qa-functional/src/org/netbeans/test/subversion/operators/MergeTwoRepoOperator.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 copyrigh...
6,570
6,044
<filename>cme/protocols/mssql/db_navigator.py from cme.helpers.misc import validate_ntlm from cme.cmedb import DatabaseNavigator class navigator(DatabaseNavigator): def display_creds(self, creds): data = [['CredID', 'Admin On', 'CredType', 'Domain', 'UserName', 'Password']] for cred in creds: ...
3,338
13,111
/* * 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 ...
1,787
440
{ "test_on_lines_delete": [ { "input": "hello-world.txt", "expected": "hello-world_on_lines_ending_with_o_or_d_delete_o.txt", "command": ["on", "lines", "ending", "with", "(o|d)", "delete", "o"] } ], "test_on_lines_replace": [ { "input": "hello-world.txt", "expected": "he...
555
9,156
<reponame>turtlequeue/pulsar /** * 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, Versio...
635
348
{"nom":"Saint-Laurent-du-Var","circ":"6ème circonscription","dpt":"Alpes-Maritimes","inscrits":23185,"abs":14222,"votants":8963,"blancs":936,"nuls":0,"exp":8027,"res":[{"nuance":"LR","nom":"<NAME>","voix":4578},{"nuance":"MDM","nom":"<NAME>","voix":3449}]}
106
1,425
<filename>gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/verification/ComputerVerificationStrategyTest.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 in...
1,454
336
<gh_stars>100-1000 from .tasks import task_deindex_instance, task_index_instance def handler_factory_deindex_instance(search_model): def handler_deindex_instance(sender, **kwargs): instance = kwargs['instance'] task_deindex_instance.apply_async( kwargs={ 'app_label': ...
976
381
<gh_stars>100-1000 package com.tngtech.jgiven.example.projects.testng; import com.tngtech.jgiven.Stage; import com.tngtech.jgiven.annotation.ScenarioState; class WhenStage extends Stage<WhenStage> { @ScenarioState(required = true) String message; @ScenarioState String result; public void handle_...
141
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
6,794
407
<reponame>iuskye/SREWorks package com.alibaba.tesla.authproxy.model.mapper; import com.alibaba.tesla.authproxy.model.RoleMenuRelDO; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * <p>Title: RoleMenuRelMapper.java</p> * <p>Description: 角色菜单关系数据访问接口 </p> * <p>Copyright: Copyright (c) 2017<...
408
14,668
<filename>chrome/browser/extensions/blocklist_unittest.cc // Copyright 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. #include "chrome/browser/extensions/blocklist.h" #include "base/bind.h" #include "base/run_loop...
2,521
1,127
// // KSWebSocketConfigure.h // ZeroShare // // Created by saeipi on 2018/8/29. // Copyright © 2018年 saeipi. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger,KSWebSocketStatus) { KSWebSocketStatusNone = 0,//默认/关闭 KSWebSocketStatusConnecting,//连接中 KSWebSocketStatusConn...
929
678
<reponame>bzxy/cydia /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/WebKit.framework/WebKit */ #import <WebKit/XXUnknownSuperclass.h> @class WebNodeHighlight, WebView; __attribute__((visibility("hidden"))) @interface WebNodeHighlighter : XXUnknownSuperclass { @...
279
347
<filename>backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetVmCheckpointByIdQuery.java<gh_stars>100-1000 package org.ovirt.engine.core.bll; import javax.inject.Inject; import org.ovirt.engine.core.bll.context.EngineContext; import org.ovirt.engine.core.common.businessentities.VmCheckpoint; import...
391
389
/***************************** Include Files *******************************/ #include "ddynclk.h" #include "xil_types.h" /* Back-ported from Linux driver */ #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) #define CLK_BIT_WEDGE 13 #define CLK_BIT_NOCOUNT 12 /* This value is used to signal an error */ #define ER...
5,297
763
<filename>projects/batfish/src/main/java/org/batfish/representation/cisco/IpBgpPeerGroup.java package org.batfish.representation.cisco; import javax.annotation.Nullable; import org.batfish.datamodel.Ip; import org.batfish.datamodel.Prefix; import org.batfish.datamodel.Prefix6; public class IpBgpPeerGroup extends Leaf...
275
4,234
<gh_stars>1000+ #pragma once #include <mbgl/util/size.hpp> #include <mbgl/gfx/backend.hpp> namespace mbgl { namespace gfx { class RendererBackend; } // namespace gfx } // namespace mbgl struct GLFWwindow; class GLFWBackend { public: explicit GLFWBackend() = default; GLFWBackend(const GLFWBackend&) = delete;...
301
777
<reponame>google-ar/chromium #!/usr/bin/python # # 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. """Compute global objects. Global objects are defined by interfaces with [Global] or [PrimaryGlobal] on the...
1,456
1,080
<filename>ext/rugged/rugged_diff_hunk.c /* * Copyright (C) the Rugged contributors. All rights reserved. * * This file is part of Rugged, distributed under the MIT license. * For full terms see the included LICENSE file. */ #include "rugged.h" extern VALUE rb_cRuggedDiff; VALUE rb_cRuggedDiffHunk; VALUE rugge...
1,146
1,062
/** * Copyright 2014 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 * * Unless requir...
4,201
442
#include <ros/ros.h> #include <std_msgs/Int32.h> // <1> int main(int argc, char **argv) { ros::init(argc, argv, "count_publisher"); ros::NodeHandle node; ros::Publisher pub = node.advertise<std_msgs::Int32>("counter", 10); // <2> ros::Rate rate(1); // <3> int count = 0; while (ros::ok()) { // <4> ...
216
14,668
// 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 "components/domain_reliability/dispatcher.h" #include <memory> #include <utility> #include "base/bind.h" #include "base/callback.h" #include "b...
1,494
1,355
<reponame>PavelBlend/fluid-engine-dev // Copyright (c) 2019 <NAME> // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #include "marching_cubes.h" #include "pybind11_utils.h" #include <je...
495
11,393
package com.interview.tree; /** * Date 05/04/2016 * @author <NAME> * * Lowest common ancestor in binary search tree. * * Time complexity O(height of tree) * Space complexity O(height of tree) * * https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/ */ public class LowestCommonAncest...
279
2,350
import os import os.path as osp import re import torch from torch_geometric.data import InMemoryDataset, download_url, extract_gz from torch_geometric.utils import from_smiles class MoleculeNet(InMemoryDataset): r"""The `MoleculeNet <http://moleculenet.ai/datasets-1>`_ benchmark collection from the `"Molec...
2,343
370
<gh_stars>100-1000 /* * Copyright (c) 2015-2018 Dubalu LLC * * 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,...
979
2,329
<filename>testdata/src/main/java/data/SimpleClassCaller.java package data; public class SimpleClassCaller { public void m() { SimpleClass sc = new SimpleClass(); sc.foo(); } }
64
336
#include "library.h" #undef IMPORT #define IMPORT(local, remote, ret, args) ret local args IMPORT(Test1, , void, ()) {} IMPORT(Test2, , void, ()) {} IMPORT(Test3, , void, ()) {} IMPORT(Test4, , void, ()) {} IMPORT(PutPixel, BIOS::LCD::PutPixel, void, (int a, int b, ui16 c)) {} IMPORT(Print, BIOS::LCD::Print...
234
16,461
#import <Foundation/Foundation.h> #import <QuartzCore/QuartzCore.h> #import "ABI42_0_0RNSVGLength.h" #ifndef ABI42_0_0RNSVGPropHelper_h #define ABI42_0_0RNSVGPropHelper_h @interface ABI42_0_0RNSVGPropHelper : NSObject + (CGFloat) fromRelativeWithNSString:(NSString *)length relative:(CGFloa...
330
953
/*! @file */ /* Copyright (C) 2021, Sakura Editor Organization 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 purpose, inc...
974
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // #if !defined(KRATOS_DISTRIBUTE_LOAD_ON...
913
5,169
<gh_stars>1000+ { "name": "GJHGallop", "version": "0.0.12", "summary": "GJHGallop is add pods from Gallop", "description": "TODO: Add long description of the pod here.", "homepage": "https://github.com/JohnYuGit/GJHGallop", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "JohnY...
488
14,668
<filename>base/memory/memory_pressure_monitor.cc // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/memory/memory_pressure_monitor.h" #include "base/check.h" #include "base/metrics/histogra...
241
897
def sort012(arr,n): listofZero = [] listofOne = [] listofTwo = [] for i in range(0,n): if arr[i] == 0: listofZero.append(0) elif arr[i] == 1: listofOne.append(1) else: listofTwo.append(2) Total = listofZero+listofOne+listofTwo return ...
286
825
<reponame>jiangkang/Hummer<filename>iOS/Hummer/Classes/Core/Manager/ImageLoader/HMURLConvertible.h // // HMURLConvertible.h // Hummer // // Created by didi on 2020/11/16. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol HMURLConvertible <NSObject> - (nullable NSURL *)hm_asUrl; - (nullable NS...
168
19,127
<reponame>pmesnier/openssl<filename>crypto/evp/legacy_mdc2.c /* * Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the ...
405
577
// // ArticleCell.h // PlainReader // // Created by guojiubo on 14-3-28. // Copyright (c) 2014年 guojiubo. All rights reserved. // #import <UIKit/UIKit.h> #import "PRArticle.h" #import "PRTableViewCell.h" @interface PRArticleCell : PRTableViewCell @property (nonatomic, weak) PRArticle *article; @end
117
1,826
<reponame>niklasf/flexmark-java package com.vladsch.flexmark.ext.xwiki.macros; import com.vladsch.flexmark.ext.xwiki.macros.internal.MacroBlockParser; import com.vladsch.flexmark.ext.xwiki.macros.internal.MacroInlineParser; import com.vladsch.flexmark.ext.xwiki.macros.internal.MacroNodeRenderer; import com.vladsch.fle...
715
905
<filename>malwareconfig/decoders/Xtreme.py from malwareconfig import crypto from malwareconfig.common import Decoder from malwareconfig.common import string_printable from binascii import hexlify, unhexlify # temp imports import re from struct import unpack class Xtreme(Decoder): decoder_name = "Xtreme" deco...
4,439
1,993
<gh_stars>1000+ /* * Copyright 2013-2020 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
848
2,151
// 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. #include "content/browser/geolocation/geolocation_service_impl.h" #include "content/browser/permissions/permission_controller_impl.h" #include "content/p...
1,267
460
<reponame>heatedcpu/webkettle package org.flhy.ext.job.steps; import com.mxgraph.model.mxCell; import com.mxgraph.util.mxUtils; import org.flhy.ext.core.PropsUI; import org.flhy.ext.job.step.AbstractJobEntry; import org.flhy.ext.utils.JSONArray; import org.flhy.ext.utils.JSONObject; import org.pentaho.di.core.database...
916
2,180
/* * This file is part of the Heritrix web crawler (crawler.archive.org). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with *...
1,950
892
<reponame>github/advisory-database<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-4pgc-f487-53cr", "modified": "2022-05-13T01:53:07Z", "published": "2022-05-13T01:53:07Z", "aliases": [ "CVE-2018-6552" ], "details": "Apport does not properly handle crashes originating from a PID namespace a...
678
435
{ "category": "DjangoCon 2014", "copyright_text": "", "description": "", "duration": 1466, "id": 4795, "language": "eng", "quality_notes": "", "recorded": "2014-09-16", "related_urls": [ "http://amara.org/v/FOPU/" ], "slug": "geo-django-geo-beyond-the-django", "speakers": [ "<NAME>" ],...
411
369
<reponame>bitigchi/MuditaOS // Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "DatabaseModel.hpp" #include "Application.hpp" #include "ListItemProvider.hpp" #include "Common/Query.hpp" #include "Interface/Threa...
451
1,319
<reponame>zhangyimi/Research # *_*coding:utf-8 *_* """ import """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import import json import logging import paddle.fluid as fluid import ...
6,141
456
<reponame>erlong16/react-native<gh_stars>100-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. */ #include "NodeStateWrapper.h" #include <fbjni/fbjni.h> #include <react/jni/Readab...
411
1,109
<reponame>qiquanzhijia/gryphon<gh_stars>1000+ import functools from delorean import Delorean from gryphon.lib.logger import get_logger logger = get_logger(__name__) from gryphon.lib.session import get_a_memcache_connection def _localcache_get(localcache, key): result = localcache.get(key) if not result: ...
987
524
{ "title": "Datastore Admin", "defaultService": "datastoreadmin\/readme", "services": [ { "title": "Overview", "type": "datastoreadmin\/readme" }, { "title": "DatastoreAdminClient", "type": "datastoreadmin\/v1/datastoreadminclient" } ...
188
348
{"nom":"<NAME>","circ":"1ère circonscription","dpt":"Oise","inscrits":126,"abs":46,"votants":80,"blancs":0,"nuls":0,"exp":80,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":45},{"nuance":"REM","nom":"<NAME>","voix":13},{"nuance":"FN","nom":"Mme <NAME>","voix":12},{"nuance":"RDG","nom":"Mme <NAME>","voix":4},{"nuance":"F...
252
5,865
<filename>common/src/test/java/com/thoughtworks/go/domain/ArtifactPlanTest.java /* * Copyright 2021 ThoughtWorks, 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://ww...
2,579