max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
879 | package org.zstack.core;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
class DynamicObjectMetadata {
Map<String, Field> fields = new HashMap<>();
Map<String, Method> methods = new HashMap<>();
}
| 93 |
429 | # Copyright (c) 2017-present, Facebook, 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... | 1,864 |
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.costmanagement.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import c... | 1,317 |
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.security.implementation;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azu... | 1,003 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------... | 5,283 |
416 | <filename>src/main/java/com/tencentcloudapi/pds/v20210701/PdsClient.java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 co... | 1,289 |
2,460 | /**
* Copyright (C) 2015 Red Hat, 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... | 421 |
2,118 | // Copyright (c) 2006-2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "test_set_nogc.h"
#include <cds/container/lazy_list_nogc.h>
#include <cds/container/split_list_set_nogc.h>
#include <cds/intrus... | 3,852 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... | 9,055 |
563 | <reponame>kdima001/mesh
package com.gentics.mesh.core.s3binary;
/**
* S3 Interface that actually serves only for structural purpose. In the future methods should be declared here.
*/
public interface S3BinaryProcessorRegistry {
} | 71 |
1,927 | import datetime
from enum import Enum
from pathlib import Path
from typing import Any, Optional
from fastapi_camelcase import CamelModel
from mealie.core.config import app_dirs, settings
from mealie.db.models.recipe.recipe import RecipeModel
from mealie.schema.comments import CommentOut
from pydantic import BaseModel,... | 3,116 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_CREDENTIAL_PROVIDER_EXTENSION_ACCOUNT_VERIFICATION_PROVIDER_H_
#define IOS_CHROME_CREDENTIAL_PROVIDER_EXTENSION_ACCOUNT_VERIFICATION_PR... | 445 |
478 | package org.calyxos.backup.contacts;
import android.app.backup.FullBackupDataOutput;
import java.io.File;
interface FullBackupFileHandler {
void fullBackupFile(File file, FullBackupDataOutput output);
}
| 72 |
407 | package com.alibaba.sreworks.teammanage.server.params;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.sreworks.domain.DO.TeamAccount;
import lombok.Data;
/**
* @author jinghua.yjh
*/
@Data
public class TeamAccountCreateParam {
private String type;
private String name;
private JSONObject ... | 361 |
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 ... | 26,297 |
2,151 | // 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.
#include "chrome/browser/ui/app_list/search/answer_card/answer_card_result.h"
#include "base/unguessable_token.h"
#include "chrome/browser/ui/app_list/ap... | 809 |
663 | """
categories: Types,bytes
description: bytes objects support .format() method
cause: Pycopy strives to be a more regular implementation, so if both `str` and `bytes` support ``__mod__()`` (the % operator), it makes sense to support ``format()`` for both too. Support for ``__mod__`` can also be compiled out, which lea... | 130 |
1,062 | <filename>geospatial/test/cpp/suites/Cover.cpp
/**
* Copyright 2014 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.... | 340 |
2,023 | <filename>recipes/Python/578192_Linux_to_Windows/recipe-578192.py<gh_stars>1000+
import os
import sys
import tarfile
ERROR = False
TABLE = ''.join(map(chr, range(256)))
DELETECHARS = ''.join(c for c in TABLE if len(repr(c)) != 6)
def main():
try:
arguments = sys.argv[1:]
assert arguments
f... | 648 |
3,600 | <reponame>duxinyu03/moco
package com.github.dreamhead.moco;
import com.github.dreamhead.moco.helper.MocoTestHelper;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static com.github.dreamhead.moco.Moco.httpsServer;
import static com.github.dreamhead.moco.Moc... | 464 |
1,099 | package com.example.commonlibrary.skin.attr;
import android.view.View;
import android.widget.CheckBox;
import android.widget.SeekBar;
import com.example.commonlibrary.skin.SkinManager;
import com.example.commonlibrary.utils.CommonLogger;
/**
* Created by COOTEK on 2017/9/6.
*/
public class ThumbAttr extends SkinA... | 229 |
7,897 | <reponame>shawabhishek/Cpp-Primer
#ifndef DISC_QUOTE_H
#define DISC_QUOTE_H
#include "quote.h"
class Disc_quote : public Quote
{
public:
Disc_quote();
Disc_quote(const std::string& b, double p, std::size_t q, double d) :
Quote(b, p), quantity(q), discount(d) { }
virtual double net_price(std::siz... | 187 |
619 | <filename>src/uartat/uartat.h
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2017 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#prag... | 3,557 |
2,338 | <filename>third-party/llvm/llvm-src/utils/lit/tests/Inputs/shtest-recursive-substitution/escaping/test.py
# RUN: echo %rec2 %%s %%%%s
| 55 |
648 | <reponame>swrobel/fhir
{"resourceType":"DataElement","id":"ValueSet.codeSystem.concept.definition","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ValueSet.codeSystem.concept.definition","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":... | 181 |
14,668 | // 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.
#include "components/offline_items_collection/core/utilities/file_existence_checker.h"
#include <vector>
#include "base/bind.h"
#include "base/files/fil... | 1,099 |
3,285 | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 819 |
627 | /* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Icelake chipset power control module for Chrome EC */
#ifndef __CROS_EC_ICELAKE_H
#define __CROS_EC_ICELAKE_H
#include "stdbool.h"
/* Input s... | 1,060 |
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 ... | 1,192 |
852 | <reponame>ckamtsikis/cmssw<filename>DQMOffline/JetMET/test/run_PromptAna_GR112220_Calo.py<gh_stars>100-1000
#
import FWCore.ParameterSet.Config as cms
process = cms.Process("test")
process.load("CondCore.DBCommon.CondDBSetup_cfi")
#
# DQM
#
process.load("DQMServices.Core.DQM_cfg")
process.load("DQMServices.Componen... | 2,331 |
454 | package io.vertx.tp.plugin.neo4j;
import io.vertx.ext.unit.TestContext;
import org.junit.Ignore;
import org.junit.Test;
@Ignore
public class Neo4jRTc extends Neo4jQuiz {
@Test
public void testAddJ(final TestContext context) {
final Neo4jGs gs = this.create("case4-object.json");
final Neo4jClie... | 375 |
543 | <filename>gui-builder/include/WidgetProperties/ListViewProperties.hpp
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TGUI - Texus' Graphical User Interface
// Copyright (C) 2012-2021 <NAME> (<EMAIL>)
//
// This software is provided... | 4,199 |
4,901 | /* GENERATED SOURCE. DO NOT MODIFY. */
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
/**
*******************************************************************************
* Copyright (C) 2000-2010, International Business Machines Corporation and ... | 8,745 |
2,338 | <filename>lldb/packages/Python/lldbsuite/test/lang/cpp/accelerator-table/e.cpp<gh_stars>1000+
#include "source.h"
CLASS(E)
| 52 |
3,807 | <reponame>warmchang/bloaty
#!/usr/bin/env python
import subprocess
import os
import sys
basedir = os.path.dirname(sys.argv[0])
readme = os.path.join(basedir, "doc/using.md")
with open(readme) as f:
inp = f.read()
out = ""
it = iter(inp.splitlines(True))
for line in it:
out += line
if line.startswith("```cmd... | 307 |
965 | <reponame>bobbrow/cpp-docs<filename>docs/mfc/reference/codesnippet/CPP/cmdichildwnd-class_5.cpp
// CMainFrame::OnMaximizeWindow() is a menu command handler for
// CMainFrame class, which in turn is a CMDIFrameWnd-derived
// class. It maximizes the current active MDI child window.
void CMainFrame::OnMaximizeWindow()
{
... | 171 |
348 | <gh_stars>100-1000
{"nom":"Liginiac","circ":"1ère circonscription","dpt":"Corrèze","inscrits":495,"abs":252,"votants":243,"blancs":29,"nuls":12,"exp":202,"res":[{"nuance":"REM","nom":"<NAME>","voix":109},{"nuance":"SOC","nom":"<NAME>","voix":93}]} | 100 |
628 | <filename>ThunkLibs/Generators/libXext.py
#!/usr/bin/python3
from ThunkHelpers import *
lib("libXext", "6")
# needs function pointer
# fn("int (* XSetExtensionErrorHandler(XextErrorHandler))(Display*, const char*, const char*)")
fn("int DPMSCapable(Display*)")
fn("int DPMSDisable(Display*)")
fn("int DPMSEnable(Displ... | 4,320 |
879 | package org.zstack.sdk;
public class VpcRouterVmInventory extends org.zstack.sdk.VirtualRouterVmInventory {
public java.util.List dns;
public void setDns(java.util.List dns) {
this.dns = dns;
}
public java.util.List getDns() {
return this.dns;
}
public java.util.List haRef;
... | 217 |
719 | /*
* Copyright 2020 momosecurity.
*
* 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... | 7,472 |
432 | <filename>snoopy/server/bin/sslstripSnoopy/sslstrip/ServerConnection.py<gh_stars>100-1000
# Copyright (c) 2004-2009 <NAME>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of t... | 2,568 |
10,125 | /** @file
This file is part of OpenCanopy, OpenCore GUI.
Copyright (c) 2018-2019, Download-Fritz. All rights reserved.<BR>
SPDX-License-Identifier: BSD-3-Clause
**/
#include <Uefi.h>
#include <Protocol/AppleKeyMapAggregator.h>
#include <Library/DebugLib.h>
#include <Library/OcAppleKeyMapLib.h>
#include <Libra... | 622 |
410 | // Copyright(c) 2017 POLYGONTEK
//
// 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 i... | 6,337 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_TEST_URL_LOADER_MONITOR_H_
#define CONTENT_PUBLIC_TEST_URL_LOADER_MONITOR_H_
#include <map>
#include <memory>
#include <set>
#inc... | 1,618 |
496 | <reponame>gitter-badger/poetry-1<filename>tool/src/main/java/cn/modernpoem/command/Node.java
package cn.modernpoem.command;
import java.util.HashMap;
import java.util.Map;
class Node {
private final char c;
boolean endChar = false;
private final Map<Character, Node> next = new HashMap<>();
Node(char ... | 431 |
435 | <reponame>amaajemyfren/data<filename>pycon-es-2013/videos/pep-3156-io-asyncrona-en-python-como-funciona-un-event-loop-pycones-2013.json
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "Autor: Sa\u0<NAME>\u00e9\n\nTrack: Avanzado\n\nUna de las mayores ventajas de Python es ... | 501 |
2,124 | <filename>tests/specs/stubs/joinme/get/me.json
{
"email":"<EMAIL>",
"fullName":"<NAME>",
"language":"en-US",
"numberOfMeetingsHosted":57,
"personalUrl":"hardwork",
"registrationDate":"2014-03-22T20:45:00",
"subscriptionType":"Pro"
} | 115 |
602 | package org.corfudb.infrastructure;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import lombok.Data;
import org.corfudb.comm.ChannelImplementation;
import org.corfudb.infrastructure.logreplication.LogReplicationConfig;
import org.corfudb.infrastructure.logreplication.transport.IChanne... | 3,965 |
11,356 | /* hw_cluster_labs_err.c */
/* ====================================================================
* Copyright (c) 1999-2002 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... | 2,223 |
12,278 | <reponame>Mu-L/jemalloc
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/peak_event.h"
#include "jemalloc/internal/activity_callback.h"
#include "jemalloc/internal/peak.h"
/*
* Update every 64K by default. We're not exposing this... | 865 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 10,152 |
568 | <reponame>jgtaylor123/novoda_spikes<gh_stars>100-1000
package com.novoda.inkyphat;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import android.util.Log;
impo... | 539 |
2,539 | from django.conf import settings
from django.http import HttpRequest
from rest_framework import serializers
# Import is needed only if we are using social login, in which
# case the allauth.socialaccount will be declared
if 'allauth.socialaccount' in settings.INSTALLED_APPS:
from allauth.socialaccount.helpers impor... | 1,174 |
339 | <reponame>Malavikka/ConvLab-2
from copy import deepcopy
import numpy as np
import torch
def padding(old, l):
"""
pad a list of different lens "old" to the same len "l"
"""
new = deepcopy(old)
for i, j in enumerate(new):
new[i] += [0] * (l - len(j))
new[i] = j[:l]
return new
def... | 1,703 |
2,151 | /*
* Copyright (C) 2010, Google 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | 1,401 |
543 | /*
* Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 3,425 |
348 | {"nom":"Saint-Bauzille-de-Montmel","circ":"4ème circonscription","dpt":"Hérault","inscrits":843,"abs":385,"votants":458,"blancs":5,"nuls":1,"exp":452,"res":[{"nuance":"REM","nom":"<NAME>","voix":183},{"nuance":"FI","nom":"<NAME>","voix":68},{"nuance":"FN","nom":"<NAME>","voix":57},{"nuance":"LR","nom":"Mme <NAME>","voi... | 327 |
3,264 | #include <display.h>
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define min(a,b) ((a)>(b)?(b):(a))
WINDOW *main_screen;
static int intensity_threshold = 25;
static double saturation = 2.0;
static char *ascii_values = " ..::--==+++***###%%%%%%%%@@@@@@@";
static int monochrome = 0;
ch... | 2,060 |
2,527 | <reponame>thehunmonkgroup/taskwarrior
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2021, <NAME>, <NAME>, <NAME>.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Soft... | 14,977 |
1,444 | package mage.cards.w;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.CipherEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.game.Game;
import mage.players.Playe... | 966 |
779 | <gh_stars>100-1000
package org.everit.json.schema.regexp;
public class RegexpMatchingFailure {
RegexpMatchingFailure() {
}
@Override public boolean equals(Object obj) {
return obj instanceof RegexpMatchingFailure;
}
}
| 93 |
1,566 | <gh_stars>1000+
package com.wangpos.s_mvp.base.widget;
import android.arch.lifecycle.Lifecycle;
import android.arch.lifecycle.LifecycleObserver;
import android.arch.lifecycle.OnLifecycleEvent;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.u... | 931 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-rv2g-hm3j-m43m",
"modified": "2022-05-01T02:11:10Z",
"published": "2022-05-01T02:11:10Z",
"aliases": [
"CVE-2005-2727"
],
"details": "Home Ftp Server 1.0.7 stores sensitive user information and server information in the same directory as the user's home directo... | 521 |
777 | <gh_stars>100-1000
// 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.
#ifndef CHROME_BROWSER_METRICS_HTTPS_ENGAGEMENT_METRICS_PROVIDER_H_
#define CHROME_BROWSER_METRICS_HTTPS_ENGAGEMENT_METRICS_PROVIDER_H_... | 314 |
7,482 | /*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-06-02 hqfang first version
*/
#include "drv_pwm.h"
// #define DBG_LVL DBG_INFO
#include <rtdbg.h>
#ifdef BSP_USING_PWM
#if !def... | 4,936 |
344 | //===============================================================================
// @ Player.cpp
// ------------------------------------------------------------------------------
// Player
//
// Copyright (C) 2007 by <NAME> and <NAME>.
// All rights reserved.
//
// Use of this source code is governed by a BSD-style li... | 2,390 |
678 | import json
import time
from uuid import uuid4
import uvloop
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import access_log
from tornado.web import Application, url, RequestHandler
class HTML(RequestHandler):
async def get(self, part=None):
self.write("<b>... | 740 |
3,651 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 1,999 |
675 | #ifndef CLASS_NCINE_RANDOM
#define CLASS_NCINE_RANDOM
#include <cstdint>
#include "common_defines.h"
namespace ncine {
/// PCG32 random number generator
/*!
* Based on the Apache License 2.0 code from pcg-random.org
*/
class DLL_PUBLIC Random
{
public:
/// Creates a new generator with default seeds
Random();
... | 421 |
1,350 | <filename>sdk/keyvault/microsoft-azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/algorithms/RsaSignature.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.keyvault.cryptography.algorithms;
... | 2,934 |
1,751 | <reponame>simplixcurrency/simplix<filename>external/unbound/ipsecmod/ipsecmod-whitelist.h
/*
* ipsecmod/ipsecmod-whitelist.h - White listed domains for the ipsecmod to
* operate on.
*
* Copyright (c) 2017, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source an... | 912 |
550 | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,770 |
14,668 | <reponame>zealoussnow/chromium<filename>chrome/renderer/benchmarking_extension.cc
// Copyright (c) 2011 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/renderer/benchmarking_extension.h"
#include "base/... | 1,363 |
311 | #pragma once
#include "CoreMinimal.h"
#include "UnrealLua.h"
#include "BaseEngineLuaGlue.h"
#include "LuaEditorGlueMacro.h"
#include "SButton.h"
#include "SPanel.h"
#include "SDockTab.h"
#include "SBox.h"
#include "SCheckBox.h"
#include "Runtime/Launch/Resources/Version.h"
LUA_GLUE_ENUM_BEGIN(ESizeRule, FSizeParam::ES... | 5,620 |
381 | <gh_stars>100-1000
# UNICODE CHARACTER DATABASE
# This file was generated with the command:
# ./generate_unicodedb.py --unidata_version=8.0.0 --output=unicodedb_8_0_0 --base=unicodedb_5_2_0
from rpython.rlib.rarithmetic import r_longlong
import unicodedb_5_2_0 as base_mod
version = '8.0.0'
_names = {
983053: 'A... | 388,966 |
1,350 | <filename>sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/models/Serial.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.az... | 536 |
387 |
#ifndef SEAFILE_CELINT_TRANSLATE_COMMIT_DESC_H
#define SEAFILE_CELINT_TRANSLATE_COMMIT_DESC_H
#include <QString>
QString
translateCommitDesc (const QString& input);
void
translateCommitDescV2(const QString& path, const QString& file_name, const QString& repo_name,
const QString& obj_type, cons... | 269 |
903 | package org.develnext.jphp.core.compiler.jvm.node;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.ClassNode;
import java.util.ArrayList;
public class ClassNodeImpl extends ClassNode {
public ClassNodeImpl() {
super(Opcodes.ASM5);
version = Opcodes.V1_6; // todo: available to swi... | 167 |
5,169 | {
"name": "KTSwiftAlert",
"version": "1.0",
"summary": "A simple configurable alert in Swift.",
"homepage": "https://github.com/kvtaniguchi/KTSwiftAlert",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"kvtaniguchi": "<EMAIL>"
},
"source": {
"git": "https://github.com/kv... | 240 |
1,162 | <reponame>wp-jackliu/KafkaCenter
package org.nesc.ec.bigdata.common.model;
import java.util.Objects;
public class MeterMetric {
public MeterMetric(Long count, Double meanRate, Double oneMinuteRate, Double fiveMinuteRate,
Double fifteenMinuteRate, String metricName, String clusterID) {
super();
this.count... | 1,746 |
6,610 | <filename>packages/guess-parser/test/fixtures/nx/tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": ".",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleRe... | 413 |
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 ... | 1,070 |
408 | /*
* Copyright (C) 2011 The Guava 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 agreed ... | 2,754 |
432 | <reponame>lambdaxymox/DragonFlyBSD<filename>lib/libc/sysvipc/lock.c
/*
* Copyright (c) 1995 <NAME> <<EMAIL>>.
* Copyright (c) 1998 <NAME>
* Copyright (c) 2006 <NAME> <<EMAIL>>.
* Copyright (c) 2013 <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... | 2,622 |
538 | <reponame>e16din/AndroidBucket
package com.wangjie.androidbucket.services.network.http;
import android.util.Log;
import com.wangjie.androidbucket.application.HttpApplicationController;
import com.wangjie.androidbucket.log.Logger;
import com.wangjie.androidbucket.services.network.http.interceptor.HttpMethodInterceptor... | 3,275 |
4,994 | /*
Copyright (c) 2013, <NAME> and the respective contributors
All rights reserved.
Use of this source code is governed by a BSD-style license that can be found
in the LICENSE file.
*/
#pragma once
#include <vector>
namespace tiny_dnn {
TEST(l2norm, forward) {
l2_normalization_layer l2_norm(4, 3, 1... | 786 |
2,123 | require_extension('F');
require_fp;
softfloat_roundingMode = RM;
WRITE_FRD(f32_sqrt(f32(FRS1)));
set_fp_exceptions;
| 52 |
825 | //
// HMWebPImageCoderDefine.h
// Hummer
//
// Created by didi on 2021/9/1.
//
#import <Foundation/Foundation.h>
#import "HMImageCoderManager.h"
NS_ASSUME_NONNULL_BEGIN
/**
Integer value
Quality/speed trade-off (0=fast, 6=slower-better)
*/
FOUNDATION_EXPORT HMImageCoderOption _Nonnull const HMImageCoderEncodeWeb... | 1,123 |
333 | f = plt.figure(figsize=(6,6))
plt.scatter(pres.swing_full, lp.weights.lag_spatial(w, pres.swing_full))
plt.plot((-.3,.1),(-.3,.1), color='k')
plt.title('$I = {:.3f} \ \ (p < {:.3f})$'.format(moran.I,moran.p_sim)) | 106 |
728 | package org.sirix.index.path.xml;
import org.sirix.index.path.PathIndex;
public interface XmlPathIndex extends PathIndex<XmlPathIndexBuilder, XmlPathIndexListener> {
}
| 57 |
319 | <filename>demos/examples/src/main/java/org/openimaj/examples/image/feature/local/BoVWExample.java
/**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted prov... | 2,064 |
429 | """Add IP to route metrics
Revision ID: 4c3784d41d41
Revises: 2<PASSWORD>
Create Date: 2020-08-28 17:21:43.308374
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "4c3784d41d41"
down_revision = "277bad300c09"
branch_labels = None
depends_on = None
def upgrade(... | 628 |
1,652 | package com.ctrip.xpipe.redis.console.migration.model;
/**
* @author wenchao.meng
* <p>
* Aug 03, 2017
*/
public class ClusterStepResult {
private final int totalCount;
private final int finishCount;
private final int successCount;
public ClusterStepResult(int totalCount, int fini... | 239 |
2,133 | <filename>src/QtLocationPlugin/qtlocation/include/QtLocation/qplacesupplier.h<gh_stars>1000+
#include "../../src/location/places/qplacesupplier.h"
| 52 |
405 | <gh_stars>100-1000
from string import punctuation
from dtags.commons import (
normalize_dir,
normalize_dirs,
normalize_tag,
normalize_tags,
reverse_map,
)
def test_reverse_map(dir1, dir2):
config = {dir2: set()}
assert reverse_map(config) == {}
config = {dir2: {"dir1"}, dir1: {"dir1"... | 699 |
335 | {
"word": "Worktop",
"definitions": [
"A surface, usually resting on cupboards or drawers that can be used to work on."
],
"parts-of-speech": "Noun"
} | 71 |
583 | #pragma once
/**
* Clustering to apply after loading the benchmark data:
* - "None" does not apply any clustering. For TPC-H and TPC-DS that means that the order of the data generator is
* used.
* - "Pruning" is a clustering that improves the pruning rates in TPC-H.
*/
enum class ClusteringConfiguration {... | 106 |
522 | package org.jivesoftware.sparkimpl.certificates;
import java.awt.HeadlessException;
import java.io.File;
import java.io.IOException;
import java.math.BigInteger;
import java.nio.file.Files;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.KeyStore;
import java.security.KeyStore... | 5,582 |
370 | <reponame>CoderJackyHuang/HYBControllerTransitions<filename>HYBTransitionAnimations/HYBBubbleFromBottomController.h
//
// HYBBubbleFromBottomController.h
// HYBTransitionAnimations
//
// Created by huangyibiao on 16/3/29.
// Copyright © 2016年 huangyibiao. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HY... | 148 |
566 | <reponame>uf-reef-avl/dvo_slam<filename>dvo_slam/include/dvo_slam/config.h<gh_stars>100-1000
/**
* This file is part of dvo.
*
* Copyright 2013 <NAME> <<EMAIL>> (Technical University of Munich)
* For more information see <http://vision.in.tum.de/data/software/dvo>.
*
* dvo is free software: you can redistribu... | 1,382 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.