max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,144 | package de.metas.i18n.impl;
import java.util.Properties;
import java.util.Set;
import de.metas.i18n.ILanguageBL;
import de.metas.i18n.ITranslatableString;
import de.metas.i18n.Msg;
import de.metas.util.Services;
import lombok.NonNull;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2019 metas G... | 592 |
372 | <gh_stars>100-1000
/*
* 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 ... | 2,009 |
372 | <reponame>wuyinlei/VideoDemo
package org.sunger.net.utils;
import java.util.Formatter;
import java.util.Locale;
/**
* Created by Administrator on 2015/11/3.
*/
public class MediaPlayerUtils {
private static StringBuilder mFormatBuilder;
private static Formatter mFormatter;
static {
mFormatBuild... | 459 |
486 | <filename>PlacesAPI/app/src/main/java/com/tutsplus/placesapi/MainActivity.java
package com.tutsplus.placesapi;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.view.... | 2,953 |
435 | {
"copyright_text": "Standard YouTube License",
"description": "PyCon Finland 2015\n<NAME> - Bug forecasting by visualizing code evolution\n\nI would like to introduce and expand the ideas presented by <NAME> in his work (Your Code as a Crime Scene \u2013 applying forensics to mining software repositories - where d... | 429 |
2,554 | #!/usr/bin/python
"""
Configure and run tools
"""
from subprocess import call
import os
import sys
# Enable logging
import logging
logging.basicConfig(
format='%(asctime)s [%(levelname)s] %(message)s',
level=logging.INFO,
stream=sys.stdout)
log = logging.getLogger(__name__)
ENV_RESOURCES_PATH = os.ge... | 1,478 |
1,155 | /*
* Copyright 2009, <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 con... | 2,151 |
839 | <reponame>AnEmortalKid/cxf<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 L... | 3,914 |
22,688 | <filename>modules/canbus/vehicle/zhongyun/protocol/vehicle_state_feedback_c1.cc<gh_stars>1000+
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u... | 2,170 |
1,182 | <filename>workers/example/worker.json
{
"name": "example",
"ip": "0.0.0.0",
"hostname": "example.com",
"username": "user",
"password": <PASSWORD>,
"port": 22,
"python": "python3",
"city": "mycensoredcity",
"keyfile": "example.pem",
"country": "mycensoredcountry",
"geneva_path... | 182 |
5,169 | {
"name": "BMXSwitch",
"version": "1.0",
"summary": "Image based replacement for UISwitch.",
"homepage": "https://github.com/mbigatti/BMXSwitch",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/mbigatti/BMXSwitch.git",
"tag": "1.0"
},
"platfor... | 199 |
552 | <gh_stars>100-1000
#pragma once
namespace et {
//=============
// Ref Pointer
//=============
// static functionality
////////////////////////
//-----------------------
// RefPtr::StaticCast
//
template <typename TDataType>
template <typename TOtherType>
RefPtr<TDataType> RefPtr<TDataType>::StaticCast(RefPtr<TOt... | 2,757 |
488 | // g0013.cc
// compound lit with type defn inside array deref
// related to d0078.cc
void f()
{
int *a;
a[
(
(struct Foo { int x; }){ 0 } // compound lit: {x=0}
).x
];
}
| 98 |
879 | package org.zstack.sdk.iam2.entity;
public class IAM2ProjectAttributeInventory extends org.zstack.sdk.iam2.entity.IAM2AttributeInventory {
public java.lang.String projectUuid;
public void setProjectUuid(java.lang.String projectUuid) {
this.projectUuid = projectUuid;
}
public java.lang.String... | 145 |
310 | <reponame>dreeves/usesthis
{
"name": "Proun",
"description": "An abstract ball game.",
"url": "http://www.proun-game.com/"
} | 55 |
980 | package org.jcodec.codecs.vpx.vp8.data;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License.
*
* The class is a direct java port of libvpx's
* (https://github.com/webmproject/libvpx) relevant VP8 code with significant
* java oriented refactoring.
*
* @au... | 159 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-4w62-g43g-55gj",
"modified": "2022-05-13T01:36:05Z",
"published": "2022-05-13T01:36:05Z",
"aliases": [
"CVE-2017-9656"
],
"details": "The backend database of the Philips DoseWise Portal application versions 1.1.7.333 and 2.1.1.3069 uses hard-coded credentials f... | 637 |
17,481 | <gh_stars>1000+
/*
* Copyright (C) 2016 The Dagger Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 860 |
313 | #ifndef BOOK_CHAPTER6_TASK_PROCESSOR_NETWORK_CLIENT_HPP
#define BOOK_CHAPTER6_TASK_PROCESSOR_NETWORK_CLIENT_HPP
#include "../02_tasks_processor_timers/tasks_processor_timers.hpp"
#include <boost/asio/ip/tcp.hpp>
#include <boost/core/noncopyable.hpp>
struct connection_with_data: boost::noncopyable {
boost::asio::... | 1,630 |
403 | /*
* Camunda Platform REST API
* OpenApi Spec for Camunda Platform REST API.
*
* The version of the OpenAPI document: 7.16.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.camu... | 1,061 |
313 | /*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009 <NAME> and contributors (see also: LICENSE)
*
* util.c: Utility functions, which can be useful everywhere within i3 (see
* also libi3).
*
*/
#pragma once
#include <config.h>
#include <err.h>
#include "data.h"
#... | 2,169 |
831 | import demo_long
# Testing a proper __module__, but no useful __qualname__ attribute.
bad_qualname = demo_long.DataDemo.__init__
def new_union(a: int | dict[str, "Foo"]) -> bool | None:
"""Testing Python 3.10's new type union syntax."""""
class Foo:
pass
| 95 |
524 | <gh_stars>100-1000
package com.github.simonpercic.oklogexamplejava.data.api.okhttp3;
import com.github.simonpercic.oklog3.OkLogInterceptor;
import java.util.Set;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import dagger.multibindings.IntoSet;
import okhttp3.Interceptor;
import okhtt... | 790 |
778 | <gh_stars>100-1000
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: <NAME>
// ... | 8,763 |
359 | /*
Copyright 2018 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | 353 |
449 | <filename>Chapter4/ch4_turtle_trading.py<gh_stars>100-1000
#!/bin/python3
import pandas as pd
import numpy as np
from pandas_datareader import data
import matplotlib.pyplot as plt
def load_financial_data(start_date, end_date,output_file):
try:
df = pd.read_pickle(output_file)
print('File data found... | 2,102 |
574 | <filename>test/tst_compoundvar.py
import sys
import unittest
import os
import tempfile
from netCDF4 import Dataset, CompoundType
import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
# test compound data types.
FILE_NAME = tempfile.NamedTemporaryFile(suffix='.nc', delete=False).na... | 2,989 |
787 | <filename>src/main/java/org/spongepowered/api/data/persistence/DataStore.java
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obta... | 4,419 |
1,089 | package com.cengalabs.flatui.sample;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
import com.cengalabs.flatui.TouchEffectAnimator;
/**
* ... | 798 |
582 | <reponame>OLibutzki/moduliths
/*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
... | 1,356 |
4,403 | package cn.hutool.db;
import cn.hutool.db.pojo.User;
import org.junit.Assert;
import org.junit.Test;
/**
* Entity测试
*
* @author looly
*
*/
public class EntityTest {
@Test
public void parseTest() {
User user = new User();
user.setId(1);
user.setName("test");
Entity entity = Entity.create("testTable").... | 525 |
3,442 | <filename>src/net/java/sip/communicator/service/callhistory/event/CallRecordEvent.java
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... | 763 |
672 | int __attribute__((weak)) A[] = { 1, 2, 3, 4 };
int* getA() { return A; }
| 32 |
690 | <reponame>Mr00Anderson/artemis-odb
package com.artemis;
import com.artemis.utils.Bag;
import com.artemis.utils.ImmutableBag;
import com.artemis.utils.BitVector;
/** Delegate for system invocation.
*
* Maybe you want to more granular control over system invocations, feed certain systems different deltas,
* or comp... | 672 |
404 | """scrapli telnet/ssh/netconf client library"""
from scrapli.driver.base import AsyncDriver, Driver
from scrapli.factory import AsyncScrapli, Scrapli
__all__ = (
"AsyncDriver",
"Driver",
"AsyncScrapli",
"Scrapli",
)
| 96 |
364 | package ca.uhn.fhir.jpa.provider.r5;
import ca.uhn.fhir.jpa.interceptor.CascadingDeleteInterceptor;
import ca.uhn.fhir.jpa.provider.r5.BaseResourceProviderR5Test;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.rest.api.Constants;
import ca.uhn.fhir.rest.api.MethodOutcome;
import ca.uhn.fhir.rest.api.RestO... | 2,358 |
459 | <reponame>jose-villegas/VCT_Engine
/*
Copyright 2005-2015 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks. Threading Building Blocks is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License
version 2 as publis... | 1,011 |
1,178 | from sciapp.action import FreeLineROI as Plugin | 13 |
1,144 | <gh_stars>1000+
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2000-2009
* <NAME>, DENX Software Engineering, <EMAIL>.
*/
#include <common.h>
#include <mapmem.h>
#include <linux/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
#define LINUX_ARM64_IMAGE_MAGIC 0x644d5241
/* See Documentation/arm64/booting.txt in the Lin... | 806 |
375 | package hudson.plugins.git.extensions.impl;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.Set;
import hudson.model.Result;
import hudson.model.FreeStyleProject;
import hudson.plugins.git.TestGitRepo;
import hudson.plugins.git.exten... | 888 |
375 | <filename>src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin.tests/src/org/robotframework/ide/eclipse/main/plugin/mockmodel/NamedElement.java
/*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.i... | 511 |
401 | <reponame>Zweihui/Seraphim
package com.zwh.mvparms.eyepetizer.mvp.contract;
import com.jess.arms.mvp.IView;
import com.jess.arms.mvp.IModel;
import com.zwh.mvparms.eyepetizer.mvp.model.entity.AuthorAlbumInfo;
import com.zwh.mvparms.eyepetizer.mvp.model.entity.AuthorDynamicInfo;
import com.zwh.mvparms.eyepetizer.mvp.mo... | 664 |
1,900 | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 476 |
695 | <gh_stars>100-1000
#include "kblayout.h"
#include <assert.h>
namespace reindexer {
void KbLayout::GetVariants(const std::wstring& data, std::vector<std::pair<std::wstring, int>>& result) {
std::wstring result_string;
result_string.reserve(data.length());
for (size_t i = 0; i < data.length(); ++i) {
auto sym = d... | 1,157 |
777 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_DBUS_SERVICES_CROS_DBUS_SERVICE_H_
#define CHROMEOS_DBUS_SERVICES_CROS_DBUS_SERVICE_H_
#include <memory>
#include <vector>
#include... | 650 |
2,728 | # 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.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 728 |
492 | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, <NAME> <<EMAIL>>
# License: http://snmplabs.com/pysnmp/license.html
#
# ASN.1 source file:///usr/share/snmp/mibs/INET-ADDRESS-MIB.txt
# Produced by pysmi-0.4.0 at Thu Feb 14 23:06:46 2019
#
if 'mibBuilder' not in globals():
import sys
sys.... | 6,511 |
5,279 | /*
* 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 ... | 4,306 |
555 | <filename>proxypool-web/src/main/java/com/cv4j/proxy/web/dao/ProxyDao.java
package com.cv4j.proxy.web.dao;
import com.cv4j.proxy.web.domain.ProxyData;
import com.cv4j.proxy.web.dto.PageResult;
import com.cv4j.proxy.web.dto.ProxyDataDTO;
import com.cv4j.proxy.web.dto.QueryProxyDTO;
import java.util.List;
impor... | 328 |
6,989 | <reponame>jochenater/catboost
#include "quantized_features_info.h"
#include <catboost/libs/cat_feature/cat_feature.h>
#include <library/cpp/dbg_output/dump.h>
#include <util/generic/cast.h>
#include <util/generic/ptr.h>
#include <util/generic/xrange.h>
#include <util/stream/file.h>
#include <util/system/rwlock.h>
#i... | 1,812 |
5,169 | <filename>Specs/2/3/4/AFOFFMpegLib/0.0.22/AFOFFMpegLib.podspec.json<gh_stars>1000+
{
"name": "AFOFFMpegLib",
"version": "0.0.22",
"summary": "decoding.",
"description": "Use soft decode to decode video.",
"homepage": "https://github.com/PangDuTechnology/AFOFFMpegLib.git",
"license": "MIT",
"authors": {
... | 1,069 |
439 | import java.math.BigInteger;
import java.util.stream.IntStream;
class Grains {
BigInteger grainsOnSquare(final int square) {
if (1 <= square && square <= 64) {
return BigInteger.valueOf(2).pow(square - 1);
} else {
throw new IllegalArgumentException("square must be between... | 289 |
1,433 | /*
* //******************************************************************
* //
* // Copyright 2015 Intel Corporation.
* //
* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* //
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use this file except in compl... | 431 |
5,169 | {
"name": "NavKit",
"version": "0.2",
"license": "MIT",
"summary": "Simple and integrated way to customize navigation bar experience on iOS app.",
"homepage": "https://github.com/wilbertliu/NavKit",
"social_media_url": "https://twitter.com/wilbertliu",
"authors": {
"<NAME>": "<EMAIL>"
},
"source":... | 238 |
1,273 | <gh_stars>1000+
package org.broadinstitute.hellbender.tools.copynumber.formats.records;
import org.broadinstitute.hellbender.utils.SimpleInterval;
import org.broadinstitute.hellbender.utils.Utils;
public class CalledLegacySegment extends LegacySegment {
private final CalledCopyRatioSegment.Call call;
public... | 739 |
1,615 | //
// Created by Xiong.Fangyu 2019/06/03.
//
#ifndef __M_MEM_H
#define __M_MEM_H
#include <stdlib.h>
/**
* 申请和释放内存入口,使用此函数能在开启 J_API_INFO 和 MEM_INFO 时
* 记录内存使用和调用栈信息,方便查找内存泄漏
* ns > 0 malloc或realloc内存
* ns == 0 free src
*/
void * m_malloc(void* src, size_t os, size_t ns);
///参考实现
void * m_malloc(void* src, siz... | 312 |
1,350 | <filename>sdk/resourcehealth/azure-resourcemanager-resourcehealth/src/main/java/com/azure/resourcemanager/resourcehealth/models/EventPropertiesRecommendedActions.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generato... | 1,112 |
451 | <filename>applis/OLD-MICMAC-OLD/cAppliMICMAC_GPU.cpp
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>... | 19,088 |
12,252 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 1,008 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... | 438 |
351 | ################################################################################
# _ ____ ___ #
# / \ / ___|_ _| #
# / _ \| | | | ... | 20,789 |
672 | <reponame>DogeCoding/iOSCompiledRuntime<gh_stars>100-1000
/*
* Copyright (c) 2000-2007 AppleInc. All rights reserved.
*/
/*
* @OSF_COPYRIGHT@
*/
/*
* HISTORY
*
* Revision 1.2 1998/09/30 21:20:45 wsanchez
* Merged in IntelMerge1 (mburg: Intel support)
*
* Revision 1.1.2.1 1998/09/30 18:18:50 mburg
* Chan... | 2,526 |
407 | <filename>saas/cluster/api/clustermanage/clustermanage-server/src/main/java/com/alibaba/sreworks/clustermanage/server/controllers/ClusterController.java<gh_stars>100-1000
package com.alibaba.sreworks.clustermanage.server.controllers;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import ja... | 3,894 |
329 | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | 1,243 |
2,740 | <filename>coremltools/converters/mil/mil/ops/tests/test_conv.py<gh_stars>1000+
# Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from coremltools.conve... | 9,153 |
574 | <reponame>xuanwcn/swift<filename>swift-generator/src/main/java/com/facebook/swift/generator/template/EnumContext.java
/*
* Copyright (C) 2012 Facebook, 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... | 1,317 |
4,224 | <reponame>lgarciaos/Firmware
/****************************************************************************
*
* Copyright (c) 2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | 1,694 |
348 | <filename>docs/data/leg-t2/033/03302063.json
{"nom":"Bordeaux","circ":"2ème circonscription","dpt":"Gironde","inscrits":65995,"abs":40852,"votants":25143,"blancs":2576,"nuls":818,"exp":21749,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":13874},{"nuance":"LR","nom":"Mme <NAME>","voix":7875}]} | 122 |
518 | {
"name": " <NAME>",
"category": "HR & Legal",
"start_url": "https://newton.newtonsoftware.com/login",
"icons": [
{
"src": "https://cdn.filestackcontent.com/B0MGgcfTuOSfnTkpRygm"
},
{
"src": "https://cdn.filestackcontent.com/du4EZHRQ3S7p2yJY27zx",
"platform": "browserx"
}
],
... | 209 |
764 | {
"symbol": "MAX",
"account_name": "eosmax1token",
"overview": {
"en": "EOSMax is a gaming entertainment platform based on the intelligent contract of Eos main network. The platform's gambling games all adopt the original random number generation technology, and the team has made the algorithm open ... | 181 |
3,156 | from test.integration.base import DBTIntegrationTest, use_profile
import yaml
class TestBaseCaching(DBTIntegrationTest):
@property
def schema(self):
return "adapter_methods_caching"
@property
def models(self):
return "models"
@property
def project_config(self):
return... | 267 |
3,027 | <reponame>joedomino874/hummingbot
import asyncio
import json
import unittest
from typing import Awaitable, List
from unittest.mock import AsyncMock, patch
import aiohttp
from hummingbot.core.web_assistant.connections.ws_connection import WSConnection
from hummingbot.core.web_assistant.connections.data_types import WS... | 4,839 |
407 | package com.alibaba.tesla.appmanager.server.action;
import com.alibaba.tesla.appmanager.common.exception.AppErrorCode;
import com.alibaba.tesla.appmanager.common.exception.AppException;
import com.alibaba.tesla.appmanager.server.event.loader.ComponentPackageTaskStateActionLoadedEvent;
import lombok.extern.slf4j.Slf4j;... | 1,017 |
1,338 | <filename>headers/os/app/Handler.h
/*
* Copyright 2001-2014 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#ifndef _HANDLER_H
#define _HANDLER_H
#include <Archivable.h>
class BLooper;
class BMessageFilter;
class BMessage;
class BMessenger;... | 1,170 |
879 | <filename>header/src/main/java/org/zstack/header/storage/backup/ExportImageFromBackupStorageMsg.java<gh_stars>100-1000
package org.zstack.header.storage.backup;
import org.zstack.header.message.NeedReplyMessage;
/**
* Created by mingjian.deng on 17/2/21.
*/
public class ExportImageFromBackupStorageMsg extends NeedR... | 436 |
815 | <filename>test/t/src/lily_backbone_bindings.h
#ifndef LILY_BACKBONE_BINDINGS_H
#define LILY_BACKBONE_BINDINGS_H
/* Generated by lily-bindgen, do not edit. */
#if defined(_WIN32) && !defined(LILY_NO_EXPORT)
#define LILY_BACKBONE_EXPORT __declspec(dllexport)
#else
#define LILY_BACKBONE_EXPORT
#endif
#define GET_Interpr... | 2,379 |
1,768 | // Copyright (c) 2003 Compaq Corporation. All rights reserved.
package tla2sany;
/**
* SANY is a shell class to call the main driver method of SANY
*/
public class SANY {
public static final void main(String[] args) {
tla2sany.drivers.SANY.SANYmain(args);
}
}
| 96 |
1,735 | from .celery import app as celery_app # noqa
default_app_config = "boltstream.apps.BoltstreamAppConfig"
| 36 |
313 | <gh_stars>100-1000
/*
* Copyright 2018 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,203 |
617 | #!/usr/bin/env python
'''Wrapper for python2 and python3 around compileall to raise exception
when a python byte code generation failed.
Inspired from:
http://stackoverflow.com/questions/615632/how-to-detect-errors-from-compileall-compile-dir
'''
from __future__ import print_function
import sys
import py_compile
i... | 776 |
2,531 | #ifndef ${id upper}_H
#define ${id upper}_H
/* This generated file contains includes for project dependencies */
#include "${id dash}/bake_config.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif
| 85 |
507 | <gh_stars>100-1000
# terrascript/resource/hashicorp/azurestack.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:13:15 UTC)
import terrascript
class azurestack_availability_set(terrascript.Resource):
pass
class azurestack_dns_a_record(terrascript.Resource):
pass
class azurestack_dns_zone(t... | 1,147 |
634 | // Copyright 2000-2018 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.
package com.intellij.ide.actions.runAnything.activity;
import com.intellij.openapi.actionSystem.DataContext;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
p... | 187 |
308 | <reponame>yusufcakal/Modular-Architecture-Hexagonal-Demo-Project<filename>payment-api/infra/src/main/java/com/hexagonaldemo/paymentapi/adapters/balance/rest/BalanceController.java
package com.hexagonaldemo.paymentapi.adapters.balance.rest;
import com.hexagonaldemo.paymentapi.adapters.balance.rest.dto.BalanceResponse;
... | 617 |
461 | import java.util.HashMap;
import java.util.Map;
public class Solution4 {
public int numberOfBoomerangs(int[][] points) {
int res = 0;
for (int[] point : points) {
Map<Integer, Integer> map = new HashMap<>();
// 其它的点
for (int[] other : points) {
... | 581 |
563 | // Automatically generated by the Fast Binary Encoding compiler, do not modify!
// https://github.com/chronoxor/FastBinaryEncoding
// Source: test.fbe
// Version: 1.8.0.0
package com.chronoxor.test;
public class StructSimple implements Comparable<Object>
{
public int id = 0;
public boolean f1 = false;
pub... | 5,040 |
320 | <reponame>yvesjores/AndroidSensorsProgramming<filename>app/src/root/gast/playground/sensor/SensorDisplayFragment.java
/*
* Copyright 2012 <NAME> and <NAME>
*
* 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... | 7,326 |
384 |
package org.holoeverywhere.app;
import android.content.Context;
import android.content.DialogInterface;
import android.database.Cursor;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Message;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View... | 8,238 |
913 | /**
* CANopen Global fail-safe command protocol.
*
* @file CO_GFC.c
* @ingroup CO_GFC
* @author <NAME>
* @copyright 2020 - 2020 <NAME>
*
* This file is part of CANopenNode, an opensource CANopen Stack.
* Project home page is <https://github.com/CANopenNode/CANopenNode>.
* For more informatio... | 2,006 |
334 | // Auto generated code, do not modify
package nxt.http.callers;
public class DgsListingCall extends CreateTransactionCallBuilder<DgsListingCall> {
private DgsListingCall() {
super(ApiSpec.dgsListing);
}
public static DgsListingCall create() {
return new DgsListingCall();
}
public ... | 346 |
4,036 | <reponame>madhurimamandal/codeql
// Generated automatically from android.os.Handler for testing purposes
package android.os;
import android.os.Looper;
import android.os.Message;
import android.util.Printer;
public class Handler
{
public Handler(){}
public Handler(Handler.Callback p0){}
public Handler(Loo... | 872 |
2,151 | <filename>chrome/browser/page_load_metrics/page_load_metrics_util.cc
// Copyright 2015 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/page_load_metrics/page_load_metrics_util.h"
#include <algor... | 2,858 |
843 | <filename>api-metastore/src/test/java/org/zalando/nakadi/service/PaginationServiceTest.java
package org.zalando.nakadi.service;
import com.google.common.collect.Lists;
import org.junit.Assert;
import org.junit.Test;
import org.zalando.nakadi.domain.PaginationWrapper;
import java.util.Collections;
public class Pagina... | 1,494 |
348 | {"nom":"Lachapelle","circ":"4ème circonscription","dpt":"Somme","inscrits":66,"abs":26,"votants":40,"blancs":6,"nuls":1,"exp":33,"res":[{"nuance":"FN","nom":"<NAME>","voix":26},{"nuance":"REM","nom":"<NAME>","voix":7}]} | 90 |
5,169 | {
"name": "WBZImportInvoice",
"version": "0.0.16",
"summary": "微报账项目集合微信和支付宝的卡包导入发票",
"description": "微报账项目集合微信和支付宝的卡包导入发票,供别人方便使用",
"homepage": "https://github.com/Dreamle/WBZImportInvoice",
"license": "MIT",
"authors": {
"dreamLee": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
"source": {... | 368 |
1,830 | <reponame>thirteen13Floor/zeebe
/*
* 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.
* Licensed under the Zeebe Community License 1.... | 715 |
14,668 | <reponame>zealoussnow/chromium
// 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_NETWORK_RESOURCE_LOADER_H_
#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEV... | 1,179 |
5,169 | <gh_stars>1000+
{
"name": "KissPaginate",
"version": "0.3.8",
"summary": "Simplify your implementation of tableView paginate.",
"description": "```\nclass ViewController: PaginateViewController {\n @IBOutlet weak var noElementLabel: UILabel!\n\n override func viewDidLoad() {\n super.viewDidLoad()\n... | 820 |
1,133 | <reponame>fromjss/comdb2
package com.bloomberg.comdb2.jdbc;
import java.sql.*;
import java.util.logging.*;
import org.junit.*;
import org.junit.Assert.*;
import java.util.*;
public class UnpooledDataSourceTest {
@Test public void testDatabaseInitSqls() throws SQLException {
String db = System.getProperty... | 762 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-285r-jf89-jj3c",
"modified": "2022-05-02T03:19:32Z",
"published": "2022-05-02T03:19:32Z",
"aliases": [
"CVE-2009-0904"
],
"details": "The IBM Stax XMLStreamWriter in the Web Services component in IBM WebSphere Application Server (WAS) 6.1 bef... | 541 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.