max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
493 | <filename>oss_src/perf/memory_info.hpp
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
/**
* Copyright (c) 2009 Carnegie Mellon University.
* All rights reserved.
*
* Licen... | 1,808 |
1,056 | package org.netbeans.test.java.hints;
import java.io.IOException;
public class AddThrowsClause4 {
public AddThrowsClause4() {
}
public void test() {
throw exc();
System.out.println("");
}
public IOException exc() {
return new IOException();
}
}
| 138 |
2,338 | <reponame>mkinsner/llvm
int a [[gnu::used]];
// RUN: %clang_cc1 -code-completion-at=%s:1:9 %s | FileCheck --check-prefix=STD %s
// STD: COMPLETION: Pattern : __carries_dependency__
// STD-NOT: COMPLETION: Pattern : __convergent__
// STD: COMPLETION: Pattern : __gnu__::__used__
// STD-NOT: COMPLETION: Pattern : ... | 1,713 |
4,535 | // Copyright 2019, Intel Corporation
#pragma once
#include "tile/codegen/codegen.pb.h"
#include "tile/codegen/compile_pass.h"
namespace vertexai {
namespace tile {
namespace codegen {
// Packages a block into a sub-block.
// Creates passthrough refinements for the sub-block to access.
class PackagePass final : publ... | 178 |
4,262 | /*
* 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 ... | 1,037 |
4,054 | <filename>eval/src/vespa/eval/instruction/generic_lambda.cpp
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "generic_lambda.h"
#include <vespa/eval/eval/llvm/compiled_function.h>
#include <vespa/eval/eval/llvm/compile_cache.h>
#include <assert.h>
usin... | 2,119 |
500 | <reponame>thomasjpfan/dabl
from sklearn.experimental import enable_halving_search_cv # noqa
from sklearn.utils import deprecated
from sklearn.model_selection import HalvingGridSearchCV as HalvingGridSearchCV
from sklearn.model_selection import HalvingRandomSearchCV as \
HalvingRandomSearchCV
__all__ = ['GridSucc... | 226 |
1,545 | /**
* 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... | 711 |
355 | /*
* Copyright 2011 <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 writin... | 974 |
319 | /**
* 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 provided that the following conditions are met:
*
* * Redistributions of source code must retain ... | 1,782 |
1,801 | <reponame>xzou999/Multitarget-tracker<filename>src/Tracker/graph/GTL/include/GTL/dijkstra.h
/* This software is distributed under the GNU Lesser General Public License */
//==========================================================================
//
// dijkstra.h
//
//===========================================... | 4,943 |
704 | <filename>scripts/aggregate_by_category.py
"""
Sums up popularity for all stocks by category and computes aggregate popularity history for each category
"""
from datetime import datetime
import os
from python_common.db import get_db
def get_day_id(dt: datetime) -> str:
return f"{dt.year}-{dt.month:02}-{dt.day:02... | 2,100 |
5,119 | #include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <time.h>
#include "child.h"
#include "procmon.h"
#include "childhelper.h"
namespace bpftrace {
namespace test {
namespace procmon {
using ::testing::HasSubstr;
TEST(procmon, no_such_proc)
{
try
{
ProcMon(1 << 21);
FAIL();
}
catch (const st... | 402 |
14,668 | <gh_stars>1000+
// 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.
#ifndef IOS_CHROME_BROWSER_UI_AUTHENTICATION_SIGNIN_CONSISTENCY_PROMO_SIGNIN_CONSISTENCY_DEFAULT_ACCOUNT_CONSISTENCY_DEFAULT_ACCOUNT_COORD... | 718 |
5,169 | <reponame>Ray0218/Specs
{
"name": "HicoolFoundation",
"version": "0.0.3",
"summary": "HicoolFoundation.",
"description": "HicoolFoundation is a private library",
"homepage": "https://github.com/jindegege/HicoolFoundation",
"license": "MIT",
"authors": {
"jindegege": "<EMAIL>"
},
"platforms": {
... | 293 |
1,998 | /*
* SPDX-License-Identifier: Apache-2.0
*/
#include "LoopHelpers.hpp"
#include "onnx2trt_utils.hpp"
namespace onnx2trt
{
nvinfer1::ITensor* addLoopCounter(IImporterContext* ctx, nvinfer1::ILoop* loop, int32_t initial)
{
nvinfer1::ITensor* initialTensor = addConstantScalar(ctx, initial, ::ONNX_NAMESPACE::Tenso... | 336 |
2,338 | <filename>openmp/runtime/test/tasking/kmp_taskwait_depend_all.c
// RUN: %libomp-compile-and-run
// The runtime currently does not get dependency information from GCC.
// UNSUPPORTED: gcc
// Tests OMP 5.x task dependence "omp_all_memory",
// emulates compiler codegen versions for new dep kind
//
// Task tree created:
/... | 5,115 |
5,169 | <reponame>Ray0218/Specs
{
"name": "HCharts",
"version": "0.1.0",
"summary": "HCharts is a powerful & easy to use chart library for iOS",
"homepage": "https://github.com/anthony0926/HChart",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
... | 219 |
14,668 | <filename>media/capture/video/video_capture_buffer_pool_util.cc<gh_stars>1000+
// 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.
#include "media/capture/video/video_capture_buffer_pool_util.h"
#include "... | 503 |
744 | <filename>ethers-solc/test-data/out/compiler-out-16.json<gh_stars>100-1000
{"contracts":{"contracts/Contract.sol":{"Contract":{"abi":[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}],"evm":{"bytecode":{"linkReferences":{},"object":"6080604052348015600f57600080fd5b50600080fdfe","opcodes... | 983 |
777 | <gh_stars>100-1000
// 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 IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXTUAL_SEARCH_PANEL_VIEW_H_
#define IOS_CHROME_BROWSER_UI_CONTEXTUAL_SEARCH_CONTEXT... | 738 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/util/programoptions_testutils.h>
namespace vespalib {
namespace {
std::vector<std::string> splitString(const std::string& source) {
std::vector<std::string> ta... | 679 |
28,056 | package com.alibaba.json.bvt.bug;
import com.alibaba.fastjson.JSON;
import junit.framework.TestCase;
public class Bug_for_jiangwei extends TestCase {
public void test_0 () throws Exception {
String text = "['42-0','超級聯隊\\x28中\\x29','辛當斯','1.418',10,'11/18/2012 02:15',1,0,1,0,'',0,0,0,0]";
JSON.p... | 162 |
317 | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... | 2,260 |
1,738 | <gh_stars>1000+
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the li... | 587 |
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 yo... | 1,672 |
380 | //
// HROperationQueue.h
// HTTPRiot
//
// Created by <NAME> on 7/2/09.
// Copyright 2009 LabratRevenge LLC.. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* Gives you access to the shared operation queue used to manage all connections.
*/
@interface HROperationQueue : NSOperationQueue {
}
/*... | 131 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-p9qj-4rjp-j3w9/GHSA-p9qj-4rjp-j3w9.json
{
"schema_version": "1.2.0",
"id": "GHSA-p9qj-4rjp-j3w9",
"modified": "2022-05-13T01:07:08Z",
"published": "2022-05-13T01:07:08Z",
"aliases": [
"CVE-2015-5349"
],
"details": "The CSV export in Apache LDAP Studio and A... | 633 |
2,151 | <filename>third_party/blink/renderer/modules/shapedetection/detected_face.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 "third_party/blink/renderer/modules/shapedetection/detected_face.h"
... | 522 |
432 | <filename>sys/dev/netif/ath/ath_hal/ar9002/ar9285.c
/*
* Copyright (c) 2008-2009 <NAME>, <NAME>
* Copyright (c) 2008 Atheros Communications, 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... | 972 |
1,433 | /*
* Copyright (c) 2016, 2017, 2018, 2019 FabricMC
*
* 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 applicabl... | 1,098 |
734 | <filename>app/src/main/java/com/cheikh/lazywaimai/base/BaseFragment.java
package com.cheikh.lazywaimai.base;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android... | 1,396 |
317 | package com.googlecode.totallylazy.validations;
import com.googlecode.totallylazy.functions.Function1;
import com.googlecode.totallylazy.predicates.Predicate;
import org.junit.Test;
import static com.googlecode.totallylazy.predicates.Predicates.greaterThan;
import static com.googlecode.totallylazy.matchers.IterableMa... | 736 |
3,673 | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... | 2,153 |
1,233 | <reponame>calvin681/mantis
/*
* Copyright 2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 2,035 |
623 | <filename>java/com/google/gerrit/sshd/ChannelIdTrackingUnknownChannelReferenceHandler.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF li... | 1,211 |
4,879 | <filename>iphone/Maps/Classes/LocaleTranslator.h
#pragma once
#include <string>
namespace locale_translator
{
std::string bcp47ToTwineLanguage(NSString const * bcp47LangName);
} // namespace tts
| 72 |
654 | <reponame>dcrec1/tray
package qz.ws;
public enum SocketMethod {
PRINTERS_GET_DEFAULT("printers.getDefault", true, "access connected printers"),
PRINTERS_FIND("printers.find", true, "access connected printers"),
PRINTERS_DETAIL("printers.detail", true, "access connected printers"),
PRINTERS_START_LISTEN... | 1,524 |
677 | <filename>ohc-jmh/src/main/java/org/caffinitas/ohc/jmh/Utils.java
/*
* Copyright (C) 2014 <NAME>, Koeln, Germany, robert-stupp.de
*
* 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 ... | 742 |
3,428 | {"id":"01222","group":"easy-ham-1","checksum":{"type":"MD5","value":"924583306d4cc0c089a9b295915439e4"},"text":"From <EMAIL> Wed Oct 2 11:45:18 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 1D72716F... | 1,609 |
3,645 | /*
* Copyright (c) 2013 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later vers... | 7,091 |
507 | import os
from unittest import TestCase
from bauh.gems.arch import aur
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
class AURModuleTest(TestCase):
def test_map_srcinfo__only_one_pkgname(self):
expected_fields = {
'pkgbase': 'bauh',
'pkgname': 'bauh',
'pkgver... | 5,684 |
852 | <gh_stars>100-1000
#ifndef ParametrizedEngine_TkBfield_h
#define ParametrizedEngine_TkBfield_h
/** \class magfieldparam::TkBfield
*
*
* B-field in Tracker volume - based on the TOSCA computation version 1103l
* (tuned on MTCC measured field (fall 2006))
*
* In: x[3]: coordinates (m)
* Out: ... | 458 |
395 | <gh_stars>100-1000
package timely.client.websocket;
import java.util.List;
import java.util.Map;
import javax.websocket.CloseReason;
import javax.websocket.Endpoint;
import javax.websocket.EndpointConfig;
import javax.websocket.MessageHandler;
import javax.websocket.Session;
import org.slf4j.Logger;
import org.slf4j... | 469 |
6,240 | /*
* Copyright 2016 The Closure Compiler 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... | 5,796 |
392 | /*
* Copyright (c) 2018
*
* 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, publish, distribute, subl... | 607 |
528 | """Hill-Climbing.
"""
import opytimizer.math.random as r
import opytimizer.utils.exception as e
import opytimizer.utils.logging as l
from opytimizer.core import Optimizer
logger = l.get_logger(__name__)
class HC(Optimizer):
"""An HC class, inherited from Optimizer.
This is the designed class to define HC-r... | 972 |
3,121 | import unittest
import os
import numpy as np
from dotenv import load_dotenv
import nlpaug.augmenter.audio as naa
from nlpaug.util import AudioLoader
class TestLoudness(unittest.TestCase):
@classmethod
def setUpClass(cls):
env_config_path = os.path.abspath(os.path.join(
os.path.dirname(__f... | 534 |
336 | # run 'scrapy runspider CDC_General_scraper.py' to scrape data
from datetime import date
import scrapy
from scrapy.crawler import CrawlerProcess
class CovidScraper(scrapy.Spider):
name = "CDC_Scraper"
start_urls = ["https://www.cdc.gov/coronavirus/2019-ncov/faq.html"]
def parse(self, response):
... | 1,370 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-8qwp-q6qh-937c",
"modified": "2022-05-01T07:31:00Z",
"published": "2022-05-01T07:31:00Z",
"aliases": [
"CVE-2006-5717"
],
"details": "Multiple cross-site scripting (XSS) vulnerabilities in Zend Google Data Client Library (ZendGData) Preview 0.2.0 allow remote a... | 524 |
703 | /*
* This file is part of ClassGraph.
*
* Author: <NAME>
*
* Hosted at: https://github.com/classgraph/classgraph
*
* --
*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation f... | 6,961 |
6,647 | /*
* Copyright 1999-2019 Seata.io Group.
*
* 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 l... | 953 |
2,728 | <gh_stars>1000+
# 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.
# Code generated by Microsoft (R) AutoRest Code Generator... | 381 |
1,431 | /* ====================================================================
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... | 452 |
4,297 | /*
* 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 ... | 1,363 |
623 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2016 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... | 1,174 |
6,497 | <gh_stars>1000+
package com.sohu.cache.stats.instance.impl;
import com.sohu.cache.alert.EmailComponent;
import com.sohu.cache.constant.AppCheckEnum;
import com.sohu.cache.constant.InstanceStatusEnum;
import com.sohu.cache.dao.AppAuditDao;
import com.sohu.cache.dao.AppDao;
import com.sohu.cache.dao.InstanceDao;
... | 13,196 |
4,901 | /*
* Copyright (C) 2010 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... | 2,737 |
310 | /*
!@
MIT License
Copyright (c) 2019 Skylicht Technology CO., LTD
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... | 735 |
7,892 | <reponame>joshrose/audacity
sound_type snd_make_delay(sound_type input, time_type delay, double feedback);
sound_type snd_delay(sound_type input, time_type delay, double feedback);
/* LISP: (snd-delay SOUND ANYNUM ANYNUM) */
| 80 |
455 | <filename>StarEngine/jni/Actions/TimedMoveAction.cpp
#include "TimedMoveAction.h"
#include "../Objects/Object.h"
#include "../Helpers/Math.h"
#include "../Graphics/UI/UIObject.h"
namespace star
{
TimedMoveAction::TimedMoveAction(
float32 seconds,
const vec2 & target,
const std::function<void()> & call... | 1,723 |
4,879 | #include "platform/country_file.hpp"
#include "platform/mwm_version.hpp"
#include "base/assert.hpp"
#include <sstream>
#include "defines.hpp"
using namespace std;
namespace
{
/// \returns file name (m_name) with extension dependent on the file param.
/// The extension could be .mwm.routing or just .mwm.
/// The m... | 447 |
377 | <reponame>sirAgg/nebula
//------------------------------------------------------------------------------
// streamtexturepool.cc
// (C)2017-2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "render/stdneb.h"
#include "coregraphics/... | 135 |
369 | // Copyright (c) 2017-2021, Mudit<NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "RT1051DriverSEMC.hpp"
#include "critical.hpp"
#include "board/clock_config.h"
namespace drivers
{
RT1051DriverSEMC::RT1051DriverSEMC(std::string name) : DriverSEMC(std::... | 482 |
484 | /*
* Copyright 2017 Xiaomi, 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 ... | 699 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2020, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package android;
import org.luaj.vm2.Log;
impor... | 800 |
5,169 | {
"name": "FilesProvider",
"version": "0.24.0",
"summary": "FileManager replacement for Local and Remote (WebDAV/FTP/Dropbox/OneDrive/SMB2) files on iOS and macOS.",
"description": "This Swift library provide a swifty way to deal with local and remote files \nand directories in same way. For now Local, WebDAV a... | 365 |
323 | {
"name": "hw---n4",
"description": "NRF52840 board",
"files": [
"config.ts",
"basepins.d.ts",
"device.d.ts"
],
"card": {
"name": "N4",
"description": "Board based on Nordic NRF52840",
"learnMoreUrl": "https://arcade.makecode.com/hardware#n4",
... | 1,140 |
4,538 | <gh_stars>1000+
/**
*****************************************************************************************
* Copyright(c) 2016, Realtek Semiconductor Corporation. All rights reserved.
*****************************************************************************************
* @file gap_callback_le.h
* @bri... | 4,778 |
562 | <filename>recipes/parg/all/test_package/test_package.c
#include <stdio.h>
#include <stdlib.h>
#include "parg.h"
int main(int argc, char *argv[])
{
struct parg_state ps;
int c;
parg_init(&ps);
while ((c = parg_getopt(&ps, argc, argv, "hs:v")) != -1) {
switch (c) {
case 1:
printf("nonoption '%s'\n", ps.opt... | 484 |
617 | #! /usr/bin/env python
import os
import subprocess
import tempfile
import yaml
class Kind(object):
"""
KinD is an acronym for K8s in Docker. More documentation about the
tool can be found here https://github.com/kubernetes-sigs/kind.
"""
def __init__(self, name, config='tools/minicluster/kind_co... | 1,343 |
2,151 | // © 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#ifndef __NUMBER_LONGNAMES_H__
#define __NUMBER_LONGNAMES_H__
#include "unicode/uversion.h"
#include "number_utils.h"
#include "number_modifiers.h"
U... | 804 |
363 | # -*- coding: utf-8 -*-
'''
A module for shelling out.
Keep in mind that this module is insecure, in that it can give whomever has
access to the master root execution access to all salt minions.
'''
# Import python libs
import functools
import glob
import logging
import os
import shutil
import subprocess
import sys
i... | 26,462 |
582 | <reponame>Sphericone/archi
/*******************************************************************************
* Copyright (c) 2008, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accomp... | 2,381 |
507 | # terrascript/resource/turbot/turbot.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:29:24 UTC)
import terrascript
class turbot_file(terrascript.Resource):
pass
class turbot_folder(terrascript.Resource):
pass
class turbot_google_directory(terrascript.Resource):
pass
class turbot_gr... | 631 |
348 | {"nom":"Villedieu-sur-Indre","circ":"1ère circonscription","dpt":"Indre","inscrits":2007,"abs":1016,"votants":991,"blancs":25,"nuls":13,"exp":953,"res":[{"nuance":"REM","nom":"<NAME>","voix":351},{"nuance":"FN","nom":"Mme <NAME>","voix":202},{"nuance":"SOC","nom":"<NAME>","voix":118},{"nuance":"FI","nom":"Mme <NAME>","... | 295 |
6,114 | package com.baidu.disconf.web.service.config.dao.impl;
import org.springframework.stereotype.Service;
import com.baidu.disconf.web.service.config.bo.ConfigHistory;
import com.baidu.disconf.web.service.config.dao.ConfigHistoryDao;
import com.baidu.dsp.common.dao.AbstractDao;
/**
* Created by knightliao on 15/12/25.
... | 152 |
1,132 | package javarepl.expressions;
import com.googlecode.totallylazy.Sequence;
import javarepl.rendering.TypeRenderer;
import static javarepl.Utils.canonicalName;
public final class Method extends Expression {
private final java.lang.reflect.Type type;
private final String name;
private final Sequence<Class<?... | 379 |
879 | package org.zstack.network.l2.vxlan.vxlanNetwork;
import org.springframework.http.HttpMethod;
import org.zstack.header.network.l2.APIDeleteL2NetworkEvent;
import org.zstack.header.network.l2.APIDeleteL2NetworkMsg;
import org.zstack.header.rest.NoSDK;
import org.zstack.header.rest.RestRequest;
@RestRequest(
pa... | 292 |
389 | /*
* Copyright 2014 <NAME>, Inc.
*/
package gw.internal.gosu.ir.transform.util;
import gw.internal.gosu.parser.*;
import gw.lang.parser.IDynamicFunctionSymbol;
import gw.lang.parser.IReducedDynamicFunctionSymbol;
import gw.lang.reflect.IType;
import gw.lang.reflect.IPropertyInfo;
import gw.lang.reflect.PropertyInfo... | 3,251 |
340 | package com.vincentbrison.openlibraries.android.dualcache;
/**
* This cache interface describe the way an object should be serialized/deserialized into a
* byte array.
* @param <T> is the class of object to serialized/deserialized.
*/
public interface CacheSerializer<T> {
/**
* Deserialization of a String... | 223 |
677 | <filename>src/Microsoft.Health.Fhir.Shared.Api.UnitTests/Controllers/openid-configuration.json
{
"authorization_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
"token_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
"token_endpoint_auth_methods_supported"... | 940 |
1,301 | <reponame>trailofbits/mcsema
#!/usr/bin/env python3
# Copyright (c) 2020 Trail of Bits, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at y... | 765 |
420 | # Copyright (c) 2012-2016 Seafile Ltd.
"""
This file contains error messages from ccnet or seafile that will be translated.
"""
from django.utils.translation import ugettext as _
# create_group rpc
msg = _("The group has already created")
msg = _("Failed to create group")
# create_org_group rpc
msg = _("The group has... | 214 |
2,106 | from odo import append, drop
from ..compute.core import compute
from ..dispatch import dispatch
from ..expr.expressions import Expr
from ..expr.literal import BoundSymbol
@dispatch(Expr, BoundSymbol)
def compute_down(expr, data, **kwargs):
return compute(expr, data.data, **kwargs)
@dispatch(Expr, BoundSymbol)
... | 206 |
831 | package p1.p2;
class Java {
public void f(int a) {
}
public void g() {
int r = R.layout.mai<caret>n;
}
} | 56 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-cvvj-7g8w-wqc7",
"modified": "2022-05-01T06:37:53Z",
"published": "2022-05-01T06:37:53Z",
"aliases": [
"CVE-2006-0171"
],
"details": "PHP remote file include vulnerability in index.php in OrjinWeb E-commerce allows remote attackers to execute... | 519 |
1,473 | /*
* Copyright 2017 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1,184 |
1,682 | package com.linkedin.r2.transport.http.client.rest;
import com.linkedin.common.callback.Callback;
import com.linkedin.common.util.None;
import com.linkedin.r2.message.rest.RestResponse;
import com.linkedin.r2.message.rest.RestResponseBuilder;
import com.linkedin.r2.transport.http.client.AsyncPool;
import com.linkedin.... | 1,225 |
1,014 | {
"BVN": {
"short_name": "Buenaventura Mining Company Inc",
"long_name": "Compa\u00f1\u00eda de Minas Buenaventura S.A.A.",
"summary": "Compa\u00c3\u00b1\u00c3\u00ada de Minas Buenaventura S.A.A., a precious metals company, engages in the exploration, mining, concentration, smelting, and... | 1,098 |
1,040 | // Copyright (c) <NAME>
// Licensed under the MIT License
#ifndef __INTERNAL_H__
#define __INTERNAL_H__
#include "panel.h"
#include "hsystems.h"
#include "esystems.h"
#include "orbitersdk.h"
class ShipInternal
{ public:
VESSEL* parent;
Valve* Valves[25];
Tank* Tanks[20];
FCell *FC[3];
Battery *BT[5];
So... | 447 |
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.dataprotection.generated;
import com.azure.core.util.Context;
/** Samples for DataProtectionOperations List. */
public final cl... | 280 |
1,155 | package org.zalando.intellij.swagger.annotator.swagger;
import com.intellij.psi.PsiElement;
import org.zalando.intellij.swagger.traversal.JsonTraversal;
public class JsonUnusedRefAnnotator extends UnusedRefAnnotator {
public JsonUnusedRefAnnotator() {
super(new JsonTraversal());
}
@Override
public PsiEl... | 198 |
2,402 | <reponame>timemachine3030/node-soap
{
"Envelope":{
"Body":{
"Fault":{
"faultcode":"soapenv:Server.userException",
"faultstring":"You have entered an invalid email address or password. Please try again.",
"detail":{
"invalidCredentialsFault":{
"code":"INVALID_LOG... | 248 |
5,460 | <gh_stars>1000+
from .responses import CloudFormationResponse
url_bases = [r"https?://cloudformation\.(.+)\.amazonaws\.com"]
url_paths = {
"{0}/$": CloudFormationResponse.dispatch,
"{0}/cloudformation_(?P<region>[^/]+)/cfnresponse$": CloudFormationResponse.cfnresponse,
}
| 104 |
1,397 | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import tensorflow as tf
import numpy as np
def sparse_balanced_crossentropy(logits, labels):
"""
Calculates a class frequency balanced crossentropy loss from sp... | 1,662 |
457 | package io.purplejs.http;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import com.google.common.base.Splitter;
import com.google.common.collect.ForwardingMap;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.net.MediaType;
imp... | 479 |
1,615 | <reponame>mmdongxin/MLN<filename>MLN-iOS/MLN/Classes/MUICore/Exporter/MLNUIGlobalVarExporterMacro.h
//
// MLNUIGlobalVarExporterMacro.h
// MLNUICore
//
// Created by MoMo on 2019/8/1.
//
#ifndef MLNUIGlobalVarExporterMacro_h
#define MLNUIGlobalVarExporterMacro_h
#import "MLNUIExporterMacro.h"
/**
标记导出全局变量类开始
*/... | 440 |
454 | <gh_stars>100-1000
package io.smallrye.mutiny.converters;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import java.io.IOException;
import org.junit.jupiter.api.Test;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.converters.multi.MultiReac... | 1,089 |
1,530 | <gh_stars>1000+
/*
* This file is part of ClassGraph.
*
* Author: <NAME>
*
* Hosted at: https://github.com/classgraph/classgraph
*
* --
*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
*... | 1,009 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.