max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 7,489 |
2,151 | <reponame>rhencke/engine<filename>src/ios_tools/chrome/browser/ui/fade_truncated_label.h
// 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_FADE_TRUNCATED_LABEL_H_
#define IOS... | 603 |
322 | package com.imooc.imooc_voice.model.newapi.dj;
public class DjTopListBean {
private int code;
private String msg;
private Data data;
public void setCode(int code) {
this.code = code;
}
public int getCode() {
return code;
}
public void setMsg(String msg) {
this.msg = msg;
}
public String getMsg() ... | 781 |
333 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 服务记录类目请求
*
* @author auto create
* @since 1.0, 2020-12-10 16:49:01
*/
public class ServiceRecordCatRequest extends AlipayObject {
private static final long serialVersionUID = 3... | 813 |
2,177 | <filename>Sources/Workflows/Alfredlytics/update.json
{
"version": 1.0,
"remote_json": "https://raw.github.com/markokaestner/alfredlytics/master/package/Alfredlytics.json"
} | 72 |
3,451 | <reponame>niits/BentoML<filename>tests/yatai/test_delete.py
# pylint: disable=redefined-outer-name
import pytest
from click.testing import CliRunner
from bentoml import BentoService
from bentoml.cli import create_bentoml_cli
from bentoml.yatai.client import get_yatai_client
from bentoml.exceptions import BentoMLExcep... | 2,128 |
392 | package jetbrick.template.exec.value;
import jetbrick.template.exec.AbstractJetxTest;
import org.junit.Assert;
import org.junit.Test;
public class ValueTest extends AbstractJetxTest {
@Test
public void testValue() {
Assert.assertEquals("<>", eval("${'<>'}"));
}
@Test
public void testValu... | 167 |
2,206 | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | 2,710 |
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... | 5,335 |
386 | <reponame>ccoderJava/bus<gh_stars>100-1000
/*********************************************************************************
* *
* The MIT License (MIT) *
* ... | 3,592 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"3ème circonscription","dpt":"Drôme","inscrits":29,"abs":5,"votants":24,"blancs":7,"nuls":0,"exp":17,"res":[{"nuance":"REM","nom":"<NAME>","voix":10},{"nuance":"LR","nom":"<NAME>","voix":7}]} | 108 |
12,940 | {
"$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#",
"type": "QuickStart",
"itemDisplayName": "Create Recovery Services Vault with backup policies",
"description": "This template creates a Recovery Services Vault with backup policies and configure optional features such system identity, ba... | 144 |
1,444 | <reponame>GabrielSturtevant/mage
package mage.cards.r;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.LimitedTimesPerTurnActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.cards.CardImpl;
import mag... | 420 |
852 | <gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
process = cms.Process("SKIMb")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load("CondCore.DBCommon.CondDBSetup_cfi")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
# '/store/data/Commissionin... | 1,009 |
477 | <gh_stars>100-1000
import os
__THIS = os.path.dirname(__file__)
def join(*args):
return os.path.abspath(os.path.join(*args))
KNOWN_TEXT_EXTENSIONS = (
".fasta", ".fq", ".fastq", ".sam", ".bed", ".gff", ".fa",
".r", ".gtf", ".gb", ".tsv", ".csv", ".rep", ".sh", ".md", ".txt"
)
# Stop words used in sea... | 993 |
526 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.opentypes;
import org.odpi.openmetadata.repositoryservices.archiveutilities.OMRSArchiveBuilder;
import org.odpi.openmetadata.repositoryservices.archiveutilities.OMRSArchiveHelper;
import or... | 9,710 |
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.
#ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_CHROMEOS_RESOLVE_TIME_ZONE_BY_GEOLOCATION_METHOD_SHORT_H_
#define CHROME_BROWSER_EXTENSIONS_API_SET... | 336 |
12,278 | <reponame>rajeev02101987/arangodb<gh_stars>1000+
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_OBJECTS_INSTANCE_TYPE_H_
#define V8_OBJECTS_INSTANCE_TYPE_H_
#include "src/objects/elements... | 10,919 |
14,668 | // 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 "chrome/browser/ash/account_manager/account_apps_availability.h"
#include "ash/constants/ash_features.h"
#include "base/bind.h"
#include "base/c... | 5,767 |
501 | #!/usr/bin/env python
import pyscf
from pyscf.tools.mo_mapping import mo_comps
from benchmarking_utils import setup_logger, get_cpu_timings
log = setup_logger()
for bas in ('3-21g', '6-31g**', 'cc-pVTZ', 'ANO-Roos-TZ'):
mol = pyscf.M(atom = '''
c 1.217739890298750 -0.703062453466927 0.000000000000000
h 2.172... | 793 |
549 | {
"generated": [
".gitignore",
".repo-metadata.json",
".rubocop.yml",
".yardopts",
"AUTHENTICATION.md",
"CHANGELOG.md",
"Gemfile",
"LICENSE.md",
"README.md",
"Rakefile",
"gapic_metadata.json",
"google-cloud-eventarc-publishing-v1.gemspec",
"lib/google-cloud-eventarc... | 582 |
17,242 | // Copyright 2020 The MediaPipe 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 a... | 3,668 |
310 | {
"name": "NIKKOR 20mm f/4",
"description": "A camera lens.",
"url": "https://www.kenrockwell.com/nikon/20f4.htm"
} | 53 |
541 | // Copyright 2017, 2019 ETH Zürich, <NAME>
//
// 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 conditions and the followi... | 862 |
552 | <gh_stars>100-1000
// Copyright (c) 2016 <NAME> <EMAIL>
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#include <toyui/Config.h>
#include <toyui/Types.h>
#include <toyui/Button/Dropdown... | 744 |
1,047 | #include "uTensor/core/operatorBase.hpp"
#include "uTensor/core/context.hpp"
namespace uTensor {
// EVENTS AND ERRORS
DEFINE_ERROR(OperatorIOSizeMismatchError);
// OperatorBase::OperatorBase(TensorMapInterface* inputs, TensorMapInterface*
// outputs) : inputs(inputs), outputs(outputs) {
// Context* ctx = Contex... | 730 |
369 | <gh_stars>100-1000
// Copyright (c) 2017-2021, Mudita <NAME>.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "Endpoint.hpp"
#include <algorithm>
#include <vector>
#include <cassert> // assert
using audio::AbstractStream;
using audio::Endpoint;
using audio::Sink;
... | 718 |
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,574 |
8,935 | import argparse
import os
import subprocess
from collections import namedtuple
import contextlib
import wordcloud as wc
from wordcloud import wordcloud_cli as cli
from mock import patch
import pytest
import matplotlib
matplotlib.use('Agg')
class PassFile(object):
pass
ArgOption = namedtuple('ArgOption', ['cl... | 3,287 |
7,049 | <filename>packages/purgecss-from-html/package-lock.json
{
"name": "purgecss-from-html",
"version": "4.0.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "4.0.3",
"license": "ISC",
"dependencies": {
"parse5": "^6.0.0",
"parse5-htmlparser2-tree-adapter": "^6.0.0"
},
... | 1,199 |
1,016 | <filename>vertx-web-api-contract/src/main/java/io/vertx/ext/web/api/validation/impl/OneOfTypeValidator.java
package io.vertx.ext.web.api.validation.impl;
import io.vertx.ext.web.api.RequestParameter;
import io.vertx.ext.web.api.validation.ParameterTypeValidator;
import io.vertx.ext.web.api.validation.ValidationExcepti... | 504 |
1,093 | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 501 |
1,200 | package com.xiaojukeji.chronos.metrics;
public enum MetricMsgType {
UNKNOWN("unknown"),
DELAY("delay"),
LOOP_DELAY("loop_delay"),
LOOP_EXPONENT_DELAY("loop_exponent_delay");
private String value;
MetricMsgType(String value) {
this.value = value;
}
public String getValue() {
... | 146 |
348 | {"nom":"Lauris","circ":"2ème circonscription","dpt":"Vaucluse","inscrits":3073,"abs":1508,"votants":1565,"blancs":13,"nuls":2,"exp":1550,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":485},{"nuance":"FN","nom":"<NAME>","voix":327},{"nuance":"LR","nom":"<NAME>","voix":292},{"nuance":"FI","nom":"<NAME>","voix":234},{"n... | 241 |
3,459 | <reponame>ianclawson/Provenance
/* Mednafen - Multi-system Emulator
*
* Portions of this file Copyright (C) 2004 Ki
*
* 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 2 of t... | 4,135 |
14,668 | // 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.
package org.chromium.chrome.browser.contextualsearch;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.equ... | 1,998 |
1,604 | package org.bouncycastle.jce.provider.test;
import java.io.ByteArrayInputStream;
import java.security.GeneralSecurityException;
import java.security.Security;
import java.security.cert.CertPathBuilder;
import java.security.cert.CertPathBuilderResult;
import java.security.cert.CertStore;
import java.security.cert.Certi... | 197,205 |
396 | <filename>test/py/ganeti.ssconf_unittest.py
#!/usr/bin/python3
#
# Copyright (C) 2012 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 reta... | 4,312 |
521 | #pragma once
#include <utility>
#include <elle/Printable.hh>
#include <elle/attribute.hh>
#include <elle/log.hh>
namespace elle
{
namespace das
{
template <typename O, typename S,
typename P = typename S::template method_signature<O>>
struct BoundMethod;
template <typename O, typename ... | 822 |
348 | <filename>docs/data/leg-t2/02A/02A02181.json
{"nom":"Ocana","circ":"2ème circonscription","dpt":"Corse-du-Sud","inscrits":394,"abs":225,"votants":169,"blancs":12,"nuls":4,"exp":153,"res":[{"nuance":"REG","nom":"<NAME>","voix":119},{"nuance":"LR","nom":"<NAME>","voix":34}]} | 115 |
1,531 | /*
* 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
* distr... | 326 |
3,631 | <gh_stars>1000+
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* 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... | 3,095 |
382 | <gh_stars>100-1000
import os, glob
import subprocess
from subprocess import DEVNULL, STDOUT
abspath = os.path.abspath(__file__)
dir_ = os.path.dirname(abspath)
files = glob.glob(dir_ + "/_progress_board_tests/_test_progress_board_*.py")
for file_path in files:
file_name = str(file_path.rsplit("/", maxsplit=1)[1... | 272 |
4,074 | /**
* Illustrates joining two csv files
*/
package com.oreilly.learningsparkexamples.java;
import java.io.StringReader;
import java.util.Arrays;
import java.util.List;
import scala.Tuple2;
import au.com.bytecode.opencsv.CSVReader;
import org.apache.commons.lang.StringUtils;
import org.apache.spark.api.java.JavaRDD... | 690 |
680 | /* Copyright 2015 The TensorFlow 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 a... | 3,724 |
1,080 | <reponame>congnt95/neutron<filename>neutron/tests/functional/services/logapi/test_logging.py
# Copyright (c) 2017 Fujitsu Limited
# 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... | 3,132 |
593 | <reponame>RUB-NDS/TLS-Attacker
/**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattack... | 1,351 |
190,993 | # Copyright 2017 The TensorFlow 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 applica... | 3,960 |
318 | <reponame>GameTechDev/XeGTAO<filename>Source/Rendering/vaSceneRenderViews.cpp
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016-2021, Intel Corporation
//
// SPDX-License-Identifier: MIT
///////////////////////////////////////... | 5,436 |
1,338 | <reponame>Yn0ga/haiku<gh_stars>1000+
/*
* Copyright 2005-2012, Haiku Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _ARCH_X86_64_DEBUGGER_H
#define _ARCH_X86_64_DEBUGGER_H
#include <posix/arch/x86_64/signal.h>
struct x86_64_debug_cpu_state {
struct savefpu extended_registers;
uint64 gs;
ui... | 355 |
4,126 | <reponame>nickc01/cuberite<filename>src/OSSupport/SleepResolutionBooster.h<gh_stars>1000+
// SleepResolutionBooster.h
// Increases the accuracy of Sleep on Windows (GH #5140).
// This file MUST NOT be included from anywhere other than main.cpp.
#ifdef _WIN32
#include <timeapi.h>
static TIMECAPS g_Resoluti... | 412 |
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 ... | 596 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 268 |
1,143 | <reponame>zhouyijiaren/commons
package com.twitter.common.stats;
/**
* Helper class containing only static methods
*/
public final class Histograms {
private Histograms() {
/* Disable */
}
/**
* Helper method that return an array of quantiles
* @param h the histogram to query
* @param quantiles ... | 228 |
577 | <gh_stars>100-1000
{
"name": "viewer-elm",
"version": "0.1.0",
"description": "Animation preview ui for reanimate",
"main": "",
"scripts": {
"build": "elm make src/Main.elm --optimize --output dist/elm.js",
"dev-server": "elm-live --open --dir=dist --start-page=index.html src/Main.elm -- --output dist... | 400 |
488 | <filename>projects/simulator/syscall_tests/syscall_tst.76.1.c
/*
*
* Copyright (c) Wipro Technologies, 2002. All Rights Reserved.
*
* 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;... | 1,728 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-7gvm-32f4-3mv5",
"modified": "2022-05-13T01:08:16Z",
"published": "2022-05-13T01:08:16Z",
"aliases": [
"CVE-2019-8345"
],
"details": "The Help feature in the ES File Explorer File Manager application 4.1.9.7.4 for Android allo... | 463 |
392 | <filename>Source/GenericGraphEditor/Public/AssetTypeActions_GenericGraph.h<gh_stars>100-1000
#pragma once
#include "CoreMinimal.h"
#include "AssetTypeActions_Base.h"
class GENERICGRAPHEDITOR_API FAssetTypeActions_GenericGraph : public FAssetTypeActions_Base
{
public:
FAssetTypeActions_GenericGraph(EAssetTypeCategori... | 231 |
345 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.utils.translation import ugettext_noop as _
def install(apps, schema_editor):
Group = apps.get_model('core.Group')
Permission = apps.get_model('core.Permission')
Region... | 776 |
778 | <gh_stars>100-1000
import KratosMultiphysics as Kratos
from KratosMultiphysics.StatisticsApplication.method_utilities import GetNormTypeContainer
from KratosMultiphysics.StatisticsApplication.method_utilities import GetMethod
from KratosMultiphysics.StatisticsApplication.temporal_utilities import GetItemContainer
def... | 2,272 |
1,104 | # cfg80211 P2P Device
# Copyright (c) 2013-2015, <NAME> <<EMAIL>>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import logging
logger = logging.getLogger()
import time
from wpasupplicant import WpaSupplicant
from p2p_utils import *
from test_nfc_p2p import set... | 11,674 |
852 | #include <string>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <boost/regex.hpp>
#include <boost/tokenizer.hpp>
int main(){
std::string input("TK_HV_ON&N/A&N/A%PIX_HV_ON&N/A&N/A%LHC_RAMPING&false&false%PHYSICS_DECLARED&false&false%");
std::string nameinput("CMS.LVL0:RUNSE... | 810 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 686 |
12,278 | ///////////////////////////////////////////////////////////////////////////////
// action.hpp
//
// Copyright 2008 <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)
#ifndef BOOST_XPRESSIVE_DETAIL_CORE_ACTI... | 364 |
625 | package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Repeatable {
Class<? extends Annotation> value();
}
| 59 |
746 | package org.protege.editor.owl.model.annotation;
import org.semanticweb.owlapi.model.IRI;
import javax.inject.Inject;
import javax.inject.Provider;
/**
* <NAME>
* Stanford Center for Biomedical Informatics Research
* 27/01/16
*/
public class DefaultUserNameAnnotationPropertyIriProvider implements Provider<IRI> {... | 223 |
798 | <reponame>thomas-watchmaker/picard
package picard.arrays.illumina;
import htsjdk.tribble.annotation.Strand;
import htsjdk.variant.variantcontext.Allele;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.io.File;
import java.io.IOException;
import jav... | 3,518 |
1,441 | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
enum { UNVISITED = -1, VISITED = -2 }; // basic flags
// these variables have to be global to be easily accessible by our recursion (other ways exist)
vector<vii> AL;
vi dfs_nu... | 781 |
1,264 |
from .multiprocessing import Parallel_Reference
from .base import y_count
from ..base import *
from ..linalg import *
class QuadraticDiscriminantAnalysis(BaseEstimator, ClassifierMixin):
def __init__(self, reg_param = 0.001, store_covariance = False,
n_jobs = 1):
assert type(reg_param) in FloatInt
assert ... | 1,134 |
2,793 | #include "ruby.h"
VALUE rb_current_receiver(void);
static VALUE
bug_proc_call_receiver(RB_BLOCK_CALL_FUNC_ARGLIST(yieldarg, procarg))
{
return rb_current_receiver();
}
static VALUE
bug_proc_make_call_receiver(VALUE self, VALUE procarg)
{
return rb_proc_new(bug_proc_call_receiver, procarg);
}
void
Init_recei... | 183 |
14,668 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/crx_file/id_util.h"
#include <stdint.h>
#include "base/files/file_path.h"
#include "base/hash/sha1.h"
#include "base/strings/string... | 1,114 |
1,228 | <filename>nuitka/plugins/standard/EventletPlugin.py
# Copyright 2021, <NAME>, mailto:<<EMAIL>>
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | 710 |
631 | <reponame>bluebird88/HIS
package com.neu.his.cloud.zuul.controller.bms;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.neu.his.cloud.zuul.common.CommonPage;
import com.neu.his.cloud.zuul.common.CommonResult;
import com.neu.his.cloud.zuul.distribution.api.pc.bms.ApiPcBmsFeeDistributi... | 2,051 |
1,144 | <gh_stars>1000+
package de.metas.invoicecandidate.facet.impl;
/*
* #%L
* de.metas.swat.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, eit... | 1,333 |
372 | /*
* 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 distributed under t... | 1,533 |
1,755 | <gh_stars>1000+
#ifndef F77_SINGLE_UNDERSCORE
#define F77_SINGLE_UNDERSCORE
#endif
#ifndef F77_NO_CAPS
#define F77_NO_CAPS
#endif
| 68 |
1,179 | //
// TestAppDelegate.h
// TestApplication
//
// Created by <NAME> on 2013-08-08.
// Copyright (c) 2013 GitHub. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface TestAppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *window;
@end
| 102 |
1,127 | <reponame>kurylo/openvino<gh_stars>1000+
// Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "common_test_utils/common_utils.hpp"
#include "snippets/three_inputs_eltwise.hpp"
#include "subgraph_simple.hpp"
namespace ov {
namespace test {
namespace snippets {
std::string Thr... | 987 |
5,616 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 2,166 |
537 | package io.mockk.it;
class PackagePrivateCls {
}
| 20 |
10,225 | package io.quarkus.it.validator;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.Valid;
im... | 455 |
348 | <filename>docs/data/leg-t2/008/00803103.json
{"nom":"Charbogne","circ":"3ème circonscription","dpt":"Ardennes","inscrits":164,"abs":83,"votants":81,"blancs":1,"nuls":3,"exp":77,"res":[{"nuance":"LR","nom":"<NAME>","voix":59},{"nuance":"FN","nom":"<NAME>","voix":18}]} | 110 |
412 | <filename>regression/cbmc-library/memcpy-04/main.c
#include <stdlib.h>
#include <string.h>
typedef struct
{
size_t len;
char *name;
} info_t;
void publish(info_t *info)
{
size_t size;
__CPROVER_assume(size >= info->len);
unsigned char *buffer = malloc(size);
memcpy(buffer, info->name, info->len);
if(inf... | 269 |
6,989 | <filename>contrib/python/filelock/py2/filelock/_windows.py
import os
from errno import ENOENT
from ._api import BaseFileLock
from ._util import raise_on_exist_ro_file
try:
import msvcrt
except ImportError:
msvcrt = None
class WindowsFileLock(BaseFileLock):
"""Uses the :func:`msvcrt.locking` function to ... | 711 |
2,023 | <reponame>tdiprima/code
def all_members(aClass):
members = {}
bases = list(aClass.__bases__)
bases.reverse()
for base in bases:
members.update(all_members(base))
members.update(vars(aClass))
return members
class Eggs:
eggs = 'eggs'
spam = None
class Spam:
spam = 'spam'
cla... | 294 |
593 | """Views for django-annoying's tests"""
from __future__ import absolute_import
import datetime
from django.http import HttpResponse
from annoying.decorators import ajax_request, render_to
@ajax_request
def ajax_request_view(request):
return {
'bool': True,
'int': 1,
'list': [2, 3, 4],
... | 341 |
4,054 | <reponame>Anlon-Burke/vespa
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.semantics.test;
import org.junit.Test;
public class ExpansionTestCase extends RuleBaseAbstractTestCase {
public ExpansionTestCase() {
super("expan... | 378 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-gvvg-f28q-44wc/GHSA-gvvg-f28q-44wc.json
{
"schema_version": "1.2.0",
"id": "GHSA-gvvg-f28q-44wc",
"modified": "2022-05-01T01:50:14Z",
"published": "2022-05-01T01:50:14Z",
"aliases": [
"CVE-2005-0545"
],
"details": "Microsoft Windows XP Pro SP2 and Windows 2... | 509 |
356 | package com.indeed.proctor.pipet.core.var;
/**
* Thrown when a converter has some error during conversion that is unrecoverable.
*/
public class ValueConversionException extends Exception {
public ValueConversionException(final String message) {
super(message);
}
public ValueConversionException(... | 126 |
1,443 | <filename>users/albertofdzm.json<gh_stars>1000+
{
"copyright": "<NAME>, http://onlythepixel.com",
"url": "http://onlythepixel.com",
"email": "<EMAIL>",
"gravatar": true,
"theme": "black-beauty"
}
| 85 |
16,989 | // Copyright 2020 The Bazel 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 appl... | 1,386 |
311 | package datadog.trace.bootstrap.instrumentation.api;
import datadog.trace.context.TraceScope;
/**
* Allows custom scope managers. See OTScopeManager, CustomScopeManager, and ContextualScopeManager
*/
public interface AgentScopeManager {
AgentScope activate(AgentSpan span, ScopeSource source);
AgentScope activ... | 139 |
1,140 | from matplotlib import pyplot as plt
from matplotlib import rcParams
rcParams['axes.linewidth'] = 1
plt.plot([1,2,3])
plt.yticks([])
plt.savefig("pixels_snapped.png", dpi=72)
plt.clf()
rcParams['path.snap'] = False
plt.plot([1,2,3])
plt.yticks([])
plt.savefig("pixels_unsnapped.png", dpi=72)
plt.clf()
rcParams['pa... | 344 |
21,684 | <filename>src/rdb_protocol/terms/pred.cc
// Copyright 2010-2015 RethinkDB, all rights reserved.
#include "rdb_protocol/terms/terms.hpp"
#include "rdb_protocol/op.hpp"
namespace ql {
// Anonymous namespace to avoid linker conflicts with datum_lt / datum_gt from shards.cc
namespace {
bool datum_eq(const datum_t &lhs, ... | 1,601 |
466 | import torch
from torch import nn
from torch.nn.utils import clip_grad_norm_
import torch.distributed as dist
import logging
from openchem.utils.utils import check_params
import time
from tqdm import tqdm
from openchem.utils import comm
from torch.utils.tensorboard import SummaryWriter
from openchem.utils.utils impo... | 6,535 |
319 | <gh_stars>100-1000
/**
* 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 sourc... | 3,756 |
23,901 | <filename>fair_submodular_maximization_2020/fair_algorithm.cc
// Copyright 2020 The 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/LICEN... | 997 |
1,338 | /*
* Copyright 2006-2010, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "MimeTypeListView.h"
#include "TypeListWindow.h"
#include <Button.h>
#include <Catalog.h>
#include <ControlLook.h>
#include <LayoutBuilder.h>
#include <Locale.h>
#include <ScrollView.h>
#include <string.h>
... | 962 |
5,169 | <reponame>Gantios/Specs<filename>Specs/7/5/d/Hyperconnectivity/1.1.0/Hyperconnectivity.podspec.json
{
"name": "Hyperconnectivity",
"version": "1.1.0",
"swift_versions": "5.0",
"summary": "Modern replacement for Apple's Reachability written in Swift and made elegant using Combine",
"description": "Hyperconnect... | 344 |
1,056 | <filename>ide/db.metadata.model/src/org/netbeans/modules/db/metadata/model/api/MetadataModel.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. T... | 922 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.