max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,045 | /******************************************************************************\
* Copyright (c) 2016, <NAME>, Genivia Inc. All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without *
* modifi... | 1,794 |
790 | <gh_stars>100-1000
#!/usr/bin/env python
#
# Copyright 2007 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 ... | 5,829 |
7,302 | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | 4,090 |
777 | <gh_stars>100-1000
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/extensions/extension_settings_browsertest.h"
#include "base/path_service.h"
#include "chrome/browser... | 1,244 |
12,278 | <gh_stars>1000+
// © 2018 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
// Allow implicit conversion from char16_t* to UnicodeString for this file:
// Helpful in toString methods and elsewhere.
#define UNIS... | 7,549 |
593 | const uint8_t FreeSerif24pt7bBitmaps[] PROGMEM = {
0x77, 0xBF, 0xFF, 0xFF, 0xFF, 0xFB, 0x9C, 0xE7, 0x39, 0xCE, 0x61, 0x08,
0x42, 0x10, 0x84, 0x00, 0x00, 0xEF, 0xFF, 0xEE, 0x60, 0x6F, 0x0F, 0xF0,
0xFF, 0x0F, 0xF0, 0xFF, 0x0F, 0x60, 0x66, 0x06, 0x60, 0x66, 0x06, 0x60,
0x66, 0x06, 0x00, 0xE0, 0x70, 0x0... | 36,467 |
2,133 | /****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | 369 |
3,457 | /*
Copyright (c) 2005-2020 Intel Corporation
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 la... | 10,945 |
458 | /**
* Copyright 2019 <NAME>, 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 t... | 1,036 |
314 | <filename>Multiplex/IDEHeaders/IDEHeaders/IDEKit/DVTTileViewDelegate-Protocol.h<gh_stars>100-1000
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "CDStructures.h"
@class DVTTileView, NSEvent, NSString;
@protocol DVTTileViewDe... | 366 |
2,023 | import os
import sys
__author__ = '<NAME> <<EMAIL>>'
__source__ = 'http://code.activestate.com/recipes/577281-xnview-backup-files-remove-utility/'
root_dn = sys.argv[1]
delete_files = list()
for root, dirs, files in os.walk(root_dn):
for f in files:
ii = f.split('.')
if len(ii) > 2:
... | 501 |
935 | <filename>spring-cloud-dataflow-server-core/src/test/java/org/springframework/cloud/dataflow/server/stream/ResourceUtilsTests.java
/*
* Copyright 2018 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... | 1,407 |
2,105 | import os
import shutil
fileDir = os.path.dirname(os.path.abspath(__file__))
backendDir = os.path.dirname(fileDir)
publishDir = os.path.join(os.path.dirname(backendDir), "publish")
def copy_backend_to_publish(src, dst):
for item in os.listdir(src):
source = os.path.join(src, item)
destination = o... | 384 |
5,169 | <filename>Specs/b/1/c/PayUIndia-OlaMoney/1.0.0/PayUIndia-OlaMoney.podspec.json
{
"name": "PayUIndia-OlaMoney",
"version": "1.0.0",
"license": "MIT",
"homepage": "https://github.com/payu-intrepos/payu-olamoney-ios",
"authors": {
"PayUbiz": "<EMAIL>"
},
"summary": "A lightweight SDK which supports payme... | 353 |
1,073 | <reponame>oubotong/Armariris<filename>tools/clang/test/SemaTemplate/nested-name-spec-template.cpp
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
namespace N {
namespace M {
template<typename T> struct Prom... | 1,595 |
1,144 | package de.metas.procurement.base.rfq.model.interceptor;
import de.metas.common.procurement.sync.protocol.dto.SyncRfQCloseEvent;
import de.metas.procurement.base.IPMM_RfQ_BL;
import de.metas.procurement.base.IPMM_RfQ_DAO;
import de.metas.procurement.base.IWebuiPush;
import de.metas.procurement.base.impl.SyncObjectsFac... | 1,944 |
630 | /*
* Copyright 2015 LinkedIn Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 2,576 |
560 | /*
* Copyright (c) 2016 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.followship.ui;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import... | 1,138 |
1,041 | <reponame>GiannisMP/ebean<filename>ebean-core/src/main/java/io/ebeaninternal/server/querydefn/OrmQuerySecondary.java<gh_stars>1000+
package io.ebeaninternal.server.querydefn;
import io.ebeaninternal.api.SpiQuerySecondary;
import java.util.List;
/**
* The secondary query paths for 'query joins' and 'lazy loading'.
... | 370 |
936 | //
// DSFancyLoaderView.h
// Design Shots
//
// Created by <NAME> on 19/12/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface RJCircularLoaderView : UIView
- (void)reveal;
@property (nonatomic) CGFloat progress;
@end
| 104 |
5,156 | <gh_stars>1000+
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
static char ch = 'E';
static long saved_sp;
static ssize_t my_write(int fd, void* buf, size_t size) {
ssize_t ret;
/* Do a write syscall with no valid stack. */
#ifdef __x86_64__
asm("mov %%rsp,%5\n\t... | 863 |
758 | /*
* Copyright 2015 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 953 |
2,151 | <filename>components/download/downloader/in_progress/in_progress_cache_impl.cc
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/download/downloader/in_progress/in_progress_cache_impl... | 2,811 |
1,461 | <filename>dubbokeeper-ui/src/main/java/com/dubboclub/dk/web/utils/ContextUtils.java
package com.dubboclub.dk.web.utils;
import org.springframework.context.ApplicationContext;
import java.util.Collection;
/**
* Created by bieber on 2015/6/1.
*/
public class ContextUtils {
private static ApplicationContext APPL... | 443 |
407 | #!/usr/bin/env python
# encoding: utf-8
""" """
from teslafaas.container.webpy.common.BaseHandler import BaseHandler
from teslafaas.container.webpy.common.BaseHandler import PomHandler
from teslafaas.container.webpy.common.decorators import fcached,ActionError,app_route
import time
import web
from ..models.mysql_test_... | 1,008 |
778 | <gh_stars>100-1000
package org.aion.zero.impl.blockchain;
import static com.google.common.truth.Truth.assertThat;
import static org.mockito.Mockito.when;
import java.math.BigInteger;
import org.aion.zero.impl.core.IRewardsCalculator;
import org.aion.zero.impl.types.MiningBlockHeader;
import org.junit.Before;
import o... | 3,271 |
582 | <reponame>eduardobbs/archi<filename>com.archimatetool.editor/src/com/archimatetool/editor/p2/DropinsPluginHandler.java
/**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.edit... | 8,697 |
852 | # The following comments couldn't be translated into the new config version:
# Configuration file for PoolInputTest
import FWCore.ParameterSet.Config as cms
process = cms.Process("TESTRECO")
process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
process.maxEvents = cms.untracked.PSet(
input = cms.untracke... | 229 |
335 | /*
Copyright (C) 2019 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 1,263 |
391 | /*
*
* Copyright (C) 2020 iQIYI (www.iqiyi.com)
*
* 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 ... | 1,961 |
5,169 | <reponame>Gantios/Specs
{
"name": "onnxruntime-mobile-c",
"version": "1.8.0",
"authors": {
"<NAME>": "<EMAIL>"
},
"license": {
"type": "MIT",
"file": "LICENSE"
},
"homepage": "https://github.com/microsoft/onnxruntime",
"source": {
"http": "https://onnxruntimepackages.blob.core.windows.ne... | 378 |
2,104 | #include <src/mutator.h>
#include "test.pb.h"
class MyMutator : public protobuf_mutator::Mutator {
};
| 41 |
392 | /*******************************************************************************
* Copyright (c) 2015 - 2018
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including... | 1,025 |
1,144 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
... | 3,964 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 978 |
713 | package org.infinispan.query.dsl.impl;
/**
* @author <EMAIL>
* @since 6.0
*/
interface Visitable {
<ReturnType> ReturnType accept(Visitor<ReturnType> visitor);
}
| 61 |
608 | package com.huxq17.example.floatball;
import android.app.Application;
import com.buyi.huxq17.serviceagency.ServiceAgency;
import com.buyi.huxq17.serviceagency.exception.AgencyException;
import com.huxq17.floatball.libarary.LocationService;
public class App extends Application {
@Override
public void onCreate... | 383 |
9,402 | <reponame>pyracanda/runtime<filename>src/mono/mono/metadata/sgen-toggleref.c
/**
* \file
* toggleref support for sgen
*
* Author:
* <NAME> (<EMAIL>)
*
* Copyright 2011 Xamarin, Inc.
* Copyright (C) 2012 Xamarin Inc
*
* Licensed under the MIT license. See LICENSE file in the project root for full license info... | 2,695 |
1,665 | <reponame>codeclimate-testing/bish
#ifndef __BISH_UTIL_H__
#define __BISH_UTIL_H__
#include <limits.h>
#include <string>
#include <sstream>
#include <vector>
// Convert the given string to the template type.
template <typename T>
inline T convert_string(const std::string &s) {
T t;
std::istringstream(s) >> t;... | 512 |
852 | import FWCore.ParameterSet.Config as cms
process = cms.Process("makeSD")
process.configurationMetadata = cms.untracked.PSet(
version = cms.untracked.string('$Revision: 1.1 $'),
annotation = cms.untracked.string('SD and central skims'),
name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/... | 8,540 |
1,350 | <reponame>billwert/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annota... | 561 |
1,590 | {
"parameters": {
"api-version": "2017-08-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"workspaceSettingName": "default",
"workspaceSetting": {
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/workspaceSettings/default",
"nam... | 559 |
12,651 | <filename>test/loader/test_cluster.py
import pytest
import torch
from torch_geometric.data import Data
from torch_geometric.loader import ClusterData, ClusterLoader
from torch_geometric.utils import to_dense_adj
try:
torch.ops.torch_sparse.partition
with_metis = True
except RuntimeError:
with_metis = Fals... | 1,780 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation.directconnectivity.TcpServerMock;
import io.netty.util.concurrent.DefaultPromise;
import io.netty.util.concurrent.GlobalEventExecutor;
import io.netty.util.concurrent.Promise;
import... | 592 |
652 | /*
* Copyright (C) 2014 Stratio (http://stratio.com)
*
* 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... | 5,646 |
3,266 | <filename>quantum gravity/convwave/src/jupyter/plottools.py
# -----------------------------------------------------------------------------
# IMPORTS
# -----------------------------------------------------------------------------
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import gridspec
# -... | 1,709 |
2,114 | <reponame>rahogata/Jest
package io.searchbox.core.search.aggregation;
import com.google.gson.JsonObject;
import java.util.Objects;
import static io.searchbox.core.search.aggregation.AggregationField.VALUE;
/**
* @author cfstout
*/
public class CardinalityAggregation extends MetricAggregation {
public static ... | 551 |
314 | <reponame>GaoX2015/intro_ds
# -*- coding: UTF-8 -*-
"""
此脚本用于展示二分类问题的不同评估指标
"""
import os
import sys
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from sklearn import metrics
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
def transL... | 3,078 |
459 | /**
* @file oglplus/images/sphere_bmap.ipp
* @brief Implementation of images::SphereBumpMap
*
* @author <NAME>
*
* Copyright 2010-2015 <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)
*/
#includ... | 734 |
480 | <reponame>weicao/galaxysql
/*
* 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
... | 3,302 |
503 | <reponame>Hugo759/ArrayVisualizer
package array.visualizer.utils;
import array.visualizer.ArrayController;
import static array.visualizer.ArrayVisualizer.*;
/**
*
* @author S630690
*/
public class Swaps {
public static void swap(final ArrayController ac, int i, int j) {
ac.marked.set(1, i);
ac... | 959 |
3,702 | /* -------------------------------------------------------------------------
*
* objectaccess.c
* functions for object_access_hook on various events
*
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* -------------... | 1,093 |
1,503 | <gh_stars>1000+
import sys
import warnings
from enum import Enum
import numpy as np
import pytest
from testfixtures import LogCapture
from greykite.common.constants import LOGGER_NAME
from greykite.common.constants import TIME_COL
from greykite.common.constants import VALUE_COL
from greykite.common.data_loader import... | 13,870 |
623 | // Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 3,249 |
494 | package com.by_syk.lib.nanoiconpack.dialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
import android.text.TextUtils;
import com.by_syk.... | 1,122 |
1,210 | <reponame>Passer-D/GameAISDK<filename>src/ImgProc/Comm/ImgReg/Recognizer/CDeformObjReg.h<gh_stars>1000+
/*
* Tencent is pleased to support the open source community by making GameAISDK available.
* This source code file is licensed under the GNU General Public License Version 3.
* For full details, please refer ... | 1,400 |
16,518 | // Copyright 2013 The Flutter 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.plugins.googlemaps;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.spy;
import com.google.android.gms.inter... | 295 |
733 | from rx import config
from rx.internal import noop
from rx.core import Disposable
class AnonymousDisposable(Disposable):
"""Main disposable class"""
def __init__(self, action=None):
"""Creates a disposable object that invokes the specified action when
disposed.
Keyword arguments:
... | 442 |
1,179 | <filename>tools/FileSignatureInfo/VerifySignature.cpp
/********************************************************************
VerifySignature.cpp : verifies the embedded signature of a PE file by using the WinVerifyTrust function.
from https://support.microsoft.com/en-us/help/323809/how-to-get-information-from-... | 2,425 |
5,098 | # Copyright 2019 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... | 1,413 |
555 | /*
* 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,994 |
8,805 | <reponame>rudylee/expo
/*-----------------------------------------------------------------------------+
Copyright (c) 2008-2009: <NAME>
+------------------------------------------------------------------------------+
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICE... | 854 |
451 | /*eLiSe06/05/99
Copyright (C) 1999 <NAME>
eLiSe : Elements of a Linux Image Software Environment
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 the License, or
(at yo... | 1,360 |
1,120 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//************************ Includes *****************************
#ifdef _WIN32
#include <windows.h>
#endif
#include <k4a/k4a.h>
#include <k4ainternal/common.h>
#include <k4ainternal/logging.h>
#include <gtest/gtest.h>
#in... | 21,708 |
488 | <filename>src/midend/programAnalysis/genericDataflow/simpleAnalyses/sgnAnalysis.h
#include <featureTests.h>
#ifdef ROSE_ENABLE_SOURCE_ANALYSIS
#ifndef SGN_ANALYSIS_H
#define SGN_ANALYSIS_H
#include "genericDataflowCommon.h"
#include "VirtualCFGIterator.h"
#include "cfgUtils.h"
#include "CallGraphTraverse.h"
#include ... | 3,215 |
495 | {
"title": "WORKSHOPPER EXAMPLE WORKSHOP",
"subtitle": "\u001b[23mSelect an exercise and hit \u001b[3mEnter\u001b[23m to begin",
"menu": {
"credits": "CREDITS"
},
"exercise": {
"foo": "FOO",
"bar": "BAR",
"baz": "BAZ"
}
} | 122 |
605 | //===- StaticValueUtils.cpp - Utilities for dealing with static values ----===//
//
// 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
//
//===---------------------------... | 1,430 |
2,134 | <filename>src/test/java/org/http4k/example/JavaExample.java
package org.http4k.example;
import okhttp3.OkHttpClient;
import org.http4k.client.DualSyncAsyncHttpHandler;
import org.http4k.client.OkHttp;
import org.http4k.core.BodyMode;
import org.http4k.core.Filter;
import org.http4k.core.Request;
import org.http4k.core... | 532 |
1,564 | package org.modelmapper.functional.inherit;
import java.util.HashMap;
import java.util.Map;
import org.modelmapper.AbstractTest;
import org.modelmapper.PropertyMap;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import static org.testng.A... | 732 |
1,009 | /*
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.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.ibphoenix.com/idpl.html.
*
* Software distribute... | 307 |
310 | {
"name": "Slim Folio Pro",
"description": "A keyboard case for the iPad Pro.",
"url": "https://www.logitech.com/en-us/products/ipad-keyboards/slim-folio-pro.html"
}
| 66 |
1,940 | <gh_stars>1000+
package org.opentech.fragments;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentManager;
imp... | 500 |
2,875 | <reponame>makelove/OpenCV-Python-Tutorial
# -*- coding: utf-8 -*-
# @Time : 2017/7/12 下午8:28
# @Author : play4fun
# @File : 凸包-凸性检测-边界矩形-最小外接圆-拟合.py
# @Software: PyCharm
"""
凸包-凸性检测-边界矩形-最小外接圆-拟合.py:
"""
import cv2
import numpy as np
img=cv2.imread('../data/lightning.png',0)
image, contours, hierarchy = cv2.f... | 1,955 |
3,084 | /*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
userscan.c
Abstract:
The implementation of user space scanning module. You have to install filter driver first, and
have filter manager load the minifilter. When filter driver is in its position, after calling
UserScanInit(..... | 17,754 |
521 | <reponame>Fimbure/icebox-1<filename>third_party/libdwarf-20191104/tsearch/config.h
/* Nothing here, really, a placeholder to enable testing. */
#define HAVE_CONFIG_H 1
/* Define to 1 if tsearch is based on the AVL algorithm. */
/* #define TSEARCH_USE_BAL 1 */
/* Define to 1 if tsearch is based on the binary algorith... | 419 |
903 | <filename>smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/TypedPropertiesBag.java
/*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
... | 2,144 |
13,885 | // Copyright 2016 The Draco 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... | 1,041 |
1,583 | <filename>src/main.py
"""This module is for thread start."""
import state
import sys
from bitmessagemain import main
from termcolor import colored
print(colored('kivy is not supported at the moment for this version..', 'red'))
sys.exit()
if __name__ == '__main__':
state.kivy = True
print("Kivy Loading......")... | 109 |
647 |
#ifndef DPC_DATASTREAM_SUPPLIER_HH
#define DPC_DATASTREAM_SUPPLIER_HH
#include "../../Log/DataStream.hh"
#include "../../Log/DataStreamFactory.hh"
#include <vector>
#include "DPM/DPM_extfn.hh"
#include "DPM/DPM_run.hh"
#include "DPM/DPM_product.hh"
#include "DPM/DPM_time_constraints.hh"
/**
* This class attempts t... | 711 |
669 | <reponame>hinzundcode/NodObjC
# This file is used with the GYP meta build system.
# http://code.google.com/p/gyp
# To build try this:
# svn co http://gyp.googlecode.com/svn/trunk gyp
# ./gyp/gyp -f make --depth=. framework.gyp
# make
{
'targets': [
{
'target_name': 'test_framework',
'product_n... | 413 |
605 | <filename>mlir/include/mlir/TableGen/Builder.h
//===- Builder.h - Builder classes ------------------------------*- 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-Identifier: Apache-2.0 WITH LLV... | 757 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.messagebus.shared;
import com.yahoo.jrt.ListenFailedException;
import com.yahoo.jrt.slobrok.server.Slobrok;
import com.yahoo.messagebus.MessageBusParams;
import com.yahoo.messagebus.network.rpc.RP... | 546 |
310 | {
"name": "Resolve Control",
"description": "A control panel for Davinci Resolve.",
"url": "https://www.blackmagicdesign.com/products/davinciresolve/control"
} | 55 |
321 | <reponame>RijuDasgupta9116/LintCode
"""
Given two strings, find the longest comment subsequence (LCS).
Your code should return the length of LCS.
"""
__author__ = 'Danyang'
class Solution:
def longestCommonSubsequence(self, A, B):
"""
let f(i, j) represents the LCS END WITH A[i], B[j]
f(i... | 528 |
16,461 | #import "ABI43_0_0REATransition.h"
@interface ABI43_0_0REATransitionGroup : ABI43_0_0REATransition
@property (nonatomic) BOOL sequence;
@property (nonatomic) NSArray *transitions;
- (instancetype)initWithConfig:(NSDictionary *)config;
@end
@interface ABI43_0_0REAVisibilityTransition : ABI43_0_0REATransition
@property... | 384 |
12,718 | <reponame>dylux/sail-riscv
/*============================================================================
This C header file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3e, by <NAME>.
Copyright 2017 The Regents of the University of California. All rights
reserved.
Redistributi... | 1,547 |
72,551 | #import <Foundation/Foundation.h>
#define MY_ERROR_ENUM(_type, _name, _domain) \
enum _name : _type _name; \
enum __attribute__((ns_error_domain(_domain))) _name : _type
@class NSString;
extern NSString *const TestErrorDomain;
ty... | 407 |
3,269 | // Time: O(m + n)
// Space: O(1)
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution ... | 392 |
3,200 | /**
* Copyright 2020-2021 Huawei Technologies Co., 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.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 1,851 |
3,857 | <filename>dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obf/skidasm/SkidClass.java
package dev.skidfuscator.obf.skidasm;
import lombok.Data;
import org.mapleir.asm.ClassNode;
import java.util.List;
@Data
public class SkidClass {
private final ClassNode node;
private final List<SkidGraph> graphs;... | 180 |
815 | <reponame>xj361685640/ParaView<gh_stars>100-1000
/*=========================================================================
Program: ParaView
Module: pqAnimationShortcutDecorator.cxx
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can re... | 1,262 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Notre-Dame-de-Mésage","circ":"2ème circonscription","dpt":"Isère","inscrits":928,"abs":511,"votants":417,"blancs":37,"nuls":11,"exp":369,"res":[{"nuance":"REM","nom":"<NAME>","voix":271},{"nuance":"FN","nom":"M. <NAME>","voix":98}]} | 126 |
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 ... | 768 |
3,493 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import logging
from attacks.abstract_attack import AbstractAttack
import subprocess
from lib.timeout import timeout
from lib.keys_wrapper import PrivateKey
from lib.utils import rootpath
import json
logger = logging.getLogger("global_logger")
class Attack(Ab... | 188 |
948 | <reponame>ismaelamezcua-ucol/contiki-ng<gh_stars>100-1000
#define BUILD_WITH_SHELL 1
| 40 |
1,694 | <reponame>cheneric-git/ArmsComponent<gh_stars>1000+
/*
* Copyright 2017 JessYan
*
* 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
*
... | 838 |
310 | /*
Copyright 2011 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 ... | 7,541 |
5,169 | <filename>Specs/2/1/4/iDevs/0.1.0/iDevs.podspec.json
{
"name": "iDevs",
"version": "0.1.0",
"summary": "iOS 工具库合集",
"description": "iOS 工具库开发工具合集",
"homepage": "https://github.com/yaochenfeng/iDevs",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"yaochenfeng": "<EMAIL>"
},
... | 357 |
558 | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2013, <NAME>, FU Berlin
// All rights reserved.
//
// Redistribution and use in s... | 4,235 |
302 | /*!
* utils.h - test utils for liburkel
* Copyright (c) 2020, <NAME> (MIT License).
* https://github.com/handshake-org/liburkel
*/
#ifndef _URKEL_UTILS_H
#define _URKEL_UTILS_H
#include <stddef.h>
#undef ASSERT
#define ASSERT(expr) do { \
if (!(expr)) ... | 593 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.