max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
448 | //
// Created by lifujun on 2019/8/20.
//
#ifndef SOURCE_OESRENDER_H
#define SOURCE_OESRENDER_H
#include "platform/android/decoder_surface.h"
#include "GLRender.h"
class OESProgramContext : public IProgramContext , private DecoderSurfaceCallback{
public:
OESProgramContext();
~OESProgramContext() override;
... | 1,082 |
23,901 | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | 772 |
521 | <gh_stars>100-1000
/*
Dokan : user-mode file system library for Windows
Copyright (C) 2015 - 2016 <NAME>. <<EMAIL>> and <NAME>. <<EMAIL>>
Copyright (C) 2007 - 2011 <NAME> <<EMAIL>>
http://dokan-dev.github.io
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Le... | 9,480 |
335 | {
"word": "Pro",
"definitions": [
"(of a person or an event) professional."
],
"parts-of-speech": "Adjective"
} | 61 |
854 | <reponame>rakhi2001/ecom7<gh_stars>100-1000
__________________________________________________________________________________________________
sample 0 ms submission
class Solution {
public boolean canVisitAllRooms(List<List<Integer>> rooms) {
int n = rooms.size();
boolean[] seen = new boolean[n];
... | 850 |
4,612 | <reponame>Khymeira/twisted
#!/usr/bin/env python
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
This is a sample implementation of a Twisted push producer/consumer system. It
consists of a TCP server which asks the user how many random integers they
want, and it sends the result set back ... | 1,167 |
30,023 | """Tests for the Tomorrow.io Weather API integration."""
| 14 |
3,732 | <reponame>teddywest32/guacamole-client
/*
* Copyright (C) 2013 Glyptodon LLC
*
* 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 righ... | 748 |
330 | <reponame>vd-imran/Cucumberish
//
// CucumberFeatureSteps.h
// CucumberishExample
//
// Created by <NAME> on 7/26/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CucumberFeatureSteps : NSObject
@end
| 98 |
3,651 | <filename>core/src/main/java/com/orientechnologies/orient/core/sql/executor/AggregationContext.java
package com.orientechnologies.orient.core.sql.executor;
import com.orientechnologies.orient.core.command.OCommandContext;
/** Created by luigidellaquila on 16/07/16. */
public interface AggregationContext {
public O... | 124 |
335 | {
"word": "Dickens",
"definitions": [
"Used for emphasis, or to express annoyance or surprise when asking questions."
],
"parts-of-speech": "Noun"
} | 66 |
1,402 | #pragma once
/**
* \file NETGeographicLib/UTMUPS.h
* \brief Header for NETGeographicLib::UTMUPS class
*
* NETGeographicLib is copyright (c) <NAME> (2013)
* GeographicLib is Copyright (c) <NAME> (2010-2012)
* <<EMAIL>> and licensed under the MIT/X11 License.
* For more information, see
* https://geographiclib.so... | 8,061 |
1,233 | <filename>examples/plugins/transient/alerta_transient.py
import logging
from alerta.exceptions import RateLimit
from alerta.plugins import PluginBase
LOG = logging.getLogger('alerta.plugins.transient')
FLAPPING_WINDOW = 120 # seconds
FLAPPING_COUNT = 2 # threshold
class TransientAlert(PluginBase):
def pre_r... | 306 |
1,382 | <filename>lib/sandbox/python/check_all_process_names.py
#
# Checks all loaded process names, Python
# Module written by <NAME>
# Website: arvanaghi.com
# Twitter: @arvanaghi
# Edited for use in winpayloads
import win32pdh
import sys
EvidenceOfSandbox = []
sandboxProcesses = "vmsrvc", "tcpview", "wireshark", "visu... | 328 |
5,169 | <gh_stars>1000+
{
"name": "LookinServer",
"version": "0.9.2",
"summary": "The iOS framework of Lookin.",
"description": "Embed this framework into your iOS project to enable Lookin mac app.",
"homepage": "https://lookin.work",
"license": "GPL-3.0",
"authors": {
"QMUI Team": "<EMAIL>"
},
"platforms... | 214 |
3,027 | #!/usr/bin/env python
import asyncio
import logging
import time
from collections import deque, defaultdict
from typing import (
Deque,
Dict,
List,
Optional
)
from hummingbot.core.data_type.order_book import OrderBook
from hummingbot.core.data_type.order_book_tracker import OrderBookTracker
from hummin... | 3,707 |
945 | <gh_stars>100-1000
#include "vnl/vnl_sparse_matrix.hxx"
template class VNL_EXPORT vnl_sparse_matrix<double>;
| 49 |
480 | <reponame>weicao/galaxysql<gh_stars>100-1000
/*
* 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/lice... | 1,146 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>S/Supportive_adjective.json
{
"word": "Supportive",
"definitions": [
"Providing encouragement or emotional help."
],
"parts-of-speech": "Adjective"
} | 90 |
375 | /*
* Copyright 2017 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.execution.agent;
public enum PausingPoint {
PRE_START_KEYWORD,
START_KEYWORD,
PRE_END_KEYWORD,
END_KEYWORD
}
| 119 |
606 | package org.arend.term.prettyprint;
import org.arend.core.context.binding.Binding;
import org.arend.core.context.binding.TypedBinding;
import org.arend.core.context.param.DependentLink;
import org.arend.core.definition.ClassField;
import org.arend.core.expr.DefCallExpression;
import org.arend.core.expr.Expression;
imp... | 7,987 |
674 | <reponame>slaveuser/honest-profiler20190422<gh_stars>100-1000
/**
* Copyright (c) 2014 <NAME> (<EMAIL>)
* <p>
* 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, includi... | 506 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 17,117 |
1,144 | package de.metas.ui.web.session;
import com.google.common.base.MoreObjects;
import de.metas.i18n.Language;
import de.metas.organization.OrgId;
import de.metas.security.RoleId;
import de.metas.ui.web.session.json.WebuiSessionId;
import de.metas.user.UserId;
import org.adempiere.service.ClientId;
import org.compiere.uti... | 2,335 |
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... | 806 |
1,056 | package test;
public class ReadUseElseTernary191230 {
private String used = "test";
public String test(boolean p) {
return p ? (String) "true" : used;
}
}
| 74 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/unified_consent/pref_names.h"
namespace unified_consent {
namespace prefs {
const char kUnifiedConsentMigrationState[] = "unified_c... | 155 |
3,223 | <reponame>kouvel/corert<gh_stars>1000+
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "common.h"
#include "gcenv.h"
#include "gcheaputilities.h"
#include "objecthandle.h"
#include "gcenv.ee.h"
#include "PalRedhawkCommo... | 2,673 |
1,318 | <filename>Resources/Perl/perl.h
/* perl.h
*
* Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
* 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by <NAME> and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specif... | 133,297 |
1,083 | //===--- LLVMTypePHPRCIdentity.cpp - LLVM RCIdentity Analysis for Swift -----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org... | 1,066 |
302 | #include "tty.h"
#define NR_PTY_MAX (1 << MINORBITS)
struct tty_driver *ptm_driver, *pts_driver;
volatile int next_pty_number = 0;
int get_next_pty_number()
{
// TODO: MQ 2020-09-04 Use bitmap to get/check next an unused number, release/uncheck a number
return next_pty_number++;
}
static int pty_open(struct tty_s... | 1,030 |
9,959 | package com.fasterxml.jackson.databind.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType... | 142 |
1,514 | <filename>src/libtomcrypt/src/modes/ctr/ctr_decrypt.c
/* LibTomCrypt, modular cryptographic library -- <NAME>
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*... | 373 |
408 | import json
prev = json.load(open('data/enriched.json'))
curr = json.load(open('data/pages_parsed.json'))
exts_id = set(ext['ext_id'] for ext in curr)
for ext in prev:
if ext['ext_id'] not in exts_id:
ext['deleted'] = True
curr.append(ext)
json.dump(curr, open('data/_merged.json','w'), indent=2) | 129 |
14,668 | // Copyright 2021 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 WEBLAYER_PUBLIC_GOOGLE_ACCOUNT_ACCESS_TOKEN_FETCH_DELEGATE_H_
#define WEBLAYER_PUBLIC_GOOGLE_ACCOUNT_ACCESS_TOKEN_FETCH_DELEGATE_H_
#include <set... | 635 |
1,016 | <filename>services/field-policy-service/field-policy-core/src/test/java/com/thinkbiganalytics/standardization/TestStandardizationTransform.java
package com.thinkbiganalytics.standardization;
/*-
* #%L
* thinkbig-field-policy-core
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* Licensed under the Apache Licen... | 2,177 |
416 | //
// QuickLookThumbnailing.h
// Quick Look Thumbnailing
//
// Copyright (c) 2018 Apple. All rights reserved.
//
#import <TargetConditionals.h>
#import <QuickLookThumbnailing/QLThumbnailRepresentation.h>
#import <QuickLookThumbnailing/QLThumbnailProvider.h>
#import <QuickLookThumbnailing/QLThumbnailReply.h>
#impor... | 167 |
1,244 | <gh_stars>1000+
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===------------------------... | 213 |
621 | <filename>iguana/reflection.hpp
//
// Created by Qiyu on 17-6-5.
//
#ifndef IGUANA_REFLECTION_HPP
#define IGUANA_REFLECTION_HPP
#include <iostream>
#include <sstream>
#include <string>
#include <tuple>
#include <iomanip>
#include <map>
#include <vector>
#include <array>
#include <type_traits>
#include <functional>
#in... | 14,742 |
620 | <reponame>LLLjun/learn-to-cluster<gh_stars>100-1000
from .test_gcn_v import test_gcn_v
from .test_gcn_e import test_gcn_e
from .train_gcn_v import train_gcn_v
from .train_gcn_e import train_gcn_e
__factory__ = {
'test_gcn_v': test_gcn_v,
'test_gcn_e': test_gcn_e,
'train_gcn_v': train_gcn_v,
'train_gcn_... | 254 |
884 | /*
* Copyright 2014 - 2021 Blazebit.
*
* 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 agre... | 4,522 |
721 | <filename>nucleus/io/gfile.py<gh_stars>100-1000
# Copyright 2018 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 611 |
428 | package org.test;
import loon.Stage;
import loon.action.sprite.Entity;
import loon.component.LLayer;
import loon.component.LSlider;
public class SliderTest extends Stage {
@Override
public void create() {
// 构建一个Layer
LLayer layer = new LLayer(500, 500);
// 不锁定拖拽
layer.setLocked(false);
LSlider slider = ... | 295 |
763 | <gh_stars>100-1000
package org.batfish.representation.cisco_xr;
import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;
import org.batfish.common.Warnings;
import org.batfish.datamodel.Configuration;
import org.batfish.datamodel.routing_policy.expr.BooleanExpr;
import org.batfish.datamo... | 343 |
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... | 686 |
324 | /*
* Copyright 2018 <NAME>. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 487 |
1,750 | ////////////////////////////////////////////////////////////////////////////////
//
// TYPHOON FRAMEWORK
// Copyright 2013, Typhoon Framework Contributors
// All Rights Reserved.
//
// NOTICE: The authors permit you to use, modify, and distribute this file
// in accordance with the terms of the license agreement a... | 160 |
1,338 | /*
* Copyright 2008 Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Julun, <<EMAIL>
*/
#include <PrintPanel.h>
#include <Button.h>
#include <GroupLayoutBuilder.h>
#include <GroupView.h>
#include <Screen.h>
namespace BPrivate {
namespace Print {
// #pragma m... | 1,940 |
435 | <gh_stars>100-1000
{
"copyright_text": "This video is licensed under the CC BY-NC-SA 3.0 license: https://creativecommons.org/licenses/by-nc-sa/3.0/\nPlease see our speaker release agreement for details: https://ep2020.europython.eu/events/speaker-release-agreement/\n",
"description": "How Python can be used in IoT... | 1,038 |
437 | package io.nuls.ledger.rpc.model;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
/**
* @author: <NAME>
* @date: 2018/10/11
*/
public class TokenInfoDto {
@ApiModelProperty(name = "totalNuls", value = "总的nuls数量")
private String totalNuls;
@ApiModelProperty(name = "totalNuls", ... | 416 |
376 | <reponame>mruz/framework
extern zend_class_entry *ice_validation_validator_same_ce;
ZEPHIR_INIT_CLASS(Ice_Validation_Validator_Same);
PHP_METHOD(Ice_Validation_Validator_Same, validate);
ZEND_BEGIN_ARG_INFO_EX(arginfo_ice_validation_validator_same_validate, 0, 0, 2)
ZEND_ARG_OBJ_INFO(0, validation, Ice\\Validation... | 243 |
1,338 | <reponame>Kirishikesan/haiku<filename>src/preferences/network/ServiceView.cpp<gh_stars>1000+
/*
* Copyright 2015 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <<EMAIL>>
*/
#include "ServiceView.h"
#include <Button.h>
#include <Catalog.h>
#include <La... | 1,101 |
594 | #ifndef QTESTUPDATERBACKEND_H
#define QTESTUPDATERBACKEND_H
#include <QtCore/QTimer>
#include <QtCore/QTimer>
#include <QtAutoUpdaterCore/UpdaterBackend>
class QTestUpdaterBackend : public QtAutoUpdater::UpdaterBackend
{
Q_OBJECT
public:
explicit QTestUpdaterBackend(QString &&key, QObject *parent = nullptr);
Fe... | 315 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Compassion",
"definitions": [
"Sympathetic pity and concern for the sufferings or misfortunes of others."
],
"parts-of-speech": "Noun"
} | 87 |
1,544 | from django.conf import settings
from django.core.exceptions import ValidationError
from django.utils.translation import gettext as _
from evennia.accounts.models import AccountDB
import re
class EvenniaUsernameAvailabilityValidator:
"""
Checks to make sure a given username is not taken or otherwise reserved.... | 1,109 |
653 | package org.itstack.naive.chat.client.infrastructure.util;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* 博 客:http://bugstack.cn
* 公众号:bugstack虫洞栈 | 沉淀、分享、成长,让自己和他人都能有所收获!
* create by 小傅哥 on @2020
*/
public class BeanUtil {
private static Map<String, Object> cacheMap = new Concu... | 276 |
554 | /*
* Copyright (c) 2016 <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 in w... | 2,520 |
326 | <reponame>tristansgray/simian
#!/usr/bin/env python
#
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/... | 1,092 |
585 | /*
* 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 ... | 1,773 |
4,223 | /*
* Copyright 2001-2013 <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 agre... | 1,434 |
598 | <reponame>thedrow/eliot<gh_stars>100-1000
"""
TAI64N encoding and decoding.
TAI64N encodes nanosecond-accuracy timestamps and is supported by logstash.
@see: U{http://cr.yp.to/libtai/tai64.html}.
"""
from __future__ import unicode_literals
import struct
from binascii import b2a_hex, a2b_hex
_STRUCTURE = b">QI"
_OF... | 514 |
335 | package com.kalvin.kvf.common.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.d... | 526 |
598 | <gh_stars>100-1000
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from .error_code import ERROR_CODE
class MAROException(Exception):
"""The base exception class for MARO.
Args:
error_code (int): the predefined MARO error code. You can find the
detailed definiti... | 328 |
349 | """Sciter platform-dependent types."""
import sys
import ctypes
from ctypes import (POINTER,
c_char, c_byte, c_ubyte,
c_void_p, c_char_p,
c_int32, c_uint32, c_int64, c_uint64,
c_longlong, c_ulonglong, c_double,
sizeof,... | 2,770 |
1,831 | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <folly/dynamic.h>
namespace facebook { namespace logdevice { n... | 382 |
486 | <reponame>Mivik/jflex
package edu.tum.cup2.precedences;
import java.util.List;
import edu.tum.cup2.grammar.Terminal;
/**
* Left associativity of terminals.
*
* @author <NAME>
*/
public class LeftAssociativity
extends Associativity
{
/**
* Creates a left associativity for the given list of {@link Termina... | 155 |
349 | <gh_stars>100-1000
import sys
import os
import re
import colorama
colorama.init()
import refactoring # Note: refactoring.py need to be in the current working directory
paths = ["C:/inviwo-dev", "C:/inviwo-research/modules"]
# Step 1:
# replace:
# InviwoProcessorInfo();
# with:
# virtual const ProcessorInfo getPro... | 1,688 |
1,108 | <gh_stars>1000+
#include "SDL.h"
#include "SDL_gpu.h"
#include "compat.h"
#include "common.h"
int main(int argc, char* argv[])
{
GPU_Target* screen;
printRenderers();
screen = GPU_Init(800, 600, GPU_DEFAULT_INIT_FLAGS);
if(screen == NULL)
return -1;
printCurrentRenderer();
{
Uint32 startTime;
long fra... | 3,201 |
314 | <reponame>timgates42/theanets<filename>test/recurrent_test.py
import numpy as np
import pytest
import theanets
import util as u
AE_LAYERS = [u.NUM_INPUTS, (u.NUM_HID1, 'rnn'), (u.NUM_HID2, 'rnn'), u.NUM_INPUTS]
CLF_LAYERS = [u.NUM_INPUTS, (u.NUM_HID1, 'rnn'), (u.NUM_HID2, 'rnn'), u.NUM_CLASSES]
REG_LAYERS = [u.NUM_IN... | 3,032 |
2,757 | /** @file
This protocol provides services to register a platform specific handler for
ResetSystem(). The registered handlers are called after the UEFI 2.7 Reset
Notifications are processed
Copyright (c) 2017 Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are li... | 427 |
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/ash/secure_channel/nearby_endpoint_finder_impl.h"
#include "base/base64.h"
#include "base/memory/ptr_util.h"
#include "base/rand... | 2,488 |
5,169 | {
"name": "MRMemoryDetect",
"version": "0.0.3",
"summary": "MRMemoryDetect",
"description": "MRMemoryDetect is design for iOS detect memory change",
"homepage": "https://github.com/GitTrandy/MRMemoryDetect",
"authors": {
"GitTrandy": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"source": {
... | 212 |
310 | {
"name": "TERTIAL",
"description": "A desk lamp.",
"url": "https://www.ikea.com/us/en/catalog/products/20370383/"
} | 51 |
3,850 | <filename>AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/annotations/FocusChange.java
/**
* Copyright (C) 2010-2016 eBusiness Information, Excilys Group
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in c... | 878 |
4,012 | <reponame>etseidl/cudf
/*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* 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 requ... | 1,176 |
1,724 | #pragma once
#include "system/devices/DeviceAddress.h"
Iter unix_scan(IterFunc<UNIXAddress> callback);
| 38 |
1,041 | package io.ebeaninternal.server.type;
import io.ebeaninternal.server.type.ScalarTypeEnumStandard.OrdinalEnum;
import io.ebeaninternal.server.type.ScalarTypeEnumStandard.StringEnum;
import org.junit.jupiter.api.Test;
import org.tests.model.basic.Customer;
import org.tests.model.basic.Order;
import static org.junit.jup... | 489 |
665 | <reponame>gamblor21/Adafruit_Learning_System_Guides<gh_stars>100-1000
import board
import storage
from analogio import AnalogIn
def read_buttons():
with AnalogIn(board.A3) as ain:
reading = ain.value / 65535
if reading > 0.75:
return None
if reading > 0.4:
return 4
... | 304 |
456 | <reponame>belzecue/DJV
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
#include <djvGeom/Shape.h>
#include <djvGeom/TriangleMesh.h>
#include <djvMath/Math.h>
#include <djvMath/Math.h>
using namespace djv::Core;
namespace djv
{
namespace Geom
{
ISha... | 5,648 |
450 | /*
* 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,248 |
471 | <filename>forest-core/src/test/java/com/dtflys/test/model/AmapLocation.java
package com.dtflys.test.model;
import java.util.List;
/**
* Created by Administrator on 2016/6/20.
*/
public class AmapLocation<T> {
private String timestamp;
private Boolean result;
private String message;
private Strin... | 2,415 |
799 | <filename>ext/iodine/iodine_store.h
#ifndef H_IODINE_STORAGE_H
#define H_IODINE_STORAGE_H
#include "ruby.h"
extern struct IodineStorage_s {
/** Adds an object to the storage (or increases it's reference count). */
VALUE (*add)(VALUE);
/** Removes an object from the storage (or decreases it's reference count). *... | 198 |
2,260 | // Autogenerated by gameplay-luagen
#include "Base.h"
#include "ScriptController.h"
#include "lua_Script.h"
#include "Base.h"
#include "Game.h"
#include "Ref.h"
#include "Script.h"
#include "ScriptController.h"
#include "Ref.h"
namespace gameplay
{
extern void luaGlobal_Register_Conversion_Function(const char* classN... | 4,921 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/063/06305431.json
{"nom":"Thiolières","circ":"5ème circonscription","dpt":"Puy-de-Dôme","inscrits":136,"abs":59,"votants":77,"blancs":1,"nuls":2,"exp":74,"res":[{"nuance":"COM","nom":"M. <NAME>","voix":52},{"nuance":"REM","nom":"<NAME>","voix":22}]} | 138 |
1,521 | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* <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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required by applic... | 953 |
377 | //------------------------------------------------------------------------------
// typeregistry.cc
// (C) 2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "foundation/stdneb.h"
#include "typeregistry.h"
namespace MemDb
{
TypeReg... | 374 |
2,177 | <filename>test/org/nutz/dao/test/mapping/Issue1206Test.java
package org.nutz.dao.test.mapping;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.nutz.dao.test.DaoCase;
import org.nutz.dao.test.meta.issue1206.Issue1206Master;
import org.nutz.dao.tes... | 598 |
5,079 | <gh_stars>1000+
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not ... | 1,556 |
529 | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
... | 1,772 |
1,131 | {
"parent": "create:block/gantry_shaft/block_start",
"textures": {
"2": "create:block/gantry_shaft_powered_flipped"
}
} | 56 |
675 | <reponame>bigplayszn/nCine<filename>benchmarks/gbench_bighashset.cpp
#include "benchmark/benchmark.h"
#include <nctl/HashSet.h>
#define TEST_WITH_NCTL
#include "test_movable.h"
const unsigned int Capacity = 1024;
using SaxHashSet = nctl::HashSet<Movable, nctl::SaxHashFunc<Movable>>;
using JenkinsHashSet = nctl::HashS... | 1,388 |
1,863 | //
// 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 conditions and the following disclaimer.
// * Redistributions in bin... | 1,408 |
1,177 | /*
* Copyright (c) 2020 <NAME>, and contributors.
*
* The MIT License
*
* 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
* ... | 3,078 |
443 | /*
* Copyright (C) 2017 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
*
* Unless required by app... | 4,642 |
2,649 | <gh_stars>1000+
"""
ESPNet-C for image segmentation, implemented in PyTorch.
Original paper: 'ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentation,'
https://arxiv.org/abs/1803.06815.
"""
__all__ = ['ESPCNet', 'espcnet_cityscapes', 'ESPBlock']
import os
import torch
import to... | 5,918 |
1,103 | /*
* Created by dengshiwei on 2021/08/19.
* Copyright 2015-2021 Sensors Data 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
... | 5,504 |
8,428 | # stdlib
from typing import List
from typing import Optional
from typing import Type
# third party
from nacl.signing import VerifyKey
# relative
from ....abstract.node_service_interface import NodeServiceInterface
from ..auth import service_auth
from ..node_service import ImmediateNodeServiceWithReply
from .user_auth... | 345 |
640 | <gh_stars>100-1000
#ifndef __KERN_SCHEDULE_SCHED_MULTI_H__
#define __KERN_SCHEDULE_SCHED_MULTI_H__
#include <sched.h>
extern struct sched_class multi_sched_class;
#endif /* !__KERN_SCHEDULE_SCHED_MULTI_H__ */
| 106 |
360 | <gh_stars>100-1000
import numpy as np
from yt.testing import assert_almost_equal, fake_random_ds
from yt.utilities.math_utils import euclidean_dist, periodic_dist
def setup():
from yt.config import ytcfg
ytcfg["yt", "internals", "within_testing"] = True
def test_periodicity():
# First test the simple ... | 1,147 |
2,338 | // RUN: %clang_cc1 -fxray-instrument -fxray-instruction-threshold=1 -fxray-function-groups=3 -fxray-selected-function-group=0 \
// RUN: -emit-llvm -o - %s -triple x86_64-unknown-linux-gnu | FileCheck --check-prefix=GROUP0 %s
// RUN: %clang_cc1 -fxray-instrument -fxray-instruction-threshold=1 -fxray-function... | 1,241 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.