max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
413 | <reponame>SFDO-Alliances/NPSP
from cumulusci.robotframework.pageobjects import ListingPage
from cumulusci.robotframework.pageobjects import DetailPage
from cumulusci.robotframework.pageobjects import pageobject
from BaseObjects import BaseNPSPPage
from NPSP import npsp_lex_locators
@pageobject("Details", "npe4__Relat... | 270 |
356 | <reponame>rlefbvr/node-sodium<filename>src/crypto_auth_algos.cc
/**
* Node Native Module for Lib Sodium
*
* @Author <NAME>
* @email paixaop at gmail dot com
* @License MIT
*/
#include "node_sodium.h"
#include "crypto_auth_algos.h"
CRYPTO_AUTH_DEF(hmacsha256)
CRYPTO_AUTH_DEF(hmacsha512)
CRYPTO_AUTH_DEF(hmacsha512... | 237 |
5,169 | {
"name": "CodableCache",
"version": "0.0.3",
"summary": "A memory and disk based cache backed by the Swift 4 Codable protocol.",
"description": "What is Codable Cache? It's a framework that allows for seamless memory caching and disk persistence of your plain old Swift structs.\nSimply define a model and confo... | 346 |
1,002 | <reponame>BlameJohnny/redo<filename>docs/cookbook/redoconf-simple/all.hpp
// Precompiled header.
//
// Include your most commonly used, but least
// frequently changing, header files here, to
// speed up compilation.
#ifndef __ALL_HPP
#include <string>
#include <iostream>
#endif // __ALL_HPP
| 99 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Racecourse",
"definitions": [
"A ground or track for horse or dog racing."
],
"parts-of-speech": "Noun"
} | 79 |
1,338 | <filename>src/tests/system/benchmarks/memspeed.c
/*
* from ftp://ftp.netbsd.org/pub/NetBSD/misc/gmcgarry/bench/memspeed.c
*
* Compilation:
*
* gcc -O3 -fomit-frame-pointer memspeed.c -o memspeed
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/times.h>
#include <time.h>
#include <s... | 1,149 |
310 | {
"name": "Fluxx (iOS)",
"description": "An ever-changing card game.",
"url": "https://itunes.apple.com/us/app/fluxx/id561319376"
} | 56 |
1,564 | <filename>core/src/test/java/org/modelmapper/functional/skip/SkipMappingTest1.java
package org.modelmapper.functional.skip;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertNull;
import org.modelmapper.AbstractTest;
import org.modelmapper.Conditions;
import org.modelmapper.Property... | 438 |
14,668 | <reponame>chromium/chromium
// 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.
#ifndef REMOTING_BASE_LOGGING_H_
#define REMOTING_BASE_LOGGING_H_
#include "base/logging.h"
#include "build/build_config.h"
... | 409 |
882 | import unittest, random, sys, time
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_browse as h2b, h2o_exec as h2e, h2o_import as h2i, h2o_cmd, h2o_util
# new ...ability to reference cols
# src[ src$age<17 && src$zip=95120 && ... , ]
# can specify values for enums ..values are 0 thru n-1 for n enums
exprList ... | 3,404 |
1,305 | <filename>grid_map_costmap_2d/rostest/costmap_2d_ros/costmap_2d_ros.cpp
/*****************************************************************************
** Includes
*****************************************************************************/
#include <gtest/gtest.h>
#include <iostream>
#include <string>
#include <ros... | 4,713 |
2,221 | /*
* 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 ... | 793 |
764 | <gh_stars>100-1000
{"symbol": "EVZ","address": "0x7A939Bb714fd2A48EbeB1E495AA9aaa74BA9fA68","overview":{"en": ""},"email": "","website": "https://www.evzlife.com/","state": "NORMAL","links": {"blog": "https://blog.naver.com/zin_life","twitter": "","telegram": "","github": ""}} | 113 |
3,592 | <filename>tests/api/v1/test_topics.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from tests.helpers import (
create_ctfd,
destroy_ctfd,
gen_challenge,
gen_topic,
login_as_user,
register_user,
)
def test_api_topics_non_admin():
"""Can a user interact with /api/v1/topics if not admin"""
... | 2,288 |
835 | package ai.verta.modeldb.common.exceptions;
import com.google.rpc.Code;
public class UnavailableException extends ModelDBException {
public UnavailableException(String message) {
super(message, Code.UNAVAILABLE);
}
}
| 73 |
611 | <filename>src/landmarkDetector/lib/local/LandmarkDetector/src/PDM.cpp
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2017, Carnegie Mellon University and University of Cambridge,
// all rights reserved.
//
// ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH US... | 9,984 |
370 | {
"displayName": "Compute Engine default service account",
"email": "<EMAIL>",
"name": "projects/k8s-infra-e2e-boskos-gpu-03/serviceAccounts/<EMAIL>",
"oauth2ClientId": "105320867006220998427",
"projectId": "k8s-infra-e2e-boskos-gpu-03",
"uniqueId": "105320867006220998427"
}
| 127 |
488 | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
/*--------------------------------------------------------------------------*/
/* Name : N19990310_3 */
/* : */
/* Cause : Evaluation order m... | 459 |
529 | <reponame>Yalantis/YALField
// For License please refer to LICENSE file in the root of YALField project
#import <Foundation/Foundation.h>
@protocol YALErrorsPresenter <NSObject>
@required
- (void)presentError:(NSError *)error;
@end
| 82 |
1,248 | <gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
*... | 2,233 |
3,348 | /**
* 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... | 767 |
678 | <filename>WeChat-Headers/AudioSender.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMService.h"
#import "AMRAudioRecorderDelegate.h"
#import "MMService.h"
#import "SPXAudioRecorderDelegate.h"
#import "SilkAudioRecorderDel... | 1,316 |
3,189 | <reponame>chengchenwish/evpp<filename>examples/timer/timer03.cc
#include <evpp/event_loop.h>
#ifdef _WIN32
#include "../echo/tcpecho/winmain-inl.h"
#endif
void Print(evpp::EventLoop* loop, int* count) {
if (*count < 3) {
std::cout << "Hello, world! count=" << *count << std::endl;
++(*count);
... | 269 |
334 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 882 |
530 | /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
*
* or the follo... | 1,177 |
1,962 | <reponame>appotry/blog_demos
package com.bolingcavalry.grpctutorials.lib;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
* <pre>
* gRPC服务,这是个在线商城的库存服务
* </pre>
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.35.0)",
comments = "Source: mall.proto")
public fin... | 4,424 |
831 | <reponame>phpc0de/idea-android<filename>android/testSrc/com/android/tools/idea/npw/project/NamedModuleTemplateTest.java
/*
* 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.
* Yo... | 1,487 |
3,282 | // 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.
package org.chromium.chrome.browser.preferences;
import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
impo... | 743 |
785 | <gh_stars>100-1000
package com.ozj.baby.mvp.model.bean;
/**
* Created by Administrator on 2016/5/5.
*/
public class UpdateVersion {
/**
* name : Baby
* version : 20160505
* changelog : 1.修复了聊天推送的问题
* 2.语音视频的问题
* 3.主页背景无法上传的问题
* updated_at : 1462453712
* versionShort : 1.1
... | 1,356 |
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.
#include "ash/webui/projector_app/projector_oauth_token_fetcher.h"
#include "ash/webui/projector_app/test/mock_app_client.h"
#include "base/bind.h"
#incl... | 3,156 |
938 | <filename>rabbit-base/src/main/java/com/susion/rabbit/base/greendao/RabbitIoCallInfoDao.java<gh_stars>100-1000
package com.susion.rabbit.base.greendao;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
i... | 2,265 |
1,380 | <reponame>Passw/pmwkaa-sophia
/*
* sophia database
* sphia.org
*
* Copyright (c) <NAME>
* BSD License
*/
#include <libss.h>
#include <libsf.h>
#include <libsr.h>
#include <libsv.h>
#include <libsd.h>
typedef struct sditer sditer;
struct sditer {
ssfile *file;
int corrupt;
sdindexheader *v;... | 1,660 |
1,766 | <gh_stars>1000+
/*
* Srtpchannel.h
*/
#ifndef ERIZO_SRC_ERIZO_SRTPCHANNEL_H_
#define ERIZO_SRC_ERIZO_SRTPCHANNEL_H_
#include <netinet/in.h>
#include <srtp2/srtp.h>
#include <boost/thread/mutex.hpp>
#include <string>
#include "rtp/RtpHeaders.h"
#include "./logger.h"
namespace erizo {
/**
* A SRTP data Channel.
... | 911 |
432 | /* $NetBSD: dmeventd.c,v 1.1.1.1 2008/12/22 00:18:53 haad Exp $ */
/*
* Copyright (C) 2005-2007 Red Hat, Inc. All rights reserved.
*
* This file is part of the device-mapper userspace tools.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to th... | 16,693 |
1,334 | <filename>mockserver-examples/src/main/java/org/mockserver/examples/mockserver/ExpectationsNotification.java
package org.mockserver.examples.mockserver;
import org.mockserver.client.MockServerClient;
import org.mockserver.integration.ClientAndServer;
import org.mockserver.netty.MockServer;
import static org.mockserve... | 1,127 |
488 | <reponame>maurizioabba/rose
/**
* \file injectOutlinePragmas.cc
*
* \brief Demonstrate the Outliner by outlining random statements
* in a source file.
*
* \author <NAME> <<EMAIL>>
*
* This program randomly selects 'k' statements from the input file,
* and inserts '#pragma rose_outline' declarations.
*/
... | 1,658 |
340 | # POC concept. Currently only finds the best XOR result
# in the whole array
class Node:
def __init__(self):
self.left = None
self.right = None
def is_leaf(self):
return self.left is None and self.right is None
class Trie:
def __init__(self, size):
self.root = Node()
... | 1,928 |
13,566 | package com.external.plugins;
import com.appsmith.external.exceptions.pluginExceptions.AppsmithPluginError;
import com.appsmith.external.exceptions.pluginExceptions.AppsmithPluginException;
import com.appsmith.external.exceptions.pluginExceptions.StaleConnectionException;
import com.appsmith.external.models.ActionConf... | 17,731 |
387 | <reponame>Jaikishan-Saroj-786/jpf-core
/*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "Li... | 1,184 |
1,285 | <filename>src/main/java/net/minestom/server/instance/batch/RelativeBlockBatch.java
package net.minestom.server.instance.batch;
import it.unimi.dsi.fastutil.longs.Long2ObjectMap;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
import net.minestom.server.coordinate.Point;
import net.minestom.server.instance.I... | 2,958 |
577 | <reponame>StefanPenndorf/FluentLenium
package org.fluentlenium.test.events;
import org.fluentlenium.core.events.annotations.AfterClickOn;
import org.fluentlenium.core.events.annotations.BeforeClickOn;
import org.fluentlenium.test.IntegrationFluentTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A... | 291 |
860 | <filename>src/main/org/codehaus/groovy/ast/expr/ElvisOperatorExpression.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses ... | 787 |
313 | <gh_stars>100-1000
/*
* Copyright 2019 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 applica... | 696 |
6,034 | package cn.iocoder.mall.productservice.rpc.attr;
import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.common.framework.vo.PageResult;
import cn.iocoder.mall.productservice.rpc.attr.dto.*;
import java.util.List;
/**
* 商品规格 Rpc 接口
*/
public interface ProductAttrRpc {
/**
* 创建商品规格键
*
... | 1,288 |
305 | // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -O3 -fno-experimental-new-pass-manager -o - | FileCheck %s --check-prefixes=CHECK,CHECK-LEGACY
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -O3 -fexperimental-new-pass-manager -o - | FileCheck %s --check-prefixes=CHECK,CHECK-NEWPM
// RUN... | 513 |
14,668 | <filename>third_party/blink/renderer/platform/wtf/pod_arena.h
/*
* Copyright (C) 2010 Google 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... | 2,331 |
567 | <gh_stars>100-1000
package org.jolokia.request;
/*
* Copyright 2009-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
*... | 1,039 |
326 | #!/usr/bin/python
import sys
import os
import gzip
from progressbar import ProgressBar
from progressbar import Percentage
from progressbar import Bar
from progressbar import ETA
DEFAULT_EXPANSION_COEF = 100
def process(drk_file):
""" Wrapper to the desired processing function
"""
unify_ports(drk_file)
... | 2,171 |
4,822 | <reponame>gaiksaya/OpenSearch<gh_stars>1000+
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* licen... | 2,141 |
2,338 | //===-- AMDGPUPALMetadata.cpp - Accumulate and print AMDGPU PAL metadata -===//
//
// 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
//
//===---------------------------... | 16,795 |
348 | {"nom":"Saint-Maime-de-Péreyrol","dpt":"Dordogne","inscrits":243,"abs":56,"votants":187,"blancs":15,"nuls":3,"exp":169,"res":[{"panneau":"1","voix":102},{"panneau":"2","voix":67}]} | 77 |
5,766 | /*
* << Haru Free PDF Library >> -- hpdf_annotation.c
*
* URL: http://libharu.org
*
* Copyright (c) 1999-2006 <NAME> <<EMAIL>>
* Copyright (c) 2007-2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,... | 566 |
1,068 | /**
* Copyright (c) 2012-2015 <NAME>
*
* This file is part of Handlebars.java.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 484 |
1,550 | import sys
import json
import requests
import numpy as np
from collections import defaultdict
from .utils import store_data, add_cases
# ------------------------------------------------------------------------
# Globals
# For my American brain
X = {
"time" : "data",
"state": "stato",
"region"... | 671 |
1,296 | <reponame>shuryanc/sdk<filename>bindings/wp8/MEvent.cpp
/**
* @file MError.cpp
* @brief Provides information about an event.
*
* (c) 2013-2014 by Mega Limited, Auckland, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* a... | 529 |
1,428 | #include <stdio.h>
#include <string.h>
int main(){
// Palindrome 101 12321
char a[20],b[20];
int arrsize=0,i=0,temp=0;
printf("Enter a string ");
scanf("%s",a);
arrsize = strlen(a);
for(i=0;i<arrsize;i++)
{
b[i] = a[i];
}
if(!strcmp(a,b))
{
printf("Yes it i... | 281 |
1,602 | <gh_stars>1000+
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2015 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of versio... | 3,037 |
1,056 | <reponame>Antholoj/netbeans
/*
* 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 ... | 826 |
1,694 | <reponame>CrackerCat/iWeChat
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@class NSString;
@interface WCPayAlertItem : NSObject
{
NSString *_alertTitle;
... | 311 |
335 | <filename>P/Planetary_adjective.json
{
"word": "Planetary",
"definitions": [
"Relating or belonging to a planet or planets.",
"Relating to the earth as a planet."
],
"parts-of-speech": "Adjective"
} | 95 |
1,398 | #ifndef UTILS_IO_UTILS_H_
#define UTILS_IO_UTILS_H_
#include <iostream>
#include <string>
namespace utils {
class io_utils {
public:
template<typename T>
static void write(std::ostream &out, const T &value) {
out.write(reinterpret_cast<const char *>(&value), sizeof(T));
}
template<typename T>
static ... | 350 |
421 | from __future__ import absolute_import
import os
import shutil
import subprocess
import time
import tempfile
from . import constants
from .config import get_config_value
def parent_dir(path):
"""Return the parent directory of a file or directory.
This is commonly useful for creating parent directories
pr... | 400 |
743 | {
"DATA_SOURCE_TOTP" : {
"NAME" : "TOTP TFA Backend"
},
"LOGIN" : {
"FIELD_HEADER_GUAC_TOTP" : ""
},
"TOTP" : {
"ACTION_HIDE_DETAILS" : "Amaga",
"ACTION_SHOW_DETAILS" : "Mostra",
"FIELD_HEADER_ALGORITHM" : "Algoritme:",
"FIELD_HEADER_DIGITS" ... | 613 |
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.ai.anomalydetector.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Offse... | 629 |
479 | from collections import OrderedDict
import windows
from windows.generated_def.winstructs import *
from windows.generated_def import windef
from windows.winobject.process import WinProcess, WinThread
from windows.pycompat import basestring
STANDARD_BP = "BP"
HARDWARE_EXEC_BP = "HXBP"
MEMORY_BREAKPOINT = "MEMBP"
clas... | 4,224 |
1,170 | <gh_stars>1000+
//
// NSArray+Safe.h
// VHGithubNotifier
//
// Created by viktorhuang on 2017/2/22.
// Copyright © 2017年 黄伟平. All rights reserved.
//
@interface NSArray<ObjectType> (Safe)
- (ObjectType)safeObjectAtIndex:(NSUInteger)index;
@end
| 104 |
3,285 | <reponame>wangyuyue/oneflow<filename>oneflow/core/graph/node.h
/*
Copyright 2020 The OneFlow 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/... | 1,973 |
841 | package org.jboss.resteasy.test.validation.cdi.resource;
import jakarta.validation.Valid;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Size;
import jakarta.ws.rs.BeanParam;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
public class Subresource... | 260 |
12,278 | <filename>contrib/libboost/boost_1_62_0/boost/numeric/ublas/io.hpp
//
// Copyright (c) 2000-2010
// <NAME>, <NAME>, <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// The authors gratefully ack... | 7,424 |
975 | # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 <NAME> <yamahata at private email ne jp>
#
# 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://ww... | 3,610 |
2,151 | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from core import perf_benchmark
import page_sets
from telemetry import benchmark
from telemetry.timeline import chrome_trace_category_filter
from telemetry.... | 611 |
591 | /*
* ======================= tprCast.h ==========================
* -- tpr --
* CREATE -- 2019.06.09
* MODIFY --
* ----------------------------------------------------------
* type cast
* ---------------------... | 416 |
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 "third_party/blink/public/platform/resource_load_info_notifier_wrapper.h"
#include "base/bind.h"
#include "base/metrics/histogram_macros.h"
#inc... | 3,684 |
1,738 | <reponame>CitizenB/pandas
"""
Internal module for console introspection
"""
from shutil import get_terminal_size
def get_console_size():
"""
Return console size as tuple = (width, height).
Returns (None,None) in non-interactive session.
"""
from pandas import get_option
display_width = get_... | 923 |
918 | <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 "... | 803 |
14,425 | <gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
*... | 431 |
435 | <gh_stars>100-1000
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "Montr\u00e9al, 9 juin 2014 - <NAME> pr\u00e9sente Vagrant-Control, une interface web open-source permettant de g\u00e9rer un parc de machines vagrant (LXC, VMWare, VirtualBox).\n\nLiens utiles:\n\n* <NAME... | 607 |
442 | #!/usr/bin/env python
import npyscreen
class A(npyscreen.NPSApp):
def main(self):
scr = F()
scr.edit()
class F(npyscreen.TitleFooterForm):
def create(self):
b = []
for n in range(self.widget_useable_space(rely=self.nextrely)[0]):
b.append(self.add(npyscreen.Button, ... | 216 |
332 | import os
import sys
import zipimport
sys.frozen = True
FILE_NAME = sys.executable
DIR_NAME = os.path.dirname(sys.executable)
TF_CPU_LIB = "%s/lib/python3.5-cpu" % os.path.dirname(DIR_NAME)
TF_GPU_LIB = "%s/lib/python3.5-gpu" % os.path.dirname(DIR_NAME)
if os.path.exists("/usr/local/cuda"):
tf_lib = TF_GPU_LIB
e... | 569 |
416 | //
// VNGenerateObjectnessBasedSaliencyImageRequest.h
// Vision
//
// Copyright © 2018 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Vision/VNRequest.h>
NS_ASSUME_NONNULL_BEGIN
/*!
@brief Generates an image that identifies which part(s) of a given image are most likely to be o... | 275 |
777 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/metrics/leak_detector/leak_detector_value_type.h"
#include <stdio.h>
namespace metrics {
namespace leak_detector {
bool LeakDetect... | 436 |
5,447 | <filename>gluoncv/torch/data/gluoncv_motion_dataset/utils/ingestion_utils.py<gh_stars>1000+
import glob
import numpy as np
import os
import re
import tempfile
from addict import Dict
from collections import defaultdict
from pathlib import Path
from subprocess import call
import cv2
from ..dataset import GluonCVMotionD... | 5,031 |
575 | // 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 CONTENT_BROWSER_COOP_COEP_CROSS_ORIGIN_ISOLATED_INFO_H_
#define CONTENT_BROWSER_COOP_COEP_CROSS_ORIGIN_ISOLATED_INFO_H_
#include "base/optional.h... | 699 |
695 | // Time: O(m * n)
// Space: O(m * n)
class Solution {
public:
/**
* @param grid a boolean 2D matrix
* @return an integer
*/
int numIslands(vector<vector<bool>>& grid) {
if (grid.empty()) {
return 0;
}
vector<vector<bool>> used(grid.size(),
... | 771 |
364 | <reponame>rahul-art/streamlit-webrtc
import asyncio
import contextlib
from typing import Union
from streamlit.server.server import Server
def get_server_event_loop() -> asyncio.AbstractEventLoop:
current_server = Server.get_current()
return current_server._ioloop.asyncio_loop
@contextlib.contextmanager
def... | 227 |
1,118 | {"cym":{"common":"Ciwba","official":"Republic of Cuba"},"deu":{"common":"Kuba","official":"Republik Kuba"},"fin":{"common":"Kuuba","official":"Kuuban tasavalta"},"fra":{"common":"Cuba","official":"République de Cuba"},"hrv":{"common":"Kuba","official":"Republika Kuba"},"ita":{"common":"Cuba","official":"Repubblica di C... | 210 |
1,711 | <filename>paasta_tools/cleanup_kubernetes_jobs.py
#!/usr/bin/env python
# Copyright 2019-2020 Yelp 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/... | 2,562 |
1,554 | /*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the Apache License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.dba.perf.myperf.snmp;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import ja... | 4,765 |
1,144 | <gh_stars>1000+
// SPDX-License-Identifier: GPL-2.0+
/*
* Image manipulator for LPC32XX SoCs
*
* (C) Copyright 2015 DENX Software Engineering GmbH
* Written-by: <NAME> <<EMAIL>>
*
* Derived from omapimage.c:
*
* (C) Copyright 2010
* Linaro LTD, www.linaro.org
* Author: <NAME> <<EMAIL>>
* Based on TI's signG... | 1,946 |
10,225 | <reponame>CraigMcDonaldCodes/quarkus<gh_stars>1000+
package io.quarkus.undertow.runtime;
import java.util.Optional;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.quarkus.runtime.configuration.MemorySize;... | 398 |
450 | <reponame>LiuLeif/onnc
//===- CEnv.h -------------------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef ONNC_SUPPORT_CENV_H
#define ONNC_SUPPO... | 831 |
2,080 | /*-------------------------------------------------------------------------
*
* polar_bitpos.h
* Macro to get bit pos from uin64
*
* Copyright (c) 2020, 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 Lice... | 740 |
522 | <filename>core/src/main/java/org/jivesoftware/sparkimpl/plugin/layout/LayoutSettingsManager.java
/*
* Copyright (C) 2004-2011 Jive Software. 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... | 5,869 |
3,285 | <reponame>grybd/oneflow<gh_stars>1000+
"""
Copyright 2020 The OneFlow 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
U... | 1,137 |
568 | //
// Copyright (c) 2011, <NAME>
// 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 conditions and... | 1,286 |
554 | package github.tornaco.xposedmoduletest.ui.adapter.common;
import android.content.Context;
import android.support.annotation.NonNull;
import android.widget.AdapterView;
import lombok.Getter;
import lombok.Setter;
/**
* Created by guohao4 on 2017/12/18.
* Email: <EMAIL>
*/
public class CommonPackage... | 440 |
310 | {
"name": "Mariposa Summit Pack",
"description": "A big backpack.",
"url": "https://www.rivendellmountainworks.com/shop/mariposa-summit-pack/"
} | 55 |
2,329 | <reponame>CoimLuo/incubator-shenyu<filename>shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/ShenyuDictVO.java<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional informati... | 2,969 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-q7c6-x96r-hrg8/GHSA-q7c6-x96r-hrg8.json
{
"schema_version": "1.2.0",
"id": "GHSA-q7c6-x96r-hrg8",
"modified": "2022-05-13T01:05:41Z",
"published": "2022-05-13T01:05:41Z",
"aliases": [
"CVE-2012-5723"
],
"details": "Cisco ASR 1000 devices with software befor... | 454 |
626 | package org.jsmart.zerocode.core.engine.executor.javaapi;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.Guice;
import com.google.inject.Injector;
import java.lang.reflect.Method;
import java.util.List;
import org.jsmart.zerocode.core.di.main.ApplicationMainModule;
import org.jsmart.zeroc... | 2,167 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.