max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,728 | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
# Main Cl... | 228 |
1,483 | /*
* Copyright Lealone Database Group.
* Licensed under the Server Side Public License, v 1.
* Initial Developer: zhh
*/
package org.lealone.sql.expression.visitor;
import java.util.Set;
import org.lealone.db.DbObject;
import org.lealone.db.table.Table;
import org.lealone.sql.expression.ExpressionColumn;
import o... | 776 |
340 | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 1,014 |
679 | <reponame>Grosskopf/openoffice<gh_stars>100-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 copyrig... | 4,748 |
460 | #ifdef __WXMAC_CLASSIC__
#include "wx/mac/classic/listbox.h"
#else
#include "wx/mac/carbon/listbox.h"
#endif
| 48 |
717 | /*
* $File: rbm.hh
* $Date: Thu Nov 07 12:30:21 2013 +0000
* $Author: <NAME> <zxytim[at]gmail[dot]com>
*/
#pragma once
#include <vector>
#include "type.hh"
#include "random.hh"
/// Restricted Boltzmann Machine
class RBM {
public:
// the visible_layer_size must match input dimension
RBM(int visible_layer_si... | 1,316 |
349 | <gh_stars>100-1000
/*
* tcp.c - TCP support.
*/
#include <siri/net/tcp.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <uv.h>
#include <xstr/xstr.h>
#include <siri/cfg/cfg.h>
#include <logger/logger.h>
#define TCP_NAME_BUF_SZ 54
const char * sirinet_tcp_ip_support_str(uint8_t ip_support)
{
... | 2,199 |
422 | <gh_stars>100-1000
from all_models.models import TbAdminUserRoleRelation
class UserRoleRelationService(object):
@staticmethod
def updateUserRole(userRoleData):
tbModel = TbAdminUserRoleRelation.objects.filter(id=userRoleData["id"])
tbModel.update(**userRoleData)
| 107 |
432 | from ..rfb_utils.operator_utils import get_bxdf_items, get_light_items, get_lightfilter_items
from .. import rman_bl_nodes
from .. import rfb_icons
import bpy
class NODE_MT_RM_Bxdf_Category_Menu(bpy.types.Menu):
bl_label = "Bxdfs"
bl_idname = "NODE_MT_RM_Bxdf_Category_Menu"
@classmethod
def poll(cls, ... | 3,543 |
551 | <filename>profiles/msaaddev.json<gh_stars>100-1000
{
"image": "https://user-images.githubusercontent.com/44341551/128627907-fbeb7a8a-f0d7-454f-a077-cf10c8876aaa.png",
"issueId": 636,
"name": "<NAME>",
"username": "msaaddev"
}
| 110 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-w76g-6qc3-qpj6",
"modified": "2022-05-13T01:46:41Z",
"published": "2022-05-13T01:46:41Z",
"aliases": [
"CVE-2017-6615"
],
"details": "A vulnerability in the Simple Network Management Protocol (SNMP) subsystem of Cisco IOS XE 3... | 673 |
630 | <gh_stars>100-1000
from flask import jsonify
from flask_monitoringdashboard.controllers.outliers import get_outlier_graph, get_outlier_table
from flask_monitoringdashboard.database.count import count_outliers
from flask_monitoringdashboard.database import session_scope
from flask_monitoringdashboard.core.auth import... | 352 |
2,151 | <reponame>zipated/src
// 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 "third_party/blink/renderer/bindings/core/v8/v8_script_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "... | 3,443 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/browser/accessibility/accessibility_sound_proxy.h"
namespace chromecast {
namespace shell {
AccessibilitySoundProxy::AccessibilityS... | 339 |
2,576 | /*
* Copyright (c) 2010-2018. Axon Framework
*
* 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 o... | 387 |
828 | <reponame>typetree/hasor
/*
* Copyright 2008-2009 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
*... | 1,040 |
312 | <filename>spring-aot/src/main/java/org/springframework/nativex/type/NameDiscoverer.java<gh_stars>100-1000
/*
* Copyright 2019-2022 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 ... | 656 |
672 | #include <assert.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/wait.h>
/*
* Parent and child handlers are called in the order they were registered
* prepare handlers are called in reverse order. The non-commutative
* operations will ensure that we are calling them in the proper order.
*/
static int... | 402 |
477 | <reponame>security-geeks/iOS-11.1.2-15B202-Jailbreak<gh_stars>100-1000
#ifndef offsets_h
#define offsets_h
// offsets from the main kernel 0xfeedfacf
extern uint64_t allproc_offset;
extern uint64_t kernproc_offset;
// offsets in struct proc
extern uint64_t struct_proc_p_pid_offset;
extern uint64_t struct_proc_task_of... | 373 |
2,381 | package com.github.dockerjava.core.command;
import com.github.dockerjava.api.command.ResizeExecCmd;
import com.github.dockerjava.api.exception.NotFoundException;
import static com.google.common.base.Preconditions.checkNotNull;
public class ResizeExecCmdImpl extends AbstrDockerCmd<ResizeExecCmd, Void> implements Resi... | 492 |
1,801 | <gh_stars>1000+
// $Id: mwbmatching.cpp,v 1.3 2007/10/28 08:47:20 rdmp1c Exp $
#include "mwbmatching.h"
#include <cstdlib>
#include <cassert>
#include <iostream>
#include <queue>
#include <list>
#include <map>
#include <set>
#include <stack>
#ifdef __GNUC__
#include <algorithm>
#endif
#ifdef __BORLANDC__
#include... | 2,858 |
3,102 | <gh_stars>1000+
#include "d1.h"
#undef assert
| 22 |
14,668 | <reponame>zealoussnow/chromium
// 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 CHROMECAST_MEDIA_CMA_BACKEND_FUCHSIA_FUCHSIA_VOLUME_CONTROL_H_
#define CHROMECAST_MEDIA_CMA_BACKEND_FUCHSIA_FUCHSIA... | 421 |
3,055 | <reponame>kaidegit/u8g2<gh_stars>1000+
/*
Fontname: -FreeType-Old Standard TT-Medium-R-Normal--36-360-72-72-P-189-ISO10646-1
Copyright: Copyright (C) 2006-2008 <NAME> <<EMAIL>>
Glyphs: 191/1456
BBX Build Mode: 0
*/
const uint8_t u8g2_font_osr26_tf[8816] U8G2_FONT_SECTION("u8g2_font_osr26_tf") =
"\277\0\4\3\6... | 15,591 |
585 | # -*- coding: utf-8 -*-
from .diffusion import dtiaverage, dtiestim, dtiprocess, DWIConvert
from .tractography import *
from .gtract import (
gtractTransformToDisplacementField,
gtractInvertBSplineTransform,
gtractConcatDwi,
gtractAverageBvalues,
gtractCoregBvalues,
gtractResampleAnisotropy,
... | 369 |
1,042 | <reponame>sundayios/zhPopupController-master
//
// zh_UpdateView.h
// zhPopupController
//
// Created by zhanghao on 2017/9/7.
// Copyright © 2017年 snail-z. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface zhOverflyButton : UIButton
+ (instancetype)buttonWithTitle:(nullable NSS... | 1,467 |
343 | /*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* ============================================================... | 2,428 |
4,047 | <reponame>iinuwa/meson
# SPDX-license-identifier: Apache-2.0
# Copyright 2012-2021 The Meson development team
# Copyright © 2021 Intel 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 ... | 370 |
3,282 | <reponame>1060680253/AndroidChromium<gh_stars>1000+
// 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.
package org.chromium.chrome.browser.webapps;
import android.content.Intent;
import android.util.Pair;... | 2,972 |
358 | // Copyright 2018 The Ripple 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 agree... | 6,042 |
575 | // Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... | 1,196 |
852 | #include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "RecoHI/HiTracking/interface/HICaloCompatibleTrackSelector.h"
using reco::modules::HICaloCompatibleTrackSelector;
DEFINE_FWK_MODULE(HICaloCompatibleTrackSelector);
| 97 |
752 | <filename>pt/hubconf.py
dependencies = ["torch", "torchvision"]
from vmz.models import r2plus1d_34, r2plus1d_152, ip_csn_152, ir_csn_152
| 60 |
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.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 607 |
3,442 | <reponame>wcicola/jitsi<gh_stars>1000+
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Li... | 1,730 |
765 | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | 1,272 |
683 | <gh_stars>100-1000
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.servlet.v3_0;
import static io.opentelemetry.javaagent.instrumentation.servlet.v3_0.Servlet3Singletons.helper;
import io.opentelemetry.context.Context;
import io.... | 1,685 |
3,083 | // Copyright 2011-2016 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 288 |
862 | /*
* (c) Copyright 2020 Palantir Technologies 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 ... | 9,304 |
3,095 | <filename>videowidget/videowidget.cpp
#pragma execution_character_set("utf-8")
#include "videowidget.h"
#include "qfontdatabase.h"
#include "qpushbutton.h"
#include "qtreewidget.h"
#include "qlayout.h"
#include "qtimer.h"
#include "qdir.h"
#include "qpainter.h"
#include "qevent.h"
#include "qmimedata.h"
#include "qur... | 9,755 |
6,059 | <reponame>penguin-wwy/redex
/*
* 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.
*/
#pragma once
#include <string>
namespace keep_rules {
namespace proguard_parser {
std::string form_m... | 196 |
389 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 Adobe
~
~ 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/li... | 711 |
2,504 | <filename>Samples/DpiScaling/cpp/Scenario1.xaml.cpp
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PART... | 669 |
304 | <gh_stars>100-1000
/*
* Copyright 2019-2021 CloudNetService team & contributors
*
* 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
*
*... | 799 |
852 | <filename>SimG4Core/PhysicsLists/plugins/FTFPCMS_BERT_HP_EMM.h<gh_stars>100-1000
#ifndef SimG4Core_PhysicsLists_FTFPCMS_BERT_HP_EMM_H
#define SimG4Core_PhysicsLists_FTFPCMS_BERT_HP_EMM_H
#include "SimG4Core/Physics/interface/PhysicsList.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
class FTFPCMS_BERT_HP_... | 185 |
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 ... | 886 |
3,073 | #ifndef DEFINEMACROS_H
#define DEFINEMACROS_H
/*** Helper macros to define SHA3 and SHAKE instances. ***/
#define defshake(bits) \
int shake##bits(uint8_t* out, size_t outlen, \
const uint8_t* in, size_t inlen) { \
retur... | 1,057 |
521 | <reponame>zai1208/fbc
/* pmap statement and point function with one argument */
#include "fb_gfx.h"
FBCALL float fb_GfxPMap(float coord, int func)
{
FB_GFXCTX *context;
FB_GRAPHICS_LOCK( );
if (!__fb_gfx) {
FB_GRAPHICS_UNLOCK( );
return 0.0;
}
context = fb_hGetContext( );
fb_hPrepareTarget(context, NULL)... | 762 |
702 | /*
* Copyright ConsenSys AG.
*
* 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... | 640 |
451 | <gh_stars>100-1000
"""
Download a Matlab matrix file from sparse.tamu.edu and save it locally.
"""
import sys
import scipy.io
import urllib.request
def download_matfile(group, name, outfile="matrix.out"):
"""
Downloads a matrix file (matlab format) from sparse.tamu.edu and returns the matrix.
"""
with... | 292 |
1,134 | [
{
"op": "add",
"path": "/ValueTypes/AWS::CodePipeline::Pipeline.ActionTypeId.Category",
"value": {
"botocore": "codepipeline/2015-07-09/ActionCategory"
}
},
{
"op": "add",
"path": "/ValueTypes/AWS::CodePipeline::Pipeline.ActionTypeId.Owner",
"value": {
"botocore": "codepi... | 509 |
852 | <gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
from Geometry.CaloTopology.hgcalTopologyTesterEE_cfi import *
hgcalTopologyTesterHEF = hgcalTopologyTesterEE.clone(
detectorName = cms.string("HGCalHESiliconSensitive"),
types = cms.vint32(0,0,1,1,1,1,2,2,2),
layers = cms.vint32(1,2,... | 515 |
347 | package org.ovirt.engine.core.bll.network.template;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.when;
import java.util.Collections;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.ovirt.engine.core.bll.AbstractQueryTest;... | 997 |
834 | #using <System.dll>
using namespace System;
using namespace System::ComponentModel;
using namespace System::Security::Permissions;
//using System.Diagnostics;
namespace Win32Exception_CPP
{
public ref class Class1
{
public:
[PermissionSet(SecurityAction::Demand, Name="FullTrust")]
static void Ma... | 530 |
1,405 | <filename>sample5/recompiled_java/sources/com/network/android/m.java
package com.network.android;
import android.content.ContentResolver;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.location.Loca... | 29,332 |
2,847 | <gh_stars>1000+
from tests.testmodels import Principal, School, Student
from tortoise.contrib import test
from tortoise.query_utils import Prefetch
class TestRelationsWithUnique(test.TestCase):
async def test_relation_with_unique(self):
school1 = await School.create(id=1024, name="School1")
studen... | 932 |
2,031 | <reponame>huonw/nmslib<filename>python_bindings/integration_tests/test_nmslib.py
#!/usr/bin/python
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import sys
import os
import time
import numpy as np
import nmslib
from common import *
MAX_PRINT_QTY=5
def read_data(fn):
with open(fn) as f:
for line i... | 7,223 |
476 | from setuptools import setup, Extension
setup(
name="hpy.microbench",
setup_requires=['hpy.devel', 'cffi'],
ext_modules = [
Extension('cpy_simple',
['src/cpy_simple.c'],
extra_compile_args=['-g'])
],
hpy_ext_modules = [
Extension('hpy_simple',
... | 252 |
6,098 | package ai.h2o.automl.leaderboard;
import hex.Model;
import water.Iced;
import water.Key;
/**
* A cell computing lazily the size of a model.
*/
public class ModelSize extends Iced<ModelSize> implements LeaderboardCell<Long, ModelSize> {
public static final LeaderboardColumn COLUMN = new LeaderboardColumn("mode... | 599 |
410 | <filename>file.h
/* file.h - file abstraction layer */
#ifndef FILE_H
#define FILE_H
#include <stdint.h>
#include <stdio.h>
#include <wchar.h> /* for wchar_t */
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
typedef wchar_t file_tchar;
# define SYS_PATH_SEPARATOR '\\'
# define ALIEN_PATH_SEPARATOR '/'
# define... | 2,102 |
2,151 | // 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.
package org.chromium.chrome.browser.autofill.keyboard_accessory;
import static org.chromium.ui.base.LocalizationUtils.isLayoutRtl;
import android.conten... | 1,999 |
1,694 | <reponame>CrackerCat/iWeChat<gh_stars>1000+
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
#import "WCTTableCoding-Protocol.h"
@class CContact, CMessageWrap, MM... | 1,375 |
516 | <reponame>rjsuzuki/mopub-android-sdk
// Copyright 2018-2021 Twitter, Inc.
// Licensed under the MoPub SDK License Agreement
// https://www.mopub.com/legal/sdk-license-agreement/
package com.mopub.mobileads;
/**
* Marker interface for denoting an Interstitial without necessarily using the
* mopub-sdk-interstitial mo... | 112 |
1,240 | <filename>app/src/main/java/com/eventyay/organizer/core/auth/AuthActivity.java<gh_stars>1000+
package com.eventyay.organizer.core.auth;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx... | 1,007 |
2,757 | #! /usr/bin/env python
"""Print names of all methods defined in module
This script demonstrates use of the visitor interface of the compiler
package.
"""
import compiler
class MethodFinder:
"""Print the names of all the methods
Each visit method takes two arguments, the node and its current
... | 389 |
679 | <filename>main/canvas/source/directx/dx_bitmapcanvashelper.cxx
/**************************************************************
*
* 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
* reg... | 4,439 |
862 | <filename>timelock-agent/src/main/java/com/palantir/timelock/store/PersistenceConfigStore.java
/*
* (c) Copyright 2021 Palantir Technologies 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 obt... | 828 |
758 | /*
* Copyright 2017 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 applicable law or agreed t... | 1,280 |
2,151 | <reponame>zipated/src
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "char_coding.h"
#include <string.h>
#include <string>
#include "base/strings/string16.h"
#include "base/strings/utf_strin... | 1,786 |
348 | {"nom":"Usclas-du-Bosc","circ":"4ème circonscription","dpt":"Hérault","inscrits":145,"abs":72,"votants":73,"blancs":15,"nuls":3,"exp":55,"res":[{"nuance":"REM","nom":"<NAME>","voix":45},{"nuance":"FN","nom":"<NAME>","voix":10}]} | 95 |
512 | <gh_stars>100-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,937 |
985 | <filename>metamorphosis-integration-test/src/test/java/com/taobao/meta/test/spring/SrpingAPITest.java
package com.taobao.meta.test.spring;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.sp... | 574 |
634 | <gh_stars>100-1000
/*
* Copyright 2000-2014 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 app... | 1,320 |
8,772 | <filename>support/cas-server-support-acme/src/test/java/org/apereo/cas/acme/AcmeChallengeRepositoryTests.java<gh_stars>1000+
package org.apereo.cas.acme;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* This is {@link AcmeChallengeRepositor... | 283 |
1,939 | <filename>src/backend/codecc/core/task/biz-task/src/main/java/com/tencent/bk/codecc/task/dao/mongorepository/GongfengTriggerParamRepository.java<gh_stars>1000+
package com.tencent.bk.codecc.task.dao.mongorepository;
import com.tencent.bk.codecc.task.model.GongFengTriggerParamEntity;
import org.bson.types.ObjectId;
imp... | 220 |
7,794 | #ifndef SASS_TYPES_NULL_H
#define SASS_TYPES_NULL_H
#include <nan.h>
#include "value.h"
namespace SassTypes
{
class Null : public SassTypes::Value {
public:
static Null& get_singleton();
static v8::Local<v8::Function> get_constructor();
Sass_Value* get_sass_value();
v8::Local<v8::Object... | 233 |
1,593 | <reponame>starxiang/heif
/* This file is part of Nokia HEIF library
*
* Copyright (c) 2015-2021 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: <EMAIL>
*
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its
* subsidiaries... | 570 |
402 | <filename>Tests/ML/utils/test_hdf5_util.py<gh_stars>100-1000
# ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# ------... | 1,923 |
764 | {
"symbol": "bzc",
"address": "0xE7cEfbE857659690fd0d288752A81C7238A00756",
"overview": {
"en": "bzc is a new game platform based on blockchain technology. It perfectly displays the technical attributes of the blockchain, and displays the blockchain game in front of the public with a new form, starting th... | 421 |
1,521 | <gh_stars>1000+
package com.dexafree.materialList.card;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;
public abstract class Action {
private final Context mContext;
private CardProvider mProvider;
public Action(@NonNull final Context context) {
... | 277 |
476 | <gh_stars>100-1000
void *bug_list;
void setup_bug_list()
{
setvbuf(stdin, 0LL, 2, 0LL);
setvbuf(stdout, 0LL, 2, 0LL);
alarm(0xB4u);
bug_list = malloc(40uLL);
bzero(bug_list, 0x28uLL);
}
int show_menu()
{
puts("1. Create Bug");
puts("2. Edit Bug (N/A)");
puts("3. Delete Bug");
puts(... | 2,527 |
1,874 | <gh_stars>1000+
# Copyright 2016 IBM 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 1,102 |
1,289 | <filename>radiant-player-mac/Styles/LightStyle.h
/*
* LightStyle.h
*
* Created by <NAME>.
*
* Subject to terms and conditions in LICENSE.md.
*
*/
#import "ApplicationStyle.h"
@interface LightStyle : ApplicationStyle
@end
| 77 |
380 | /**
* Copyright 2019 Airbnb. Licensed under Apache-2.0. See LICENSE in the project root for license
* information.
*/
package com.airbnb.conveyor.async;
import java.io.Closeable;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import lombok.NonNull;
public interface AsyncSqsClien... | 227 |
431 | <reponame>ripdajacker/enunciate<gh_stars>100-1000
/*
* © 2019 by Intellectual Reserve, Inc. All rights reserved.
*/
package org.springframework.samples.petclinic.model;
import java.util.List;
public class ResponseData {
private List<?> rows;
public List<?> getRows() {
return rows;
}
public void setRo... | 130 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/web_dialogs/web_dialog_ui.h"
#include "content/public/common/bindings_policy.h"
#include "content/public/test/test_web_ui.h"
#include "testi... | 391 |
389 | //
// VSSyncNoAccountHeaderView.h
// Vesper
//
// Created by <NAME> on 4/25/14.
// Copyright (c) 2014 Q Branch LLC. All rights reserved.
//
@interface VSSyncNoAccountHeaderView : UIView
//- (void)updateLabelWidth:(CGFloat)superviewWidth;
@end
| 93 |
1,604 | package org.bouncycastle.mail.smime.examples;
import java.security.KeyStore;
import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import java.util.Properties;
import javax.mail.Session;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import org.bouncycastle.cms... | 961 |
852 | <filename>SimCalorimetry/HGCalSimAlgos/src/HGCalSciNoiseMap.cc
#include "SimCalorimetry/HGCalSimAlgos/interface/HGCalSciNoiseMap.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include <fstream>
//
HGCalSciNoiseMap::HGCalSciNoiseMap() : refEdge_(3.) {}
//
void HGCalSciNoiseMap::setSipmMap(const std::string&... | 1,025 |
1,144 | <filename>misc/services/camel/de-metas-camel-edi/src/main/java/de/metas/edi/esb/invoicexport/compudata/Cctop119V.java
/*
* #%L
* de-metas-edi-esb-camel
* %%
* Copyright (C) 2020 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public L... | 3,547 |
326 | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2015 <NAME>, Amsterdam, the Netherlands.
// Copyright (c) 2008-2015 <NAME>, Paris, France.
// Copyright (c) 2009-2015 <NAME>, London, UK.
// Copyright (c) 2014-2015 <NAME>, Grenoble, France.
// This file was modified by Oracle on 2015, 2016, ... | 1,101 |
5,813 | /*
* 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 ... | 376 |
879 | package org.zstack.sdk;
import org.zstack.sdk.ScsiLunInventory;
public class AttachScsiLunToVmInstanceResult {
public ScsiLunInventory inventory;
public void setInventory(ScsiLunInventory inventory) {
this.inventory = inventory;
}
public ScsiLunInventory getInventory() {
return this.in... | 132 |
8,240 | #!/usr/bin/env python
from sentimentanalyzer import app as application
| 18 |
2,380 | <reponame>jagmeet787/Smack<gh_stars>1000+
/**
*
* Copyright 2019 <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
*
* Unles... | 640 |
4,538 | /*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
#include <lwip/netdb.h>
#include <aos/debug.h>
#include "linkkit/wrappers/wrappers_tcp... | 637 |
2,087 | """
pdftabextract setuptools based setup module
"""
from setuptools import setup
setup(
name='pdftabextract',
version='0.4.0-dev',
description='A set of tools for data mining (OCR-processed) PDFs',
long_description="""This repository contains a set of tools written in Python 3 with the aim to extrac... | 558 |
1,093 | /*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,247 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datadog.implementation;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.datadog.fluent.models.Data... | 543 |
5,421 | <gh_stars>1000+
# Copyright 2021, <NAME>, mailto:<EMAIL>
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complian... | 1,140 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.