max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
16,503 | /* Copyright 2021 Google LLC. 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 applicable law or... | 2,352 |
1,664 | <filename>ambari-server/src/main/java/org/apache/ambari/server/controller/ivory/Cluster.java
/*
* 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 AS... | 2,313 |
611 | <filename>torchdata/datapipes/map/util/unzipper.py
# 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.
from typing import Optional, Sequence, TypeVar
from torchda... | 1,150 |
723 | package net.dongliu.apk.parser.struct.resource;
import net.dongliu.apk.parser.struct.ResourceValue;
import javax.annotation.Nullable;
import java.util.Locale;
/**
* A Resource entry specifies the key (name) of the Resource.
* It is immediately followed by the value of that Resource.
*
* @author dongliu
*/
publi... | 851 |
1,405 | package android.support.v4.os;
import android.os.Trace;
class TraceJellybeanMR2 {
TraceJellybeanMR2() {
}
public static void beginSection(String section) {
Trace.beginSection(section);
}
public static void endSection() {
Trace.endSection();
}
}
| 113 |
575 | <gh_stars>100-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.
#ifndef CHROME_BROWSER_SSL_INSECURE_SENSITIVE_INPUT_DRIVER_H_
#define CHROME_BROWSER_SSL_INSECURE_SENSITIVE_INPUT_DRIVER_H_
#include "... | 525 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 1,485 |
1,602 | /* $Source: bitbucket.org:berkeleylab/gasnet.git/gasnet.h $
* Description: GASNet -> GASNet-EX transitional header
* Copyright 2016, The Regents of the University of California
* Terms of use are as specified in license.txt
*/
#ifndef _GASNET_H
#define _GASNET_H
#define _INCLUDED_GASNET_H
#include <gasnetex.h>
... | 26,936 |
382 | <gh_stars>100-1000
package com.youku.player.plugin;
/**
* Class MediaPlayerObserver
*/
public interface MediaPlayerObserver {
//
// Methods
//
//
// Accessor methods
//
//
// Other methods
//
/**
* 缓冲的通知
*
* @param percent
* 目前缓存的百分比
*/
public void onBufferingUpdateListener(int p... | 738 |
535 | <filename>bazel/serf.bzl
serf_build_rule = """
cc_library(
name = "serf",
srcs = [
"auth/auth.c",
"auth/auth_basic.c",
"auth/auth_digest.c",
"auth/auth_spnego.c",
"auth/auth_spnego_gss.c",
"auth/auth_spnego_sspi.c",
"buckets/aggregate_buckets.c",
... | 990 |
310 | <reponame>dreeves/usesthis
{
"name": "5big Thunderbolt",
"description": "A large hard drive bay.",
"url": "https://www.amazon.com/MODEL-LaCie-Thunderbolt-External-9000378U/dp/B00AX9ZA6W/"
} | 79 |
692 | <reponame>Hammy927/zt-exec<filename>src/main/java/org/zeroturnaround/exec/ProcessAttributes.java
/*
* Copyright (C) 2014 ZeroTurnaround <<EMAIL>>
* Contains fragments of code from Apache Commons Exec, rights owned
* by Apache Software Foundation (ASF).
*
* Licensed under the Apache License, Version 2.0 (the "Licen... | 611 |
462 | <filename>mq-biz/src/main/java/com/ppdai/infrastructure/mq/biz/ui/vo/ConnectionsVo.java
package com.ppdai.infrastructure.mq.biz.ui.vo;
/**
* @Author:wanghe02
* @Date:2019/4/16 16:19
*/
public class ConnectionsVo {
private String ip;
private String maxConnection;
private String curConnection;
public... | 311 |
1,627 | <filename>src/main/java/net/querz/mcaselector/filter/NumberFilter.java
package net.querz.mcaselector.filter;
import net.querz.mcaselector.io.mca.ChunkData;
public abstract class NumberFilter<T extends Number> extends Filter<T> {
private static final Comparator[] comparators = new Comparator[] {
Comparator.EQUAL,
... | 730 |
1,831 | /**
* Copyright (c) 2017-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.
*/
#include "logdevice/server/rebuilding/RebuildingReadStorageTask.h"
#include <gtest/gtest.h>
#include "log... | 11,773 |
3,843 | <gh_stars>1000+
package cn.finalteam.galleryfinal.sample.listener;
import com.bumptech.glide.Glide;
import cn.finalteam.galleryfinal.PauseOnScrollListener;
/**
* Desction:
* Author:pengjianbo
* Date:2016/1/9 0009 18:18
*/
public class GlidePauseOnScrollListener extends PauseOnScrollListener {
public GlidePa... | 239 |
645 | <gh_stars>100-1000
# coding: utf-8
import os
import sys
import logging
from importlib import import_module
def pytest_sessionstart(session):
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
format="%(asctime)s - %(levelname)s - %(message)s",
)
proj_dir ... | 325 |
2,305 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from collections import OrderedDict
from copy import Error
import logging
from typing import Dict, List
import numpy as np
from torch import Tensor
from torch.nn import Module
from nni.algorithms.compression.v2.pytorch.utils import config_list_... | 3,025 |
1,724 | /*
* Copyright 2008-present MongoDB, 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 ag... | 956 |
2,056 | <reponame>wbaweto/QConf
package net.qihoo.qconf;
public class QconfException extends Exception
{
public QconfException()
{}
public QconfException(String msg)
{
super(msg);
}
}
| 83 |
410 | {
"dId": "83683fda4a2c395c9d9952015b7d45be12d6862fe698153438ff6d89",
"title": "Cabinet anger at Brown cash raid",
"text": "Ministers are unhappy about plans to use Whitehall cash to keep council tax bills down, local government minister <NAME> has acknowledged.\n\n<NAME> reallocated \u00a3512m from central to loc... | 519 |
460 | <reponame>dyzmapl/BumpTop
#include "../../../src/xmlpatterns/schema/qxsdidcache_p.h"
| 40 |
3,702 | <filename>discovery-server/src/main/java/app/metatron/discovery/domain/mdm/source/MetaSourceService.java<gh_stars>1000+
/*
* 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... | 1,006 |
458 | // Copyright (C) 2014 - 2015 Nippon Telegraph and Telephone Corporation.
//
// 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 r... | 11,419 |
679 | <reponame>Alan-love/openoffice
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... | 12,126 |
742 | <reponame>ntzxtyz/ormpp<filename>pg_types.h<gh_stars>100-1000
//
// Created by qiyu on 10/30/17.
//
#ifndef ORM_PG_TYPES_H
#define ORM_PG_TYPES_H
#define BOOLOID 16
#define BYTEAOID 17
#define CHAROID 18
#define NAMEOID 19
#define INT8OID 20
#define INT2OID 21
#define INT2VECTOROID 22
#define INT4OID 23
... | 602 |
1,481 | <filename>core/src/test/java/apoc/generate/config/WattsStrogatzConfigTest.java
package apoc.generate.config;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* Unit test for {@link WattsStrogatzConfig}.
*/
public class WattsStrogatzConfigTest {
... | 832 |
1,264 | /*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use t... | 953 |
808 | #include <ntddk.h>
#include "PoolManager.h"
#include "Logging.h"
#include "GlobalVariables.h"
#include "PoolManager.h"
#include "Common.h"
BOOLEAN PoolManagerInitialize(){
// Allocate global requesting variable
RequestNewAllocation = ExAllocatePoolWithTag(NonPagedPool, sizeof(REQUEST_NEW_ALLOCATION), POOL... | 3,861 |
1,208 | ../../../SVProgressHUD/SVProgressHUD/SVRadialGradientLayer.h | 22 |
453 | #include <string.h>
#include <unistd.h>
#include <errno.h>
char *
getwd (char *buf)
{
char tmp[MAXPATHLEN];
if (buf == NULL)
{
errno = EINVAL;
return NULL;
}
if (getcwd (tmp, MAXPATHLEN) == NULL)
return NULL;
return strncpy (buf, tmp, MAXPATHLEN);
}
| 137 |
372 | /*
* 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 writing, software distributed under t... | 986 |
323 | THOST_FTDC_EXP_Normal = '0'
THOST_FTDC_EXP_GenOrderByTrade = '1'
THOST_FTDC_ICT_EID = '0'
THOST_FTDC_ICT_IDCard = '1'
THOST_FTDC_ICT_OfficerIDCard = '2'
THOST_FTDC_ICT_PoliceIDCard = '3'
THOST_FTDC_ICT_SoldierIDCard = '4'
THOST_FTDC_ICT_HouseholdRegister = '5'
THOST_FTDC_ICT_Passport = '6'
THOST_FTDC_ICT_TaiwanCompatri... | 19,342 |
3,486 | <reponame>rafaelmotaalves/titan<filename>titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/indexing/IndexInformation.java
package com.thinkaurelius.titan.diskstorage.indexing;
import com.thinkaurelius.titan.graphdb.query.TitanPredicate;
/**
* An IndexInformation gives basic information on what a particula... | 487 |
22,688 | <filename>modules/bridge/udp_bridge_sender_component.cc<gh_stars>1000+
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... | 1,106 |
4,163 | <filename>proselint/checks/malapropisms/__init__.py<gh_stars>1000+
"""Malaproprisms."""
| 36 |
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 ... | 4,589 |
1,863 | <filename>PhysX_3.4/Source/LowLevelCloth/src/SwSolverKernel.h
//
// 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 list of conditi... | 994 |
5,169 | {
"name": "Ubaguruma",
"version": "0.0.1",
"summary": "Ubaguruma can a photo select picker like LINE.",
"homepage": "https://github.com/nakajijapan/Ubaguruma",
"license": "MIT",
"authors": {
"nakajijapan": "<EMAIL>"
},
"source": {
"git": "https://github.com/nakajijapan/Ubaguruma.git",
"tag":... | 283 |
312 | <reponame>patrickwyler/rdf4j<filename>core/sail/shacl/src/test/java/org/eclipse/rdf4j/sail/shacl/ShaclTestWithoutRdfsReasoner.java
/*******************************************************************************
* Copyright (c) 2021 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying ... | 1,019 |
518 | {
"name": "Outlook Calendar",
"category": "Communication & Collaboration",
"start_url": "https://outlook.office365.com/calendar/",
"icons": [
{
"src": "https://cdn.filestackcontent.com/7XA7crEyT5awT59ziTd1",
"platform": "browserx"
}
],
"theme_color": "#0470C7",
"scope": "https://outloo... | 146 |
1,040 | //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by winmain.rc
//
#define IDI_MAIN_ICON 101
#define IDR_MAIN_ACCEL 113
#define IDD_CHANGEDEVICE 145
#define IDC_DEVICE_COMBO 1010
#define IDC_MODE_COMBO 10... | 415 |
1,564 | <reponame>nicktar/modelmapper
package org.modelmapper;
/**
* Simple interface for extensions that can be registered with {@link ModelMapper}
* to provide some extensions.
*
* @author <NAME>
*/
public interface Module {
/**
* Setup the ModelMapper for external functionality
*
* @param model... | 137 |
610 | /**
* Copyright (c) 2015-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 additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <X... | 386 |
1,231 | <filename>documents/Programmierparadigmen/scripts/mpi/comm-size-example.c
#include "mpi.h"
int size;
MPI_Comm comm;
...
MPI_Comm_size(comm, &size);
... | 72 |
852 | #ifndef IIOV_H
#define IIOV_H
#include <stdexcept>
#include "OnlineDB/EcalCondDB/interface/IUniqueDBObject.h"
/**
* Abstract base class for an IOV object
*/
class IIOV : public IUniqueDBObject {};
#endif
| 79 |
908 | # -*- coding: utf-8 -*-
"""
Tests for the resurrected Py2-like 8-bit string type.
"""
from __future__ import absolute_import, unicode_literals, print_function
from numbers import Integral
from future.tests.base import unittest
from past.builtins import str as oldstr
from past.types.oldstr import unescape
class Test... | 644 |
456 | <reponame>luckyframework/docsearch-configs
{
"index_name": "capacitorjs",
"start_urls": ["https://capacitorjs.com/docs"],
"stop_urls": [],
"sitemap_urls": ["https://capacitorjs.com/sitemap.xml"],
"selectors": {
"lvl0": "a.sc-docs-header.active",
"lvl1": {
"selector": "//ul[contains(@class, 'menu... | 330 |
5,169 | {
"name": "Mattress",
"version": "1.0.2",
"license": "MIT",
"summary": "iOS Offline Caching for Web Content",
"homepage": "https://github.com/buzzfeed/mattress",
"social_media_url": "http://twitter.com/buzzfeed",
"authors": {
"<NAME>": "<EMAIL>",
"<NAME>": "<EMAIL>"
},
"source": {
"git": "... | 396 |
1,948 | <reponame>PyAntony/reactor-netty<gh_stars>1000+
/*
* Copyright (c) 2011-2021 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 1,399 |
21,684 | #include "rdb_protocol/artificial_table/backend.hpp"
#include <algorithm>
#include "clustering/administration/artificial_reql_cluster_interface.hpp"
#include "rdb_protocol/artificial_table/artificial_table.hpp"
#include "rdb_protocol/datum_stream.hpp"
#include "rdb_protocol/datum_stream/vector.hpp"
const uuid_u arti... | 1,911 |
2,151 | /*
* Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
* Copyright (C) 2007-2009 Torch Mobile, Inc.
* Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
* Copyright (C) 2013 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary fo... | 849 |
1,018 | /*
* Copyright 2014-2019 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 required by applica... | 1,454 |
372 | /*-----------------------------------------------------------------------------
* $RCSfile: sec_genrsakey.c,v $
*
* See Copyright for the status of this software.
*
* The OpenSOAP Project
* http://opensoap.jp/
*-----------------------------------------------------------------------------
*/
#include <OpenSOAP/S... | 1,354 |
1,744 | package org.embulk.spi.util.dynamic;
import org.embulk.spi.Column;
import org.embulk.spi.PageBuilder;
public class NullDefaultValueSetter implements DefaultValueSetter {
public void setBoolean(PageBuilder pageBuilder, Column c) {
pageBuilder.setNull(c);
}
public void setLong(PageBuilder pageBuild... | 295 |
1,855 | // IFolderArchive.h
#ifndef __IFOLDER_ARCHIVE_H
#define __IFOLDER_ARCHIVE_H
#include "../../../Common/MyString.h"
#include "../../Archive/IArchive.h"
#include "../../UI/Common/LoadCodecs.h"
#include "../../UI/FileManager/IFolder.h"
#include "../Common/ExtractMode.h"
#include "../Common/IFileExtractCallback.h"
#de... | 1,698 |
1,627 | <filename>examples/example_decode.cpp
/*
LodePNG Examples
Copyright (c) 2005-2012 <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.
Permission is granted to anyone to use this software ... | 972 |
634 | <reponame>halotroop2288/consulo<gh_stars>100-1000
package com.intellij.execution.filters;
import com.intellij.openapi.util.io.FileUtil;
import javax.annotation.Nullable;
import java.io.File;
import java.io.IOException;
/**
* from Kotlin
*/
public class ArgumentFileFilter implements Filter {
private volatile Stri... | 483 |
423 | <gh_stars>100-1000
import cv2
import torch
import numpy as np
import torch
from math import *
sigma_inp = 20#ref.hmGaussInp
n = sigma_inp * 6 + 1
g_inp = np.zeros((n, n))
for i in range(n):
for j in range(n):
g_inp[i, j] = np.exp(-((i - n / 2) ** 2 + (j - n / 2) ** 2) / (2. * sigma_inp * sigma_inp))
def GetTran... | 3,200 |
5,863 | <gh_stars>1000+
import os
import tempfile
class Config:
lineEnd = "\n"
biLineEnd = "\n\n"
triLineEnd = "\n\n\n"
undrln = "_"
blank = " "
tab = "\t"
star = "*"
slash = "/"
comma = ","
delimInFeature = "."
B = "B"
num = "0123456789.几二三四五六七八九十千万亿兆零1234567890%"
letter =... | 2,694 |
953 | <gh_stars>100-1000
"""Package for IL commands."""
| 17 |
45,293 | <reponame>Mu-L/kotlin<filename>kotlin-native/backend.native/tests/interop/objc/tests/mangling.h
#import <Foundation/NSObject.h>
// [KT-36067] cinterop tool fails when there is a structure member named Companion
struct EnumFieldMangleStruct {
enum {Companion, Any} smth;
};
struct EnumFieldMangleStruct enumMangledStru... | 236 |
4,124 | <filename>jstorm-core/src/main/java/com/alibaba/jstorm/daemon/worker/FlusherPool.java
/**
* 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 lice... | 1,261 |
381 | <filename>tests/general/no_arg_main.cc
#include <stdio.h>
int main() {
puts("hello from C++ no-arg main!");
return 0;
}
| 55 |
875 | <reponame>a-pertsev/sqoop
/**
* 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... | 1,291 |
336 | class Int32:
"""
A signed integer with a 32-bit fixed width.
"""
def __init__(self, value):
if value < -2 ** 31 or value > 2 ** 31 - 1:
raise ValueError('value {} cannot be represented in int32'.format(value))
self._value = value
def get_value(self):
return self... | 474 |
602 | <reponame>CorfuDB/CORFU<gh_stars>100-1000
package org.corfudb.generator.operations;
import org.corfudb.generator.Correctness;
import org.corfudb.generator.State;
import org.corfudb.runtime.exceptions.TransactionAbortedException;
import java.util.List;
/**
* Created by rmichoud on 10/6/17.
*/
public class WriteAfte... | 587 |
7,018 | <gh_stars>1000+
package com.tencent.mtt.hippy.example.view;
import android.view.View;
import com.tencent.mtt.hippy.annotation.HippyController;
import com.tencent.mtt.hippy.annotation.HippyControllerProps;
import com.tencent.mtt.hippy.utils.LogUtils;
import com.tencent.mtt.hippy.views.custom.HippyCustomPropsController;... | 239 |
2,529 | from datetime import timedelta
import pytest
from .conf import TlsTestConf
class TestProxy:
@pytest.fixture(autouse=True, scope='class')
def _class_scope(self, env):
conf = TlsTestConf(env=env, extras={
'base': "LogLevel proxy:trace1 proxy_http:trace1 ssl:trace1",
env.domain... | 685 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.weblayer_private;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
/**
* He... | 244 |
721 | {
"forge_marker": 1,
"defaults": {
"textures": {
"particle": "enderio:blocks/block_concussion_charge_side",
"bottom": "enderio:blocks/block_concussion_charge_bottom",
"top": "enderio:blocks/block_concussion_charge_top",
"side": "enderio:blocks/block_concussion_charge_side"
},
"mo... | 219 |
1,695 | /*
* 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 writing, software
* distribut... | 433 |
500 | <reponame>erluxman/flutter_background_geolocation
#import "StreamHandler.h"
@interface MotionChangeStreamHandler : StreamHandler
@end
| 41 |
573 | <gh_stars>100-1000
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "spells.h"
#include "../cirno.h"
#include "../misc.h"
#incl... | 1,596 |
782 | /*
* Copyright (c) 2011-2020, <NAME>. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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://www.apach... | 811 |
1,177 |
#include "stdafx.h"
#include "mLibCore.cpp"
#include "mLibLodePNG.cpp"
//#include "mLibZLib.cpp"
#include "mLibDepthCamera.cpp" | 57 |
562 | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""This module defines a class to represent a compiler environment state."""
import csv
import sys
from typing import Iterable, List, Optional,... | 3,034 |
4,919 | <gh_stars>1000+
/**
* Thread pool wrap/decoration utils.
*
* @author <NAME> (oldratlee at gmail dot com)
* @see com.alibaba.ttl.threadpool.TtlExecutors
* @see com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper
*/
package com.alibaba.ttl.threadpool;
| 97 |
453 | #include "pic.h"
//Some chip-specific PIC defines borrowed from http://wiki.osdev.org/8259_PIC
#define PIC1 0x20 //IO base address for master PIC
#define PIC2 0xA0 //IO base address for slave PIC
#define PIC1_COMMAND PIC1
#define PIC1_DATA (PIC1+1)
#define PIC2_COMMAND PIC2
#define PI... | 1,085 |
1,204 | /*
* 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 18,605 |
1,318 | <filename>venv/Lib/site-packages/defusedxml/xmlrpc.py
# defusedxml
#
# Copyright (c) 2013 by <NAME> <<EMAIL>>
# Licensed to PSF under a Contributor Agreement.
# See https://www.python.org/psf/license for licensing details.
"""Defused xmlrpclib
Also defuses gzip bomb
"""
from __future__ import print_function, absolute_... | 2,196 |
379 | package cc.bitky.clustermanage.netty.message.web;
import cc.bitky.clustermanage.netty.message.MsgType;
import cc.bitky.clustermanage.netty.message.base.BaseMessage;
/**
* 服务器操作远程开锁
*/
public class WebMsgDeployLedStop extends BaseMessage {
public WebMsgDeployLedStop(int groupId, int boxId) {
super(grou... | 168 |
450 | //===- MsgHandling.h ------------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef ONNC_DIAGNOSTIC_MSG_HANDLING_H
#define ONNC_DIAGNOSTIC_MSG_HA... | 1,418 |
375 | /*
* Copyright 2018 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.model.table.setting;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
... | 2,271 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Package containing the data models for SqlManagementClient. The Azure SQL Database management API provides a RESTful
* set of web services that interact wi... | 112 |
4,403 | package cn.hutool.json.test.bean;
import lombok.Data;
import java.io.Serializable;
@Data
public class JsonNode implements Serializable {
private static final long serialVersionUID = -2280206942803550272L;
private Long id;
private Integer parentId;
private String name;
public JsonNode() {
}
public JsonNode(... | 152 |
1,073 | /*
* -\-\-
* Mobius
* --
* Copyright (c) 2017-2020 Spotify AB
* --
* 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 req... | 1,484 |
16,989 | // Copyright 2020 The Bazel 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 by appl... | 490 |
2,434 | <filename>swagger2markup-asciidoc/src/main/java/io/github/swagger2markup/adoc/converter/internal/Style.java
package io.github.swagger2markup.adoc.converter.internal;
import org.apache.commons.lang3.StringUtils;
public enum Style {
ASCIIDOC("a"), EMPHASIS("e"), HEADER("h"), LITERAL("l"), MONOSPACED("m"), NONE("d")... | 458 |
10,225 | <filename>extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/context/test/customContext/CustomContextTest.java
package io.quarkus.context.test.customContext;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
impo... | 663 |
14,443 | <reponame>proletarius101/material-components-android
/*
* Copyright 2017 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
*
* https://www.apache.org/... | 1,105 |
11,356 | // Copyright <NAME>, 2017
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/math/concepts/std_real_concept.hpp>
#include <boost/math/tools/polynomial.hpp>
#includ... | 459 |
2,151 | // 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 "extensions/shell/browser/shell_oauth2_token_service.h"
#include "base/logging.h"
#include "content/public/browser/browser_context.h"
#include "... | 622 |
589 | package rocks.inspectit.agent.java.sensor.platform;
import java.sql.Timestamp;
import java.util.Calendar;
import rocks.inspectit.agent.java.sensor.platform.provider.RuntimeInfoProvider;
import rocks.inspectit.agent.java.sensor.platform.provider.factory.PlatformSensorInfoProviderFactory;
import rocks.inspectit.shared.... | 1,055 |
365 | <filename>viz/web/webserve.py
import sys
import os
import base64
import threading
import ssl
import SocketServer
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
WEB_PORT=5000
class ThreadedTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
def log_request(self, *args, **k... | 637 |
418 | <filename>01.Firmware/components/nofrendo-esp32/psxcontroller.c
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://... | 1,559 |
2,206 | <filename>libnd4j/include/ops/declarable/generic/nn/convo/dilation2d.cpp
/* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.ap... | 1,706 |
1,144 | <reponame>dram/metasfresh
package de.metas.product.impl;
/*
* #%L
* de.metas.swat.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either v... | 1,306 |
14,668 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sandbox/win/src/restricted_token_utils.h"
#include <aclapi.h>
#include <sddl.h>
#include <memory>
#include <vector>
#include "base/check.... | 7,020 |
370 | #define DINT
#include <../Source/umf_cholmod.c>
| 21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.