max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
5,079 | # -*- coding: utf-8 -*-
import pytest
@pytest.fixture
def fix1(fix2):
return 1
@pytest.fixture
def fix2(fix1):
return 1
def test(fix1):
pass
| 75 |
573 | <reponame>adamchainz/sentinelhub-py
"""
Test for geo_utils module and correctness of geographical transformations
"""
import pytest
from sentinelhub import geo_utils, CRS, BBox
def test_wgs84_to_utm():
x, y = geo_utils.wgs84_to_utm(15.525078, 44.1440478, CRS.UTM_33N)
assert (x, y) == pytest.approx((541995.69... | 1,238 |
19,099 | <reponame>kamito/streamlit
# Copyright 2018-2021 Streamlit 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 applic... | 342 |
471 | <gh_stars>100-1000
from django.conf import settings
from django.db import models
from django.utils.encoding import smart_text, smart_str
import pytz
from corehq.util.timezones import zones
from corehq.util.timezones.utils import coerce_timezone_value, validate_timezone_max_length
MAX_TIMEZONE_LENGTH = getattr(settin... | 793 |
2,338 | //===-- ThreadPlanRunToAddress.cpp ----------------------------------------===//
//
// 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
//
//===---------------------------... | 2,725 |
413 | <filename>reproc/src/init.posix.c
#define _POSIX_C_SOURCE 200809L
#include "init.h"
int init(void)
{
return 0;
}
void deinit(void) {}
| 62 |
26,932 | <gh_stars>1000+
#pragma once
#include <stdio.h>
#include <tchar.h>
#include <string>
#include <windows.h>
//
// By Pavel
//
// Defines names of pipes that can be accessed by name for redirecting IO.
//
const extern TCHAR *STDIn_PIPE;
const extern TCHAR *STDOut_PIPE;
const extern TCHAR *STDErr_PIPE... | 363 |
432 | <reponame>zgc/fabric-net-server<filename>fabric-edge/src/main/java/cn/aberic/fabric/controller/PeerController.java
/*
* Copyright (c) 2018. Aberic - <EMAIL> - 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.
... | 1,523 |
312 | <reponame>jtama/quarkus-github-app
package io.quarkiverse.githubapp.testing.dsl;
public interface GitHubMockVerificationContext extends GitHubMockContext {
}
| 52 |
7,746 | /*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
util.cpp
Abstract:
Useful functions & macros
Author:
<NAME> (leonardo) 2006-10-10.
Revision History:
--*/
#include "util/util.h"
#ifndef SINGLE_THREAD
#include <mutex>
#include <thread>
static std::mutex g_verbose_mux;
void verbose_lock()... | 1,637 |
361 | <gh_stars>100-1000
package li.cil.oc2.common.serialization;
import li.cil.oc2.api.API;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.storage.FolderName;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.annotation.Nullable;
import java.io.IOExce... | 1,715 |
762 | #pragma once
IGNORE_WARNINGS_PUSH
#include "AL/al.h"
#include "AL/alc.h"
IGNORE_WARNINGS_POP
#include "Histogram.hpp"
#include <list>
namespace flex
{
class StringBuilder;
struct SoundClip_Looping
{
SoundClip_Looping();
SoundClip_Looping(const char* name, AudioSourceID startID, AudioSourceID loopID, AudioSo... | 2,173 |
575 | // 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.
#ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEBUG_MANAGER_CLIENT_H_
#define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEBUG_MANAGER_CLIENT_H_
#include <string>
#includ... | 785 |
6,497 | <filename>cachecloud-web/src/main/java/com/sohu/cache/alert/impl/BaseAlertService.java
package com.sohu.cache.alert.impl;
import com.sohu.cache.alert.EmailComponent;
import com.sohu.cache.alert.WeChatComponent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.anno... | 344 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-cvqf-ghwg-56gj",
"modified": "2021-12-09T00:01:46Z",
"published": "2021-12-08T00:01:36Z",
"aliases": [
"CVE-2021-22956"
],
"details": "An uncontrolled resource consumption vulnerability exists in Citrix ADC <13.0-83.27, <12.1-63.22 and 11.1-65.23 that could all... | 376 |
5,267 | <gh_stars>1000+
package io.swagger.v3.jaxrs2.resources.generics.ticket3149;
public interface AggregateEndpoint<C,R>
extends FirstEndpoint<C>, SecondEndpoint<R> {
}
| 62 |
7,407 | /*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... | 10,305 |
315 | #include <opentracing/mocktracer/json_recorder.h>
#include <opentracing/mocktracer/tracer.h>
#include <opentracing/mocktracer/tracer_factory.h>
#include <cctype>
#include <cerrno>
#include <cstring>
#include <fstream>
#include <stdexcept>
#include <string>
namespace opentracing {
BEGIN_OPENTRACING_ABI_NAMESPACE
namesp... | 1,552 |
1,037 | <filename>dagger-demo/app/src/main/java/com/rengwuxian/daggerdemo/MainActivity.java
package com.rengwuxian.daggerdemo;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextVi... | 1,021 |
468 | <reponame>bilke/UniCAVE
#define GLI_INCLUDE_EXT_PROVOKING_VERTEX
enum Main {
//GL_FIRST_VERTEX_CONVENTION_EXT = 0x8E4D,
//GL_LAST_VERTEX_CONVENTION_EXT = 0x8E4E,
//GL_PROVOKING_VERTEX_EXT = 0x8E4F,
//GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT... | 220 |
995 | <filename>deps/boost/include/boost/python/numpy.hpp<gh_stars>100-1000
// Copyright <NAME> 2010-2012.
// Copyright <NAME> 2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef boost_python_numpy_hpp... | 471 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMService.h"
#import "MMService.h"
#import "PBMessageObserverDelegate.h"
@class NSString;
@interface WCDeviceFriendWifiMgr : MMService <PBMessageObserverDelegate, MMService>
{... | 347 |
1,538 | /* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* ... | 1,388 |
1,016 | <reponame>yeikel/vertx-web<gh_stars>1000+
/*
* Copyright 2014 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public Licens... | 1,888 |
1,398 | <filename>packages/styled-icons/package.json
{
"name": "styled-icons",
"version": "10.45.0",
"license": "MIT",
"description": "Icons from packs like Font Awesome, Material, Octicons, Feather, Icomoon, and Boxicons available as Styled Components",
"author": "<NAME> <<EMAIL>>",
"homepage": "https://github.com... | 1,292 |
18,621 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 2,646 |
3,788 | <reponame>riverar/microsoft-ui-xaml
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "pch.h"
#include "common.h"
#include "PersonPicture.h"
#include "PersonPictureAutomationPeer.h"
#include "Perso... | 270 |
553 | package com.muses.taoshop.common.security.core.utils;
import sun.misc.BASE64Encoder;
import java.security.SecureRandom;
import java.text.SimpleDateFormat;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
/**
* <pre>
* AES加密工具类
* ... | 1,088 |
629 | #include <BWAPI/Forceset.h>
#include <BWAPI/Force.h>
#include <BWAPI/Playerset.h>
#include <utility>
namespace BWAPI
{
Playerset Forceset::getPlayers() const
{
Playerset rset;
for (auto &f : *this)
{
auto players = f->getPlayers();
rset.insert(players.begin(), players.end());... | 165 |
14,668 | <gh_stars>1000+
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.test.pagecontroller.utils;
import android.support.test.uiautomator.UiDevice;
import android.support.test.uiau... | 666 |
2,519 | // This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/incubator-doris/blob/master/fe/fe-core/src/main/java/org/apache/doris/http/rest/StorageTypeCheckAction.java
// Licensed to the Apache Software Foundation (ASF)... | 1,513 |
5,169 | {
"name": "FTGDataXMLNode",
"version": "0.0.1",
"summary": "summary",
"homepage": "https://gitee.com/TingShuo_iOS/FTGDataXMLNode",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"shxlxa": "<EMAIL>"
},
"source": {
"git": "https://gitee.com/TingShuo_iOS/FTGDataXMLNode.git"... | 269 |
2,406 | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from mo.front.common.partial_infer.roipooling import roipooling_infer
from mo.ops.op import Op
class ROIPooling(Op):
op = 'ROIPooling'
enabled = False
def __init__(self, graph, attrs: dict):
super().__init__(graph,... | 389 |
454 | package io.vertx.tp.plugin;
import io.reactivex.Observable;
import io.vertx.core.Future;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.mongo.FindOptions;
import io.vertx.ext.mongo.MongoClient;
import io.vertx.tp.plugin.mongo.MongoInfix;
import io.vertx.up.fn.Fn;
import ... | 2,637 |
558 | <reponame>ammarnajjar/allure-python<filename>allure-python-commons-test/src/result.py
"""
>>> from hamcrest import assert_that
>>> from hamcrest import is_not
>>> testcases = {
... 'ideal_case': {
... 'name': 'ideal_case',
... 'parentIds': ['gid-1', 'gid-2'],
... 'steps': [
... ... | 2,184 |
407 | // MIT License
//
// Copyright (c) 2019 <NAME>, Chair for Embedded Security. All Rights reserved.
// Copyright (c) 2021 Max Planck Institute for Security and Privacy. All Rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documenta... | 811 |
852 | <reponame>ckamtsikis/cmssw
## import skeleton process
from PhysicsTools.PatAlgos.patTemplate_cfg import *
#process.Tracer = cms.Service("Tracer")
process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
patAlgosToolsTask.add(process.patCandidatesTask)
#Temporary customize to the unit tests that fail du... | 839 |
8,772 | <reponame>dgusoff/cas<filename>support/cas-server-support-ldap/src/test/java/org/apereo/cas/authentication/OpenLdapAuthenticationHandlerTests.java
package org.apereo.cas.authentication;
import org.apereo.cas.adaptors.ldap.LdapIntegrationTestsOperations;
import org.apereo.cas.configuration.CasConfigurationProperties;
i... | 1,277 |
1,188 | /*
* Copyright 2016 <NAME> <<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 required by applicab... | 654 |
412 | class B
{
public:
virtual int f()
{
return 0;
}
};
void toBr(B &b)
{
assert(b.f() == 0);
}
int main()
{
B b;
// assert(b.f()==0);
toBr(b);
}
| 89 |
778 | <gh_stars>100-1000
IN = "in"
INOUT = "inout"
FILE_IN = "filein"
FILE_OUT = "fileout"
FILE_INOUT = "fileinout"
COLLECTION_IN = "collection_in"
COLLECTION_INOUT = "collection_inout"
COLLECTION_OUT = "collection_out"
# Aliases for parameter definition as dictionary
Type = "type" # parameter type
# available at PyCOMPS... | 217 |
1,442 | <filename>apps/solver/equation_store.cpp
#include "equation_store.h"
#include "../constant.h"
#include "../shared/poincare_helpers.h"
#include "../exam_mode_configuration.h"
#include "../global_preferences.h"
#include <limits.h>
#include <poincare/addition.h>
#include <poincare/constant.h>
#include <poincare/division.... | 7,065 |
628 | <reponame>gaybro8777/osf.io<filename>osf/migrations/0182_add_custom_file_versions_through.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-04-07 23:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration... | 575 |
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,562 |
695 | <filename>core/src/event/SetToolEvent.java
package event;
public class SetToolEvent extends Event {
}
| 31 |
665 | /*
* 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")... | 818 |
617 | #pragma once
#include <CoreMinimal.h>
DECLARE_LOG_CATEGORY_EXTERN(LogDaeTest, Log, All);
| 42 |
1,473 | /*
* Autopsy Forensic Browser
*
* Copyright 2011-2021 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 License at
*
* http... | 8,928 |
2,151 | <gh_stars>1000+
// 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.
#ifndef CHROME_BROWSER_UI_VIEWS_RELAUNCH_NOTIFICATION_GET_APP_MENU_ANCHOR_POINT_H_
#define CHROME_BROWSER_UI_VIEWS_RELAUNCH_NOTIFICATION_G... | 234 |
4,283 | /*
* Copyright (c) 2008-2021, Hazelcast, 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 required ... | 843 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Reconstituted",
"definitions": [
"Having been formed again.",
"(of dried food or drink) restored to its original state by the addition of water."
],
"parts-of-speech": "Adjective"
} | 104 |
385 | /*
This file is part of Corrade.
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017, 2018, 2019, 2020, 2021
<NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentatio... | 8,051 |
846 | package com.dslplatform.json.generated.ocd.javaasserts;
import org.junit.Assert;
public class TimestampAsserts {
static void assertSingleEquals(final String message, final org.joda.time.DateTime expected, final org.joda.time.DateTime actual, final org.joda.time.Duration delta) {
// TODO: Chronologies will not be c... | 16,593 |
3,897 | <reponame>mcheah-bose/mbed-os<gh_stars>1000+
/*************************************************************************************************/
/*!
* \file
*
* \brief SMP responder state machine action functions.
*
* Copyright (c) 2010-2018 Arm Ltd. All Rights Reserved.
*
* Copyright (c) 2019-2020 Packetcr... | 4,857 |
337 | <reponame>And0k/vaex<gh_stars>100-1000
from common import *
import collections
import numpy as np
def test_astype(ds_local):
ds = ds_local
ds_original = ds.copy()
#ds.columns['x'] = (ds.columns['x']*1).copy() # convert non non-big endian for now
ds['x'] = ds['x'].astype('f4')
assert ds.x.dtype ==... | 1,106 |
575 | // 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 "storage/browser/file_system/memory_file_stream_reader.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <string>
#include ... | 1,242 |
1,180 | <gh_stars>1000+
package redis.clients.jedis.params;
import java.util.ArrayList;
import java.util.Collections;
import redis.clients.jedis.Protocol;
import redis.clients.jedis.Protocol.Keyword;
import redis.clients.jedis.util.SafeEncoder;
public class StrAlgoLCSParams extends Params {
private static final String ... | 1,099 |
5,169 | {
"name": "PopKit",
"version": "0.1.3",
"summary": "A flexible framework as a one size fits all solution for popups, modals, notifications and menus",
"description": "The purpose of this pod is to provide users with a one size fits all solution popups, modals, notifications and menus. The are hundreds of differ... | 343 |
1,204 | <filename>unit-tests/src/test/java/com/gs/collections/impl/string/immutable/CodePointListTest.java<gh_stars>1000+
/*
* Copyright 2015 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License... | 7,952 |
1,775 | <filename>dubbo/src/main/java/com/threedr3am/bug/dubbo/rouge/java/CommonsBeanUtils.java<gh_stars>1000+
package com.threedr3am.bug.dubbo.rouge.java;
import com.threedr3am.bug.common.utils.Reflections;
import com.threedr3am.bug.dubbo.rouge.RougeBase;
import com.threedr3am.bug.dubbo.utils.Gadgets;
import java.io.ByteArra... | 1,083 |
5,119 | <filename>tests/testprogs/intptrcast.c
int fn(short p1,
short p2,
short p3,
short p4,
short p5,
unsigned long p6,
short p7,
short p8,
short p9)
{
return p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9;
}
int main() {
fn(0x123,
0x456,
0x789,
0xabc,
... | 245 |
335 | <gh_stars>100-1000
{
"word": "Rail",
"definitions": [
"Provide or enclose (a space or place) with a rail or rails.",
"Convey (goods) by rail.",
"(in windsurfing) sail the board on its edge."
],
"parts-of-speech": "Verb"
} | 116 |
2,305 | import multiprocessing
import os
import sys
import time
import pytest
import pytorch_lightning as pl
from nni.retiarii import strategy
from nni.retiarii.experiment.pytorch import RetiariiExeConfig, RetiariiExperiment
from ut.nas.test_experiment import nas_experiment_trial_params, ensure_success
from .test_oneshot impo... | 1,130 |
1,450 | <gh_stars>1000+
from pdb import set_trace as T
from sim import Exchange
from sim.item import RawFish
def testExchange():
market = Exchange.Exchange()
sardine = RawFish.Sardine
def checkPrint():
print(market.buyOffers[sardine].queue)
print(market.sellOffers[sardine].queue)
print()
market... | 240 |
2,338 | //===-- llvm/MC/MCFixupKindInfo.h - Fixup Descriptors -----------*- 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
//
//===---------------------------... | 490 |
643 | // Generated automatically from android.view.ScrollCaptureTarget for testing purposes
package android.view;
import android.graphics.Point;
import android.graphics.Rect;
import android.view.ScrollCaptureCallback;
import android.view.View;
public class ScrollCaptureTarget
{
protected ScrollCaptureTarget() {}
p... | 240 |
2,120 | <reponame>RafaelLeeImg/pslab-firmware<filename>pslab-bootloader.X/mcc_generated_files/memory/flash.h
/**
FLASH Generated Driver API Header File
@Company
Microchip Technology Inc.
@File Name
flash.h
@Summary
This is the generated header file for the FLASH driver using PIC24 / dsPIC33 / P... | 713 |
4,403 | <reponame>shuyan-k/hutool
/**
* Hutool-db是一个在JDBC基础上封装的数据库操作工具类,通过包装,使用ActiveRecord思想操作数据库。<br>
* 在Hutool-db中,使用Entity(本质上是个Map)代替Bean来使数据库操作更加灵活,同时提供Bean和Entity的转换提供传统ORM的兼容支持。
*
* @author looly
*
*/
package cn.hutool.db; | 236 |
304 | <filename>paip/logic.py
"""
**Logic programming** is a model of computation that applies mathematical logic
to problem solving.
### Introduction
Logic programming is declarative, not procedural. In the procedural programming
paradigm, the programmer specifies data and the algorithms that should be
executed on those ... | 8,050 |
834 | <reponame>ekmixon/fboss<filename>fboss/cli/fboss2/commands/show/lldp/CmdShowLldp.h<gh_stars>100-1000
/*
* Copyright (c) 2004-present, Facebook, Inc.
* 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. An addi... | 894 |
460 | #include "../../../src/declarative/graphicsitems/qdeclarativepincharea_p_p.h"
| 32 |
453 | {
"name": "superpowers-engine",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@types/three": {
"version": "0.81.1",
"resolved": "https://registry.npmjs.org/@types/three/-/three-0.81.1.tgz",
"integrity": "sha1-g+Ng/Ts1ZGQM6b2WdZnFcvRhgVo=",
"dev": tr... | 404 |
678 | <reponame>RockerHX/FishChat
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "WCRedEnvelopesReceiverInfo.h"
@interface WCPayFaceRedEnvelopesReceiverInfo : WCRedEnvelopesReceiverInfo
{
_Bool _isLucky;
}
@property(nonatomic)... | 157 |
1,498 | from django.test import TestCase
from suggestion.algorithm.abstract_algorithm import AbstractSuggestionAlgorithm
from suggestion.algorithm.base_skopt_algorithm import BaseSkoptAlgorithm
class BaseSkoptAlgorithmTest(TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_init(self):
ins... | 150 |
549 | #pragma once
#include <device/debug/com.h>
#include <stdint.h>
#include <stivale_struct.h>
void _start(struct stivale_struct *bootloader_data);
| 56 |
1,552 | #!/usr/bin/env python
# Copyright 2019 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/LICENSE-2.0
# Unless required by applica... | 2,953 |
790 | from django.test import TestCase
from django.test.utils import override_settings
from django.contrib.auth import signals
class SignalTestCase(TestCase):
urls = 'django.contrib.auth.tests.urls'
fixtures = ['authtestdata.json']
def listener_login(self, user, **kwargs):
self.logged_in.append(user)
... | 772 |
9,516 | <reponame>ketyi/dgl
"""Sparse optimizer is not supported for tensorflow""" | 25 |
1,180 | <filename>crypt_hash_is_valid.c
/* LibTomCrypt, modular cryptographic library -- <NAME> */
/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@file crypt_hash_is_valid.c
Determine if hash is valid, <NAME>
*/
/*
Test if a hash index is valid
@param idx The index of the hash to searc... | 270 |
433 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.source;
import java.io.Serializable;
import java.lang.reflect.*;
import java.util.*;
import java.util.co... | 7,892 |
310 | {
"name": "QuietComfort 35",
"description": "Wireless over-the-ear headphones.",
"url": "https://www.bose.com/en_us/products/headphones/over_ear_headphones/quietcomfort-35-wireless.html"
} | 71 |
2,268 | <reponame>joshmartel/source-sdk-2013<filename>sp/src/game/client/basepresence.cpp
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Base presence implementation for PC
//
//=====================================================================================//
#include "cbase.... | 824 |
414 | ../../../QBImagePickerController/QBImagePicker/QBAlbumCell.h | 22 |
2,151 | // 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.
#ifndef IOS_WEB_VIEW_PUBLIC_CWV_CREDIT_CARD_VERIFIER_H_
#define IOS_WEB_VIEW_PUBLIC_CWV_CREDIT_CARD_VERIFIER_H_
#import <UIKit/UIKit.h>
#import "cwv_exp... | 1,016 |
770 | <filename>libtommath/bn_mp_get_mag_ull.c
#include "tommath_private.h"
#ifdef BN_MP_GET_MAG_ULL_C
/* LibTomMath, multiple-precision integer library -- <NAME> */
/* SPDX-License-Identifier: Unlicense */
MP_GET_MAG(mp_get_mag_ull, unsigned long long)
#endif
| 101 |
2,637 | /**
* Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
*
* 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, th... | 11,034 |
2,151 | <reponame>zipated/src
// Copyright (c) 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 PPAPI_PROXY_VPN_PROVIDER_RESOURCE_H_
#define PPAPI_PROXY_VPN_PROVIDER_RESOURCE_H_
#include <memory>
#include "base/con... | 1,311 |
29,258 | package com.taobao.arthas.core.command.model;
import java.util.Collection;
import java.util.Map;
/**
* Model of logger command
*
* @author gongdewei 2020/4/22
*/
public class LoggerModel extends ResultModel {
private Map<String, Map<String, Object>> loggerInfoMap;
private Collection<ClassLoaderVO> matche... | 491 |
4,812 | //===-- VPlanHCFGBuilder.h --------------------------------------*- 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
//
//===---------------------------... | 773 |
3,269 | // Time: O(logn) = O(1) due to n is a 32-bit number
// Space: O(1)
class Solution {
public:
int binaryGap(int N) {
int result = 0;
int last = -1;
for (int i = 0; i < 32; ++i) {
if ((N >> i) & 1) {
if (last != -1) {
result = max(result, i - la... | 256 |
412 | <gh_stars>100-1000
/*
* Copyright (C) 2009 Jayway AB
* Copyright (C) 2007-2008 <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... | 1,396 |
32,544 | <reponame>zeesh49/tutorials
package com.baeldung.factorybean;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.tes... | 435 |
709 | # -*- coding: utf-8 -*-
"""爱课程"""
from .utils import *
from bs4 import BeautifulSoup
import re
import json
CANDY = Crawler()
CONFIG = {}
FILES = {}
def get_content(url):
"""获得课程信息"""
res = CANDY.get(url).text
soup = BeautifulSoup(res, 'lxml')
script = soup.find_all('script')[-2].string
js = re.... | 900 |
435 | <filename>pycon-us-2021/videos/charlas-mauricio-vasquez-tracing-distribuido-con-opentelemetry.json<gh_stars>100-1000
{
"copyright_text": null,
"description": "OpenTelemetry nace de la fusi\u00f3n de OpenTracing y OpenCensus, dos proyectos similares que brindan un conjunto de APIs para tracing distribuido y m\u00e9t... | 886 |
335 | <filename>examples/32_radiohead/main/modem_config.h
// RH_RF95_REG_1D_MODEM_CONFIG1 0x1d
#define RH_RF95_BW 0xf0
#define RH_RF95_BW_7_8KHZ 0x00
#define RH_RF95_BW_10_4KHZ 0x10
#define RH_RF95_BW_15_6KHZ ... | 1,279 |
3,287 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 2,722 |
14,668 | /*
* Copyright (C) 1999 <NAME> (<EMAIL>)
* (C) 1999 <NAME> (<EMAIL>)
* (C) 2000 <NAME> <<EMAIL>>
* Copyright (C) 2003, 2006, 2008, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Publ... | 2,362 |
892 | <reponame>westonsteimel/advisory-database-github<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-cr6q-w9jh-63pg",
"modified": "2022-05-02T03:58:43Z",
"published": "2022-05-02T03:58:43Z",
"aliases": [
"CVE-2009-4839"
],
"details": "Multiple cross-site scripting (XSS) vulnerabilities in Basic... | 747 |
634 | <filename>platform/util/src/com/intellij/util/concurrency/Semaphore.java
// Copyright 2000-2018 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.util.concurrency;
import com.intellij.openapi.progress.ProcessCanceledException;
im... | 951 |
1,473 | <filename>web/src/main/java/com/navercorp/pinpoint/web/util/DefaultMongoJsonParser.java
/*
* Copyright 2018 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://w... | 2,082 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.