max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
871 | # Copyright 2020 DeepMind Technologies 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
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed t... | 442 |
10,876 | <filename>ports/evpp/vcpkg.json
{
"name": "evpp",
"version-string": "0.7.0",
"port-version": 5,
"description": "A modern C++ network library based on libevent for developing high performance network services in TCP/UDP/HTTP protocols.",
"homepage": "https://github.com/Qihoo360/evpp",
"dependencies": [
{... | 304 |
1,511 | /*
* QEMU Mixing engine
*
* Copyright (c) 2004-2005 <NAME> (malc)
* Copyright (c) 1998 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* ... | 355 |
324 | // Boost.Range library
//
// Copyright <NAME> & <NAME> & <NAME> 2003-2004.
// Use, modification and distribution is subject to 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)
//
// For more information, see http://www.boost.org/l... | 11,124 |
335 | {
"word": "Exchange",
"definitions": [
"An act of giving one thing and receiving another (especially of the same kind) in return.",
"A visit or visits in which two people or groups from different countries stay with each other or do each other's jobs.",
"The changing of money to its equi... | 244 |
17,104 | <gh_stars>1000+
#ifndef BOOST_MPL_AUX_IS_MSVC_ETI_ARG_HPP_INCLUDED
#define BOOST_MPL_AUX_IS_MSVC_ETI_ARG_HPP_INCLUDED
// Copyright <NAME> 2001-2004
//
// 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)
... | 701 |
1,408 | <filename>include/drivers/auth/mbedtls/mbedtls_config.h
/*
* Copyright (c) 2015-2021, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef MBEDTLS_CONFIG_H
#define MBEDTLS_CONFIG_H
/*
* Key algorithms currently supported on mbed TLS libraries
*/
#define TF_MBEDTLS_RSA 1
#defin... | 1,553 |
634 | <gh_stars>100-1000
// Copyright 2000-2019 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.openapi.vfs.newvfs;
import com.intellij.concurrency.SensitiveProgressWrapper;
import com.intellij.openapi.application.*;
import com.intell... | 2,707 |
356 | <gh_stars>100-1000
#pragma once
class m_IDirect3DIndexBuffer8 : public IDirect3DIndexBuffer8, public AddressLookupTableD3d8Object
{
private:
LPDIRECT3DINDEXBUFFER8 ProxyInterface;
m_IDirect3DDevice8* m_pDevice;
public:
m_IDirect3DIndexBuffer8(LPDIRECT3DINDEXBUFFER8 pBuffer8, m_IDirect3DDevice8* pDevice) : ProxyInt... | 597 |
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 ... | 397 |
1,186 | package io.bootique.docs.programming.commands.decorating;
import io.bootique.BQCoreModule;
import io.bootique.command.CommandDecorator;
import io.bootique.di.BQModule;
import io.bootique.di.Binder;
public class MyCommand implements BQModule {
// tag::Commands[]
CommandDecorator extraCommands = CommandDecorato... | 272 |
321 | import torch
import torch.nn as nn
from torch.autograd import Variable
import math
import time
import numpy as np
import helpers.functions as mhf
import random
USE_CUDA = torch.cuda.is_available()
def time_forward_pass(model, train_loader):
model.eval()
start_time = time.time()
for idx_minibatch, data in... | 4,770 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Cléry-Saint-André","circ":"1ère circonscription","dpt":"Loiret","inscrits":2575,"abs":1094,"votants":1481,"blancs":22,"nuls":11,"exp":1448,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":502},{"nuance":"SOC","nom":"M. <NAME>","voix":283},{"nuance":"LR","nom":"M. <NAME>"... | 335 |
713 | <reponame>blueblueblue/infinispan
package org.infinispan.util.function;
import java.io.Serializable;
import java.util.function.DoubleUnaryOperator;
/**
* This is a functional interface that is the same as a {@link DoubleUnaryOperator} except that it must also be
* {@link java.io.Serializable}
*
* @author wburns
... | 132 |
918 | <filename>gobblin-data-management/src/test/java/org/apache/gobblin/data/management/copy/replication/ConfigBasedDatasetsFinderTest.java
/*
* 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... | 1,644 |
347 | package org.ovirt.engine.core.common.queries.gluster;
import org.ovirt.engine.core.compat.Guid;
/**
* This will be used by added gluster servers query command. <br>
*/
public class AddedGlusterServersParameters extends GlusterParameters {
private boolean isServerPublicKeyRequired;
public AddedGlusterServe... | 251 |
1,501 | /*
* 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 ... | 2,066 |
797 | /*
The MIT License (MIT)
Copyright (c) 2015 <NAME> and Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction, including without limitation the rights to... | 1,507 |
493 | <reponame>MartinRGB/MTPhysicsEngine
package com.martinrgb.animer.core.interpolator;
// Interpolator Version of Android's SpringAnimation
import android.util.Log;
import com.martinrgb.animer.core.math.calculator.SpringInterpolatorCalculator;
public class AndroidSpringInterpolator extends AnInterpolator{
//Param... | 1,483 |
712 | /**
* Classes related to generated Query Methods in Cloud Spanner support for Spring Data.
*/
package org.springframework.cloud.gcp.data.spanner.repository.query;
| 44 |
11,393 | <reponame>MacSimmy/algo-and-data-structure<filename>python/dynamic/dice_throw_ways.py
"""
Problem Statement
=================
Given n dice each with m faces, numbered from 1 to m, find the number of ways to get sum X. X is the summation of values
on each face when all the dice are thrown.
Complexity
----------
* Run... | 437 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkConvertToMultiBlockDataSet.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is dist... | 596 |
14,668 | <filename>chrome/browser/ui/views/tabs/color_picker_view.h
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_TABS_COLOR_PICKER_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_TABS_... | 768 |
739 | #!/usr/bin/python
import sys
sys.path.insert(0, '../../pyv8')
import pyv8run
if "LibTest" not in sys.argv:
sys.argv.append("LibTest")
pyv8run.build_script()
| 70 |
6,062 | <filename>scripts/interpolations.py<gh_stars>1000+
import matplotlib.pyplot as plt
import numpy as np
methods = [None, 'none', 'nearest', 'bilinear', 'bicubic', 'spline16',
'spline36', 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric',
'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc', 'lancz... | 413 |
6,034 | <gh_stars>1000+
package cn.iocoder.mall.systemservice.rpc.permission;
import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.systemservice.rpc.permission.dto.ResourceCreateDTO;
import cn.iocoder.mall.systemservice.rpc.permission.dto.ResourceUpdateDTO;
import cn.iocoder.mall.systemservice.rpc.permis... | 855 |
1,682 | /*
Copyright (c) 2017 LinkedIn Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 2,215 |
428 | <filename>yolov3_tfserving/apis/tensorflow/core/framework/allocation_description_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/framework/allocation_description.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf ... | 1,822 |
652 | <filename>pkgs/jupyter_console-4.1.1-py27_0/lib/python2.7/site-packages/jupyter_console/_version.py<gh_stars>100-1000
version_info = (4, 1, 1)
__version__ = '.'.join(map(str, version_info))
| 84 |
357 | <reponame>wfu8/lightwave
/* **********************************************************************
* Copyright 2015 VMware, Inc. All rights reserved.
* ********************************************************************
*/
package com.vmware.identity.cdc;
/**
* Represents type of a VECS entry.
*/
public enum Cdc... | 733 |
709 | <filename>MyGUIEngine/src/msdfgen/core/msdf-error-correction.h
#pragma once
#include "Vector2.h"
#include "BitmapRef.hpp"
#define MSDFGEN_DEFAULT_ERROR_CORRECTION_THRESHOLD 1.001
namespace msdfgen {
/// Attempts to patch multi-channel signed distance field values that may cause interpolation artifacts. (Already ca... | 169 |
575 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_X_X11_DRAG_DROP_CLIENT_H_
#define UI_BASE_X_X11_DRAG_DROP_CLIENT_H_
#include <vector>
#include "base/component_export.h"
#include "base/... | 3,251 |
519 | /*
* Copyright (c) 2020-2021 Morwenn
* SPDX-License-Identifier: MIT
*/
// Copyright (c) 2020, <NAME> (<EMAIL>) www.plflib.org
// zLib license (https://www.zlib.net/zlib_license.html):
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for a... | 1,862 |
348 | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 7,588 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Supervise",
"definitions": [
"Observe and direct the execution of (a task or activity)",
"Observe and direct the work of (someone)",
"Keep watch over (someone) in the interest of their or others' security."
],
"parts-... | 135 |
708 | <filename>tasks/keypoint_match/ComputeReprojection/src/scannedScene.cpp
#include "stdafx.h"
#include "scannedScene.h"
#include "imageHelper.h"
//#define DEBUG_IMAGES_POTENTIAL
//#define DEBUG_IMAGES_REPROJ
template<>
struct std::hash<vec2ui> : public std::unary_function < vec2ui, size_t > {
size_t operator()(const... | 7,778 |
364 | <reponame>matus-chochlik/oglplus
/**
* .file oglplus/math/vector_n.ipp
* .brief A generalized vector template
*
* @author <NAME>
*
* Copyright 2010-2019 <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... | 3,536 |
678 | <gh_stars>100-1000
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSString;
@interface WCPayAppAuthRequestStruct : NSObject
{
NSString *appId;
NSString *partnerId;
NSString *prepayId;
NSSt... | 475 |
577 | <filename>fluentlenium-core/src/test/java/org/fluentlenium/configuration/WebDriversRegistryImplSpecificDriversTest.java
package org.fluentlenium.configuration;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized... | 911 |
3,372 | <reponame>MC-JY/aws-sdk-java
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apac... | 4,391 |
645 | // 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.
package org.chromium.distiller;
import com.google.gwt.regexp.shared.MatchResult;
import com.google.gwt.regexp.shared.RegExp;
/**
* This class detects t... | 6,161 |
4,057 | # -*- coding: utf-8 -*-
import os
import shutil
from tempfile import mkdtemp
from django.test import TestCase
from django_extensions.management.mysql import parse_mysql_cnf
class ParseMysqlCnfTests(TestCase):
"""Tests for parse_mysql_cnf."""
@classmethod
def setUpClass(cls):
cls.tmpdir = mkdtem... | 914 |
488 | <filename>tests/RunTests/PythonTests/test2011_015.py
print 1 < 2, 2 < 1, 1 < 1
print 1 > 2, 2 > 1, 1 > 1
print 1 <= 2, 2 <= 1, 1 <= 1
print 1 >= 2, 2 >= 1, 1 >= 1
print 1 == 2, 2 == 1, 1 == 1
print 1 != 2, 2 != 1, 1 != 1
print 1 in (1, 2, 3)
print (2,) in [(1,), (2,)]
print 4 in (1, 2, 3)
print (4,) in [(1,), (2,)]
p... | 353 |
190,993 | <reponame>computationalartist/tensorflow
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... | 2,582 |
305 | //===-- CommandCompletions.cpp --------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 12,679 |
589 | package rocks.inspectit.agent.java.sensor.method.timer;
import java.lang.management.ThreadMXBean;
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rocks.inspectit.agent.java.config.IPropertyAccessor;
import rocks.inspectit.agent.j... | 2,391 |
12,278 |
// Copyright 2017 <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
#if defined(_MSC_VER)
# pragma warning( disable: 4702 ) // unreachable code
#endif
#include <boost/variant2/variant.hpp>
#include <... | 3,107 |
678 | <reponame>RockerHX/FishChat<filename>WeChat-Headers/FavTagSearchFilter.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMUIView.h"
#import "FavTagEditViewDelegate.h"
#import "FavTypeItemsViewDelegate.h"
#import "UIScrollVie... | 711 |
388 | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2008-2012 <NAME> (Tonkikh) <<EMAIL>>
//
// See accompanyin... | 389 |
5,234 | [
{
"inputs": [
"Assets/Admin/cors-admin.js"
],
"output": "wwwroot/Scripts/cors-admin.js"
}
]
| 64 |
1,918 | # Copyright 2021, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 6,772 |
364 | package rsc.publisher;
import java.util.Objects;
import java.util.function.Predicate;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import rsc.flow.Loopback;
import rsc.flow.Producer;
import rsc.flow.Receiver;
import rsc.flow.Trackable;
import rs... | 1,751 |
2,151 | <gh_stars>1000+
// 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.
// This file defines the interface class OmniboxPopupView. Each toolkit
// will implement the popup view differently, so that code is... | 537 |
777 | // 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.
#ifndef CHROME_BROWSER_FAVICON_FALLBACK_ICON_SERVICE_FACTORY_H_
#define CHROME_BROWSER_FAVICON_FALLBACK_ICON_SERVICE_FACTORY_H_
#include "base/macros.h"
... | 456 |
379 | <gh_stars>100-1000
package com.oim.fx.common.util;
import com.onlyxiahui.im.bean.UserData;
/**
* @author: XiaHui
* @date: 2017年4月10日 下午4:40:36
*/
public class StatusUtil {
public static String getStatusName(String status){
String name="离线";
switch (status) {
case UserData.status_online:
name="在线";
br... | 357 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-fgwg-h2c9-x3v4",
"modified": "2022-05-01T06:46:06Z",
"published": "2022-05-01T06:46:06Z",
"aliases": [
"CVE-2006-1105"
],
"details": "Pixelpost 1.5 beta 1 and earlier allows remote attackers to obtain configuration information via a direct request to includes/p... | 642 |
844 | {
"github-username": "Purusottamdas",
"favourite-emoji": "😊",
"favourite-music": "https://soundcloud.com/8d-theme-songs/8d-audio-khulke-jeene-ka-dil-bechara-sushant-singh-rajput-sanjana-arijit-singh-ar-rahman",
"favourite-color": "#008000"
} | 124 |
726 | <reponame>xqgdmg/DavidNBA-master<gh_stars>100-1000
package com.yuyh.library.view.list;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.Linea... | 5,535 |
1,350 | <filename>sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadRestoreRequest.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) Auto... | 2,514 |
678 | <filename>WeChat-Headers/WCPayInfoItem.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
#import "NSCopying.h"
#import "PBCoding.h"
@class NSString;
@interface WCPayInfoItem : NSObject <PBCoding, NSCopying>
{
... | 1,970 |
14,668 | // 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 BASE_TASK_SEQUENCE_MANAGER_TEST_TEST_TASK_TIME_OBSERVER_H_
#define BASE_TASK_SEQUENCE_MANAGER_TEST_TEST_TASK_TIME_OBSERVER_H_
#include "base/task... | 276 |
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 ... | 687 |
4,253 | package om.mashibing.springboot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootMvc03Application {
public static void main(String[] args) {
SpringApplication.run(SpringBootMvc03Application.class,... | 95 |
945 | /*
* 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,759 |
385 | package com.github.mikephil.charting.data;
import android.annotation.SuppressLint;
import android.graphics.drawable.Drawable;
import android.util.Log;
/**
* @author <NAME>
*/
@SuppressLint("ParcelCreator")
public class PieEntry extends Entry {
private String label;
public PieEntry(float value) {
s... | 785 |
1,442 | #ifndef SHARED_TEXT_FIELD_WITH_EXTENSION_H
#define SHARED_TEXT_FIELD_WITH_EXTENSION_H
#include <escher/text_field.h>
namespace Shared {
class TextFieldWithExtension : public Escher::TextField {
public:
TextFieldWithExtension(size_t extensionLength,
Responder * parentResponder,
char * textBuffer,
... | 427 |
775 | """Wrapper for Open Model Zoo for Anomaly tasks."""
# Copyright (C) 2021-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from typing import Union
import numpy as np
from openvino.model_zoo.model_api.models import SegmentationModel
from openvino.model_zoo.model_api.models.types import NumericalValue
... | 752 |
1,093 | <gh_stars>1000+
// Radix Sort in C Programming
#include <stdio.h>
int getMax(int array[], int n)
{
int max = array[0];
for (int i = 1; i < n; i++)
if (array[i] > max)
max = array[i];
return max;
}
void countingSort(int array[], int size, int place)
{
int output[size + 1];
int max = (array[0] / place... | 576 |
5,279 | <reponame>eyal0/beam<filename>sdks/java/testing/tpcds/src/main/resources/schemas/web_returns.json
{"schema": [
{"name":"wr_returned_date_sk","type":"identifier"},
{"name":"wr_returned_time_sk","type":"identifier"},
{"name":"wr_item_sk","type":"identifier"},
{"name":"wr_refunded_customer_sk","type":"identifier"}... | 534 |
501 | <reponame>robert-anderson/pyscf<gh_stars>100-1000
#!/usr/bin/env python
#
# Author: <NAME> <<EMAIL>>
#
'''
Use callback hooks to control CASSCF solver.
'''
import numpy
from pyscf import gto, scf, mcscf
b = 1.2
mol = gto.Mole()
mol.build(
verbose = 4,
atom = [['N', (0.,0.,0.)], ['N', (0.,0.,b)]],
basis =... | 551 |
664 | #include "peersinfomodel.h"
PeersInfoModel::PeersInfoModel(libtorrent::torrent_handle torrentHandle, QObject* parent) :
QAbstractListModel(parent),
m_torrentHandle(torrentHandle)
{
torrentHandle.resolve_countries(true);
m_torrentHandle.get_peer_info(m_peersInfo);
}
int PeersInfoModel::rowCount(const Q... | 1,138 |
11,024 | #
# __init__.py
#
# This source file is part of the FoundationDB open source project
#
# Copyright 2013-2018 Apple Inc. and the FoundationDB project 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 t... | 6,488 |
6,717 | <filename>tools/vsimporter/src/PBX/PBXReferenceProxy.cpp<gh_stars>1000+
//******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", W... | 616 |
432 | /*-
* Copyright (c) 2013 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by <NAME> under sponsorship from
* the FreeBSD Foundation.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... | 1,506 |
5,169 | {
"name": "SmartPromo",
"version": "0.0.1",
"platforms": {
"ios": "10.0"
},
"license": {
"type": "MIT",
"file": "LICENSE"
},
"summary": "SmartPromo is a SDK to campaign marketing",
"homepage": "https://github.com/Getmo-Inc/SmartPromoiOS.git",
"authors": {
"Getmo": "<EMAIL>"
},
"sou... | 480 |
12,718 | <filename>lib/libc/include/any-linux-any/linux/hsi/cs-protocol.h<gh_stars>1000+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* cmt-speech interface definitions
*
* Copyright (C) 2008,2009,2010 Nokia Corporation. All rights reserved.
*
* Contact: <NAME> <<EMAIL>>
* Original author: <NAME> <<EM... | 1,430 |
343 | from django.utils.translation import ugettext_lazy as _
from .classes import MailerBackend
class DjangoSMTP(MailerBackend):
"""
Backend that wraps Django's SMTP backend
"""
class_fields = (
'host', 'port', 'use_tls', 'use_ssl', 'username', 'password'
)
class_path = 'django.core.mail.b... | 2,147 |
327 | package de.fhpotsdam.unfolding.providers;
import processing.core.PApplet;
import de.fhpotsdam.unfolding.core.Coordinate;
import de.fhpotsdam.unfolding.geo.MercatorProjection;
import de.fhpotsdam.unfolding.geo.Transformation;
public class GeoMapApp {
public static abstract class GeoMapAppProvider extends AbstractMap... | 1,407 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.resourcegraph.implementation;
import com.azure.resourcemanager.resourcegraph.fluent.models.ResourceChangeDataInner;
import com.a... | 702 |
416 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 4,509 |
2,151 | <reponame>AOSiP/platform_external_libcxx<filename>test/std/depr/depr.c.headers/limits_h.pass.cpp
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
... | 557 |
1,078 | <filename>Tests/test_iterator.py
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
import sys
import unittest
from iptest import IronPythonTestCase, run_test
cl... | 4,192 |
306 | {
"rules": {
"semicolon": [
true,
"always"
],
"space-before-function-paren": [
true,
"always"
],
"quotemark": [
true,
"double",
"avoid-escape"
],
"prefer-method-signature": true,
"one-variable-per-declaration": [
true
],
"object-literal-key-quotes": [
true,
"as-needed"... | 862 |
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 ... | 2,804 |
352 | <gh_stars>100-1000
"""
Defines database related utilities.
"""
import os
import pkgutil
import datetime
from ..exceptions import DatabaseError
def get_database(dialect):
"""
Returns requested database package with modules that provide additional functionality.
:param string dialect: (required). Databas... | 1,459 |
721 | <filename>generated/google-apis-speech_v1/.repo-metadata.json
{
"api_id": "speech:v1",
"name_pretty": "Cloud Speech-to-Text API",
"distribution_name": "google-apis-speech_v1",
"language": "ruby",
"library_type": "REST"
}
| 103 |
464 | package dev.fiki.forgehax.main.services;
import dev.fiki.forgehax.api.SimpleTimer;
import dev.fiki.forgehax.api.cmd.settings.IntegerSetting;
import dev.fiki.forgehax.api.event.SubscribeListener;
import dev.fiki.forgehax.api.events.ConnectToServerEvent;
import dev.fiki.forgehax.api.events.DisconnectFromServerEvent;
imp... | 1,805 |
1,662 | """
Simple example of TabLayout
"""
from flexx import flx
class Example(flx.Widget):
def init(self):
with flx.TabLayout() as self.t:
self.a = flx.MultiLineEdit(title='input', style='background:#a00;')
self.b = flx.Widget(title='green', style='background:#0a0;')
self.c... | 198 |
9,866 | <filename>deps/jemalloc/test/src/thd.c
#include "test/jemalloc_test.h"
#ifdef _WIN32
void
thd_create(thd_t *thd, void *(*proc)(void *), void *arg)
{
LPTHREAD_START_ROUTINE routine = (LPTHREAD_START_ROUTINE)proc;
*thd = CreateThread(NULL, 0, routine, arg, 0, NULL);
if (*thd == NULL)
test_fail("Error in CreateThrea... | 297 |
1,253 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the warnings attribute containers."""
import unittest
from plaso.containers import warnings
from tests import test_lib as shared_test_lib
class AnalysisWarningTest(shared_test_lib.BaseTestCase):
"""Tests for the analysis warning attribute container."""
... | 539 |
568 | /*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 5,718 |
7,766 | package com.springboot.cloud.sysadmin.organization.service.impl;
import com.alicp.jetcache.anno.CacheInvalidate;
import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.Se... | 661 |
420 | # Copyright (c) 2012-2017 Seafile Ltd.
import json
import datetime
from django.db import models
from django.dispatch import receiver
from seahub.admin_log.signals import admin_operation
## operation: detail
# 'repo_create': {'id': repo_id, 'name': repo_name, 'owner': repo_owner}
REPO_CREATE = 'repo_create'
# 'repo_... | 907 |
634 | <gh_stars>100-1000
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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... | 4,503 |
310 | <filename>gear/software/t/tig.json<gh_stars>100-1000
{
"name": "Tig",
"description": "A text-mode interface for git.",
"url": "http://jonas.nitro.dk/tig/"
} | 67 |
627 | <reponame>closer2/chrome-ec<gh_stars>100-1000
/* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* TI LM3509 LED driver.
*/
#ifndef __CROS_EC_LM3509_H
#define __CROS_EC_LM3509_H
#define LM3509_I2C... | 337 |
2,517 | #include "caf/all.hpp"
using namespace caf;
// --(rst-promise-begin)--
using adder_actor = typed_actor<result<int32_t>(add_atom, int32_t, int32_t)>;
adder_actor::behavior_type worker_impl() {
return {
[](add_atom, int32_t x, int32_t y) { return x + y; },
};
}
adder_actor::behavior_type server_impl(adder_acto... | 568 |
467 | <reponame>Praseetha-KR/jobtastic
from __future__ import print_function
import mock
import django
from unittest import skipIf
from celery import Celery, states
from celery.backends.cache import DummyClient
from django.conf import settings
from django.test import TestCase
from jobtastic.task import JobtasticTask
from wer... | 1,671 |
381 | package com.tngtech.jgiven.impl.util;
public class ThrowableUtil {
public static boolean isAssumptionException(Throwable t) {
return t.getClass().getName().equals( "org.junit.AssumptionViolatedException" )
|| t.getClass().getName().equals( "org.testng.SkipException");
}
}
| 114 |
506 | package com.mixpush.fcm;
import android.content.Context;
import androidx.annotation.NonNull;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.InstanceIdResult;
import com.mixpush.core.Base... | 767 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.