max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
897 | /*
Given two strings s1 and s2, check if s1 is a subsequence of s2.
A subsequence of a string is a new string that is formed from the original string
by deleting some (can be none) of the characters
without disturbing the relative positions of the remaining characters.
*/
#include <bits/stdc++.h>
using namespa... | 947 |
1,656 | <reponame>HashZhang/spring-cloud-sleuth
/*
* Copyright 2013-2021 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/license... | 2,257 |
426 | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <map>
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/IFC4/include/IfcLightDistributionDataSourceSelect.h"
// TYPE IfcLightDistributionDataSourceSelec... | 350 |
3,093 | package net.chrisrichardson.eventstore.javaexamples.banking.backend.common.accounts;
import io.eventuate.Event;
import io.eventuate.EventEntity;
@EventEntity(entity="net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.backend.Account")
public abstract class AccountEvent implements Event{
}
| 95 |
2,151 | {
"key": "<KEY>",
"name": "Cloud Print",
"version": "0.1",
"description": "Cloud Print",
"icons": {
},
"app": {
"launch": {
"web_url": "https://www.google.com/cloudprint"
},
"urls": [
"https://www.google.com/cloudprint/enable_chrome_connector"
]
},
"permissions": [
"clo... | 164 |
679 | /**************************************************************
*
* 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 y... | 3,806 |
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.metricsadvisor.implementation.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
i... | 488 |
392 | /*
* Synchronized_rw class.
*/
#include "concurrent/threads/synchronization/mutex.hh"
#include "concurrent/threads/synchronization/synchronizables/synchronizable.hh"
#include "concurrent/threads/synchronization/synchronizables/synchronized_rw.hh"
#include "lang/null.hh"
namespace concurrent {
namespace threads {
nam... | 1,005 |
2,945 | // Copyright 2012,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 a... | 5,169 |
930 | <filename>vm/debug.hpp
namespace factor {
extern bool factor_print_p;
#ifdef FACTOR_DEBUG
// To chop the directory path of the __FILE__ macro.
inline const char* abbrev_path(const char* path) {
const char* p1 = strrchr(path, '\\');
const char* p2 = strrchr(path, '/');
return (p1 > p2 ? p1 : p2) + 1;
}
#define... | 713 |
1,027 | <gh_stars>1000+
import base64
import fnmatch
import itertools
import string
from urllib.parse import parse_qs, urlparse
from httpolice import known, message
from httpolice.blackboard import derived_property
from httpolice.known import auth, cache, cc, h, m, prefer, tc, upgrade
from httpolice.parse import mark, parse
f... | 7,531 |
435 | <reponame>Montana/datawave
package datawave.webservice.query.result.event;
import datawave.user.AuthorizationsListBase;
import datawave.user.DefaultAuthorizationsList;
import datawave.webservice.query.Query;
import datawave.webservice.query.QueryImpl;
import datawave.webservice.query.cachedresults.CacheableQueryRow;
i... | 1,199 |
343 | <reponame>airmelody5211/webrtc-clone
/*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
*... | 423 |
7,409 | # Generated by Django 2.2.7 on 2020-02-09 19:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("posthog", "0018_funnel_deleted"),
]
operations = [
migrations.AddField(
model_name="team", name="name", field=models.CharField(b... | 156 |
1,131 | <reponame>ycyun/ablestack-cloud<filename>test/integration/component/test_egress_rules.py<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. Th... | 51,588 |
789 | <filename>qbit/consul-client/src/main/java/io/advantageous/consul/domain/Ports.java
/*
* Copyright (c) 2015. <NAME>, <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:... | 1,343 |
2,338 | <filename>compiler-rt/test/asan/TestCases/Windows/recalloc_sanity.cpp
// RUN: %clang_cl_asan %s -o %t.exe
// RUN: %run %t.exe 2>&1 | FileCheck %s
// RUN: %clang_cl %s -o %t.exe
// RUN: %run %t.exe 2>&1 | FileCheck %s
#include <cassert>
#include <stdio.h>
#include <windows.h>
int main() {
void *p = calloc(1, 100);
... | 432 |
11,868 | package controllers;
import java.math.BigDecimal;
import apimodels.Client;
import apimodels.FileSchemaTestClass;
import java.io.InputStream;
import java.time.LocalDate;
import java.util.Map;
import java.time.OffsetDateTime;
import apimodels.OuterComposite;
import apimodels.User;
import apimodels.XmlItem;
import play.... | 1,206 |
310 | <filename>doma-core/src/main/java/org/seasar/doma/jdbc/query/AutoModuleQuery.java
package org.seasar.doma.jdbc.query;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import org.seasar.doma.internal.jdbc.util.DatabaseObjectUtil;
import org.seasar.doma.jdbc.CallableSql;
import org.... | 655 |
600 | <gh_stars>100-1000
import pytest
from fixtures import complex_zpool
from zfs.constants import Checksum
checksums = {
'fletcher2': Checksum.FLETCHER_2,
'fletcher4': Checksum.FLETCHER_4,
'sha256': Checksum.SHA256,
}
@pytest.mark.parametrize("mode", checksums)
def test_checksums(mode, complex_zpool):
r... | 197 |
446 | /* ========================================
* Console5DarkCh - Console5DarkCh.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __Console5DarkCh_H
#include "Console5DarkCh.h"
#endif
void Console5DarkCh::processReplacing(float **inputs, float **outputs, V... | 4,721 |
575 | <gh_stars>100-1000
// 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.
#ifndef IOS_CHROME_BROWSER_SIGNIN_AUTHENTICATION_SERVICE_DELEGATE_H_
#define IOS_CHROME_BROWSER_SIGNIN_AUTHENTICATION_SERVICE_DELEGATE_... | 334 |
576 | <filename>test/function_test.py
# -*- coding: utf-8 -*-
"""
>>> import random
>>> from samila.functions import *
>>> is_valid_color("blue")
True
>>> is_valid_color((0,0,0))
True
>>> is_valid_color((0.1,0.1,0,1))
True
>>> is_valid_color([1,1,1,1])
True
>>> is_valid_color("#FFFAAF")
True
>>> color_complement("#FFFFFF")
'... | 966 |
4,036 | int ms_int;
int __w64 ms_w64_int;
int* __w64 ms_w64_int_ptr;
int* ms_int_ptr;
int ( *ms_fptr1)(void);
int (__cdecl *ms_fptr2)(void);
int (__stdcall *ms_fptr3)(void);
// semmle-extractor-options: --microsoft
| 123 |
1,770 | package com.willowtreeapps.hyperion.attr.design;
import androidx.annotation.NonNull;
import com.google.android.material.appbar.AppBarLayout;
import com.google.auto.service.AutoService;
import com.willowtreeapps.hyperion.attr.collectors.TypedAttributeCollector;
import com.willowtreeapps.hyperion.attr.ViewAttribute;
im... | 314 |
8,865 | /*
* [The "BSD licence"]
* Copyright (c) 2010 <NAME> (JesusFreke)
* 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
* ... | 7,327 |
372 | <filename>opensoap/samples/SecCertAuth/GetCert/DBrefer.c
/*-----------------------------------------------------------------------------
* $RCSfile: DBrefer.c,v $
*
* See Copyright for the status of this software.
*
* The OpenSOAP Project
* http://opensoap.jp/
*---------------------------------------------------... | 1,139 |
5,169 | {
"name": "UniLayout",
"version": "0.4.4",
"summary": "A uniform layout system for iOS and Android.",
"description": "A uniform layout system for both iOS and Android. Based on the layout container system from Android (like LinearLayout and FrameLayout).",
"homepage": "https://github.com/crescentflare/UniLayo... | 291 |
1,337 | /*
* Copyright (c) 2008-2019 Haulmont.
*
* 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 agr... | 390 |
852 | #define hltBtagJetMCTools for jet/parton matching
import FWCore.ParameterSet.Config as cms
hltBtagPartons = cms.EDProducer("PartonSelector",
src = cms.InputTag("genParticles"),
withLeptons = cms.bool(False)
)
hltBtagJetsbyRef = cms.EDProducer("JetPartonMatcher",
jets = cms.InputTag("hltBtagCaloJetL1FastJe... | 288 |
337 | // Copyright 2017 <NAME>
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_SER_JSON_HPP
#define JSONCONS_SER_JSON_HPP
#include <iostream>
... | 6,251 |
10,225 | <reponame>mweber03/quarkus
package io.quarkus.hibernate.orm.panache.deployment.test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import io.quarkus.hibernate.orm.panache.PanacheEntity_;
public class PanacheEntityMetaModelTest {
@Test
public void testMetaModelExistence() {
... | 154 |
1,875 | <reponame>MxSoul/flutter-intellij<filename>src/io/flutter/module/FlutterGeneratorPeer.java<gh_stars>1000+
/*
* Copyright 2016 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package io.flutter.module;
import com.int... | 1,860 |
322 | /*
* 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 ... | 895 |
14,668 | // 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 COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_FIDO_AUTHENTICATION_STRIKE_DATABASE_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_FIDO_AUTHENTICA... | 498 |
1,056 | /*
* 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 ... | 4,524 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-j7qj-hw73-j3f2",
"modified": "2022-05-02T03:14:32Z",
"published": "2022-05-02T03:14:32Z",
"aliases": [
"CVE-2009-0337"
],
"details": "SQL injection vulnerability in index.asp in Katy Whitton BlogIt! allows remote attackers to execute arbitrary SQL commands via ... | 410 |
679 | <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 license... | 996 |
2,073 | <filename>activemq-tooling/activemq-junit/src/main/java/org/apache/activemq/junit/ActiveMQDynamicQueueSenderResource.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding co... | 1,691 |
724 | <reponame>This-50m/vega<gh_stars>100-1000
# -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# b... | 1,259 |
1,837 | /**
* Project: zebra-client
*
* File Created at 2011-6-27
* $Id$
*
* Copyright 2010 dianping.com.
* All rights reserved.
*
* This software is the confidential and proprietary information of
* Dianping Company. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use... | 5,268 |
1,006 | <reponame>eenurkka/incubator-nuttx<gh_stars>1000+
/****************************************************************************
* net/utils/net_ipv6_pref2mask.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work... | 1,357 |
17,275 | <reponame>rnelson01/jenkins<filename>core/src/main/java/org/acegisecurity/context/SecurityContext.java
/*
* The MIT License
*
* Copyright 2020 CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... | 1,000 |
679 | /**************************************************************
*
* 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 y... | 4,460 |
1,047 | #include "gtest/gtest.h"
#include "uTensor/core/types.hpp"
TEST(Shapes, test_1) {
TensorShape s1(10);
EXPECT_EQ(s1.num_dims(), 1);
EXPECT_EQ(s1[0], 10);
}
TEST(Shapes, test_2d) {
TensorShape s1(10, 10);
EXPECT_EQ(s1.num_dims(), 2);
EXPECT_EQ(s1[0], 10);
EXPECT_EQ(s1[1], 10);
EXPECT_EQ(s1.linear_index... | 329 |
3,262 | <filename>angel-ps/core/src/main/java/com/tencent/angel/ipc/RpcEngine.java
/*
* Tencent is pleased to support the open source community by making Angel available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");... | 499 |
2,912 | <reponame>kuli1/library<gh_stars>1000+
package io.pillopl.library.catalogue;
class BookFixture {
static final String DDD_ISBN_STR = "0321125215";
static final ISBN DDD_ISBN_10 = new ISBN(DDD_ISBN_STR);
static final ISBN NON_PRESENT_ISBN = new ISBN("032112521X");
static final Book DDD = new Book(new... | 149 |
12,278 | <filename>ReactNativeFrontend/ios/Pods/boost/boost/compute/algorithm/detail/compact.hpp
//---------------------------------------------------------------------------//
// Copyright (c) 2014 Roshan <<EMAIL>>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy ... | 928 |
10,225 | package io.quarkus.annotation.processor.generate_doc;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class JavaDocConfigSectionParserTest {
private JavaDocParser parser;
@BeforeEach
public void setup() {
... | 2,338 |
397 | <gh_stars>100-1000
# -*- coding:utf-8 -*-
# &Author AnFany
import AnFany_DT_Classify as model # 引入模型
import Irisdata_DT_Anfany as dtda # 引入数据
import AnFany_Show_Tree as tree # 引入绘制树
# 最终的函数
from pylab import mpl
mpl.rcParams['font.sans-serif'] = ['FangSong'] # 显示中文
mpl.rcParams['axes.unicode_minus'... | 1,338 |
479 | <filename>java/com/google/gerrit/lucene/LuceneAccountIndex.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 License at
//
// http://www.apac... | 2,565 |
190,993 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 1,505 |
3,631 | <filename>kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNTypeSafeTest.java
/*
* Copyright 2020 Red Hat, Inc. and/or 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... | 3,473 |
852 | <reponame>ckamtsikis/cmssw
#include "AnalysisDataFormats/TopObjects/interface/TtGenEvent.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EDFilter.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/He... | 716 |
372 | <filename>[2]. Ojbect-Oriented design pattern Demo/[11]. Decorator Pattern Demo/DPDemo/Salad/Salad.h
//
// Salad.h
// DPDemo
//
// Created by <NAME> on 2018/11/3.
// Copyright © 2018 Sunshijie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Salad : NSObject
- (NSString *)getDescription;
- ... | 130 |
428 | package reactivefeign.methodhandler.fallback;
import feign.MethodMetadata;
import feign.Target;
import reactivefeign.methodhandler.MethodHandler;
import reactivefeign.methodhandler.MethodHandlerFactory;
import java.lang.reflect.Method;
import java.util.function.Function;
import static feign.Util.checkNotNull;
publi... | 483 |
679 | /**************************************************************
*
* 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 y... | 4,443 |
331 | {
"in":"header",
"name":"X-CSRF-TOKEN",
"description":"csrf_access_token cookie value",
"schema":{
"type":"string",
"format":"uuid"
},
"required":"true"
} | 83 |
4,013 | from checkov.common.models.enums import CheckResult, CheckCategories
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
class ECSClusterContainerInsights(BaseResourceCheck):
def __init__(self):
name = "Ensure container insights are enabled on ECS cluster"
id = "CKV... | 418 |
404 | // Copyright (c) 2015-2019 K Team. All Rights Reserved.
package org.kframework.backend.java.symbolic;
import com.google.inject.Provider;
import org.kframework.backend.java.kil.Definition;
import org.kframework.backend.java.kil.Variable;
import org.kframework.backend.java.util.FormulaContext;
import org.kframework.back... | 2,625 |
1,826 | <gh_stars>1000+
package com.vladsch.flexmark.ext.superscript;
| 25 |
1,517 | /**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include <yoga/YGNode.h>
#include <yoga/Yoga.h>
static float _baseline(YGNodeRef node, const float width, cons... | 936 |
852 | import FWCore.ParameterSet.Config as cms
# Analyze and plot the tracking material
from SimTracker.TrackerMaterialAnalysis.trackingMaterialAnalyser_ForHGCalPhaseII_cfi import *
| 48 |
1,443 | <reponame>cssence/mit-license
{
"copyright": "<NAME>",
"url": "http://paul-moore.ca",
"email": "<EMAIL>",
"format": "txt"
}
| 60 |
1,108 | <reponame>yzpang/jiant
from typing import Any
def getter(attr_name: Any):
def f(obj):
return getattr(obj, attr_name)
return f
def indexer(key):
def f(obj):
return obj[key]
return f
def identity(*args):
if len(args) > 1:
return args
else:
return args[0]
#... | 203 |
380 | <filename>Server/src/main/java/org/gluu/oxauth/i18n/LanguageBean.java<gh_stars>100-1000
/*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.gluu.oxauth.i18n;
import java.io.Serializable;
import java.util.LinkedLis... | 1,778 |
12,252 | <gh_stars>1000+
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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
*
* ... | 722 |
852 | #ifndef L1T_PACKER_STAGE2_CALOLAYER1PACKER_H
#define L1T_PACKER_STAGE2_CALOLAYER1PACKER_H
#include "EventFilter/L1TRawToDigi/interface/Packer.h"
#include "CaloLayer1Tokens.h"
#include "UCTCTP7RawData.h"
namespace l1t {
namespace stage2 {
class CaloLayer1Packer : public Packer {
public:
Blocks pack(con... | 386 |
2,151 | /*
* Copyright (c) 2014 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* Test that the GCC/LLVM vector extensions can be used from C code.
* http://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
* htt... | 7,921 |
347 | package org.ovirt.engine.core.sso.api.jwk;
import java.math.BigInteger;
import java.security.interfaces.RSAMultiPrimePrivateCrtKey;
import java.security.interfaces.RSAPrivateCrtKey;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.RSAOtherPrimeInfo;... | 4,885 |
838 | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 <NAME>
*
* 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 Soft... | 2,679 |
743 | <gh_stars>100-1000
package pl.allegro.tech.hermes.test.helper.cache;
import com.google.common.base.Ticker;
import java.time.Duration;
public class FakeTicker extends Ticker {
private long currentNanos = 0;
@Override
public long read() {
return currentNanos;
}
public void advance(Duratio... | 145 |
1,414 | <reponame>redscientistlabs/Bizhawk50X-Vanguard<gh_stars>1000+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus-ui-console - osal_files.h *
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
* Copyright (C) 2009 <NA... | 1,218 |
328 | <filename>src/rdf/SemanticRelation.java
package rdf;
import java.util.ArrayList;
import rdf.SimpleRelation;
import nlp.ds.Word;
public class SemanticRelation {
public Word arg1Word = null;
public Word arg2Word = null;
public String relationParaphrase = null; // longest match
public double LongestMatchingScore =... | 2,181 |
14,668 | <gh_stars>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 CONTENT_RENDERER_BROWSER_EXPOSED_RENDERER_INTERFACES_H_
#define CONTENT_RENDERER_BROWSER_EXPOSED_RENDERER_INTERFACES_H_
#include ... | 315 |
3,702 | /*
* 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
* distribu... | 605 |
2,232 | <filename>src/api/lean_type_checker.h
/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#ifndef _LEAN_TYPE_CHECKER_H
#define _LEAN_TYPE_CHECKER_H
#ifdef __cplusplus
extern "C" {
#endif
/**
\defgroup capi C API
*/... | 801 |
2,728 | <reponame>rsdoherty/azure-sdk-for-python<filename>sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/models/_models_py3.py
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Lice... | 58,157 |
5,169 | <filename>Specs/e/a/4/ReactiveLevelCache/0.9.0/ReactiveLevelCache.podspec.json
{
"name": "ReactiveLevelCache",
"version": "0.9.0",
"summary": "Objective-C level db with Reactive Cache compatible interface",
"description": "Google's LevelDB with RACSignal interface",
"homepage": "https://github.com/haifengkao/... | 347 |
955 | <gh_stars>100-1000
"""Package for tensorflow NN modules."""
from __future__ import absolute_import
from .deeponet import DeepONetCartesianProd
from .fnn import FNN
from .nn import NN
__all__ = ["DeepONetCartesianProd", "FNN", "NN"]
| 81 |
14,668 | <filename>chrome/browser/ui/views/side_panel/side_panel_coordinator.cc
// 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 "chrome/browser/ui/views/side_panel/side_panel_coordinator.h"
#include <me... | 2,975 |
877 | <reponame>nimakarimipour/checker-framework
public class InnerTypeTest3 {
private int[] nums;
private static byte[] buffer = new byte[4096];
private static final char[] digits = {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
}
| 115 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include <memory>
#include "ngraph_functions/builders.hpp"
namespace ngraph {
namespace builder {
namespace {
template <typename ...Args>
std::shared_ptr<ngraph::Node> CallDftCtorWithArgs(const ngraph::h... | 728 |
428 | /**
* Copyright 2008 - 2012
*
* 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 wr... | 525 |
3,921 | <gh_stars>1000+
/**
* Created by LuaView.
* Copyright (c) 2017, Alibaba Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
#import <Foundation/Foundation.h>
#... | 423 |
1,194 | package ca.uhn.fhir.jpa.interceptor;
/*-
* #%L
* HAPI FHIR JPA Server
* %%
* Copyright (C) 2014 - 2022 Smile CDR, 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
*
* h... | 2,203 |
921 | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2016, Rice University
* 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 r... | 2,194 |
5,379 | // Copyright (c) 2011 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.
// Tests of CancellationFlag class.
#include "butil/synchronization/cancellation_flag.h"
#include "butil/logging.h"
#include "butil/synchronization/... | 296 |
2,293 | /* ----------------------------------------------------------------------
* Project: CMSIS DSP Library
* Title: ArrayMemory.h
* Description: Array Memory Header
*
* $Date: 20. June 2019
* $Revision: V1.0.0
*
* Target Processor: Cortex-M cores
* -------------------------------------------... | 644 |
357 | /*
* Copyright © 2012-2015 VMware, 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/LICENSE-2.0
*
* Unless required by applica... | 3,107 |
360 | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 1,917 |
340 | <gh_stars>100-1000
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//===================================================================================... | 1,684 |
7,482 | /*
* 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.0
*
* Unless ... | 1,049 |
680 | #
# Copyright 2017-2018 IBM 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 required by applicable law or agreed to in wr... | 899 |
1,052 | <filename>output/outlib.h
/* ----------------------------------------------------------------------- *
*
* Copyright 1996-2020 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
* Redistribution and use in source and... | 3,831 |
1,245 | <filename>experiment_scripts/test_audio.py<gh_stars>1000+
# Enable import from parent package
import sys
import os
sys.path.append( os.path.dirname( os.path.dirname( os.path.abspath(__file__) ) ) )
import dataio, utils, modules
from torch.utils.data import DataLoader
import configargparse
import torch
import scipy.io... | 980 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Coudures","circ":"3ème circonscription","dpt":"Landes","inscrits":343,"abs":149,"votants":194,"blancs":7,"nuls":3,"exp":184,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":105},{"nuance":"REM","nom":"<NAME>","voix":79}]} | 111 |
828 | <reponame>syntio/DataflowTemplates
{
"image": "gcr.io/project-id/image-name",
"metadata": {
"name": "PubSub_Proto_to_BigQuery",
"description": "Stream Proto records from Pub/Sub to BigQuery",
"parameters": [
{
"name": "protoSchemaPath",
"label": "GCS Path to the Proto Schema File",... | 2,242 |
766 | <reponame>data-man/libfsm
int
fsm_main(int (*fsm_getc)(void *opaque), void *opaque)
{
int c;
enum {
S0, S1, S2, S3, S4, S5, S6, S7, S8, S9,
S10, S11, S12, S13, S14, S15, S16, S17, S18, S19,
S20, S21, S22
} state;
state = S0;
while (c = fsm_getc(opaque), c != EOF) {
switch (state) {
case S0: /* start... | 1,788 |
549 | <filename>spring/src/main/java/net/notejam/spring/user/UserRepository.java<gh_stars>100-1000
package net.notejam.spring.user;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* The user repository.
*
* @author <EMAIL>
* @see <a href="bitcoin:1335STSwu9hST4vcMRppEPgENMH... | 244 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.