max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
544 | <gh_stars>100-1000
from office365.sharepoint.client_context import ClientContext
from office365.sharepoint.tenant.administration.site_properties import SiteProperties
from office365.sharepoint.tenant.administration.tenant import Tenant
from tests import test_admin_site_url, test_user_credentials
admin_client = ClientC... | 179 |
504 | <reponame>steakknife/pcgeos
/***********************************************************************
*
* Copyright (c) Berkeley Softworks 1989 -- All Rights Reserved
*
* PROJECT: PCGEOS
* MODULE: Esp -- Symbol Handling Functions
* FILE: symbol.h
*
* AUTHOR: <NAME>: Aug 23, 1989
*
* REVISIO... | 7,560 |
1,742 | <reponame>UCD4IDS/sage<gh_stars>1000+
"""
Context Managers for LibGAP
This module implements a context manager for global variables. This is
useful since the behavior of GAP is sometimes controlled by global
variables, which you might want to switch to a different value for a
computation. Here is an example how you ar... | 1,341 |
970 | import pytest
import torch
from ludwig.modules import metric_modules
@pytest.mark.parametrize("preds", [torch.arange(6).reshape(3, 2).float()])
@pytest.mark.parametrize("target", [torch.arange(6, 12).reshape(3, 2).float()])
@pytest.mark.parametrize("output", [torch.tensor(6).float()])
def test_rmse_metric(preds: tor... | 2,798 |
335 | {
"word": "Capacity",
"definitions": [
"the ability to hold or contain people or things",
"the largest amount or number that can be held or contained"
],
"parts-of-speech": "Noun"
}
| 68 |
1,168 | // Verifies that init statements in if and switch index correctly.
struct S {
//- @field defines/binding IntField
int field;
};
S g();
void f() {
//- @z defines/binding LocalVarZ
if (auto z = g();
//- @z ref LocalVarZ
//- @field ref IntField
z.field > 0) {
//- @z ref LocalVarZ
//- ... | 319 |
1,444 |
package mage.abilities.effects.common.combat;
import mage.constants.Duration;
import mage.constants.Layer;
import mage.constants.Outcome;
import mage.constants.SubLayer;
import mage.abilities.Ability;
import mage.abilities.effects.ContinuousEffectImpl;
import mage.filter.FilterPermanent;
import mage.game.Game;
import... | 845 |
610 | <filename>.changes/1.4.json
{
"date" : "2019-06-10",
"version" : "1.4",
"entries" : [ {
"type" : "feature",
"description" : "Usability enhancements to the CloudFormation UI \n - color coding status similar to the AWS Console\n - preventing multiple tabs opening for the same stack (#798)\n - opening from A... | 401 |
575 | <gh_stars>100-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 "third_party/blink/renderer/core/frame/history_util.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#inclu... | 639 |
1,143 | // =================================================================================================
// Copyright 2011 Twitter, Inc.
// -------------------------------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use ... | 5,086 |
414 | <reponame>wisdark/C3<filename>Src/Common/FSecure/C3/Interfaces/Channels/GoogleDrive.cpp
#include "Stdafx.h"
#include "GoogleDrive.h"
#include "Common/FSecure/Crypto/Base64.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////... | 1,508 |
4,753 | <reponame>jonasmalacofilho/haxe
package haxe.test;
public class lowerCaseClass
{
public boolean works;
public lowerCaseClass()
{
this.works = true;
}
}
| 62 |
23,901 | <reponame>DionysisChristopoulos/google-research<filename>homophonous_logography/neural/utils.py
# coding=utf-8
# Copyright 2021 The Google Research 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 t... | 465 |
1,695 | #include <gtest/gtest.h>
#include <nnpack.h>
#include <testers/softmax.h>
/*
* Test that implementation works for a small number of channels
*/
TEST(OUT_OF_PLACE, few_channels) {
auto tester = SoftmaxTester();
for (size_t channels = 1; channels <= 96; channels += 1) {
tester.channels(1000)
.testOutput();
... | 531 |
2,705 | // Copyright 2016 Uber Technologies, 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 a... | 496 |
1,062 | <gh_stars>1000+
/**
* 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.org/licenses/LICENSE-2.0
*
... | 458 |
743 | <filename>hermes-consumers/src/main/java/pl/allegro/tech/hermes/consumers/consumer/rate/maxrate/FlatBinaryMaxRateRegistry.java
package pl.allegro.tech.hermes.consumers.consumer.rate.maxrate;
import com.google.common.base.Preconditions;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.fra... | 4,746 |
1,585 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2013 The University of Tennessee a... | 7,293 |
666 | <reponame>mingt/microservices-basics-spring-boot
package com.anilallewar.microservices.task.config;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.anno... | 462 |
3,084 | <gh_stars>1000+
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
Trace.h
Abstract:
WPP tracing definitions.
Environment:
Kernel-mode only.
--*/
//
// Tracing GUID - {EAD1EE75-4BFE-4E28-8AFA-E94B0A1BAF37}
//
#pragma once
#define WPP_CONTROL_GUIDS ... | 957 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <string>
std::string custom_relu_model();
void register_custom_relu_operator();
void unregister_custom_relu_operator();
| 78 |
3,702 | package app.metatron.discovery.domain.workbook.configurations.format;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class GeoPointFormat extends GeoFormat implements FieldFormat {
public GeoPointFormat() {
}
@JsonCreator
public GeoPointForm... | 173 |
12,278 | {
"key": "lambda",
"name": "Lambda",
"authors": [
"<NAME>",
"<NAME>"
],
"description": "Define small unnamed function objects at the actual call site, and more.",
"category": [
"Function-objects"
],
"maintainers": [
"<NAME> <jarvi -at- cs.tamu.edu>"
]
... | 151 |
1,429 | # -*- coding: utf-8 -*-
#
# environment.py
#
# Copyright (C) 2013 <NAME> <EMAIL>
#
# This module is part of python-pptx and is released under the MIT License:
# http://www.opensource.org/licenses/mit-license.php
"""
Used by behave to set testing environment before and after running acceptance
tests.
"""
import os
sc... | 191 |
2,434 | <gh_stars>1000+
/*
*
* Copyright 2017 <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 appli... | 785 |
536 | ../../../SDAutoLayout/SDAutoLayoutDemo/SDAutoLayout/UIView+SDAutoLayout.h | 30 |
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
* ... | 3,083 |
3,402 | /*
* 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 ... | 437 |
381 | <filename>jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/util/error/JsonProcessingExceptionMapper.java
package org.jboss.aerogear.unifiedpush.rest.util.error;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ws.rs.core.Response;
... | 326 |
5,169 | {
"name": "JUtilities",
"version": "1.1",
"summary": "iOS Utilities",
"description": "iOS Utilities for Develepment.",
"homepage": "https://github.com/wishWinds/JUtilities.git",
"license": "MIT",
"authors": {
"shupeng": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
"source": {
"git": "ht... | 574 |
443 | from .switch import Switch
class LightSwitch(Switch):
def __repr__(self):
return '<WeMo LightSwitch "{name}">'.format(name=self.name)
| 54 |
36,552 | <gh_stars>1000+
# Copyright 2019 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 1,411 |
398 | <filename>Relabel Button.sketchplugin/Contents/Sketch/manifest.json
{
"name" : "Button",
"description" : "Relabel and automatically resize a button (or similar grouped set of layers)",
"author" : "<NAME>",
"authorEmail" : "<EMAIL>",
"version" : "1.10",
"identifier" : "com.kenmoore.sketch.relabel... | 391 |
879 | <reponame>LEONAD486/zstack
package org.zstack.core.log;
import org.zstack.core.cloudbus.CloudBusGlobalConfig;
import org.zstack.core.cloudbus.CloudBusGlobalProperty;
/**
* Created by ZStack on 2020/9/28.
*/
public class LogUtils {
public boolean isLogReadAPI() {
long openReadAPILog = CloudBusGlobalConfi... | 226 |
309 | #ifndef PERMISSIONDIALOG_H
#define PERMISSIONDIALOG_H
#include <QSettings>
#include <QWebEnginePage>
#include <QWidget>
namespace Ui {
class PermissionDialog;
}
class PermissionDialog : public QWidget
{
Q_OBJECT
public:
explicit PermissionDialog(QWidget *parent = nullptr);
~PermissionDialog();
signals:... | 204 |
12,718 | #include "pthread_impl.h"
int pthread_attr_setdetachstate(pthread_attr_t *a, int state)
{
if (state > 1U) return EINVAL;
a->_a_detach = state;
return 0;
}
| 71 |
1,968 | <reponame>agramonte/corona<gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
... | 1,657 |
510 | from ._excel import ExcelXlsTableWriter, ExcelXlsxTableWriter
from ._pandas import PandasDataFramePickleWriter
from ._sqlite import SqliteTableWriter
| 43 |
375 | /*
* This file is part of the Wayback archival access software
* (http://archive-access.sourceforge.net/projects/wayback/).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); y... | 689 |
648 | <gh_stars>100-1000
{"resourceType":"DataElement","id":"DeviceUseRequest.indication","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/DeviceUseRequest.indication","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"DeviceUseRequest.indicati... | 167 |
5,460 | <reponame>gtourkas/moto<gh_stars>1000+
from moto.core import ACCOUNT_ID
from moto.core.utils import pascal_to_camelcase, camelcase_to_underscores
def make_arn_for_wacl(name, region_name, id, scope):
"""https://docs.aws.amazon.com/waf/latest/developerguide/how-aws-waf-works.html - explains --scope (cloudfront vs r... | 319 |
2,038 | // 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | 3,303 |
4,036 |
#Written in Java or C style
def gcd(a, b):
while(a != 0 and b != 0):
if(a > b):
a = a % b
else:
b = b % a
if(a == 0):
return (b)
return (a)
#Written in a more Pythonic style
def gcd(a, b):
while a != 0 and b != 0:
if a > b:
a = a % b
... | 234 |
12,718 | <filename>lib/libcxx/include/__functional/bind_front.h
// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifi... | 854 |
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... | 1,568 |
1,744 | <reponame>civitaspo/embulk
package org.embulk.spi.util;
import com.google.common.collect.ImmutableList;
import java.util.Iterator;
import java.util.List;
import org.embulk.spi.Column;
import org.embulk.spi.ColumnVisitor;
import org.embulk.spi.Page;
import org.embulk.spi.PageReader;
import org.embulk.spi.Schema;
/**
... | 2,251 |
1,253 | <gh_stars>1000+
print("Enter the number of process: ")
n = int(input())
Allocation = []
Max = []
Need = []
# take inputs of Allocation
print('Allocation Matrix')
for i in range(n):
theinputs = []
for j in range(3):
x = int(input())
theinputs.append(x)
Allocation.append(theinputs)
# take i... | 952 |
977 | #pragma once
#include "Post/PostFilter.hpp"
namespace acid {
class ACID_EXPORT DefaultFilter : public PostFilter {
public:
explicit DefaultFilter(const Pipeline::Stage &pipelineStage, bool lastFilter = false);
void Render(const CommandBuffer &commandBuffer) override;
private:
bool lastFilter;
};
}
| 93 |
1,013 | <reponame>JosephChataignon/pyclustering
/*!
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
*/
#include <gtest/gtest.h>
#include <pyclustering/cluster/optics.hpp>
#include <pyclustering/cluster/ordering_analyser.hpp>
#include <pyclustering/utils/metric.hpp>
#include "samples.hpp"
#include "uten... | 6,244 |
1,091 | /*
* Copyright 2020-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 799 |
3,083 | /*
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.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 2,980 |
1,875 | <filename>tools/idea/plugin/src/main/java/org/teavm/idea/ui/TeaVMFacetEditorTab.java
/*
* Copyright 2016 <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://ww... | 619 |
2,206 | <reponame>YunLemon/speedment
/*
*
* Copyright (c) 2006-2020, Speedment, 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/L... | 943 |
324 | <filename>apis/s3/src/main/java/org/jclouds/s3/xml/ListMultipartUploadsHandler.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 licenses... | 1,808 |
2,441 | """Tests for distutils.command.bdist."""
import os
import unittest
from test.support import run_unittest
import warnings
from distutils.command.bdist import bdist
from distutils.tests import support
class BuildTestCase(support.TempdirManager,
unittest.TestCase):
def test_formats(self):
... | 875 |
1,006 | <filename>boards/arm/sama5/giant-board/include/board_492mhz.h
/****************************************************************************
* boards/arm/sama5/giant-board/include/board_492mhz.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE f... | 2,942 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stda... | 954 |
1,127 | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.front.common.partial_infer.utils import int64_array
from openvino.tools.mo.ops.strided_slice import StridedSlice
from openvino.tools.mo.utils.graph import Node
from openvino.tools.mo.utils.ir_reader.extender import... | 489 |
648 | <filename>spec/hl7.fhir.core/3.0.1/package/DataElement-ImplementationGuide.page.kind.json
{"resourceType":"DataElement","id":"ImplementationGuide.page.kind","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/ImplementationGuide.page.kind","status":"draft","experimental":true,"... | 292 |
890 | /*
*
* Copyright 2018 Asylo 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 agree... | 717 |
709 | <filename>doc/examples/finalizable/cons.c
#include <stdio.h>
typedef unsigned int uint;
typedef struct Cons {
struct Cons *next;
int value;
} *Cons;
Cons listCons (int n, Cons c) {
Cons res;
res = (Cons) malloc (sizeof(*res));
fprintf (stderr, "0x%08x = listCons (%d)\n", (uin... | 477 |
536 | <filename>graph.c
#define _POSIX_C_SOURCE 200809L
#include <ctype.h>
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "env.h"
#include "graph.h"
#include "htab.h"
#include "util.h"
static struct hashtable *allnodes;
struct edge *alledges;
static void
delno... | 2,135 |
675 | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commerc... | 1,516 |
407 | <reponame>iuskye/SREWorks
package com.alibaba.tesla.appmanager.server.repository;
import com.alibaba.tesla.appmanager.server.repository.condition.ProductQueryCondition;
import com.alibaba.tesla.appmanager.server.repository.domain.ProductDO;
import java.util.List;
public interface ProductRepository {
long countBy... | 190 |
310 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 2,354 |
6,390 | """
Duplicates filter middleware for autoscraping
"""
from scrapy.exceptions import NotConfigured
from scrapy.exceptions import DropItem
from slybot.item import create_item_version
class DupeFilterPipeline(object):
def __init__(self, settings):
if not settings.getbool('SLYDUPEFILTER_ENABLED'):
... | 481 |
6,036 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/common/common.h"
#include "core/graph/graph_viewer.h"
#include <unordered_set>
#include <vector>
namespace onnxruntime {
namespace nuphar {
// A generic Partition data struct for Partitioner
... | 1,138 |
679 | <filename>main/sd/source/ui/slidesorter/cache/SlsCacheConfiguration.cxx
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informati... | 2,431 |
852 | #ifndef RecoLocalCalo_EcalRecProducers_plugins_EigenMatrixTypes_gpu_h
#define RecoLocalCalo_EcalRecProducers_plugins_EigenMatrixTypes_gpu_h
#include <array>
#include <Eigen/Dense>
#include "CUDADataFormats/EcalRecHitSoA/interface/RecoTypes.h"
namespace ecal {
namespace multifit {
constexpr int SampleVectorSi... | 767 |
1,168 | <filename>kythe/cxx/verifier/assertions_to_souffle.h
/*
* Copyright 2021 The Kythe 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... | 428 |
839 | /**
* 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 m... | 2,366 |
416 | <filename>include/visionaray/texture/detail/storage_types/bricked_accessor.h
// This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#ifndef VSNRAY_TEXTURE_DETAIL_STORAGE_TYPES_BRICKED_ACCESSOR_H
#define VSNRAY_TEXTURE_DETAIL_STORAGE_TYPES_BRICKED_ACCESSOR_H 1
#include <a... | 1,826 |
1,746 | <filename>code/src/main/java/com/shekhargulati/java8_tutorial/domain/TaskType.java
package com.shekhargulati.java8_tutorial.domain;
public enum TaskType {
READING, CODING, BLOGGING
}
| 72 |
563 | <reponame>wobbier/Sharpmake
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main( int argc, char ** argv )
{
if ( argc != 3 )
{
printf( "Bad Args!\n" );
return 1;
}
const char * fileToStamp = argv[ 1 ];
const char * stampMessage = argv[ 2 ];
FILE * f... | 264 |
360 | <reponame>Yanci0/openGauss-server
/* -------------------------------------------------------------------------
* Copyright (c) 2021 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a co... | 519 |
831 | <reponame>phpc0de/idea-android<gh_stars>100-1000
/*
* Copyright (C) 2016 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/... | 8,836 |
852 | <reponame>ckamtsikis/cmssw
#include "CondFormats/Calibration/interface/big.h"
#include <iostream>
//fill big
void big::fill(size_t tVectorSize, size_t thVectorSize, size_t sVectorSize, const std::string& atitle) {
for (size_t i = 0; i < tVectorSize; ++i) {
big::bigEntry b;
b.fill(i, 1.0);
tVector_.push_ba... | 1,849 |
880 | <reponame>GitHubRepoDescription/OLINUXINO-forked<filename>SOFTWARE/iMX233/I2C/MOD-IO2/i2c-tool.c
/*
This software uses a BSD license.
Copyright (c) 2010, <NAME> / chumby industries
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | 5,792 |
374 | #include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "avr_print.h"
#include <stdio.h>
#include "iparpetc.h"
#include "enc424j600.h"
#include "http.h"
#include <basicfat.h>
#include <util10.h>
#include <avr/pgmspace.h>
#include <string.h>
#include <ntsc.h>
#include <video.h>
#include <tcp.h>
... | 2,706 |
317 | //
// NSNumber+Nib2ObjcExtensions.h
// nib2objc
//
// Created by Adrian on 3/14/09.
// <NAME> 2009
//
#import <Cocoa/Cocoa.h>
@interface NSNumber (Nib2ObjcExtensions)
- (NSString *)booleanString;
- (NSString *)intString;
- (NSString *)floatString;
- (NSString *)autoresizingMaskString;
- (NSString *)contentModeS... | 563 |
482 | package io.cattle.platform.async.retry;
import io.cattle.platform.util.concurrent.DelayedObject;
import java.util.concurrent.Future;
public class Retry {
int retryCount;
int retries;
Long timeoutMillis;
Runnable runnable;
Future<?> future;
boolean keepalive = false;
public Retry(int retr... | 595 |
918 | /*
* 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 ... | 949 |
1,223 | package carpet.mixins;
import carpet.CarpetSettings;
import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.network.ServerPlayerInteractionManager;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Di... | 1,131 |
2,062 | <reponame>TheVinhLuong102/Strawberry
from .base import BaseSchema as BaseSchema
from .schema import Schema as Schema
__all__ = ["BaseSchema", "Schema"]
| 55 |
360 | <gh_stars>100-1000
/* *
Copyright (c) 2021 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS ... | 6,449 |
1,066 | package org.gradle.profiler.client.protocol;
public class SyncStarted extends Message {
private final int id;
public SyncStarted(int id) {
this.id = id;
}
@Override
public String toString() {
return "sync started " + id;
}
public int getId() {
return id;
}
}
| 131 |
1,405 | package com.lenovo.safecenter.utils.updateLab;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.lenovo.safecenter.utils.Const;
import com.lenovo.safecenter.utils.LeSafeObservable;
import com.lenovo.safecenter.utils.WflUtils;
import com.lenovo.safecenter.utils.httpApi.L... | 3,560 |
523 | <gh_stars>100-1000
#pragma once
namespace BWAPI
{
/** Used for converting between TilePosition coordinates and Position coordinates. */
#define TILE_SIZE 32
#define PYLON_X_RADIUS 8
#define PYLON_Y_RADIUS 5
}
| 85 |
305 | //===--- ExceptionAnalyzer.cpp - clang-tidy -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 3,197 |
1,585 | <reponame>j-xiong/ompi
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2017 The Un... | 30,121 |
903 | <filename>exts/jphp-sql-ext/src/main/java/org/develnext/jphp/ext/sql/classes/WrapSqlException.java
package org.develnext.jphp.ext.sql.classes;
import org.develnext.jphp.ext.sql.SqlExtension;
import php.runtime.annotation.Reflection;
import php.runtime.annotation.Reflection.Name;
import php.runtime.env.Environment;
imp... | 256 |
788 | /*
* 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 ... | 2,361 |
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... | 615 |
379 | <reponame>joelostblom/dash-docs
# -*- coding: utf-8 -*-
import dash_core_components as dcc
import dash_html_components as html
from dash_docs import styles
from dash_docs import tools
from dash_docs import reusable_components as rc
examples = tools.load_examples(__file__)
layout = html.Div(children=[
html.H1('Bu... | 394 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-qhr8-p6mw-gmf5",
"modified": "2022-05-05T02:48:34Z",
"published": "2022-05-05T02:48:34Z",
"aliases": [
"CVE-2013-0209"
],
"details": "lib/MT/Upgrade.pm in mt-upgrade.cgi in Movable Type 4.2x and 4.3x through 4.38 does not require authentication for requests to ... | 572 |
5,847 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# type: ignore
import pathlib
import pkg_resources
from setuptools import find_packages, setup
from build_helpers.build_helpers import (
ANTLRCommand,
BuildPyCommand,
CleanCommand,
Develop,
SDistCommand,
find_version,
)
wi... | 864 |
10,608 | # coding=utf-8
# Copyright 2020 HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 1,136 |
742 | #include <algorithm>
#include <array>
#include <cmath>
#include <tuple>
#include "SDL.h"
#include "ArenaClockUtils.h"
#include "Game.h"
#include "GameState.h"
#include "../Assets/ArenaPaletteName.h"
#include "../Assets/ExeData.h"
#include "../Assets/INFFile.h"
#include "../Assets/MIFFile.h"
#include "../Assets/RMDFil... | 12,782 |
675 | /*
* H.265 video codec.
* Copyright (c) 2013-2014 struktur AG, <NAME> <<EMAIL>>
*
* Authors: <NAME> <<EMAIL>>
*
* This file is part of libde265.
*
* libde265 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 Softwar... | 1,296 |
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 agr... | 3,495 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.