max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,267
<filename>example/Blinker_DuerOS/DuerOS_SENSOR/DuerOS_SENSOR.py #!/usr/bin/env python # -*- coding: utf-8 -*- from Blinker.Blinker import Blinker, BlinkerButton, BlinkerNumber, BlinkerDuerOS from Blinker.BlinkerConfig import * from Blinker.BlinkerDebug import * auth = '<PASSWORD> Device <PASSWORD>' BLINKER_DEBUG.deb...
1,103
1,473
<reponame>ljmf00/autopsy /* * Autopsy Forensic Browser * * Copyright 2019 Basis Technology Corp. * contact: carrier <at> sleuthkit <dot> 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 Licen...
1,268
3,442
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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.or...
1,139
1,346
package com.ctrip.platform.dal.daogen.dao; import com.ctrip.platform.dal.dao.DalHints; import com.ctrip.platform.dal.dao.DalRowMapper; import com.ctrip.platform.dal.dao.DalTableDao; import com.ctrip.platform.dal.dao.StatementParameters; import com.ctrip.platform.dal.dao.helper.DalDefaultJpaMapper; import com.ctrip.pla...
4,252
6,034
<reponame>ssSlowDown/onemall<gh_stars>1000+ package cn.iocoder.mall.order.biz.dao; import cn.iocoder.mall.order.api.bo.OrderCommentBO; import cn.iocoder.mall.order.api.dto.OrderCommentReplyCreateDTO; import cn.iocoder.mall.order.api.dto.OrderCommentReplyPageDTO; import cn.iocoder.mall.order.biz.dataobject.OrderComment...
954
445
<filename>src/prodbg/MemoryView/MemoryView.h #pragma once #include <QtCore/QPointer> #include <QtWidgets/QWidget> #include "Backend/IBackendRequests.h" #include "View.h" class Ui_MemoryView; namespace prodbg { //////////////////////////////////////////////////////////////////////////////////////////////////////////...
369
1,102
<reponame>johny-c/ViZDoom<filename>src/vizdoom/src/timidity/common.cpp /* TiMidity -- Experimental MIDI to WAVE converter Copyright (C) 1995 <NAME> <<EMAIL>> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the...
563
643
<reponame>RasmusWL/ql<filename>java/ql/test/kotlin/library-tests/java-kotlin-collection-type-generic-methods/Test.java import java.util.Map; import java.util.AbstractMap; import java.util.Collection; import java.util.AbstractCollection; import java.util.List; import java.util.AbstractList; public class Test { publi...
275
2,338
<gh_stars>1000+ """ Test that variable expressions of type short are evaluated correctly. """ import AbstractBase from lldbsuite.test.decorators import * class ShortExprTestCase(AbstractBase.GenericTester): mydir = AbstractBase.GenericTester.compute_mydir(__file__) def test_short_type(self): """Te...
427
1,520
class internal1: pass class internal2: Token = internal1 tokens = internal2()
32
2,127
<reponame>GarvenYu/spring-boot-all<filename>spring-boot-sharding/src/main/java/com/lance/sharding/mapper/ProvinceMapper.java package com.lance.sharding.mapper; import com.lance.sharding.model.Province; import java.util.List; import java.util.Map; /** * * @author Lance * @since 2019-03-01 23:05:40 */ public interfac...
751
376
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Static Memory Controller namespace SmcSetup0{ ///<SMC Setup Register (CS_number = 0) using Addr = Register::Address<0xffffec00,0xc0c0c0c0,0x00000000,unsigned>; ///NWE Setup Length constexpr Register::FieldLocation<Addr,Reg...
10,617
349
<filename>docs/page.bzl """A helper module for generating documentation for rules_rust""" def page(name, symbols, header_template = None): """Define a collection of attributes used to generate a page of documentation Note, all templates are Velocity files: https://velocity.apache.org/engine/devel/user-guide.h...
730
14,668
<reponame>zealoussnow/chromium // 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_PUBLIC_FRAME_SCHEDULER_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM...
2,422
787
// OJ: https://leetcode.com/problems/one-edit-distance/ // Author: github.com/lzl124631x // Time: O(N) // Space: O(1) class Solution { public: bool isOneEditDistance(string s, string t) { if (s.size() < t.size()) swap(s, t); if (s.size() - t.size() > 1) return false; int i = 0; while...
258
739
#!/usr/bin/env python # example layout.py import pygtk pygtk.require('2.0') import gtk import random class LayoutExample: def WindowDeleteEvent(self, widget, event): # return false so that window will be destroyed return False def WindowDestroy(self, widget, *data): # exit main loop ...
1,115
623
package me.chanjar.jms.server.request; import com.lmax.disruptor.EventTranslatorOneArg; import com.lmax.disruptor.RingBuffer; import me.chanjar.jms.msg.RequestDto; public class RequestDtoEventProducer { private static final EventTranslatorOneArg<RequestDtoEvent, RequestDto> TRANSLATOR = (event, sequence, req...
217
6,451
import logging from great_expectations.expectations.metrics.metric_provider import MetricProvider logger = logging.getLogger(__name__) class TableMetricProvider(MetricProvider): domain_keys = ( "batch_id", "table", "row_condition", "condition_parser", )
119
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,840
1,144
<filename>hardware/modules/bluetooth/bluez/ble_server.h #ifndef _BLE_SERVER_H_ #define _BLE_SERVER_H_ #ifdef __cplusplus extern "{" #endif #include <hardware/bt_common.h> //#include "app_manager.h" #define MAX_ADV_DATA_LEN 31 #define BLE_SERVICE_UUID16 0xffe1 #define BLE_SERVICE_UUID "0000ffe1-0000-1000-8000-00805f...
569
2,577
<reponame>mlehotsky13/camunda-bpm-platform /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you ...
612
743
<gh_stars>100-1000 package com.mitchellbosecke.pebble.extension.escaper; public interface EscapingStrategy { String escape(String input); }
50
1,444
package mage.cards.g; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.common.AttachEffect; import mage.abilities.effects.common.DrawCardSourceControllerEffect; import m...
618
846
<reponame>shannon2014/DroidAssist package com.didichuxing.tools.droidassist.transform.enhance; import com.didichuxing.tools.droidassist.util.Logger; import javassist.CannotCompileException; import javassist.CtClass; import javassist.NotFoundException; import javassist.expr.MethodCall; /** * Transform that adds meth...
709
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <memory> #include <ngraph/opsets/opset3.hpp> #include "ngraph_functions/utils/ngraph_helpers.hpp" namespace ngraph { namespace builder { std::shared_ptr<ngraph::Node> makeComparison(const ngraph::Output<Node> &in0, ...
663
1,212
<reponame>scopedsecurity/lsassy import logging import os import time import base64 import random import string from lsassy.impacketfile import ImpacketFile from lsassy.dumpmethod import IDumpMethod class DumpMethod(IDumpMethod): def __init__(self, session, timeout): super().__init__(session, timeout) ...
1,118
2,151
/* * Copyright (C) 2004, 2005, 2008 <NAME> <<EMAIL>> * Copyright (C) 2004, 2005, 2006, 2007, 2008 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * versi...
1,223
1,210
// // Created by WrBug on 2018/3/23. // #include "native.h" #include "inlineHook.h" #define TAG "developerhelper.xposed.native.native-->" JNIEXPORT void JNICALL Java_com_wrbug_developerhelper_xposed_dumpdex_Native_dump (JNIEnv *env, jclass obj, jstring packageName) { static bool is_hook = false; cha...
938
309
import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.SwingUtilities; import vtk.vtkActor; import vtk.vtkArrowSource; import vtk.vtkNativeLibrary; import vtk.vtkPanel;...
2,377
14,668
// 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 "components/send_tab_to_self/send_tab_to_self_bridge.h" #include <algorithm> #include "base/bind.h" #include "base/callback_helpers.h" #include...
8,853
946
<gh_stars>100-1000 #include "lsys/LSystem.hpp" #include <boost/test/unit_test.hpp> using namespace utymap::lsys; BOOST_AUTO_TEST_SUITE(Lsys_Rules) BOOST_AUTO_TEST_CASE(GivenTwoWordRulesWithDifferentWords_Productions_HandlesThemDifferently) { auto lsystem = LSystem(); lsystem.productions[std::make_shared<WordRu...
369
3,680
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
1,165
507
<filename>test/lib/ufe/testAttributeBlock.py #!/usr/bin/env python # # Copyright 2021 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/licenses/LICENSE-...
5,981
1,144
package de.metas.materialtracking.impl; /* * #%L * de.metas.materialtracking * %% * Copyright (C) 2015 metas GmbH * %% * 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 o...
2,920
995
package ui.graphing.logical; import core.document.graph.IEdge; import core.document.graph.INode; import javafx.geometry.Point2D; import ui.graphing.Cell; import ui.graphing.Edge; import ui.graphing.Layout; import ui.graphing.Visualization; import java.util.*; import java.util.stream.Collectors; /** * Runs a physics...
10,951
796
<reponame>harmonyos-mirror/OpenArkCompiler-test /* * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * *...
609
2,517
<filename>libcaf_core/caf/intrusive/task_queue.hpp<gh_stars>1000+ // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include <...
3,305
335
<reponame>Safal08/Hacktoberfest-1<filename>S/Showing_noun.json { "word": "Showing", "definitions": [ "The action of showing something, or the fact of being shown.", "A presentation of a cinema film or television programme.", "A performance of a specified quality.", "The way in wh...
148
5,813
<filename>extensions-core/druid-basic-security/src/main/java/org/apache/druid/security/basic/authentication/db/updater/CoordinatorBasicAuthenticatorMetadataStorageUpdater.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed ...
6,438
408
#ifndef RENDERFUNCTIONS_HPP #define RENDERFUNCTIONS_HPP #include <Messages.hpp> #include <PacketStructs/Color.hpp> #include "Renderer.hpp" #include "InterfaceBase/InterfaceBase.hpp" #ifdef __cplusplus extern "C" { #endif namespace RenderFunctions { DLL_EXPORT RLBotCoreStatus RLBOT_CORE_API RenderGroup(void* rend...
682
1,037
<reponame>fgdadiaonan/android-open-project-demo package com.grumoon.volleydemo.util; import android.content.Context; import com.android.volley.RequestQueue; import com.android.volley.toolbox.Volley; public class VolleyUtil { private volatile static RequestQueue requestQueue; /** 返回RequestQueue单例 **/ public stat...
210
328
import sys import os import math import mxnet as mx import memonger def ConvModule(sym, num_filter, kernel, pad=(0, 0), stride=(1, 1), fix_gamma=True): conv = mx.sym.Convolution(data=sym, kernel=kernel, stride=stride, pad=pad, num_filter=num_filter) bn = mx.sym.BatchNorm(data=conv, fix_gamma=fix_gamma) act...
1,001
741
<gh_stars>100-1000 package com.sjhy.plugin.ui.component; import com.intellij.icons.AllIcons; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.ui.Messages; import com.intellij.ui.CollectionListModel; import com.intellij.ui.border.CustomLineBorder; import com.intellij.ui.components.JBList; import ...
4,012
513
<gh_stars>100-1000 package com.zmops.iot.web.product.service; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.zmops.iot.domain.product.Product; import com.zmops.iot.domain.product.ProductAttribute; import com.zmops.iot.domain.product.query.QProduct; import com.zmops.iot.domain...
6,095
322
/* * 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 ...
2,499
1,382
<reponame>vankxr/liquid-dsp<filename>src/fec/bench/packetizer_decode_benchmark.c /* * Copyright (c) 2007 - 2015 <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 restricti...
1,824
605
/* OpenCL runtime library: clGetKernelSubGroupInfo() Copyright (c) 2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
883
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. #include "chrome/browser/media/media_device_id_salt.h" #include "base/base64.h" #include "base/rand_util.h" #include "base/system/system_monitor.h" #inclu...
591
6,989
<gh_stars>1000+ #pragma once #include <util/system/defaults.h> #include <stlfwd> template <typename TCharType, typename TTraits = std::char_traits<TCharType>> class TBasicString; using TString = TBasicString<char>; using TUtf16String = TBasicString<wchar16>; using TUtf32String = TBasicString<wchar32>; template <ty...
1,407
1,253
<gh_stars>1000+ #include<bits/stdc++.h> using namespace std; ///////Quicksort 3 Partition with median pivot////////////////// //for storing partition locations struct twopoint { int left; int right; }; //for finding median of first,last and middle element to select pivot int medianlocation(vector<int> &vec,int ...
818
7,158
<reponame>ptelang/opencv_contrib // This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include "test_precomp.hpp" namespace opencv_test { namespace { using namespace xphoto; st...
1,013
14,668
<gh_stars>1000+ // 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 IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_PASSWORDS_IN_OTHER_APPS_PASSWORDS_IN_OTHER_APPS_CONSUMER_H_ #define IOS_CHROME_BROWSER_UI_...
263
28,056
package com.alibaba.json.bvt.issue_2300; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.annotation.JSONField; import junit.framework.TestCase; import java.util.Date; public class Issue2300 extends TestCase { public void test_for_issue() throws Exception { ...
481
1,127
<gh_stars>1000+ // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <openvino/core/validation_util.hpp> #include <openvino/op/matmul.hpp> #include "utils.hpp" namespace ov { namespace op { namespace v0 { template<class T> void shape_infer(const ov::op::v0::MatM...
2,635
1,888
<reponame>trhacknonimous/updog<filename>setup.py from setuptools import setup from os import path import updog this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='updog', version=updog.ver...
867
456
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2004-2020 <NAME> // All rights reserved. #include <cstring> namespace djv { namespace Audio { inline const Info& Data::getInfo() const { return _info; } inline uint8_t Data::getChannelCount() const ...
2,141
530
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The contents of this file are subject to the terms of either the Universal Permissive License * v 1.0 as shown at http://oss.oracle.com/licenses/upl * * or the follo...
1,272
823
<gh_stars>100-1000 // // MJRefreshGifHeader+UniversalRefresh.h // MierMilitaryNews // // Created by 李响 on 16/9/21. // Copyright © 2016年 miercn. All rights reserved. // #import "MJRefresh.h" @interface MJRefreshGifHeader (UniversalRefresh) @end @interface MJRefreshBackNormalFooter (UniversalRefresh) @end @inte...
141
1,842
<filename>app/src/main/assets/mock/8shoes.json { "id": 8, "name": "Active shoes", "blurb": "Welcome, my name is Daniel and i to actively spend my time. Every free moment I jog, walk or play tennis. Sport is not only health its my great passion, something that gives meaning to my life and gives me lots of joy. As ...
1,944
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
2,744
14,668
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_MESSAGE_HANDLER_H_ #define CONTENT_PUBLIC_BROWSER_WEB_UI_MESSAGE_HANDLER_H_ #include <ostream> #include <string...
1,934
1,103
/* * Copyright 2021 Netflix, 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 appli...
539
352
/* *Author:GeneralSandman *Code:https://github.com/GeneralSandman/TinyWeb *E-mail:<EMAIL> *Web:www.generalsandman.cn */ /*---XXX--- * **************************************** * */ #include <tiny_base/sharedmemory.h> #include <tiny_base/semaphore.h> #include <tiny_base/log.h> #include <tiny_base/api.h> #inc...
529
392
<filename>apollo-backend/src/test/java/io/logz/apollo/notifications/mustache/TemplateInjectorTest.java package io.logz.apollo.notifications.mustache; import org.junit.Test; import static java.util.Collections.singletonMap; import static org.assertj.core.api.Assertions.assertThat; public class TemplateInjectorTest { ...
277
937
<gh_stars>100-1000 package com.oath.cyclops.internal.stream.spliterators; import cyclops.control.Option; import cyclops.data.tuple.Tuple; import cyclops.data.tuple.Tuple2; import java.util.Spliterator; import java.util.function.Consumer; import java.util.function.Function; import static cyclops.data.tuple.Tuple.tupl...
602
353
<reponame>lihongwu19921215/nutzmore package org.nutz.plugins.thrift.netty.server.transport; import java.net.SocketAddress; /** * @author rekoe * */ public interface TNettyTransportContext { public SocketAddress getRemoteAddress(); }
82
892
{ "schema_version": "1.2.0", "id": "GHSA-vf2m-j6h8-v6c5", "modified": "2022-05-13T01:19:09Z", "published": "2022-05-13T01:19:09Z", "aliases": [ "CVE-2018-14786" ], "details": "Becton, Dickinson and Company (BD) Alaris Plus medical syringe pumps (models Alaris GS, Alaris GH, Alaris CC, and Alaris TIVA)...
643
1,777
<reponame>mrdengbo/xdotool<filename>cmd_mousemove.c<gh_stars>1000+ #include "xdo_cmd.h" #include <math.h> #include <string.h> struct mousemove { Window window; int clear_modifiers; int opsync; int polar_coordinates; int x; int y; int screen; useconds_t delay; int step; }; static int _mousemove(conte...
3,023
2,083
/* * Copyright (C) 2015 Karumi. * * 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 w...
404
777
<filename>cc/trees/layer_tree_host_in_process.cc // Copyright 2011 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 "cc/trees/layer_tree_host_in_process.h" #include <stddef.h> #include <stdint.h> #include <algo...
11,578
1,076
<filename>autoplayvideos/src/main/java/com/allattentionhere/autoplayvideos/AAH_CustomRecyclerView.java package com.allattentionhere.autoplayvideos; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Canvas; import android.graphics.Point; import android.g...
7,100
448
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #pragma once #include <windows.h> #include <winternl.h> // ---------------------------------------------------------------------------- // TYPE DEFINITIONS ...
6,932
427
package modern.challenge; import java.util.Arrays; import java.util.Comparator; public final class Strings { private Strings() { throw new AssertionError("Cannot be instantiated"); } public enum Sort { ASC, DESC } public static void sortArrayByLengthV1(String[] strs, Sort direct...
889
1,314
/* * Copyright (c) 2009 <NAME> * * This file is part of Patchca CAPTCHA library. * * Patchca is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your ...
652
737
<gh_stars>100-1000 # -*- coding: utf-8 -* import torch from ...common_opr.common_loss import sigmoid_focal_loss_jit from ...module_base import ModuleBase from ..loss_base import TRACK_LOSSES @TRACK_LOSSES.register class FocalLoss(ModuleBase): default_hyper_params = dict( name="focal_loss", back...
1,031
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...
6,278
777
<reponame>google-ar/chromium // Copyright 2016 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/offline_pages/core/background/update_request_task.h" #include <vector> #include "base/bind.h" #include...
576
852
#ifndef _FWCANDIDATEHGCALLEGOPROXYBUILDER_H_ #define _FWCANDIDATEHGCALLEGOPROXYBUILDER_H_ // -*- C++ -*- // // Package: Candidates // Class : FWCandidateHGCalLegoProxyBuilder // // // User include files #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h" #include "Fireworks/Core/interface/Cont...
1,739
4,895
<reponame>vipavlovic/pyprobml<gh_stars>1000+ #Illustrate low vs high variance of loss across minibatches. #Code by <NAME>. # Reproduces hand-drawing in # https://www.inference.vc/notes-on-the-origin-of-implicit-regularization-in-stochastic-gradient-descent/ import superimport import numpy as np import GPy import m...
840
724
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
1,722
471
<gh_stars>100-1000 from typing import Generator, List, Type, Union import attr from jsonpath_ng.ext.parser import parse as jsonpath_parse from corehq.motech.requests import Requests from corehq.motech.utils import simplify_list from .const import SYSTEM_URI_CASE_ID from .bundle import get_bundle, get_next_url, iter_...
3,124
1,338
/* * Copyright 2008, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include <algorithm> #include <string> #include <vector> #include <dirent.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <OS.h> #include <Path.h> #include <SH...
2,921
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
683
643
<gh_stars>100-1000 package com.hellokoding.jpa; import com.hellokoding.jpa.book.Book; import com.hellokoding.jpa.book.BookRepository; import com.hellokoding.jpa.book.Publisher; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRu...
306
675
<gh_stars>100-1000 /* File: icns.h Copyright (C) 2001-2012 <NAME> <<EMAIL>> Copyright (C) 2002 <NAME> <<EMAIL>> With the exception of the limited portions mentiond, this library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the...
4,588
679
<reponame>Grosskopf/openoffice<filename>main/sw/inc/fmtrfmrk.hxx /************************************************************** * * 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 * r...
621
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-qpvj-752h-7r4r", "modified": "2022-05-13T01:18:36Z", "published": "2022-05-13T01:18:36Z", "aliases": [ "CVE-2018-0891" ], "details": "ChakraCore, and Internet Explorer in Microsoft Windows 7 SP1, Windows Server 2008 and R2 SP1, Windows 8.1 an...
659
3,410
/* * ZMap Copyright 2013 Regents of the University of Michigan * * 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 */ #include "fieldset.h" #inc...
4,402
3,097
<gh_stars>1000+ // // YPRecommendContentCommonStyleLayout.h // Wuxianda // // Created by MichaelPPP on 16/6/13. // Copyright © 2016年 michaelhuyp. All rights reserved. // 普通类型 布局 #import <UIKit/UIKit.h> @interface YPRecommendContentCommonStyleLayout : UICollectionViewLayout @property (nonatomic, assign) CGFloat ...
155
7,830
/* * Copyright (C) 2011, 2012, 2013 Citrix Systems * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, thi...
4,383
1,482
casync def foo(): pass casync : source.python : meta.function.python, source.python def : meta.function.python, source.python, storage.type.function.python : meta.function.python, source.python foo : entity.name.function.python, meta.function.python, source.pyth...
297
984
<filename>src/meta_server/main.cpp // Copyright (c) 2018-present Baidu, 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/license...
2,749
3,428
<gh_stars>1000+ {"id":"01797","group":"easy-ham-1","checksum":{"type":"MD5","value":"bc81a0859adaca5ea082f4db7cdac088"},"text":"From <EMAIL> Thu Sep 19 13:00:03 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) wit...
1,026
927
/* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,427
1,645
<reponame>smsahu/seldon-server /* * Seldon -- open source prediction engine * ======================================= * * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * * ******************************************************************************************** * * Licen...
1,970
456
<reponame>belzecue/DJV<filename>tests/djvSystemTest/FileIOTest.cpp // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2004-2020 <NAME> // All rights reserved. #include <djvSystemTest/FileIOTest.h> #include <djvSystem/FileIO.h> #include <djvSystem/Path.h> #include <limits> #include <sstream> using namespace d...
6,707
820
<gh_stars>100-1000 /** * Copyright 2017 chuan-yun silkcutks <<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/licenses/LICENSE-2.0 * * Unless re...
330
36,552
/* This file was generated by upbc (the upb compiler) from the input * file: * * xds/core/v3/resource_name.proto * * Do not edit -- your changes will be discarded when the file is * regenerated. */ #ifndef XDS_CORE_V3_RESOURCE_NAME_PROTO_UPBDEFS_H_ #define XDS_CORE_V3_RESOURCE_NAME_PROTO_UPBDEFS_H_ #include...
394
936
/* * Copyright 2016, Yahoo Inc. * Licensed under the Apache License, Version 2.0 * See LICENSE file in project root for terms. */ package com.yahoo.elide.core.filter.dialect; import static com.yahoo.elide.core.dictionary.EntityDictionary.NO_VERSION; import static org.junit.jupiter.api.Assertions.assertEquals; impo...
3,295
412
public class Parent { // This is the version of Parent we will run jbmc against, which does // not have a static field 'x'. }
39