max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,588
package xyz.erupt.monitor.vo; import lombok.Getter; import lombok.Setter; import oshi.software.os.OSFileStore; import xyz.erupt.monitor.util.SystemUtil; import java.text.DecimalFormat; /** * @author YuePeng * date 2021/1/23 23:07 */ @Getter @Setter public class SysFile { /** * 盘符路径 */ private S...
594
13,162
#include <eosio/chain/authority.hpp> namespace fc { void to_variant(const eosio::chain::shared_public_key& var, fc::variant& vo) { vo = var.to_string(); } } // namespace fc
80
708
import torch import torch.nn.functional as F def clip_bce(output_dict, target_dict): """Binary crossentropy loss. """ return F.binary_cross_entropy( output_dict['clipwise_output'], target_dict['target']) def get_loss_func(loss_type): if loss_type == 'clip_bce': return clip_bce
124
1,840
<reponame>Gigahawk/cli-visualizer #include <Utils/NcursesUtils.h> #include <Utils/Utils.h> #include <gtest/gtest.h> #include <iostream> #include <ncurses.h> TEST(UtilsTest, LowercaseAllLowerCase) { std::string s{"hello world"}; auto actual = vis::Utils::lowercase(s); std::string expected{"hello world"}; ...
2,900
1,444
<reponame>amc8391/mage package org.mage.test.cards.single.cmr; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * @author JayDi85 */ public class EligethCrossroadsAugurTest extends CardTestPlayerBase { @Test pu...
480
677
<reponame>brianpos/fhir-server<filename>docs/rest/C4BB/SearchParameters/EOBType.json { "resourceType": "SearchParameter", "id": "explanationofbenefit-type", "meta": { "versionId": "1", "lastUpdated": "2020-03-31T06:41:13.000+00:00" }, "text": { "status": "extensions", "div": "<div xmlns=\"http...
1,113
373
package com.dianrong.common.uniauth.server.service.common.notify; /** * Notify的类型. */ public enum NotifyType { /** * 添加用户通知. */ ADD_USER, /** * 系统管理员更新密码通知. */ UPDATE_PSWD_ADMIN, /** * 自己修改密码通知. */ UPDATE_PSWD_SELF; }
182
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 ...
10,989
335
<filename>B/Brittle_noun.json { "word": "Brittle", "definitions": [ "A brittle sweet made from nuts and set melted sugar." ], "parts-of-speech": "Noun" }
76
634
/* * Copyright 2000-2013 JetBrains s.r.o. * * 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 agre...
1,521
2,027
from peewee import OperationalError from data.database import validate_database_precondition from util.config.validators import BaseValidator, ConfigValidationException class DatabaseValidator(BaseValidator): name = "database" @classmethod def validate(cls, validator_context): """ Valida...
281
376
// Copyright (C) 2017 <NAME> // This file is part of the "Nazara Development Kit" // For conditions of distribution and use, see copyright notice in Prerequisites.hpp #include <Nazara/Widgets/LabelWidget.hpp> namespace Nz { inline void LabelWidget::UpdateText(const Nz::AbstractTextDrawer& drawer, float scale) { m...
167
3,387
<reponame>ogaoga/fb-mac-messenger #import <WebKit/WebKit.h> @interface WebView (MacMessengerPrivate) - (IBAction)zoomPageIn:(id)sender; - (BOOL)canZoomPageIn; - (IBAction)zoomPageOut:(id)sender; - (BOOL)canZoomPageOut; - (IBAction)resetPageZoom:(id)sender; - (BOOL)canResetPageZoom; @end
132
335
{ "word": "Thrift", "definitions": [ "The quality of using money and other resources carefully and not wastefully.", "A European plant which forms low-growing tufts of slender leaves with rounded pink flower heads, growing chiefly on sea cliffs and mountains." ], "parts-of-speech": "Noun...
102
3,066
/* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not use this f...
1,087
491
<reponame>jinyouzhi/Forward # -*- coding: utf-8 -*- # Copyright (C) 2021 THL A29 Limited, a Tencent company. 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...
2,646
507
<gh_stars>100-1000 # terrascript/data/sdm.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:26:26 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.data.sdm # # instead of # # >>> import terrascript.data.strongdm.sdm # # This is only available for 'official' and 'partner' provi...
132
2,229
<gh_stars>1000+ { "name": "gitlet", "description": "Git implemented in JavaScript.", "author": "<NAME> <<EMAIL>> (http://maryrosecook.com/)", "version": "0.1.20", "repository": { "type": "git", "url": "https://github.com/maryrosecook/gitlet.git" }, "main": "./gitlet.js", "bin": { "gitlet":...
201
4,054
<filename>searchlib/src/vespa/searchlib/expression/floatresultnode.h<gh_stars>1000+ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "numericresultnode.h" #include <vespa/vespalib/util/sort.h> namespace search { namespace expression { clas...
930
432
/* $NetBSD: import_vsn1.c,v 1.1.1.2 2009/12/02 00:26:30 haad Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * m...
8,810
380
/* * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.gluu.oxauth.model.common; import java.util.HashMap; import java.util.Map; import org.gluu.persist.annotation.AttributeEnum; import com.fasterxml.jackson.annota...
880
387
/* * Copyright (C) 2014, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The Java Pathfinder core (jpf-core) platform is licensed under the * Apache License, Version 2.0 (the "License"); you may not use this file exce...
1,299
459
<gh_stars>100-1000 // File implement/oglplus/enums/blit_filter_class.ipp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oglplus/blit_filter.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-2015 <NAME>. // Distributed under the Boost Soft...
571
515
/*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
3,234
2,003
// Copyright (c) 2015-2018, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <gtest/gtest.h> #include <gflags/gflags.h> #include <memory> #include <string> #include "access/helpers/permission_builder.h" DECLARE_string(...
1,041
488
<filename>projects/simulator/syscall_tests/syscall_tst.117.c /****************************************************************************** * Copyright (C) International Business Machines Corp., 2004, 2006 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
10,881
1,042
<filename>StereoKitC/lib/include/reactphysics3d/systems/ConstraintSolverSystem.h /******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2020 <NAME> * **...
3,686
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms from DQM.EcalMonitorTasks.TimingTask_cfi import ecalTimingTask from DQM.EcalMonitorClient.IntegrityClient_cfi import ecalIntegrityClient minChannelEntries = 1 minTowerEntries = 3 toleranceMean = 2. toleranceRMS = 6. minChannelEntriesFwd = 8 minTowerEntriesFw...
4,640
7,482
/* * Copyright (c) 2015, Freescale Semiconductor, Inc. * Copyright 2016-2018 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_sdio.h" /******************************************************************************* * Definitions ********************************************...
26,118
892
{ "schema_version": "1.2.0", "id": "GHSA-xc8p-9vx8-gcj4", "modified": "2022-05-13T01:53:06Z", "published": "2022-05-13T01:53:06Z", "aliases": [ "CVE-2018-6400" ], "details": "Kingsoft WPS Office Free 10.2.0.5978 allows local users to gain privileges or cause a denial of service by impersonating all th...
442
421
/** * Shared Mutex from: * http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2406.html#shared_mutex */ using namespace std; class shared_mutex { mutex mut_; condition_variable gate1_; condition_variable gate2_; unsigned state_; static const unsigned write_entered_ = 1U << (sizeof(uns...
1,040
1,738
<filename>dev/Gems/PhysX/Code/Tests/PhysXBenchmarks.cpp /* * 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 t...
3,930
348
<gh_stars>100-1000 {"nom":"Frontignan","circ":"8ème circonscription","dpt":"Hérault","inscrits":18702,"abs":9791,"votants":8911,"blancs":143,"nuls":74,"exp":8694,"res":[{"nuance":"FN","nom":"<NAME>","voix":2723},{"nuance":"REM","nom":"M. <NAME>","voix":2202},{"nuance":"FI","nom":"Mme <NAME>- MONFORT","voix":1164},{"nua...
334
562
from conans import ConanFile, AutoToolsBuildEnvironment, CMake, tools from conans.errors import ConanException import contextlib import os import re import shlex required_conan_version = ">=1.33.0" class MpfrConan(ConanFile): name = "mpfr" description = "The MPFR library is a C library for multiple-precision...
3,461
503
<filename>test/support/ExecutionTimeWatcher.java package support; import org.joda.time.DateTime; import org.joda.time.Interval; import org.junit.rules.TestWatcher; import org.junit.runner.Description; import play.Logger; public class ExecutionTimeWatcher extends TestWatcher { DateTime start; DateTime end; ...
347
742
<filename>ros/orocos_kinematics_dynamics/orocos_kdl/tests/framestest.hpp #ifndef FRAMES_TEST_HPP #define FRAMES_TEST_HPP #include <cppunit/extensions/HelperMacros.h> #include <frames.hpp> #include <jntarray.hpp> using namespace KDL; class FramesTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE( FramesTest)...
882
338
{ "division": "iVia Project", "sortIndex": 180, "lite": false, "standard": true, "userAgents": [ { "userAgent": "iVia Project", "browser": "ivia project", "properties": { "Parent": "DefaultProperties", "Comment": "iVia Project" }, "children": [ { ...
292
2,346
package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; import org.traccar.model.Command; public class NoranProtocolEncoderTest extends ProtocolTest { @Test public void testEncode() throws Exception { var encoder = new NoranProtocolEncoder(null); Command comman...
245
7,471
<gh_stars>1000+ #pragma once #include "mvItemRegistry.h" namespace Marvel { class mvToggledOpenHandler : public mvAppItem { public: explicit mvToggledOpenHandler(mvUUID uuid); void draw(ImDrawList* drawlist, float x, float y) override {} void customAction(void* data = nullptr) ...
141
17,481
/* * Copyright (C) 2020 The Dagger 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 law or ag...
720
419
// // ElasticShapeLayer.h // ElasticTransistionExample // // Created by Tigielle on 11/02/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <QuartzCore/QuartzCore.h> #import "Utils.h" @interface ElasticShapeLayer : CAShapeLayer @property (nonatomic) Edge edge; @property (nonatomic) CGPoint dragPoin...
127
553
package com.test.pattern; import java.util.Observable; import java.util.Observer; public class CurrentConditionsDisplay implements Observer, DisplayElement { private float temperature; private float humidity; Observable observable; public CurrentConditionsDisplay(Observable observable) { // weatherData.registe...
399
678
<gh_stars>100-1000 /* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "glean/lang/clang/path.h" #include <algorithm> namespace facebook { n...
787
419
#pragma once #include <memory> #include "Hypodermic/IRegistration.h" namespace Hypodermic { class ActivatedRegistrationInfo { public: ActivatedRegistrationInfo(const std::shared_ptr< IRegistration >& registration, const std::shared_ptr< void >& instance) : m_registration(registr...
337
7,863
<filename>src/VisVim/VisVim.cpp<gh_stars>1000+ // VisVim.cpp : Defines the initialization routines for the DLL. // #include "stdafx.h" #include <initguid.h> #include "VisVim.h" #include "DSAddIn.h" #include "Commands.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ...
1,289
543
<reponame>CoenRijsdijk/Bytecoder /* * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 o...
1,717
14,793
<filename>weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java package me.chanjar.weixin.cp.bean.external; import com.google.gson.annotations.SerializedName; import lombok.Getter; import lombok.Setter; import me.chanjar.weixin.common.annotation.Required; import me.chanjar.we...
584
1,831
<filename>logdevice/server/thrift/LogDeviceThriftServer.h /** * Copyright (c) 2020-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "logde...
613
1,590
<reponame>libc16/azure-rest-api-specs<filename>specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.1-preview.1/examples/CopyModel.json<gh_stars>1000+ { "parameters": { "endpoint": "{endpoint}", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "{API key}", "modelId": "{...
393
1,226
// // TPSCardFieldManager.h // TPSStripe // // Created by <NAME> on 01.11.16. // Copyright © 2016 Tipsi. All rights reserved. // #import <React/RCTViewManager.h> @interface TPSCardFieldManager : RCTViewManager @end
85
521
// // ADJDeeplinkDelegate.h // Adjust // // Created by <NAME> on 13/05/16. // Copyright © 2016 adjust GmbH. All rights reserved. // #import <Foundation/Foundation.h> #import "Adjust.h" @interface ADJDeeplinkLaunchDelegate : NSObject <AdjustDelegate> @end @interface ADJDeeplinkNotLaunchDelegate : NSObject <Adjus...
122
435
{ "abstract": "Good documentation is important, but it should be your last resort. You\nneed to help users before they reach the docs - in the user interface\nitself.\n\nIn this talk, I'll discuss:\n\n- strategies for writing microcopy when you\u2019re short on space\n- what to explain in the UI, and what to save f...
515
727
<gh_stars>100-1000 from __future__ import absolute_import from __future__ import division from __future__ import print_function import pytest import numpy as np from keras import backend as K from keras.models import Sequential from keras.layers import Dense, Lambda, Masking from keras.layers.wrappers import TimeDist...
2,912
848
# pylint: disable=g-bad-file-header # Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
6,310
310
{ "name": "JP-8000", "description": "An analog synth.", "url": "https://en.wikipedia.org/wiki/Roland_JP-8000" }
46
421
//<Snippet1> using namespace System; using namespace System::Reflection; using namespace System::Reflection::Emit; public ref class GenericReflectionSample { }; int main() { // Creating a dynamic assembly requires an AssemblyName // object, and the current application domain. // Assembly...
1,416
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <stddef.h> // !!!!!!!! // The data for this test (input and ref) was generated in clCaffe using the zf truncated prototxt with the following modifications: // input height: 420 -> 210 // input width: 700 -> 350 // max prop...
139,069
348
<filename>docs/data/leg-t2/007/00701072.json {"nom":"Coux","circ":"1ère circonscription","dpt":"Ardèche","inscrits":1379,"abs":647,"votants":732,"blancs":51,"nuls":27,"exp":654,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":492},{"nuance":"REM","nom":"M. <NAME>","voix":162}]}
116
5,169
{ "name": "SMGridView", "version": "1.0.1", "summary": "UIScrollView subclass that uses methods similar to UITableView, UITableViewDataSource, and UITableViewDelegate.", "homepage": "https://github.com/brewster/SMGridView", "license": "MIT", "authors": { "<NAME>": "<EMAIL>", "<NAME>": "<EMAIL>" },...
261
1,483
/* * Copyright Lealone Database Group. * Licensed under the Server Side Public License, v 1. * Initial Developer: zhh */ package org.lealone.sql; import java.util.List; import org.lealone.db.Command; import org.lealone.db.CommandParameter; import org.lealone.db.async.Future; import org.lealone.db.result.Result; ...
539
335
<filename>A/Accepted_adjective.json { "word": "Accepted", "definitions": [ "Generally believed or recognized to be valid or correct." ], "parts-of-speech": "Adjective" }
77
1,799
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
329
2,023
<reponame>tdiprima/code import glob import os import time import bs4 import socks import socket import magic import random import hashlib # Tor proxy def create_connection(address, timeout=None, source_address=None): sock = socks.socksocket() sock.connect(address) return sock socks.setdefaultproxy(socks.P...
1,258
2,177
<reponame>denghuafeng/nutz package org.nutz.dao.test.meta.issue1302; import org.nutz.dao.entity.annotation.ColDefine; import org.nutz.dao.entity.annotation.ColType; import org.nutz.dao.entity.annotation.Column; import org.nutz.dao.entity.annotation.Id; import org.nutz.dao.entity.annotation.Name; import org.nutz.dao.en...
426
569
package us.koller.cameraroll.util; import android.content.Context; import android.net.Uri; import android.webkit.MimeTypeMap; public class MediaType { private static String[] imageExtensions = {"jpg", "png", "jpe", "jpeg", "bmp"}; private static String[] imageMimeTypes = {"image/*", "image/jpeg", "image/jpg"...
1,796
848
/* * Copyright 2019 Xilinx 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 ...
1,113
765
<reponame>hyu-iot/gem5 /* * Copyright (c) 2021 The Regents of the University of California * 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 ab...
1,307
416
<gh_stars>100-1000 /* NSJSONSerialization.h Copyright (c) 2009-2017, Apple Inc. All rights reserved. */ #import <Foundation/NSObject.h> @class NSError, NSOutputStream, NSInputStream, NSData; NS_ASSUME_NONNULL_BEGIN typedef NS_OPTIONS(NSUInteger, NSJSONReadingOptions) { NSJSONReadingMutableContainers = ...
1,223
1,614
<gh_stars>1000+ /** * Copyright (C) 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 requ...
2,437
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Piss", "definitions": [ "Urinate.", "Discharge (something, especially blood) when urinating.", "Urinate involuntarily (often used hyperbolically to indicate hilarity or intense fear).", "Rain heavily." ], "parts-of-speech": "Ve...
133
32,544
package com.baeldung.jpa.multiplebagfetchexception; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.OneToMany; import java.util.ArrayList; import java.util.List...
503
1,165
<filename>api/pacman-api-notifications/src/main/java/com/tmobile/pacman/api/notification/service/NotificationServiceImpl.java<gh_stars>1000+ /******************************************************************************* * Copyright 2018 T Mobile, Inc. or its affiliates. All Rights Reserved. * * Licensed under the...
1,896
435
<gh_stars>100-1000 { "description": "Exactly 23 years have passed since release of one of the biggest IT\nclassics - \"Design Patterns: Elements of Reusable Object-Oriented\nSoftware\".\n\nContents of the book had considerable influence on dominant\nprogramming languages of those days. However, design patterns were\n...
375
1,848
<reponame>pcwalton/rust-bindgen template<typename T> class Foo { typedef T elem_type; typedef T* ptr_type; typedef struct Bar { int x, y; } Bar; };
70
434
package com.github.anzewei.parallaxbacklayout.transform; import android.graphics.Canvas; import android.view.View; import com.github.anzewei.parallaxbacklayout.widget.ParallaxBackLayout; import static com.github.anzewei.parallaxbacklayout.ViewDragHelper.EDGE_BOTTOM; import static com.github.anzewei.parallaxbacklayou...
524
474
<filename>QNShortVideo-With-TuTu-iOS/PLShortVideoKit-master/Example/PLShortVideoKitDemo/Transition/TransitionModelMaker.h // // TransitionModelView.h // PLShortVideoKitDemo // // Created by hxiongan on 2018/1/25. // Copyright © 2018年 Pili Engineering, Qiniu Inc. All rights reserved. // #import <UIKit/UIKit.h> #imp...
1,267
1,405
package QQPIM; public final class EVirusPriority { public static final EVirusPriority VP_High = new EVirusPriority(2, 2, "VP_High"); public static final EVirusPriority VP_Low = new EVirusPriority(0, 0, "VP_Low"); public static final EVirusPriority VP_Mid = new EVirusPriority(1, 1, "VP_Mid"); public sta...
684
1,347
// The Class loader provides constructors for all EJBinding* subclasses to // JavaScript and takes care building and instantiating JSClasses and JSObjects. // EJClassLoader works closely with EJBinding classes. It uses Obj-C reflection // functions to get a list of all Methods of an Obj-C class. Using a convention // ...
463
432
<reponame>lambdaxymox/DragonFlyBSD /* * Copyright (c) 1988 <NAME>. * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> of Stanford University. * * Redistribution and use in source and binary fo...
6,240
1,038
/** * This package (org.dataalgorithms.chap08.mapreduce) contains source code * for chapter 08 of the Data Algorithms book published by O'Reilly. * * First solution: representing friends as String/Text: * * CommonFriendsDriver.java * CommonFriendsMapper.java * CommonFriendsReducer.java * ...
217
2,151
<reponame>nagineni/chromium-crosswalk<filename>chrome/common/extensions/docs/server2/file_system_util.py # 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. import posixpath def CreateURLsFromPaths(file_syste...
211
760
<reponame>hexiangyuan/react-native-multibundler<filename>android/app/src/main/java/com/reactnative_multibundler/UpdateProgressListener.java package com.reactnative_multibundler; public interface UpdateProgressListener { public void updateProgressChange(int precent); public void complete(boolean success); }
95
458
<gh_stars>100-1000 /* * mod_vhostdb - virtual hosts mapping from backend database * * Copyright(c) 2017 <NAME> <EMAIL> All rights reserved * License: BSD 3-clause (same as lighttpd) */ #include "first.h" #include <stdlib.h> #include <string.h> #include "mod_vhostdb_api.h" #include "base.h" #include "plugin.h" #...
6,146
3,102
<gh_stars>1000+ //===--- OperatorKinds.h - C++ Overloaded Operators -------------*- C++ -*-===// // // 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 // //===-----------...
508
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Store ...
1,432
433
<reponame>Andrewnetwork/WorkshopScipy<gh_stars>100-1000 # To be interactively typed in order to explore TF basics. # Following Oriley's: Hello TensorFlow ## Basic Exploration ## import tensorflow as tf graph = tf.get_default_graph() graph.get_operations() input_value = tf.constant(1.0) operations = graph.get_opera...
736
488
#include <sys/types.h> #include <unistd.h> #include <err.h> char *TCID = "syscall.47"; int TST_TOTAL = 1; int main() { int result = getgid(); if( result == -1 ) err(1,"getgid failed"); return 0; }
95
831
/* * Copyright (C) 2018 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...
686
698
<gh_stars>100-1000 from . import auth from .ctx_tool import BaseContext from .keyboard import * from .uploader import * from .template import TemplateElement, template_gen from .loop_wrapper import DelayedTask, LoopWrapper from .mini_types import BotTypes, message_min from .storage import ABCStorage, CtxStorage from .u...
126
2,206
/* * * Copyright (c) 2006-2020, Speedment, 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/LICENSE-2.0 * * Unless requi...
3,251
339
<filename>integration/business-process-tests/tests-integration/bpmn/src/test/java/org/wso2/ei/businessprocess/integration/tests/bpmn/ProcessInstanceTestCase.java<gh_stars>100-1000 /* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "Li...
3,929
3,964
def validate_type_strict(object_, object_types): ''' Validates that object_ is of type object__type :param object_: the object to check :param object_types: the desired type of the object (or tuple of types) ''' if not isinstance(object_types, tuple): object_types = (object_types,) ...
437
335
<filename>M/Mature_verb.json<gh_stars>100-1000 { "word": "Mature", "definitions": [ "(of a person or thing) become fully grown or developed.", "(of a person) reach an advanced stage of mental or emotional development.", "(with reference to certain foods or drinks) become or cause to beco...
162
763
package org.batfish.common.topology.broadcast; import static org.batfish.datamodel.InterfaceType.PHYSICAL; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import com.google.common.collect.ImmutableMap; import org.batfish.common.topology.Layer1Edge; import org.batfish.common.topo...
1,887
611
package fr.adrienbrault.idea.symfony2plugin.intentions.xml; import com.intellij.codeInsight.hint.HintManager; import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction; import com.intellij.ide.highlighter.XmlFileType; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.project.Project;...
1,374
892
{ "schema_version": "1.2.0", "id": "GHSA-2hw2-7jq8-w9vp", "modified": "2021-12-28T00:01:18Z", "published": "2021-12-22T00:00:48Z", "aliases": [ "CVE-2021-24849" ], "details": "The wcfm_ajax_controller AJAX action of the WCFM Marketplace WordPress plugin before 3.4.12, available to unauthenticated and ...
385
1,248
#include <iostream> #include <vector> #include <algorithm> #include <string.h> #include "driver/CustomAssert.h" #include <vulkan/vulkan.h> #include "driver/vkExt.h" #include "QPUassembler/qpu_assembler.h" //#define GLFW_INCLUDE_VULKAN //#define VK_USE_PLATFORM_WIN32_KHR //#include <GLFW/glfw3.h> //#define GLFW_EXPO...
18,830
1,305
<filename>src/org/example/source/com/sun/naming/internal/VersionHelper.java /* * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.naming.inte...
1,689
454
"""Pipeline base class for time series regression problems.""" from evalml.pipelines.time_series_pipeline_base import TimeSeriesPipelineBase from evalml.problem_types import ProblemTypes class TimeSeriesRegressionPipeline(TimeSeriesPipelineBase): """Pipeline base class for time series regression problems. Ar...
939
388
// -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import java.awt.geom.Path2D; import java.util.stream.Stream; import javax.swing.*; public final class MainPanel extends JPanel { private MainPanel() { super(); JRadioButton r1 = makeRadioBu...
1,620