max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
446
package indi.liyi.viewer.otherui; import android.content.Context; import android.view.View; import android.view.ViewGroup; /** * 加载进度视图基类 */ public abstract class ProgressUI { private View progressView; /** * 创建加载进度视图 */ public abstract View createView(Context context); /** * 处理进度 ...
467
347
#if USE_UIKIT_PUBLIC_HEADERS || !__has_include(<UIKitCore/UIBarButtonItemGroup.h>) // // UIBarButtonItemGroup.h // UIKit // // Copyright (c) 2014-2017 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIBarButtonItem.h> NS_ASSUME_NONNULL_BEGIN NS_CLASS_AVAILABLE_IOS(9_0) @interfa...
721
469
# COLORS GRAY = "rgb(117,117,117)" LIGHT_GRAY = "rgb(224,224,224)" RED = "rgb(217, 46, 28)" TEAL = "rgb(20, 152, 181)" BLUE = "rgb(100, 143, 255)" ORANGE = "rgb(254, 97, 0)" PINK = "rgb(220, 38, 127)" YELLOW = "rgb(255, 176, 0)" PURPLE = "rgb(120, 94, 240)" # NAMED COLORS REFERENCE = GRAY FADED = LIGHT_GRAY THRESHOLD...
433
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Convey", "definitions": [ "Transport or carry to a place.", "Make (an idea, impression, or feeling) known or understandable.", "Communicate (a message or information)", "Transfer the title to (property)" ], "parts-of-speech": "...
133
412
<filename>jbmc/regression/jbmc-concurrency/get-current-thread/A.java import java.lang.Thread; import org.cprover.CProver; public class A { public static int g; // expected verification success public void me() { int g = CProver.getCurrentThreadId(); assert(g == 0); } // expected verification succ...
802
1,038
package org.dataalgorithms.chap11.projection.secondarysort; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.FileInputFormat; import org.apache.hadoop.mapred.FileOutputFormat; import org.apache.hadoop.mapred.TextInputFormat...
1,314
778
<filename>tuplex/utils/src/Field.cc //--------------------------------------------------------------------------------------------------------------------// // // // Tu...
6,791
1,283
<filename>hikyuu/admin/service/config.py # -*- coding: utf-8 -*- from PyQt5 import QtCore server_api_config = { "protocol": "http", "prefix": "hku", "version": "v1", } def getserviceUrl(host_url, port, service, api): return "{}://{}:{}/{}/{}/{}/{}".format( server_api_config["protocol"], host...
354
809
<reponame>nikitavlaev/embox<filename>src/arch/xen/ipl.h /** * @file * @brief * * @author <NAME> * @date 18.03.2018 */ #ifndef XEN_IPL_H_ #define XEN_IPL_H_ #ifndef __ASSEMBLER__ typedef unsigned char __ipl_t; extern void ipl_init(void); extern __ipl_t ipl_save(void); extern void ipl_restore(__ipl_t ipl); ...
180
496
<gh_stars>100-1000 /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"...
750
25,360
<reponame>linzhaojia77/jeecg-boot<gh_stars>1000+ package org.jeecg.common.util; import org.apache.commons.lang3.StringUtils; import org.springframework.web.util.HtmlUtils; /** * HTML 工具类 */ public class HTMLUtils { /** * 获取HTML内的文本,不包含标签 * * @param html HTML 代码 */ public static String g...
422
370
[ { "role": "WRITER", "userByEmail": "<EMAIL>" }, { "role": "OWNER", "groupByEmail": "<EMAIL>" } ]
65
483
package org.yczbj.ycrefreshviewlib.view; import android.support.v7.util.DiffUtil; import java.util.List; public class DiffCallBack<T> extends DiffUtil.Callback { /** * 分别是旧数据和新数据集合,这里使用泛型 */ private List<T> oldList , newList; public DiffCallBack(List<T> oldList , List<T> newList){ thi...
621
1,064
<gh_stars>1000+ # -*- coding:utf-8 -*- import requests, os from configparser import RawConfigParser from base64 import b64encode from traceback import format_exc from json import loads from os.path import exists # 检查“演员头像”文件夹是否就绪 if not exists('演员头像'): input('\n“演员头像”文件夹丢失!请把它放进exe的文件夹中!\n') # 读取配置文件,这个ini文件用来给用户设...
2,852
575
<filename>extensions/test/test_background_page_ready_observer.cc<gh_stars>100-1000 // 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 "extensions/test/test_background_page_ready_observer.h" #incl...
819
2,151
<reponame>oz90210/blackmamba<gh_stars>1000+ """Optional fixer that changes all unprefixed string literals "..." to b"...". br'abcd' is a SyntaxError on Python 2 but valid on Python 3. ur'abcd' is a SyntaxError on Python 3 but valid on Python 2. """ from __future__ import unicode_literals import re from lib2to3.pgen2...
308
1,338
/* * Copyright 2009-2010, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include <slab/Slab.h> #include <stdlib.h> #include <new> struct ObjectCache { ObjectCache(const char *name, size_t objectSize, size_t alignment, size_t maxByteUsage, uint32 flags, void *cookie, object_cache_con...
794
529
<filename>include/hipSYCL/sycl/libkernel/atomic.hpp<gh_stars>100-1000 /* * This file is part of hipSYCL, a SYCL implementation based on CUDA/HIP * * Copyright (c) 2018 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
3,815
1,682
/* Copyright (c) 2012 LinkedIn Corp. 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...
2,669
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once #include <sal.h>...
166
2,831
<reponame>189569400/ClickHouse #ifndef BOOST_TYPE_TRAITS_COPY_CV_HPP_INCLUDED #define BOOST_TYPE_TRAITS_COPY_CV_HPP_INCLUDED // // Copyright 2015 <NAME> // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #...
382
977
<reponame>pedropbazzo/graphql-spqr package io.leangen.graphql.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import io.leangen.graphql.execution.TypeRes...
171
1,143
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-28 15:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Activ...
1,077
507
<gh_stars>100-1000 /* * file './font-bin/dtk_erso_2__8x8.bin', filesize 1024bytes, linewidth=8bytes * array created from bin-file by bin2header * bin2header (c) 2013 <NAME>, <<EMAIL>> * */ uint8_t dtk_erso_2__8x8[1024] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x81, 0xa5, 0x81, 0xa5, 0xbd, 0x81...
4,855
10,225
<filename>integration-tests/oidc/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationInGraalITCase.java package io.quarkus.it.keycloak; import io.quarkus.test.junit.NativeImageTest; @NativeImageTest public class BearerTokenAuthorizationInGraalITCase extends BearerTokenAuthorizationTest { }
103
2,293
#!/usr/bin/python # # Copyright (C) 2007, 2009 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 required by applicabl...
4,338
348
<filename>docs/data/leg-t2/040/04002181.json {"nom":"Messanges","circ":"2ème circonscription","dpt":"Landes","inscrits":853,"abs":369,"votants":484,"blancs":20,"nuls":9,"exp":455,"res":[{"nuance":"REM","nom":"<NAME>","voix":318},{"nuance":"FI","nom":"<NAME>","voix":137}]}
108
977
<filename>Sources/Utils/Delegate.hpp #pragma once #include <algorithm> #include <functional> #include <memory> #include <mutex> #include "ConstExpr.hpp" #include "NonCopyable.hpp" namespace acid { template<typename> class Delegate; class ACID_EXPORT Observer { public: Observer() : valid(std::make_shared<bool>(tr...
2,056
811
from recipe_scrapers.headbangerskitchen import HeadbangersKitchen from tests import ScraperTest class TestHeadbangersKitchenScraper(ScraperTest): scraper_class = HeadbangersKitchen def test_host(self): self.assertEqual("headbangerskitchen.com", self.harvester_class.host()) # def test_canonical_...
984
3,461
<filename>src/ui/ContactsModel.cpp /* Ricochet - https://ricochet.im/ * Copyright (C) 2014, <NAME> <<EMAIL>> * * 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 t...
2,045
1,863
<reponame>gongyiling/PhysX-3.4 // // 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 disclaime...
1,128
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.netapp.implementation; import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourceman...
1,696
5,519
#!/usr/bin/python # Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. import sys #============================================================ #Connect To AdminServer and create Analytics Connection #==============...
240
940
<filename>BasiliskII/src/main.cpp /* * main.cpp - Startup/shutdown code * * 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 the...
2,329
370
<reponame>luoyongheng/dtslam<filename>3rdparty/suitesparse-metis-for-windows-1.2.1/SuiteSparse/COLAMD/SourceWrappers/colamd.c #include <../Source/colamd.c>
66
2,151
<filename>third_party/blink/renderer/platform/fonts/shaping/shaping_line_breaker.h<gh_stars>1000+ // 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. #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_SHAPIN...
1,907
575
<filename>content/browser/background_sync/background_sync_registration_helper.cc // 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. #include "content/browser/background_sync/background_sync_registration_he...
1,199
6,989
#ifdef USE_PYTHON3 #include <contrib/python/numpy/py3/numpy/f2py/src/fortranobject.h> #else #include <contrib/python/numpy/py2/numpy/f2py/src/fortranobject.h> #endif
77
5,169
<gh_stars>1000+ { "name": "GMJKFunction", "version": "0.6.0", "summary": "国民集团 独立功能集成", "description": "TODO: Add long description of the pod here.", "homepage": "http://119.3.60.230/IOS", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "满聪": "<EMAIL>" }, "source": { "g...
1,087
335
{ "word": "Ministerial", "definitions": [ "Relating to a government minister or ministers.", "Relating to a minister of religion.", "Relating to or entrusted with the execution of the law or the commands of a superior." ], "parts-of-speech": "Adjective" }
107
721
/* * Copyright (C) 2012 Sony Mobile Communications AB * * This file is part of ApkAnalyser. * * 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/LIC...
3,930
416
<filename>webkit/Page.py from .wkutils import Command def reload(): command = Command('Page.reload', {}) return command
42
5,169
<gh_stars>1000+ { "name": "BaiduMapKit", "version": "6.2.0", "summary": "百度地图iOS SDK(CocoaPods百度地图官方库)", "description": "百度地图iOS SDK:百度地图官方CocoaPods.\n百度地图iOS SDK是一套基于iOS 8.0及以上版本设备的应用程序接口,不仅提供展示地图的基本接口,还提供POI检索、路径规划、地图标注、离线地图、步骑行导航等丰富的LBS能力。", "homepage": "http://developer.baidu.com/map/index.php?title=iossd...
1,702
3,477
// Copyright Microsoft and Project Verona Contributors. // SPDX-License-Identifier: MIT #include "process_sandbox/platform/platform.h" using namespace sandbox::platform; int main(void) { auto sp = SocketPair::create(); int i = 42; SANDBOX_INVARIANT( write(sp.first.fd, &i, sizeof(i)) == sizeof(i), "Write fai...
299
455
<filename>ios/Classes/CompressListHandler.h // // CompressListHandler.h // flutter_image_compress // // Created by cjl on 2018/9/8. // #import <Foundation/Foundation.h> @interface CompressListHandler : NSObject - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result; @end
105
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...
4,666
344
<filename>ASM/c/weather.h #ifndef WEATHER_H #define WEATHER_H void override_weather_state(); #endif
41
446
<gh_stars>100-1000 import argparse import requests import json from stix2 import MemoryStore, Filter import random def generate(): """parse the STIX on MITRE/CTI and return a layer dict with techniques with randomized scores""" # import the STIX data from MITRE/CTI stix = requests.get("https://raw.githubus...
770
2,706
<gh_stars>1000+ /* Copyright (c) 2013-2015 <NAME> * * 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/. */ #pragma once #include <QColor> #include <QWidget> #include <Q...
310
503
package com.smartisanos.sidebar.view; import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.content.Context; import android.content.res.Resources; import android.view.View; import android.widget.ImageView; import com.smartisanos.sidebar.R; imp...
7,647
395
// Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/ #pragma once #ifdef __cplusplus #define ZT_API extern "C" #else #define ZT_API #endif typedef struct PitchTracker *PitchTrackerRef; ZT_API PitchTrackerRef ztPitchTrackerCreate(unsigned int sampleRate, int hopSize, i...
189
15,577
<gh_stars>1000+ #include <Core/SortDescription.h> #include <Core/Block.h> #include <IO/Operators.h> #include <Common/JSONBuilder.h> namespace DB { void dumpSortDescription(const SortDescription & description, const Block & header, WriteBuffer & out) { bool first = true; for (const auto & desc : description) ...
817
1,125
<reponame>ZenMX/elasticsearch /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License...
2,184
313
<gh_stars>100-1000 package com.imperva.apispecparser.parsers.swagger.property; public interface AuthenticationProperties { String getName(); ApiKeyAuthenticationParamType getIn(); }
65
6,663
<gh_stars>1000+ int e = d+1;
15
1,301
<filename>tests/integration_tests/src/all_switch.c /* TAGS: min c */ /* LIFT_OPTS: explicit +--explicit_args +--explicit_args_count 8 */ /* LIFT_OPTS: default */ /* TEST: 12 */ /* TEST: 15 */ /* * Copyright (c) 2018 Trail of Bits, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no...
908
590
from datetime import datetime, timedelta import random from flask_login import current_user # 0 - 1 day # 1 - 3 days # 2 - 7 days # 3 - 14 days # 4 - 30 days # 5 - 90 days # 6 - 180 days # 7 - 365 days def get_time_delta(tier): if tier == 0: time = timedelta(days=1) if tier == 1: time = timede...
1,344
663
# (C) Datadog, Inc. 2010-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) GAUGE_METRICS = [ 'cache-entries', 'concurrent-queries', 'failed-host-entries', 'negcache-entries', 'packetcache-entries', 'throttle-entries', ] RATE_METRICS = [ 'all-outqueries', ...
1,166
852
from __future__ import print_function import FWCore.ParameterSet.SequenceTypes as sqt import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.Modules as mod def getModulesFromSequence(sequence,list): item = sequence._seq if isinstance(item,mod._Module): list.append(item) elif isinstanc...
1,180
348
<gh_stars>100-1000 {"nom":"Lessard-le-National","circ":"3ème circonscription","dpt":"Saône-et-Loire","inscrits":511,"abs":327,"votants":184,"blancs":18,"nuls":6,"exp":160,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":90},{"nuance":"LR","nom":"M. <NAME>","voix":70}]}
110
1,391
<filename>src/libndb/ndbgetval.c #include <u.h> #include <libc.h> #include <bio.h> #include "ndb.h" /* * search for a tuple that has the given 'attr=val' and also 'rattr=x'. * copy 'x' into 'buf' and return the whole tuple. * * return 0 if not found. */ char* ndbgetvalue(Ndb *db, Ndbs *s, char *attr, char *val...
722
1,444
package mage.cards.e; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; import mage.abilities.common.LimitedTimesPerTurnActivatedAbility; import mage.abilities.condition.common.IsStepCondition; import mage.abilities.costs.Cost; i...
1,373
30,023
"""Tests for cloud tts.""" from unittest.mock import Mock from hass_nabucasa import voice import pytest import voluptuous as vol from homeassistant.components.cloud import const, tts @pytest.fixture() def cloud_with_prefs(cloud_prefs): """Return a cloud mock with prefs.""" return Mock(client=Mock(prefs=clou...
1,087
12,278
// Copyright 2015 <NAME>. // // Distributed under the Boost Software License, Version 1.0. // // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt #include <boost/core/lightweight_test_trait.hpp> #include <boost/mp11/list.hpp> #include <type_traits> #include <tuple> #include <...
1,142
674
import os try: basestring except NameError: # Python 3.x basestring = str def error(msg): from distutils.errors import DistutilsSetupError raise DistutilsSetupError(msg) def execfile(filename, glob): # We use execfile() (here rewritten for Python 3) instead of # __import__() to load the ...
2,763
363
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
2,686
5,964
<reponame>FourFiftyNine/fourfiftynine.com<filename>public/javascript/libs/history.js/vendor/qunit/package.json { "name": "qunit", "author": { "name": "<NAME>", "email": "<EMAIL>", "url": "http://ejohn.org/" }, "maintainer": { "name": "<NAME>", "email": "<EMAIL>", "url": "http://bassistance.de/" }, "ur...
248
965
void ProcessImages(const wstring& directory) { }
14
520
<filename>Web/fluid_properties/Validation/NelsonValidation.py from CoolProp.HumidAirProp import HAProps print("Validation against <NAME> and <NAME>,\"Formulation for High-Temperature Properties for Moist Air\", HVAC&R Research v.8 #3, 2002") print("Note: More accurate formulation employed than in Nelson. Just for sa...
1,349
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 ...
821
746
<filename>protege-editor-core/src/main/java/org/protege/editor/core/ui/action/ToolBarActionPluginJPFImpl.java package org.protege.editor.core.ui.action; import org.eclipse.core.runtime.IExtension; import org.protege.editor.core.editorkit.EditorKit; import javax.swing.*; /** * Author: <NAME><br> * The University ...
630
1,085
/* * 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
2,187
348
{"nom":"Millonfosse","circ":"20ème circonscription","dpt":"Nord","inscrits":570,"abs":305,"votants":265,"blancs":17,"nuls":2,"exp":246,"res":[{"nuance":"COM","nom":"<NAME>","voix":156},{"nuance":"FN","nom":"<NAME>","voix":90}]}
90
343
<filename>syzygy/block_graph/basic_block_test_util.h // Copyright 2012 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/lic...
1,392
2,487
<reponame>gitter-badger/swagger-bootstrap-ui /* * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD. * All rights reserved. * Official Web Site: http://www.xiaominfo.com. * Developer Web Site: http://open.xiaominfo.com. */ package com.github.xiaoymin.swaggerbootstrapui.filter; import com.github.xiaoymin.s...
1,093
10,225
package io.quarkus.vertx.web; import java.util.Objects; import io.quarkus.vertx.web.runtime.JsonArrayMulti; import io.quarkus.vertx.web.runtime.NdjsonMulti; import io.quarkus.vertx.web.runtime.SSEMulti; import io.smallrye.mutiny.Multi; /** * Provides utility methods, mainly to handle {@code text/event-stream} respo...
2,493
330
# Copyright 2021, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
2,077
369
// Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include <string> #include <memory> #include <at/Result.hpp> #include <at/Commands.hpp> #include <at/ATFactory.hpp> #include "service-cellular/requests/ImeiRequest.hpp" namespace cellula...
292
344
<reponame>anntzer/prettyprinter import ast import pytest from prettyprinter import pformat def test_parsed(): node = ast.parse('value = 42') assert pformat(node, width=999) == """\ ast.Module( body=[ ast.Assign( targets=[ast.Name(id='value', ctx=ast.Store())], value=ast.Nu...
284
892
{ "schema_version": "1.2.0", "id": "GHSA-63p3-c254-6c5g", "modified": "2022-05-13T01:04:38Z", "published": "2022-05-13T01:04:38Z", "aliases": [ "CVE-2019-3395" ], "details": "The WebDAV endpoint in Atlassian Confluence Server and Data Center before version 6.6.7 (the fixed version for 6.6.x), from ver...
495
335
{ "word": "Ancient", "definitions": [ "Belonging to the very distant past and no longer in existence.", "Having been in existence for a very long time.", "Showing or feeling signs of age or wear." ], "parts-of-speech": "Adjective" }
104
341
<reponame>lleondia/geopandas-tutorial<filename>_solved/solutions/01-introduction-geospatial-data17.py # Add a population density column districts['population_density'] = districts['population'] / districts.geometry.area * 10**6
72
1,656
from datetime import datetime import pytest from marshmallow.exceptions import ValidationError from lemur.common.utils import parse_private_key from lemur.common.validators import verify_private_key_match from lemur.tests.vectors import INTERMEDIATE_CERT, SAN_CERT, SAN_CERT_KEY def test_private_key(session): pa...
634
1,144
/* * drivers/net/phy/gw16083.c * * Driver for GW16083 Ventana Ethernet Expansion Mezzanine * * Author: <NAME> * * Copyright (c) 2014 <NAME> <<EMAIL>> * * 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 ...
12,810
1,682
<reponame>haroldl/rest.li<gh_stars>1000+ /* Copyright (c) 2012 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unles...
2,545
5,355
package graphql.language; import graphql.PublicApi; /** * Represents a node that can contain a description. */ @PublicApi public interface DescribedNode<T extends Node> extends Node<T> { /** * @return the description of this node */ Description getDescription(); }
91
28,899
import numpy as np import pytest from pandas import ( DatetimeIndex, Index, NaT, PeriodIndex, TimedeltaIndex, timedelta_range, ) import pandas._testing as tm def check_freq_ascending(ordered, orig, ascending): """ Check the expected freq on a PeriodIndex/DatetimeIndex/TimedeltaIndex ...
6,102
935
<gh_stars>100-1000 #include <thor-internal/arch/cpu.hpp> #include <generic/thor-internal/cpu-data.hpp> #include <frg/manual_box.hpp> #include <thor-internal/main.hpp> #include <thor-internal/kasan.hpp> #include <thor-internal/fiber.hpp> namespace thor { extern "C" void saveFpSimdRegisters(FpRegisters *frame); extern ...
3,204
7,158
<filename>modules/cvv/src/qtutil/matchview/matchsettingsselector.cpp<gh_stars>1000+ #include <QVBoxLayout> #include <QPushButton> #include "matchsettingsselector.hpp" #include "../../util/util.hpp" namespace cvv{ namespace qtutil{ MatchSettingsSelector::MatchSettingsSelector(const std::vector<cv::DMatch> &univers, Q...
582
8,092
# 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 not u...
1,125
974
from django.urls import path from django.views.generic import TemplateView from .formsets import AddressFormSet from .views import ( AddressFormSetView, AddressFormSetViewKwargs, AddressFormSetViewNamed, EventCalendarView, FormAndFormSetOverrideView, ItemModelFormSetExcludeView, ItemModelFo...
876
3,804
<reponame>sneh19337/rippled //------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose wit...
5,054
351
#!/usr/bin/env python3 import re from app.lib.utils.request import request from app.lib.utils.common import get_useragent class Upload_File_BaseVerify: def __init__(self, url): self.info = { 'name': 'kindeditor 文件上传漏洞', 'description': 'kindeditor 文件上传漏洞, 影响范围为: kindeditor<=4.1.5', ...
2,500
2,151
<reponame>stdft112/depot_tools<filename>third_party/boto/services/sonofmmm.py # Copyright (c) 2006,2007 <NAME> http://garnaat.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 without re...
1,492
3,285
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
375
14,668
// 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. #ifndef CHROME_BROWSER_ENTERPRISE_CONNECTORS_DEVICE_TRUST_KEY_MANAGEMENT_BROWSER_COMMANDS_WIN_KEY_ROTATION_COMMAND_H_ #define CHROME_BROWSER_ENTERPRISE_CO...
683
892
<filename>advisories/unreviewed/2022/04/GHSA-cxx4-wmc3-37mh/GHSA-cxx4-wmc3-37mh.json { "schema_version": "1.2.0", "id": "GHSA-cxx4-wmc3-37mh", "modified": "2022-04-29T02:59:37Z", "published": "2022-04-29T02:59:37Z", "aliases": [ "CVE-2004-1459" ], "details": "Cisco Secure Access Control Server (ACS) 3...
506
652
// // WLTableViewViewController.h // WLBaseView_Example // // Created by 刘光强 on 2018/3/15. // Copyright © 2018年 guangqiang-liu. All rights reserved. // #import "WLBaseViewController.h" @interface WLBaseTableViewViewController : WLBaseViewController @end
98
746
<gh_stars>100-1000 package org.protege.editor.owl.ui.view.individual; import org.protege.editor.core.ui.RefreshableComponent; import org.protege.editor.core.ui.view.DisposableAction; import org.protege.editor.owl.model.entity.OWLEntityCreationSet; import org.protege.editor.owl.model.event.EventType; import org.protege...
4,036
1,417
<reponame>llsilva66/cglm<gh_stars>1000+ /* * Copyright (c), <NAME>. * * MIT License (MIT), htt../opensource.org/licenses/MIT * Full license can be found in the LICENSE file */ /* Functions: CGLM_INLINE mat4s glms_ortho_rh_zo(float left, float right, float bottom, floa...
1,694