max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,452
#!/usr/bin/env python from __future__ import print_function # Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import sys import os # add the lib directory to the path sys.path.append(os.path.join(os.path.dirname(__file__), "lib")) import base64 import pg...
1,865
4,238
<gh_stars>1000+ #!/usr/bin/env python """Tests for the MySQL migrations logic.""" import contextlib import io import os import shutil from absl import app from absl.testing import absltest from grr_response_core import config from grr_response_core.lib.util import temp from grr_response_server.databases import mysql...
1,177
318
<reponame>adam11grafik/maven-surefire package org.apache.maven.surefire.booter.spi; /* * 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 licens...
1,823
577
<filename>WeAC/src/main/java/com/kaku/weac/fragment/NapEditFragment.java /* * Copyright (c) 2016 咖枯 <<EMAIL> | <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://w...
3,817
903
package com.github.vole.mps.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.github.vole.common.constants.CommonConstant; import com.github.vole.common.validate.Assert; import com.github.vole.mps.mapper.SysLogMapper; import com.github.vole.mps.model.entity.SysLog; import co...
335
434
/* * 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 * * http://aws.amazon.com/apache2.0 * * or in the "license" file...
1,511
2,338
<filename>libcxx/test/std/strings/basic.string/string.cons/nullptr.compile.pass.cpp<gh_stars>1000+ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license informat...
292
852
import FWCore.ParameterSet.Config as cms from CalibTracker.SiStripESProducers.fake.SiStripFedCablingFakeESSource_cfi import * sistripconn = cms.ESProducer("SiStripConnectivity")
62
575
// 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 "third_party/blink/renderer/platform/loader/cors/cors.h" #include <string> #include "net/http/http_util.h" #include "services/network/public/cp...
3,358
679
<reponame>Grosskopf/openoffice<filename>main/toolkit/source/layout/core/byteseq.cxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this...
827
1,909
package info.bitrich.xchangestream.lgo.domain; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Date; import java.util.Map; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.dto.Order; /** Order entered order book */ publ...
462
335
<gh_stars>100-1000 { "word": "Profitable", "definitions": [ "(of a business or activity) yielding profit or financial gain.", "Beneficial; useful." ], "parts-of-speech": "Adjective" }
88
1,480
<filename>compressor/filters/css_default.py import os import re import posixpath from compressor.cache import get_hashed_mtime, get_hashed_content from compressor.conf import settings from compressor.filters import FilterBase, FilterError URL_PATTERN = re.compile(r""" url\( \s* # any amount of whitespace...
2,787
852
<reponame>ckamtsikis/cmssw // Include files // local #include "L1Trigger/RPCTechnicalTrigger/interface/RBCEmulator.h" #include "L1Trigger/RPCTechnicalTrigger/interface/RBCBasicConfig.h" #include "L1Trigger/RPCTechnicalTrigger/interface/RBCProcessTestSignal.h" #include "L1Trigger/RPCTechnicalTrigger/interface/RBCLinkBo...
1,717
1,125
/* * 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"); you may * not use this fi...
1,227
8,027
import org.junit.Test; public class MockTest2 { @Test public void passingTestOne() { System.out.println("passed!"); } @Test public void passingTestTwo() { System.out.println("passed!"); } @Test public void passingTestThree() { System.out.println("passed!"); } @Test public void pas...
139
605
/* This file can be generated using * javah -jni -classpath src/ -o jni/vectorAdd.h org.pocl.sample1.MainActivity */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_pocl_sample1_MainActivity */ #ifndef _Included_org_pocl_sample1_MainActivity #define _Included_org_pocl_...
501
377
<gh_stars>100-1000 // Copyright (c) 2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coinsbyscript.h" #include "txdb.h" #include "hash.h" #include <assert.h> CCoinsViewByScript::CCoinsViewB...
672
14,668
<reponame>zealoussnow/chromium<filename>testing/android/junit/java/src/org/chromium/testing/local/RunnerFilter.java // 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. package org.chromium.testing.local; i...
456
1,139
<reponame>ghiloufibelgacem/jornaldev # import the module # get the current clock ticks from the time() function seconds = basic_examples.time() print(seconds) currentTime = time.localtime(seconds) # print the currentTime variable to know about it print(currentTime,'\n') # use current time to show current time in fo...
141
4,440
# flake8: noqa from .base import BaseModelView from .form import InlineFormAdmin from flask_admin.actions import action
34
839
/** * 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 m...
614
834
//<Snippet1> #using <System.Windows.Forms.dll> #using <System.Data.dll> #using <System.Drawing.dll> #using <System.dll> using namespace System; using namespace System::Collections; using namespace System::ComponentModel; using namespace System::ComponentModel::Design; using namespace System::Drawing; using namespace...
2,912
2,628
<filename>pony/orm/tests/test_prop_sum_orderby.py<gh_stars>1000+ from __future__ import absolute_import, print_function, division import unittest from pony.orm.core import * from pony.orm.tests.testutils import * from pony.orm.tests import setup_database, teardown_database db = Database() db = Database('sqlite', ':...
2,446
3,073
<reponame>Paul3MK/NewsBlur<gh_stars>1000+ // // AddSiteTableCell.h // NewsBlur // // Created by <NAME> on 8/7/12. // Copyright (c) 2012 NewsBlur. All rights reserved. // #import "ABTableViewCell.h" @interface AddSiteTableCell : ABTableViewCell { NewsBlurAppDelegate *appDelegate; NSString *siteTitle; ...
290
879
<gh_stars>100-1000 package org.zstack.storage.ceph.backup; import org.zstack.header.message.APIEvent; import org.zstack.header.rest.RestResponse; import org.zstack.header.storage.backup.BackupStorageState; import org.zstack.header.storage.backup.BackupStorageStatus; import java.sql.Timestamp; import java.util.Collect...
764
892
<reponame>westonsteimel/advisory-database-github<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-92x4-fq2c-9xx4", "modified": "2022-05-01T07:20:30Z", "published": "2022-05-01T07:20:30Z", "aliases": [ "CVE-2006-4635" ], "details": "Unspecified vulnerability in MySource Classic 2.14.6, and po...
614
648
{"resourceType":"DataElement","id":"Procedure.report","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/Procedure.report","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"Procedure.report","short":"Any report resulting from the procedure...
225
631
package com.neu.his.cloud.zuul.dto.dms; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import lombok.ToString; import java.io.Serializable; import java.math.BigDecimal; @Setter @Getter @ToString public class DmsNonDrugItemRecordParam implements Serializable { @ApiMode...
361
1,403
#ifndef CLIPPER_UTIL_HPP #define CLIPPER_UTIL_HPP namespace container { template <class T> class CircularBuffer { public: explicit CircularBuffer(const size_t capacity) : capacity_(capacity) { if (capacity <= 0) { throw std::runtime_error( "Circular buffer instance must have a positive capacity...
440
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...
1,768
467
package com.yoyiyi.soleil.adapter.home.section.chase; import android.content.Intent; import com.yoyiyi.soleil.R; import com.yoyiyi.soleil.module.bangumi.BangumiIndexActivity; import com.yoyiyi.soleil.module.bangumi.BangumiScheduleActivity; import com.yoyiyi.soleil.widget.section.StatelessSection; import com.yoyiyi.so...
472
994
<gh_stars>100-1000 /*++ Copyright (c) Microsoft Corporation Module Name: FxFileObjectUm.hpp Abstract: This module implements a frameworks managed FileObject Author: Environment: User mode only Revision History: --*/ #ifndef _FXFILEOBJECTUM_H_ #define _FXFILEOBJECTUM_H_ #include "FxFileObject....
134
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 "third_party/blink/public/web/modules/media/audio/audio_output_ipc_factory.h" #include <string> #include <utility> #include <vector> #include "...
3,401
2,151
package org.junit.tests.running.classes; import static java.util.Arrays.asList; import static org.hamcrest.CoreMatchers.containsString; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import static org.junit.experimental.results.Printab...
6,084
550
<reponame>iLiuKun/java-sdk<gh_stars>100-1000 package com.qiniu.qvs.model; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.qiniu.util.StringMap; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Builder @Data @NoArgsConstructor @A...
646
6,457
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2020 Intel Corporation. All Rights Reserved. //#cmake:add-file ../../../../common/utilities/number/stabilized-value.h #include "../../../test.h" #include <../common/utilities/number/stabilized-value.h> using namespace utilities::number; //...
291
29,258
package com.taobao.arthas.core.distribution.impl; import com.alibaba.arthas.deps.org.slf4j.Logger; import com.alibaba.arthas.deps.org.slf4j.LoggerFactory; import com.alibaba.fastjson.JSON; import com.taobao.arthas.core.command.model.ResultModel; import com.taobao.arthas.core.distribution.DistributorOptions; import com...
2,762
349
/* * Copyright 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 * * Unless required by applicable law or agreed to in wr...
24,987
569
<gh_stars>100-1000 /* Copyright 1995-2015 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
790
483
/** Copyright 2013 Intel Corporation, All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
354
892
<gh_stars>100-1000 /* * Copyright 2015 jmrozanec * 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...
408
1,433
<reponame>rzr/iotivity-1 /****************************************************************** * * Copyright 2015 Samsung Electronics 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 c...
938
453
<gh_stars>100-1000 ; @(#)fpsymbol.h 1.4 90/10/14 20:55:59, Copyright 1989, 1990 AMD ; start of fpsymbol.h file ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright 1989, 1990 Advanced Micro Devices, Inc. ; ; This software is the property of Advanced Micro Devices, Inc (AMD) whi...
53,370
2,399
<reponame>allran/SJVideoPlayer // // SJViewControllerObserver.h // SJUIKit_Example // // Created by 畅三江 on 2018/12/23. // Copyright © 2018 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> #import "SJBaseProtocols.h" NS_ASSUME_NONNULL_BEGIN @interface SJAppearStateObserver : NSObject<SJAppearStateObserver>...
145
1,623
/* This file is part of the Pangolin Project. * http://github.com/stevenlovegrove/Pangolin * * Copyright (c) 2014 <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 * re...
1,020
338
<filename>ants/utils/label_image_centroids.py __all__ = ['label_image_centroids'] import numpy as np from ..core import ants_transform as tio def label_image_centroids(image, physical=False, convex=True, verbose=False): """ Converts a label image to coordinates summarizing their positions ANTsR funct...
1,249
1,223
/* Copyright 2016 Nidium Inc. All rights reserved. Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ #include <jni.h> #include <string> #include "Core/Context.h" #include "ape_netlib.h" #include "AndroidUIInterface.h" #include "System.h" #include <SDL.h> #define ...
553
2,816
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/execution/operator/helper/physical_explain_analyze.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/execution/physical...
476
301
package commons.model.gateway; public class Measure { private String capabilityAlternateId; private Object[][] measures; private String sensorAlternateId; public String getCapabilityAlternateId() { return capabilityAlternateId; } public void setCapabilityAlternateId(String capabilityAlternateId) { this....
213
10,364
<reponame>equinux/CocoaPods #import "Bar/Bar.h"
25
724
<gh_stars>100-1000 #!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import inspect from TestDataMani import TestDataMani from TestDataAug import TestDataAug almost_current = os.path.abspath(inspect.getfile(inspect.currentframe())) currentdir = os.path.dirname(almost_current) parentdir = os.path.dirn...
190
619
<reponame>ligurio/mull void void_sum(int a, int b, int *result) { *result = a + b; } int sum(int a, int b) { int result = 0; void_sum(a, b, &result); return result; } int main() { return ! (sum(2, 3) == 5); } // clang-format off /** RUN: cd / && %CLANG_EXEC -fembed-bitcode -g %s -o %s.exe RUN: cd %CURRENT_...
550
348
{"nom":"Pineuilh","circ":"10ème circonscription","dpt":"Gironde","inscrits":3037,"abs":1327,"votants":1710,"blancs":18,"nuls":22,"exp":1670,"res":[{"nuance":"LR","nom":"<NAME>","voix":580},{"nuance":"REM","nom":"M. <NAME>","voix":524},{"nuance":"FN","nom":"Mme <NAME>","voix":234},{"nuance":"FI","nom":"Mme <NAME>","voix...
264
405
package weixin.guanjia.core.util; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.util.List; import org.apache.log4j.Logger; import com.baidu.inf.iis.bcs.BaiduBCS; import com.baidu.inf.iis.bcs.auth.BCSCredentials; import com.baidu.in...
2,533
608
<gh_stars>100-1000 { "name": "seemple-parse-form", "version": "2.4.17", "description": "Binds named fields of HTML5 form", "main": "index.js", "scripts": { "test": "npm run cover", "cover": "../../node_modules/.bin/babel-node ../../node_modules/.bin/babel-istanbul cover test/index.js", "npm-compil...
430
578
<reponame>llitfkitfk/bk-job /* * Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * BK-JOB蓝鲸智云作业平台 is licensed under the MIT License. * * License for BK-JOB蓝鲸智云作业平台: * ------------------...
1,723
14,668
// Copyright 2013 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 COMPONENTS_DOM_DISTILLER_CORE_ARTICLE_ENTRY_H_ #define COMPONENTS_DOM_DISTILLER_CORE_ARTICLE_ENTRY_H_ #include <string> #include <vector> #inclu...
257
343
<reponame>nzeh/syzygy<filename>syzygy/common/align_unittest.cc // Copyright 2011 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.apac...
3,895
804
package com.github.liuweijw.business.wechat.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.Cacheable; import org.springframework.stereoty...
557
2,753
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: <NAME>, <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME> */ #ifndef _LINEAR_STRUCTURED_OUTPUT_MACHINE__H__ #define _LINEAR_STRUCTURED_OUTPUT_MACHINE__H__ #include <shogun/lib/config.h> #include <shogun/machin...
620
2,151
<filename>chrome/browser/android/chrome_feature_list.h // 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. #ifndef CHROME_BROWSER_ANDROID_CHROME_FEATURE_LIST_H_ #define CHROME_BROWSER_ANDROID_CHROME_FEATURE...
1,204
1,223
<filename>app/src/main/java/com/sdsmdg/harjot/crollerTest/MainActivity.java package com.sdsmdg.harjot.crollerTest; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.SwitchCompat; import android.widget.CompoundButton; import android.widget.Toast; public...
1,094
679
<reponame>Grosskopf/openoffice<filename>main/ooxml/source/framework/JavaOOXMLParser/src/org/apache/openoffice/ooxml/parser/AcceptingStateTable.java<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor licen...
709
3,508
package com.fishercoder; import com.fishercoder.solutions._1813; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.assertEquals; public class _1813Test { private static _1813.Solution1 solution1; @BeforeClass public static void setup() { solution1 = new _1813.So...
341
2,984
<reponame>ieugen/calcite /* * 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 * ...
3,986
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...
1,770
9,945
<reponame>lukaslihotzki/synapse # Copyright 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
460
406
/** 🍪 the_hyp0cr1t3 🍪 06.09.2021 00:33:57 **/ #ifdef W #include <k_II.h> #else #include <bits/stdc++.h> using namespace std; #endif #define pb emplace_back #define all(x) x.begin(), x.end() #define sz(x) static_cast<int32_t>(x.size()) auto chmax = [](auto& A, auto&& B) { return B > A? A = B, true : fals...
726
852
<reponame>ckamtsikis/cmssw<filename>DataFormats/Provenance/interface/LuminosityBlockRange.h #ifndef DataFormats_Provenance_LuminosityBlockRange_h #define DataFormats_Provenance_LuminosityBlockRange_h // -*- C++ -*- // // Package: DataFormats/Provenance // Class : LuminosityBlockRange // /**\class LuminosityBlo...
960
348
<filename>docs/data/leg-t2/065/06501464.json {"nom":"Vielle-Adour","circ":"1ère circonscription","dpt":"Hautes-Pyrénées","inscrits":410,"abs":203,"votants":207,"blancs":7,"nuls":4,"exp":196,"res":[{"nuance":"REM","nom":"<NAME>","voix":119},{"nuance":"FI","nom":"Mme <NAME>","voix":77}]}
120
484
/* * Copyright 2017 Xiaomi, 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 in ...
1,155
1,511
/* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2006 Imendio AB * * This library is free software; you can redistribute it and/or #define MY_TYPE_SINGLETON (my_singleton_get_type ()) #define MY_SINGLETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MY_TYPE_SINGLETON, MySingleto...
295
1,091
<filename>apps/kubevirt-node/app/src/main/java/org/onosproject/kubevirtnode/cli/KubevirtListApiConfigsCommand.java /* * Copyright 2020-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
1,015
823
<filename>src/lib/openjpip/faixbox_manager.c /* * $Id$ * * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium * Copyright (c) 2002-2014, Professor <NAME> * Copyright (c) 2010-2011, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modif...
3,588
1,953
<reponame>Riessarius/mne-python """ .. _tut-fnirs-processing: Preprocessing functional near-infrared spectroscopy (fNIRS) data ================================================================ This tutorial covers how to convert functional near-infrared spectroscopy (fNIRS) data from raw measurements to relative oxyha...
4,870
30,023
"""Define constants for the GeoNet NZ Quakes integration.""" from datetime import timedelta from homeassistant.const import Platform DOMAIN = "geonetnz_quakes" PLATFORMS = [Platform.SENSOR, Platform.GEO_LOCATION] CONF_MINIMUM_MAGNITUDE = "minimum_magnitude" CONF_MMI = "mmi" FEED = "feed" DEFAULT_FILTER_TIME_INTER...
183
1,916
/* -------------------------------------------------------------------------- * * Simbody(tm): SimTKmath * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
2,226
528
/****************************************************************************** Copyright 2019-2020 <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/LICENS...
9,908
937
<reponame>shisheng-1/cyclops package cyclops.data.talk.arraylist.immutable.stub; public class ImmutableList<E> { private final E[] elementData; private ImmutableList(E[] elementData){ this.elementData=elementData; } }
94
858
//===-- options.h - jit support ---------------------------------*- C++ -*-===// // // LDC – the LLVM D compiler // // This file is distributed under the Boost Software License. See the LICENSE // file for details. // //===----------------------------------------------------------------------===...
224
634
<gh_stars>100-1000 package com.intellij.vcs.log; import javax.annotation.Nonnull; import java.awt.*; /** * @author <NAME> */ public interface VcsRefType { /** * <p>Tells if this reference type should be considered a branch.</p> * <p> * <p>Although there are different ref types across different VCSs, ge...
388
359
<reponame>nyx-litenite/never<filename>getopt.c /* MIT License 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, mer...
1,166
648
{"resourceType":"DataElement","id":"ImplementationGuide.page.name","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ImplementationGuide.page.name","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"ImplementationGuide.page.name","short":"...
148
11,699
#include "short_name.h" #include "base64.h" TI_NAMESPACE_BEGIN namespace { const std::string alphatable = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // e.g. `if` is not a good var name, but `If` // does. const std::string alnumtable = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOP...
297
575
<gh_stars>100-1000 // Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/components/help_app_ui/help_app_untrusted_ui.h" #include "chromeos/components/help_app_ui/help_app_ui_delegate.h" #...
771
1,224
<reponame>timgates42/processing.py """ * List of objects * based on ArrayListClass <NAME>. * * This example demonstrates how to use a Python list to store * a variable number of objects. Items can be added and removed * from the list. * * Click the mouse to add bouncing balls. """ balls = [] ballWidth = 48 ...
706
364
<reponame>xiaobing007/dagli package com.linkedin.dagli.handle; import com.linkedin.dagli.dag.DAG; import com.linkedin.dagli.dag.DAG1x5; import com.linkedin.dagli.dag.DAG2x3; import com.linkedin.dagli.dag.DAGExecutor; import com.linkedin.dagli.dag.DelayedIdentity; import com.linkedin.dagli.dag.PreparedDAGExecutor; impo...
1,196
2,405
<reponame>kiki-lamb/Arduino_STM32 #ifndef __FLASH_STM32_H #define __FLASH_STM32_H #ifdef __cplusplus extern "C" { #endif typedef enum { FLASH_BUSY = 1, FLASH_ERROR_PG, FLASH_ERROR_WRP, FLASH_ERROR_OPT, FLASH_COMPLETE, FLASH_TIMEOUT, FLASH_BAD_ADDRESS } FLASH_Status; #define IS_FLASH_ADDRESS(ADDRESS) (((ADD...
294
1,027
/** * Global.cpp * * Implementation for the global variable * * @author <NAME> <<EMAIL>> * @copyright 2013 Copernica BV */ #include "includes.h" /** * Namespace */ namespace Php { /** * Move constructor * @param global */ Global::Global(Global &&global) _NOEXCEPT : Value(std::move(global)), ...
744
355
/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
546
2,875
# -*- coding: utf-8 -*- # @Time : 2017/7/13 下午2:23 # @Author : play4fun # @File : sift.py # @Software: PyCharm """ sift.py:尺度不变特征变换 关键点 极值点 定位 """ import cv2 import numpy as np img = cv2.imread('../data/home.jpg') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) sift = cv2.xfeatures2d.SIFT_create() kp = sift.d...
379
1,863
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
1,176
2,360
<reponame>LiamBindle/spack<gh_stars>1000+ # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PySoupsieve(PythonPackage): """A modern CSS sele...
448
607
<reponame>AIHZP/andysworkshop-stm32plus /* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once namespace stm32plus { /** * STL compatible forward iterator that can be used to...
1,595
310
<reponame>luccaportes/DESlib import numpy as np from sklearn.datasets import make_classification from sklearn.ensemble import AdaBoostClassifier from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler # DCS techniques from deslib.dcs.a_priori import APriori from deslib.dcs...
1,531
1,049
<reponame>edvlili/Time-Appliance-Project<filename>Time-Card/TEST/ptp/userptp.c #include <err.h> #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <libgen.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <sys/ioctl.h> #include <linux/ptp_clock.h> struct { const char *ptp_dev; ...
2,109
418
// // UIAlertView+BFError.h // OpenShop // // Created by <NAME> // Copyright (c) 2015 Business Factory. All rights reserved. // #import "BFError.h" NS_ASSUME_NONNULL_BEGIN /** * `BFError` category of UIAlertView adds ability to present error description with possible * recovery options. Recovery options are co...
244
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-v5rq-2q5p-p82v", "modified": "2022-05-13T01:23:03Z", "published": "2022-05-13T01:23:03Z", "aliases": [ "CVE-2019-9192" ], "details": "** DISPUTED ** In the GNU C Library (aka glibc or libc6) through 2.29, check_dst_limits_calc_pos_1 in posix/...
565
1,687
<filename>13-Dynamic-Programming-1/13-5-LIS/最大子段和以及相关问题/0053-maximum-subarray/src/Solution.java public class Solution { // 方法一:暴力解法(可以不看) // 时间复杂度:O(N^3) // 空间复杂度:O(1) public int maxSubArray(int[] nums) { int len = nums.length; int res = Integer.MIN_VALUE; for (int i =...
491