max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
449 | _base_ = ['../rotated_retinanet/rotated_retinanet_hbb_r50_fpn_1x_dota_oc.py']
angle_version = 'oc'
model = dict(
bbox_head=dict(
reg_decoded_bbox=True,
loss_bbox=dict(
_delete_=True,
type='GDLoss_v1',
loss_type='kld',
fun='log1p',
tau=1,
... | 503 |
1,988 | /*
* Buffered Filter
* (C) 1999-2007 <NAME>
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/filters.h>
#include <botan/mem_ops.h>
#include <botan/internal/rounding.h>
#include <botan/exceptn.h>
namespace Botan {
/*
* Buffered_Filter Constructor
*/
Buffered_Filter::Buffered... | 1,145 |
848 | <filename>vision/L1/include/imgproc/xf_black_level.hpp
#ifndef __XF_BLACK_LEVEL_HPP__
#define __XF_BLACK_LEVEL_HPP__
// =========================================================================
// Required files
// =========================================================================
#include "common/xf_common.hpp... | 1,493 |
14,668 | // 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 "components/flags_ui/flags_ui_switches.h"
namespace switches {
// These two flags are added around the switches about:flags adds to the
// comm... | 160 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Guidance",
"definitions": [
"Advice or information aimed at resolving a problem or difficulty, especially as given by someone in authority.",
"The directing of the motion or position of something, especially an aircraft, spacecraft, or missile."
]... | 118 |
401 | /*
* Copyright (C) 2014 - 2016 Softwaremill <https://softwaremill.com>
* Copyright (C) 2016 - 2020 Lightbend Inc. <https://www.lightbend.com>
*/
package docs.javadsl;
import akka.NotUsed;
import akka.actor.typed.ActorSystem;
import akka.actor.typed.Behavior;
import akka.actor.typed.javadsl.Adapter;
import akka.act... | 1,561 |
627 | /* 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.
*
* Battery pack vendor provided charging profile
*/
#include "battery.h"
#include "battery_smart.h"
#include "charge_manager.h"
#include "charger.h... | 1,800 |
369 | <filename>cdap-api/src/main/java/io/cdap/cdap/api/spark/SparkHttpServiceHandlerSpecification.java
/*
* Copyright © 2017 <NAME>, 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
*
*... | 801 |
3,181 | <reponame>LibertyPhoneProject/App-GMS-Core
/*
* SPDX-FileCopyrightText: 2020 microG Project Team
* SPDX-License-Identifier: Apache-2.0 AND CC-BY-4.0
* Notice: Portions of this file are reproduced from work created and shared by Google and used
* according to terms described in the Creative Commons 4.0 Attri... | 537 |
76,518 | <reponame>tameemzabalawi/PowerToys
#include <windows.h>
#include <string>
class EventLocker
{
public:
EventLocker(HANDLE h)
{
eventHandle = h;
SetEvent(eventHandle);
}
static std::optional<EventLocker> Get(std::wstring eventName)
{
EventLocker locker(eventName);
if ... | 593 |
2,023 | #!/usr/bin/python
"""
QtBreadCrumbs - A simple BreadCrumbs Navigation Bar
###================ Program Info ================###
Program Name : QtBreadCrumbs
Version : 1.0.0
Platform : Linux/Unix
Requriements :
Must :
modules PyQt4
Python Version : Python 2.6 or higher
Author... | 2,093 |
711 | <reponame>jingetiema2100/MicroCommunity
package com.java110.utils.constant;
/**
* 业主属性常量类
* Created by wuxw on 2017/5/20.
*/
public class ServiceCodeOwnerAttrConstant {
/**
* 添加 业主属性
*/
public static final String ADD_OWNERATTR = "owner.saveOwnerAttr";
/**
* 修改 业主属性
*/
public s... | 306 |
558 | package skadistats.clarity.processor.runner;
import skadistats.clarity.source.ResetRelevantKind;
import java.io.IOException;
public class LoopController {
public enum Command {
CONTINUE,
BREAK,
FALLTHROUGH,
AGAIN,
RESET_START,
RESET_CLEAR,
RESET_ACCUMULAT... | 460 |
12,824 | package test;
public abstract class MyAsyncTask extends AsyncTask<String, String, String> {
protected abstract String doInBackground1(String[] args);
@Override
protected String doInBackground(String... args) {
return doInBackground1(new String[]{"dummy"});
}
} | 89 |
679 | <filename>main/wizards/com/sun/star/wizards/fax/FaxWizardDialog.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
... | 17,979 |
395 | <gh_stars>100-1000
import pytest
import torch
from backpack import extend
from ..implementation.implementation_autograd import AutogradImpl
from ..implementation.implementation_bpext import BpextImpl
from ..test_problem import TestProblem
def make_large_linear_classification_problem():
Ds = [784, 512, 256, 64, ... | 1,383 |
1,851 | // Copyright © 2018 <NAME>. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modif... | 2,155 |
1,040 | <reponame>Ybalrid/orbiter<filename>Utils/tileedit/qt/src/colorbar.cpp
#include "colorbar.h"
#include "cmap.h"
#include "QPainter"
#include "QResizeEvent"
Colorbar::Colorbar(QWidget *parent)
: QWidget(parent)
{
m_elevDisplayParam = 0;
m_overlay = new ColorbarOverlay(this);
m_mode = TILEMODE_NONE;
}
Colorbar::~Colo... | 3,139 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Essonne","inscrits":4876,"abs":1961,"votants":2915,"blancs":14,"nuls":10,"exp":2891,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":1083},{"nuance":"LR","nom":"Mme <NAME>","voix":484},{"nuance":"DVD","nom":"... | 358 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Digestive",
"definitions": [
"Relating to the process of digesting food.",
"(of food or medicine) aiding or promoting the process of digestion."
],
"parts-of-speech": "Adjective"
} | 103 |
6,612 | <filename>impacket/examples/ntlmrelayx/clients/smbrelayclient.py
# Impacket - Collection of Python classes for working with network protocols.
#
# SECUREAUTH LABS. Copyright (C) 2020 SecureAuth Corporation. All rights reserved.
#
# This software is provided under a slightly modified version
# of the Apache Software Lic... | 13,149 |
458 | //
// LAZShader.h
// LidarViewer
//
// Created by <NAME> on 10/27/15.
// Copyright © 2015-2017 mousebird consulting. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MaplyShader.h"
#import "MaplyBaseViewController.h"
// Name of the point size uniform attribute.
extern NSString* const kMaplyLAZShaderPointS... | 278 |
1,262 | # coding: utf8
# MIT License
import json
import uuid
import os
import subprocess
from time import time
def tidy(text):
return subprocess.check_output(['/usr/bin/php', 'tidy.php', text])
title = os.environ['POPCLIP_BROWSER_TITLE']
html = os.environ['POPCLIP_HTML']
text = os.environ['POPCLIP_TEXT']
url = os.enviro... | 688 |
558 | <reponame>jonfairbanks/rtsp-nvr<filename>v2/backend/admin/form.py
import sqlalchemy
from flask_admin.form import BaseForm
from flask_admin.form.fields import Select2Field
from flask_admin.model.form import converts
from flask_admin.contrib.sqla.form import AdminModelConverter
class ReorderableForm(BaseForm):
def ... | 813 |
497 | //#include <torch/torch.h>
#include <torch/extension.h>
#include "GANet_kernel.h"
extern "C" int
lga_cuda_backward (at::Tensor input, at::Tensor filters,
at::Tensor gradOutput, at::Tensor gradInput,
at::Tensor gradFilters, const int radius)
{
lga_backward (input, filters, gradOutput, gradInput, gradFilters... | 1,035 |
3,539 | /*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2010 - 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 Software without... | 2,030 |
5,169 | <reponame>morizotter/Specs<filename>Specs/DMAppearance/0.1/DMAppearance.podspec.json
{
"name": "DMAppearance",
"version": "0.1",
"summary": "Partial functionality from UIAppearance proxy for custom objects",
"description": " * Partial functionality from UIAppearance proxy for custom objects ap... | 316 |
392 | <filename>platform-api/src/main/java/com/platform/service/ApiChannelService.java
package com.platform.service;
import com.platform.dao.ApiChannelMapper;
import com.platform.entity.ChannelVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.... | 417 |
483 | <reponame>asad-awadia/nitrite-java
/*
* Copyright (c) 2017-2020. Nitrite 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
*
* http://www.apache.org/licenses/LICEN... | 1,620 |
473 | <gh_stars>100-1000
{
"comment":" This config file uses default settings for all but the required values see README.md for docs",
"id": "default",
"description": "Default settings",
"engineFactory": "com.actionml.RecommendationEngine",
"datasource": {
"params" : {
"appName": "default-rank",
"ev... | 717 |
10,225 | <reponame>mweber03/quarkus
package org.jboss.resteasy.reactive.server.core;
import org.jboss.resteasy.reactive.server.mapping.RuntimeResource;
public class UriMatch {
public final String matched;
public final RuntimeResource resource;
public final Object target;
public UriMatch(String matched, Runtim... | 156 |
2,338 | <gh_stars>1000+
//===--- status_test.cpp - Tests for the Status and Expected classes ------===//
//
// 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
//
//===-----------... | 533 |
4,526 | <reponame>zhaitianduo/libosmium
#include "catch.hpp"
#include <osmium/builder/attr.hpp>
#include <osmium/builder/builder_helper.hpp>
#include <osmium/memory/buffer.hpp>
#include <osmium/osm/tag.hpp>
#include <map>
#include <string>
#include <utility>
#include <vector>
using namespace osmium::builder::attr; // NOLINT... | 3,408 |
423 | <filename>models/modules/ChainedPredictions.py
import torch
import torchvision
import torch.nn as nn
import torch.nn.functional as F
class Identity(nn.Module):
"""docstring for Identity"""
def __init__(self):
super(Identity, self).__init__()
def forward(self, x):
return x
class Deception(nn.Module):
... | 623 |
2,728 | import azure.cosmos.cosmos_client as cosmos_client
import azure.cosmos._synchronized_request as synchronized_request
import unittest
import test_config
class FakePipelineResponse:
def __init__(
self,
http_response,
):
self.http_response = http_response
class FakeHttpResponse:
def... | 876 |
10,225 | package io.quarkus.arc.test.buildextension.observers;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import io.quarkus.arc.processor.ObserverRegistrar;
import io.quarkus.arc.test.ArcTestContainer;
import org.junit.jupiter.api.Test;
import org.j... | 536 |
12,824 | <reponame>jamesanto/scala
class C {
class D { public int i() { return 2; } }
static class E { public int i() { return 2; } }
static class F { static class G { public int i() { return 2; } } }
}
// Test2 has an INNERCLASS attribute for C$D
class Test_2 {
public static int acceptD(C.D cd) { return cd.i(); }
pu... | 157 |
3,428 | {"id":"01318","group":"spam-2","checksum":{"type":"MD5","value":"5ceb2b7a8b5780b006500266f5a508ca"},"text":"From <EMAIL> Tue Aug 6 11:05:54 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id ... | 1,606 |
2,151 | /*
* Copyright (C) 2000 <NAME> (<EMAIL>)
* (C) 2000 <NAME> (<EMAIL>)
* (C) 2000 <NAME> <EMAIL>)
* Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2006 <NAME> (<EMAIL>)
*
* This library is free software; you can redistribute it and/or
* modify it und... | 1,769 |
14,668 | // 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.
#include "net/dns/dns_server_iterator.h"
#include "base/time/time.h"
#include "net/dns/dns_session.h"
#include "net/dns/resolve_context.h"
#include "thir... | 2,203 |
834 | <reponame>BohdanMosiyuk/samples<gh_stars>100-1000
#using <System.Data.dll>
#using <System.Windows.Forms.dll>
#using <System.dll>
#using <System.Drawing.dll>
using namespace System;
using namespace System::Drawing;
using namespace System::Collections;
using namespace System::ComponentModel;
using namespace System::Wi... | 820 |
735 | /*
* Copyright (C) 2005 <NAME>.
* Copyright (C) 2006, 2007, 2018 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 14. May 2005 b... | 310 |
772 | <reponame>code-dot-org/code-dot-org
{
"blocks": "blocchi",
"glass": "bichjeru",
"grass": "erba",
"gravel": "gravetta",
"lava": "lava"
} | 70 |
575 | <gh_stars>100-1000
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/containers/flat_set.h"
#include "base/test/simple_test_tick_clock.h"
#include "components/viz/common/surfaces/surface_id... | 52,841 |
829 | package io.flowing.retail.zeebe.order.domain;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persiste... | 573 |
391 | <filename>play_widget/src/main/java/com/cleveroad/play_widget/OnShadowChangeListener.java
package com.cleveroad.play_widget;
/**
* Interface for shadow change listener.
*/
interface OnShadowChangeListener {
/**
* Set shadow percentages for diffusers.
*
* @param bigDiffuserShadowPercentage shad... | 223 |
5,169 | <reponame>Gantios/Specs
{
"name": "KMPermissionManager",
"version": "2.0.0",
"summary": "A tool help to handle permission stuff on iOS",
"description": "A simple tool help to handle permiss stuff on iOS, with unify permission status.",
"homepage": "https://github.com/sleepEarlier/KMPermissionManager.git",
"... | 319 |
2,380 | <gh_stars>1000+
/**
*
* Copyright 2003-2006 Jive Software.
*
* 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 ... | 701 |
323 | /*
* @Copyright (c) 2018 缪聪(<EMAIL>)
*
* 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... | 575 |
499 | from .autox import AutoX
from .autoxserver import AutoXServer | 17 |
737 | /* zookeeper.h -*- C++ -*-
<NAME>, 17 August 2012
Copyright (c) 2012 Datacratic. All rights reserved.
*/
#pragma once
#include <zookeeper/zookeeper.h>
#include "jml/arch/exception.h"
#include "jml/arch/format.h"
#include "jml/utils/guard.h"
#include <set>
... | 2,754 |
852 | import FWCore.ParameterSet.Config as cms
# local clusterizer
from RecoPPS.Local.ctppsPixelClusters_cfi import ctppsPixelClusters
# local rechit producer
from RecoPPS.Local.ctppsPixelRecHits_cfi import ctppsPixelRecHits
# local track producer
from RecoPPS.Local.ctppsPixelLocalTracks_cfi import ctppsPixelLocalTracks
... | 174 |
3,102 | <filename>clang/test/Sema/pr30306.cpp
// RUN: %clang_cc1 -x c++ -triple x86_64-pc-linux-gnu -emit-llvm < %s | FileCheck %s
struct A { A(int); ~A(); };
int f(const A &);
// CHECK: call void @_ZN1AC1Ei
// CHECK-NEXT: call i32 @_Z1fRK1A
// CHECK-NEXT: call void @_ZN1AD1Ev
// CHECK: call void @_ZN1AC1Ei
// CHECK-NEXT: cal... | 232 |
1,799 | <gh_stars>1000+
//---------------------------------------------------------------------------
#ifndef logstrdlgH
#define logstrdlgH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.... | 807 |
6,205 | import platform
import textwrap
import pytest
from conans.test.utils.tools import TestClient
conanfile = textwrap.dedent("""\
[generators]
IntelCC
""")
intelprofile = textwrap.dedent("""\
[settings]
os=%s
arch=x86_64
arch_build=x86_64
compiler=intel-cc
compiler.mode=dpcpp
compiler.version=2021.3
compiler.libcxx=lib... | 638 |
676 | <gh_stars>100-1000
package core.notifications;
import core.datasource.CloudDataSource;
import core.datasource.RestWrapper;
import core.datasource.SdkItem;
import java.util.List;
import java.util.concurrent.Callable;
import retrofit2.Call;
import rx.Observable;
public class CloudNotificationsDataSource
extends Clo... | 367 |
348 | <filename>docs/data/leg-t2/039/03903569.json
{"nom":"<NAME>","circ":"3ème circonscription","dpt":"Jura","inscrits":406,"abs":198,"votants":208,"blancs":13,"nuls":4,"exp":191,"res":[{"nuance":"LR","nom":"<NAME>","voix":123},{"nuance":"MDM","nom":"<NAME>","voix":68}]} | 111 |
369 | /** @file
@brief Header
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 a... | 3,559 |
1,510 | /*
* 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 ... | 611 |
910 | <filename>docs/action/java/ic_invert_colors.java
package com.github.megatronking.svg.iconlibs;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import com.github.megatronking.svg.support.SVGRenderer;
/**
* AUTO-GENERATED FI... | 1,255 |
1,745 | <filename>Source/Scripting/bsfScript/Generated/BsScriptAudio.generated.cpp
//********************************* bs::framework - Copyright 2018-2019 <NAME> ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#i... | 1,140 |
1,467 | /*
* Copyright 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/apache2.0
*
* or in the "license" file ... | 1,064 |
774 | """The module facilitates a class `EfficientFrontier` that can be used to
optimise a portfolio by minimising a cost/objective function.
"""
import numpy as np
import pandas as pd
import scipy.optimize as sco
import matplotlib.pylab as plt
import finquant.minimise_fun as min_fun
from finquant.quants import annualised_... | 7,655 |
413 | from i3pystatus import IntervalModule, formatp
from enum import IntEnum
import requests
from urllib.parse import urljoin
class SensuCheck(IntervalModule):
""" Pool sensu api events
.. rubric:: Available formatters
* {status} OK if not events else numbers of events
* {last_event} Display the output ... | 1,741 |
4,812 | <gh_stars>1000+
//===- Error.cpp - system_error extensions for llvm-readobj -----*- C++ -*-===//
//
// 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
//
//===-----------... | 598 |
669 | <gh_stars>100-1000
#!/usr/bin/env python
# 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.
# ----------------------------... | 6,755 |
645 | <filename>tests/x64asm/reg_set.h
// Copyright 2013-2016 Stanford University
//
// 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... | 1,358 |
1,551 | // Copyright 2017-2019 <NAME>
//
// This file is part of Gobbledegook.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file in the root of the source tree.
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 934 |
2,151 | <reponame>zipated/src
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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
*
* ... | 495 |
793 | <filename>clang/test/APINotes/Inputs/Headers/ModuleWithWrongCase.h
extern int ModuleWithWrongCase;
| 36 |
6,098 | <filename>h2o-core/src/main/java/water/api/schemas3/LogsV3.java
package water.api.schemas3;
import water.Iced;
import water.api.API;
public class LogsV3 extends RequestSchemaV3<Iced, LogsV3> {
@API(help="Identifier of the node to get logs from. It can be either node index starting from (0-based), where -1 means cur... | 224 |
474 | #import "SampleClass.h"
NS_ASSUME_NONNULL_BEGIN
@interface SampleClass (Cat)
@property (nonatomic) NSString *additionalDynamicProperty;
@property (nonatomic) NSString *additionalNonDynamicProperty;
@end
NS_ASSUME_NONNULL_END
| 79 |
646 | <reponame>monocilindro/qgis-earthengine-examples
import ee
from ee_plugin import Map
# Image.reduceRegion example
#
# Computes a simple reduction over a region of an image. A reduction
# is any process that takes an arbitrary number of inputs (such as
# all the pixels of an image in a given region) and computes one... | 387 |
2,332 | <reponame>JeroenvdSande/dash-sample-apps<gh_stars>1000+
"""
Adapted from: https://pydeck.gl/gallery/bitmap_layer.html
A 1906 Britton & Rey's map of San Francisco's 1906 fire, overlaid on
an interactive map of San Francisco.
"""
import os
import dash
import dash_deck
import dash_html_components as html
import pydeck a... | 528 |
1,988 | #!/usr/bin/python3
import sys
import datetime
# (C) 2018 <NAME>
# Botan is released under the Simplified BSD License (see license.txt)
# Used to generate src/lib/math/mp/mp_monty_n.cpp
def monty_redc_code(n):
lines = []
lines.append("word w2 = 0, w1 = 0, w0 = 0;")
lines.append("w0 = z[0];")
lines.... | 1,390 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "IconBadger",
"version": "1.0.0",
"summary": "Script adding dynamically a badge with a custom text to the app's icon on build time",
"homepage": "https://github.com/ach-ref/IconBadger",
"description": "Script written in Swift that prepares the iOS app icon over... | 358 |
4,036 | <reponame>vadi2/codeql
public class Account {
private Integer balance;
public Account(Integer startingBalance) {
this.balance = startingBalance;
}
}
public class BankManager {
public void openAccount(Customer c) {
...
// AVOID: Inefficient primitive constructor
accounts.add(new Account(new Integer(0)));
... | 159 |
322 | <reponame>intel/intel-extension-for-pytorch<filename>torch_ipex/csrc/cpu/WeightPack.h
#pragma once
#include <ATen/Tensor.h>
#include "ideep/ideep.hpp"
#include <vector>
namespace torch_ipex {
namespace cpu {
// Get conv packed weight according to input_size,
// if input size is empty, will use dummy input size, th... | 1,404 |
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.
#include "pdf/ppapi_migration/image.h"
#include "ppapi/cpp/image_data.h"
#include "third_party/abseil-cpp/absl/types/varia... | 239 |
1,444 | package org.mage.test.cards.single.m21;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class ChandrasIncineratorTest extends CardTestPlayerBase {
@Test
public void testCostReduction(){
// {5}{R}
... | 431 |
3,194 | /**
* Copyright (c) 2011-2021, <NAME> 詹波 (<EMAIL>).
*
* 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 b... | 772 |
2,151 | <gh_stars>1000+
// Copyright 2014 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 has been auto-generated from the Jinja2 template
// third_party/blink/renderer/bindings/templates/interface.cpp.tmpl
// by th... | 3,391 |
458 | <filename>manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/model/IngressBuilderProvider.java
/**
* Copyright 2019 <NAME>, 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 c... | 784 |
1,894 | # coding: utf-8
#
# This file is part of pyasn1-modules software.
#
# Created by <NAME> with asn1ate tool.
# Copyright (c) 2005-2019, <NAME> <<EMAIL>>
# License: http://snmplabs.com/pyasn1/license.html
#
# Cryptographic Message Syntax (CMS)
#
# ASN.1 source from:
# http://www.ietf.org/rfc/rfc3852.txt
#
from pyasn1.type... | 7,045 |
637 | <reponame>ChineseBoyLY/CMakeTutorial
import os
import shlex
import subprocess
import datetime
import time
import shutil
from setuptools import setup, Extension
cwd = os.path.dirname(os.path.abspath(__file__))
def execute_command(cmdstring, cwd=None, timeout=None, shell=False):
"""执行一个SHELL命令封装了subprocess的Popen方法... | 1,436 |
487 | /**
* Copyright 2014-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 3,312 |
576 | <reponame>anderlli0053/godex
#ifndef TEST_ECS_COMPONENT_H
#define TEST_ECS_COMPONENT_H
#include "tests/test_macros.h"
#include "../ecs.h"
#include "../modules/godot/components/transform_component.h"
namespace godex_component_test {
TEST_CASE("[Modules][ECS] Test component create pointer.") {
void *transform = ECS:... | 1,677 |
4,339 | <reponame>vvteplygin/ignite
/*
* 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
... | 2,148 |
3,553 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2019-2021 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 4,594 |
1,694 | /*
* Copyright (C) 2008 The Guava 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 or agreed ... | 440 |
348 | <filename>docs/data/leg-t2/070/07001574.json
{"nom":"Volon","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":69,"abs":25,"votants":44,"blancs":1,"nuls":0,"exp":43,"res":[{"nuance":"FN","nom":"Mme <NAME>","voix":24},{"nuance":"REM","nom":"Mme <NAME>","voix":19}]} | 115 |
4,392 | <filename>benchmark/rotm.c
/***************************************************************************
Copyright (c) 2014, The OpenBLAS Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Re... | 1,867 |
369 | /*
* Copyright © 2018 <NAME>, 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 i... | 610 |
340 | <reponame>lei-liu1/OCTIS
from octis.evaluation_metrics.metrics import AbstractMetric
from octis.dataset.dataset import Dataset
from gensim.corpora.dictionary import Dictionary
from gensim.models import CoherenceModel
from gensim.models import KeyedVectors
import gensim.downloader as api
import octis.configuration.citat... | 3,560 |
763 | package org.batfish.dataplane.ibdp;
import static org.batfish.datamodel.ExprAclLine.REJECT_ALL;
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertThat;
import com.google.common.collect.ImmutableSortedMap;
import java.io.IOException;
import java.... | 2,269 |
335 | {
"word": "Precedent",
"definitions": [
"An earlier event or action that is regarded as an example or guide to be considered in subsequent similar circumstances.",
"A previous case or legal decision that may be or (binding precedent) must be followed in subsequent similar cases."
],
"par... | 105 |
312 | <filename>deployment/src/test/java/io/quarkiverse/githubapp/deployment/OptionalConfigFileTest.java
package io.quarkiverse.githubapp.deployment;
import java.util.Optional;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Test;
import org.junit.j... | 711 |
485 | //
// IOBluetoothExtended.h
// IOBluetoothExtended
//
// Created by <NAME> on 06.07.19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <HCIDelegate.h>
#import <HCICommunicator.h>
#import <IOBluetoothHostController.h>
//! Project version number for IOBluetoothExtended.
FOUNDATI... | 205 |
428 | <reponame>alexbzg/picoweb<gh_stars>100-1000
#
# This is a picoweb example showing handling of HTTP Basic authentication.
#
import ubinascii
import picoweb
app = picoweb.WebApp(__name__)
@app.route("/")
def index(req, resp):
if b"Authorization" not in req.headers:
yield from resp.awrite(
'HTT... | 356 |
4,054 | <filename>fnet/src/tests/locking/dummy.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
class DummyObj
{
public:
DummyObj();
~DummyObj();
};
class DummyLock
{
public:
void Lock();
void Unlock();
};
| 101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.