max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
549 | <reponame>LaudateCorpus1/google-cloud-ruby
{
"generated": [
".gitignore",
".repo-metadata.json",
".rubocop.yml",
".yardopts",
"AUTHENTICATION.md",
"CHANGELOG.md",
"Gemfile",
"LICENSE.md",
"README.md",
"Rakefile",
"google-cloud-metastore.gemspec",
"lib/google-cloud-metas... | 280 |
555 | <gh_stars>100-1000
package com.github.steveice10.mc.protocol.data.game.world.notify;
public interface ClientNotificationValue {
}
| 45 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "Speed up your Python and link it with C\n\nCython is a tool that can convert regular Python modules, or Python with\nsome additional syntax, into C extension modules that can be imported\nfrom regular Python code.\n\nThis provides a significant speed impr... | 413 |
868 | <filename>artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ThreadAwareContext.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 regarding copyright ownership... | 1,952 |
1,031 | <gh_stars>1000+
import director_enum
class MyFoo(director_enum.Foo):
def say_hi(self, val):
return val
b = director_enum.Foo()
a = MyFoo()
if a.say_hi(director_enum.hello) != b.say_hello(director_enum.hi):
raise RuntimeError
| 103 |
364 | <reponame>open-repos/apache-ant<filename>src/main/org/apache/tools/ant/taskdefs/Javac.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 regarding copyright ownership.
* The A... | 22,776 |
603 | #!/usr/bin/env python
import sys
import time
import pytz
import socket
import datetime
from pyexfil.includes.prepare import PrepFile, DecodePacket, RebuildFile, DEFAULT_KEY
# Dev Zone
VEDGLAF = False
# Globals
DEFAULT_TIMEOUT = 5
HTTP_RESPONSE_HEADER = """HTTP/1.1 200 OK
Date: TIME
Server: Apache/2.2.14 (Win32)
Las... | 1,436 |
425 | <filename>caliban/docker/build.py
#!/usr/bin/python
#
# Copyright 2020 Google LLC
#
# 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
#
# Unles... | 8,582 |
302 | #ifndef DATABASEADMINEDITGROUP_H
#define DATABASEADMINEDITGROUP_H
#include <QDialog>
namespace Ui {
class DatabaseAdminEditGroup;
}
class DatabaseAdminEditGroup : public QDialog
{
Q_OBJECT
public:
explicit DatabaseAdminEditGroup(QWidget *parent = 0);
~DatabaseAdminEditGroup();
void SetName(const QSt... | 184 |
575 | // 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.
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_AUTOFILL_SAVE_CARD_INFOBAR_MOBILE_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_AUTOFILL_SAVE_CAR... | 355 |
4,538 | /*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef _DEVICEVFS_RPC_H_
#define _DEVICEVFS_RPC_H_
/**
*
* open RPC message handler, called when OPEN rpc message arrived in main rpc service's handler
*
* @param parg - pointer to u_fops_arg_u
* @param crpc_handle - rpc client's handle,
* respons... | 306 |
529 | package com.esotericsoftware.yamlbeans.document;
import java.io.IOException;
import com.esotericsoftware.yamlbeans.YamlConfig.WriteConfig;
import com.esotericsoftware.yamlbeans.emitter.Emitter;
import com.esotericsoftware.yamlbeans.emitter.EmitterException;
import com.esotericsoftware.yamlbeans.parser.ScalarEvent;
p... | 410 |
402 | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | 737 |
16,461 | // Copyright 2020-present 650 Industries. All rights reserved.
#if __has_include(<ABI43_0_0EXFirebaseCore/ABI43_0_0EXFirebaseCore.h>)
#import <UIKit/UIKit.h>
#import <ABI43_0_0EXFirebaseCore/ABI43_0_0EXFirebaseCore.h>
#import <ABI43_0_0EXManifests/ABI43_0_0EXManifestsManifest.h>
#import "ABI43_0_0EXConstantsBinding.h"... | 262 |
372 | <gh_stars>100-1000
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
*/
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | 4,957 |
1,162 | <gh_stars>1000+
package io.digdag.client.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import org.immutables.value.Value;
@Value.Immutable
@JsonDeserialize(as = ImmutableRestWorkflo... | 231 |
372 | /* -*- mode: c++; -*-
*-----------------------------------------------------------------------------
* $RCSfile: soapInterface.cpp,v $
*
* See Copyright for the status of this software.
*
* The OpenSOAP Project
* http://opensoap.jp/
*-----------------------------------------------------------------------------
... | 6,761 |
777 | <filename>cc/blimp/picture_data.cc
// 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 "cc/blimp/picture_data.h"
namespace cc {
PictureData::PictureData(uint32_t unique_id, sk_sp<SkData> data)
... | 156 |
1,585 | /*
* Copyright (c) 2018 Mellan<NAME>, Inc.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "oshmem_config.h"
#include "oshmem/constants.h"
#include "oshmem/include/shmem.h"
#include "oshmem/include/shmemx.h"
#include "oshmem/runti... | 1,801 |
813 | <gh_stars>100-1000
from iepy.preprocess.ner.base import FoundEntity
from .factories import SentencedIEDocFactory, GazetteItemFactory
from .manager_case import ManagerTestCase
class TestDocumentInvariants(ManagerTestCase):
def test_cant_set_different_number_of_synparse_than_sentences(self):
doc = Sentenc... | 1,711 |
3,434 | /**
* Created on 13-10-28 23:44
*/
package com.alicp.jetcache.test.beans;
/**
* @author <a href="mailto:<EMAIL>">huangli</a>
*/
public class FactoryBeanTargetImpl implements FactoryBeanTarget {
int count;
@Override
public int count() {
return count++;
}
}
| 114 |
492 | <filename>src/main/java/com/mongodb/MockMongoClient.java
package com.mongodb;
import com.github.fakemongo.Fongo;
import com.github.fakemongo.FongoConnection;
import com.mongodb.async.SingleResultCallback;
import com.mongodb.client.MongoDatabase;
import com.mongodb.connection.AsyncConnection;
import com.mongodb.connect... | 1,912 |
353 | <gh_stars>100-1000
from .mtrand import RandomState
from ._philox import Philox
from ._pcg64 import PCG64
from ._sfc64 import SFC64
from ._generator import Generator
from ._mt19937 import MT19937
BitGenerators = {'MT19937': MT19937,
'PCG64': PCG64,
'Philox': Philox,
... | 1,057 |
22,481 | {
"domain": "p1_monitor",
"name": "P1 Monitor",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/p1_monitor",
"requirements": ["p1monitor==1.0.1"],
"codeowners": ["@klaasnicolaas"],
"quality_scale": "platinum",
"iot_class": "local_polling"
}
| 116 |
1,602 | //===- LazyBlockFrequencyInfo.cpp - Lazy Block Frequency Analysis ---------===//
//
// 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
//
//===---------------------------... | 917 |
743 | package pl.allegro.tech.hermes.benchmark;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
impor... | 780 |
4,339 | <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 "Lic... | 1,176 |
3,442 | <filename>tests/test_caffe_4.py
from __future__ import absolute_import
from __future__ import print_function
import os
import sys
import six
from conversion_imagenet import TestModels
def get_test_table():
return { 'caffe' :
{
# Cannot run on Travis since it seems to consume too much memory.
... | 696 |
1,558 | #ifndef QTMATERIALDIALOG_INTERNAL_H
#define QTMATERIALDIALOG_INTERNAL_H
#include <QtWidgets/QWidget>
class QStackedLayout;
class QtMaterialDialog;
class QtMaterialDialogWindow;
class QtMaterialDialogProxy : public QWidget
{
Q_OBJECT
Q_PROPERTY(qreal opacity WRITE setOpacity READ opacity)
enum Transpare... | 756 |
1,217 | <gh_stars>1000+
#include <bspline_opt/gradient_descent_optimizer.h>
#define RESET "\033[0m"
#define RED "\033[31m"
GradientDescentOptimizer::RESULT
GradientDescentOptimizer::optimize(Eigen::VectorXd &x_init_optimal, double &opt_f)
{
if (min_grad_ < 1e-10)
{
cout << RED << "min_grad_ is invalid:" << mi... | 1,673 |
348 | {"nom":"Combaillaux","circ":"4ème circonscription","dpt":"Hérault","inscrits":1339,"abs":731,"votants":608,"blancs":67,"nuls":15,"exp":526,"res":[{"nuance":"REM","nom":"<NAME>","voix":378},{"nuance":"FN","nom":"<NAME>","voix":148}]} | 93 |
12,278 | <reponame>cpp-pm/boost
/*
* Copyright <NAME> 2007 - 2015.
* 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)
*/
/*!
* \file debug_output_backend.cpp
* \author <NAME>
* \date 08.11.2008
... | 755 |
307 | <filename>kafka-impl/src/main/java/io/streamnative/pulsar/handlers/kop/utils/SaslUtils.java
/**
* 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/LICEN... | 777 |
5,169 | <filename>Specs/b/f/1/ToriMobileDomain/0.0.18/ToriMobileDomain.podspec.json
{
"name": "ToriMobileDomain",
"version": "0.0.18",
"homepage": "https://github.schibsted.io/Tori/tori-client-domain/",
"source": {
"http": "https://github.com/pkliang/tori-domain-framework/releases/download/0.0.1/ToriMobileDomain.zi... | 265 |
1,273 | package org.broadinstitute.hellbender.utils.dragstr;
import org.apache.commons.lang.ArrayUtils;
import org.broadinstitute.hellbender.utils.Utils;
import java.util.Arrays;
/**
* Tool to figure out the period and repeat-length (in units) of STRs in a reference sequence.
* <p>
* The period and repeat-length of a ... | 3,172 |
410 | <reponame>InstantWebP2P/node-android
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 onl... | 3,235 |
500 | package com.tinkerpop.blueprints;
import junit.framework.TestCase;
/**
* @author <NAME> (http://markorodriguez.com)
*/
public class ParameterTest extends TestCase {
public void testEquality() {
Parameter<String, Long> a = new Parameter<String, Long>("blah", 7l);
Parameter<String, Long> b = new ... | 329 |
590 | package hype;
import hype.extended.colorist.HColorField;
import hype.extended.colorist.HColorPool;
import hype.extended.colorist.HPixelColorist;
import hype.interfaces.HLocatable;
import processing.core.PGraphics;
public class HVertex implements HLocatable {
public static final float LINE_TOLERANCE = 1.5f;
private... | 5,609 |
581 | <reponame>Esri/util<filename>doh/robot/DOHRobot.java
import java.security.*;
import java.applet.Applet;
import java.awt.*;
import java.util.*;
import java.util.concurrent.*;
import java.awt.event.*;
import netscape.javascript.*;
import java.io.*;
import java.lang.reflect.*;
import java.net.URL;
import java.awt.datatran... | 22,799 |
12,718 | <reponame>lukekras/zig<gh_stars>1000+
#include_next <errno.h>
#define EOPNOTSUPP ENOTSUP
| 41 |
335 | <filename>D/Debridement_noun.json
{
"word": "Debridement",
"definitions": [
"The removal of damaged tissue or foreign objects from a wound."
],
"parts-of-speech": "Noun"
} | 79 |
310 | {
"name": "SR80i",
"description": "Headphones.",
"url": "https://www.amazon.com/Grado-SR80i-Headphone-Discontinued-Manufacturer/dp/B0055P9K38"
} | 64 |
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 ... | 660 |
713 | package org.infinispan.cli.util;
import java.io.InputStream;
import java.util.Iterator;
import java.util.regex.Pattern;
/**
* @author <NAME> <<EMAIL>>
* @since 10.0
**/
public class IterableReader implements Iterable<String> {
private final ReaderIterator iterator;
public IterableReader(InputStream i... | 163 |
356 | <gh_stars>100-1000
"""
Problem Statement: Python program to check given two strings are Anagram of each other or not .
An anagram of a string is an another string that contains the same characters but the order of characters can be different.
For example ,listen and silent are anagrams of each oter because al... | 611 |
8,629 | <filename>src/Databases/TablesLoader.h
#pragma once
#include <Core/Types.h>
#include <Core/QualifiedTableName.h>
#include <Parsers/IAST_fwd.h>
#include <Interpreters/Context_fwd.h>
#include <Common/ThreadPool.h>
#include <Common/Stopwatch.h>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <mut... | 1,088 |
369 | <filename>module-bsp/board/rt1051/bellpx/irq_gpio.cpp
// Copyright (c) 2017-2022, <NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "board/irq_gpio.hpp"
#include <Utils.hpp>
#include "board.h"
#include "FreeRTOS.h"
#include "queue.h"
#include "fsl_common.h"
#inc... | 3,967 |
435 | <filename>pycon-us-2016/videos/parisa-tabriz-keynote-pycon-2016.json
{
"copyright_text": "Standard YouTube License",
"description": "Speaker: <NAME>\n\nKeynote\n\nSlides can be found at: https://speakerdeck.com/pycon2016 and https://github.com/PyCon/2016-slides",
"duration": 2268,
"id": 5161,
"language": "eng... | 341 |
6,541 | <reponame>albertobarri/idk
/* -*- mode: C -*-
*
* Copyright (c) 2007-2010 The University of Utah
* All rights reserved.
*
* This file is part of `csmith', a random generator of C programs.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... | 1,321 |
1,555 | int printf(const char *, ...);
int g;
int *i = &g;
float j;
int main(void) {
(*i) = 0xCFBCE008L;
j = (0x0p1 > (*i));
return printf("%d, %f\n", *i, j);
}
| 83 |
13,846 | <reponame>legistek/AspNetCore
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
#pragma once
#include "requesthandler.h"
#include "resource.h"
#include "file_utility.h"
class StartupExceptionHandler : public R... | 401 |
651 | package net.serenitybdd.screenplay.jenkins.user_interface;
import net.serenitybdd.core.pages.PageObject;
import net.serenitybdd.screenplay.jenkins.targets.RadioButton;
import net.serenitybdd.screenplay.jenkins.targets.Setting;
import net.serenitybdd.screenplay.targets.Target;
import net.thucydides.core.annotations.Def... | 206 |
764 | {
"symbol": "ENC",
"address": "0x0393ab33832c932C15aa6f19DeD20815633346A8",
"overview": {
"en": "Eosmos Network is is a cross-chain distributed game ecological platform based on blockchain technology.",
"zh": "Eosmos Network是⼀个基于区块链技术的跨链分布式游戏生态平台。"
},
"email": "<EMAIL>",
"website": "https://eosm... | 278 |
2,338 | <gh_stars>1000+
for (int c0 = 0; c0 <= 9; c0 += 1) {
B(c0);
if (c0 == 0)
A();
}
| 52 |
1,546 | package org.libpag;
/**
* Defines the values used in the setScaleMode method of PAGPlayer.
*/
public class PAGScaleMode {
/**
* The content is not scaled.
*/
public static final int None = 0;
/**
* The content is stretched to fit.
*/
public static final int Stretch = 1;
/**
... | 232 |
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 ASH_WEBUI_TELEMETRY_EXTENSION_UI_SERVICES_DIAGNOSTICS_SERVICE_CONVERTERS_H_
#define ASH_WEBUI_TELEMETRY_EXTENSION_U... | 1,003 |
1,444 |
package mage.cards.t;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.RemoveCountersSourceCost;
import mage.abilities.effects.common.Damage... | 638 |
16,989 | // Copyright 2020 The Bazel 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.0
//
// Unless required by appl... | 3,927 |
380 | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2017, 2018, 2019, 2020 <NAME> <<EMAIL>>
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... | 7,130 |
585 | <filename>caffe2/python/operator_test/emptysample_ops_test.py
# Copyright (c) 2016-present, 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 of the License at
#
# http://www.apache.org/licens... | 1,360 |
1,026 | import boto3
import json
import sys
from multiprocessing import Pool
file = '/path/to/file_with_records_as_jsonl'
queue_url = 'your-queue-url'
region = 'your-region'
processor_count = int(sys.argv[1])
def send_message(data):
sqs_client = boto3.client('sqs', region_name=region)
sqs_client.send_message_batch(
... | 453 |
942 | /* Copyright (c) 2012-2019, <NAME>
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QtCore>
#include <TActionController... | 995 |
2,291 | {
"id" : 536,
"status" : "New",
"summary" : "Transparent MBTiles",
"labels" : [ "Type-Defect", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 1,
"comments" : [ {
"id" : 0,
"commenterId" : 3433002718840642805,
"content" : "I have created an offline .mbtiles file with transparent tiles in it... | 396 |
360 | <filename>contrib/security_plugin/gs_policy_labels.h
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.co... | 893 |
2,553 | # Copyright 2020 Google LLC.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
#... | 2,937 |
826 | <filename>eventuate-tram-sagas-micronaut-in-memory/src/main/java/io/eventuate/tram/sagas/micronaut/inmemory/TramSagaInMemoryFactory.java<gh_stars>100-1000
package io.eventuate.tram.sagas.micronaut.inmemory;
import io.eventuate.common.inmemorydatabase.EventuateDatabaseScriptSupplier;
import io.micronaut.context.annotat... | 253 |
5,703 | package springfox.documentation.schema;
public enum CollectionType {
SET,
LIST,
ARRAY
}
| 32 |
335 | <reponame>ruk-shan/examples
# Copyright 2017 Open Source Robotics Foundation, 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
#
# Unles... | 581 |
2,291 | {
"id" : 376,
"status" : "New",
"summary" : "r1121 breaks MyLocationOverlay close to dateline",
"labels" : [ "Type-Defect", "Priority-Medium" ],
"stars" : 0,
"commentCount" : 1,
"comments" : [ {
"id" : 0,
"commenterId" : -8177012077806897919,
"content" : "<b>What steps will reproduce the probl... | 567 |
7,158 | #ifndef CVVISUAL_KEY_POINT_SHOW_SETTING
#define CVVISUAL_KEY_POINT_SHOW_SETTING
#include <vector>
#include <QPushButton>
#include "opencv2/features2d.hpp"
#include "keypointsettings.hpp"
namespace cvv{ namespace qtutil{
/**
* @brief this class is a KeyPointSetting which hides a KeyPoint or not
*/
class KeyPointS... | 342 |
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.
package org.chromium.chrome.browser.display_cutout;
import android.annotation.TargetApi;
import android.graphics.Rect;
import android.os.Build;
import an... | 4,745 |
679 | <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 license... | 1,740 |
3,748 | // Copyright (c) OpenMMLab. All rights reserved
#include <parrots/compute/aten.hpp>
#include <parrots/extension.hpp>
#include <parrots/foundation/ssattrs.hpp>
#include "focal_loss_pytorch.h"
using namespace parrots;
#ifdef MMCV_WITH_CUDA
void sigmoid_focal_loss_forward_cuda_parrots(CudaContext& ctx,
... | 1,654 |
915 | package org.nzbhydra.github.mavenreleaseplugin;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Joiner;
import com.google.common.base.Strings;
import okhttp3.Call;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhtt... | 2,514 |
848 | /* Copyright 2018 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.0
Unless required by applicable law or a... | 1,688 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 433 |
1,711 | <filename>modules/3rd_party/choc/platform/choc_SpinLock.h
//
// ██████ ██ ██ ██████ ██████
// ██ ██ ██ ██ ██ ██ ** Clean Header-Only Classes **
// ██ ███████ ██ ██ ██
// ██ ██ ██ ██ ██ ██ https://github.com/Tracktion/choc
// ██████ ██ ██ ██████ ████... | 918 |
418 | <reponame>Ev4eny/OSignal2<gh_stars>100-1000
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface OneSignalUNUserNotificationCenterHelper : NSObject
+ (void)restoreDelegateAsOneSignal;
+ (void)putIntoPreloadedState;
@end
NS_ASSUME_NONNULL_END
| 104 |
1,431 | <reponame>pjfanning/poi
/* ====================================================================
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... | 6,064 |
9,095 | from os.path import join
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('_levy_stable', parent_package, top_path)
config.add_library(
'_levyst',
sources=[join('c_src', 'levyst.c')],
headers=[join('c_... | 253 |
432 | /*
* Copyright (C) 2020 Dremio
*
* 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 wr... | 403 |
965 | <gh_stars>100-1000
CArray<CPoint, CPoint> myArray;
// Add elements to the array.
for (int i = 0; i < 10; i++)
{
myArray.Add(CPoint(i, 2 * i));
}
myArray.RemoveAt(5);
#ifdef _DEBUG
afxDump.SetDepth(1);
afxDump << "myArray: " << &myArray << "\n";
#endif | 115 |
764 | <filename>erc20/0x714599f7604144a3fE1737c440a70fc0fD6503ea.json
{"symbol": "RAKUC","address": "0x714599f7604144a3fE1737c440a70fc0fD6503ea","overview":{"en": ""},"email": "","website": "https://www.rakucoin.com","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/rakucoin","telegram": "","github": ""}... | 134 |
391 | package com.sparrowwallet.sparrow.event;
public class RequestConnectEvent {
//Empty event class used to request programmatic connection to the server
}
| 42 |
945 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 8,786 |
5,169 | <gh_stars>1000+
{
"name": "JKPopupView",
"version": "0.0.6",
"summary": "弹出自定义视图",
"description": "弹出自定义视图。",
"homepage": "https://github.com/JokerKin/JKPopupView",
"license": "MIT",
"authors": {
"joker": "https://github.com/JokerKin"
},
"platforms": {
"ios": "8.0"
},
"public_header_files"... | 292 |
568 | <filename>seat-monitor/meeting-room-device/src/main/java/com/novoda/seatmonitor/CloudDataTimer.java
package com.novoda.seatmonitor;
import android.os.CountDownTimer;
import com.novoda.loadgauge.CloudLoadGauges;
import java.util.concurrent.TimeUnit;
class CloudDataTimer extends CountDownTimer {
private final St... | 544 |
772 | {
"continue": "Vazhdo ",
"areYouSure": "Je i sigurtë?",
"cancel": "Anulo",
"yes": "Po",
"no": "Jo",
"run": "Ekzekuto",
"finish": "Përfundo"
} | 78 |
1,781 | package chapter1.section1;
import edu.princeton.cs.algs4.StdOut;
/**
* Created by <NAME>
*/
public class Exercise9 {
public static void main(String[] args) {
StdOut.println(intToBinary(32));
StdOut.println("Expected: 100000");
}
private static String intToBinary(int n) {
String result = "";
while ... | 176 |
356 | <reponame>majk1/netbeans-mmd-plugin<filename>mind-map/mind-map-swing-panel/src/main/java/com/igormaznitsa/mindmap/swing/panel/utils/RenderQuality.java
/*
* Copyright 2018 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 1,506 |
560 | <gh_stars>100-1000
// Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Un... | 887 |
1,962 | <reponame>future-daydayup/XLearning<filename>src/main/java/net/qihoo/xlearning/webapp/AMWebApp.java
package net.qihoo.xlearning.webapp;
import org.apache.hadoop.yarn.webapp.WebApp;
public class AMWebApp extends WebApp implements AMParams {
@Override
public void setup() {
route("/", AppController.class);
... | 139 |
303 | {"id":9424,"line-1":"<NAME>","line-2":"Qatar","attribution":"©2016 Cnes/Spot Image, DigitalGlobe","url":"https://www.google.com/maps/@25.72985,51.373304,16z/data=!3m1!1e3"} | 73 |
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 ... | 2,198 |
453 | <reponame>The0x539/wasp<filename>libc/newlib/libc/sys/linux/linuxthreads/mq_notify.c<gh_stars>100-1000
/* Copyright 2002, Red Hat Inc. */
#include <mqueue.h>
#include <unistd.h>
#include <errno.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <string.h>
#include "internals.h"
#include <sys/lock.h>
#include "mql... | 1,134 |
651 | package com.ncipher.nfast.marshall;
public class M_Act implements Marshallable {
public static final int NVMemOpPerms = 6;
}
| 41 |
1,511 | <gh_stars>1000+
/* SPDX-License-Identifier: BSD-3-Clause-LBNL */
/*
Copyright (c) 2003, The Regents of the University of California,
through Lawrence Berkeley National Laboratory (subject to receipt of
any required approvals from the U.S. Dept. of Energy). All rights
reserved. Redistribution and use in source and bina... | 878 |
344 | // Copyright 2011-2022, Molecular Matters GmbH <<EMAIL>>
// See LICENSE.txt for licensing details (2-clause BSD License: https://opensource.org/licenses/BSD-2-Clause)
#pragma once
#include "PDB_Macros.h"
#include "PDB_DisableWarningsPush.h"
#include <cstdio>
#include "PDB_DisableWarningsPop.h"
PDB_PUSH_WARNING_CLAN... | 194 |
482 | #include "font4x6.h"
PROGMEM const unsigned char font4x6[] = {
4,6,32,
//space
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
//!
0b01000000,
0b01000000,
0b01000000,
0b00000000,
0b01000000,
0b00000000,
//"
0b10100000,
0b10100000,
0b00000000,
0b00000000,
0b00000000,
0b00... | 4,397 |
427 | <gh_stars>100-1000
import os
import click
from blogger_cli.cli import pass_context
from blogger_cli.commands.serve_utils import (
get_free_port,
is_port_occupied,
serve_locally,
)
@click.command("serve", short_help="Serve your blog locally")
@click.argument("blog", required=False)
@click.option("--port", ... | 834 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.