max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
577 | <filename>fluentlenium-core/src/main/java/org/fluentlenium/utils/ThreadLocalAdapterUtil.java
package org.fluentlenium.utils;
import org.apache.commons.lang3.StringUtils;
import org.fluentlenium.adapter.SharedMutator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Optional;
public final cla... | 808 |
908 | <gh_stars>100-1000
import itertools
from future import utils
if utils.PY2:
from __builtin__ import max as _builtin_max, min as _builtin_min
else:
from builtins import max as _builtin_max, min as _builtin_min
_SENTINEL = object()
def newmin(*args, **kwargs):
return new_min_max(_builtin_min, *args, **kwar... | 790 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-g9rm-5r89-23xg",
"modified": "2022-05-02T06:11:00Z",
"published": "2022-05-02T06:11:00Z",
"aliases": [
"CVE-2010-0229"
],
"details": "Verbatim Corporate Secure and Corporate Secure FIPS Edition USB flash drives do not prevent password replay attacks, which allo... | 401 |
370 | <filename>contrib/python/xapiand-py/xapiand/connection/base.py
# Copyright (c) 2019 Dubalu LLC
# Copyright (c) 2017 Elasticsearch
#
# 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 regardin... | 2,437 |
458 | /* SceneRenderer.h
* WhirlyGlobeLib
*
* Created by <NAME> on 1/13/11.
* Copyright 2011-2021 mousebird consulting
*
* 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.... | 4,941 |
852 | #ifndef FIREWORKS_MUONS_SEGMENTUTILS_H
#define FIREWORKS_MUONS_SEGMENTUTILS_H
namespace fireworks {
void createSegment(
int detector, // DT,CSC, or RPC?
bool matchedSegment, // Is the segment a MuonSegmentMatch?
float segmentLength, // Nominal length of the segment along... | 265 |
523 | <reponame>indusninja/sc-bw-ai
#pragma once
namespace BWAPI
{
struct PlayerData
{
char name[25];
int race;
int type;
int force;
bool isAlly[12];
bool isEnemy[12];
bool isNeutral;
int startLocationX;
int startLocationY;
bool isVictorious;
bool isDefeated;
bool lef... | 311 |
1,496 | package org.httpkit;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.httpkit.server.*;
/* in progress:
* this is a temporary scaffold to move towards cleaner tests
*
* following currently fail:
*
* following are currently not JUnit tests:
* - MultiThreadHttpServerTest.class
* -... | 171 |
30,023 | """Constants for the Bluetooth Tracker component."""
from typing import Final
DOMAIN: Final = "bluetooth_tracker"
SERVICE_UPDATE: Final = "update"
BT_PREFIX: Final = "BT_"
CONF_REQUEST_RSSI: Final = "request_rssi"
DEFAULT_DEVICE_ID: Final = -1
| 88 |
2,073 | package org.pac4j.saml.metadata;
import org.junit.Test;
import org.pac4j.saml.config.SAML2Configuration;
import org.pac4j.saml.util.ConfigurationManager;
import org.pac4j.saml.util.DefaultConfigurationManager;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource;
... | 581 |
14,668 | <filename>third_party/pyjson5/src/tests/tool_test.py
# Copyright 2017 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/LI... | 2,471 |
679 | <gh_stars>100-1000
class NotSoPythonicPet:
def __init__(self, name, age):
self.age = age
self.name = name
def get_name(self):
return self.name
def get_age(self):
return self.age
print("Here is my pet cow:")
cow = NotSoPythonicPet("Betsy", 4)
print("She is named {} and {} ... | 466 |
373 | /** @file
Header file for PchCycleDecodingLib.
Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _PCH_CYCLE_DECODING_LIB_H_
#define _PCH_CYCLE_DECODING_LIB_H_
/**
Set PCH ACPI base address.
The Address should not be 0 and... | 5,811 |
1,144 | package de.metas.acct.gldistribution;
import java.math.BigDecimal;
import de.metas.acct.api.AccountDimension;
import de.metas.money.CurrencyId;
import lombok.Data;
import lombok.NonNull;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2016 metas GmbH
* %%
* This program is free software: you ... | 481 |
625 | /*
* context.h --- Base Context class for tracking identifiers in a code.
*
* (c) Seq project. All rights reserved.
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*/
#pragma once
#include <deque>
#include <memory>
#include <stack>
#incl... | 1,609 |
432 | /*
* Copyright 2018 <NAME>, <EMAIL>
*
* 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 ... | 381 |
5,926 | <gh_stars>1000+
def primes(n):
if n==2:
return [2]
elif n<2:
return []
s=list(range(3,n+1,2))
mroot = n ** 0.5
half=(n+1)//2-1
i=0
m=3
while m <= mroot:
if s[i]:
j=(m*m-3)//2
s[j]=0
while j<half:
s[j]=0
... | 285 |
6,457 | <filename>src/ds5/ds5-color.cpp
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2016 Intel Corporation. All Rights Reserved.
#include <cstddef>
#include "metadata.h"
#include "ds5-timestamp.h"
#include "ds5-thermal-monitor.h"
#include "proc/color-formats-converter.h"
#include "ds5-color.h"... | 7,595 |
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... | 11,252 |
1,590 | /*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2021 <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 th... | 11,782 |
332 | <reponame>jingtaoh/USD-Cookbook
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""A module that skins meshes to their linked skeleton(s)."""
# IMPORT STANDARD LIBRARIES
import functools
# IMPORT THIRD-PARTY LIBRARIES
from maya import cmds
from pxr import Gf, UsdSkel, Vt
def _get_skin_cluster(meshes):
clusters =... | 2,070 |
1,303 | <reponame>miusuncle/TBase
/*
* Tencent is pleased to support the open source community by making TBase available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below.
*
* A c... | 1,815 |
4,391 | <filename>modules/osx/evilosx.py
#!/usr/bin/env python
#####################################
# Installation module for EvilOSX
#####################################
# AUTHOR OF MODULE NAME
AUTHOR="<NAME> (ReL1K)"
# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update EvilOSX - a C2 infrastructure fo... | 283 |
1,268 | <filename>app/main/plugins/hain-package-manager/package.json<gh_stars>1000+
{
"name": "hain-package-manager (experimental)",
"description": "hain package manager",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "<NAME> <<EMAIL>>",
"license": "MIT",
... | 164 |
3,170 | <gh_stars>1000+
//
// Copyright (c) 2008-2014 the Urho3D project.
// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC 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 ... | 1,294 |
788 | <reponame>snoopdave/incubator-usergrid
/*
* 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... | 1,164 |
9,724 | <reponame>kripken/emscripten
// Copyright 2022 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
#pragma once
#include <cassert>
#in... | 970 |
407 | <reponame>iuskye/SREWorks<filename>saas/job/api/sreworks-job/sreworks-job-master/src/main/java/com/alibaba/sreworks/job/master/jobschedule/AbstractJobSchedule.java
package com.alibaba.sreworks.job.master.jobschedule;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import o... | 413 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Carros","circ":"2ème circonscription","dpt":"Alpes-Maritimes","inscrits":8485,"abs":5233,"votants":3252,"blancs":187,"nuls":63,"exp":3002,"res":[{"nuance":"REM","nom":"<NAME>","voix":1615},{"nuance":"FN","nom":"M. <NAME>","voix":1387}]} | 118 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-g734-67mf-ffrp",
"modified": "2022-05-01T23:49:36Z",
"published": "2022-05-01T23:49:36Z",
"aliases": [
"CVE-2008-2392"
],
"details": "Unrestricted file upload vulnerability in WordPress 2.5.1 and earlier might allow remote authenticated administrators to upload... | 498 |
679 | <reponame>Grosskopf/openoffice<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 copyrig... | 1,364 |
743 | /*
* 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,339 |
1,199 | <reponame>urikz/language
# coding=utf-8
# Copyright 2018 The Google AI Language Team 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.... | 605 |
2,264 | # -*- coding: utf-8 -*-
"""Copyright 2015 <NAME>.
FilterPy library.
http://github.com/rlabbe/filterpy
Documentation at:
https://filterpy.readthedocs.org
Supporting book at:
https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python
This is licensed under an MIT license. See the readme.MD file
for more informat... | 2,443 |
14,793 | package cn.binarywang.wx.miniapp.api;
import cn.binarywang.wx.miniapp.bean.cloud.*;
import com.google.gson.JsonArray;
import me.chanjar.weixin.common.error.WxErrorException;
import java.util.List;
import java.util.Map;
/**
* 云开发相关接口.
*
* @author <a href="https://github.com/binarywang"><NAME></a>
* @date 2020 -01... | 7,566 |
749 | <reponame>liu12151407/OXChart
package com.openxu.cview.chart.anim;
import android.animation.TypeEvaluator;
/**
* autour : openXu
* date : 2017/7/28 9:12
* className : AngleEvaluator
* version : 1.0
* description : 角度计算器
*/
public class AngleEvaluator implements TypeEvaluator {
@Override
public Object ... | 206 |
5,238 | /**
* @file lv_example_snapshot.h
*
*/
#ifndef LV_EX_SNAPSHOT_H
#define LV_EX_SNAPSHOT_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
***************... | 225 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.j... | 691 |
7,863 | #! /usr/bin/env python
"""
This script adds a license file to a DMG. Requires Xcode and a plain ascii text
license file or an RTF license file.
Obviously only runs on a Mac.
Copyright (C) 2011-2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docu... | 3,188 |
2,151 | <reponame>zipated/src
// 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.
package org.chromium.chrome.browser;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Ac... | 4,899 |
1,107 | """Wrapper mapping.
Setting ``pyvista._wrappers`` allows for developers to override the default class used
to coerce a ``vtkDataSet`` into a pyvista object. This is useful when creating a
subclass of a :class:`pyvista.DataSet` class.
Examples
--------
A user-defined Foo class is defined that extends the functionalit... | 416 |
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... | 916 |
12,278 | <gh_stars>1000+
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// Copyright (c) 2011 The LevelDB Autho... | 1,237 |
348 | {"nom":"Beaugency","circ":"1ère circonscription","dpt":"Loiret","inscrits":5495,"abs":3340,"votants":2155,"blancs":193,"nuls":58,"exp":1904,"res":[{"nuance":"REM","nom":"<NAME>","voix":1185},{"nuance":"LR","nom":"<NAME>","voix":719}]} | 94 |
319 | <gh_stars>100-1000
/**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 2,628 |
2,577 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 6,785 |
585 | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..preprocess import FAST
def test_FAST_inputs():
input_map = dict(
args=dict(
argstr="%s",
),
bias_iters=dict(
argstr="-I %d",
),
bias_lowpass=dict(
argstr="-l %d",
un... | 1,620 |
574 | package org.odk.collect.android.configure.qr;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.viewpager2.adapter.FragmentStateAdapter;
public class QRCodeTabsAdapter extends FragmentStateAdapter {
public QRCodeTabsAdapter(Fr... | 362 |
665 | # Music Box code in CircuitPython - <NAME> and <NAME>
# Revised by Ladyada 2019-01-16
from adafruit_crickit import crickit
from analogio import AnalogIn
from rainbowio import colorwheel
import neopixel
import audioio
import audiocore
import board
AUDIO_FILENAME = 'fur-elise.wav'
# Audio output
cpx_audio = audioio.Au... | 611 |
769 | // Copyright by Contributors
#include <gtest/gtest.h>
#include "helpers.h"
#include "xgboost/learner.h"
namespace xgboost {
TEST(learner, Test) {
typedef std::pair<std::string, std::string> arg;
auto args = {arg("tree_method", "exact")};
auto mat = {CreateDMatrix(10, 10, 0)};
auto learner = std::unique_ptr<Lea... | 151 |
1,338 | <filename>headers/private/debugger/arch/Register.h
/*
* Copyright 2009, <NAME>, <EMAIL>.
* Copyright 2014, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#ifndef REGISTER_H
#define REGISTER_H
#include <SupportDefs.h>
enum register_format {
REGISTER_FORMAT_INTEGER,
REGISTER_FORMAT_FLOAT,... | 575 |
1,444 | <reponame>Bokos-/rest-client
package org.wiztools.restclient.bean;
import java.nio.charset.Charset;
/**
*
* @author subwiz
*/
public interface ContentType {
String getContentType();
Charset getCharset();
}
| 86 |
8,649 | package org.hswebframework.web.context;
import reactor.core.publisher.Mono;
import java.util.function.Consumer;
import java.util.function.Function;
/**
* @since 4.0.0
*/
public class ContextUtils {
private static final ThreadLocal<Context> contextThreadLocal = ThreadLocal.withInitial(MapContext::new);
p... | 579 |
841 | /*
* Copyright (c) 2016 <NAME>
* Copyright (c) 2013-2016 the Civetweb developers
* Copyright (c) 2004-2013 <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... | 908 |
304 | //
// NSMutableAttributedString+GRichLabel.h
// GRichLabel
//
// Created by GIKI on 2017/10/30.
// Copyright © 2017年 GIKI. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreText/CoreText.h>
/**
Set pre-defined attributes to attributed string.
All properties defined in... | 6,127 |
412 | #include <assert.h>
struct empty
{
};
#pragma pack(1)
struct S
{
char x;
struct empty e;
char y;
};
#pragma pack()
int main()
{
struct S s;
assert(sizeof(struct S) == 2);
struct empty *p = &s.e;
assert(p == (char *)&s + 1);
return 0;
}
| 115 |
677 | /*
* Copyright (C) 2015-2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... | 822 |
891 | /*
* Copyright (C) 2007-2010 <NAME>
*
* This file is part of the JNR 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
*
* ... | 6,131 |
686 | package com.objectstyle.bootique.demo;
import com.google.inject.Binder;
import com.google.inject.Module;
import io.bootique.Bootique;
import io.bootique.jersey.JerseyModule;
public class Application implements Module {
public static void main(String[] args) {
Bootique.app(args)
.autoLoadMo... | 223 |
762 | <gh_stars>100-1000
import numpy as np
from pymoo.util.misc import swap
def randomized_argsort(A, method="numpy", order='ascending'):
if method == "numpy":
P = np.random.permutation(len(A))
I = np.argsort(A[P], kind='quicksort')
I = P[I]
elif method == "quicksort":
I = quickso... | 636 |
8,649 | <reponame>nanomashinX/hsweb-framework
package org.hswebframework.web.authorization.twofactor.defaults;
import org.hswebframework.web.authorization.twofactor.TwoFactorToken;
import org.hswebframework.web.authorization.twofactor.TwoFactorTokenManager;
import java.io.Serializable;
import java.lang.ref.WeakReference;
imp... | 979 |
637 | package jenkins.security.s2m;
import com.google.common.collect.ImmutableSet;
import jenkins.model.Jenkins;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger... | 894 |
1,639 | #include<bits/stdc++.h>
using namespace std;
const int N = 3e3 + 9, mod = 998244353;
template <int32_t MOD>
struct modint {
int32_t value;
modint() = default;
modint(int32_t value_) : value(value_) {}
inline modint<MOD> operator + (modint<MOD> other) const { int32_t c = this->value + other.v... | 2,273 |
3,710 | <filename>toonz/sources/include/tfunctorinvoker.h
#pragma once
#ifndef TFUNCTORINVOKER_H
#define TFUNCTORINVOKER_H
// TnzCore includes
#include "tcommon.h"
// Qt includes
#include <QObject>
#undef DVAPI
#undef DVVAR
#ifdef TNZCORE_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI D... | 1,191 |
687 | <reponame>Madara9744/kestra
package io.kestra.core.endpoints;
import io.micronaut.context.annotation.ConfigurationProperties;
import lombok.Getter;
@Getter
@ConfigurationProperties("endpoints.all.basic-auth")
public class EndpointBasicAuthConfiguration {
String username;
String password;
}
| 99 |
8,027 | <gh_stars>1000+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 387 |
1,647 | #ifndef PYTHONIC_NUMPY_HYPOT_ACCUMULATE_HPP
#define PYTHONIC_NUMPY_HYPOT_ACCUMULATE_HPP
#define UFUNC_NAME hypot
#include "pythonic/numpy/ufunc_accumulate.hpp"
#endif
| 84 |
30,023 | """Tests for the Kira integration."""
| 10 |
605 | <gh_stars>100-1000
package com.sohu.tv.mq.cloud.web.vo;
/**
* AuditConsumerVO
* @Description:
* @author yongfeigao
* @date 2018年7月24日
*/
public class AuditConsumerVO {
//审核id
private long aid;
//topic id
private long tid;
//消费者名字
private String consumer;
//0:集群消费,1:广播消费
... | 716 |
364 | package com.linkedin.dagli.fasttext.anonymized;
import java.io.IOException;
import java.io.InputStream;
/**
* Read/write cpp primitive type
*
* @author Ivan
*
*/
public class IOUtil {
private byte[] int_bytes_ = new byte[4];
private byte[] long_bytes_ = new byte[8];
private byte[] double_bytes... | 877 |
7,158 | <reponame>Nondzu/opencv_contrib<filename>modules/ximgproc/include/opencv2/ximgproc/peilin.hpp
// 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.
#ifndef __OPENCV_PEILIN_HPP__
#... | 474 |
478 | <gh_stars>100-1000
"""
utils.py
Utility functions.
Written by <NAME>
Licensed under the MIT License (see LICENSE for details)
"""
from __future__ import absolute_import, division, print_function
import os
import numpy as np
import tensorflow as tf
import cv2
def clean_dst_file(dst_file):
"""Create the output ... | 1,203 |
490 | <filename>deque/MyDeque.java
package deque;
public class MyDeque<E> {
Node<E> head, tail;
public static class Node<E>{
Node<E> next, prev;
E data;
public Node(E data) {
this.data = data;
this.next = this.prev = null;
}
}
public boolean isEmpty() {
return head == null;
}
public void addF... | 639 |
2,151 | <reponame>zipated/src<filename>components/suggestions/features.h
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SUGGESTIONS_FEATURES_H_
#define COMPONENTS_SUGGESTIONS_FEATURES_H_
#i... | 191 |
953 | {
"isDeprecatedLicenseId": false,
"licenseText": "Copyright (C) 1995-2009 <NAME>\n\ncwpuzzle.dtx is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it serves any particular purpose o... | 478 |
1,471 | <reponame>brutus/emoji
# -*- coding: utf-8 -*-
"""
Extract the full list of emoji and names from the Unicode Consortium and
apply as much formatting as possible so the codes can be dropped into the
emoji registry file.
Written and run with Python3. Not tested on Python2 and definitely not
intended for production use... | 948 |
382 | <filename>src/graphics/graphics_object_driver_table.h
/****************************************************************************
** Copyright (c) 2021, Fougue Ltd. <http://www.fougue.pro>
** All rights reserved.
** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt
********************************... | 261 |
1,127 | <reponame>ryanloney/openvino-1<filename>src/core/tests/visitors/value_map.cpp
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "ngraph/op/util/attr_types.hpp"
#include "ngraph/opsets/opset1.hpp"
#include "ngraph/opsets... | 369 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2019 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 CC_TREES_ANIMATION_EFFECT_TIMINGS_H_
#define CC_TREES_ANIMATION_EFFECT_TIMINGS_H_
#include <memory>
#include "cc/... | 253 |
340 | ///////////////////////////////////////////////////////////////////////////////
//
// DViewHelper - Expression Evaluator for the D string and object class
// Copyright (c) 2009-2010 by <NAME>, All Rights Reserved
//
// License for redistribution is given by the Artistic License 2.0
// see file LICENSE for further... | 2,906 |
1,418 | package bankqueue;
public enum WindowType {
kNormal, kFast, kVip, kNumWindows
}
| 31 |
308 | #include "BasicsScene.h"
#include "Window1.h"
#include "Window2.h"
USING_NS_CC;
void BasicsScene::continueInit()
{
UIConfig::buttonSound = "ui://Basics/click";
UIConfig::verticalScrollBar = "ui://Basics/ScrollBar_VT";
UIConfig::horizontalScrollBar = "ui://Basics/ScrollBar_HZ";
UIConfig::too... | 3,831 |
5,937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#pragma once
#include "vector3_t.hpp"
#include "dx9layercommon.hpp"
#include <memory>
#include <exception>
#incl... | 2,574 |
335 | /*
* Copyright (c) 2015, salesforce.com, 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 cond... | 958 |
521 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*... | 4,380 |
716 | <reponame>rnui2k/vivisect
import vstruct
from vstruct.primitives import *
class IMAGE_BASE_RELOCATION(vstruct.VStruct):
def __init__(self):
vstruct.VStruct.__init__(self)
self.VirtualAddress = v_uint32()
self.SizeOfBlock = v_uint32()
class IMAGE_DATA_DIRECTORY(vstruct.VStruct):
def... | 6,807 |
4,267 | #include "config.h"
#define LIBSSH_STATIC
#include "torture.h"
#include "libssh/options.h"
#include "libssh/session.h"
#include "libssh/config_parser.h"
#include "match.c"
extern LIBSSH_THREAD int ssh_log_level;
#define LIBSSH_TESTCONFIG1 "libssh_testconfig1.tmp"
#define LIBSSH_TESTCONFIG2 "libssh_testconfig2.tmp"
... | 18,947 |
2,880 | <reponame>fakeNetflix/square-repo-PonyDebugger
import os
import subprocess
import sys
def extend_parser(optparse_parser):
optparse_parser.add_option('--ponyd-symlink', metavar='PONYD_SYMLINK_PATH', help='Optional location to symlink ponyd to. /usr/local/bin/ponyd is recommended')
def after_install(options, home_... | 581 |
10,225 | package io.quarkus.deployment.dev;
import java.util.function.Predicate;
import java.util.function.Supplier;
import org.jboss.jandex.Index;
import io.quarkus.builder.item.MultiBuildItem;
/**
* Allows disabling of instrumentation based reload if the index of changed classes matches certain criteria
*/
public final ... | 254 |
1,576 | // MainDialogBar.cpp : implementation file
//
#include "stdafx.h"
#include "CPUStressEx.h"
#include "MainDialogBar.h"
#include "ChildView.h"
// CMainDialogBar
IMPLEMENT_DYNAMIC(CMainDialogBar, CDialogBar)
CMainDialogBar::CMainDialogBar() {
}
CMainDialogBar::~CMainDialogBar() {
}
BEGIN_MESSAGE_MAP(CMainDialogBar,... | 496 |
2,053 | <gh_stars>1000+
package scouter.client.counter.views;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.csstudio.swt.xygraph.dataprovider.CircularBufferDataProvider;
import org.csstudio.swt.xygraph.dataprovider.Sample;
import org.eclipse.core.runtime.IProg... | 2,106 |
804 | package com.github.liuweijw.business.admin.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import com.github.liuweijw.business.admin.domain.User;
public interface UserRepository extends JpaRepository<User, Integer>,
Query... | 167 |
852 | import FWCore.ParameterSet.Config as cms
muonBadTrackFilter = cms.EDFilter(
"MuonBadTrackFilter",
PFCandidates = cms.InputTag("particleFlow"), # Collection to test
taggingMode = cms.bool(False),
ptMin = cms.double(100.), # Tracks with pT below this are ignored (will not be ch... | 379 |
1,473 | <reponame>JiangJibo/pinpoint
package com.navercorp.pinpoint.common.server.scatter;
import com.navercorp.pinpoint.common.server.bo.serializer.agent.ApplicationNameRowKeyEncoder;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.filter.Filter;
import org.junit.Assert;
import org.junit.Test;
import ... | 1,861 |
525 | <reponame>Eiygy-Veyron-Network/AppOpsX
package com.zzzmode.appopsx.common;
import android.os.Parcel;
public class ServerRunInfo implements android.os.Parcelable {
public String protocolVersion = OpsDataTransfer.PROTOCOL_VERSION;
public String startArgs;
public long startTime;
public long startRealTime;
pu... | 724 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Lepuix","circ":"2ème circonscription","dpt":"Territoire de Belfort","inscrits":934,"abs":442,"votants":492,"blancs":13,"nuls":2,"exp":477,"res":[{"nuance":"UDI","nom":"<NAME>","voix":131},{"nuance":"FN","nom":"Mme <NAME>","voix":115},{"nuance":"REM","nom":"<NAME>","voix"... | 283 |
386 | <filename>core/src/main/java/com/qq/tars/support/admin/impl/AdminFServantImpl.java
/**
* Tencent is pleased to support the open source community by making Tars available.
* <p>
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* <p>
* Licensed under the BSD 3-Clause License (the "Licens... | 5,635 |
521 | <gh_stars>100-1000
#ifndef OBSOLETE_MODULE_LOADING
/*
* Prototypes for dynamic library export functions. Your DLL/DSO needs to export
* these methods to play in the component world.
*
* THIS IS OBSOLETE. Look at nsIModule.idl
*/
extern "C" NS_EXPORT nsresult NSGetFactory(nsISupports* aServMgr,
... | 690 |
938 | <filename>src/main/resources/assets/tconstruct/book/puny_smelting/en_us/upgrades/weapon/necrotic.json
{
"modifier_id": "tconstruct:necrotic",
"text": [
{
"text": "Harvest the life of your foes in order to survive longer."
}
],
"effects": [
"Has a chance to steal life from your enemies to heal ... | 155 |
372 | /* MODULE: auth_ldap */
/* COPYRIGHT
* Copyright (c) 2002-2002 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... | 1,204 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.