max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,380
<reponame>jagmeet787/Smack /** * * Copyright 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
1,063
4,879
<filename>search/retrieval.hpp<gh_stars>1000+ #pragma once #include "search/cbv.hpp" #include "search/feature_offset_match.hpp" #include "search/query_params.hpp" #include "platform/mwm_traits.hpp" #include "coding/reader.hpp" #include "geometry/rect2d.hpp" #include "base/cancellable.hpp" #include "base/checked_ca...
1,238
356
<filename>app/src/main/java/com/idrv/coach/bean/CheckUpdate.java package com.idrv.coach.bean; /** * time:2016/4/5 * description:版本升级 * * @author sunjianfei */ public class CheckUpdate { String versionName; String versionCode; String url; boolean upgrade; String description; public String ...
426
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. #include "content/browser/memory/swap_metrics_driver_impl_linux.h" #include <memory> #include "base/memory/ptr_util.h" #include "base/process/process_me...
798
507
<filename>lib/mayaUsd/commands/layerEditorWindowCommand.cpp<gh_stars>100-1000 // // Copyright 2020 Autodesk // // 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...
4,581
1,498
<gh_stars>1000+ /* Copyright (c) 2012, Broadcom Europe Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of ...
8,275
404
<gh_stars>100-1000 package io.github.memfis19.sample; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.content.ContextCompat; import android.support.v4.util.Pair; import android...
4,616
4,901
/* * 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 u...
505
3,212
/* * 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 ...
6,426
5,023
# Copyright 2020 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, ...
376
4,348
/*** Copyright (c) 2012 CommonsWare, 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 writin...
372
1,027
<gh_stars>1000+ /** * Function.h * * Small extension to the Value class that allows a value to be * constructed with a std::function. * * If you want to assign a std::function to a value, the following * piece of code won't work: * * Php::Value value([]() { .... }); * * Because the passed in funct...
681
14,668
// 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 "services/proxy_resolver/host_resolver_mojo.h" #include <memory> #include <string> #include <utility> #include <vector> #include "base/bind.h" ...
4,917
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,134
65,488
<filename>test/parser/samples/error-unmatched-closing-tag-autoclose/error.json<gh_stars>1000+ { "code": "invalid-closing-tag", "message": "</p> attempted to close <p> that was already automatically closed by <pre>", "pos": 24, "start": { "character": 24, "column": 0, "line": 3 } }
117
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. #include "components/crash/core/app/crash_export_thunks.h" #include <algorithm> #include <type_traits> #include "base/process/process.h" #include "base/...
1,008
4,959
<filename>pyro/contrib/gp/models/gpr.py # Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import torch import torch.distributions as torchdist from torch.distributions import constraints import pyro import pyro.distributions as dist from pyro.contrib.gp.models.model import GPMode...
3,971
665
/* compact_vector.h -*- C++ -*- <NAME>, 3 March 2009 Copyright (c) 2009 <NAME>. All rights reserved. This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. An optimized class for holding a variable length unbounded vector. If the vect...
9,259
749
<gh_stars>100-1000 #!/usr/bin/env python3 # -*- coding: utf-8 -*- """Helper script to bump the current version.""" import argparse import re import subprocess from packaging.version import Version from plexapi import const SUPPORTED_BUMP_TYPES = ["patch", "minor", "major"] def _bump_release(release, bump_type): ...
1,225
8,624
<reponame>VladislavLobakh/dom-to-image-extended<filename>bower_components/ocrad-bower/ocrad-0.23-pre1/ucs.h /* GNU Ocrad - Optical Character Recognition program Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 <NAME>. This program is free software: you can redistribute it and...
2,699
387
/* * Copyright (C) 2014, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The Java Pathfinder core (jpf-core) platform is licensed under the * Apache License, Version 2.0 (the "License"); you may not use this file exce...
3,552
2,151
<gh_stars>1000+ // Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef FXJS_CJS_UTIL_H_ #define FXJS_CJS_UTIL_H_ #include <s...
741
1,132
<filename>Scores.h // <NAME>, copyright Jul 2005 // . the Scores class is a vector to weight Words scores by // . this was originally made to extract the news article from a web page // and discard the words in menu sections and other cruft. // . words are weighted by the number of neighboring words in their "sectio...
1,516
303
<filename>java/jog/libraries/jog/jog_stdlib.java //============================================================================= // Jog Standard Library //============================================================================= //============================================================================= // Ar...
9,502
386
/** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a c...
353
374
<reponame>RonRahaman/nekRS<gh_stars>100-1000 /****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR...
288
788
<filename>stack/core/src/main/java/org/apache/usergrid/corepersistence/asyncevents/AsyncEventQueueType.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 own...
365
335
{ "word": "Vote", "definitions": [ "A formal indication of a choice between two or more candidates or courses of action, expressed typically through a ballot or a show of hands.", "An act of giving or registering a vote.", "The choice expressed collectively by a body of electors or by a ...
139
571
package camelinaction; import javax.sql.DataSource; import org.apache.camel.CamelContext; import org.springframework.jdbc.core.JdbcTemplate; public class OrderCreateTable { public OrderCreateTable(CamelContext camelContext) { DataSource ds = camelContext.getRegistry().lookupByNameAndType("myDataSource",...
295
3,227
// Copyright (c) 2016 CNRS and LIRIS' Establishments (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL$ // $Id$ // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial // // Author(s) : <NAME> <<EMAIL>> // #ifndef GMAP_TEST_INSERTIONS_H #define GMAP_TEST_INSE...
4,729
1,338
<gh_stars>1000+ /* * Copyright 2010, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-1999 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this soft...
1,534
701
""" Classes from the 'DocumentCamera' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None ICDocCamScanCache = _Class("ICDocCamScanCache") ICDoc...
2,038
308
# PACKAGE IMPORTS FOR EXTERNAL USAGE from tests.integration_tests.s3_dataset_test import TestDataset from tests.integration_tests.ema_train_integration_test import EMAIntegrationTest from tests.integration_tests.lr_test import LRTest _all__ = [TestDataset, EMAIntegrationTest, LRTest]
96
5,766
// // DynamicDateTime.h // // Library: Data // Package: DataCore // Module: DynamicDateTime // // Definition of the Date and Time cast operators for Poco::Dynamic::Var. // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Data...
283
892
{ "schema_version": "1.2.0", "id": "GHSA-mcf5-43h4-p6vc", "modified": "2022-05-13T01:41:45Z", "published": "2022-05-13T01:41:45Z", "aliases": [ "CVE-2017-10278" ], "details": "Vulnerability in the Oracle Tuxedo component of Oracle Fusion Middleware (subcomponent: Security). Supported versions that are...
633
593
#if defined(ESP8266) || defined(ESP32) #include <pgmspace.h> #else #include <avr/pgmspace.h> #endif // 24 x 24 gridicons_external const unsigned char gridicons_external[] PROGMEM = { /* 0X01,0X01,0XB4,0X00,0X40,0X00, */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0x1F, 0xFF, 0xE0, 0x1F, 0xFF, 0...
459
1,033
<filename>graphql-spring-boot-autoconfigure/src/test/java/graphql/kickstart/autoconfigure/tools/Query.java<gh_stars>1000+ package graphql.kickstart.autoconfigure.tools; import graphql.kickstart.tools.GraphQLQueryResolver; /** @author <NAME> */ public class Query implements GraphQLQueryResolver { public String echo...
116
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,230
2,151
// Copyright 2018 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/signin/unified_consent_helper.h" #include "build/buildflag.h" #include "chrome/test/base/testing_profile.h" #include "components...
1,093
583
#include "validate_node.hpp" #include <string> namespace opossum { ValidateNode::ValidateNode() : AbstractLQPNode(LQPNodeType::Validate) {} std::string ValidateNode::description(const DescriptionMode mode) const { return "[Validate]"; } std::shared_ptr<LQPUniqueConstraints> ValidateNode::unique_constraints() const...
231
13,566
package com.external.connections; import org.springframework.web.reactive.function.client.ExchangeFilterFunction; // Parent type for all API connections that need to be created during datasource create method. public abstract class APIConnection implements ExchangeFilterFunction { }
66
4,262
<reponame>rikvb/camel /* * 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 * (th...
5,984
892
<filename>advisories/unreviewed/2022/05/GHSA-9q2j-c74h-2vcr/GHSA-9q2j-c74h-2vcr.json { "schema_version": "1.2.0", "id": "GHSA-9q2j-c74h-2vcr", "modified": "2022-05-02T06:14:48Z", "published": "2022-05-02T06:14:48Z", "aliases": [ "CVE-2010-0698" ], "details": "SQL injection vulnerability in backoffice/...
606
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. // ------------------------------------------------------------ #include "Ra.Stdafx.h" using ...
768
5,169
<filename>Specs/CrystalExpressSDK-CN/1.8.1/CrystalExpressSDK-CN.podspec.json { "name": "CrystalExpressSDK-CN", "version": "1.8.1", "summary": "SDK library for Crystal Express Ad China.", "homepage": "http://demo.intowow.com/", "license": { "type": "Copyright", "text": " Copyright (c...
638
2,251
<reponame>hjred/stride #ifndef setjmp_h #define setjmp_h #include "../NativePath.h" #undef jmp_buf //we oversize our jmp_buf for safety typedef void* jmp_buf[64]; #endif
78
1,645
import os import sys, getopt, argparse import logging from random import randint,random,uniform import json import urllib PREDICT_TEMPLATE = 'http://%ENDPOINT%/js/predict?json=%JSON%&consumer_key=%KEY%&jsonpCallback=j' class ReplayCreate(object): def __init__(self): self.features = [] def get_key(se...
987
458
<filename>core/engine/src/ServiceDescription.h<gh_stars>100-1000 /* * Copyright 2016 <NAME> <<EMAIL>> * * 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,132
812
<gh_stars>100-1000 /* * Password Management Servlets (PWM) * http://www.pwm-project.org * * Copyright (c) 2006-2009 Novell, Inc. * Copyright (c) 2009-2021 The PWM Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
9,249
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices */ #import <ProtocolBuffer/PBCodable.h> @interface GEOMapQueryCollectionResponse : PBCodable { } - (void)writeTo:(id)to; // 0x428d - (BOOL)readFrom:(id)from; // 0x41dd - (id)dictio...
162
479
<reponame>OscarPellicer/probreg<gh_stars>100-1000 #ifndef __probreg_point_to_plane_h__ #define __probreg_point_to_plane_h__ #include "types.h" #include <utility> namespace probreg { typedef std::pair<Vector6, Float> Pt2PlResult; Pt2PlResult computeTwistForPointToPlane(const MatrixX3& model, ...
269
14,668
// 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 CHROMEOS_MEMORY_USERSPACE_SWAP_USERSPACE_SWAP_RENDERER_INITIALIZATION_IMPL_H_ #define CHROMEOS_MEMORY_USERSPACE_SWAP_USERSPACE_SWAP_RENDERER_INITI...
627
1,760
<reponame>nocrizwang/USACO /** * Description: The centroid of a tree of size $N$ is a vertex such that * after removing it, all resulting subtrees have size at most $\frac{N}{2}.$ * Supports updates in the form ``add 1 to all verts $v$ such that $dist(x,v)\le y$." * Time: O(N\log N) build, O(\log N) update and ...
1,187
424
import time import sublime import sublime_plugin import fnmatch import os from ..lib import omnisharp from ..lib import helpers class OmniSharpAddReference(sublime_plugin.TextCommand): def run(self, edit): parentpath = sublime.active_window().folders()[0] matches = [] for root, dirna...
478
11,396
<gh_stars>1000+ # Generated by Django 2.2.11 on 2020-07-08 18:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.db.models.expressions import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0003_...
2,986
1,900
<gh_stars>1000+ /* * Copyright Terracotta, 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 l...
511
4,842
<gh_stars>1000+ package com.gpmall.user.dto; import com.gpmall.commons.result.AbstractRequest; import com.gpmall.commons.tool.exception.ValidateException; import com.gpmall.user.constants.SysRetCodeConstants; import lombok.Data; import org.apache.commons.lang3.StringUtils; /** * 腾讯课堂搜索【咕泡学院】 * 官网:www.gupaoedu.com ...
347
1,056
<reponame>timfel/netbeans<filename>platform/o.n.core/test/qa-functional/src/gui/propertyeditors/PropertyType_Color.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 c...
1,942
710
package com.dpizarro.uipicker.library.blur; /* * Copyright (C) 2015 <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 * * Un...
903
716
<reponame>akopich/orbit // Copyright (c) 2020 The Orbit 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 CLIENT_MODEL_SAMPLING_DATA_POST_PROCESSOR_H_ #define CLIENT_MODEL_SAMPLING_DATA_POST_PROCESSOR_H_ #include "ClientData/C...
287
369
/* * Copyright © 2016 <NAME>, 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 or agreed to i...
1,305
780
package integration; import com.codeborne.selenide.ex.ElementShould; import com.codeborne.selenide.logevents.EventsCollector; import com.codeborne.selenide.logevents.SelenideLogger; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.openqa.sel...
1,373
1,014
<reponame>MobileAir/FinanceDatabase { "GMFI.JK": { "short_name": "Garuda Maintenance Facility Aer", "long_name": "PT Garuda Maintenance Facility Aero Asia Tbk", "summary": "PT Garuda Maintenance Facility Aero Asia Tbk provides various aircraft maintenance, repair, and overhaul (MRO) serv...
813
1,194
package ca.uhn.fhir.parser.i423; import java.math.BigDecimal; import java.util.List; import ca.uhn.fhir.model.api.IDatatype; import ca.uhn.fhir.model.api.IElement; import ca.uhn.fhir.model.api.annotation.Block; import ca.uhn.fhir.model.api.annotation.Child; import ca.uhn.fhir.model.api.annotation.DatatypeDef; import ...
8,427
675
<filename>dragonfly/exd/unittest_exd_utils.py<gh_stars>100-1000 """ Unit tests for ed_utils. -- <EMAIL> """ from __future__ import absolute_import from __future__ import division # pylint: disable=relative-import # Local imports from .exd_utils import random_sampling_cts, random_sampling_kmeans_cts from ..utils.b...
475
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...
5,769
586
<reponame>sathishmscict/FastEasyMappting-Report { "charProperty": 99, "unsignedCharProperty": 117, "shortProperty": 1, "unsignedShortProperty": 2, "intProperty": 3, "unsignedIntProperty": 4, "integerProperty": 5, "unsignedIntegerProperty": 6, "longProperty": 7, "unsignedLongProperty": 8, "longLong...
166
392
/******************************************************************************* * Copyright (c) 2015 * * 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 withou...
845
523
// Copyright <NAME> 2019. // 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) #if !defined(CNL_IMPL_NUM_TRAITS_SET_REP_H) #define CNL_IMPL_NUM_TRAITS_SET_REP_H /// compositional numeric lib...
338
335
{ "word": "Jactitation", "definitions": [ "The restless tossing of the body in illness.", "The twitching of a limb or muscle." ], "parts-of-speech": "Noun" }
80
2,843
<filename>business/MusicBusiness/src/main/java/com/ycbjie/music/utils/share/BaseSharePolicy.java package com.ycbjie.music.utils.share; import android.content.Context; /** * <pre> * @author 杨充 * blog : https://github.com/yangchong211/YCBlogs * time : 2017/01/30 * desc : 分享弹窗,主要是为了练习策略者模式 * ...
743
3,263
<reponame>arouel/immutables /* * Copyright 2020 Immutables Authors and Contributors * * 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 * ...
2,109
679
<reponame>Grosskopf/openoffice<filename>main/svgio/inc/svgio/svgreader/svgpolynode.hxx /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for addit...
1,253
703
<filename>libpeconv/include/peconv/load_config_util.h /** * @file * @brief Fetching Load Config Directory and recognizing its version. */ #pragma once #include <windows.h> #include "buffer_util.h" #include "load_config_defs.h" namespace peconv { /** A version of Load Config Directory. */ typedef e...
542
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. // ------------------------------------------------------------ #include "stdafx.h" #include "...
506
619
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2016 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #pragma once #include <string> #inc...
1,888
8,629
<filename>src/Interpreters/applyTableOverride.cpp #include <Interpreters/applyTableOverride.h> #include <Parsers/ASTCreateQuery.h> #include <Parsers/ASTTableOverrides.h> #include <Parsers/ASTColumnDeclaration.h> #include <Parsers/ASTIndexDeclaration.h> #include <Parsers/ASTConstraintDeclaration.h> #include <Parsers/AS...
2,963
2,338
<filename>clang/test/Analysis/CheckThatArraySubsciptNodeIsNotCollected.cpp // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output=text -verify %s class A { public: int method(); }; A *foo(); void bar(A *); int index; // We want to check here that the notes about the origins of the null pointer // (arr...
430
705
package week03_part01.solution; public abstract class Instrument { public int volume; public abstract void tune(); public void setVolume(int volume) { this.volume = volume; } public int getVolume() { return this.volume; } }
85
5,964
<gh_stars>1000+ /* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkMutex.h" #include "SkPath.h" #include "SkPathOpsDebug.h" #include "SkString.h" #if DEBUG_VALIDATE extern bool FLAGS_runFail; #endif #if DEBUG_SOR...
10,311
1,144
// Copyright 2010-2021, 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 retain the above copyright // notice, this list of condit...
914
539
#include "geometrycentral/surface/integer_coordinates_intrinsic_triangulation.h" #include "geometrycentral/surface/intrinsic_triangulation.h" #include "geometrycentral/surface/manifold_surface_mesh.h" #include "geometrycentral/surface/meshio.h" #include "geometrycentral/surface/signpost_intrinsic_triangulation.h" #incl...
6,486
2,576
/* * Copyright (c) 2010-2018. Axon Framework * * 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 o...
944
1,356
<reponame>matheusamazonas/cardboard /* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
927
892
{ "schema_version": "1.2.0", "id": "GHSA-998c-j8wx-mhch", "modified": "2022-05-01T06:49:56Z", "published": "2022-05-01T06:49:56Z", "aliases": [ "CVE-2006-1475" ], "details": "Windows Firewall in Microsoft Windows XP SP2 does not produce application alerts when an application is executed using the NTFS...
478
562
<filename>recipes/xorg-cf-files/all/conanfile.py<gh_stars>100-1000 from conans import ConanFile, tools, AutoToolsBuildEnvironment from conans.errors import ConanInvalidConfiguration import contextlib import os required_conan_version = ">=1.33.0" class XorgCfFilesConan(ConanFile): name = "xorg-cf-files" descr...
1,630
711
<gh_stars>100-1000 package com.java110.core.context; import java.util.Date; /** * @author wux * @create 2019-02-07 下午7:01 * @desc 订单通知数据流信息 **/ public abstract class AbstractOrderNotifyDataFlowContext extends AbstractDataFlowContextPlus implements IOrderNotifyDataFlowContext,IOrderResponse { protected Abstrac...
743
1,392
# Generated by Django 3.2.12 on 2022-02-09 15:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("product", "0160_populate_product_datetimes"), ] operations = [ migrations.AlterField( model_name="product", name="c...
463
391
from mamba import description, it, before from unittest.mock import MagicMock from crowd_anki.history.archiver import AllDeckArchiver with description(AllDeckArchiver) as self: with before.each: self.deck_without_children = MagicMock() self.deck_manager = MagicMock() self.deck_manager.lea...
260
348
{"nom":"Saint-Eloi-de-Fourques","circ":"2ème circonscription","dpt":"Eure","inscrits":403,"abs":239,"votants":164,"blancs":9,"nuls":2,"exp":153,"res":[{"nuance":"REM","nom":"<NAME>","voix":99},{"nuance":"FN","nom":"<NAME>","voix":54}]}
95
2,338
<reponame>mkinsner/llvm int other(); namespace { template <typename T1> struct Temp { int x; }; // This emits the 'Temp' template in this TU. Temp<float> Template1; } // namespace int main() { return Template1.x + other(); // break here }
84
432
/* * Exported interface to downloadable microcode for AdvanSys SCSI Adapters * * $FreeBSD: src/sys/dev/advansys/advmcode.h,v 1.6 2000/01/14 03:33:38 gibbs Exp $ * $DragonFly: src/sys/dev/disk/advansys/advmcode.h,v 1.2 2003/06/17 04:28:21 dillon Exp $ * * Obtained from: * * Copyright (c) 1995-1999 Advanced Syste...
236
358
<reponame>1over/mahi-gui // Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for language C++11 // from https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/metadata/icons.yml // for use with https://github.com/FortAwesome/Font-Awesome/blob/master/webfonts/f...
9,050
478
<reponame>hawesy/qlcplus /* Q Light Controller ftd2xx-interface.cpp Copyright (C) <NAME> <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....
5,117
892
{ "schema_version": "1.2.0", "id": "GHSA-f434-223j-r8rm", "modified": "2022-05-01T17:54:34Z", "published": "2022-05-01T17:54:34Z", "aliases": [ "CVE-2007-1522" ], "details": "Double free vulnerability in the session extension in PHP 5.2.0 and 5.2.1 allows context-dependent attackers to execute arbitra...
633
413
import errno import os import locale from datetime import datetime try: import pytz HAS_PYTZ = True except ImportError: HAS_PYTZ = False from i3pystatus import IntervalModule class Clock(IntervalModule): """ This class shows a clock. .. note:: Optionally requires `pytz` for time zone data w...
2,460
432
/* * Copyright (C) 2020 ActiveJ 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...
1,530
335
<gh_stars>100-1000 { "word": "Phosphorescence", "definitions": [ "Light emitted by a substance without combustion or perceptible heat.", "The emission of radiation in a similar manner to fluorescence but on a longer timescale, so that emission continues after excitation ceases." ], "part...
110
60,067
from typing import NamedTuple import torch class MyNamedTup(NamedTuple): i : torch.Tensor f : torch.Tensor
45
364
<reponame>xiaobing007/dagli<filename>xgboost-core/src/main/java/com/linkedin/dagli/xgboost/XGBoostRegression.java package com.linkedin.dagli.xgboost; import com.linkedin.dagli.annotation.equality.HandleEquality; import com.linkedin.dagli.annotation.equality.ValueEquality; import com.linkedin.dagli.math.vector.DenseVec...
639