max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,330 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,768 |
2,112 | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include <src/gen-py3/module/clients_wrapper.h>
namespace some {
namespace valid {
namespace ns {
folly::Future<folly::Unit>
ReturnServiceClientWrapper::noReturn(
apache::thrift::RpcOptions& ... | 12,062 |
745 | <filename>test/unit-test/single/test-continuable-promisify.cpp
/*
Copyright(c) 2015 - 2020 <NAME> <denis.blank at outlook dot com>
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 r... | 831 |
6,992 | /*
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,535 |
2,603 | <gh_stars>1000+
/*
* Copyright (C) 2017 C-SKY Microsystems Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2... | 2,179 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 954 |
672 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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,582 |
535 | /*
* 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 ... | 5,003 |
3,139 | /*
* Copyright (c) 2009-2012 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 1,255 |
373 | # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd.
# 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/LICE... | 6,022 |
453 | <gh_stars>100-1000
package fr.tvbarthel.games.chasewhisply.model.mode;
import android.os.Parcel;
import android.os.Parcelable;
import fr.tvbarthel.games.chasewhisply.mechanics.informations.GameInformation;
import fr.tvbarthel.games.chasewhisply.model.PlayerProfile;
public class GameModeTutorial extends GameMode {
... | 430 |
860 | /**
* 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"... | 1,075 |
1,080 | #pragma once
#include <stddef.h>
#include <stdbool.h>
struct datapool;
struct datapool *datapool_open(const char *path, const char *user_signature,
size_t size, int *fresh, bool prefault);
void datapool_close(struct datapool *pool);
void *datapool_addr(struct datapool *pool);
size_t datapool_size(struct datapool... | 192 |
933 | #include "../../openssl/crypto/bf/bf_locl.h"
| 21 |
1,355 | <reponame>PavelBlend/fluid-engine-dev
// Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#ifndef INCLUDE_JET_VECTOR_FIELD3_H_
#define INCLUDE_JET_VECTOR_FIELD... | 419 |
323 | <filename>src/asp/Python/asp_geo_utils.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __BEGIN_LICENSE__
# Copyright (c) 2009-2013, United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration. All
# rights reserved.
#
# The NGT platform is licensed under th... | 8,235 |
5,169 | <filename>Specs/9/3/f/LGSpecialTrainingFramework/0.1.1/LGSpecialTrainingFramework.podspec.json<gh_stars>1000+
{
"name": "LGSpecialTrainingFramework",
"version": "0.1.1",
"summary": "A short description of LGSpecialTrainingFramework.",
"description": "TODO: Add long description of the pod here.",
"homepage": "... | 731 |
3,095 | <gh_stars>1000+
#include "panel.h"
#include <qlabel.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qwt_plot_curve.h>
class SpinBox: public QSpinBox
{
public:
SpinBox( int min, int max, int step, QWidget *parent ):
QSpinBox( parent )
{
setRa... | 3,789 |
4,994 | <filename>netbox/extras/models/configcontexts.py
from collections import OrderedDict
from django.core.validators import ValidationError
from django.db import models
from django.urls import reverse
from extras.querysets import ConfigContextQuerySet
from extras.utils import extras_features
from netbox.models import Cha... | 1,910 |
12,252 | <gh_stars>1000+
package org.keycloak.client.registration.cli.aesh;
import org.jboss.aesh.console.AeshConsoleImpl;
import java.io.IOException;
import java.io.InputStream;
import java.io.InterruptedIOException;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
/**
* This stre... | 767 |
679 | <filename>main/extensions/source/preload/preloadservices.cxx
/**************************************************************
*
* 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
* regar... | 647 |
809 | <filename>src/cmds/hardware/sensors/l3g4200d/l3g4200d.c
/**
* @file
* @brief
*
* @date 06.02.2020
* @author <NAME>
*/
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include <drivers/sensors/l3g4200d.h>
int main(int argc, char **argv) {
printf("Testing l3g4200d gyroscope output\n");
if (0 != l3g... | 299 |
412 | public class Main {
public void constantIndexOf(String s, char c, int i) {
String s1 = "abcabc";
String s2 = "bc";
assert s1.indexOf(c) == 1;
assert s1.indexOf(s) == 1;
assert s1.indexOf(c, 1) == 1;
assert s1.indexOf(s, 1) == 1;
assert s.indexOf('a') == 1;
assert s.indexOf(s1) == 1... | 260 |
543 | <reponame>PSFC-HEDP/Orion<filename>tests/primitives/test_timeseries_errors.py
from unittest import TestCase
import numpy as np
from numpy.testing import assert_allclose
from orion.primitives.timeseries_errors import (
_area_error, _dtw_error, _point_wise_error, reconstruction_errors, regression_errors)
def test... | 1,970 |
301 | <gh_stars>100-1000
/******************************************************************
*
* Copyright 2017 Samsung Electronics 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... | 1,972 |
1,555 | <reponame>LightSun/mir
/* Two of these types will, on current gcc targets, have the same
mode but have different alias sets. DOIT tries to get gcse to
invalidly hoist one of the values out of the loop. */
extern void exit (int);
typedef int T0;
typedef long T1;
typedef long long T2;
int
doit(int sel, int n, v... | 450 |
611 | package de.espend.idea.laravel.blade;
import com.intellij.patterns.PatternCondition;
import com.intellij.patterns.PlatformPatterns;
import com.intellij.patterns.PsiElementPattern;
import com.intellij.psi.PsiElement;
import com.intellij.psi.tree.IElementType;
import com.intellij.util.ProcessingContext;
import com.jetbr... | 2,501 |
969 | // Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | 2,337 |
307 | #pragma once
#include "globalincs/pstypes.h"
#include "parse/parselo.h"
#include <random>
#include <type_traits>
#include <limits>
namespace util {
/**
* @defgroup randomUtils Random Utilities
*
* Utility functions for handling random values
*/
namespace {
/**
* @brief Parses a generic list of numbers
* @pa... | 2,230 |
1,251 | <reponame>almiao/dbblog<filename>dbblog-backend/dbblog-portal/src/main/java/cn/dblearn/blog/portal/timeline/service/impl/TimelineServiceImpl.java
package cn.dblearn.blog.portal.timeline.service.impl;
import cn.dblearn.blog.entity.timeline.Timeline;
import cn.dblearn.blog.entity.timeline.TimelineMonth;
import cn.dblear... | 835 |
60,067 | #include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/Parallel.h>
#include <torch/library.h>
#include <ATen/native/quantized/cpu/quantized_ops.h>
#include <c10/util/irange.h>
#include <algorithm>
#include <vector>
namespace at {
namespace native {
DEFINE_DISPATCH(qbatch_norm_stub);
DEFINE_DISPATCH(... | 5,430 |
4,081 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 1,974 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "documenttyperepo.h"
namespace document {
// Combines a DocumentTypeRepo and a DocumentType to allow easy access
// to the types contained in the DocumentType's namespace.
class FixedTypeRe... | 431 |
316 | <reponame>burgerdev/vigra<gh_stars>100-1000
#include "g++_relops_workaround.hxx"
#include <unittest.hxx>
#include "one_band_image_policy.hxx"
#include "imagehierarchy_test.hxx"
GrayImageTestSuite::GrayImageTestSuite()
: vigra::test_suite(" GrayImageTestSuite")
{
add ( new ImageHierarchyTestSuite<OneBa... | 233 |
1,968 | <gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////... | 320 |
1,899 | #include "DPZivkovicAGMM.h"
#if CV_MAJOR_VERSION >= 2 && CV_MAJOR_VERSION <= 3
using namespace bgslibrary::algorithms;
DPZivkovicAGMM::DPZivkovicAGMM() :
IBGS(quote(DPZivkovicAGMM)),
frameNumber(0), threshold(25.0f),
alpha(0.001f), gaussians(3)
{
debug_construction(DPZivkovicAGMM);
initLoadSaveConfig(algo... | 927 |
3,479 | /*
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 547 |
347 | <gh_stars>100-1000
package org.ovirt.engine.core.bll.scheduling.external;
public class ExternalSchedulerDiscoveryUnit{
private String name;
private String description;
private String regex;
public ExternalSchedulerDiscoveryUnit(String name, String description, String regex) {
this.name = name;... | 216 |
15,337 | # Generated by Django 3.2.5 on 2021-07-19 21:55
from django.db import migrations, models
import saleor.core.utils.json_serializer
class Migration(migrations.Migration):
dependencies = [
("discount", "0026_voucher_only_for_staff"),
]
operations = [
migrations.AddField(
model... | 860 |
335 | {
"word": "Expand",
"definitions": [
"Become or make larger or more extensive.",
"(of the universe) undergo a continuous change whereby, according to theory based on observed red shifts, all the galaxies recede from one another.",
"Give a fuller version or account of.",
"Become l... | 133 |
307 | <filename>example/src/main/java/com/capitalone/commander/example/kafka_streams/Customer.java
/*
* Copyright 2016 Capital One Services, 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... | 621 |
778 | <filename>xchart/src/test/java/org/knowm/xchart/internal/chartpart/AxisTickCalculator_CategoryTest.java<gh_stars>100-1000
package org.knowm.xchart.internal.chartpart;
import static org.junit.Assert.assertThrows;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org... | 786 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
... | 1,647 |
575 | <gh_stars>100-1000
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/services/cups_proxy/fake_cups_proxy_service_delegate.h"
namespace cups_proxy {
bool FakeCupsProxyServiceDelegate::Is... | 394 |
540 | //===-- xpu_for_each.pass.cpp ---------------------------------------------===//
//
// Copyright (C) Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// This file incorporates work covered by the following copyright and permission
// notice:
//
// Part of the LLVM Project, under the Ap... | 742 |
2,975 | <filename>spec/dummy/vendor/bundle/ruby/2.7.0/gems/sassc-2.4.0/ext/libsass/src/ast_supports.cpp
// sass.hpp must go before all system headers to get the
// __EXTENSIONS__ fix on Solaris.
#include "sass.hpp"
#include "ast.hpp"
namespace Sass {
////////////////////////////////////////////////////////////////////////... | 1,068 |
403 | #include "Source/Pretty.h"
#include "Source/Translate.h"
#include "Target/Pretty.h"
#include "Target/Emulator.h"
#include "Target/RemoveLabels.h"
#include "Target/CFG.h"
#include "Target/Liveness.h"
#include "Target/ReachingDefs.h"
#include "Target/LiveRangeSplit.h"
#include "Target/RegAlloc.h"
#include "Target/Satisfy... | 480 |
32,544 | <filename>spring-security-modules/spring-security-web-boot-1/src/main/java/com/baeldung/roles/rolesauthorities/CustomAuthenticationProvider.java
package com.baeldung.roles.rolesauthorities;
import com.baeldung.roles.rolesauthorities.model.User;
import com.baeldung.roles.rolesauthorities.persistence.UserRepository;
imp... | 530 |
660 | package vn.hunghd.flutterdownloader;
import androidx.core.content.FileProvider;
public class DownloadedFileProvider extends FileProvider {
}
| 41 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.implementation;
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourc... | 2,746 |
3,562 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 3,054 |
3,705 | <filename>tests/chainer_tests/dataset_tests/tabular_tests/test_join.py
import unittest
import numpy as np
import six
import chainer
from chainer import testing
from chainer_tests.dataset_tests.tabular_tests import dummy_dataset
def _filter_params(params):
for param in params:
key_size = 0
key_si... | 1,697 |
1,042 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef XQC_PREFIXED_STR_TEST_H
#define XQC_PREFIXED_STR_TEST_H
void xqc_test_prefixed_str();
#endif
| 76 |
370 | #ifndef NCOMPLEX
#define CS_COMPLEX
#include <../Source/cs_etree.c>
#endif // NCOMPLEX
| 38 |
2,577 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 1,957 |
452 | // <NAME>, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2021
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2019.08.13
#pragma once
#include <Mathematics/Matrix.h>
#includ... | 2,091 |
5,169 | {
"name": "Tenping",
"version": "1.1.3",
"summary": "Tenping.framework",
"homepage": "https://github.com/kains4/Tenping_IOS_SDK",
"license": {
"type": "Commercial",
"text": "All text and design is copyright 2006-2017 Tenping, Inc.\n\nAll rights reserved.\n\nhttps://github.com/kains4/Tenping_IOS_SDK\n"... | 263 |
407 | <filename>core/src/main/java/com/alibaba/smart/framework/engine/bpmn/assembly/event/AbstractEvent.java
package com.alibaba.smart.framework.engine.bpmn.assembly.event;
import com.alibaba.smart.framework.engine.model.assembly.impl.AbstractActivity;
/**
* @author 高海军 帝奇 Apr 14, 2016 2:50:20 PM
*/
public abstract class... | 143 |
992 | <reponame>digitalbuddha/androidx
/*
* 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... | 1,199 |
329 | <filename>Mail/MTTokenField/_MTTokenTextAttachment.h
//
// _MTTokenTextAttachment.h
// TokenField
//
// Created by smorr on 11-12-01.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <AppKit/AppKit.h>
@interface _MTTokenTextAttachment : NSTextAttachment
{
id representedObject;
NSSt... | 232 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/CertInfo.framework/CertInfo
*/
#import <CertInfo/CertInfo-Structs.h>
@class UILabel;
@interface CertInfoCertificateListCellContentView : NSObject {
UILabel *_titleLabel; // 48 = 0x30
UILabel *_subtitleLabel; // ... | 316 |
636 | package cn.org.atool.fluent.mybatis.base.crud;
import cn.org.atool.fluent.mybatis.base.IEntity;
/**
* IEntityUpdate: 更新接口
*
* @param <E> 对应的实体类
* @param <U> 更新器
* @param <NQ> 对应的嵌套查询器
* @author darui.wu
*/
public interface IBaseUpdate<
E extends IEntity,
U extends IBaseUpdate<E, U, NQ>,
NQ extend... | 214 |
1,466 | <reponame>tjzhou23/profilo<filename>java/main/com/facebook/profilo/core/GenericRegistry.java
/**
* Copyright 2004-present, Facebook, Inc.
*
* <p>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
... | 1,112 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-r367-2c67-wh49",
"modified": "2022-05-02T03:45:38Z",
"published": "2022-05-02T03:45:38Z",
"aliases": [
"CVE-2009-3494"
],
"details": "Multiple SQL injection vulnerabilities in index.php in T-HTB Manager 0.5, when magic_quotes_gpc is disabled, allow remote attac... | 482 |
397 | <filename>blog-web/src/main/java/com/zrlog/blog/web/controller/page/InstallController.java<gh_stars>100-1000
package com.zrlog.blog.web.controller.page;
import com.hibegin.common.util.IOUtil;
import com.jfinal.core.Controller;
import com.jfinal.kit.PathKit;
import com.jfinal.render.HtmlRender;
import org.jsoup.Jsoup;
... | 575 |
3,655 | <filename>paddlex/ppdet/modeling/tests/test_architectures.py
# Copyright (c) 2021 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://w... | 867 |
831 | <filename>apkanalyzer/src/com/android/tools/idea/apk/viewer/arsc/ResourceTablePanel.java
/*
* 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 Lice... | 1,628 |
1,144 | package org.adempiere.util.proxy;
/*
* #%L
* de.metas.util
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, ... | 1,479 |
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.
package org.chromium.chrome.browser.browserservices.permissiondelegation;
import static android.Manifest.permission.ACCESS_COARSE_LOCATION;
import static... | 3,167 |
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 ... | 437 |
560 | <gh_stars>100-1000
from torch_mimicry import nets, training, metrics, datasets, modules
__version__ = "0.1.16"
| 40 |
2,867 | /*
* This file is part of NectarJS
* Copyright (c) 2017 - 2020 <NAME>
* http://nectarjs.com - https://seraum.com/
*
* sources : https://github.com/nectarjs/nectarjs
*
* NectarJS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the... | 536 |
392 | <filename>data_loader/detection/augmentation.py
# from https://github.com/amdegroot/ssd.pytorch
from transforms.detection.data_transforms import ConvertFromInts, PhotometricDistort, Expand, RandomSampleCrop, \
RandomFlipping, ToPercentCoords, Resize, Normalize, ToTensor, Compose
class TrainTransform:
'''
... | 828 |
2,650 | # Copyright 2018 DeepMind Technologies Limited. 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 ... | 2,929 |
1,738 | /*
* 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
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 2,311 |
335 | {
"word": "Retrospective",
"definitions": [
"An exhibition or compilation showing the development of an artist's work over a period of time."
],
"parts-of-speech": "Noun"
} | 71 |
575 | <filename>chrome/browser/tab/java/src/org/chromium/chrome/browser/tab/CurrentTabObserver.java<gh_stars>100-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.
package org.chromium.chrome.browser.tab;
... | 931 |
590 | package hype;
import hype.interfaces.HLocatable;
import processing.core.PApplet;
public class HMouse implements HLocatable {
private PApplet app;
private int button;
private boolean started, moved;
public HMouse(PApplet app) {
this.app = app;
}
public boolean started() {
return started;
}
public boolea... | 338 |
1,695 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 959 |
11,058 | <filename>extra_tests/snippets/for.py
x = 0
for i in [1, 2, 3, 4]:
x += 1
assert x == 4
for i in [1, 2, 3]:
x = i + 5
else:
x = 3
assert x == 3
y = []
for x, in [(9,), [2]]:
y.append(x)
assert y == [9, 2], str(y)
y = []
for x, *z in [(9,88,'b'), [2, 'bla'], [None]*4]:
y.append(z)
assert y == ... | 194 |
575 | <gh_stars>100-1000
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_MATHML_MATHML_ROW_ELEMENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_MATHML_MATHML_ROW_ELEMENT_... | 330 |
765 | from lldbsuite.test import lldbinline
from lldbsuite.test import decorators
lldbinline.MakeInlineTest(__file__, globals(), [decorators.skipIf(bugnumber="rdar://53659341")])
| 64 |
2,139 | <reponame>barrhaim/jruby<gh_stars>1000+
package java_integration.fixtures;
public class ArrayReceiver {
public static boolean[] callWithBoolean(boolean[] arg) {
return arg;
}
public static byte[] callWithByte(byte[] arg) {
return arg;
}
public static char[] callWithChar(char[] arg... | 372 |
4,262 |
/*
* Camel ApiName Enumeration generated by camel-api-component-maven-plugin
*/
package org.apache.camel.component.google.sheets.internal;
import org.apache.camel.support.component.ApiName;
/**
* Camel {@link ApiName} Enumeration for Component GoogleSheets
*/
public enum GoogleSheetsApiName implements ApiName {
... | 199 |
765 | /*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardwar... | 2,672 |
1,500 | /*
* Copyright 2017 PayPal
*
* 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 ... | 5,528 |
335 | <filename>T/Toothpick_noun.json
{
"word": "Toothpick",
"definitions": [
"A short pointed piece of wood or plastic used for removing bits of food lodged between the teeth."
],
"parts-of-speech": "Noun"
} | 86 |
360 | <filename>.github/actions/sync-bsp-versions/update-from-hal.py
#!/bin/python3
import json
import os
import re
import sys
import toml
def upgrade_bsp(path, vers):
'''Update the HAL version in the Cargo.toml file at the given path.'''
start = -1
with open(path, 'r') as f:
lines = f.read().splitline... | 516 |
854 | __________________________________________________________________________________________________
sample 4 ms submission
class Solution {
public:
int findMaxForm(vector<string>& strs, int m, int n) {
//const unsigned int s = strs.size();
array<tuple<int,int>, 601> res;//amount of 0 and 1 f... | 2,568 |
3,139 | /*
* Copyright (c) 2017-2021 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 5,586 |
2,143 | package com.tngtech.archunit.example.layers.controller;
import com.tngtech.archunit.example.layers.controller.marshaller.StringUnmarshaller;
@SuppressWarnings("unused")
public class OtherController {
void receive(@UnmarshalTransport(StringUnmarshaller.class) Object param) {
}
}
| 102 |
17,702 | <reponame>burhandodhy/CNTK<filename>Source/Readers/HTKDeserializers/MLFIndexBuilder.cpp
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#include "stdafx.h"
#define _CRT_SECURE_NO_WARNINGS
#define _SCL_SECURE_... | 3,159 |
4,054 | /*
* Copyright (c) 2019 BestSolution.at and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
... | 398 |
1,804 | <reponame>ECrownofFire/chaos
class CouldntMerge(Exception):
pass
| 27 |
1,537 | <reponame>michalkouril/PYNQ
# Copyright (c) 2016, Xilinx, Inc.
# 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. Redistributions of source code must retain the above copyright noti... | 7,356 |
663 | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from typing import Callable, List, Optional
from six.moves.urllib.parse import urlparse
from datadog_checks.base import ConfigurationError, is_affirmative
from . import queries
from .types import Instan... | 1,420 |
1,059 | #include "HadoopFileSystemTest.h"
#include "FileSystem/HadoopFileSystem.h"
#include "SystemEnvironment.h"
#include "TestResources.h"
// BEGIN HadoopFileSystemBaseTest
void HadoopFileSystemBaseTest::init() {
this->hadoopFileSystem = std::unique_ptr<HadoopFileSystem>(new HadoopFileSystem());
const FileSystemConnec... | 378 |
358 | #pragma once
#include <agz/tracer/core/aggregate.h>
AGZ_TRACER_BEGIN
RC<Aggregate> create_entity_bvh(
int max_leaf_size);
RC<Aggregate> create_entity_bvh_embree(
int max_leaf_size);
RC<Aggregate> create_entity_bvh_noembree(
int max_leaf_size);
RC<Aggregate> create_native_aggregate();
AGZ_TRACER_END
| 144 |
631 | <gh_stars>100-1000
import os
import functools
from util import read
"""
Replace a custom heap with dlmalloc
Usage:
from util import heap
heap.declare(pt.linker)
pt.patch(addr, sym='dlmalloc')
pt.patch(addr, sym='dlcalloc')
pt.patch(addr, sym='dlfree')
pt.patch(addr, sym='dlrealloc')
"""
__all__ = ["appl... | 290 |
432 | <filename>contrib/lvm2/dist/libdm/ioctl/libdm-iface.c
/* $NetBSD: libdm-iface.c,v 1.1.1.3 2009/12/02 00:26:11 haad Exp $ */
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
* Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
*
* This file is part of the device-mapper userspace tool... | 18,849 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.