max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
377 | /*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... | 2,819 |
1,056 | <reponame>timfel/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 2.... | 6,064 |
3,377 | <filename>src/main/java/com/github/javafaker/Music.java<gh_stars>1000+
package com.github.javafaker;
public class Music {
private static final String[] KEYS = new String[] { "C", "D", "E", "F", "G", "A", "B" };
private static final String[] KEY_VARIANTS = new String[] { "b", "#", "" };
private static fina... | 380 |
3,200 | <filename>mindspore/lite/src/ops/populate/v0/embedding_lookup_populate_v0.cc
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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:... | 807 |
2,189 | #include <fc/io/sstream.hpp>
#include <fc/fwd_impl.hpp>
#include <fc/exception/exception.hpp>
#include <fc/log/logger.hpp>
#include <sstream>
namespace fc {
class stringstream::impl {
public:
impl( fc::string&s )
:ss( s )
{ ss.exceptions( std::stringstream::badbit ); }
impl( const fc::string&s )... | 1,429 |
852 | #ifndef DATAFORMATS_HGCRECHIT_H
#define DATAFORMATS_HGCRECHIT_H 1
#include "DataFormats/CaloRecHit/interface/CaloRecHit.h"
#include <vector>
/** \class HGCRecHit
*
* based on EcalRecHit
*
* \author <NAME>
*/
class HGCRecHit : public CaloRecHit {
public:
typedef DetId key_type;
// HGCEE recHit flags
enu... | 1,692 |
444 | {
"name": "blockly-realtime-demo",
"version": "0.0.0",
"private": true,
"scripts": {
"audit": "npm audit fix",
"update": "npm update",
"build": "npm run build:frontend",
"build:frontend": "rimraf ./build && webpack",
"serve-http": "concurrently \"npm run serve:frontend\" \"npm run serve:back... | 561 |
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.
#include "chrome/browser/web_applications/components/web_app_uninstallation_via_os_settings_registration.h"
#include "base/check.h"
#include "build/build... | 477 |
879 | <filename>utils/src/main/java/org/zstack/utils/form/FormReader.java
package org.zstack.utils.form;
public interface FormReader {
String getType();
String[] getHeader();
/**
* get next record, exclude header.
* @return
* NULL when form has no more records;
* new String[0] if n... | 145 |
515 | <gh_stars>100-1000
#!/usr/bin/env python3
# Copyright (c) 2020-2021, <NAME>
# License: MIT License
import argparse
import signal
import sys
from ezdxf.addons.xqt import QtWidgets as qw
import ezdxf
from ezdxf import recover
from ezdxf.addons.drawing.qtviewer import CadViewer
from ezdxf.addons.drawing.config import Co... | 940 |
1,867 | package net.glowstone.constants;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.material.MaterialData;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.stream.Stream;
/**
* Tes... | 909 |
3,336 | {
"Get-AzAksUpgradeProfile+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/upgradeProfiles/default?api-version=2020-09-01+1": {
"Request": {
"Method": "GET",
"RequestUr... | 1,189 |
1,428 | print("Hello, pyLadies!")
| 10 |
1,001 | __version__ = '3.0.30' | 11 |
809 | /**
* @file
*
* @date 15.05.2016
* @author <NAME>
*/
#ifndef ES1370_H_
#define ES1370_H_
#define ES1370_REG_CONTROL 0x00 /* Interups/Chip select */
#define ES1370_REG_STATUS 0x04
#define ES1370_REG_UART_DATA 0x08 /* UART */
#define ES1370_REG_UART_STATUS 0x09
#define ES1370_REG_UA... | 2,895 |
583 | <filename>platforms/android/app/src/main/java/dk/area9/flowrunner/FlowMediaStreamSupport.java
package dk.area9.flowrunner;
import android.Manifest;
import org.webrtc.AudioSource;
import org.webrtc.AudioTrack;
import org.webrtc.Camera1Enumerator;
import org.webrtc.Camera2Enumerator;
import org.webrtc.CameraEnumerator;... | 2,416 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo 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.
*/
package com.immomo.mls.weight.load;
import andro... | 243 |
634 | <reponame>halotroop2288/consulo<gh_stars>100-1000
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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... | 552 |
34,359 | <filename>thirdparty/boost/include/boost/move/algorithm.hpp
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright <NAME> 2012-2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICE... | 1,931 |
775 | <gh_stars>100-1000
#pragma once
#include <windows.h>
#include <stdio.h>
#include "ntdll_undoc.h"
#include "createproc.h"
#include "relocate.h"
#include "pe_raw_to_virtual.h"
/*
runPE32:
targetPath - application where we want to inject
payload - buffer with raw image of PE that we want to inject
payload_s... | 2,185 |
2,990 | /*
* GDevelop JS Platform
* Copyright 2008-2016 <NAME> (<EMAIL>). All rights
* reserved. This project is released under the MIT License.
*/
#ifndef FILEEXTENSION_H
#define FILEEXTENSION_H
#include "GDCore/Extensions/PlatformExtension.h"
namespace gdjs {
/**
* \brief Built-in extension providing functions for sto... | 169 |
787 | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ <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/LICEN... | 1,296 |
777 | // 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.
#ifndef IOS_WEB_PUBLIC_TEST_EARL_GREY_JS_TEST_UTIL_H_
#define IOS_WEB_PUBLIC_TEST_EARL_GREY_JS_TEST_UTIL_H_
#import <Foundation/Foundation.h>
#import "i... | 459 |
852 | // L1Offset jet corrector class. Inherits from JetCorrector.h
#ifndef L1OffsetCorrector_h
#define L1OffsetCorrector_h
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "JetMETCorrections/Objects/interface/JetCorrector.h"
#include "CondFormats/JetMETObjects/interface/FactorizedJetCorrectorCalculator.h"
#... | 446 |
852 | <reponame>ckamtsikis/cmssw
class filereader:
def __init__(self):
self.aList=['Module', 'ESSource']
def startswith(self,line):
"Checks if the first word of the line starts with any of the aList elements"
for item in self.aList:
if line.startswith(item):
retur... | 843 |
503 | package utils;
import java.io.*;
import java.util.zip.DeflaterOutputStream;
import java.util.zip.InflaterInputStream;
/**
* ZipUtil
*
* Intended to compress string contents
*/
public class ZipUtil {
public static byte[] compress(String text) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
... | 489 |
617 | <reponame>jbdelcuv/openenclave
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#define MEM_MIN_CAP 1
#include <openenclave/internal/mem.h>
#include <openenclave/internal/tests.h>
#include <stdio.h>
void TestMem(mem_t* m)
{
OE_TEST(mem_cpy(m, "hijk", 4) == 0);
OE_TEST(mem_siz... | 1,840 |
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.
#include "components/viz/service/display/overlay_processor_ozone.h"
#include "components/viz/test/test_context_provider.h"
#include "gpu/command_buffer/c... | 3,420 |
82,518 | <gh_stars>1000+
# 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 req... | 1,900 |
1,210 | <filename>deps/cinder/include/boost/intrusive/linear_slist_algorithms.hpp
/////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright <NAME> 2004-2006.
// (C) Copyright <NAME> 2006-2014
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file L... | 4,846 |
1,405 | package com.lenovo.performancecenter.framework;
public class WhitelistAuth {
public static final String AUTHORITY = "com.lenovo.performancecenter.provider.querywhitelist";
public static final int QUERYWHITELISTAPPS = 1;
public static final int UPDATEWHITELISTAPPS = 2;
}
| 87 |
445 | #include "Python.h"
#include "astropy_wcs_api.h"
static PyObject*
test(
PyObject* self,
PyObject* args,
PyObject* kwds) {
pipeline_t p;
pipeline_clear(&p);
return Py_None;
}
static PyMethodDef module_methods[] = {
{"test", (PyCFunction)test, METH_NOARGS, ""},
{NULL} /* Sentinel */
};
... | 381 |
546 | <filename>include/Msnhnet/math/MsnhVector3S.h
#ifndef VECTOR3S_H
#define VECTOR3S_H
#include "Msnhnet/config/MsnhnetCfg.h"
#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
namespace Msnhnet
{
class MsnhNet_API Vector3DS
{
public :
double val[3];
inline Vector3DS(){val[0]=val[1]=... | 11,871 |
3,262 | <gh_stars>1000+
package com.tencent.angel.psagent.matrix.transport.router.operator;
public interface IIntKeyFloatValuePartOp {
int[] getKeys();
float[] getValues();
void add(int key, float value);
void add(int[] keys, float[] values);
}
| 83 |
367 | //***********************************************************************//
// //
// - "Talk to me like I'm a 3 year old!" Programming Lessons - //
// //
// $Author: DigiBen <EMAIL> //
// //
// $Program: ... | 4,355 |
313 | package com.daivd.chart.provider.component.cross;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PointF;
import android.graphics.Rect;
/**
* Created by huang on 2017/10/19.
* 十字轴
*/
public interface ICross {
void drawCross(Canvas canvas, PointF pointF, Rect rect, Paint... | 118 |
348 | <gh_stars>100-1000
{"nom":"Saint-Martin-la-Garenne","circ":"8ème circonscription","dpt":"Yvelines","inscrits":682,"abs":337,"votants":345,"blancs":46,"nuls":5,"exp":294,"res":[{"nuance":"LR","nom":"<NAME>","voix":171},{"nuance":"REM","nom":"<NAME>","voix":123}]} | 104 |
582 | /*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 921 |
594 | /* Test for builtin abs, labs, llabs, imaxabs. */
/* Origin: <NAME> <<EMAIL>> */
#include <limits.h>
typedef __INTMAX_TYPE__ intmax_t;
#define INTMAX_MAX __INTMAX_MAX__
extern int abs (int);
extern long labs (long);
extern long long llabs (long long);
extern intmax_t imaxabs (intmax_t);
extern void abort (void);
ext... | 1,254 |
4,756 | <filename>mace/runtimes/opencl/mtk_ion/opencl_mtk_ion_runtime.cc
// Copyright 2021 The MACE 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://... | 1,859 |
839 | <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
... | 3,730 |
647 | <filename>client/src/main/java/io/atomix/copycat/client/ServerSelectionStrategies.java
/*
* Copyright 2015 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... | 1,110 |
1,510 | /*
* 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,883 |
2,180 | <filename>kafka-manager-common/src/main/java/com/xiaojukeji/kafka/manager/common/entity/ao/consumer/ConsumerGroup.java<gh_stars>1000+
package com.xiaojukeji.kafka.manager.common.entity.ao.consumer;
import com.xiaojukeji.kafka.manager.common.bizenum.OffsetLocationEnum;
import java.util.Objects;
public class ConsumerG... | 824 |
381 | package com.tngtech.jgiven.impl;
/**
* A default scenario implementation that takes three type arguments,
* one for each stage.
*
* @param <GIVEN> the Given stage
* @param <WHEN> then When stage
* @param <THEN> then Then stage
*/
public class Scenario<GIVEN, WHEN, THEN> extends ScenarioBase {
private GIVEN... | 1,522 |
432 | <reponame>lambdaxymox/DragonFlyBSD
/*
* Copyright (c) 2004 <NAME>. All rights reserved.
* Copyright (c) 2004 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or with... | 2,496 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-7h63-9wr7-vcw2",
"modified": "2022-05-13T01:33:46Z",
"published": "2022-05-13T01:33:46Z",
"aliases": [
"CVE-2018-17915"
],
"details": "All versions of Hangzhou Xiongmai Technology Co., Ltd XMeye P2P Cloud Server do not encrypt all device communication. This inc... | 458 |
587 | <gh_stars>100-1000
/*
* Copyright 2012-2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 2,579 |
516 | <reponame>eltonsandre/intellij-plugin-save-actions
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 <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 Software without restriction, inclu... | 1,943 |
496 | //
// BCMeshContentView.h
// BCMeshTransformView
//
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BCMeshContentView : UIView
@property (nonatomic, copy) void (^changeBlock)(void);
@property (nonatomic, copy) void (^tickBlock)(CADisplayLink *);
- (instancetype)initWithFr... | 209 |
312 | <reponame>Samsung/ADBI<filename>util/human.h
#ifndef HUMAN_H_
#define HUMAN_H_
#define str_fn(what) \
struct what ## _t; \
const char * str_ ## what(const struct what ## _t * what);
str_fn(node)
str_fn(process)
str_fn(thread)
... | 267 |
349 | <filename>src/nes/wiring/cpu_mmu.h
#pragma once
#include "common/util.h"
#include "nes/cartridge/mapper.h"
#include "nes/interfaces/memory.h"
// CPU Memory Map (MMU)
// NESdoc.pdf
// https://wiki.nesdev.com/w/index.php/CPU_memory_map
// https://wiki.nesdev.com/w/index.php/2A03
class CPU_MMU final : public Memory {
pr... | 319 |
2,151 | <reponame>zipated/src<filename>third_party/blink/renderer/core/frame/find_in_page.cc<gh_stars>1000+
/*
* Copyright (C) 2009 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:
*
* ... | 3,965 |
4,606 | <filename>examples/docs_snippets_crag/docs_snippets_crag/guides/dagster/graph_job_op/simple_pipeline.py
from dagster import pipeline, solid
@solid
def do_something():
...
@pipeline
def do_it_all():
do_something()
| 90 |
4,138 | <filename>cc/src/main/java/com/billy/cc/core/component/BaseForwardInterceptor.java<gh_stars>1000+
package com.billy.cc.core.component;
import android.text.TextUtils;
/**
* 转发组件调用 <br>
* 注:如果需要做成全局拦截器,需要额外实现 {@link IGlobalCCInterceptor}接口
* @author billy.qi
* @since 18/9/2 13:40
*/
public abstract class BaseForwa... | 516 |
2,151 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_OBSERVER_H_
#define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_OBSERVER_H_
class Boo... | 199 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerregistry.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.f... | 892 |
435 | <reponame>amaajemyfren/data
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "Nous sommes une entreprise de maintenance Informatique.\n\nNous sommes \u00e9galement fain\u00e9ants et enfin nous adorons l'automatisation.\n\nD\u00e9couvrez nos outils de pr\u00e9dilections pour... | 459 |
10,225 | <reponame>CraigMcDonaldCodes/quarkus
package io.quarkus.spring.security.deployment;
import java.lang.reflect.Modifier;
import java.util.Map;
import java.util.Set;
import java.util.function.Supplier;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jboss.jandex.ClassInfo;
import org.jboss.jan... | 1,182 |
313 | //------------------------------------------------------------------------------
// gb_get_sparsity: determine the sparsity of a matrix result
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identifi... | 1,248 |
1,450 | <reponame>jarbus/neural-mmo
"""
The MIT License (MIT)
Copyright (c) 2013 <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 Software without restriction, including without limitation the rights
to use... | 1,281 |
1,114 | <reponame>HookedBehemoth/libnx
#include <string.h>
#include <stdlib.h>
#include <arm_neon.h>
#include "result.h"
#include "crypto/aes.h"
/* Helper macros to setup for inline AES asm */
#define AES_ENC_DEC_SETUP_VARS() \
uint8x16_t tmp = vld1q_u8((const uint8_t *)src); \
uint8x16_t tmp2
#define AES_ENC_DEC_OUTPUT_VAR... | 8,615 |
1,005 | <reponame>wes-chen/Adabelief-Optimizer<filename>pypi_packages/adabelief_pytorch0.2.1/adabelief_pytorch/__init__.py
from .AdaBelief import AdaBelief
__version__='0.2.1' | 74 |
897 | <gh_stars>100-1000
import java.util.*;
public class CocktailSort {
private static void swap(int arr[], int i, int j) {
int temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
private static void cocktailSort(int arr[]) {
boolean isSwapped = true;
int begin = 0;
... | 1,374 |
777 | // 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.
#ifndef UI_EVENTS_OZONE_EVDEV_SCOPED_INPUT_DEVICE_H_
#define UI_EVENTS_OZONE_EVDEV_SCOPED_INPUT_DEVICE_H_
#include "base/scoped_generic.h"
#include "ui/e... | 274 |
599 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 TH<NAME>, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in complianc... | 1,745 |
634 | /*
* Copyright 2013-2016 consulo.io
*
* 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 ... | 640 |
335 | {
"word": "Hodgepodge",
"definitions": [
"A confused mixture; a hotchpotch."
],
"parts-of-speech": "Noun"
} | 64 |
2,073 | /*
* 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,206 |
672 | <gh_stars>100-1000
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 638 |
852 | #include "CondFormats/L1TObjects/interface/L1TMuonGlobalParams.h"
#include "FWCore/Utilities/interface/typelookup.h"
TYPELOOKUP_DATA_REG(L1TMuonGlobalParams);
| 67 |
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 ... | 6,994 |
370 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright xmuspeech (Author:Snowdar 2019-01-10)
# This metric is for ASVspoof Challenge in 2019.
import sys
# Num of data
N_bona_cm=0
N_spoof_cm=0
# Priors
Pi_tar=0.9405
Pi_non=0.0095
Pi_spoof=0.05
# ASV costs
C_miss_asv=1
C_fa_asv=10
# CM costs
C_miss_cm=1
C_fa_cm... | 3,201 |
301 | <gh_stars>100-1000
package cn.ittiger.video.util;
/**
* @author: laohu on 2016/8/31
* @site: http://ittiger.cn
*/
public interface CallbackHandler<T> {
void callback(T t);
}
| 74 |
575 | <filename>chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
// 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 CHROME_BROWSER_FILE_SYSTEM_ACCESS_CHROME_FILE_SYSTEM_AC... | 2,271 |
3,783 | <filename>src/problems/medium/WordLadder.java<gh_stars>1000+
package problems.medium;
import java.util.*;
/**
* Created by sherxon on 2/12/17.
*/
public class WordLadder {
public static void main(String[] args) {
System.out.println();
}
public int ladderLength(String a, String b, List<String> li... | 1,085 |
5,169 | {
"name": "WTDB",
"version": "1.0.3",
"summary": "好想唱情歌 看最美的烟火 在城市中漂泊 我的心为爱颤抖",
"description": "男:好想唱情歌 看最美的烟火\n男:娘子\n女:a ha\n男:和你唱情歌 看最美的烟火\n女:你陪我唱情歌 看最美的烟火 在城市中牵手 我的爱为你颤抖 离开多少风雨后 我爱上唱情歌 你是夜的星斗 我真爱的所有\n合唱:是郎给的诱惑 我唱起了情歌 在渴望的天空 有美丽的月色 是郎给的快乐 我风干了寂寞 在幸福的天空 你是我的所有\n男:娘子",
"homepage": "https://github.com/w... | 608 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/ImageCapture.framework/ImageCapture
*/
#import <ImageCapture/XXUnknownSuperclass.h>
@class NSMutableArray, PTPCameraDeviceManager, MSCameraDeviceManager;
@interface ICMasterDeviceBrowser : XXUnknownSuperclass {
NS... | 634 |
988 | <filename>enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/actions/AbstractPasswordPanel.java<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
* regard... | 1,767 |
507 | <reponame>mjuenema/python-terrascript
# terrascript/random/r.py
# Automatically generated by tools/makecode.py ()
import warnings
warnings.warn(
"using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2
)
import terrascript
class random_id(terrascript.Resource):
pass
class random_integer... | 208 |
1,126 | <filename>depth_first_traversal/DepthFirstTraversal.java<gh_stars>1000+
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Set;
import java.util.ArrayList;
public class DepthFirstTraversal {
// ArrayList for Adjacency List Representation
public static ArrayList... | 734 |
310 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.or... | 4,762 |
640 | <gh_stars>100-1000
/*
KernelInjet.H
Author: <your name>
Last Updated: 2006-02-12
This framework is generated by EasySYS 0.3.0
This template file is copying from QuickSYS 0.3.0 written by <NAME>
*/
#ifndef _KERNELINJET_H
#define _KERNELINJET_H 1
//
// Define the various device type values... | 895 |
2,517 | <gh_stars>1000+
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#define CAF_SUITE dictionary
#include "caf/dictionary.hpp"
#include "cor... | 1,833 |
3,651 | <gh_stars>1000+
package com.orientechnologies.orient.server.distributed.impl.lock;
import java.util.List;
public interface OnLocksAcquired {
void execute(List<OLockGuard> guards);
}
| 63 |
3,428 | <gh_stars>1000+
{"id":"01289","group":"spam-2","checksum":{"type":"MD5","value":"2f9168490b8c45e76af4935b4827f702"},"text":"From <EMAIL> Wed Aug 7 08:27:17 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfi... | 1,667 |
539 | <gh_stars>100-1000
/**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on ... | 675 |
432 | /*
* Copyright (C) 2020 ActiveJ 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 required by applicable law or agreed to... | 676 |
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 CHROME_BROWSER_ASH_APP_MODE_WEB_APP_MOCK_WEB_KIOSK_APP_LAUNCHER_H_
#define CHROME_BROWSER_ASH_APP_MODE_WEB_APP_MOCK_WEB_KIOSK_APP_LAUNCHER_H_
#in... | 409 |
648 | {"resourceType":"CodeSystem","id":"concept-property-type","meta":{"lastUpdated":"2019-11-01T09:29:23.356+11:00"},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <h2>PropertyType</h2>\n <div>\n <p>The type of a property value.</p>\n\n </div... | 2,280 |
608 | // This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#include "macglobals.h"
#if MAC
#include "../../cframe.h"
#include "../../ccolor.h"
#include "macfactory.h"
#includ... | 889 |
724 | <filename>vega/networks/pytorch/customs/modnas/contrib/arch_space/activations/torch.py
"""Torch activation functions."""
import torch.nn
from modnas.registry.arch_space import register
modules = [
'ELU',
'Hardshrink',
'Hardtanh',
'LeakyReLU',
'LogSigmoid',
'PReLU',
'ReLU',
'ReLU6',
... | 276 |
488 | <reponame>maurizioabba/rose
/*!
* \file CPreproc/IfDirectiveContextFinder.cc
*
* \brief Implements a module to determine the '#if' directive
* context surrounding a specified target node.
*/
// tps (01/14/2010) : Switching from rose.h to sage3.
#include "sage3basic.h"
#include "IfDirectiveContextFinder.hh"
// ... | 568 |
778 | <filename>modPrecompiled/test/org/aion/precompiled/encoding/AbiEncoder.java<gh_stars>100-1000
package org.aion.precompiled.encoding;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.concurrent.ThreadSafe;
i... | 1,104 |
1,523 | <filename>fe/src/main/java/org/apache/impala/util/MathUtil.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 this file
// to you u... | 544 |
1,405 | package QQPIM;
public final class ESoftState {
public static final ESoftState ESS_None = new ESoftState(0, 0, "ESS_None");
public static final ESoftState ESS_Offshelf = new ESoftState(1, 1, "ESS_Offshelf");
public static final int _ESS_None = 0;
public static final int _ESS_Offshelf = 1;
static fin... | 636 |
428 | /**
* Copyright 2008 - 2015 The Loon Game Engine 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 appl... | 1,904 |
875 | <reponame>GENGXIANQIU653/jeewx-boot
package com.jeecg.p3.baseApi.util;
import com.alibaba.fastjson.JSONObject;
import org.jeecgframework.p3.base.vo.WeixinDto;
import org.jeecgframework.p3.core.util.WeiXinHttpUtil;
import org.jeecgframework.p3.core.utils.common.StringUtils;
import org.slf4j.Logger;
import org.slf4j.Lo... | 3,409 |
451 | // File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cEqAppui_TerFix_M2CCamBilin.h"
cEqAppui_TerFix_M2CCamBilin::cEqAppui_TerFix_M2CCamBilin():
cElCompiledFonc(2)
{
AddIntRef (cIncIntervale("Bil0_0",3,5));
AddIntRef (cIncIntervale("Bil0_1",7,9));
AddIntRef (cIncIntervale("Bil1_0",5,7));... | 9,851 |
507 | <gh_stars>100-1000
//
// Copyright 2019 Autodesk
//
// 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 l... | 1,927 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.