max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
504 | <filename>conftest.py
import pytest
import os, sys, shutil
from cellpose import utils
from pathlib import Path
@pytest.fixture()
def image_names():
image_names = ['gray_2D.png', 'rgb_2D.png', 'rgb_2D_tif.tif', 'gray_3D.tif', 'rgb_3D.tif']
return image_names
@pytest.fixture()
def data_dir(image_names):
cp... | 1,051 |
2,960 | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
/* recursive version too slow thanks to substr() */
bool isMatch(string s, string p) {
vector<vector<bool>> dp(s.size() + 1, vector<bool>(p.size() + 1, false));
dp[0][0] = true;
for (int i = 1; i <= p.length(); i++)... | 565 |
874 | package com.jnape.palatable.lambda.monoid.builtin;
import org.junit.Test;
import static com.jnape.palatable.lambda.functions.builtin.fn1.Id.id;
import static com.jnape.palatable.lambda.functions.builtin.fn1.Repeat.repeat;
import static com.jnape.palatable.lambda.functions.builtin.fn2.Cons.cons;
import static com.jnap... | 498 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 1,089 |
2,504 | <filename>tutorials/tutorial_8/cpp/behaviac_generated/types/internal/behaviac_customized_types.h
// ---------------------------------------------------------------------
// THIS FILE IS AUTO-GENERATED BY BEHAVIAC DESIGNER, SO PLEASE DON'T MODIFY IT BY YOURSELF!
// ------------------------------------------------------... | 383 |
9,402 | <gh_stars>1000+
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "xplatform.h"
#include <new>
struct Vector2
{
float x;
float y;
};
struct Vector3
{
float x;
float y;
float z;
};
struct Vector4
{
... | 1,874 |
817 | """Models for timeseries data."""
from sdv.timeseries.deepecho import PAR
__all__ = (
'PAR',
)
| 41 |
558 | /*
* @file BubbleSort.h
* @author (original JAVA) <NAME>, <EMAIL>
* (conversion to C++) <NAME>, <EMAIL>
* @date 13 July 2020
* @version 0.1
* @brief Bubble sort implementation.
*/
#ifndef D_BUBBLESORT_H
#define D_BUBBLESORT_H
#include <vector>
#include <deque>
#include <list>
#include <set> // ... | 729 |
317 | <reponame>akosma/nib2objc
//
// UISwitchProcessor.h
// nib2objc
//
// Created by Adrian on 3/14/09.
// <NAME> 2009
//
#import "UIControlProcessor.h"
@interface UISwitchProcessor : UIControlProcessor
@end
| 92 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Windows",
"definitions": [
"Microsoft Windows is a group of several graphical operating system families, all of which are developed, marketed, and sold by Microsoft."
],
"parts-of-speech": "Noun"
}
| 94 |
755 | /**
* @project: Overload
* @author: <NAME>.
* @licence: MIT
*/
#pragma once
namespace OvWindowing::Inputs
{
/**
* Defines some states that can be applied to keyboard keys
*/
enum class EKeyState
{
KEY_UP = 0,
KEY_DOWN = 1
};
} | 99 |
5,857 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
info:
author:CriseLYJ
github:https://github.com/CriseLYJ/
update_time:2019-3-6
"""
"""
请求URL分析 https://tieba.baidu.com/f?kw=魔兽世界&ie=utf-8&pn=50
请求方式分析 GET
请求参数分析 pn每页50发生变化,其他参数固定不变
请求头分析 只需要添加User-Agent
"""
# 代码实现流程
# 1. 实现面向对象构建爬虫对象
# 2. 爬虫流程四步骤
# 2.1 获取url列表
# 2.2 发送... | 1,150 |
651 | <filename>build-monitor-acceptance/build-monitor-acceptance-base/src/main/java/net/serenitybdd/screenplay/jenkins/tasks/configuration/build_steps/GroovyScript.java
package net.serenitybdd.screenplay.jenkins.tasks.configuration.build_steps;
import com.google.common.base.Function;
import com.google.common.base.Joiner;
... | 627 |
995 | //
// Copyright 2010 <NAME>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_EXTENSION_IO_TARGA_HPP
#define BOOST_GIL_EXTENSION_IO_TARGA_HPP
#include <boost/gil/extension/io/targa/r... | 171 |
3,139 | <filename>jme3-terrain/src/main/java/com/jme3/terrain/noise/Color.java
/**
* Copyright (c) 2011, Novyon Events
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistribu... | 1,883 |
3,246 | package org.datatransferproject.types.common.models.mail;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableList;
import com.google.common.truth.Truth;
import java.util.List;
import org.datatransferproject.types.common.models.ContainerResource;
import org.datatransferproject... | 594 |
1,738 | <gh_stars>1000+
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the lic... | 4,703 |
1,139 | # importing only the Queue from the queue module
from queue import Queue
# taking an object of Queue()
q = Queue()
print("Initially the size of queue is %s" % q.qsize())
print("Checking whether queue is empty or not. Empty?? = %s" % q.empty())
# enqueueing some value in the object of Queue
q.put('A')
q.put('B')
q.put... | 243 |
301 | /******************************************************************
*
* Copyright 2018 Samsung Electronics 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
*
... | 9,754 |
590 | /*******************************************************************************
* Copyright 2017 Bstek
*
* 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/l... | 7,455 |
411 | /*
* 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,529 |
3,428 | <reponame>ghalimi/stdlib
{"id":"00300","group":"easy-ham-2","checksum":{"type":"MD5","value":"7c83dd137e4d39f9be3db9eafefdd7e6"},"text":"From <EMAIL> Fri Aug 9 15:13:15 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>noteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (P... | 1,245 |
407 | package com.alibaba.tesla.appmanager.domain.req.kubectl;
import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* Kubectl Apply 请求
*
* @author <EMAIL>
*/
@Data
@Builder
@NoArgsConstruct... | 249 |
803 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#define UNICODE
#define _UNICODE
#include <malloc.h>
#include <memory.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#pragma prefast(push)
#pragma prefast(disable:26006, "Dont bother us with tchar, someone else owns that.")
#pra... | 8,162 |
653 | <reponame>mkinsner/llvm<filename>clang/test/Analysis/cert/env31-c.c
// RUN: %clang_analyze_cc1 -analyzer-output=text -Wno-unused %s \
// RUN: -analyzer-checker=core,alpha.security.cert.env.InvalidPtr \
// RUN: -verify=putenv,common \
// RUN: -DENV_INVALIDATING_CALL="putenv(... | 1,396 |
303 | <reponame>miahmie/krkrz<gh_stars>100-1000
/* see copyright notice in squirrel.h */
#ifndef _SQSTD_MATH_H_
#define _SQSTD_MATH_H_
#ifdef __cplusplus
extern "C" {
#endif
SQUIRREL_API SQRESULT sqstd_register_mathlib(HSQUIRRELVM v);
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*_SQSTD_MATH_H_*/
| 141 |
778 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Project Name: $StructuralMechanicsApplication $
// La... | 2,839 |
714 | <filename>vendor/github.com/zchee/libhyperkit/mirage_block_c.c<gh_stars>100-1000
// +build qcow2
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include <caml/alloc.h>
#include <caml/threads.h>
#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/call... | 2,825 |
479 | from interruptingcow import timeout
import logger
from exceptions import DeviceTimeoutError
from mqtt import MqttMessage
from workers.base import BaseWorker
_LOGGER = logger.get(__name__)
REQUIREMENTS = [
"git+https://github.com/zewelor/linak_bt_desk.git@aa9412f98b3044<PASSWORD>4c70e89d02721e6813ea731#egg=linakd... | 795 |
654 | package wei.mark.example;
import wei.mark.standout.StandOutWindow;
import wei.mark.standout.ui.Window;
import android.graphics.Color;
import android.widget.FrameLayout;
import android.widget.TextView;
public class MostBasicWindow extends StandOutWindow {
@Override
public String getAppName() {
return "MostBasicWi... | 256 |
1,473 | /*
* Copyright 2020 NAVER 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 to in w... | 6,190 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-54c3-2724-2j2f",
"modified": "2022-05-13T01:01:56Z",
"published": "2022-05-13T01:01:56Z",
"aliases": [
"CVE-2018-3926"
],
"details": "An exploitable integer underflow vulnerability exists in the ZigBee firmware update routine of the hubCore b... | 524 |
4,013 | <filename>tests/terraform/checks/resource/gcp/test_GKEClusterLogging.py
import unittest
from checkov.terraform.checks.resource.gcp.GKEClusterLogging import check
from checkov.common.models.enums import CheckResult
class TestGKEClusterLogging(unittest.TestCase):
def test_failure(self):
resource_conf = {'... | 561 |
682 | /**CFile****************************************************************
FileName [intM114p.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Interpolation engine.]
Synopsis [Intepolation using interfaced to MiniSat-1.14p.]
Author [<NAME>]
Affiliation [UC Berkele... | 7,101 |
397 | <gh_stars>100-1000
#define RPC_USE_NATIVE_WCHAR
#include "stdafx.h"
#include <bits.h>
#include <comdef.h>
#include "../MyComDefine/resolver_h.h"
#include "../CommonUtils/CommonUtils.h"
#include "../CommonUtils/ReparsePoint.h"
#include "../CommonUtils/FileSymlink.h"
#define LEN 1024
extern "C" handle_t hBindin... | 11,258 |
4,283 | /*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | 428 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 6,575 |
14,668 | <reponame>chromium/chromium
// 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 CHROME_BROWSER_UI_WEBUI_EXPLORE_SITES_INTERNALS_EXPLORE_SITES_INTERNALS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_EXPLORE_... | 637 |
403 | package org.camunda.example.insuranceapplication.rabbitconnector.rabbit;
import java.util.UUID;
import org.camunda.example.insuranceapplication.rabbitconnector.dto.Message;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframe... | 1,010 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "RealmStorage",
"version": "1.0.4",
"summary": "RealmStorage",
"description": "Modern wrapper for Realm Database [iOS, macOS, tvOS & watchOS]",
"homepage": "https://github.com/AndrewKochulab/RealmStorage",
"license": {
"type": "MIT",
"file": "LICENSE"... | 438 |
1,144 | <reponame>gokhanForesight/metasfresh
package de.metas.adempiere.callout;
/*
* #%L
* de.metas.swat.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foun... | 5,158 |
898 | package com.spotify.heroic.grammar;
import com.fasterxml.jackson.annotation.JsonTypeName;
import org.junit.Test;
import org.mockito.Mockito;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.doReturn;
public class ContextTest {
private final Context c1 = new Context(0, 0, 10, 10);
... | 1,031 |
690 | <gh_stars>100-1000
#!/usr/bin/python3
#
# This script loads keras model and pre-trained weights for sentence/property selection
# and starts REST API for scoring question - sentence pairs.
#
# Usage: ./tools/scoring-api.py MODEL TASK VOCAB WEIGHTS [PARAM=VALUE]...
# Example: ./tools/scoring-api.py rnn data/anssel/yod... | 1,452 |
575 | // Copyright 2020 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 UI_GL_GL_DISPLAY_EGL_UTIL_H_
#define UI_GL_GL_DISPLAY_EGL_UTIL_H_
#include <vector>
#include "third_party/khronos/EGL/egl.h"
#include "ui/gl/gl_... | 552 |
4,262 | <reponame>rikvb/camel
/*
* 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
* (th... | 15,364 |
1,216 | <filename>android/src/main/java/com/bottomsheetbehavior/BottomSheetBehaviorManager.java
package com.bottomsheetbehavior;
import android.support.annotation.NonNull;
import android.support.v4.view.ViewCompat;
import android.support.v4.widget.NestedScrollView;
import android.view.MotionEvent;
import android.view.View;
im... | 2,902 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "android_webview/nonembedded/component_updater/aw_component_installer_policy_shim.h"
#include <cstdint>
#include <memory>
#include <string>
#inc... | 599 |
337 | <reponame>AndrewReitz/kotlin
public class Foo {
private boolean isB;
public boolean isB() {
return isB;
}
public void setB(boolean b) {
isB = b;
}
}
public class Bar {
private boolean isB;
public boolean isB() {
return isB;
}
public void setB(boolean b) {... | 163 |
334 |
package org.jf.dexlib2.immutable.debug;
import com.google.common.collect.ImmutableList;
import org.jf.dexlib2.DebugItemType;
import org.jf.dexlib2.iface.debug.DebugItem;
import org.jf.dexlib2.iface.debug.EndLocal;
import org.jf.dexlib2.iface.debug.EpilogueBegin;
import org.jf.dexlib2.iface.debug.LineNumber;
impo... | 1,184 |
2,151 | // 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 "third_party/blink/renderer/core/layout/ng/geometry/ng_logical_rect.h"
#include <algorithm>
#include "third_party/blink/renderer/platform/geomet... | 836 |
432 | /*
* This file is part of Cubic Chunks Mod, licensed under the MIT License (MIT).
*
* Copyright (c) 2015-2019 OpenCubicChunks
* Copyright (c) 2015-2019 contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "So... | 1,169 |
449 | <reponame>buiksat/Learn-Algorithmic-Trading
import unittest
from chapter7.OrderManager import OrderManager
class TestOrderBook(unittest.TestCase):
def setUp(self):
self.order_manager = OrderManager()
def test_receive_order_from_trading_strategy(self):
order1 = {
'id': 10,
... | 1,064 |
463 | <filename>virtual/lib/python3.6/site-packages/pylint/test/functional/too_many_arguments_issue_1045.py<gh_stars>100-1000
# pylint: disable=missing-docstring
# pylint: disable=unused-import, undefined-variable; false positives :-(
import functools
@functools.lru_cache()
def func():
pass
func.cache_clear()
| 115 |
521 | <reponame>Fimbure/icebox-1<gh_stars>100-1000
/*
* Copyright (C) 2000 The XFree86 Project, Inc. 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... | 707 |
879 | <filename>header/src/main/java/org/zstack/header/longjob/APIQueryLongJobReply.java
package org.zstack.header.longjob;
import org.zstack.header.query.APIQueryReply;
import org.zstack.header.rest.RestResponse;
import java.util.Arrays;
import java.util.List;
/**
* Created by GuoYi on 11/13/17.
*/
@RestResponse(allTo ... | 345 |
2,151 | /*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 1,738 |
468 | <reponame>vinjn/glintercept<gh_stars>100-1000
#define GLI_INCLUDE_GL_OES_COMPRESSED_ETC1_RGB8_TEXTURE
enum Main {
GL_ETC1_RGB8_OES = 0x8D64,
};
| 84 |
72,551 | #include "inline.h"
| 8 |
1,615 | # FLIP GitHub repository: https://github.com/NVlabs/flip.
# A render graph that creates a reference image and a test image
# and compares them using HDR-FLIP. The reference is an accumulation
# of 1 spp path traced images while the test is generated by
# rendering 1 spp path traced images, followed
# by denoising with... | 1,796 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.world.block;
public class BlockUriParseException extends RuntimeException {
private static final long serialVersionUID = 5571599578432666018L;
public BlockUriParseException() {
}
public B... | 262 |
918 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 9,259 |
361 | <gh_stars>100-1000
/*******************************************************************************
* Copyright 2017 ROBOTIS 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
*
* ... | 6,374 |
1,379 | /* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */
/*
* Implementation for SocketStoreClientFactory class.
*
* Copyright (c) 2009 Webroot Software, 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... | 545 |
692 | package com.hubspot.singularity;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.mesos.protos.MesosTaskStatusObject;
import java.util.Optional;
public class SingularityTaskStatusHolder {
private final Optional<MesosTaskStatusObject> taskS... | 759 |
15,337 | <filename>saleor/graphql/plugins/tests/conftest.py
import pytest
@pytest.fixture
def staff_api_client_can_manage_plugins(staff_api_client, permission_manage_plugins):
staff_api_client.user.user_permissions.add(permission_manage_plugins)
return staff_api_client
| 96 |
847 | /*
* spi.h
*
* Helper functions for STM32F10x SPI interfaces.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
void spi_quiesce(SPI spi);
void spi_16bit_frame(... | 363 |
373 | /*-------------------------------------------------------------------------------
BARONY
File: acttorch.cpp
Desc: behavior function for torch
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
-------------------------------------------------------------------------------*/... | 4,616 |
7,759 | <reponame>MylesLeadbeater/cJSON<gh_stars>1000+
/* ==========================================
Unity Project - A Test Framework for C
Copyright (c) 2007 <NAME>, <NAME>, <NAME>
[Released under MIT License. Please refer to license.txt for details]
========================================== */
#include <setjmp.... | 1,936 |
501 | <reponame>robert-anderson/pyscf
#!/usr/bin/env python
#
# Author: <NAME> <<EMAIL>>
#
'''
TDDFT NTO analysis.
'''
from pyscf import gto, dft, tddft
mol = gto.Mole()
mol.build(
atom = 'H 0 0 0; F 0 0 1.1', # in Angstrom
basis = '631g',
symmetry = True,
)
mf = dft.RKS(mol)
mf.xc = 'b3lyp'
mf.kernel()
myt... | 304 |
550 | from logging import getLogger, basicConfig, NullHandler
basicConfig()
logger = getLogger("glue")
# Default to Null unless we override this later
logger.addHandler(NullHandler())
| 48 |
6,119 | from __future__ import print_function
import autograd.numpy as np
from autograd import grad
from autograd.misc.fixed_points import fixed_point
def newton_sqrt_iter(a):
return lambda x: 0.5 * (x + a / x)
def grad_descent_sqrt_iter(a):
return lambda x: x - 0.05 * (x**2 - a)
def sqrt(a, guess=10.):
# return... | 282 |
1,006 | /****************************************************************************
* libs/libc/tls/tls_alloc.c
*
* 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 ownersh... | 849 |
496 | <reponame>freemine/lexbor
/*
* Copyright (C) 2018-2021 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef LEXBOR_DOM_COMMENT_H
#define LEXBOR_DOM_COMMENT_H
#ifdef __cplusplus
extern "C" {
#endif
#include "lexbor/dom/interfaces/document.h"
#include "lexbor/dom/interfaces/character_data.h"
struct lxb_dom_comment {
... | 435 |
462 | package com.ppdai.infrastructure.mq.biz.common.util;
public class ConsumerGroupUtil {
public static String getBroadcastConsumerName(String consumerGroupName, String ip, long consumerId) {
return String.format("%s_%s-%s", consumerGroupName, ip, consumerId);
}
public static String getOriginConsumerName(String con... | 166 |
788 | //
// Created by wlanjie on 2020/7/5.
//
| 19 |
1,210 | package iammert.com.dagger_android_injection.ui.main;
import javax.inject.Inject;
import iammert.com.dagger_android_injection.data.ApiService;
/**
* Created by mertsimsek on 25/05/2017.
*/
public class MainPresenterImpl implements MainPresenter{
MainView mainView;
ApiService apiService;
@Inject
p... | 223 |
6,205 | <filename>conans/client/generators/virtualrunenv.py<gh_stars>1000+
from conans.client.generators.virtualenv import VirtualEnvGenerator
from conans.client.run_environment import RunEnvironment
class VirtualRunEnvGenerator(VirtualEnvGenerator):
suffix = "_run"
venv_name = "conanrunenv"
def __init__(self, ... | 174 |
591 | <filename>src/com/hdeva/launcher/IconAdapter.java
package com.hdeva.launcher;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
public class IconAdapter extends RecyclerView.Adapter<IconViewHolder> {
@NonNull
@Override
public IconView... | 215 |
460 | /* $Id: qfits_time.c,v 1.7 2006/02/17 10:24:52 yjung Exp $
*
* This file is part of the ESO QFITS Library
* Copyright (C) 2001-2004 European Southern Observatory
*
* 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 F... | 3,133 |
1,155 | <filename>examples/click-no-id-button.py<gh_stars>1000+
#! /usr/bin/env python
'''
Copyright (C) 2012 <NAME>
Created on Aug 7, 2012
@author: diego
'''
import sys
import os
try:
sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src'))
except:
pass
from com.dtmilano.android.viewclient imp... | 223 |
1,174 | <gh_stars>1000+
from __future__ import division
import math
import mock
import os
import pkg_resources
import platform
import pytest
import time
import threading
import unittest2
from uuid import uuid4
from kazoo.client import KazooClient
try:
import gevent
except ImportError:
gevent = None
from pykafka impo... | 10,184 |
852 | #ifndef Fireworks_Core_FWDetailViewFactory_h
#define Fireworks_Core_FWDetailViewFactory_h
// -*- C++ -*-
//
// Package: Core
// Class : FWDetailViewFactory
//
/**\class FWDetailViewFactory FWDetailViewFactory.h Fireworks/Core/interface/FWDetailViewFactory.h
Description: <one line class summary>
Usage:
... | 395 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-3jj3-7hg7-2w24",
"modified": "2022-05-13T01:46:13Z",
"published": "2022-05-13T01:46:13Z",
"aliases": [
"CVE-2017-5623"
],
"details": "An issue was discovered in OxygenOS before 4.1.0 on OnePlus 3 and 3T devices. The attacker can change the bootmode of the devic... | 514 |
622 | <gh_stars>100-1000
/*
* Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.flashback.netty.builder;
import com.linkedin.flashback.serializable.RecordedHttpResponse;
import io.netty.buff... | 663 |
945 | <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,021 |
932 | #pragma once
#include "ofMain.h"
#include "ofxCv.h"
#include "ofxFaceTracker.h"
class ofApp : public ofBaseApp {
public:
void setup();
void update();
void draw();
void keyPressed(int key);
ofVideoGrabber cam;
ofxFaceTracker tracker;
ofEasyCam easyCam;
};
| 108 |
310 | <reponame>dreeves/usesthis<gh_stars>100-1000
{
"name": "Chromium",
"description": "Open-source builds of the Chrome web browser.",
"url": "http://www.chromium.org/"
} | 65 |
585 | """
Name: tests
Description: This file contains the test code
Version: [release][3.2]
Source url: https://github.com/OPHoperHPO/image-background-remove-tool
Author: Anodev (OPHoperHPO)[https://github.com/OPHoperHPO] .
License: Apache License 2.0
License:
Copyright 2020 OPHoperHPO
Licensed under the Apache Licens... | 1,203 |
428 | #include "AST/ASTBuilder.h"
// TODO: bindChildrenInversely
ASTBuilder::ASTBuilder(String filename) : filename(std::move(filename)) {}
antlrcpp::Any ASTBuilder::visitModule(StaticScriptParser::ModuleContext *ctx) {
SharedPtrVector<StmtNode> childStmts;
if (ctx->statements()) {
antlrcpp::Any stmtsAny =... | 7,151 |
585 | /*
* 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 ... | 632 |
13,585 | package com.baomidou.mybatisplus.test.resultmap;
import com.baomidou.mybatisplus.test.BaseDbTest;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
/**
* @author miemie
* @since 2020-06-23
*/
public class ResultMapTest ext... | 725 |
740 | <reponame>ruolin/vg<filename>src/source_sink_overlay.hpp<gh_stars>100-1000
#ifndef VG_SOURCE_SINK_OVERLAY_HPP_INCLUDED
#define VG_SOURCE_SINK_OVERLAY_HPP_INCLUDED
/**
* \file source_sink_overlay.hpp
*
* Provides SourceSinkOverlay, a HandleGraph implementation that joins all the
* heads and tails of a backing graph... | 2,026 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-5cf7-xj2f-mmwx",
"modified": "2022-04-29T01:26:53Z",
"published": "2022-04-29T01:26:53Z",
"aliases": [
"CVE-2003-0726"
],
"details": "RealOne player allows remote attackers to execute arbitrary script in the \"My Computer\" zone via a SMIL presentation with a U... | 617 |
45,293 | /*
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#ifndef RUNTIME_MM_INITIALIZATION_SCHEME_H
#define RUNTIME_MM_INITIALIZATION_SCHEME_H
#include "Memory.h"
namespace kotlin {
namespace mm {
class ThreadData;
OBJ_GE... | 229 |
310 | <gh_stars>100-1000
{
"name": "Pepperplate",
"description": "An online recipe and menu service.",
"url": "http://www.pepperplate.com/"
}
| 52 |
1,738 | <gh_stars>1000+
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the li... | 226 |
532 | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <ctime>
#include <iostream>
#include <fstream>
#include <set>
#include <unordered_map>
#include <algorithm>
#include <Python.h>
using namespace std;
typedef long long int64;
typedef pair<int,int> PII;
typedef struct { int first, seco... | 38,752 |
852 | <filename>Configuration/Skimming/python/PbPb_ZMuSkimMuonDPG_cff.py
import FWCore.ParameterSet.Config as cms
### HLT filter
import copy
from HLTrigger.HLTfilters.hltHighLevel_cfi import *
from PhysicsTools.PatAlgos.producersLayer1.genericParticleProducer_cfi import patGenericParticles
PbPbZMuHLTFilter = copy.deepcopy(... | 2,741 |
388 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------------... | 90 |
2,550 | <filename>wsgi.py
#!/usr/bin/env python3
# coding=utf-8
import sys
import os
sys.path.insert(0, os.path.dirname(__file__))
if os.path.dirname(__file__) != '':
os.chdir(os.path.dirname(__file__))
from zmirror.zmirror import app as application
__author__ = 'Aploium <<EMAIL>>'
def main():
from zmirror.zmirror ... | 1,433 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.