max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
825 | #pragma once
#include "DialogHelper.h"
class CLoadHiveDlg :
public CDialogHelper<CLoadHiveDlg>,
public CDialogImpl<CLoadHiveDlg> {
public:
enum { IDD = IDD_LOADHIVE };
HKEY GetSelectedKey() const;
const CString& GetFileName() const;
const CString& GetName() const;
BEGIN_MSG_MAP(CLoadHiveDlg)
COMMAND_CODE_H... | 593 |
2,151 | <reponame>zipated/src<gh_stars>1000+
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/hover_button.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_s... | 6,092 |
1,170 | /*
+----------------------------------------------------------------------+
| parallel |
+----------------------------------------------------------------------+
| Copyright (c) <NAME> 2019 |
+------------------... | 590 |
10,504 | <reponame>soothing-rain/knowhere<filename>thirdparty/SPTAG/AnnService/inc/Core/Common/DataUtils.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef _SPTAG_COMMON_DATAUTILS_H_
#define _SPTAG_COMMON_DATAUTILS_H_
#include <sys/stat.h>
#include <atomic>
#include "Comm... | 2,859 |
705 | package subsetsum;
import cs1c.MillionSongDataSubset;
import cs1c.SongEntry;
import cs1c.TimeConverter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
/**
* An object of type FoothillTunesStore creates an object of type MillionSongDataSubset,
* which in turn parses a JSON data set w... | 922 |
575 | <gh_stars>100-1000
// 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.
#ifndef CHROME_BROWSER_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLLER_H_
#define CHROME_BROWSER_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_C... | 690 |
831 | <filename>compose-ide-plugin/src/main/java/androidx/compose/plugins/idea/IdeComposeCallResolutionInterceptorExtension.java
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package androidx.compose.plugins.idea;
import androidx.... | 871 |
309 | <filename>jug/tests/jugfiles/compound_nonsimple.py
from jug import barrier, value, TaskGenerator
from jug.utils import identity
from jug.compound import CompoundTaskGenerator
@TaskGenerator
def double(x):
return 2*x
@CompoundTaskGenerator
def twice(x):
return (double(x), double(x))
@TaskGenerator
def tadd(y)... | 158 |
5,169 | {
"name": "HouNetwork",
"version": "0.0.1",
"summary": "A short description of HouNetwork.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/JeromeTW/HouNetwork.git",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<EMAIL>": "<EMAI... | 245 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.fluent.models;
import com.azure.core.util.ExpandableStringEnum;
import com.... | 634 |
611 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
"""Example of Dynamic Ensemble Selection by Local Accuracy
"""
# Author: <NAME> <<EMAIL>>
# License: BSD 2 clause
import os
import sys
# temporary solution for relative imports in case combo is not installed
# if combo is installed, no need to use the following line
sys.pat... | 1,231 |
2,151 | <reponame>zipated/src
// 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 <stdint.h>
#include "base/macros.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/... | 2,692 |
672 | #include <stdio.h>
#include <stdlib.h>
#include <darwintest.h>
#include <darwintest_perf.h>
static void
perf_fixed_size(size_t size_per_write)
{
dt_stat_time_t latency = dt_stat_time_create("write_latency",
"adding %zu bytes to a memstream", size_per_write);
dt_stat_set_variable_d(latency, "bytes", (double)size_... | 515 |
598 | #ifndef PROCESS_MANAGER_H
#define PROCESS_MANAGER_H
extern OSStatus _SLPSGetFrontProcess(ProcessSerialNumber *psn);
extern CFStringRef SLSCopyBestManagedDisplayForRect(int cid, CGRect rect);
extern CGError SLSGetCurrentCursorLocation(int cid, CGPoint *point);
#if 0
extern CFArrayRef _LSCopyApplicationArrayInFrontToBa... | 571 |
486 | /*
* 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 ... | 1,267 |
4,403 | package cn.hutool.db.dialect;
import org.junit.Assert;
import org.junit.Test;
public class DriverUtilTest {
@Test
public void identifyDriverTest(){
String url = "jdbc:h2:file:./db/test;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;MODE=MYSQL";
String driver = DriverUtil.identifyDriver(url); // driver 返回 mysql 的 driv... | 155 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-rcmg-qqg5-w3f3/GHSA-rcmg-qqg5-w3f3.json
{
"schema_version": "1.2.0",
"id": "GHSA-rcmg-qqg5-w3f3",
"modified": "2022-05-17T00:13:17Z",
"published": "2022-05-17T00:13:17Z",
"aliases": [
"CVE-2017-17059"
],
"details": "XSS exists in the amtyThumb amty-thumb-re... | 559 |
3,348 | <gh_stars>1000+
/**
* 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
*... | 1,949 |
841 | <gh_stars>100-1000
/*
* JBoss, Home of Professional Open Source.
*
* Copyright 2021 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... | 982 |
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... | 3,022 |
2,177 | <reponame>denghuafeng/nutz
package org.nutz.castor.castor;
public class String2Float extends String2Number<Float> {
@Override
protected Float getPrimitiveDefaultValue() {
return 0.0f;
}
@Override
protected Float getFalseValue() {
return (float) 0;
}
@Override
protecte... | 195 |
655 | package com.tmall.pokemon.bulbasaur.schedule;
import java.util.Date;
import com.tmall.pokemon.bulbasaur.core.CoreModule;
import com.tmall.pokemon.bulbasaur.core.Result;
import com.tmall.pokemon.bulbasaur.core.model.State;
import com.tmall.pokemon.bulbasaur.core.model.StateLike;
import com.tmall.pokemon.bulbasaur.exce... | 2,337 |
606 | <filename>zipline/pipeline/loaders/blaze/buyback_auth.py
from .core import (
TS_FIELD_NAME,
SID_FIELD_NAME,
)
from zipline.pipeline.common import (
BUYBACK_ANNOUNCEMENT_FIELD_NAME,
CASH_FIELD_NAME,
SHARE_COUNT_FIELD_NAME
)
from zipline.pipeline.data import (
CashBuybackAuthorizations,
ShareB... | 1,609 |
4,140 | <gh_stars>1000+
#!/usr/bin/env python
#
# 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... | 3,189 |
505 | <filename>spring-web-client-exchange-retrieve/src/main/java/de/rieckpil/blog/RetrieveWebClient.java
package de.rieckpil.blog;
import com.fasterxml.jackson.databind.JsonNode;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.sp... | 705 |
1,939 | package com.tencent.bk.codecc.defect.vo;
import lombok.Data;
import java.util.List;
/**
* 设置强制全量扫描标志请求体
*
* @version V1.0
* @date 2020/3/10
*/
@Data
public class SetForceFullScanReqVO
{
private String landunBuildId;
private List<String> toolNames;
}
| 132 |
784 | # -*- coding: utf-8 -*-
# author: inspurer(月小水长)
# pc_type lenovo
# create_time: 2019/8/16 11:40
# file_name: MyDialog.py
# github https://github.com/inspurer
# qq邮箱 <EMAIL>
# 微信公众号 月小水长(ID: inspurer)
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import... | 1,039 |
1,104 | {
"character": "Персонаж",
"grimoire": "Гримуар",
"background": "Фон",
"talents": "Таланты",
"communication-u": "СВЯЗИ",
"primary-skill": "Основной навык",
"focuses": "Концентрация",
"roll-w-focus": "Бросок с концентрацией",
"constitution-u": "ВЫНОСЛИВОСТЬ",
"cunning-u": "ХИТРЫЙ",
"dexterity-u": "ЛОВКОСТЬ",
... | 1,975 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-wmrg-883r-jcp6",
"modified": "2021-12-07T00:00:49Z",
"published": "2021-12-04T00:00:50Z",
"aliases": [
"CVE-2021-35415"
],
"details": "A stored cross-site scripting (XSS) vulnerability allows attackers to execute arbitrary web scripts or HTML... | 927 |
601 | <reponame>alexbosy/spring-data-jdbc
/*
* 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 with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LI... | 805 |
14,668 | <filename>remoting/host/remoting_register_support_host_request_unittest.cc
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/remoting_register_support_host_request.h"
#include "ba... | 2,563 |
5,514 | package com.u9porn.ui.splash;
import com.u9porn.ui.notice.NoticeView;
/**
* @author flymegoc
* @date 2017/12/21
*/
public interface SplashView extends NoticeView {
}
| 65 |
796 | /*
* 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:
*
* http://license.coscl.org.cn/MulanPSL
*
* ... | 428 |
507 | <reponame>ika-rporter/maya-usd<gh_stars>100-1000
import os.path
import maya.cmds as cmds
import ufe
import mayaUsd.ufe
from mayaUSDRegisterStrings import getMayaUsdString
def debugMessage(msg):
DEBUG = False
if DEBUG:
print(msg)
def GetDefaultPrimName(proxyShape):
try:
proxyStage = mayaUsd... | 3,766 |
427 | from pprint import pformat
class ApiError(Exception):
"""The non-fatal failure of the api to fulfill a request"""
def __init__(self, error):
self.error = error
def __str__(self):
string = ""
if hasattr(self.error, 'request'):
string += pformat(vars(self.er... | 237 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Highbrow",
"definitions": [
"Intellectual or rarefied in taste."
],
"parts-of-speech": "Adjective"
} | 79 |
571 | package com.univocity.trader.exchange.binance.api.client.domain.account;
import com.fasterxml.jackson.annotation.*;
import com.univocity.trader.exchange.binance.api.client.constant.*;
import com.univocity.trader.exchange.binance.api.client.domain.*;
import org.apache.commons.lang3.builder.*;
import java.util.*;
impor... | 928 |
403 | package io.craft.atom.lock;
import io.craft.atom.lock.api.DLock;
import io.craft.atom.redis.api.RedisCommand;
import java.util.concurrent.TimeUnit;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A implementation of the {@code DLoc... | 715 |
439 | import org.junit.Ignore;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class ConnectTest {
@Test
public void anEmptyBoardHasNoWinner() {
//GIVEN
var board = new String[]{
". . . . .",
" . . . . .",
" . . . . .",
... | 2,509 |
1,010 | #ifndef SRC_MAIN_HOST_SHD_THREAD_PROTECTED_H_
#define SRC_MAIN_HOST_SHD_THREAD_PROTECTED_H_
/*
* Implementation details for the Thread interface.
*
* This file should only be included by C files *implementing* the Thread
* interface.
*/
#include <stdarg.h>
#include "lib/shim/shim_event.h"
#include "main/host/sy... | 740 |
712 | <filename>lib/src/main/java/kale/injection/SelectorBean.java
package kale.injection;
import android.graphics.drawable.Drawable;
import android.support.annotation.Nullable;
import android.support.v7.widget.TintTypedArray;
/**
* @author Kale
* @date 2018/4/27
*/
public class SelectorBean {
@Nullable
public ... | 476 |
1,176 | <reponame>ValtoGameEngines/Intrinsic-Engine
// Copyright 2017 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | 2,053 |
4,020 | package me.coley.recaf;
import me.coley.recaf.workspace.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.*;
/**
* Tests for resource history.
*
* @author Matt
*/
public class HistoryTest extends Base {
priv... | 1,133 |
768 | package net.engio.mbassy.messages;
/**
*
* @author bennidi
* Date: 5/24/13
*/
public interface IMultipartMessage extends IMessage, ICountable{
}
| 62 |
12,252 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 1,167 |
650 | import numpy as np
import pandas as pd
import pytest
from sklearn.exceptions import NotFittedError
from feature_engine.encoding import DecisionTreeEncoder
def test_encoding_method_param(df_enc):
# defaults
encoder = DecisionTreeEncoder()
encoder.fit(df_enc, df_enc["target"])
assert encoder.encoder_[0... | 1,895 |
546 | <filename>tests/package_import_roots/import_roots.py
# Copyright 2016 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/L... | 538 |
17,104 | // local_free_on_exit.hpp ------------------------------------------------------------//
// Copyright (c) 2003-2010 <NAME> (chris at kohlhoff dot com)
// Copyright (c) 2010 <NAME>
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// This is derived from ... | 397 |
3,508 | <reponame>shisheng-1/Leetcode<gh_stars>1000+
package com.fishercoder.solutions;
public class _55 {
public static class Solution1 {
/**
* My very original but lengthy solution.
*/
public boolean canJump(int[] nums) {
int furthestReach = nums[0];
if (furthes... | 2,013 |
365 | /*
* ConstraintSet.hpp
*
* Created on: Jan 5, 2009
* Author: rubensmits
*/
#ifndef CONSTRAINTSET_HPP_
#define CONSTRAINTSET_HPP_
#include "kdl/frames.hpp"
#include "eigen_types.hpp"
#include "Cache.hpp"
#include <vector>
namespace iTaSC {
enum ConstraintAction {
ACT_NONE= 0,
ACT_VALUE= 1,
ACT_VELOCI... | 1,390 |
315 | /***************************************************************************
Copyright (c) 2019, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must reta... | 3,365 |
1,031 | <filename>newton-3.14/sdk/dVehicle/dMultiBodyVehicle/dMultiBodyVehicleDashControl.h<gh_stars>1000+
/* Copyright (c) <2003-2019> <<NAME>>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.... | 1,049 |
573 | <gh_stars>100-1000
// Copyright 2015, VIXL authors
// 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 ... | 56,368 |
571 | package com.univocity.trader.indicators;
import com.univocity.trader.candles.*;
import com.univocity.trader.indicators.base.*;
import com.univocity.trader.strategy.*;
public class BearishEngulfing extends SingleValueIndicator {
private double value;
private Candle prev;
public BearishEngulfing(TimeInterval inter... | 309 |
4,837 | package com.example.helloworld.resources;
import java.io.IOException;
import java.net.URL;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import com.google.common.base.Charsets;
import com.google.common.io.Resources;
... | 218 |
1,825 | package net.fornwall.jelf;
public abstract class DwarfCursor {
long cfa; /* canonical frame address; aka frame-/stack-pointer */
public long ip; /* instruction pointer */
final Long[] loc;
protected DwarfCursor(Long[] loc) {
this.loc = loc;
}
}
| 98 |
2,151 | <reponame>google-ar/chromium<filename>components/sync/model/change_processor.cc
// 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 "components/sync/model/change_processor.h"
#include <utility>
n... | 296 |
964 | {
"id": "b0d3ef3f-845d-4b1b-83d6-63a5a380375f",
"queryName": "Secretsmanager Secret Encrypted With AWS Managed Key",
"severity": "MEDIUM",
"category": "Encryption",
"descriptionText": "Secrets Manager secret should be encrypted with customer-managed KMS keys instead of AWS managed keys",
"descriptionUrl": "... | 182 |
634 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.ui.newItemPopup;
import com.intellij.openapi.ui.popup.JBPopup;
import com.intellij.openapi.ui.popup.JBPopupFactory;
import javax.annotation.Nonnull;
impo... | 345 |
879 | <gh_stars>100-1000
package org.zstack.header.console;
import org.zstack.header.message.NeedReplyMessage;
/**
* Created by xing5 on 2016/4/8.
*/
public class PingConsoleProxyAgentMsg extends NeedReplyMessage implements ConsoleProxyAgentMessage {
private String agentUuid;
public void setAgentUuid(String agen... | 153 |
2,039 | package org.nd4j.linalg.api.buffer.factory;
/**
* Created by agibsonccc on 2/25/16.
*/
public class AllocatorInstanceHolder {
private static DataBufferFactory INSTANCE;
public static DataBufferFactory getInstance() {
if (INSTANCE == null)
INSTANCE = new DefaultDataBufferFactory();
... | 131 |
1,443 | <filename>users/bcse.json
{
"copyright": "Grey Lee, http://bcse.tw",
"url": "http://bcse.tw",
"theme": "double-windsor"
}
| 56 |
364 | package rsc.publisher;
import java.util.function.Function;
import org.junit.Test;
import org.reactivestreams.Publisher;
import rsc.processor.DirectProcessor;
import rsc.test.TestSubscriber;
import rsc.util.ConstructorTestBuilder;
public class PublisherResumeTest {
@Test
public void constructors() {
... | 2,182 |
3,799 | <filename>samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/PopupMenuActivity.java<gh_stars>1000+
/*
* Copyright (C) 2016 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.
* Y... | 2,044 |
811 | {
"name": "examples",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start"
},
"main": "src/Application.container",
"dependencies": {
"prop-types": "15.6.1",
"react": "16.8.6",
"react-native": "0.60.0",
"react-native-fingerprint-scanner": "file:../"
},
"de... | 180 |
763 | package org.batfish.representation.cisco;
import static org.batfish.datamodel.RoutingProtocol.BGP;
import static org.batfish.datamodel.routing_policy.statement.Statements.ExitAccept;
import static org.batfish.representation.cisco.CiscoConfiguration.NOT_DEFAULT_ROUTE;
import static org.hamcrest.Matchers.contains;
impor... | 1,294 |
3,348 | /**
* 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... | 644 |
496 | <gh_stars>100-1000
# The MIT License (MIT)
#
# Copyright (c) 2021, NVIDIA CORPORATION.
#
# 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 ... | 3,946 |
879 | package com.bookstore.repository;
import com.bookstore.entity.Author;
import java.util.List;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository... | 507 |
310 | # coding: utf-8
import os
import re
import logging
import webbrowser
try:
from xml.etree import cElementTree as ET
except:
from xml.etree import ElementTree as ET
import sublime
from sublime_plugin import WindowCommand
from .util import get_setting
from .cmd import GitCmd
logger = logging.getLogger('Sublime... | 2,469 |
5,169 | {
"name": "JetlinkXMPP",
"version": "0.0.1",
"license": {
"type": "BSD",
"file": "LICENSE"
},
"summary": "An XMPP Framework for Jetlink.",
"homepage": "https://jetlink.io",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"http": "http://gboson.com/wp-content/uploads/2016/12/JetlinkXMPP... | 356 |
583 | <gh_stars>100-1000
package ru.yandex.clickhouse.response.parser;
import java.sql.Array;
import java.sql.SQLException;
import java.util.ArrayDeque;
import java.util.Collections;
import java.util.Deque;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Objects;
import java.util.TimeZone;
import ru.... | 3,476 |
1,400 | //
// XCSaveSelectionAction.h
// XCActionBar
//
// Created by <NAME> on 23/03/2015.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import "XCCustomAction.h"
FOUNDATION_EXPORT NSString *const XCTextSelectionMarkerAttributeName;
//////////////////////////////////////////////////////////////////////////////... | 424 |
315 | <reponame>nh13/hap.py
// -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Copyright (c) 2010-2015 Illumina, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source c... | 4,259 |
395 | <filename>functions-language/language.py
from google.cloud import language
from google.cloud.language import types
from google.cloud.language import enums
def hello_world(request):
"""Responds to any HTTP request.
Args:
request (flask.Request): HTTP request object.
Returns:
The response tex... | 414 |
8,027 | <reponame>Unknoob/buck
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 1,386 |
759 | <filename>elegantrl/train/run.py
import os
import sys
import time
import torch
import shutil
from elegantrl.train.utils import init_agent, init_evaluator, init_replay_buffer
from elegantrl.train.utils import server_leaderboard, PipeEvaluator
from elegantrl.train.config import build_env
from elegantrl.train.worker impo... | 2,190 |
831 | /*
* Copyright (C) 2015 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... | 743 |
314 | //
// ZJBaseWKWebViewController.h
// ZJUIKit
//
// Created by dzj on 2018/1/31.
// Copyright © 2018年 kapokcloud. All rights reserved.
//
#import "ZJKitBaseController.h"
#import <WebKit/WebKit.h>
@class ZJBaseWKWebViewController;
@protocol ZJWebViewControllerDelegate <NSObject>
@optional
// 左上边的返回按钮点击
- (void)bac... | 738 |
945 | <filename>Modules/ThirdParty/VNL/src/vxl/core/vnl/algo/Templates/vnl_determinant+int-.cxx<gh_stars>100-1000
#include <vnl/algo/vnl_determinant.hxx>
VNL_DETERMINANT_INSTANTIATE_1(int);
| 88 |
597 | from unittest import TestCase
import numpy as np
import sklearn.preprocessing as sk_pp
from diffprivlib.models.standard_scaler import StandardScaler
from diffprivlib.utils import PrivacyLeakWarning, DiffprivlibCompatibilityWarning, global_seed, BudgetError
class TestStandardScaler(TestCase):
def test_class(self... | 2,034 |
1,374 | package def.js;
import java.util.function.Consumer;
import jsweet.util.function.Function4;
public class Array<T> extends def.js.Object implements Iterable<T> {
public native T[] toArray();
/**
* Gets or sets the length of the array. This is a number one higher than
* the highest element defined in an array.
... | 8,455 |
414 | /*
* Copyright 2013-2014 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1,177 |
965 | BOOL CMyWinApp::IsIdleMessage(MSG* pMsg)
{
if (!CWinApp::IsIdleMessage(pMsg) || pMsg->message == WM_TIMER)
return FALSE;
else
return TRUE;
} | 73 |
2,759 | <reponame>bllewell/yugabyte-db
// Copyright (c) YugaByte, 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 appl... | 711 |
22,481 | {
"config": {
"abort": {
"already_configured": "Service is al geconfigureerd"
},
"step": {
"user": {
"data": {
"name": "Sensornaam",
"power": "Gecontracteerd vermogen (kW)",
"power_p3": "Gecon... | 850 |
2,414 | package com.site.springboot.core.dao;
import com.site.springboot.core.entity.NewsComment;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component
public interface NewsCommentMapper {
int insert(NewsComment record);
int insertSelective(NewsComment record);
... | 200 |
3,690 | <filename>016. Letter Combinations of a Phone Number/solution.h
//
// Solution.h
// Test
//
// Created by pezy on 12/27/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
#ifndef Test_Solution_h
#define Test_Solution_h
#include <vector>
#include <string>
#include <array>
using std::vector; using std::string... | 373 |
560 | /*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.functional;
import java.util.Objects;
public class ObjectsCompat {
private ObjectsCompat() {}
/**
* @see Objects#isNull
*/
public static boolean isNull(Object object) {
return objec... | 179 |
377 | package com.ramijemli.sample.fragment;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Ch... | 2,331 |
713 | <reponame>CareyRay/Python-Spider
from django.contrib import admin
from myjiekou.models import MyModel
# Register your models here.
class MyAdmin(admin.ModelAdmin):
list_display = ["name","age","hobby"]
admin.site.register(MyModel,MyAdmin)
| 84 |
707 | <reponame>shueja-personal/allwpilib
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "WSHalProviders.h"
#include <fmt/format.h>
namespace wpilibws {
void HAL... | 491 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
from RecoVertex.BeamSpotProducer.BeamSpotEarlyCollision_cfi import *
BeamSpotEarlyCollision.connect = 'frontier://FrontierDev/CMS_COND_BEAMSPOT' ##FrontierDev/CMS_COND_BEAMSPOT"
| 98 |
2,757 | <filename>2019/beginners/web-cwo-xss/app/main.py
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | 1,458 |
353 | package org.newsclub.net.mysql.demo; | 14 |
721 | <reponame>r0b0ji/expiringmap<gh_stars>100-1000
package net.jodah.expiringmap.functional;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.testng.annotations... | 771 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-w8v7-prhw-xjpw",
"modified": "2022-05-13T01:02:10Z",
"published": "2022-05-13T01:02:10Z",
"aliases": [
"CVE-2017-5641"
],
"details": "Previous versions of Apache Flex BlazeDS (4.7.2 and earlier) did not restrict which types were allowed for AMF(X) object deseri... | 930 |
4,036 | # https://pycryptodome.readthedocs.io/en/latest/src/cipher/arc4.html
from Crypto.Cipher import ARC4
import os
key = os.urandom(256//8)
# ------------------------------------------------------------------------------
# encrypt/decrypt
# ------------------------------------------------------------------------------
... | 220 |
884 | /*
* Copyright 2014 - 2021 Blazebit.
*
* 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... | 808 |
526 | <reponame>rychagova/egeria
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.archiveutilities.designmodels.cloudinformationmodel.properties;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
... | 422 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.