max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,125 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 10,436 |
634 | #pragma once
#define VISIT_PROCS_VERSION(visit) \
visit(GetFileVersionInfoA, jmpaddr) \
visit(GetFileVersionInfoByHandle, jmpaddr) \
visit(GetFileVersionInfoExA, jmpaddr) \
visit(GetFileVersionInfoExW, jmpaddr) \
visit(GetFileVersionInfoSizeA, jmpaddr) \
visit(GetFileVersionInfoSizeExA, jmpaddr) \
visit(GetFile... | 336 |
12,710 | {
"recurse": true,
"properties": {
"GomodMainOnly": true,
"GomodExcludes": "_tests/|[-_]generators?$|^plugin/checker$",
"NpmExcludes": "/e2e$",
"GradlePath": "./gradlew:../gradlew"
},
"filters": [
"release"
],
"excludes": "/.git$|/node_modules$",
"url": "https://deptrack.security.inter... | 164 |
1,858 | <filename>soter-client-demo/app/src/main/java/com/tencent/soter/demo/model/SoterDemoData.java
/*
* Tencent is pleased to support the open source community by making TENCENT SOTER available.
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the BSD 3-Clause License (the "L... | 1,407 |
521 | # Headers per version.
headers = {}
headers[4] = (
'Qt/q3accel.h',
'Qt/q3action.h',
'Qt/q3asciicache.h',
'Qt/q3asciidict.h',
'Qt/q3boxlayout.h',
'Qt/q3buttongroup.h',
'Qt/q3button.h',
'Qt/q3cache.h',
'Qt/q3canvas.h',
'Qt/q3cleanuphandler.h',
'Qt/q3combobox.h',
'Qt/q3cstring.h',
'Qt/q3databrow... | 37,545 |
347 | package org.ovirt.engine.ui.common.widget.table.column;
/**
* Interface implemented by cell table {@link com.google.gwt.user.cellview.client.Column columns} whose cells render
* HTML content with DOM element ID for better accessibility.
*/
public interface ColumnWithElementId {
/**
* Configure column cont... | 246 |
482 | package io.cattle.platform.configitem.context.impl;
import static io.cattle.platform.core.model.tables.InstanceTable.*;
import io.cattle.platform.archaius.util.ArchaiusUtil;
import io.cattle.platform.configitem.context.ConfigItemContextFactory;
import io.cattle.platform.configitem.model.Client;
import io.cattle.platfo... | 1,006 |
516 | <filename>contrib/hooks/mypy-before-push.py
#!/usr/bin/env python3
"""
mypy-before-push.py: Git pre-push script to make sure that you know if something you push is going to fail MyPy linting.
Install with:
ln -rs ./contrib/hooks/mypy-before-push.py .git/hooks/pre-push
"""
import sys
import subprocess
import os
from... | 1,161 |
619 | <reponame>ligurio/mull<filename>tests/Helpers/InMemoryCompiler.h
#pragma once
#include <memory>
namespace llvm {
class LLVMContext;
class Module;
} // namespace llvm
namespace mull_test {
class InMemoryCompiler {
public:
std::unique_ptr<llvm::Module>
compile(const std::string &code, const std::string &inMemoryFi... | 132 |
556 | <filename>tests/commit/vis/test__matplotlib_plots.py<gh_stars>100-1000
from unittest import TestCase
from phi.field import CenteredGrid, StaggeredGrid, PointCloud, Noise
from phi.geom import Sphere, Box
from phi.math import extrapolation, wrap, instance, channel, batch
from phi.vis._matplotlib._matplotlib_plots import... | 1,261 |
320 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.gde.behaviortrees.nodes;
import com.jme3.gde.behaviortrees.navigator.BTreeNavigatorPanel;
import java.beans.PropertyV... | 308 |
3,673 | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... | 1,062 |
317 | <filename>cle/backends/externs/simdata/__init__.py<gh_stars>100-1000
from collections import defaultdict
from typing import List
from ...relocation import Relocation
from ...symbol import Symbol, SymbolType
# pylint: disable=unused-argument,no-self-use
class SimData(Symbol):
"""
A SimData class is used to pr... | 890 |
762 | #pragma once
#include "InputTypes.hpp"
#include "Callbacks/InputCallbacks.hpp"
namespace flex
{
class GameObject;
class Editor
{
public:
Editor();
void Initialize();
void PostInitialize();
void Destroy();
void EarlyUpdate();
void LateUpdate();
void PreSceneChange();
void OnSceneChanged();
std... | 1,604 |
1,091 | /*
* Copyright 2018-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 522 |
330 | // Copyright 2019-2021 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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | 1,361 |
623 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 6,456 |
4,857 | /**
* 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... | 1,113 |
777 | // 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 "base/android/scoped_java_ref.h"
#include "cc/layers/layer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/android/overscroll_refr... | 2,866 |
12,862 | {
"authors": [
"<NAME> <<EMAIL>>",
"<NAME> <<EMAIL>>"
],
"license": "MIT",
"description": "Ethereum Token Contracts",
"keywords": [
"tokens",
"consensys"
],
"links": {},
"sources": [
"./contracts/Migrations.sol",
"./contracts/eip20/EIP20.sol",
"./contracts/eip20/EIP20Factory.... | 216 |
14,668 | #!/usr/bin/env python3
# Copyright 2021 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.
import unittest
import tempfile
import textwrap
import os
import json_gn_editor
class BuildFileTest(unittest.TestCase):
def test... | 2,231 |
599 | """ General utilities. """
import os
import shutil
from functools import partial
import torch
import random
import warnings
import requests
from tqdm import tqdm
import torch.backends.cudnn as cudnn
import torch.nn.init as init
from fsgan.utils.obj_factory import extract_args, obj_factory
def init_weights(m, init_ty... | 4,455 |
7,482 | /*
* Copyright (c) 2010-2012, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this... | 6,551 |
18,012 | <reponame>z727354123/dubbo
/*
* 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
... | 728 |
577 | #pragma once
#include <string>
#include <utility>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <unsupported/Eigen/SparseExtra>
#include "buffalo/algo.hpp"
using namespace std;
using namespace Eigen;
namespace als {
class CALS : public Algorithm {
public:
CALS();
~CALS();
void release();
... | 500 |
315 | <filename>include/native/wsi/native_wsi.h
#pragma once
#ifdef DXVK_WSI_WIN32
#error You shouldnt be using this code path.
#elif DXVK_WSI_SDL2
#include "wsi/native_sdl2.h"
#else
#error Unknown wsi!
#endif | 88 |
4,036 | // Generated automatically from org.apache.commons.collections4.list.LazyList for testing purposes
package org.apache.commons.collections4.list;
import java.util.List;
import org.apache.commons.collections4.Factory;
import org.apache.commons.collections4.Transformer;
import org.apache.commons.collections4.list.Abstra... | 311 |
879 | <filename>plugin/ceph/src/main/java/org/zstack/storage/ceph/backup/CephBackupStorageSimulator.java<gh_stars>100-1000
package org.zstack.storage.ceph.backup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org... | 4,259 |
529 | <gh_stars>100-1000
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
////////////////////////////////////... | 124 |
1,125 | <reponame>dedsec-9/XNNPACK
// Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#pragma once
#include <stddef.h>
#include <stdin... | 1,728 |
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,238 |
496 | <reponame>jda/lexbor
/*
* Copyright (C) 2018 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef LEXBOR_DOM_EVENT_TARGET_H
#define LEXBOR_DOM_EVENT_TARGET_H
#ifdef __cplusplus
extern "C" {
#endif
#include "lexbor/dom/interface.h"
struct lxb_dom_event_target {
void *events;
};
LXB_API lxb_dom_event_target_t *
... | 297 |
32,544 | package com.baeldung.client;
import com.baeldung.shared.MessageService;
import com.baeldung.shared.MessageServiceAsync;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com... | 1,821 |
326 | <reponame>timgates42/python-registry<filename>samples/test_dump.py
from __future__ import print_function
from __future__ import unicode_literals
import sys
from Registry import *
def format_total_keys(total_keys):
return "total_keys|{total_keys}".format(total_keys=total_keys)
def format_total_values(total_valu... | 1,112 |
559 | #include "JitteredGBufferPass.h"
#include <chrono>
namespace {
// For basic jittering, we don't need to change our rasterized g-buffer, just jitter the camera position
const char *kGbufVertShader = "CommonPasses\\gBuffer.vs.hlsl";
const char *kGbufFragShader = "CommonPasses\\gBuffer.ps.hlsl";
// If we want to ... | 1,509 |
3,957 | <gh_stars>1000+
from .sequence_tagger_model import SequenceTagger, MultiTagger
from .language_model import LanguageModel
from .text_classification_model import TextClassifier
from .pairwise_classification_model import TextPairClassifier
from .relation_extractor_model import RelationExtractor
from .entity_linker_model i... | 126 |
336 | <reponame>tomwei7/LA104<filename>tools/genelf/elf.h
#pragma once
typedef uint32_t Elf32_Addr;
typedef uint16_t Elf32_Half;
typedef uint32_t Elf32_Off;
typedef int32_t Elf32_Sword;
typedef uint32_t Elf32_Word;
typedef uint32_t Elf32_Size;
#pragma pack(push)
#pragma pack(2)
typedef struct {
unsigne... | 1,265 |
1,006 | /****************************************************************************
* include/nuttx/sensors/hts221.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 copyright ow... | 1,924 |
2,151 | <gh_stars>1000+
/*
*
* Copyright 2016 gRPC 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... | 421 |
575 | // 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 "chrome/browser/supervised_user/supervised_user_sync_model_type_controller.h"
#include "base/bind.h"
#include "chrome/browser/profiles/profile.h... | 501 |
2,728 | <reponame>Harshitha91/Tmdb-react-native-node
/*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* Copyright (c) 2009 <NAME>
* Copyright (c) 2012 <NAME>
* Copyright (c) 2013 - 2020 <NAME>
*/
/*!
* \file ... | 2,271 |
3,673 | <reponame>jaeh/IncludeOS
#include <service>
extern "C" {
__attribute__((noreturn)) void panic(const char* reason);
}
#ifndef __linux__
extern "C" __attribute__((noreturn))
void abort(){
panic("Abort called");
__builtin_unreachable();
}
#endif
const char* service_name__ = SERVICE_NAME;
const char* service... | 165 |
312 | package org.reveno.atp.metrics;
import org.reveno.atp.api.transaction.TransactionStage;
import org.reveno.atp.core.Engine;
public class RevenoMetrics {
protected ConfigurationImpl config = new ConfigurationImpl();
protected MetricsInterceptor interceptor = new MetricsInterceptor(config);
public Configur... | 238 |
635 | <filename>pyti/price_oscillator.py
from __future__ import absolute_import
from pyti import catch_errors
from pyti.exponential_moving_average import (
exponential_moving_average as ema
)
def price_oscillator(data, short_period, long_period):
"""
Price Oscillator.
Formula:
(short EMA - long EMA... | 234 |
547 | <filename>bin2c.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdint.h>
int main(int argc, char * argv[])
{
FILE * fp_in, * fp_out;
unsigned int length, left;
char fname[256], * p;
uint8_t buffer[256];
if(argc != 3)
{
printf("Usage: %s <binary file> <c file>\n", arg... | 635 |
852 | <reponame>ckamtsikis/cmssw
#include "EventFilter/RPCRawToDigi/interface/RPCAMC13Record.h"
namespace rpcamc13 {
Header::Header(std::uint64_t const record) : record_(record) {}
Header::Header(unsigned int ufov, unsigned int n_amc, unsigned int orbit_counter) : record_(0x0) {
setFirmwareVersion(ufov);
setNA... | 762 |
982 | <gh_stars>100-1000
#ifndef _VIRTIO_RING_ALLOCATION_H
#define _VIRTIO_RING_ALLOCATION_H
struct virtqueue *vring_new_virtqueue_split(unsigned int index,
unsigned int num,
unsigned int vring_align,
VirtIODevice *vdev,
void *pages,
void (*notify)(struct virtqueue *),
void *control);
struct virtque... | 284 |
12,278 | // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
// (C) Copyright 2003-2007 <NAME>
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
// See http://www.boost.org/libs/iostreams for documentation.
/... | 1,772 |
445 | from skmultiflow.trees import HAT, RegressionHAT
from decai.simulation.contract.classification.scikit_classifier import SciKitClassifierModule
class DecisionTreeModule(SciKitClassifierModule):
def __init__(self, regression=False):
if regression:
model_initializer = lambda: RegressionHAT(
... | 260 |
575 | <filename>components/blocklist/opt_out_blocklist/opt_out_blocklist_item_unittest.cc
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/blocklist/opt_out_blocklist/opt_out_blocklist_ite... | 1,160 |
1,312 | <gh_stars>1000+
from unittest.mock import patch
from django.test import TestCase
from bookmarks.models import Tag
from bookmarks.services import tasks
from bookmarks.services.importer import import_netscape_html
from bookmarks.tests.helpers import BookmarkFactoryMixin, disable_logging
class ImporterTestCase(TestCas... | 929 |
831 | <reponame>phpc0de/idea-android
/*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2... | 1,887 |
507 | <filename>test/lib/usd/translators/testUsdExportMesh.py
#!/usr/bin/env mayapy
#
# Copyright 2016 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/L... | 3,825 |
1,144 | package de.metas.handlingunits.attribute.strategy;
/*
* #%L
* de.metas.handlingunits.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, eithe... | 757 |
364 | /**
* @file oglplus/output_data.hpp
* @brief Object wrapping buffer to store output data
*
* @author <NAME>
*
* Copyright 2010-2019 <NAME>. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#pragma on... | 937 |
2,728 | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | 761 |
1,433 | /* *****************************************************************
*
* Copyright 2015 Samsung Electronics 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,472 |
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 ... | 503 |
513 | <gh_stars>100-1000
package com.zmops.iot.web.alarm.service;
import com.zmops.iot.core.auth.context.LoginContextHolder;
import com.zmops.iot.domain.messages.MailParam;
import com.zmops.iot.domain.messages.MailSetting;
import com.zmops.iot.domain.messages.NoticeResult;
import com.zmops.iot.domain.messages.query.QMailSe... | 1,049 |
310 | {
"name": "<NAME> (iOS)",
"description": "A jewel-matching puzzle game.",
"url": "https://itunes.apple.com/us/app/bejeweled-blitz/id469960709"
} | 60 |
366 | #from @PeterSardine
from manimlib.imports import *
class Main(Scene):
def construct(self):
title = Text(r'Manim Homework I').shift(UP)\
.set_color(ORANGE).set_opacity(0.5)
signature = Text(r'by PeterSardine').next_to(title, DOWN).scale(0.5)\
.set_color(ORANGE).set_opacity(0... | 1,387 |
4,054 | <reponame>Anlon-Burke/vespa
{"put":"id:testapp:metric::clicks-2015110414","fields":{"date":"2015110414","name":"clicks","value":1,"application":"testapp"}}
{"fields":{"date":"2015110416","name":"clicks","value":5,"application":"testapp"},"put":"id:testapp:metric::clicks-2015110416"}
{"put":"id:testapp:metric::clicks-20... | 459 |
1,997 | <gh_stars>1000+
dependencies = ["torch", "math"]
def se_resnet20(**kwargs):
from senet.se_resnet import se_resnet20 as _se_resnet20
return _se_resnet20(**kwargs)
def se_resnet56(**kwargs):
from senet.se_resnet import se_resnet56 as _se_resnet56
return _se_resnet56(**kwargs)
def se_resnet50(**kwa... | 235 |
333 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import settings
import subprocess
def main():
assert os.path.isfile(settings.PRETRAIN_MODEL), 'please download pretrain model {}'... | 395 |
1,574 | //=======================================================================
// Copyright <NAME> 2013-2018.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=======================================================================
... | 531 |
1,080 | <reponame>xtuzy/enaml
#------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
#-------------------------------... | 3,414 |
1,673 | <filename>src/ca65/fragment.h
/*****************************************************************************/
/* */
/* fragment.h */
/* ... | 2,125 |
700 | /*
* Copyright (c) 2012 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... | 1,068 |
372 | <filename>clients/google-api-services-firebasehosting/v1beta1/1.30.1/com/google/api/services/firebasehosting/v1beta1/model/ServingConfig.java
/*
* 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
... | 2,159 |
831 | /*
* Copyright 2000-2012 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 applicable law or agre... | 5,631 |
1,118 | <gh_stars>1000+
/*
* << Haru Free PDF Library 2.0.0 >> -- make_rawimage.c
*
* Copyright (c) 1999-2006 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in... | 1,047 |
778 | // ______ _____ _ ________
// / ____/___ / ___/(_)___ ___ / _/ __ |
// / / / __ \\__ \/ / __ `__ \ / // / / /
// / /___/ /_/ /__/ / / / / / / // // /_/ /
// \____/\____/____/_/_/ /_/ /_/___/\____/
// Kratos CoSimulationApplication
//
// License: BSD License, see license.txt
//
// ... | 4,286 |
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 ... | 973 |
28,056 | package com.alibaba.json.bvt.issue_2800;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.parser.Feature;
import junit.framework.TestCase;
public class Issue2866 extends TestCase {
public void test_for_issue() t... | 317 |
1,282 | // Copyright (c) 2019, Google Inc.
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | 2,768 |
390 | <gh_stars>100-1000
from sigtools.wrappers import decorator
from clize import run
@decorator
def with_uppercase(wrapped, *args, uppercase=False, **kwargs):
"""
Formatting options:
:param uppercase: Print output in capitals
"""
ret = wrapped(*args, **kwargs)
if uppercase:
return str(ret... | 251 |
404 | PACKAGE_MSG = 'Package Success'
| 12 |
762 | <filename>tests/misc/test_normalization.py
import numpy as np
import pytest
from pymoo.util.normalization import ZeroToOneNormalization
n_var = 10
@pytest.fixture
def matrix_input():
xl, xu = np.full(n_var, -5.0), np.full(n_var, 5.0)
X = np.random.random((200, n_var)) * (xu - xl) + xl
return X, xl, xu
... | 1,154 |
377 | #pragma once
//------------------------------------------------------------------------------
/**
@class Simple::HttpClient
Use a HTTP client to send HTTP requests to a HTTP server, and
receive and decode HTTP responses. The HttpClient class
is generally blocking. For non-blocking behaviour it's be... | 665 |
382 | package com.netflix.spinnaker.clouddriver.deploy;
import java.util.List;
public class NullOpDeployHandler implements DeployHandler<String> {
@Override
public DeploymentResult handle(String description, List priorOutputs) {
return null;
}
@Override
public boolean handles(DeployDescription description) {... | 100 |
3,451 | # Copyright 2019 Atalaya Tech, 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 to in writing, ... | 1,008 |
405 | <reponame>zishuimuyu/jeewx
package weixin.guanjia.base.entity;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.jeecgframework.core.common.entity.IdEntity;
@Entity
@Table(name = "weixin_subscribe")
public class Subscribe extends IdEntity {
private String templateName;
private String temp... | 366 |
4,200 | package com.dtolabs.rundeck.core.authorization;
public interface AclRuleSetAuthorization
extends Authorization, AclRuleSetSource
{
}
| 48 |
510 | package com.diffey.view.rxzhihu.contant;
/**
* Created by diff on 2016/2/3.
*/
public class UrlContant {
//github
public static final String URL_DEV_GITHUB = "https://github.com/Runpop";
//简书
public static final String URL_DEV_JIANSHU = "http://www.jianshu.com/users/e81e0133d845/latest_articles";
... | 129 |
446 | package com.ruoyi.file.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.minio.MinioClient;
/**
* Minio 配置信息
*
* @author ruoyi
*/
@Configuration
... | 703 |
1,127 | <filename>src/plugins/intel_myriad/common/include/vpu/ngraph/operations/static_shape_reshape.hpp
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "ngraph/op/util/attr_types.hpp"
#include "ngraph/node.hpp"
#include <ngraph/opsets/opset3.hpp>
#include <memory... | 316 |
4,205 | <reponame>EMellau/reactor-core<gh_stars>1000+
/*
* Copyright (c) 2020-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
*
* htt... | 1,457 |
1,574 | <reponame>IchordeDionysos/FirebaseUI-iOS
//
// Copyright (c) 2016 Google 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
//
// ... | 652 |
2,151 | <gh_stars>1000+
// Copyright (C) 2014 Google 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 ... | 440 |
2,151 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 892 |
311 | #pragma once
// License: MIT http://opensource.org/licenses/MIT
// Author: dustpg mailto:<EMAIL>
#include <stdint.h>
/// <summary>
/// ROM 信息
/// </summary>
typedef struct {
// PRG-ROM 程序只读储存器 数据指针
uint8_t* data_prgrom;
// CHR-ROM 角色只读存储器 数据指针
uint8_t* data_chrrom;
// 16KB为单位 程序只读储存器 数据长... | 896 |
317 | #ifndef _PAW_GET_INVERSE_H_
#define _PAW_GET_INVERSE_H_
/*
$Id$
*/
extern void paw_get_inverse(double **a, int matrix_size);
extern void paw_test_matrix_inverse();
#endif
| 85 |
2,671 | <gh_stars>1000+
import _sk_fail; _sk_fail._("UserString")
| 24 |
496 | #include "simit-test.h"
#include "path_indices-tests.h"
#include "path_expressions-test.h"
#include <map>
#include <set>
#include <iostream>
#include "graph.h"
#include "path_expressions.h"
#include "path_indices.h"
using namespace simit;
using namespace simit::pe;
using namespace std;
TEST(pathindex, link) {
Pat... | 5,538 |
726 | package com.yuyh.sprintnba.widget;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import com.facebook.drawee.drawable.ProgressBarDrawable;
public class ImageLoadProgressBar extends ProgressBarDrawable {
private float level;
privat... | 588 |
732 | <reponame>eventuate-tram/eventuate-tram<gh_stars>100-1000
package io.eventuate.tram.micronaut.inmemory;
import io.eventuate.common.inmemorydatabase.EventuateDatabaseScriptSupplier;
import io.eventuate.tram.consumer.common.MessageConsumerImplementation;
import io.eventuate.tram.inmemory.InMemoryMessageConsumer;
import ... | 589 |
1,234 | package org.benf.cfr.reader.entities.classfilehelpers;
import org.benf.cfr.reader.bytecode.analysis.types.ClassSignature;
import org.benf.cfr.reader.bytecode.analysis.types.JavaRefTypeInstance;
import org.benf.cfr.reader.bytecode.analysis.types.JavaTypeInstance;
import org.benf.cfr.reader.entities.*;
import org.benf.c... | 1,727 |
334 | <reponame>kadel/ocdev
{
"name": "docusaurus-odo-plugin-segment",
"version": "1.0.0",
"description": "Docusaurus plugin providing odo specific integration with Segment",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"segment",
"analytics... | 163 |
302 | <gh_stars>100-1000
import drawBot
drawBot.size(200, 200)
drawBot.stroke(0, 0, 1)
drawBot.strokeWidth(5)
drawBot.save()
drawBot.fill(1, 0, 0)
drawBot.translate(100, 100)
drawBot.rect(0, 0, 100, 100)
drawBot.restore()
drawBot.rect(0, 0, 100, 100)
drawBot.save()
drawBot.fill(0, 1, 0)
drawBot.translate(100, 0)
drawBot.rect... | 172 |
1,144 | <filename>backend/de.metas.manufacturing/src/main/java/org/eevolution/model/validator/DD_Order.java<gh_stars>1000+
package org.eevolution.model.validator;
/*
* #%L
* de.metas.adempiere.libero.libero
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
... | 1,794 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.