max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,868 | <filename>src/nfagraph/ng_lbr.h<gh_stars>1000+
/*
* Copyright (c) 2015-2017, Intel Corporation
*
* 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 ... | 810 |
10,225 | <reponame>PieterjanDeconinck/quarkus
package io.quarkus.it.jpa.integrator;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/int... | 220 |
678 | <reponame>bzxy/cydia
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI
*/
#import <iTunesStoreUI/iTunesStoreUI-Structs.h>
#import <iTunesStoreUI/NSCopying.h>
#import <iTunesStoreUI/XXUnknownSuperclass.h>
@class NSString, NSURL,... | 513 |
11,017 | <filename>prml/nn/io/__init__.py
from prml.nn.io.io import save_parameter, load_parameter, save_object, load_object
| 44 |
407 | <reponame>natefortuna/BIND
//
// BNDBindingCellView.h
// BINDPlugin
//
// Created by <NAME> on 29/11/2014.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "BIND.h"
@interface BNDBindingCellView : BNDTableViewCell
@end
| 111 |
2,443 | /*
* 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 ... | 919 |
853 | /*
20140210
<NAME>
Public domain.
The 'packetparser' library is used to parse SSH packets.
The 'packetparser_*' function has always information about buffer, buffer length
and position in the buffer. Before parsing checks if the position
is not exceeding the buffer length. If the position exceeds the buffer length,
pa... | 963 |
8,969 | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/dart_api.h"
#include "bi... | 1,064 |
419 | <reponame>ywlianghang/mysql_streamer
# -*- coding: utf-8 -*-
# Copyright 2016 Yelp 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
#
# Un... | 1,656 |
488 | /*
* An anti-dependence example
*/
void foo()
{
int i;
int a[100];
for (i = 0; i <= 98; i += 1) {
a[i] = a[i + 1] + 1;
}
}
| 71 |
2,406 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2020 Intel Corporation
#ifndef OPENCV_GAPI_GSTREAMING_FORMAT_HPP
#define OPENCV_GAPI_GSTREAMING_FORMAT_HP... | 593 |
5,766 | //
// LogStream.h
//
// Library: Foundation
// Package: Logging
// Module: LogStream
//
// Definition of the LogStream class.
//
// Copyright (c) 2006-2007, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Foundation_LogStream_INCLUDED
#define Foun... | 1,642 |
946 | <reponame>ctittel/worldengine<gh_stars>100-1000
import os
import sys
from tests.draw_test import TestBase
import unittest
from worldengine import __main__
from worldengine.cli.main import main
class TestCLI(TestBase):
def setUp(self):
super(TestCLI, self).setUp()
self.world = "%s/seed_28070.world... | 1,643 |
2,724 | [
{
"title" : "Column 'Product Name'",
"text" : "The header menu of column 1 shows all standard items for sorting, filtering, freezing (fixed columns, depends on toggle state of the button in the toolbar) and column visibility (depends also on toggle state of the button in the toolbar). If the cell filter is activ... | 303 |
663 | <reponame>mchelen-gov/integrations-core<gh_stars>100-1000
# (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import win32api # no cov
def get_last_error_message(): # no cov
"""
Helper function to get the error message from the calling thread's ... | 261 |
348 | {"nom":"Soultz-Haut-Rhin","circ":"4ème circonscription","dpt":"Haut-Rhin","inscrits":4893,"abs":2976,"votants":1917,"blancs":126,"nuls":38,"exp":1753,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":909},{"nuance":"REM","nom":"<NAME>","voix":844}]} | 104 |
743 | <filename>source/uwp/AdaptiveCardsObjectModel/lib/AdaptiveToggleInputParser.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "ToggleInput.h"
#include "AdaptiveToggleInputParser.g.h"
namespace winrt::AdaptiveCards::ObjectModel::Uwp::implementation
... | 416 |
678 | #include "debug.h"
#include "kernel/task.h"
#include "kernel/signal.h"
#include "kernel/errno.h"
int err_map(int err) {
#define ERRCASE(err) \
case err: return _##err;
switch (err) {
ERRCASE(EPERM)
ERRCASE(ENOENT)
ERRCASE(ESRCH)
ERRCASE(EINTR)
ERRCASE(EIO)
ER... | 1,552 |
716 | <reponame>rnui2k/vivisect
import os
import sys
import zipfile
'''
A utility package (in a central location) for packaging up
zip files full of source or whatever...
'''
def callback(z, dname, files):
if dname.find('.svn') != -1:
return
for fname in files:
if fname.endswith('.py'):
... | 383 |
1,666 | #ifndef __UVWASI_WASI_RIGHTS_H__
#define __UVWASI_WASI_RIGHTS_H__
#include "wasi_types.h"
#define UVWASI__RIGHTS_ALL (UVWASI_RIGHT_FD_DATASYNC | \
UVWASI_RIGHT_FD_READ | \
UVWASI_RIGHT_FD_SEEK | ... | 5,164 |
2,354 | <filename>include/singa/io/snapshot.h<gh_stars>1000+
/************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright o... | 994 |
12,278 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 1,240 |
344 | <reponame>anntzer/prettyprinter
import sys
from prettyprinter import set_default_config
# Need this to deterministically test on Python 3.5
set_default_config(sort_dict_keys=True)
def pytest_ignore_collect(path, config):
if 'test_dataclasses' in str(path) and sys.version_info < (3, 7):
return True
| 111 |
437 | <filename>Scripts/Bots/Instagram_Bot/Pyinstaller_python.py
import PyInstaller.__main__
PyInstaller.__main__.run(
[
"--name=Instagram Bot",
"-F",
"--icon=favicon.ico",
"Instagram_bot.py",
]
)
| 126 |
716 | //
// Copyright (c) 2019-2020 INRIA
//
#include "pinocchio/algorithm/jacobian.hpp"
#include "pinocchio/algorithm/rnea.hpp"
#include "pinocchio/algorithm/rnea-derivatives.hpp"
#include "pinocchio/algorithm/kinematics-derivatives.hpp"
#include "pinocchio/algorithm/contact-dynamics.hpp"
#include "pinocchio/algorithm/join... | 5,469 |
1,210 | <gh_stars>1000+
#include <cstdio>
#define MAX_VERTEX_COUNT 100000
#define MAX_EDGE_COUNT 100000
using namespace std;
struct vertex
{
int first_edge;
bool finish;
}V[MAX_VERTEX_COUNT];
struct edge
{
int endp, next;
}E[MAX_EDGE_COUNT];
int ec = 1;
struct qvertex
{
int first_edge;
}QV[MAX_VERTEX_COUNT];
struct ... | 1,143 |
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 "ui/ozone/platform/wayland/test/test_alpha_compositing.h"
#include <alpha-compositing-unstable-v1-server-protocol.h>
#include <wayland-server-co... | 480 |
312 | <reponame>EricAtORS/p4-fusion
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_worktree_h__
#define INCLUDE_worktree_h__
#include "common... | 349 |
12,278 | <reponame>elfringham/arangodb
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// yo... | 3,740 |
407 | package com.alibaba.tesla.appmanager.meta.helm.assembly;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.tesla.appmanager.common.assembly.BaseDtoConvert;
import com.alibaba.tesla.appmanager.common.enums.ComponentTypeEnum;
import com.alibaba.tesla.appmanager.common.enums.PackageTypeEnum;
import com.alibaba.t... | 971 |
563 | <reponame>OferLevi85/athenz
//
// This file generated by rdl 1.5.2. Do not modify!
//
package com.yahoo.athenz.zms;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;
import com.yahoo.rdl.*;
//
// AssertionConditions - The representation of list of assertion conditions
//
@JsonIgnore... | 470 |
346 | <filename>C1z/transpose-thread.c
///
/// Copyright (c) 2013, Intel Corporation
///
/// 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
/// ... | 3,372 |
997 | #ifndef PQCLEAN_SABER_AVX2_API_H
#define PQCLEAN_SABER_AVX2_API_H
#define PQCLEAN_SABER_AVX2_CRYPTO_ALGNAME "Saber"
#define PQCLEAN_SABER_AVX2_CRYPTO_BYTES 32
#define PQCLEAN_SABER_AVX2_CRYPTO_CIPHERTEXTBYTES 1088
#define PQCLEAN_SABER_AVX2_CRYPTO_PUBLICKEYBYTES 992
#define PQCLEAN_SABER_AVX2_CRYPTO_SECRETKEYBYTES 23... | 306 |
1,043 | <reponame>JeffMuchine/micro-server<gh_stars>1000+
package com.oath.micro.server.web.cors;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import javax.servlet.Filter;
import cyclops.control.Either;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.be... | 791 |
4,975 | <filename>auth/src/main/java/com/firebase/ui/auth/data/model/FirebaseAuthUIAuthenticationResult.java
package com.firebase.ui.auth.data.model;
import com.firebase.ui.auth.FirebaseAuthUIActivityResultContract;
import com.firebase.ui.auth.IdpResponse;
import androidx.annotation.NonNull;
import androidx.annotation.Nullab... | 625 |
736 | <filename>interface/face_detection_util.py
"""Contains functions for face detection. Adapted from tensorflow-face-detection repo.
https://github.com/yeephycho/tensorflow-face-detection
"""
import time
import numpy as np
import tensorflow as tf
from interface import label_map_util
from interface.object_detection_lib i... | 3,386 |
5,169 | {
"name": "LinusU_JSBridge",
"version": "1.0.0-alpha.14",
"summary": "Bridge your JavaScript library for usage in Swift",
"description": "Use a hidden WKWebView to bridge your JavaScript library for consumption from Swift",
"homepage": "https://github.com/LinusU/JSBridge",
"license": "MIT",
"authors": {
... | 266 |
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 ... | 1,416 |
2,753 | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>, <NAME>, <NAME>,
* <NAME>
*/
#ifndef _LIBLINEARMTL_H___
#define _LIBLINEARMTL_H___
#include <shogun/lib/config.h>
#include <shogun/lib/common.h>
#include <shogun/machine/LinearMachine.h>
#inclu... | 3,409 |
649 | <reponame>xjc90s/serenity-core
[{"displayName":"Accessing the application","name":"Accessing the application","type":"capability","narrative":{"name":"Narrative","text":""},"children":[{"displayName":"Learn about the application","name":"Learn about the application","type":"feature","narrative":{"name":"Narrative","tex... | 689 |
615 | /**
* @file word_observations.h
* @author <NAME>
*
* All files in META are dual-licensed under the MIT and NCSA licenses. For more
* details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the
* project.
*/
#ifndef META_SEQUENCE_HMM_WORD_OBS_H_
#define META_SEQUENCE_HMM_WORD_OBS_H_
#include "meta... | 1,782 |
843 | <gh_stars>100-1000
#ifndef IPUTIL_H
#define IPUTIL_H
ssize_t inet_add_option(uint16_t eth_type, void *buf, size_t len,
int proto, const void *optbuf, size_t optlen);
void inet_checksum(uint16_t eth_type, void *buf, size_t len);
int raw_ip_opt_parse(int argc, char *argv[], uint8_t *type, uint8_t *le... | 235 |
618 | package hprose.example.io;
import static hprose.io.HproseTags.TagClosebrace;
import static hprose.io.HproseTags.TagMap;
import static hprose.io.HproseTags.TagOpenbrace;
import hprose.io.serialize.ReferenceSerializer;
import hprose.io.serialize.Writer;
import java.io.IOException;
import java.io.OutputStream;
import org... | 337 |
334 | /*
* Copyright 2013, 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... | 5,254 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-3h56-q4g9-c72w",
"modified": "2022-05-01T06:52:37Z",
"published": "2022-05-01T06:52:37Z",
"aliases": [
"CVE-2006-1766"
],
"details": "Multiple SQL injection vulnerabilities in Papoo 2.1.5, and 3 beta1 and earlier, allow remote attackers to ex... | 455 |
2,702 | <filename>api/src/main/java/keywhiz/api/automation/v2/SecretDetailResponseV2.java<gh_stars>1000+
package keywhiz.api.automation.v2;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
import com.google.common.base.MoreObject... | 2,576 |
1,279 | {
"errors": [
{
"errorMessage": "Transforming resource with id [IoTRuleFunc] attempts to create a new resource with id [IoTRuleFuncMyIoTRule] and type \"AWS::IoT::TopicRule\". A resource with that id already exists within this template. Please use a different id for that resource."
}
],
"errorMessa... | 192 |
736 | <filename>Src/Common/FSecure/WinTools/WindowsVersion.h
// Replacement for #include <VersionHelpers.h> that doesn't require exe manifest
// Taken from https://github.com/DarthTon/Blackbone and modified
// License: MIT
#pragma once
#ifndef _WIN32_WINNT
# define _WIN32_WINNT _WIN32_WINNT_WIN7
#endif
#ifndef NOMINMAX
# d... | 2,919 |
746 | package org.protege.editor.core.ui.view;
import org.protege.editor.core.plugin.ProtegePlugin;
import org.protege.editor.core.ui.workspace.Workspace;
import javax.annotation.Nonnull;
import java.awt.*;
import java.net.URI;
import java.util.Optional;
import java.util.Set;
/**
* Author: <NAME><br>
* The University O... | 403 |
335 | {
"word": "Epoch",
"definitions": [
"a particular period of time marked by distinctive features, events, etc.",
"the beginning of a distinctive period in the history of anything."
],
"parts-of-speech": "noun"
}
| 72 |
14,668 | <gh_stars>1000+
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/crosapi/device_settings_ash.h"
#include <utility>
#include "chrome/browser/ash/crosapi/crosapi_util.h"
#inc... | 398 |
317 | <gh_stars>100-1000
package com.googlecode.totallylazy.proxy;
import com.googlecode.totallylazy.Unchecked;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import static com.googlecode.totallylazy.proxy.Proxy.proxy;
public class Call<T, R> implements InvocationHandler {
public static... | 285 |
3,263 | /*
* Copyright 2019 Immutables Authors and Contributors
*
* 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... | 480 |
768 | /*
Copyright (c) 2008-2020, <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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the fo... | 6,750 |
4,124 | <reponame>chenqixu/jstorm<filename>jstorm-utility/ons/src/main/java/com/alibaba/jstorm/ons/consumer/ConsumerConfig.java<gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informatio... | 907 |
2,406 | <gh_stars>1000+
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#ifdef CPU_DEBUG_CAPS
#include <map>
#include <string>
#include <vector>
#define CPU_DEBUG_CAP_ENABLE(_x) _x;
#define CPU_DEBUG_CAPS_ALWAYS_TRUE(x) true
namespace MKLDNNPlugin {
namespace DebugCaps {
cla... | 642 |
1,006 | <reponame>eenurkka/incubator-nuttx<filename>arch/arm/include/stm32h7/stm32h7x3xx_irq.h
/****************************************************************************
* arch/arm/include/stm32h7/stm32h7x3xx_irq.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. ... | 7,456 |
341 |
package org.myproject.ms.monitoring.instrument.web.client;
import java.lang.invoke.MethodHandles;
import java.net.URI;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.apache.commons.logging.Log;
import org.apache.commons.... | 2,468 |
660 | package com.yan.refreshloadlayouttest.testactivity;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
imp... | 2,511 |
1,747 | from .trial import VowpalWabbitTrial
from .trial_runner import OnlineTrialRunner
| 23 |
876 | <gh_stars>100-1000
import abc
import json
import random
import time
from datetime import datetime
from feapder.db.redisdb import RedisDB
from feapder.utils.log import log
from feapder.utils.tools import get_md5, timestamp_to_date
class GuestUser:
def __init__(self, user_agent=None, proxies=None, cookies=None, **... | 3,257 |
10,225 | package io.quarkus.qute.generator;
public class BaseService {
public String getBase() {
return "oops";
}
}
| 51 |
2,350 | <filename>Source/UnrealEnginePython/Private/UEPyAssetUserData.h<gh_stars>1000+
#pragma once
#include "UEPyModule.h"
#if WITH_EDITOR
#include "EditorFramework/AssetImportData.h"
PyObject *py_ue_asset_import_data(ue_PyUObject *, PyObject *);
PyObject *py_ue_asset_import_data_set_sources(ue_PyUObject *, PyObject *);
#... | 129 |
852 | <reponame>ckamtsikis/cmssw
#include "CondTools/RPC/interface/RPCEMapSourceHandler.h"
#include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/CondDB/interface/ConnectionPool.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
... | 9,299 |
1,473 | <reponame>JiangJibo/pinpoint
/*
* Copyright 2018 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... | 2,459 |
324 | /*
* Copyright (c) 2011-2018, <NAME>. All Rights Reserved.
*
* 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 A... | 1,023 |
803 | """The ``dask_ml.linear_model`` module implements linear models for
classification and regression.
"""
from .glm import LinearRegression, LogisticRegression, PoissonRegression
__all__ = [
"LogisticRegression",
"LinearRegression",
"PoissonRegression",
]
| 84 |
2,113 |
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
// Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames
// Copyright (C) 2015 Faust Logic, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and ... | 19,074 |
6,041 | <filename>pytorch3d/csrc/pulsar/pytorch/tensor_util.cpp
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifdef WITH_CUDA
#include <ATen/cuda/CUDACont... | 817 |
526 | <filename>fake_format.py
#!/usr/bin/env python
# coding: utf-8
from faker import Faker
def fake_fmt(fmt="{first_name}'s favorite number: {random_int}", fake=None):
fake = fake or Faker()
fields = [fld.split("}")[0].split(":")[0] for fld in fmt.split("{")[1:]]
return fmt.format(**{field: getattr(fake, fie... | 479 |
1,444 | <gh_stars>1000+
package mage.client.components.ext;
import mage.client.components.MageRoundPane;
import javax.swing.*;
/**
* @author ayratn
*/
public final class TestMageFloatPane {
public static void main(String... args) {
JFrame f = new JFrame();
f.setSize(600, 400);
f.setVisible(tr... | 382 |
30,023 | <reponame>domwillcode/home-assistant<gh_stars>1000+
"""Shared schema code."""
import voluptuous as vol
CONF_SCHEMA = "schema"
LEGACY = "legacy"
STATE = "state"
MQTT_VACUUM_SCHEMA = vol.Schema(
{
vol.Optional(CONF_SCHEMA, default=LEGACY): vol.All(
vol.Lower, vol.Any(LEGACY, STATE)
)
... | 335 |
480 | /*
* 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
*
* Unless required by app... | 6,762 |
375 | <filename>src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/refactoring/RedXmlChangesProcessor.java
/*
* Copyright 2017 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework... | 196 |
734 | //
// UIImage+Bundle.h
// DBCamera
//
// Created by <NAME> on 2015-07-15.
// Copyright (c) 2015 PSSD - <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (Bundle)
/**
* Returns an image in current bundle, compatible with framework
*
* @param name The name of the image
*
* @return ... | 142 |
5,169 | <reponame>Gantios/Specs<filename>Specs/e/b/4/YUProgressHUD/1.1.2/YUProgressHUD.podspec.json<gh_stars>1000+
{
"name": "YUProgressHUD",
"version": "1.1.2",
"summary": "An iOS activity indicator view.",
"description": "YUProgressHUD is iPad and iPhone compatible. Supports landscape and portrait orientations and ca... | 302 |
8,360 | <gh_stars>1000+
import os
from collections import OrderedDict
import numpy as np
from tqdm import tqdm
from paddlehub.common.logger import logger
from slda_webpage.vocab import Vocab, WordCount
class TopicModel(object):
"""Storage Structure of Topic model, including vocabulary and word topic count.
"""
... | 2,023 |
308 | //
// HFCardCollectionViewLayout.h
// HFCardCollectionViewLayout
//
// Created by <NAME> on 23/2/17.
// Copyright © 2017 hendrik-frahmann. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for HFCardCollectionViewLayout.
FOUNDATION_EXPORT double HFCardCollectionViewLayoutVersionNumber;
/... | 175 |
5,939 | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package com.twitter.finagle.thrift.thrift;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSe... | 1,604 |
1,078 | package com.turn.ttorrent.client.strategy;
import com.turn.ttorrent.client.Piece;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.BitSet;
import java.util.SortedSet;
public class RequestStrategyImplAnyInterestingTest {
private final SortedS... | 558 |
1,248 | <filename>client/client-v1/src/main/java/org/apache/atlas/AtlasAdminClient.java<gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The... | 2,694 |
6,989 | <filename>env/lib/python3.8/site-packages/numpy/distutils/fcompiler/pathf95.py<gh_stars>1000+
from __future__ import division, absolute_import, print_function
from numpy.distutils.fcompiler import FCompiler
compilers = ['PathScaleFCompiler']
class PathScaleFCompiler(FCompiler):
compiler_type = 'pathf95'
des... | 509 |
796 | <gh_stars>100-1000
/*
* Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under the Mulan PSL v1.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at:
*
* http://license.coscl.org... | 1,213 |
1,041 | <filename>ebean-core/src/main/java/io/ebeaninternal/server/deploy/BeanIudMetrics.java
package io.ebeaninternal.server.deploy;
import io.ebean.meta.MetricVisitor;
import io.ebean.metric.MetricFactory;
import io.ebean.metric.TimedMetric;
import io.ebeaninternal.server.core.PersistRequest;
/**
* Metrics for ORM Insert ... | 926 |
336 | <filename>resources/experiments/worm/Bios.h
#ifndef __BIOS_H__
#define __BIOS_H__
#include "Classes.h"
#include "Types.h"
class DLLAPI BIOS {
public:
class DLLAPI DBG {
public:
static void Print (const char* format, ...);
// move to utils?
static int sprintf(char* buf, const char * format, ...);
};
class D... | 3,097 |
1,117 | <filename>radar-admin/src/main/java/com/pgmmers/radar/util/ExportExcelInfo.java
package com.pgmmers.radar.util;
import java.util.ArrayList;
import java.util.List;
/**
* 导入Excel列信息
* @author xushuai
*/
public class ExportExcelInfo<TRow> {
public ExportExcelInfo(List<TRow> dataSource) {
this.setDataSour... | 1,275 |
1,600 | ../../cxx-example/account/account.h | 12 |
21,684 | // Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_ERASE_RANGE_HPP_
#define RDB_PROTOCOL_ERASE_RANGE_HPP_
#include <vector>
#include "errors.hpp"
#include "btree/keys.hpp"
#include "btree/types.hpp"
#include "buffer_cache/types.hpp"
class btree_slice_t;
struct btree_key_t;
class deletion_con... | 669 |
778 | <gh_stars>100-1000
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main author: <NAME>
//
... | 8,729 |
338 | /*
* 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 writing, software
* distribu... | 1,257 |
324 | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "... | 1,699 |
491 | /*
* APIC support
*
* Copyright (c) 2004-2005 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
... | 2,746 |
372 | /*
* 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 writing, software distributed under t... | 1,287 |
360 | <filename>src/utils/encoders/encoder.h
//
// encoder.h
// C-ray
//
// Created by Valtteri on 8.4.2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
#pragma once
struct imageFile;
struct renderInfo;
//Writes image data to file
void writeImage(struct imageFile *image);
| 102 |
14,668 | <reponame>chromium/chromium
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
#include "base/files/file_util.h"
#inc... | 5,130 |
3,705 | import unittest
import numpy
import six
from chainer.backends import cuda
from chainer import functions
from chainer.functions.rnn import slstm
from chainer import gradient_check
from chainer import testing
from chainer.testing import backend
def _sigmoid(x):
half = x.dtype.type(0.5)
return numpy.tanh(x * h... | 3,240 |
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 6,329 |
15,398 | //
// UIViewController+MASAdditions.h
// Masonry
//
// Created by <NAME> on 2015-06-23.
//
//
#import "MASUtilities.h"
#import "MASConstraintMaker.h"
#import "MASViewAttribute.h"
#ifdef MAS_VIEW_CONTROLLER
@interface MAS_VIEW_CONTROLLER (MASAdditions)
/**
* following properties return a new MASViewAttribute wit... | 376 |
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 ... | 1,073 |
13,566 | <gh_stars>1000+
{
"username":"input[name='email']",
"password":"<PASSWORD>='password']",
"submitBtn":"button[type='submit']"
}
| 52 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.