max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,694 | <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 "MMUIView.h"
@class WCCardUsedStoreInfo;
@protocol WCCardUsedStoreViewDelegate;
@interface WCCardUsedStoreView : MM... | 280 |
502 | #pragma once
#include <sys/uio.h>
#include <queue>
#include "Common.h"
#include "BufferReader.h"
#include "Result.h"
namespace douban {
namespace mc {
typedef enum {
MODE_UNDEFINED,
MODE_END_STATE,
MODE_COUNTING
} ParserMode;
class PacketParser {
public:
PacketParser();
explicit PacketParser(io::Buffe... | 602 |
328 | package com.stx.xhb.dmgameapp.mvp.ui.game;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.DividerItemDecoration;
import android.sup... | 1,681 |
1,428 | <reponame>saurabhcommand/Hello-world<filename>C Language/Hello_world+design.c<gh_stars>1000+
#include <stdio.h>
int main()
{
printf ("+-+-+-+-+-+-+-+-+-+\n") ;
printf ("~~~Hello World!~~~\n") ;
printf ("+-+-+-+-+-+-+-+-+-+") ;
}
| 89 |
546 | <gh_stars>100-1000
#ifndef ROBOT_H
#define ROBOT_H
#include "Msnhnet/robot/MsnhChain.h"
#include "Msnhnet/robot/MsnhFrame.h"
#include "Msnhnet/robot/MsnhJoint.h"
#include "Msnhnet/robot/MsnhSegment.h"
#include "Msnhnet/robot/MsnhSpatialMath.h"
#include "Msnhnet/robot/MsnhModernRobot.h"
#endif
| 154 |
480 | <filename>polardbx-optimizer/src/main/java/com/alibaba/polardbx/optimizer/sharding/label/JoinCondition.java<gh_stars>100-1000
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | 5,610 |
1,006 | /****************************************************************************
* arch/risc-v/src/bl602/hardware/bl602_spi.h
*
* 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 ... | 3,343 |
4,640 | <reponame>shengxinhu/tvm<filename>tests/cpp/ir_functor_test.cc
/*
* 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... | 5,114 |
828 | <gh_stars>100-1000
# Copyright (c) 2020 Microsoft Corporation. Licensed under the MIT license.
import logging
import os
import os.path as op
def generate_lineidx_file(filein, idxout):
idxout_tmp = idxout + '.tmp'
with open(filein, 'r') as tsvin, open(idxout_tmp,'w') as tsvout:
fsize = os.fstat(tsvin... | 1,321 |
634 | package com.intellij.application.options;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.module.Module;
import com.intellij.ui.ColoredListCellRenderer;
import javax.annotation.Nonnull;
import javax.swing.*;
/**
* @author yole
*/
public class ModuleListCellRenderer extends ColoredListCellRenderer<M... | 303 |
3,263 | <reponame>stepancheg/immutables<filename>criteria/common/test/org/immutables/criteria/matcher/ReturnTypeTest.java
/*
* Copyright 2019 Immutables Authors and 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 ... | 2,921 |
1,144 | /*
* This header provides constants for pca9532 LED bindings.
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#ifndef _DT_BINDINGS_LEDS_PCA9532_H
#define _DT_BINDINGS_LEDS... | 231 |
1,676 | #ifndef PROGRAM_SELFPLAYMANAGER_H_
#define PROGRAM_SELFPLAYMANAGER_H_
#include "../core/threadsafequeue.h"
#include "../core/timer.h"
#include "../dataio/sgf.h"
#include "../dataio/trainingwrite.h"
#include "../neuralnet/nneval.h"
class SelfplayManager {
public:
SelfplayManager(
double validationProp,
int ... | 1,438 |
819 | <filename>android/app/src/main/java/com/polygraphene/alvr/OvrActivity.java
package com.polygraphene.alvr;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.BatteryManager;
import a... | 2,528 |
2,753 | <reponame>ShankarNara/shogun
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>, <NAME>, <NAME>,
* <NAME>, <NAME>
*/
#include <gtest/gtest.h>
#include <shogun/base/range.h>
#include <shogun/labels/BinaryLabels.h>
#include <shogun/labels/Multiclass... | 1,256 |
631 | <gh_stars>100-1000
/*! \file QPandaException.h */
#ifndef QPANDA_EXCEPTION_H
#define QPANDA_EXCEPTION_H
#include "Core/Utilities/QPandaNamespace.h"
#include <exception>
#include <string>
QPANDA_BEGIN
/*
|-QPandaException
|---qalloc_fail
|---calloc_fail
<<<<<<< HEAD
|---factory_init_error
|---duplicate_free
=======
|... | 2,055 |
1,064 | <gh_stars>1000+
#include "soundpipe.h"
#include "md5.h"
#include "tap.h"
#include "test.h"
typedef struct {
sp_noise *ns;
sp_fofilt *ff;
} UserData;
int t_fofilt(sp_test *tst, sp_data *sp, const char *hash)
{
sp_srand(sp, 0);
uint32_t n;
int fail = 0;
SPFLOAT in = 0;
UserData ud;
sp_n... | 441 |
721 | {
"api_id": "documentai:v1beta2",
"name_pretty": "Cloud Document AI API",
"distribution_name": "google-apis-documentai_v1beta2",
"language": "ruby",
"library_type": "REST"
}
| 84 |
374 | /*
* Copyright (C) 2021 by Intel Corporation
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES O... | 999 |
442 | #include <Bindings/obe/Utils/File/File.hpp>
#include <Utils/FileUtils.hpp>
#include <Bindings/Config.hpp>
namespace obe::Utils::File::Bindings
{
void LoadFunctionGetDirectoryList(sol::state_view state)
{
sol::table FileNamespace = state["obe"]["Utils"]["File"].get<sol::table>();
Fi... | 1,666 |
344 | <filename>src/pc/test/integration_test_helpers.cc
/*
* Copyright 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be... | 679 |
302 | #include <errno.h>
int errno = 0;
char *program_invocation_name;
char *program_invocation_short_name;
| 39 |
2,326 | <gh_stars>1000+
//
// Copyright RIME Developers
// Distributed under the BSD License
//
#include <boost/format.hpp>
#include <gtest/gtest.h>
#include <rime/component.h>
#include <rime/config.h>
using namespace rime;
class RimeConfigCompilerTestBase : public ::testing::Test {
protected:
RimeConfigCompilerTestBase(... | 3,797 |
922 | package org.hibernate.validator.referenceguide.chapter12.propertypath;
import jakarta.validation.constraints.Size;
public class Person {
@Size(min = 5)
String name;
Person(String name) {
this.name = name;
}
}
| 79 |
19,438 | /*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Layout/Box.h>
namespace Web::Layout {
class TableRowBox final : public Box {
public:
TableRowBox(DOM::Document&, DOM::Element*, NonnullRefPtr<CSS::StyleProperties>);
TableRowBox(DOM:... | 180 |
334 | <reponame>WillBAnders/Sponge<filename>src/main/java/org/spongepowered/common/event/tracking/context/transaction/inventory/ClickMenuTransaction.java
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
... | 1,599 |
502 | /**
* Copyright 1996-2013 Founder International Co.,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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 693 |
994 | contacts = [['p1', 'e1'],['p2', 'e2'],['p2', 'e3'],['e3', 'p4'],['e2', 'p5'],['p3', 'e4', 'p6'],['e4'],['p6', 'e5']]
visited = [False]*len(contacts)
contacts = map(set, contacts)
def dfs(node,index, temp):
visited[index] = True
result = node
for i,item in enumerate(contacts):
if not visited[i] and not result.isdi... | 301 |
362 | <reponame>hixio-mh/plugin-python
a = "it is \"ok\""
a = "it is 'ok'"
a = 'it is \'ok\''
a = 'it is "ok"'
a = """this is a multiline
string"""
b = '''another multiline
string'''
a = "both 'single' and \"double\""
a = 'both \'single\' and "double"'
a = u"unicode snowman: \u26C4"
a = r"this does not have a tab: \t"
a =... | 718 |
718 | <reponame>RPUTHUMA/Skater
"""Core Interpretation Objects. All attached interpreters have access to the same
model tools and data set tools."""
| 38 |
399 | /*-
* #%L
* athena-hbase
* %%
* Copyright (C) 2019 Amazon Web Services
* %%
* 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
*
* U... | 4,733 |
3,384 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#pragma mark Blocks
typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown
#pragma mark Named Structures
struct CGPoint {
double _field1;
double _f... | 307,034 |
984 | <gh_stars>100-1000
/*
* Copyright DataStax, 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 ... | 1,224 |
1,145 | <filename>pontoon/tags/migrations/0001_squashed_0002_set_tag_priority_choices.py<gh_stars>1000+
# Generated by Django 1.11.28 on 2020-03-08 19:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("base", ... | 1,209 |
3,102 | // RUN: %clang_cc1 -fmodules -verify -fno-modules-error-recovery -fno-spell-checking %s
// RUN: %clang_cc1 -fmodules -verify -fno-modules-error-recovery -DONLY_Y %s
#pragma clang module build a
module a {
explicit module x {}
explicit module y {}
}
#pragma clang module contents
#pragma clang module begin a.x
names... | 345 |
4,901 | <reponame>VSaliy/j2objc
// Copyright 2012 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 re... | 1,107 |
384 | <filename>tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/ConfigUtils.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... | 3,487 |
839 | <filename>services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/JWTProviderOnBehalfOfTest.java<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
* re... | 3,028 |
563 | package com.gentics.mesh.search;
import java.io.IOException;
import java.util.Collection;
import java.util.Set;
import com.gentics.mesh.core.data.search.index.IndexInfo;
import com.gentics.mesh.core.data.search.request.Bulkable;
import io.reactivex.Completable;
import io.reactivex.Single;
import io.vertx.core.json.J... | 2,111 |
631 | /*
Copyright 2009-(CURRENT YEAR) <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 writing, so... | 1,046 |
852 | <reponame>ckamtsikis/cmssw
#include "TF1.h"
#include "TProfile.h"
#include "Validation/DTRecHits/interface/utils.h"
//#include "TLine.h"
void Tutils::drawGFit(TH1 *h1, float min, float max, float minfit, float maxfit) {
setStyle(h1);
static int i = 0;
i++;
// h1->SetGrid(1,1);
// h1->SetGridColor(15);
h1->G... | 3,162 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-fqwg-5wxg-6mp3",
"modified": "2022-05-13T01:15:37Z",
"published": "2022-05-13T01:15:37Z",
"aliases": [
"CVE-2011-3416"
],
"details": "The Forms Authentication feature in the ASP.NET subsystem in Microsoft .NET Framework 1.1 SP1, 2.0 SP2, 3.5 SP1, 3.5.1, and 4.0... | 507 |
2,571 | <filename>python/jittor/src/utils/cross_platform.h
// ***************************************************************
// Copyright (c) 2021 Jittor. All Rights Reserved.
// Maintainers: <NAME> <<EMAIL>>.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source ... | 622 |
9,782 | <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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... | 3,275 |
1,056 | <reponame>timfel/netbeans<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Lice... | 694 |
459 | // File implement/oglplus/enums/color_logic_operation_names.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/color_logic_operation.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2015 <NAME>.
// Distributed under the Boost Sof... | 787 |
605 | <filename>lldb/test/API/functionalities/module_cache/debug_index/TestDebugIndexCache.py
import glob
import json
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
import os
import time
class DebugIndexCacheTestcase(TestBase):
mydir = Test... | 2,580 |
488 | <gh_stars>100-1000
#ifndef COBOL_TO_ROSE_TRANSLATION_H
#define COBOL_TO_ROSE_TRANSLATION_H
namespace Cobol_ROSE_Translation
{
// Enum for program specifiers
enum ProgramSpec
{
e_unknown,
e_recursive,
e_initial,
e_last
};
#if 0
// Enum for differe... | 792 |
405 | from .core import UnitedStates
from ..core import MON
from ..registry_tools import iso_register
@iso_register('US-AK')
class Alaska(UnitedStates):
"""Alaska"""
FIXED_HOLIDAYS = UnitedStates.FIXED_HOLIDAYS + (
(10, 18, 'Alaska Day'),
)
include_columbus_day = False
def get_variable_days(sel... | 218 |
1,015 | #pragma once
#include "d3d9_include.h"
#include "d3d9_caps.h"
#include "../dxvk/dxvk_shader.h"
#include "../dxso/dxso_isgn.h"
#include <unordered_map>
#include <bitset>
namespace dxvk {
class D3D9DeviceEx;
class SpirvModule;
struct D3D9Options;
struct D3D9FogContext {
// General inputs...
bool ... | 2,759 |
329 | <filename>ir/type.cpp
// Copyright (c) 2018-present The Alive2 Authors.
// Distributed under the MIT license that can be found in the LICENSE file.
#include "ir/type.h"
#include "ir/globals.h"
#include "ir/state.h"
#include "smt/solver.h"
#include "util/compiler.h"
#include <array>
#include <cassert>
#include <numeric... | 16,181 |
532 |
#coding:utf-8
import app.web.views.home
| 20 |
386 | <filename>bus-extra/src/main/java/org/aoju/bus/extra/ftp/FtpConfig.java<gh_stars>100-1000
/*********************************************************************************
* *
* The MIT License (MIT) ... | 2,849 |
348 | <filename>docs/data/leg-t2/018/01802188.json
{"nom":"Primelles","circ":"2ème circonscription","dpt":"Cher","inscrits":192,"abs":98,"votants":94,"blancs":9,"nuls":2,"exp":83,"res":[{"nuance":"COM","nom":"<NAME>","voix":55},{"nuance":"MDM","nom":"<NAME>","voix":28}]} | 109 |
332 | // Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.exceptions;
public class ApiGroupAppIsNotInstalledInCommunityException extends ApiException {
public ApiGroupAppIsNotInstalledInCommunityException(String message) {
super(711, "Application is not installed in communi... | 108 |
21,382 | <reponame>77loopin/ray
import logging
import ray._private.utils
logger = logging.getLogger(__name__)
CPU_SHARES_PATH = "/sys/fs/cgroup/cpu/cpu.shares"
CPU_USAGE_PATH = "/sys/fs/cgroup/cpuacct/cpuacct.usage"
PROC_STAT_PATH = "/proc/stat"
container_num_cpus = None
host_num_cpus = None
last_cpu_usage = None
last_syst... | 1,457 |
347 | <filename>backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/ImageHttpAccessVDSCommandParameters.java
package org.ovirt.engine.core.common.vdscommands;
import org.ovirt.engine.core.compat.Guid;
public class ImageHttpAccessVDSCommandParameters extends VdsIdVDSCommandParametersBase{
... | 650 |
306 | <gh_stars>100-1000
/*
* Copyright (c) 2015 IBM Corporation and others.
*
* 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... | 2,915 |
5,169 | {
"name": "C4",
"version": "1.0.1",
"summary": "Code, Creatively.",
"description": "C4 is a fast prototyping and creative-coding framework.\nIt lets you build expressive user experiences and create\nworks of art.",
"homepage": "http://www.c4ios.com",
"license": "MIT",
"authors": {
"Travis": "<EMAIL>",... | 218 |
1,013 | /*
* Copyright (c) 2016-2020 <NAME> (Aikar) - MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, co... | 1,062 |
5,411 | <filename>code/components/gta-streaming-five/src/EnableMPMapData.cpp
/*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#include <StdInc.h>
#include <Hooking.h>
#include <ICoreGameIni... | 399 |
763 | <filename>projects/batfish-common-protocol/src/main/java/org/batfish/specifier/parboiled/InterfaceNoMatchMessages.java
package org.batfish.specifier.parboiled;
import static org.batfish.datamodel.answers.InputValidationUtils.getErrorMessageEmptyNameRegex;
import static org.batfish.datamodel.answers.InputValidationUtil... | 2,650 |
4,640 | <reponame>XiaoSong9905/tvm<filename>src/relay/backend/vm/manifest_lifetimes.cc
/*
* 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 thi... | 8,525 |
4,224 | /****************************************************************************
*
* Copyright (c) 2020 PX4 Development Team. 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. Redistri... | 1,555 |
1,687 | <reponame>agnes-yang/LeetCode-Solutions-in-Good-Style
public class Solution4 {
public int fib(int N) {
if (N < 2) {
return N;
}
return fib(N - 1) + fib(N - 2);
}
} | 108 |
22,481 | {
"config": {
"abort": {
"already_configured": "La cuenta ya est\u00e1 configurada",
"already_in_progress": "El flujo de configuraci\u00f3n ya ha iniciado",
"authorize_url_timeout": "Se agot\u00f3 el tiempo al generar el URL de autorizaci\u00f3n",
"missing_con... | 493 |
3,212 | /*
* 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 ... | 2,248 |
460 | <gh_stars>100-1000
# Copyright (c) 2021 - present / Neuralmagic, 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
#
... | 8,140 |
1,394 | <filename>permission/src/main/java/com/fastaccess/permission/base/widget/DisabledPager.java
package com.fastaccess.permission.base.widget;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
public class DisabledPager extends Vie... | 238 |
346 | <reponame>khlebnikov/vscode-cmake-tools
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------... | 511 |
1,475 | /*
* 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 ... | 882 |
2,042 | <reponame>oguzturker8sdfep/imranvisualpath1
/*
Copyright 2017 yangchong211(github.com/yangchong211)
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... | 433 |
2,958 | package com.blade.mvc.http;
import io.netty.handler.codec.http.FullHttpResponse;
import java.io.InputStream;
public class StreamBody implements Body {
private final InputStream content;
public StreamBody(final InputStream content) {
this.content = content;
}
public static StreamBody of(Inp... | 189 |
590 | <reponame>wingenedu/uflo
/*******************************************************************************
* Copyright 2017 Bstek
*
* 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
*
* ... | 391 |
385 | <reponame>vltmedia/ROMP
import numpy as np
import pickle, random
import open3d as o3d
import os,sys
import config
import constants
from config import args
o3d_version = int(o3d.__version__.split('.')[1])
def get_uvs(uvmap_path):
uv_map_vt_ft = np.load(uvmap_path, allow_pickle=True)
vt, ft = uv_map_vt_ft['vt']... | 2,001 |
14,668 | // 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.
#ifndef UI_AURA_TEST_EVENT_GENERATOR_DELEGATE_AURA_H_
#define UI_AURA_TEST_EVENT_GENERATOR_DELEGATE_AURA_H_
#include "ui/events/test/event_generator.h"
... | 832 |
1,595 | #!/usr/bin/python3
from copy import deepcopy
from typing import Dict
# Coverage evaluation is stored on a per-tx basis. We use a special "coverage hash"
# with additional inforarmation included to ensure no two transactions will produce
# the same hash.
_coverage_eval: Dict[str, Dict] = {}
# Because querying trace... | 1,103 |
460 | <reponame>jensonwe/mvvmFX
/*******************************************************************************
* Copyright 2015 <NAME>, <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... | 446 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-w77h-cm47-hwg6",
"modified": "2022-05-13T01:41:26Z",
"published": "2022-05-13T01:41:26Z",
"aliases": [
"CVE-2017-10120"
],
"details": "Vulnerability in the RDBMS Security component of Oracle Database Server. The supported version that is affected is 172.16.58.3... | 625 |
449 | <filename>Chapter2/mom.py
import pandas as pd
from pandas_datareader import data
start_date = '2014-01-01'
end_date = '2018-01-01'
SRC_DATA_FILENAME = 'goog_data.pkl'
try:
goog_data2 = pd.read_pickle(SRC_DATA_FILENAME)
except FileNotFoundError:
goog_data2 = data.DataReader('GOOG', 'yahoo', start_date, end_date)
... | 620 |
604 | <filename>scraper/src/main/java/com/serphacker/serposcope/scraper/captcha/solver/BlankCaptchaSolver.java
/*
* Serposcope - SEO rank checker https://serposcope.serphacker.com/
*
* Copyright (c) 2016 SERP Hacker
* @author <NAME> <<EMAIL>>
* @license https://opensource.org/licenses/MIT MIT License
*/
package com.s... | 574 |
685 | <gh_stars>100-1000
#include <Scheduler.h>
/*
static void ProcessEntry(){
void* buf = kmalloc(4096);
memset(buf, 1, 4096);
acquireLock(&Scheduler::GetCurrentThread()->lock);
Process::Current()->Die();
}*/
int ThreadingTest(){
/*FancyRefPtr<Process> processes[40];
Process* proc = Scheduler::Get... | 398 |
1,379 | <reponame>ramiyer/voldemort<filename>test/unit/voldemort/utils/ConsistencyFixTest.java
/*
* Copyright 2013 LinkedIn, 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://ww... | 6,521 |
306 | /*
* Copyright (c) 2016 IBM Corporation and others.
*
* 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... | 875 |
1,080 | <reponame>congnt95/neutron
# Copyright (c) 2021 China Unicom Cloud Data Co.,Ltd.
# 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.... | 2,020 |
14,668 | <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.
package org.chromium.chrome.browser.download.home.filter;
import org.chromium.chrome.browser.download.home.filter.Filters.FilterType;
imp... | 510 |
340 | <reponame>vmware/concord-bft
// Concord
//
// Copyright (c) 2020-2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of subcomp... | 6,284 |
2,703 | from selenium.webdriver.common.keys import Keys
from django.test.utils import override_settings
from .. import test_widget_select as test
from . import VisualTest
@override_settings(ROOT_URLCONF='tests.test_widget_select')
class Test(VisualTest):
def test_test_default_usecase(self):
self.driver.get('%s%s... | 928 |
2,479 | <gh_stars>1000+
from .core import where, old_where
__version__ = "2018.04.16"
| 31 |
583 | <filename>fuzzers/074-dump_all/node_names.py<gh_stars>100-1000
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The Project X-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-Lic... | 2,590 |
310 | {
"name": "00-18",
"description": "An acoustic guitar.",
"url": "https://www.martinguitar.com/guitars/standard-series/00-18/"
}
| 53 |
2,460 | /*
* Copyright (c) 2016-2021 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, ... | 1,097 |
3,301 | <reponame>starburst-project/Alink<filename>core/src/main/java/com/alibaba/alink/params/regression/GbdtRegPredictParams.java<gh_stars>1000+
package com.alibaba.alink.params.regression;
import com.alibaba.alink.params.shared.colname.HasVectorColDefaultAsNull;
public interface GbdtRegPredictParams<T> extends
RegPredict... | 134 |
1,511 | <gh_stars>1000+
/* SPDX-License-Identifier: CC-BY-NC-ND-4.0 */
/*
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
International Creative Commons Corporation ("Creative Commons") is not
a law firm and does not provide legal services or legal advice.
Distribution of Creative Commons public licenses does no... | 4,416 |
988 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 10,883 |
777 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/mus/property_util.h"
#include "services/ui/public/cpp/property_type_converters.h"
#include "services/ui/public/interfaces/window_manager.mo... | 762 |
869 | <reponame>r-gorajski/onedrived-dev<gh_stars>100-1000
class OneDriveAccountProfile:
def __init__(self, data):
self.data = data
@property
def account_id(self):
return self.data['id']
@property
def account_name(self):
return self.data['name']
@property
def account_fi... | 228 |
6,180 | <reponame>prkhrsrvstv1/cupy
from cupy import _util
# Attributes and Methods for fallback_mode
# Auto-execute numpy method when corresponding cupy method is not found
# "NOQA" to suppress flake8 warning
from cupyx.fallback_mode.fallback import numpy # NOQA
_util.experimental('cupyx.fallback_mode.numpy')
| 104 |
339 | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | 1,150 |
368 | package com.wix.mysql.distribution.service;
import com.wix.mysql.config.MysqldConfig;
import com.wix.mysql.distribution.Version;
import de.flapdoodle.embed.process.collections.Collections;
import de.flapdoodle.embed.process.extract.IExtractedFileSet;
import java.io.IOException;
import java.util.List;
public class Pr... | 247 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.