max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
3,655
{ "scripts": { "build": "mkdir -p public && echo 'hello from index.txt' > public/index.txt" } }
42
5,385
<gh_stars>1000+ /** * Copyright 2006-2016 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...
4,097
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stda...
1,169
1,305
/* * Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package org.omg.CORBA; /** * A <tt>PolicyErrorCode</tt> which would be filled if the value * request...
228
14,668
<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" #include "net/base/io_buffer.h" MTPDeviceAsyncDelegate::Re...
313
1,273
<filename>p2m/utils.py # Copyright (C) 2019 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, Fudan University # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not ...
625
892
{ "schema_version": "1.2.0", "id": "GHSA-g4wc-2gqq-5g7v", "modified": "2021-12-22T00:01:34Z", "published": "2021-12-18T00:00:42Z", "aliases": [ "CVE-2021-40853" ], "details": "TCMAN GIM does not perform an authorization check when trying to access determined resources. A remote attacker could exploit ...
378
2,743
<reponame>eshbeata/open-paperless from __future__ import unicode_literals from common.classes import PropertyHelper class DocumentMetadataHelper(PropertyHelper): @staticmethod @property def constructor(*args, **kwargs): return DocumentMetadataHelper(*args, **kwargs) def get_result(self, name...
502
577
/** * Copyright 2009, Google Inc. All rights reserved. * Licensed to PSF under a Contributor Agreement. */ package org.python.indexer.ast; import org.python.indexer.Scope; import org.python.indexer.types.NType; import org.python.indexer.types.NUnknownType; import java.util.List; public class NComprehension exten...
862
335
# ifndef CPPAD_SPEED_DET_BY_LU_HPP # define CPPAD_SPEED_DET_BY_LU_HPP /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 <NAME> CppAD is distributed under multiple licenses. This distribution is under the terms of the ...
1,567
3,428
<gh_stars>1000+ {"id":"00486","group":"spam-2","checksum":{"type":"MD5","value":"7f5cde6ad9f34dcbe56a1fd73138b351"},"text":"From <EMAIL> Mon Jun 24 17:06:55 2002\nReturn-Path: mal<EMAIL>.ru\nDelivery-Date: Tue May 28 04:58:04 2002\nReceived: from mandark.labs.netnoteinc.com ([213.105.180.140]) by\n dogma.slashnull....
1,510
325
import glob import os import pathlib import plistlib import sqlite3 import scripts.artifacts.artGlobals #use to get iOS version -> iOSversion = scripts.artifacts.artGlobals.versionf from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, is_platform_windows def get_dhcphp(f...
764
13,889
<reponame>VICTORVICKIE/kivy<gh_stars>1000+ ''' Clipboard xclip: an implementation of the Clipboard using xclip command line tool. ''' __all__ = ('ClipboardXclip', ) from kivy.utils import platform from kivy.core.clipboard._clipboard_ext import ClipboardExternalBase if platform != 'linux': raise SystemError('unsu...
300
335
<filename>B/Belvedere_noun.json { "word": "Belvedere", "definitions": [ "A summer house or open-sided gallery, typically at rooftop level, commanding a fine view." ], "parts-of-speech": "Noun" }
86
2,151
<gh_stars>1000+ // Copyright 2017 The Dawn Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
11,745
2,151
<gh_stars>1000+ /* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.internal.util.junit; import org.junit.runner.notification.Failure; import org.mockito.internal.exceptions.ExceptionIncludingMockitoWarnings; import org.mockito.int...
446
14,668
<reponame>zealoussnow/chromium<filename>chrome/browser/enterprise/connectors/device_trust/signals/signals_service_factory.h // 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_ENTERPR...
312
400
import torch import torch.nn as nn from torch import Tensor from typing import Any from typing import List from typing import Callable from typing import Optional from .....modules.blocks import Conv2d def conv3x3( in_channels: int, out_channels: int, stride: int = 1, groups: int = 1, dilation:...
3,964
435
<gh_stars>100-1000 // #include "util/recordio.h" // #include <zlib.h> // #include <string> // #include "glog/logging.h" // namespace PS { // const int RecordWriter::kMagicNumber = 0x3ed7230a; // std::string RecordWriter::Compress(std::string const& s) const { // const unsigned long source_size = s.size(); // NOLI...
629
619
<gh_stars>100-1000 // Copyright <NAME> 2017. // 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 "gtest/gtest.h" #include "react/state.h" #include "react/observer.h" #include <thread...
4,613
3,372
<gh_stars>1000+ /* * Copyright 2016-2021 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 * * ...
3,773
462
#ifndef __PTR_MANAGER_H__ #define __PTR_MANAGER_H__ // node #include <node.h> // nan #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #include <nan.h> #pragma GCC diagnostic pop // gdal #include <gdal_priv.h> // ogr #include <ogrsf_frmts.h> #include <map> #include <list> using name...
586
14,668
<reponame>zealoussnow/chromium # 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. """Tests for upload_test_result_artifacts.""" from __future__ import print_function import json import mock import os import ...
4,455
453
<filename>upvote/gae/lib/bit9/api.py<gh_stars>100-1000 # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
5,478
1,745
<filename>Source/Scripting/bsfScript/Generated/BsScriptLimitConeRange.generated.h<gh_stars>1000+ //********************************* bs::framework - Copyright 2018-2019 <NAME> ************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be rem...
407
777
<reponame>google-ar/chromium // 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. #include "chrome/browser/chromeos/file_manager/zip_file_creator.h" #include <vector> #include "base/bind.h" #include "base/...
1,488
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Plaines-Saint-Lange","circ":"2ème circonscription","dpt":"Aube","inscrits":208,"abs":128,"votants":80,"blancs":7,"nuls":2,"exp":71,"res":[{"nuance":"REM","nom":"<NAME>","voix":39},{"nuance":"LR","nom":"<NAME>","voix":32}]}
112
5,169
{ "name": "NKJNetworkActivityIndicator", "version": "0.1.2", "summary": "A network activity manager that show and hide network activity.", "description": " NKJNetworkIndicator. A network activity manager that show and hide network activity.\n\n Manage with above keys....
401
1,895
<reponame>a759389099/mybatis-plus-samples<gh_stars>1000+ package com.baomidou.mybatisplus.samples.reduce.springmvc.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.KeySequence; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annot...
228
5,300
package hello.home.entity; import com.techempower.data.annotation.*; import com.techempower.js.legacy.*; /** * A fortune entity. */ @Entity public class Fortune extends GhDataEntity implements Comparable<Fortune> { private String message; /** * Default Constructor. */ public Fortune() ...
420
434
#include "kvm/virtio-vsock.h" #include "kvm/virtio-pci-dev.h" #include "kvm/kvm.h" #include "kvm/pci.h" #include "kvm/ioeventfd.h" #include "kvm/guest_compat.h" #include "kvm/virtio-pci.h" #include "kvm/virtio.h" #include <linux/kernel.h> #include <linux/virtio_vsock.h> #include <linux/vhost.h> #define VIRTIO_VSOCK_Q...
3,530
1,687
<filename>12-Backtracking-And-DFS/Type-3-FloodFill/1034-coloring-a-border/src/Solution2.java import java.util.LinkedList; import java.util.Queue; public class Solution2 { // 方法二:广度优先遍历 private int rows; private int cols; private int[][] grid; private int origin; public static final int[][] DI...
1,308
1,010
{ "profiles": { "CommonCache.Test.MsalJava": { "commandName": "Project", "commandLineArgs": "--inputPath \"C:\\Users\\henrikm\\AppData\\Local\\Temp\\tmpDDB4.tmp\" " } } }
85
938
//===- MipsOptionRecord.cpp - Abstraction for storing information ---------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
1,597
355
#!/usr/bin/env python3 """ Notes: I wanted to use this C-based graph library, but it's apt source URLs were missing files AND the site used to log issues was failing Google App Auth. Not a good sign? https://graph-tool.skewed.de igraph notes: NOTES: Terms with namespace: external are skipped. Developer: Once p...
4,002
348
<filename>docs/data/t2/064/64158.json {"nom":"Cabidos","dpt":"Pyrénées-Atlantiques","inscrits":173,"abs":27,"votants":146,"blancs":11,"nuls":5,"exp":130,"res":[{"panneau":"1","voix":93},{"panneau":"2","voix":37}]}
93
763
<gh_stars>100-1000 package org.batfish.datamodel.acl; import static org.batfish.datamodel.acl.AclLineMatchExprs.ESTABLISHED_TCP_FLOWS; import static org.batfish.datamodel.acl.AclLineMatchExprs.NEW_FLOWS; import static org.batfish.datamodel.acl.AclLineMatchExprs.NEW_TCP_FLOWS; import static org.batfish.datamodel.acl.Ac...
1,184
2,124
<gh_stars>1000+ {"person":{"id":"34790912@N05","nsid":"34790912@N05","ispro":0,"can_buy_pro":0,"iconserver":"3729","iconfarm":4,"path_alias":null,"username":{"_content":"me.json"},"realname":{"_content":"<NAME>"},"mbox_sha1sum":{"_content":"48808a5fde9fed5261370554bdf317f891009e0d"},"location":{"_content":""},"timezone...
286
488
// This is an example of a recursive macro, it is detect when it is in the input source file. // to demonstrate the bug it has to be in a header file. // #define always_inline __attribute__ (( always_inline )) __inline__ // #define inline always_inline #include "test2015_159.h" static void foobar(); static inline vo...
120
380
/* Copyright (C) 2006 <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 License, or (at your option) any later version. This program is distributed in the hope that it w...
734
568
<gh_stars>100-1000 // // Copyright (c) 2009, <NAME> // 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 lis...
2,664
876
#pragma once #include "rapidcheck/Seq.h" namespace rc { namespace shrink { /// Tries to shrink the given container by removing successively smaller /// consecutive chunks of it. /// /// `Container` must support the following: /// - `RandomAccessIterator begin(Container)` /// - `RandomAccessIterator end(Container)` /...
492
333
<reponame>alipay/alipay-sdk-java-all<filename>src/main/java/com/alipay/api/domain/AlipayAssetVoucherTemplateInfoQuerybudgetModel.java package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 券模板预算查询 * * @author auto create * @since 1.0, 202...
682
1,729
/************************************************************************ * file name : round_progress_widget.h * ----------------- : * creation time : 2018/05/17 * author : <NAME> * email : <EMAIL> * ----------------- : * description : The file contains declaration of RoundProg...
3,761
903
<gh_stars>100-1000 /* * Copyright 2021 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 * * o...
1,466
834
#using <System.Windows.Forms.dll> #using <System.Drawing.dll> #using <System.dll> #using <System.Data.dll> using namespace System; using namespace System::Data; using namespace System::ComponentModel; using namespace System::Windows::Forms; public ref class Form1: public Form { protected: RichTextBox^ richTextBox1...
358
988
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
6,009
1,887
<gh_stars>1000+ package org.springframework.test.ioc; import org.junit.Test; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; import org.springframework.test.bean.Car; import org.springframework.test.bean.Person; import ...
357
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...
3,002
446
<gh_stars>100-1000 from datetime import date from unittest import mock from freezegun import freeze_time from core.utils import NOMINATIM_URL, get_coordinates_for_city, next_deadline @mock.patch('requests.get') def test_get_coordinates_for_city(mock_get): mock_get.return_value.json.return_value = [{ 'la...
902
1,562
/* This file was generated by upbc (the upb compiler) from the input * file: * * envoy/api/v2/core/health_check.proto * * Do not edit -- your changes will be discarded when the file is * regenerated. */ #include <stddef.h> #if COCOAPODS==1 #include "third_party/upb/upb/msg.h" #else #include "upb/msg.h"...
3,485
5,169
<reponame>Gantios/Specs { "name": "Fengmap_iOS_SDK", "version": "2.2.2", "summary": "蜂鸟视图地图端 iOS SDK", "homepage": "https://www.fengmap.com", "license": "MIT", "authors": { "fengmap-devs": "<EMAIL>" }, "platforms": { "ios": "8.0" }, "source": { "git": "https://github.com/fengmap-devs/Fen...
395
2,042
<reponame>oguzturker8sdfep/imranvisualpath1<gh_stars>1000+ package com.yc.music.inter; public interface EventCallback<T> { void onEvent(T t); }
61
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stda...
5,076
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.datafactory.models; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; /** Resource collection API o...
1,803
480
<gh_stars>100-1000 /* Main initializer for GEOS wrapper */ #include "preface.h" #ifdef RGEO_GEOS_SUPPORTED #include <ruby.h> #include <geos_c.h> #include "errors.h" #include "factory.h" #include "geometry.h" #include "point.h" #include "line_string.h" #include "polygon.h" #include "geometry_collection.h" #includ...
345
1,062
// // Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57). // // Copyright (C) 1997-2019 <NAME>. // #import "NSObject-Protocol.h" @class NSImmediateActionGestureRecognizer; @protocol NSImmediateActionAnimationController <NSObject> @optional - (void)recognizerDidDismissAnimation...
232
561
########################################################################## # # Copyright (c) 2020, Cinesite VFX 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 ...
2,078
60,910
//Given a circular linked list, implement an algorithm which returns //the node at the beginning of the loop public class FindBeginning { LinkedListNode findBeginning(LinkedListNode head) { LinkedListNode slow = head; LinkedListNode fast = head; /* find meeting point. This will be LOOP_SIZE - k * steps int ...
317
370
import numpy as np from fastdtw import fastdtw from nnmnkwii.baseline.gmm import MLPG from nnmnkwii.preprocessing import trim_zeros_frames from numpy.linalg import norm from sklearn.mixture import GaussianMixture class DTWAligner(object): """Align feature matrices using fastdtw_. .. _fastdtw: https://github....
3,713
428
<reponame>cping/LGame /** * Copyright 2008 - 2015 The Loon Game Engine 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 * * U...
10,343
7,892
/* Copyright 2012-2016 <NAME> <http://drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
1,962
323
/* * Copyright (c) 2014 <NAME> on behalf of AirPair.com * * 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, mo...
2,084
3,384
<reponame>teemobean/XVim<filename>XcodeClasses/Xcode7.0/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/GPUToolsMobileKit.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #pragma mark - // // File: /Applicat...
593
2,151
// 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 "components/metrics/ui/screen_info_metrics_provider.h" #include "build/build_config.h" #include "third_party/metrics_proto/system_profile.pb.h" ...
1,074
1,673
<filename>src/ca65/segment.c /*****************************************************************************/ /* */ /* segment.c */ /* ...
9,877
591
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: CarlifeMusicInitProto.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "CarlifeMusicInitProto.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/once.h> #include <google/protobu...
5,083
14,570
package io.swagger.client.api; import io.swagger.client.ApiClient; import io.swagger.client.EncodingUtils; import io.swagger.client.model.Client; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import feign.*; public interface FakeClassnameTags123Api extends ApiCl...
558
945
<filename>tests/algorithms/algorithm_settings.py # Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """This file provides the canonical settings (dataset, model, algorithms, arguments) for each algorithm to be tested. This can be used throughout the codebase for functional tests, serializ...
2,860
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. #include "testing/gtest/include/gtest/gtest.h" #include "third_party/blink/public/platform/web_back_forward_cache_loader_helper.h" #include "third_party/b...
4,497
567
package com.kennycason.kumo.nlp.tokenizer.core; import com.kennycason.kumo.nlp.tokenizer.api.WordTokenizer; import java.util.Collections; import java.util.List; /** * Disables tokenization * * @author &#64;wolfposd * */ public class NoTokenizer implements WordTokenizer { public List<String> tokenize(final ...
143
1,444
package mage.cards.c; import java.util.UUID; import mage.MageInt; import mage.abilities.keyword.MountainwalkAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; /** * * @author Loki */ public final class CliffThreader extends CardImpl ...
334
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,822
697
// Copyright (C) 2012-2019 The VPaint Developers. // See the COPYRIGHT file at the top-level directory of this distribution // and at https://github.com/dalboris/vpaint/blob/master/COPYRIGHT // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the ...
841
488
template <typename T> struct A { static T v; }; template <typename T> void foo() { auto v = A<T>::v; } void bar() { foo<float>(); foo<double>(); }
71
3,012
<reponame>mefff/edk2 /** @file This file declares Sec Platform Information PPI. This service is the primary handoff state into the PEI Foundation. The Security (SEC) component creates the early, transitory memory environment and also encapsulates knowledge of at least the location of the Boot Firmware ...
629
777
// 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_FAVICON_CHROME_FALLBACK_ICON_CLIENT_H_ #define CHROME_BROWSER_FAVICON_CHROME_FALLBACK_ICON_CLIENT_H_ #include <string> #include <v...
311
3,013
# WaveDB / To-do App # A multi-user To-do list application using WaveDB for data management. # This example is very similar to the todo.py example, except that this # example uses WaveDB instead of an in-memory list. # --- from h2o_wave import main, app, Q, ui, connect, WaveDB, expando_to_dict # A simple class that...
1,573
348
<reponame>arcturus2/constellation /* * Copyright 2010-2021 Australian Signals Directorate * * 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...
5,048
332
<gh_stars>100-1000 /* * Copyright 2013 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 * * Unless ...
1,100
1,283
package com.pengrad.telegrambot.request; import com.pengrad.telegrambot.model.request.InlineKeyboardMarkup; import com.pengrad.telegrambot.response.BaseResponse; import com.pengrad.telegrambot.response.SendResponse; /** * <NAME> * 11 October 2017 */ public class EditMessageLiveLocation extends BaseRequest<EditMess...
453
369
<reponame>JiazeWang/PVN3D #!/usr/bin/env python3 import os import cv2 import tqdm import torch import os.path import numpy as np from common import Config import pickle as pkl from lib.utils.basic_utils import Basic_Utils import scipy.io as scio import scipy.misc from datasets.ycb.ycb_dataset import YCB_Dataset config...
596
488
<reponame>maurizioabba/rose #ifndef FIXUP_DEFINING_AND_NONDEFINING_DECLARATIONS_H #define FIXUP_DEFINING_AND_NONDEFINING_DECLARATIONS_H // DQ (6/27/2005): /*! \brief Fixup all SgDeclarationStatement references to defining and non-defining declarations. \implementation Some declarations are there own defining decl...
314
574
/* * Copyright (C) 2012 Facebook, 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 agr...
626
1,467
<reponame>Deluxe123123/aws-sdk-java-v2 /* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/ap...
1,966
453
#include "headers/log1pf4.h" #include "headers/dom_chkf_less_than.h" static __inline float _log1pf(float x) { float res; vector float vx; vector float vc = { -1.0, -1.0, -1.0, -1.0 }; vx = spu_promote(x, 0); res = spu_extract(_log1pf4(vx), 0); #ifndef _IEEE_LIBM dom_chkf_less_than(vx, vc); #endif return...
164
347
from unittest import TestCase import filters as f from filters.test import BaseFilterTestCase from iota import TryteString from iota.adapter import MockAdapter, async_return from iota.crypto.types import Digest from iota.filters import Trytes from iota.multisig import MultisigIota, AsyncMultisigIota from iota.multisig....
3,269
8,285
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2009, <NAME>'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ A clone of 'sensors' utility on Linux printing hardware temperatures, fans speed and battery info. $ python3 scr...
1,365
1,475
/* * 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 ...
937
1,350
<filename>sdk/postgresqlflexibleserver/azure-resourcemanager-postgresqlflexibleserver/src/main/java/module-info.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. module com.azure.resourcemanager.postgresqlfle...
327
843
<reponame>shashwatsingh/addons-server # Generated by Django 2.2.13 on 2020-07-17 12:33 from django.db import migrations from olympia.constants.scanners import CUSTOMS def backfill_model_version(apps, schema_editor): ScannerResult = apps.get_model('scanners', 'ScannerResult') # Set a default model version for...
256
386
/** * 定时任务模块,提供类Crontab表达式的定时任务,实现参考了Cron4j,同时可以支持秒级别的定时任务定义和年的定义(同时兼容Crontab、Cron4j、Quartz表达式) * * @author <NAME> * @version 6.3.2 * @since JDK 1.8+ */ package org.aoju.bus.cron;
189
935
<filename>spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/db/migration/AbstractBaselineCallback.java /* * Copyright 2019-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance...
1,440
864
<filename>scoops-sample/src/main/java/com/ftinc/themeenginetest/adapters/SwitchColorAdapter.java<gh_stars>100-1000 package com.ftinc.themeenginetest.adapters; import android.os.Build; import android.support.annotation.ColorInt; import android.widget.Switch; import com.ftinc.scoop.adapters.ColorAdapter; import com.fti...
511
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. #include "components/feed/core/v2/request_throttler.h" #include <memory> #include "base/test/task_environment.h" #include "components/feed/core/common/p...
788
463
// // disasm.h // #ifndef rv_disasm_h #define rv_disasm_h namespace riscv { struct disasm : decode { addr_t pc; inst_t inst; disasm() : decode(), pc(0), inst(0) {} }; enum rva { rva_none, rva_abs, rva_pcrel }; struct rvx { rv_op op1; rv_op op2; rva addr; }; // instruction pair constrai...
3,057
540
<reponame>rdjdejong/attention-learn-to-route import sys import random import time from . import oph #fitness will take a set s and a set of weights and return a tuple containing the fitness and the best path def fitness( chrom, s, start_point, end_point, tmax ): augs = [] for i in range( len( s ) ): au...
2,811
627
// // FeedModel.h // DynamicHeightCellLayoutDemo // // Created by August on 15/5/19. // Copyright (c) 2015年 August. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface FeedModel : NSObject @property (nonatomic, copy) NSString *title; @property (nonatomic, copy) NSString ...
133
422
<gh_stars>100-1000 from sqlobject import * from sqlobject.tests.dbtest import * class EmptyClass(SQLObject): pass def test_empty(): if not supports('emptyTable'): return setupClass(EmptyClass) e1 = EmptyClass() e2 = EmptyClass() assert e1 != e2 assert e1.id != e2.id assert e1 ...
179
4,372
<reponame>Trydamere/shardingsphere /* * 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, Versi...
769