max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,680 | <filename>pxr/imaging/garch/glPlatformContextDarwin.h
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. T... | 667 |
3,459 | <gh_stars>1000+
/***************************************************************************
* Copyright (C) 2008 by <NAME> *
* <EMAIL> *
* *
* This program is fre... | 1,498 |
690 | <filename>pysts/kerasts/__init__.py
"""
The "STS for Keras" toolkit. Contains various Keras blocks that make
putting together and comfortably running neural STS models a breeze.
"""
import numpy as np
def graph_input_anssel(si0, si1, sj0, sj1, se0, se1, y, f0=None, f1=None, s0=None, s1=None, kw=None, akw=None):
... | 2,351 |
354 | /*-------------------------------------------------------------------------
* drawElements Internal Test Module
* ---------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian... | 2,998 |
3,710 | /*****************************************************************************
Copyright (c) 2011, Lab of Parallel Software and Computational Science,ICSAS
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:... | 763 |
310 | <filename>gear/hardware/a/a119-v3.json
{
"name": "<NAME>",
"description": "A car dash camera.",
"url": "https://www.viofo.com/en/dash-cam/143-a119-v3-with-gps-2k-25601600p-30fps-quad-hd-car-dash-cam.html"
}
| 100 |
319 | <filename>hadoop/tools/HadoopTwitterTokenTool/src/main/java/org/openimaj/hadoop/tools/twitter/HadoopLZOTest.java<gh_stars>100-1000
/**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without mo... | 1,891 |
1,604 | <filename>core/src/test/java/org/bouncycastle/crypto/test/CSHAKETest.java<gh_stars>1000+
package org.bouncycastle.crypto.test;
import org.bouncycastle.crypto.digests.CSHAKEDigest;
import org.bouncycastle.crypto.digests.SHAKEDigest;
import org.bouncycastle.util.Arrays;
import org.bouncycastle.util.Strings;
import org.b... | 4,077 |
890 | import json
from flask import g, current_app
from flask_restful import marshal, abort, reqparse, Resource
from app import db
from app.constants import API_ENVELOPE
from app.models import Preference
from app.apiv2.decorators import verify_org_location_role_schedule, \
permission_location_manager_or_self, schedule_... | 1,456 |
1,428 | <reponame>PushpneetSingh/Hello-world
public class HelloFromPoland {
public static void main(String[] args) {
// Prints "Hello from Poland!" to the terminal window.
System.out.println("Hello from Poland!");
}
}
| 86 |
777 | <reponame>google-ar/chromium
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_list/arc/arc_default_app_list.h"
#include "base/files/file_enumerator.h"
#include "base/json... | 3,272 |
2,055 | <reponame>DarianLiu/MVVMLight-master
package com.kelin.mvvmlight.bindingadapter.image;
import android.databinding.BindingAdapter;
import android.graphics.Bitmap;
import android.net.Uri;
import android.support.annotation.DrawableRes;
import android.text.TextUtils;
import android.widget.ImageView;
import com.facebook.c... | 1,352 |
1,125 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 975 |
561 | <reponame>leminhnguyen/NATSpeech
# rnnoise.py, requirements: ffmpeg, sox, rnnoise, python
import os
import subprocess
INSTALL_STR = """
RNNoise library not found. Please install RNNoise (https://github.com/xiph/rnnoise) to $REPO/rnnoise:
sudo apt-get install -y autoconf automake libtool ffmpeg sox
git clone https://gi... | 935 |
7,158 | <filename>modules/surface_matching/samples/ppf_load_match.py
import cv2 as cv
N = 2
modelname = "parasaurolophus_6700"
scenename = "rs1_normals"
detector = cv.ppf_match_3d_PPF3DDetector(0.025, 0.05)
print('Loading model...')
pc = cv.ppf_match_3d.loadPLYSimple("data/%s.ply" % modelname, 1)
print('Training...')
dete... | 442 |
853 | #ifndef _GETLN_H____
#define _GETLN_H____
extern int getln(int, void *, long long);
#endif
| 42 |
864 | """
Mixin class containing entity versioning specific methods
To be used by OpenMetadata
"""
import logging
from typing import Generic, List, Optional, Type, TypeVar, Union
from pydantic import BaseModel
from requests.models import Response
from metadata.generated.schema.type import basic
from metadata.generated.sc... | 1,116 |
1,799 | // Copyright (c) 2019 PaddlePaddle 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... | 1,232 |
852 | #include "HLTriggerOffline/Muon/interface/L1MuonMatcherAlgo.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
L1MuonMatcherAlgo::L1MuonMatcherAlgo(const edm::ParameterSet &iConfig)
: prop_(iConfig),
preselectionCut_(iConfig.existsAs<std::string>("preselection") ? iConfig.getParameter<std::string>... | 1,346 |
8,232 | <reponame>isra-fel/STL
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <synchapi.h>
// This must be as small as possible, because its contents are
// injected into the msvcprt.lib and msvcprtd.lib import libraries.
// Do not include or define anything... | 622 |
331 | """
# https://stackoverflow.com/questions/547829/how-to-dynamically-load-a-python-class
"""
import importlib
def get_class_contructor(class_location):
mod_path = class_location[:class_location.rfind('.')]
class_name = class_location[class_location.rfind('.') + 1:]
module = importlib.import_module(mod_path... | 140 |
1,056 | <filename>ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/signals/SignalSupport.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 owners... | 2,081 |
888 | <filename>tests/system/conftest.py
import ssl
import pytest
import trustme
@pytest.fixture(scope="session")
def ca():
return trustme.CA()
@pytest.fixture(scope="session")
def localhost_cert(ca):
return ca.issue_cert("localhost")
@pytest.fixture(scope="session")
def httpserver_ssl_context(localhost_cert):... | 235 |
1,738 | <reponame>jeikabu/lumberyard<filename>dev/Gems/LmbrCentral/Code/include/LmbrCentral/Shape/EditorSplineComponentBus.h
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distributi... | 390 |
385 | /**
* @file pfnc.h
* @brief Functions that communicate with the NVN function pool.
*/
#pragma once
// there's a lot of these
static void* pfnc_nvnMemoryPoolGetFlags;
static void* pfnc_nvnMemoryPoolFlushMappedRange;
static void* pfnc_nvnTexturePoolInitialize;
static void* pfnc_nvnTexturePoolSetDebugLabel;
static vo... | 122 |
4,392 | int main(void){return 0;}
| 9 |
605 | //======- ArmSVEToLLVMIRTranslation.cpp - Translate ArmSVE to LLVM IR -=======//
//
// 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
//
//===---------------------------... | 646 |
1,023 | <reponame>AvivBenchorin/OpenSearch-Dashboards<filename>src/plugins/telemetry/opensearch_dashboards_back.json
{
"id": "telemetry",
"version": "opensearchDashboards",
"server": true,
"ui": true,
"requiredPlugins": [
"telemetryCollectionManager",
"usageCollection"
],
"extraPublicDirs": ["common/const... | 157 |
5,169 | <reponame>morizotter/Specs
{
"name": "NodeKittenX",
"version": "0.1.3",
"summary": "experimental GL(es) framework written in c++11",
"homepage": "https://github.com/structuresound/NodeKittenX",
"license": "MIT",
"authors": {
"structuresound": "<EMAIL>"
},
"source": {
"git": "https://github.com/s... | 783 |
1,500 | <filename>src/garage/tf/baselines/__init__.py
"""Baseline estimators for TensorFlow-based algorithms."""
from garage.tf.baselines.continuous_mlp_baseline import ContinuousMLPBaseline
from garage.tf.baselines.gaussian_cnn_baseline import GaussianCNNBaseline
from garage.tf.baselines.gaussian_mlp_baseline import GaussianM... | 148 |
892 | <filename>advisories/github-reviewed/2021/11/GHSA-35m5-8cvj-8783/GHSA-35m5-8cvj-8783.json
{
"schema_version": "1.2.0",
"id": "GHSA-35m5-8cvj-8783",
"modified": "2021-11-08T18:58:04Z",
"published": "2021-11-10T16:28:46Z",
"aliases": [
"CVE-2021-39182"
],
"summary": "Improper hashing in enrocrypt",
"d... | 1,188 |
445 | #include "multiverso/io/local_stream.h"
#include <errno.h>
extern "C" {
#include <sys/stat.h>
}
#ifndef _MSC_VER
extern "C" {
#include <sys/types.h>
#include <dirent.h>
}
#else
#include <Windows.h>
#define stat _stat64
#endif
namespace multiverso {
LocalStream::LocalStream(const URI& uri, FileOpenMode mode) {
path_... | 897 |
356 | /*
* Copyright 2015-2018 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 5,832 |
1,813 | package com.example.tools.traceur;
import com.tspoon.traceur.Traceur;
/**
* We are using an interface to initialize Traceur that gets implemented both in the debug folder and in the release folder. In the debug
* folder it starts up Traceur, while in the release folder it does nothing. This way we don't need to kee... | 161 |
480 | {
"actions": {
"check": {
"desc": "check if crowd-pack is ready",
"for_web": "yes"
},
"crowdsource": {
"desc": "prepare experiments for crowdsourcing using mobile phones",
"for_web": "yes"
},
"request": {
"desc": "request experiment pack for mobile device",
"for... | 642 |
697 | <reponame>1634865486/AndroidTimeableView<filename>AndroidTimetableView/app/src/main/java/com/zhuangfei/android_timetableview/views/CustomWidthActivity.java
package com.zhuangfei.android_timetableview.views;
import android.content.DialogInterface;
import android.graphics.Color;
import android.os.Bundle;
import android.... | 2,925 |
1,144 | /* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2005
* ARM Ltd.
* <NAME>, <<EMAIL>>
* Configuration for ARM Core Modules.
* No standalonw port yet available
* - this file is included by both integratorap.h & integratorcp.h
*/
#ifndef __ARMCOREMODULE_H
#define __ARMCOREMODULE_H
#define CM_BASE 0x10... | 1,098 |
850 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import numpy as np
def hbox_grid_sample(boxes, point_num_per_line=3):
bin_w, bin_h = (boxes[:, 2] - boxes[:, 0]) / (point_num_per_line-1), (boxes[:, 3] - boxes[:, 1]) / (point_nu... | 1,125 |
5,964 | <gh_stars>1000+
// 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 CueTimeline_h
#define CueTimeline_h
#include "core/html/track/TextTrackCue.h"
#include "core/html/track/vtt/VTTCue.h"
#include "p... | 962 |
515 | <filename>compressai/zoo/pretrained.py
# Copyright (c) 2021-2022, InterDigital Communications, Inc
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the disclaimer
# below) provided that the following conditions are ... | 904 |
839 | <reponame>kimjand/cxf<filename>tools/corba/src/main/java/org/apache/cxf/tools/corba/utils/FileOutputStreamFactory.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 co... | 2,190 |
304 | """Load transformations from URDF files.
See :doc:`transform_manager` for more information.
"""
import os
import numpy as np
from bs4 import BeautifulSoup
from .transform_manager import TransformManager
from .transformations import transform_from, concat
from .rotations import (
active_matrix_from_extrinsic_roll_p... | 12,031 |
389 | <reponame>tcmoore32/sheer-madness
/*
* Copyright 2014 <NAME>, Inc.
*/
package gw.lang.reflect.gs;
import java.util.List;
public class ReloadResults {
public enum ReloadStatus {
SUCCESS,
NOT_ATTEMPTED,
PARSE_FAILURE,
REDEFINE_REJECTED,
REDEFINE_ERROR,
OTHER_ERROR
}
private ReloadSt... | 280 |
1,932 | <filename>ch18-1/ch18-1-consumer/src/main/java/cn/springcloud/book/feign/HelloFeignService.java
package cn.springcloud.book.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @aut... | 175 |
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 "chrome/browser/ui/thumbnails/thumbnail_capture_driver.h"
#include "base/check_op.h"
// static
constexpr base::TimeDelta ThumbnailCaptureDriver... | 2,091 |
903 | #include "../../../src/gui/util/qsystemtrayicon_p.h"
| 24 |
562 | #include <packio/packio.h>
#if defined(PACKIO_STANDALONE_ASIO)
namespace net = ::asio;
#else // defined(PACKIO_STANDALONE_ASIO)
namespace net = ::boost::asio;
#endif // defined(PACKIO_STANDALONE_ASIO)
int main(int, char **) {
net::io_context io;
net::ip::tcp::endpoint bind_ep{net::ip::make_address("127.0.0.1"), ... | 195 |
639 | //
// HZSessionTask.h
// HZNetwork
//
// Created by xzh. on 15/8/17.
// Copyright (c) 2015年 xzh. All rights reserved.
//
/**************** 具体的请求任务,配置参数,输出数据 ****************/
#import <Foundation/Foundation.h>
#import "HZNetworkConfig.h"
#import "HZNetworkConst.h"
#import "HZSessionTaskDelegate.h"
@class HZ... | 2,877 |
9,724 | <filename>tests/test_sigalrm.c
// Copyright 2015 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
#include <stdio.h>
#include <stdli... | 278 |
965 | pOutlookBar->EnableInPlaceEdit(TRUE);
pOutlookBar->EnableAnimation();
pOutlookBar->EnableScrollButtons();
pOutlookBar->SetBorderSize(10);
pOutlookBar->SetPageButtonTextAlign(TA_LEFT); | 63 |
305 | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* 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. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 4,380 |
1,914 | <reponame>PuetzD/platform<filename>src/Administration/Resources/app/administration/src/module/sw-settings-delivery-times/snippet/en-GB.json<gh_stars>1000+
{
"global": {
"error-codes": {
"DELIVERY_TIME_MIN_INVALID": "The minimum value should not be higher than the maximum value."
}
},
"sw-settings-de... | 636 |
2,110 | #ifndef __NCPP_SUBPROC_HH
#define __NCPP_SUBPROC_HH
#include <notcurses/notcurses.h>
#include "Root.hh"
#include "Plane.hh"
#include "Widget.hh"
#include "Utilities.hh"
namespace ncpp
{
class NCPP_API_EXPORT Subproc : public Widget
{
public:
static ncsubproc_options default_options;
public:
explicit Subproc... | 1,410 |
14,668 | // Copyright 2015 The Crashpad 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 ... | 1,088 |
6,660 | #
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license noti... | 3,437 |
575 | <gh_stars>100-1000
// Copyright 2013 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.tab;
import android.graphics.Bitmap;
import org.chromium.components.find_in_page.FindMatchRectsDe... | 1,295 |
440 | <filename>demo-rollup/package.json<gh_stars>100-1000
{
"name": "leaflet-control-geocoder-demo-rollup",
"private": true,
"scripts": {
"build": "rollup --config"
},
"dependencies": {
"leaflet": "^1.5.1",
"leaflet-control-geocoder": "^1.8.0"
},
"devDependencies": {
"rollup": "^1.14.4",
"r... | 195 |
347 | <filename>frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/widget/table/column/CommentColumn.java
package org.ovirt.engine.ui.webadmin.widget.table.column;
import org.ovirt.engine.core.common.businessentities.Commented;
import org.ovirt.engine.ui.common.widget.table.column.AbstractTextColu... | 329 |
370 | <filename>src/main/java/com/vitco/app/core/data/AnimationData.java
package com.vitco.app.core.data;
import com.threed.jpct.SimpleVector;
import com.vitco.app.core.data.container.ExtendedLine;
import com.vitco.app.core.data.container.ExtendedVector;
import com.vitco.app.core.data.container.Frame;
import com.vitco.app.c... | 11,327 |
630 | package org.elasticsearch.river.mongodb.embed;
import java.io.IOException;
import de.flapdoodle.embed.mongo.MongodExecutable;
import de.flapdoodle.embed.mongo.MongodProcess;
import de.flapdoodle.embed.mongo.config.IMongodConfig;
import de.flapdoodle.embed.process.config.IRuntimeConfig;
import de.flapdoodle.embed.proc... | 302 |
3,012 | <filename>MdeModulePkg/Include/Guid/ConsoleOutDevice.h
/** @file
This GUID can be installed to the device handle to specify that the device is the console-out device.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __CONSOLE_OU... | 247 |
852 | #include "RecoParticleFlow/PFProducer/interface/BlockElementLinkerBase.h"
#include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
#include "DataFormats/ParticleFlowReco/interface/PFBlockElementCluster.h"
#include "DataFormats/ParticleFlowReco/interface/PFBlockElementTrack.h"
#include "RecoParticleFlow/PFClusterTo... | 1,220 |
311 | <reponame>ProgPassion/the-c-programming-language-exercise-answers
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include "lookup.h"
#define LEN 1000
static struct item *htable[LEN];
static char *strdup2(char *s) {
char *p = (char *) malloc(strlen(s) + 1);
if (p != NULL) {
strcpy(p, s);
}
re... | 756 |
19,628 | package com.didichuxing.foundation.net.rpc.http;
import com.didichuxing.doraemonkit.DoKit;
import com.didichuxing.doraemonkit.constant.DoKitModule;
import com.didichuxing.doraemonkit.kit.core.DoKitManager;
import com.didichuxing.doraemonkit.kit.core.DokitAbility;
import com.didichuxing.doraemonkit.kit.network.rpc.AbsD... | 1,364 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.networking.cookies;
import java.net.*;
public class ProxyAcceptCookiePolicy implements CookiePolicy {
String acceptedProxy;
public ProxyAcceptCookiePolicy(String acceptedProxy) {
this.acceptedProxy = acceptedProxy;
}
public boolean shouldAccep... | 303 |
6,424 | <reponame>vmoens/tutorials
"""
`Introduction <introyt1_tutorial.html>`_ ||
`Tensors <tensors_deeper_tutorial.html>`_ ||
`Autograd <autogradyt_tutorial.html>`_ ||
`Building Models <modelsyt_tutorial.html>`_ ||
`TensorBoard Support <tensorboardyt_tutorial.html>`_ ||
**Training Models** ||
`Model Understanding <captumyt.h... | 4,377 |
1,160 | /**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/adc.h"
int main() {
stdio_init_all();
adc_init();
// Make sure GPIO is high-impedance, no pullups etc
adc_gpio_init(26);
adc_gpio_ini... | 585 |
7,076 | /*
* Copyright (C) 2021. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 317 |
190,993 | <reponame>EricRemmerswaal/tensorflow
# 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/LICEN... | 489 |
322 | package com.imooc.imooc_voice.view.discory.radio;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
import com.imooc.imooc_voice.api.RequestCenter;
import com.imooc.imooc_voice.model.newapi.dj.DjTopListBean;
import com.imooc.lib_... | 325 |
964 | <gh_stars>100-1000
[
{
"queryName": "Sagemaker Endpoint Configuration Encryption Disabled",
"severity": "HIGH",
"line": 1,
"fileName": "positive.tf"
}
]
| 72 |
1,444 | <filename>Mage.Tests/src/test/java/org/mage/test/cards/triggers/BecomesBlockedTest.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.mage.test.cards.triggers;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import or... | 670 |
2,151 | // 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.autofill.keyboard_accessory;
import android.support.annotation.Nullable;
import android.support.v4.view.PagerAdapter;... | 1,054 |
5,411 | // 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 <stdint.h>
#include <string.h>
#include <algorithm>
#include <string>
#include <vector>
#include "base/files/file.h"
#include "base/files/file_... | 4,183 |
369 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 340 |
528 | <reponame>mahimadubey/leetcode-python<gh_stars>100-1000
# Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param root, a tree node
# @return an integer
def minDepth(self, root):... | 468 |
5,169 | <reponame>Gantios/Specs
{
"name": "XLsn0wAliPaySDK",
"version": "15.1.6.2016.08.02",
"summary": "XLsn0w Create The XLsn0wAliPaySDK CocoaPod Sync Alipay Official SDK",
"description": "XLsn0w Create The XLsn0wAliPaySDK CocoaPod Sync ANT Financial Official AlipaySDK",
"license": "MIT",
"authors": {
"XLsn0w... | 422 |
8,586 | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include <gtest/gtest.h>
#include "graph/context/QueryContext.h"
#include "graph/executor/query/DataCollectExecutor.h"
#include "graph/planner/plan/Query.h"
namespace nebula {
namespace graph {
cla... | 4,273 |
940 | <filename>BasiliskII/src/slirp/slirp.h
#ifndef __COMMON_H__
#define __COMMON_H__
#define CONFIG_QEMU
#define DEBUG 1
#ifndef CONFIG_QEMU
#include "version.h"
#endif
#include "config.h"
#include "slirp_config.h"
#ifdef _WIN32
# include <inttypes.h>
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint3... | 3,082 |
1,299 | /*
* Copyright 2015 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 2,246 |
2,032 | # -*- coding: utf-8 -*-
from sqlalchemy import Column, String, Float
from sqlalchemy.orm import declarative_base
from zvt.contract import Portfolio, PortfolioStockHistory
from zvt.contract.register import register_schema, register_entity
IndexMetaBase = declarative_base()
# 指数
@register_entity(entity_type="index")... | 293 |
457 | <gh_stars>100-1000
from PIL import Image
im = Image.open('indoor1.jpg')
imBackground = im.resize((875, 587)) #700 470 840 564
imBackground.save('indoor1_resize.jpg')
| 65 |
348 | <filename>docs/data/leg-t2/064/06404404.json<gh_stars>100-1000
{"nom":"Montory","circ":"4ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":299,"abs":136,"votants":163,"blancs":12,"nuls":4,"exp":147,"res":[{"nuance":"DVD","nom":"<NAME>","voix":81},{"nuance":"REM","nom":"<NAME>","voix":66}]} | 124 |
455 | #pragma once
#include "../../defines.h"
namespace star
{
struct pos
{
float32 x, y;
lay l;
pos();
explicit pos(const vec2 & vec, lay layer = LAYER_DEF);
pos(float64 X, float64 Y, lay layer = LAYER_DEF);
pos(float32 X, float32 Y, lay layer = LAYER_DEF);
pos(int32 X, int32 Y, lay layer =... | 1,105 |
5,169 | <reponame>Gantios/Specs
{
"name": "ScanditOCR",
"version": "6.9.2",
"homepage": "https://www.scandit.com",
"documentation_url": "https://docs.scandit.com/data-capture-sdk/ios/",
"license": {
"text": "Copyright 2020- Scandit",
"type": "Commercial"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"sum... | 369 |
2,151 | <reponame>zipated/src
// 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.
#include "third_party/blink/renderer/core/html/forms/text_control_element.h"
#include <memory>
#include "testing/gtest/include/gtes... | 1,602 |
2,322 | GET_TEAMS_DATA = [
{
"id": "PQ9K7I8",
"type": "team",
"summary": "Engineering",
"self": "https://api.pagerduty.com/teams/PQ9K7I8",
"html_url": "https://subdomain.pagerduty.com/teams/PQ9K7I8",
"name": "Engineering",
"description": "All engineering",
},
]
| 169 |
826 | <reponame>dartartem/eventuate-tram-sagas
package io.eventuate.tram.sagas.eventsourcingsupport;
import io.eventuate.DispatchedEvent;
import io.eventuate.Event;
import io.eventuate.SubscriberOptions;
import io.eventuate.sync.EventuateAggregateStore;
import io.eventuate.tram.commands.common.CommandMessageHeaders;
import ... | 791 |
849 | <filename>lte/gateway/python/magma/policydb/servicers/policy_servicer.py
"""
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed u... | 2,146 |
892 | <filename>advisories/github-reviewed/2022/01/GHSA-99p8-9p2c-49j4/GHSA-99p8-9p2c-49j4.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-99p8-9p2c-49j4",
"modified": "2022-01-19T19:40:50Z",
"published": "2022-01-21T23:20:16Z",
"aliases": [
"CVE-2022-21695"
],
"summary": "Improper Access Co... | 1,199 |
14,668 | <gh_stars>1000+
// 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_WIDGET_BASE_CLIENT_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WIDGET_WIDGET_BASE_CL... | 2,927 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <ie_compound_blob.h>
#include <gtest/gtest.h>
#include <random>
#include <chrono>
using namespace ::testing;
using namespace std;
using namespace InferenceEngine;
class CompoundBlobTests : public ::testing::Test {
protect... | 9,686 |
355 | <reponame>Pasquy007/gvdb-voxels
// -------------------------------------------------------------
// cuDPP -- CUDA Data Parallel Primitives library
// -------------------------------------------------------------
// This source code is distributed under the terms of license.txt in
// the root directory of this source di... | 424 |
392 | package com.platform.dao;
import com.platform.entity.AdVo;
/**
*
*
* @author lipengjun
* @email <EMAIL>
* @date 2017-08-11 09:14:25
*/
public interface ApiAdMapper extends BaseDao<AdVo> {
}
| 82 |
637 | <reponame>1st/jenkins<filename>core/src/main/java/hudson/cli/EnablePluginCommand.java<gh_stars>100-1000
/*
* The MIT License
*
* Copyright (c) 2018 CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... | 1,402 |
468 | /*=============================================================================
GLIntercept - OpenGL intercept/debugging tool
Copyright (C) 2005 <NAME>
Licensed under the MIT license - See Docs\license.txt for details.
=============================================================================*/
#include "GLC... | 13,976 |
2,313 | /*
* Copyright (c) 2020-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... | 1,706 |
3,102 | // RUN: %clang_cc1 -triple x86_64-pc-linux -mrelocation-model static -O1 -fno-experimental-new-pass-manager -emit-llvm %s -o - | FileCheck --check-prefix=STATIC %s
// RUN: %clang_cc1 -triple x86_64-pc-linux -mrelocation-model static -fno-plt -O1 -fno-experimental-new-pass-manager -emit-llvm %s -o - | FileCheck --check-... | 1,284 |
465 | /*
* Copyright (c) 2018 Uber Technologies, Inc.
* 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, modify, merge, p... | 1,462 |
1,126 | <filename>integration-tests/src/test/java/org/mvndaemon/mvnd/it/MaxHeapNativeIT.java<gh_stars>1000+
/*
* Copyright 2019 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 t... | 2,037 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.