max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
699 | <reponame>justsor/vim<filename>lib/cloudclip.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#======================================================================
#
# cloudclip.py - copy/paste text in the cloud (with gist as backend)
#
# Created by skywind on 2018/01/23
# Last change: 2018/01/23 20:52:10
#
#=======... | 6,327 |
10,504 | import os
class LogConfig:
def __init__(self):
self.log_debug = ""
self.log_err = ""
self.log_info = ""
self.get_default_config()
@staticmethod
def get_env_variable(var="CI_LOG_PATH"):
""" get log path for testing """
try:
log_path = os.environ[... | 560 |
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 may ... | 822 |
1,457 | /*
* Copyright 2016 KairosDB 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 applicab... | 378 |
2,338 | <reponame>rohan17088/Competitive-programming-library<filename>graphs/traversal/BridgesOnline.java
package graphs.traversal;
import java.util.ArrayList;
public class BridgesOnline {
/*
* WARNING: NOT TESTED BEFORE
*
* - A block is a set of connected nodes with no bridges.
* - A Component is a set of connecte... | 1,830 |
382 | /*
* Copyright 2019 Alibaba 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 law or agreed to... | 1,456 |
373 | <filename>Platform/Intel/WhitleyOpenBoardPkg/Library/PlatformOpromPolicyLibNull/PlatformOpromPolicyLibNull.c<gh_stars>100-1000
/** @file
@copyright
Copyright 2015 - 2021 Intel Corporation. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Protocol/PciIo.h>
#include <Li... | 949 |
879 | package org.zstack.sdk;
public class UpdatePriorityConfigResult {
}
| 24 |
480 | <gh_stars>100-1000
/*
* 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
*
* Unl... | 3,064 |
999 | <filename>api/src/main/java/marquez/service/RunTransitionListener.java
package marquez.service;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
import lombok.NonNull;
import lombok.Value;
import marquez.common.models.DatasetVersionId;
import marquez.common.models.JobName;
import mar... | 879 |
502 | <reponame>x-malet/iceberg
/*
* 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.... | 1,089 |
465 | version https://git-lfs.github.com/spec/v1
oid sha256:f58e6c6a4c64a7c0edcd850870490efec6654311bbabad767b776cbc60ea863d
size 123776814
| 65 |
1,816 | from tests import TestCase
from src.masonite.notification import Notification, Notifiable, SlackMessage
from src.masonite.mail import Mailable
from masoniteorm.models import Model
class User(Model, Notifiable):
"""User Model"""
__fillable__ = ["name", "email", "password"]
class WelcomeNotification(Notific... | 2,422 |
743 | <reponame>riag23/AdaptiveCards
{"actions":[{"targetElements":["textToToggle","imageToToggle","imageToToggle2"],"title":"Toggle!","type":"Action.ToggleVisibility"},{"targetElements":["textToToggle","imageToToggle","imageToToggle2"],"title":"Also Toggle!","type":"Action.ToggleVisibility"},{"targetElements":[{"elementId":... | 513 |
382 | <reponame>PartiallyTyped/Hyperactive
from sklearn.model_selection import cross_val_score
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.datasets import load_boston
from hyperactive import Hyperactive
data = load_boston()
X, y = data.data, data.target
def model(opt):
gbr = GradientBoostingReg... | 303 |
852 | #include "RecoMuon/MuonIdentification/interface/MuonCosmicsId.h"
#include "DataFormats/TrackReco/interface/Track.h"
bool directionAlongMomentum(const reco::Track& track) {
// check is done in 2D
return (track.innerPosition().x() - track.vx()) * track.px() + (track.innerPosition().y() - track.vy()) * track.py() >
... | 764 |
595 | <reponame>steamboatid/nginx
/*
* Copyright (C) <NAME>
* Copyright (C) NGINX, Inc.
*/
#include <njs_main.h>
/*
* The red-black tree code is based on the algorithm described in
* the "Introduction to Algorithms" by Cormen, Leiserson and Rivest.
*/
static void njs_rbtree_insert_fixup(njs_rbtree_node_t *node);... | 6,741 |
660 | <gh_stars>100-1000
package quick.pager.shop.dto;
import java.io.Serializable;
import lombok.Data;
@Data
public class PublishCouponDTO implements Serializable {
private static final long serialVersionUID = -4690360296030962986L;
private String phone;
private String description;
}
| 100 |
327 | <reponame>fkorotkov/greyhound<gh_stars>100-1000
package com.wixpress.dst.greyhound.java;
import java.time.Duration;
import java.util.Collections;
import java.util.Map;
public class TopicConfig {
private String name;
private int partitions;
private int replicationFactor;
private CleanupPolicy clean... | 445 |
398 | <gh_stars>100-1000
package com.ruiyun.jvppeteer.protocol.runtime;
import java.util.List;
public class StackTrace {
/**
* String label of this stack trace. For async traces this may be a name of the function that
initiated the async call.
*/
private String description;
/**
* JavaScript... | 479 |
1,144 | <reponame>google-admin/mozc
// Copyright 2010-2021, 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
//... | 5,437 |
543 | /**
* Copyright 2018 Twitter. 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... | 1,273 |
30,023 | """Tests for the sensors provided by the Tailscale integration."""
from homeassistant.components.binary_sensor import (
STATE_OFF,
STATE_ON,
BinarySensorDeviceClass,
)
from homeassistant.components.tailscale.const import DOMAIN
from homeassistant.const import ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, ATTR_ICON... | 1,975 |
6,497 | package com.sohu.cache.web.service;
import com.sohu.cache.entity.AppUser;
import com.sohu.cache.entity.SystemResource;
import com.sohu.cache.web.enums.SuccessEnum;
import java.util.List;
import java.util.Map;
/**
* Created by chenshi on 2020/7/6.
*/
public interface ResourceService {
SuccessEnum saveResource(... | 346 |
575 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_COMPONENTS_MULTIDEVICE_BEACON_SEED_H_
#define CHROMEOS_COMPONENTS_MULTIDEVICE_BEACON_SEED_H_
#include <google/protobuf/repeated_field.h>... | 800 |
647 | <gh_stars>100-1000
/*
* Copyright 2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 676 |
1,194 | <reponame>mbw-ahc/hapi-fhir
package ca.uhn.fhir.mdm.rules.svc;
import ca.uhn.fhir.context.RuntimeSearchParam;
import ca.uhn.fhir.mdm.BaseR4Test;
import ca.uhn.fhir.mdm.api.MdmMatchResultEnum;
import ca.uhn.fhir.mdm.rules.json.MdmFieldMatchJson;
import ca.uhn.fhir.mdm.rules.json.MdmMatcherJson;
import ca.uhn.fhir.mdm.r... | 2,496 |
638 | import json
import os
import shutil
from contextlib import contextmanager
from pathlib import Path
from tempfile import NamedTemporaryFile
from typing import Any, Union, Generator
PathType = Union[str, Path]
def to_path(path: PathType) -> Path:
if isinstance(path, Path):
return path
else:
re... | 357 |
960 | <reponame>zhangtemplar/esp-adf
// Copyright (2018) Baidu Inc. All rights reserved.
/**
* File: lightduer_flash_ring_buf.h
* Auth: <NAME>(<EMAIL>)
* Desc: APIs of store string list to flash.
*/
#ifndef BAIDU_DUER_LIGHTDUER_FLASH_RING_BUF_H
#define BAIDU_DUER_LIGHTDUER_FLASH_RING_BUF_H
#ifdef __cplusplus
extern "C" ... | 513 |
781 | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 151 |
1,875 | /*
* 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.
*/
package io.flutter.run;
import com.intellij.openapi.roots.ModuleRootModificationUtil;
import com.intellij.openapi.vfs.VirtualFile;
import io.flutte... | 1,197 |
1,575 | package com.billy.android.preloader;
import com.billy.android.preloader.interfaces.DataListener;
import com.billy.android.preloader.interfaces.DataLoader;
import com.billy.android.preloader.interfaces.GroupedDataListener;
import com.billy.android.preloader.interfaces.GroupedDataLoader;
import com.billy.android.preloa... | 2,408 |
2,151 | // Copyright 2012 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 746 |
589 | <reponame>ClaudioWaldvogel/inspectIT<gh_stars>100-1000
package rocks.inspectit.ui.rcp.tester;
import org.eclipse.core.expressions.PropertyTester;
import rocks.inspectit.ui.rcp.editor.inputdefinition.InputDefinition;
import rocks.inspectit.ui.rcp.provider.IInputDefinitionProvider;
import rocks.inspectit.ui.rcp.reposit... | 391 |
531 | <reponame>szigetics/di
//
// Copyright (c) 2012-2020 <NAME> (kris at jusiak dot net)
//
// 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)
//
//<-
#include <cassert>
#include <memory>
//->
#include <boost/di.hpp>
name... | 476 |
898 | /**
*Copyright (c) 2020 LZ.All Right Reserved
*Author : LZ
*Date: 2020.4.08
*Email: <EMAIL>
*/
#pragma once
#include "BucketZombies.h"
class BucketFlagZombies :public BucketZombies
{
public:
static BucketFlagZombies* create(Node* node = nullptr);
virtual void createZombie() override;
virtual void cre... | 161 |
13,885 | // Copyright (c) 2020 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 1,114 |
409 | <reponame>abraha2d/PyVirtualDisplay
import logging
import os
import sys
from tempfile import TemporaryDirectory
from time import sleep
from easyprocess import EasyProcess
from pyvirtualdisplay import Display
from tutil import has_xvnc, kill_process_tree, prog_check, worker
log = logging.getLogger(__name__)
python ... | 767 |
318 | #include <tamtypes.h>
#include <kernel.h>
#include <fileio.h>
#include <stdlib.h>
#include <stdio.h>
#include <sysmem.h>
#include "cdvd_iop.h"
#define TRUE 1
#define FALSE 0
#define TH_C 0x02000000
enum PathMatch
{
NOT_MATCH = 0,
MATCH,
SUBDIR
};
//#define DEBUG
// 16 sectors worth of t... | 24,146 |
345 | <gh_stars>100-1000
#!/usr/bin/env python
"""This file is part of the django ERP project.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHOR... | 1,336 |
649 | <filename>serenity-junit/src/main/java/net/thucydides/junit/ThucydidesJUnitSystemProperties.java
package net.thucydides.junit;
public enum ThucydidesJUnitSystemProperties {
CONCURRENT_THREADS("thucydides.concurrent.threads");
private final String name;
ThucydidesJUnitSystemProperties(String name) {
... | 163 |
1,444 | package mage.cards.n;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.LeavesBattlefieldAllTriggeredAbility;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
impo... | 563 |
669 | # 'reference_object', 'comparison'
# 'reference_object', 'destroy'
# 'reference_object', fill
# 'reference_object', 'OtherAction'
# 'reference_object', 'copy'
# TODO: check if location can be integrated here ?
# TODO: check if filters can be integrated here
LOCATION_RADIO = [
{"text": "Not specified", "key": None,... | 19,158 |
455 | <reponame>mattt21/zcoin
/* Added for Tor. */
#ifndef CRYPTO_INT64_H
#define CRYPTO_INT64_H
#include "lib/cc/torint.h"
#define crypto_int64 int64_t
#define crypto_uint64 uint64_t
/*
Stop signed left shifts overflowing
by using unsigned types for bitwise operations
*/
#ifndef OVERFLOW_SAFE_SIGNED_LSHIFT
#define OV... | 230 |
386 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2013, Image Engine Design 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:
//
// * Re... | 1,100 |
9,491 | {
"pattern_type": "descendant_pattern",
"pattern": {
"pattern_type": "node_pattern",
"kind": "if_statement",
"children": {
"if_else_clause": {
"pattern_type": "missing_node_pattern"
}
}
}
}
| 107 |
349 |
import numpy as np
import scipy.misc
def save(img,path):
print(path)
scipy.misc.toimage(np.rot90(img), cmin=0.0, cmax=...).save(path)
| 67 |
347 | <filename>backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/gluster/GlusterVolumeBricksActionVDSParameters.java
package org.ovirt.engine.core.common.vdscommands.gluster;
import java.util.List;
import org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity;
import o... | 549 |
497 | #define N 123
struct test {
#define LENGTH N
int field;
#define SIZE N
int ary[SIZE];
};
// bug #73
enum TestEnum {
VALUE_1 = 1,
#define TEST_ENUM_VALUE_1 VALUE_1
};
| 76 |
3,102 | // RUN: %clang -O1 -fexperimental-new-pass-manager -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
// RUN: %clang -O1 -fno-experimental-new-pass-manager -fno-unroll-loops -S -o - %s -emit-llvm | FileCheck %s
extern int a[16];
int b = 0;
int foo(void) {
#pragma unroll
for (int i = 0; i < 16; ++i)
a[i] = b +... | 170 |
11,356 |
// Copyright (C) 2009-2012 <NAME>
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE_1_0.txt or a copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Home at http://www.boost.org/libs/local_function
#include <boost/local_function.hpp>
#include <boost/utility/identity_type.h... | 536 |
3,384 | <reponame>Reflejo/XVim
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.
*/
#pragma GCC system_header
#import "DVTKit.h"
@class IDEActivityLogSection;
@class IDETypeIdentifier;
@class IDEIndexDatabase;
@class IDEActivityLogSectionRecor... | 139,451 |
5,166 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// snippet-start:[sns.java.publish_large_file]
import com.amazon.sqs.javamessaging.AmazonSQSExtendedClient;
import com.amazon.sqs.javamessaging.ExtendedClientConfiguration;
import com.amazonaws.regions.Region;... | 1,603 |
374 | // 8859-5, to Unicode table
// Derived from the tables available at unicode.org
static uint16_t iso8859_5[] = {
0x00, 0x0000, // NULL
0x01, 0x0001, // START OF HEADING
0x02, 0x0002, // START OF TEXT
0x03, 0x0003, // END OF TEXT
0x04, 0x0004, // END OF TRANSMISSION
0x05, 0x0005, // ENQUIRY
0... | 5,929 |
333 | <reponame>bullheadandplato/ReactFX<gh_stars>100-1000
package org.reactfx;
import java.util.Deque;
import java.util.NoSuchElementException;
import java.util.function.BiFunction;
import java.util.function.BinaryOperator;
import java.util.function.Consumer;
import java.util.function.Function;
import javafx.beans.value.O... | 1,871 |
2,338 | //===--- RedundantFunctionPtrDereferenceCheck.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
//
//===---------------------------... | 507 |
3,151 | package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import com.rarchives.ripme.ripper.VideoRipper;
import com.rarchives.ripme.ripper.rippers.video.PornhubRipper;
import com.rarchives.ripme.ripper.rippers.video.YuvutuRipper... | 1,130 |
2,944 | /*
* Copyright (C) 2015 Mobs & Geeks
*
* 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 ... | 443 |
6,098 | <filename>h2o-algos/src/main/java/hex/gam/MatrixFrameUtils/GamUtils.java<gh_stars>1000+
package hex.gam.MatrixFrameUtils;
import hex.Model;
import hex.gam.GAMModel.GAMParameters;
import hex.glm.GLMModel.GLMParameters;
import hex.quantile.Quantile;
import hex.quantile.QuantileModel;
import water.DKV;
import water.Key;
... | 6,181 |
360 | /*
* Copyright (c) 2020 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 ... | 691 |
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... | 2,104 |
7,409 | <reponame>avoajaugochukwu/posthog<gh_stars>1000+
# Generated by Django 3.0.7 on 2020-09-21 14:00
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("posthog", "0083_auto_20200826_1504"),
]
operations = [
migrations.AddField(
... | 195 |
736 | /**
* Copyright (C) 2015 Topology LP
* All rights reserved.
*
* 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 us... | 1,152 |
613 | package nl.jqno.equalsverifier.internal.reflection;
import static org.junit.jupiter.api.Assertions.*;
import java.lang.reflect.Field;
import nl.jqno.equalsverifier.testhelpers.types.TypeHelper.*;
import org.junit.jupiter.api.Test;
public class FieldAccessorTest {
private static final String FIELD_NAME = "field"... | 1,891 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._1707;
import java.util.Set;
import java.util.stream.Stream;
import org.mapstruct.AfterMapping;
import org.mapstruct.Mapper;
import org... | 836 |
2,151 | <gh_stars>1000+
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/host_experiment_session_plugin.h"
#include <memory>
#include "base/bind.h"
#include "remoting/base/constants.h"
... | 750 |
669 | <filename>onnxruntime/core/providers/nuphar/runtime/control_flow/scan_exec_ctx.cc
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/nuphar/runtime/control_flow/scan_exec_ctx.h"
#include "core/codegen/common/common.h"
#include "core/codegen/passes/... | 11,514 |
324 | <gh_stars>100-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 "... | 1,847 |
56,632 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018 Intel Corporation
#ifndef OPENCV_GAPI_UTIL_OPTIONAL_HPP
#define OPENCV_GAPI_UTIL_OPTIONAL_HPP
#inc... | 1,952 |
416 | package org.simpleflatmapper.util.test;
import org.junit.Test;
import org.simpleflatmapper.util.ImmutableListCollector;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
public class ImmutableListCollectorTest {
@Test
public void testList() {
... | 251 |
14,668 | <gh_stars>1000+
/* Copyright 2020 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 app... | 3,870 |
3,227 | #include <iostream>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Triangulation_2.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Triangulation_2<K> Triangulation;
typedef Triangulation::Vertex_handle Vertex_handle;
typedef Triangulation::... | 1,051 |
389 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.lang.reflect.java.asm;
import gw.internal.ext.org.objectweb.asm.Type;
import gw.lang.reflect.java.Parameter;
import java.lang.annotation.Annotation;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Co... | 3,560 |
3,269 | // Time: O(1)
// Space: O(1)
class Vector2D {
public:
Vector2D(vector<vector<int>>& vec2d) : vec(vec2d) {
x = vec.begin();
if (x != vec.end()) {
y = x->begin();
adjustNextIter();
}
}
int next() {
const auto ret = *y;
++y;
adjustNextI... | 401 |
507 | <filename>tests/test_provider_davidji99_ultradns.py
# tests/test_provider_davidji99_ultradns.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:29:41 UTC)
def test_provider_import():
import terrascript.provider.davidji99.ultradns
def test_resource_import():
from terrascript.resource.davidji99... | 421 |
1,144 | /*
* Bitmain Antminer S1 board support
*
* Copyright (C) 2015 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include <linux/gpio.h>
#include <as... | 1,227 |
776 | package testapp.endpoint.binding.single;
public class FloatActionParameterBindingTest extends PrimitiveTypeActionParameterBindingTestBase<Float> {
@Override
protected String primitiveUrlPath() {
return "float_p";
}
@Override
protected String urlPath() {
return "float_w";
}
... | 221 |
332 | // Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.docs;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.GroupActor;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.obje... | 1,165 |
3,428 | {"id":"01151","group":"easy-ham-1","checksum":{"type":"MD5","value":"a454cc33dce527bedd70cf42cff5f079"},"text":"From <EMAIL> Wed Oct 2 15:59:24 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 41... | 1,662 |
356 | package com.indeed.proctor.common;
import com.indeed.proctor.common.model.Allocation;
import com.indeed.proctor.common.model.Audit;
import com.indeed.proctor.common.model.ConsumableTestDefinition;
import com.indeed.proctor.common.model.TestBucket;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
imp... | 2,159 |
527 | /* Alloy Analyzer 4 -- Copyright (c) 2006-2009, <NAME>
*
* 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,
*... | 2,212 |
390 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
# BACE from MoleculeNet for the prediction of quantitative (IC50) and
# qualitative (binary label) binding results for a set of inhibitors of
# human beta-secretase 1... | 2,694 |
589 | <reponame>ClaudioWaldvogel/inspectIT<filename>inspectit.shared.all/src/main/java/rocks/inspectit/shared/all/instrumentation/config/impl/AbstractSensorTypeConfig.java<gh_stars>100-1000
package rocks.inspectit.shared.all.instrumentation.config.impl;
import java.util.HashMap;
import java.util.Map;
/**
* Abstract sensor... | 675 |
4,013 | <reponame>niradler/checkov<gh_stars>1000+
from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.kubernetes.base_spec_check import BaseK8Check
class KubeletAnonymousAuth(BaseK8Check):
def __init__(self):
# CIS-1.6 4.2.1
id = "CKV_K8S_138"
name = "Ensure that the ... | 440 |
488 | <filename>src/util/Sawyer/StackAllocator.h
// WARNING: Changes to this file must be contributed back to Sawyer or else they will
// be clobbered by the next update from Sawyer. The Sawyer repository is at
// https://github.com/matzke1/sawyer.
#ifndef SAWYER_STACK_ALLOCATOR
#define SAWYER_STACK_AL... | 1,516 |
763 | <reponame>zabrewer/batfish
package org.batfish.specifier;
import java.util.Set;
import org.batfish.datamodel.IpAccessList;
/**
* An abstract specification of a set of filters in the network.
*
* <p>TODO: Only IPv4 filters are supported at the moment; extend to IPv6 filters.
*/
public interface FilterSpecifier {
... | 223 |
1,223 | <reponame>Oliver-makes-code/fabric-carpet<gh_stars>1000+
package carpet.fakes;
public interface ExperienceOrbInterface
{
int getCombineDelay();
void setCombineDelay(int what);
void setAmount(int what);
int getCount();
void setCount(int i);
}
| 100 |
2,608 | <gh_stars>1000+
package com.looklook.xinghongfei.looklook.presenter;
/**
* Created by xinghongfei on 16/8/17.
*/
public interface INewTopDescriblePresenter extends BasePresenter {
void getDescribleMessage(String id);
}
| 80 |
2,151 | <gh_stars>1000+
// Copyright (c) 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 "net/third_party/quic/core/chlo_extractor.h"
#include "net/third_party/quic/core/crypto/crypto_framer.h"
#include "net/third... | 2,820 |
2,023 | <reponame>tdiprima/code
import string,sys,os
import csv #http://www.object-craft.com.au/projects/csv/
import getopt
# file props.py
from props import *
#rem download from http://object-craft.com.au/projects/csv
class csv2xml:
"""Given
an input parameter of a property file and a CSV file,
an output file... | 4,617 |
2,151 | // 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 THIRD_PARTY_BLINK_RENDERER_MODULES_SERVICEWORKERS_SERVICE_WORKER_WINDOW_CLIENT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_SERVICEWORKERS_SERVIC... | 598 |
3,765 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.typeresolution.testdata;
import net.sourceforge.pmd.typeresolution.testdata.dummytypes.Converter;
import net.sourceforge.pmd.typeresolution.testdata.dummytypes.ConverterFactory;
public class NestedAnon... | 352 |
1,647 | <filename>pythran/pythonic/numpy/nan.hpp
#ifndef PYTHONIC_NUMPY_NAN_HPP
#define PYTHONIC_NUMPY_NAN_HPP
#include "pythonic/include/numpy/nan.hpp"
#endif
| 78 |
1,224 | <reponame>timgates42/processing.py
"""
Mouse 1D.
Move the mouse left and right to shift the balance.
The "mouseX" variable is used to control both the
size and color of the rectangles.
"""
def setup():
size(640, 360)
noStroke()
colorMode(RGB, height, height, height)
rectMode(CENTER)
def draw():... | 225 |
1,117 | <reponame>icankeep/jupyterlab-lsp
"""work with jupyter config"""
import json
from pathlib import Path
ENC = dict(encoding="utf-8")
def update_jupyter_config(path, has_traits, **key_values):
"""update an existing jupyter_server_config.json"""
p = Path(path)
conf = json.loads(p.read_text(**ENC))
for ... | 191 |
392 | /*******************************************************************************
* Copyright (c) 2015
*
* 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 withou... | 917 |
2,144 | <reponame>fredsterorg/incubator-pinot
/**
* 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 Licens... | 612 |
5,169 | {
"name": "BKYBImageBrowser",
"version": "3.0.9",
"summary": "YBImageBrowser改依赖为YYKit",
"homepage": "https://github.com/MMDDZ",
"license": "MIT",
"authors": {
"MMDDZ": "<EMAIL>"
},
"source": {
"git": "https://github.com/MMDDZ/BKYBImageBrowser",
"tag": "3.0.9"
},
"platforms": {
"ios":... | 312 |
307 | <reponame>trgswe/fs2open.github.com
//
//
#include "fireballclass.h"
#include "model.h"
#include "fireball/fireballs.h"
namespace scripting {
namespace api {
//**********HANDLE: Fireballclass
ADE_OBJ(l_Fireballclass, int, "fireballclass", "Fireball class handle");
ADE_FUNC(__tostring, l_Fireballclass, NULL, "Fireb... | 1,547 |
335 | <reponame>draker94/vividus<gh_stars>100-1000
/*
* Copyright 2019-2021 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/lic... | 2,384 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.