max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
4,772 | package example.service;
import example.repo.Customer1707Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1707Service {
public Customer1707Service(Customer1707Repository repo) {}
}
| 64 |
3,066 | <reponame>0mp/musikcube<gh_stars>1000+
// MSX computer KSS music file emulator
// Game_Music_Emu $vers
#ifndef KSS_EMU_H
#define KSS_EMU_H
#include "Classic_Emu.h"
#include "Kss_Core.h"
#include "Kss_Scc_Apu.h"
#include "Sms_Apu.h"
#include "Ay_Apu.h"
#include "Opl_Apu.h"
class Kss_Emu : public Classic_Emu {
public:... | 781 |
3,172 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 863 |
866 | <reponame>pablo0722/Commitizen-<gh_stars>100-1000
__version__ = "2.20.0"
| 34 |
1,615 | <filename>MLN-Android/mmui/src/main/java/com/immomo/mmui/ui/LuaScrollViewContainer.java<gh_stars>1000+
/**
* Created by MomoLuaNative.
* Copyright (c) 2020, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE... | 1,777 |
60,067 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <immintrin.h>
#include <qnnpack/q8dwconv.h>
void pytorch_q8dwconv_ukernel_mp8x25__sse2(
... | 26,276 |
5,169 | <gh_stars>1000+
{
"name": "International-iOS",
"version": "0.1.2",
"summary": "iOS国际化",
"description": "iOS国际化,支持的控件有:UILabel",
"homepage": "https://github.com/wangjufan/International-iOS",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"wangjufan": "<EMAIL>"
},
"platforms... | 305 |
852 | <reponame>malbouis/cmssw
#include "CondFormats/BeamSpotObjects/interface/BeamSpotOnlineObjects.h"
#include "CondFormats/DataRecord/interface/BeamSpotObjectsRcd.h"
#include "CondFormats/DataRecord/interface/BeamSpotOnlineHLTObjectsRcd.h"
#include "CondFormats/DataRecord/interface/BeamSpotOnlineLegacyObjectsRcd.h"
#inclu... | 2,713 |
868 | package com.sedmelluq.lava.extensions.youtuberotator.planner;
import com.sedmelluq.lava.extensions.youtuberotator.tools.Tuple;
import com.sedmelluq.lava.extensions.youtuberotator.tools.ip.IpBlock;
import com.sedmelluq.lava.extensions.youtuberotator.tools.ip.Ipv6Block;
import org.apache.http.HttpException;
import org.s... | 1,599 |
339 | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2017.02.06 um 01... | 603 |
1,007 | <reponame>mzule/btrace
{
"android.gui.IGraphicBufferProducer": [
"REQUEST_BUFFER",
"DEQUEUE_BUFFER",
"DETACH_BUFFER",
"DETACH_NEXT_BUFFER",
"ATTACH_BUFFER",
"QUEUE_BUFFER",
"CANCEL_BUFFER",
"QUERY",
"CONNECT",
"DISCONNECT",
"SET_SIDEBAND_STREAM",
"ALLOCATE_BUFFERS",
... | 1,699 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Manage... | 985 |
1,980 | package InvertedIndex.plugin.Function;
import java.util.Set;
/**
* Created by liwei on 6/8/16.
*/
public interface Function {
public Set<String> Process(String input);
public Set<String> Process(Set<String> input);
}
| 77 |
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.
package com.android.webview.chromium;
import android.annotation.TargetApi;
import android.os.Build;
import android.webkit.PacProcessor;
import org.chrom... | 285 |
357 | class _DagreD3Mixin(object):
def _greendd3g(self):
if self._dd3g:
self._dd3g.setNode(
self._name, tooltip=str(self.value()), style="fill: #0f0"
)
def _yellowdd3g(self):
if self._dd3g:
self._dd3g.setNode(
self._name, tooltip=str... | 410 |
903 | <reponame>hesslink111/node-qt
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
*... | 1,616 |
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
*... | 7,355 |
3,984 | {
"name": "element-slot",
"main": "./element-slot",
"description": "Slot in element tree",
"displayName": "Element Slot",
"flag": "alpha",
"version": "1.0.0",
"tags": []
}
| 76 |
341 | {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Site Column Formatting JSON Definition Deployment",
"type": "shell",
"command": "powershell .\\PowerShell\\L... | 358 |
307 | //
//
#if defined(_MSC_VER) && _MSC_VER <= 1920
// work around MSVC 2015 and 2017 compiler bug
// https://bugreports.qt.io/browse/QTBUG-72073
#define QT_NO_FLOAT16_OPERATORS
#endif
#include "QtGraphicsOperations.h"
#include "widgets/renderwidget.h"
#include <QtWidgets/QtWidgets>
#include "FredApplication.h"
na... | 1,862 |
323 | package io.codearte.jfairy;
import io.codearte.jfairy.data.DataMaster;
import io.codearte.jfairy.producer.RandomGenerator;
import io.codearte.jfairy.producer.VATIdentificationNumberProvider;
import io.codearte.jfairy.producer.company.locale.es.EsVATIdentificationNumberProvider;
import io.codearte.jfairy.producer.perso... | 495 |
390 | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, ... | 282 |
9,182 | <filename>Ref/Top/FppConstantsAc.cpp<gh_stars>1000+
// ======================================================================
// \title FppConstantsAc.cpp
// \author Generated by fpp-to-cpp
// \brief cpp file for FPP constants
//
// \copyright
// Copyright (c) 2021 California Institute of Technology.
// U.S. Governme... | 140 |
2,151 | <reponame>zipated/src
// Copyright 2012 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_INFOBARS_CONFIRM_INFOBAR_CONTROLLER_H_
#define IOS_CHROME_BROWSER_INFOBARS_CONFIRM_INFOBAR_CONTROLLER_H_
... | 249 |
772 | <reponame>malliina/scrimage
package com.sksamuel.scrimage.filter;
public enum RippleType {
Sine,
Sawtooth,
Triangle,
Noise
}
| 63 |
4,262 | <reponame>rikvb/camel
/*
* 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
* (th... | 1,921 |
1,647 | <gh_stars>1000+
#ifndef PYTHONIC_INCLUDE_NUMPY__HPP
#define PYTHONIC_INCLUDE_NUMPY__HPP
#endif
| 54 |
407 | <filename>core/src/main/java/com/alibaba/smart/framework/engine/exception/LockException.java
package com.alibaba.smart.framework.engine.exception;
/**
* @author 高海军 帝奇 2016.11.11
*/
public class LockException extends EngineException {
private static final long serialVersionUID = -5576514678329147766L;
p... | 171 |
12,278 | <reponame>rajeev02101987/arangodb<gh_stars>1000+
/*=============================================================================
Copyright (c) 2000-2003 <NAME> and <NAME>
Copyright (c) 2001-2007 <NAME>
Copyright (c) 2011 <NAME>
Copyright (c) 2015 <NAME>
Distributed under the Boost Software License, ... | 170 |
336 | package me.saket.dank.ui.submission;
import android.content.Context;
import android.widget.Toast;
import net.dean.jraw.models.Comment;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import dagger.Lazy;
import me.saket.dank.R;
import me.saket.dank.di.Dank;
import me.saket.dank.reddit... | 1,485 |
6,989 | <reponame>HeyLey/catboost<filename>contrib/libs/clapack/clascl.c
/* clascl.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in ... | 4,738 |
721 | <reponame>asmuth-archive/travistest
/**
* This file is part of the "clip" project
* Copyright (c) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, sof... | 1,674 |
938 | <reponame>LaudateCorpus1/swift-llvm<filename>lib/ProfileData/InstrProfReader.cpp<gh_stars>100-1000
//===- InstrProfReader.cpp - Instrumented profiling reader ----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license informat... | 12,143 |
562 | #include <iostream>
#include <cor3ntin/rangesnext/enumerate.hpp>
namespace rangesnext = cor3ntin::rangesnext;
template <class RangeT>
bool test_enumerate_with(RangeT &&range) {
auto enumerated_range = rangesnext::enumerate(range);
std::size_t idx_ref = 0;
auto it_ref = std::ranges::begin(range);
boo... | 307 |
427 | <filename>SymbolExtractorAndRenamer/swift-integration-tests/example-package-dealer.py
# Test the open source example packages.
#
# REQUIRES: have-network
#
# Make a sandbox dir. If you want to experiment with this test without waiting
# for the clone, disable the first three lines here.
#
# RUN: rm -rf %t.dir
# RUN: m... | 615 |
2,577 | <reponame>mlehotsky13/camunda-bpm-platform
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you ... | 623 |
342 | <gh_stars>100-1000
package com.edlplan.osu.support.slider;
import com.edlplan.andengine.Triangle3DPack;
import com.edlplan.framework.math.line.LinePath;
import org.anddev.andengine.entity.scene.Scene;
import ru.nsu.ccfit.zuev.osu.RGBColor;
public class SliderBody3D extends AbstractSliderBody {
private static f... | 2,497 |
852 | #include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
#include "CommonTools/UtilAlgos/interface/ObjectSelector.h"
#include "C... | 187 |
1,602 | <reponame>kroggen/aergo
/* Generic x86 gmp-mparam.h -- Compiler/machine parameter header file.
Copyright 1991, 1993, 1994, 2000-2002, 2011 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of either:
... | 3,426 |
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 ... | 3,232 |
12,700 | <reponame>brenden7158/v86
/*
* Header for stack related functions
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License version 2.
*/
#ifndef _STACK_H_
#define _STACK_H_
#include <libcflat.h>
#include <asm/stack.h>
#ifdef HAVE_ARCH_BA... | 229 |
4,095 | /*
* Copyright 2011-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/licenses/LICENSE-2.0
*
* Unless required by a... | 1,382 |
460 | #include "../../src/qt3support/tools/q3strlist.h"
| 22 |
1,501 | <reponame>sarvex/tensorflow-quantum
# Copyright 2020 The TensorFlow Quantum 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/license... | 22,233 |
2,085 | def test():
assert Doc.has_extension("has_number"), "Você registrou a extensão no doc?"
ext = Doc.get_extension("has_number")
assert ext[2] is not None, "Você definiu o getter corretamente?"
assert (
"getter=get_has_number" in __solution__
), "Você atribuiu a função get_has_number como a fun... | 224 |
677 | /*
* Copyright (C) 2012, 2014-2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list... | 3,161 |
22,688 | /******************************************************************************
* Copyright 2018 The Apollo 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
... | 921 |
2,583 | package org.altbeacon.beacon.utils;
import android.annotation.TargetApi;
import android.os.Build;
import android.util.Base64;
import android.util.Log;
import org.altbeacon.beacon.Beacon;
import org.altbeacon.beacon.BeaconParser;
/**
* Utility class for working beacons that include Eddystone-TLM (telemetry) informat... | 1,127 |
6,989 | #!/usr/bin/env python
import os.path
import config
import experiment_lib
import catboost as cb
class CatBoostExperimentEarlyStopping(experiment_lib.ExperimentEarlyStopping):
def __init__(self, **kwargs):
super(CatBoostExperimentEarlyStopping, self).__init__(**kwargs)
def get_estimator(self, cat_c... | 496 |
799 | import demistomock as demisto
import OnboardingIntegration
def test_frequency(mocker):
mocker.patch.object(demisto, 'params',
return_value={'frequency': '1'})
mocker.patch.object(demisto, 'command',
return_value='fetch-incidents')
mocker.patch.object(demisto... | 336 |
652 | <filename>src/uhs/atomizer/sentinel/server.hpp
// Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef OPENCBDC_TX_SRC_S... | 539 |
348 | {"nom":"Saint-Pierre-de-Cernières","circ":"3ème circonscription","dpt":"Eure","inscrits":177,"abs":93,"votants":84,"blancs":1,"nuls":4,"exp":79,"res":[{"nuance":"MDM","nom":"<NAME>","voix":52},{"nuance":"FN","nom":"M. <NAME>","voix":27}]} | 99 |
445 | /////////////////////////////////////////////////////////////////////////
// $Id: soundosx.h,v 1.2 2008/01/26 22:24:02 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
// This file (SOUNDOSX.H) written and donated by <NAME>
#ifdef macintosh
#include "bochs.h"
// Do not inclu... | 829 |
583 | <gh_stars>100-1000
#pragma once
#include <string>
#include <cstdint>
// sizeof(Address) should always be sizeof(void*).
class Address {
public:
Address();
Address(void* ptr);
Address(uintptr_t addr);
void set(void* ptr) {
m_ptr = ptr;
}
template <typename T>
Address get(T offset)... | 724 |
374 | <reponame>DatabasesWorks/passiflora-symphytum-configurable-fields<filename>widgets/field_widgets/numberfieldwizard.cpp
/*
* Copyright (c) 2012 <NAME> <<EMAIL>>
*/
//-----------------------------------------------------------------------------
// Hearders
//-----------------------------------------------------------... | 1,671 |
647 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 2,061 |
1,184 | #include <stdio.h>
#include <math.h>
#define N 1000000
void sieve(int *numbers){
int limit = (int)floor(sqrt(N));
int i;
for(i = 2; i <= limit; i++){
int j, k;
j = k = 0;
while(1){
j = ((int)pow(i, 2)) + (k++ * i);
if(j <= N){
numbers[j] = 0... | 700 |
852 | <gh_stars>100-1000
#include <string.h>
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <set>
#include "EventFilter/CSCTFRawToDigi/src/CSCTFEvent.cc"
#include "EventFilter/CSCTFRawToDigi/src/CSCSPEvent.cc"
#include "EventFilter/CSCTFRawToDigi/src/CSCSPRecord.cc"
#include "IORawData/CSCCommissioning/sr... | 1,714 |
9,255 | <reponame>wxj978566042/VirtualAPK_Origin<filename>CoreLibrary/src/main/java/com/didi/virtualapk/internal/PluginContentResolver.java
/*
* Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not... | 1,436 |
1,188 | package com.javadeobfuscator.deobfuscator.executor.defined.types;
import com.javadeobfuscator.deobfuscator.executor.Context;
import com.javadeobfuscator.deobfuscator.executor.values.*;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.MethodNode;
import com.javadeobfuscator.deobfuscator.utils.PrimitiveUtil... | 1,526 |
1,350 | <filename>sdk/keyvault/microsoft-azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/AsymmetricEncryptionAlgorithm.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.keyvault.cryptography;
impo... | 1,056 |
543 | package com.riiablo.serializer;
import android.support.annotation.NonNull;
public enum IntegerStringSerializer implements StringSerializer<Integer> {
INSTANCE;
@Override
@NonNull
public String serialize(@NonNull Integer obj) {
return obj.toString();
}
@Override
@NonNull
public Integer deserializ... | 161 |
391 | <filename>src/m_utils/time_out.py
"""
Timeout feature from stackoverflow.
usage:
try:
with timeout ( seconds=5 ):
# Do some thing
except Exception, e:
#hadnle run time exception for timeout
"""
import signal
class timeout:
def __init__(self, seconds=1, error_message='Timeout'):... | 274 |
2,539 | /*
LZ5 HC - High Compression Mode of LZ5
Copyright (C) 2011-2015, <NAME>.
Copyright (C) 2015, <NAME> <<EMAIL>>
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that ... | 35,125 |
560 | /*
* Copyright (c) 2015 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.settings.info;
import androidx.appcompat.app.AppCompatDelegate;
import me.zhanghai.android.douya.R;
import me.zhanghai.android.douya.settings.info.SettingsEntries.*;
public interface Settings {
StringSetting... | 1,578 |
343 | #include "stdafx.h"
RH_C_FUNCTION void ON_Xform_Scale( ON_Xform* xf, const ON_PLANE_STRUCT* plane, double xFactor, double yFactor, double zFactor )
{
if( xf && plane )
{
ON_Plane temp = FromPlaneStruct(*plane);
*xf = ON_Xform::ScaleTransformation(temp, xFactor, yFactor, zFactor);
}
}
RH_C_FUNCTION void ... | 6,028 |
302 | <filename>ChromeWorker/converter.cpp
#include "converter.h"
#include <regex>
std::string ws2s(const std::wstring& wstr)
{
typedef std::codecvt_utf8<wchar_t> convert_typeX;
std::wstring_convert<convert_typeX, wchar_t> converterX;
return converterX.to_bytes(wstr);
}
std::wstring s2ws(const std::string& str... | 206 |
819 | /*
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 951 |
1,232 | /*-
* <<
* DBus
* ==
* Copyright (C) 2016 - 2019 Bridata
* ==
* 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... | 3,018 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedsource.exceptions;
/**
*
* @author <NAME> <<EMAIL>>
*/
public class Bucket {
String userId;
public Bucket(String userId) {... | 164 |
2,313 | <filename>src/core/NEON/kernels/arm_gemm/transforms/a64_transpose_interleave_12_2x4.hpp
/*
* Copyright (c) 2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
... | 10,169 |
435 | <gh_stars>100-1000
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "According to industry surveys [1], the number one hassle of data\nscientists is cleaning the data to analyze it. Textbook statistical\nmodeling is sufficient for noisy signals, but errors of a discrete\nna... | 901 |
343 | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 1,205 |
3,542 | /*
* Copyright 2018 YCSB Contributors. 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 appl... | 3,554 |
486 | package jflex.maven.plugin.testsuite;
import com.google.common.base.Joiner;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.InvocationTargetException;
import java.lang.refl... | 2,262 |
4,012 | <gh_stars>1000+
/*
*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 387 |
533 | <reponame>thejprasadi/Sinhala-Text-To_Speech
import argparse
import tensorflow as tf
from synthesizer import Synthesizer
from models import create_model
from hparams import hparams, hparams_debug_string
from util import audio
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
... | 788 |
3,301 | <filename>core/src/main/java/com/alibaba/alink/operator/common/recommendation/AlsModelInfo.java
package com.alibaba.alink.operator.common.recommendation;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.operator.common.clustering.RecommendationModelInfo;
import com.alibaba.alink.operator.com... | 688 |
1,590 | {
"title": "Create data export Event Hub destination",
"description": "Create an Event hub destination with an Id.",
"parameters": {
"baseDomain": "azureiotcentral.com",
"subdomain": "appsubdomain",
"destinationId": "destination1",
"api-version": "1.1-preview",
"body": {
"displayName": "... | 442 |
335 | /*
* Copyright 2019-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/licenses/LICENSE-2.0
*
* Unless required by ap... | 707 |
448 | <filename>src/test/java/com/googlecode/concurrentlinkedhashmap/generator/UniformIntegerGenerator.java
/**
* Copyright (c) 2010 Yahoo! 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 obtai... | 563 |
2,268 | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef C_IMPACT_EFFECTS_H
#define C_IMPACT_EFFECTS_H
#ifdef _WIN32
#pragma once
#endif
#include "tier0/memdbgon.h"
//---------------------... | 1,003 |
5,133 | <reponame>Saljack/mapstruct
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.nestedbeans.unmappable;
import java.util.List;
public class CarDto {
private String name;
private int y... | 312 |
632 | <filename>src/dictionary/ion_master_table.h
/******************************************************************************/
/**
@file ion_master_table.h
@author <NAME>, <NAME>, <NAME>, <NAME>
@brief Master table API.
@details At compile time, the master table is either used, OR it is not
included at all. The dir... | 3,340 |
703 | #include <FoundationTest/FoundationTestPCH.h>
#include <Foundation/Configuration/CVar.h>
ezCVarInt CVar_TestPlugin1InitializedCount("TestPlugin1InitCount", 0, ezCVarFlags::None, "How often Plugin1 has been initialized.");
ezCVarInt CVar_TestPlugin1UninitializedCount("TestPlugin1UninitCount", 0, ezCVarFlags::None, "Ho... | 1,083 |
348 | <filename>docs/data/leg-t2/017/01705411.json
{"nom":"Saint-Trojan-les-Bains","circ":"5ème circonscription","dpt":"Charente-Maritime","inscrits":1135,"abs":621,"votants":514,"blancs":45,"nuls":16,"exp":453,"res":[{"nuance":"LR","nom":"<NAME>","voix":249},{"nuance":"DIV","nom":"<NAME>","voix":204}]} | 121 |
2,833 | #!/usr/bin/env python
from getpass import getpass
from pprint import pprint
from netmiko import ConnectHandler
device = {
"device_type": "cisco_ios",
"host": "cisco1.lasthop.io",
"username": "pyclass",
"password": getpass(),
}
with ConnectHandler(**device) as net_connect:
output = net_connect.send... | 145 |
848 | {
"kernel_name": "opticalFlowOpenCV",
"description": "Run OpenCV's Optical Flow algorithm on pair of images",
"kernel_type": "cpp",
"device_type": "cpu",
"kernel_lib" : "libs/libOpticalFlowOpenCV.so",
"num_cu": 12,
"param_list" : {
"of_algorithm": {"type": "string"}
}
}
| 127 |
2,392 | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2016 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.... | 2,640 |
8,586 | <filename>src/common/fs/test/TempFileTest.cpp
/* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include <gtest/gtest.h>
#include "common/base/Base.h"
#include "common/fs/TempFile.h"
namespace nebula {
namespace fs {
TEST(TempFile, Basic) {
// ... | 746 |
348 | <reponame>mikiec84/ichnaea<gh_stars>100-1000
from datetime import timedelta
from ichnaea.api.locate.constants import DataSource, MAX_WIFIS_IN_CLUSTER
from ichnaea.api.locate.score import station_score
from ichnaea.api.locate.source import PositionSource
from ichnaea.api.locate.tests.base import BaseSourceTest
from ich... | 5,077 |
645 | // Copyright 2012 Viewfinder. All rights reserved.
// Author: <NAME>.
#ifndef VIEWFINDER_SERVER_UTILS_H
#define VIEWFINDER_SERVER_UTILS_H
#import "JsonUtils.h"
#import "Server.pb.h"
bool IsS3RequestTimeout(int status, const Slice& data);
string EncodeAssetKey(const Slice& url, const Slice& fingerprint);
bool Decode... | 524 |
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.
#ifndef IOS_CHROME_BROWSER_UI_COMMANDS_SNACKBAR_COMMANDS_H_
#define IOS_CHROME_BROWSER_UI_COMMANDS_SNACKBAR_COMMANDS_H_
#import <Foundation/Foundation.h>... | 216 |
10,016 | <reponame>eas5/zaproxy
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | 1,371 |
1,340 | <filename>Sources/MetalPetalObjectiveC/include/MTIContext+Internal.h
//
// MTIContext+Internal.h
// MetalPetal
//
// Created by <NAME> on 07/01/2018.
//
#import <Metal/Metal.h>
#import <MetalKit/MetalKit.h>
#import <CoreImage/CoreImage.h>
#import <CoreVideo/CoreVideo.h>
#if __has_include(<MetalPetal/MetalPetal.h>)
... | 1,045 |
2,338 | <filename>clang-tools-extra/test/modularize/Inputs/MissingHeader/Level1A.h
#define MACRO_1A 1
| 37 |
708 | <filename>source/usb/cdc/usbd_core_cdc.c
/**
* @file usbd_core_cdc.c
* @brief Communication Device Class driver
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License")... | 2,876 |
3,100 | <reponame>cloudhaacker/xenia
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 <NAME>. All rights reserved. ... | 1,779 |
2,151 | <reponame>russjohnson09/sdl_core
/* 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.... | 4,403 |
675 | <gh_stars>100-1000
"""
# Test pdpbox for regression problem
### dataset: Kaggle Rossmann store dataset
"""
import pandas as pd
import numpy as np
import sys
sys.path.insert(0, "../../")
from pdpbox import pdp, get_dataset
"""
## get dataset
"""
test_ross = get_dataset.ross()
ross_data = test_ross["data"]
ross_feat... | 986 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.