max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
589 | <filename>inspectit.agent.java/src/test/java/rocks/inspectit/agent/java/instrumentation/asm/ClassAnalyzerTest.java
package rocks.inspectit.agent.java.instrumentation.asm;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.equalTo;
import ... | 4,764 |
457 | // Copyright 2011-2020, Molecular Matters GmbH <<EMAIL>>
// See LICENSE.txt for licensing details (2-clause BSD License: https://opensource.org/licenses/BSD-2-Clause)
#include "PsdPch.h"
#include "PsdBlendMode.h"
#include "PsdKey.h"
PSD_NAMESPACE_BEGIN
namespace blendMode
{
// -----------------------... | 1,656 |
1,056 | <filename>ide/lexer/src/org/netbeans/spi/lexer/TokenFactory.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 y... | 3,094 |
575 | import argparse
import sys
import yaml
def get_argparse():
desc = "Emulation Plan Placeholder Substitution Script"
argparser = argparse.ArgumentParser(description=desc)
argparser.add_argument(
"document",
type=str,
help="Path to README.md file containing placeholder variables."
... | 724 |
3,215 | [{"type":"reply","destination_ip":"127.0.0.1","sent_bytes":56,"pattern":null,"timestamp":1595037214.261953,"response_bytes":64,"response_ip":"127.0.0.1","icmp_seq":1,"ttl":64,"time_ms":0.041,"duplicate":false},{"type":"reply","destination_ip":"127.0.0.1","sent_bytes":56,"pattern":null,"timestamp":1595037215.264798,"res... | 1,781 |
1,738 | <reponame>jeikabu/lumberyard<filename>dev/Code/Sandbox/Editor/AI/AI_DebugTool.cpp
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this... | 3,276 |
2,023 | RegObj.dll is an ActiveX server--and, hence, has an automation interface--that is available with documentation in
the distribution file known as RegObji.exe, from the following page:
http://msdn.microsoft.com/vbasic/downloads/addins.asp
To provide early binding for RegObj use
>>> from win32com.client impo... | 338 |
364 | <reponame>matus-chochlik/oglplus
/**
* @file oglplus/imports/blend_file/reader.hpp
* @brief Helper class for .blend file import basic input operations
*
* @author <NAME>
*
* Copyright 2010-2019 <NAME>. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or... | 841 |
382 | <filename>clouddriver-aws/src/main/java/com/netflix/spinnaker/clouddriver/aws/model/AmazonCloudFormationChangeSet.java
/*
* Copyright (c) 2019 Adevinta.
*
* 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 t... | 400 |
6,989 | <reponame>ibr11/catboost
#pragma once
#include "types.h"
#include <util/generic/array_ref.h>
#include <util/generic/vector.h>
#include <util/generic/bitops.h>
namespace NTextProcessing::NDictionary {
constexpr ui32 MAX_BUCKET_SEARCH_STEPS = 1000;
constexpr ui64 MAX_SEED_CHOICE_COUNT = 10;
struct TBucket... | 1,224 |
887 | <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 "... | 567 |
453 | <filename>lib/jxl/convolve.h
// Copyright (c) the JPEG XL 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.
#ifndef LIB_JXL_CONVOLVE_H_
#define LIB_JXL_CONVOLVE_H_
// 2D convolution.
#include <stddef.h>
#include <stdint.h>... | 1,922 |
1,428 | <reponame>kennethsequeira/Hello-world
#include<stdio.h>
#include<conio.h>
void main()
{
printf("HELLO ALIEN HELLO WORLD");
getch();
}
| 59 |
2,151 | <reponame>Keneral/ae1
/* Copyright (C) 2001, 2002, 2003, 2005, 2006, 2008, 2009 Red Hat, Inc.
This file is part of elfutils.
Written by <NAME> <<EMAIL>>, 2001.
This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | 11,349 |
1,863 | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 22,110 |
2,659 | <gh_stars>1000+
package com._4paradigm.openmldb.batch.utils;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Iterator;
/**
* Print the data in the result set into a table
*/
public class ResultSetUtil {
public static void p... | 1,347 |
5,169 | {
"name": "IDAlert",
"version": "3.1.0",
"summary": "IDAlert: یه سری کارا روی آلرتکنترلر کردم که استفادهاش رو برای زبان پارسی بهتر و قشنگتر و بهینهتر کنه.",
"description": "IDAlert: یه سری کارا روی آلرتکنترلر کردم که استفادهاش رو برای زبان پارسی بهتر و قشنگتر و بهینهتر کنه.",
"homepage": "https://gith... | 491 |
674 | package com.codeforvictory.superimageview.samples.superimageview.rounded_corners;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bumptech.glide.Glide;
import com.codeforvictory.android.superimageview.SuperImageView;
import com.codeforvictory.superimageview.samp... | 660 |
319 | /**
* This source code file is part of a direct port of <NAME>'s implementation
* of a Kanade-Lucas-Tomasi feature tracker. The original implementation can be found
* here: http://www.ces.clemson.edu/~stb/klt/
*
* As per the original code, the source code is in the public domain, available
* for both commercial a... | 2,447 |
462 | package org.intellij.sequencer.ui;
import com.intellij.ui.Gray;
import com.intellij.ui.JBColor;
import com.intellij.ui.LightColors;
import com.intellij.util.ui.UIUtil;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.plaf.basic.BasicScrollBarUI;
import java.awt.*;
/**
* © <EMAIL>
... | 3,100 |
1,545 | <filename>tsai/optuna.py
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/200_optuna.ipynb (unless otherwise specified).
__all__ = ['run_optuna_study']
# Cell
from pathlib import Path
from fastcore.script import *
import joblib
from .imports import *
from importlib import import_module
import warnings
warnings.filterw... | 2,638 |
2,023 | <filename>recipes/Python/576841_biersouppy_small_example/recipe-576841.py
#!/usr/bin/env python
""" bier-soup.py: html tables -> text, a small example of BeautifulSoup
in: url or file like those in www.bier1.de
out:
1 Adldorf <NAME> Graf ?
...
"""
# <NAME>: Think global, drink regional
# (a general h... | 1,359 |
1,755 | <reponame>forestGzh/VTK<filename>Utilities/Maintenance/VTKTestsByLanguage.py
#!/usr/bin/env python
'''
This program takes one mandatory parameter, the VTK base folder, and up to
four optional parameters corresponding to the names of the testing language
subfolders, e.g Cxx, Python, and, possibly, an optional print op... | 8,302 |
317 | <gh_stars>100-1000
/*
* Copyright 2013 NGDATA nv
*
* 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 ... | 4,293 |
432 | /* $NetBSD: hack.terminfo.c,v 1.2 2011/10/03 12:32:28 roy Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
* Amsterdam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 2,789 |
3,218 | #!/usr/bin/env python3
from multiprocessing.dummy import Pool
from vosk import Model, KaldiRecognizer
import sys
import os
import wave
import json
model = Model("model")
def recognize(line):
uid, fn = line.split()
wf = wave.open(fn, "rb")
rec = KaldiRecognizer(model, wf.getframerate())
text = ""
... | 338 |
342 | /*
* tkTreeStyle.c --
*
* This module implements styles for treectrl widgets.
*
* Copyright (c) 2002-2011 <NAME>
*/
#include "tkTreeCtrl.h"
#include "tkTreeElem.h"
/* This is the roundUp argument to TreeAlloc_CAlloc. */
#define ELEMENT_LINK_ROUND 1
/* Define this for performance gain and increased memory usage... | 87,919 |
1,558 | {
"author": "Microsoft Community",
"name": "App Config",
"description": "Projeye boş bir App.config dosyası ekler.",
"identity": "ts.Feat.AppDotConfig"
} | 64 |
806 | <filename>killers/nokia/com.evenwell.powersaving.g3/sources/com/evenwell/powersaving/g3/utils/PSConst.java<gh_stars>100-1000
package com.evenwell.powersaving.g3.utils;
public final class PSConst {
public static final int ONOFF_BASE = 0;
public static final class COMMON {
public static final class INT... | 11,978 |
2,538 | <filename>intro/numpy/solutions/2_5_markov_chain.py
import numpy as np
np.random.seed(1234)
n_states = 5
n_steps = 50
tolerance = 1e-5
# Random transition matrix and state vector
P = np.random.rand(n_states, n_states)
p = np.random.rand(n_states)
# Normalize rows in P
P /= P.sum(axis=1)[:,np.newaxis]
# Normalize p... | 339 |
341 | # The distance from each stations to the Eiffel Tower
dist_eiffel = stations.distance(eiffel_tower) | 29 |
1,168 | <reponame>java-tools/zt-zip<gh_stars>1000+
package org.zeroturnaround.zip;
/**
* This class holds POSIX file permissions.
*
* @author <NAME>
*/
class ZTFilePermissions {
private boolean isDirectory;
private boolean ownerCanRead;
private boolean ownerCanWrite;
private boolean ownerCanExecute;
private b... | 691 |
469 | <gh_stars>100-1000
{
"message": "Il sito è in fase di manutenzione e sarà presto ripristinato. Grazie per la pazienza.",
"title": "Torneremo presto"
} | 68 |
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 ... | 1,526 |
763 | <filename>projects/batfish/src/main/java/org/batfish/representation/cisco_nxos/RouteMapSet.java
package org.batfish.representation.cisco_nxos;
import java.io.Serializable;
/** A set statement of a {@link RouteMapEntry}. */
public interface RouteMapSet extends Serializable {
<T> T accept(RouteMapSetVisitor<T> visit... | 108 |
1,338 | <gh_stars>1000+
/*
* Copyright (c) 2003 <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, copy, modify, mer... | 1,076 |
1,037 | /*
* Copyright (C) 2013 <NAME>, halfbit.de
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file kt 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 ... | 10,119 |
2,151 | /*
* Copyright (C) 2010 Google Inc. All rights reserved.
* Copyright (C) 2012 Intel 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:
*
* * Redistributions of source code must retai... | 12,066 |
1,939 | <reponame>Kinway050/bk-ci
package com.tencent.bk.codecc.defect.service.impl.pipelinereport;
import com.tencent.bk.codecc.defect.dao.mongorepository.CLOCStatisticRepository;
import com.tencent.bk.codecc.defect.model.CLOCStatisticEntity;
import com.tencent.bk.codecc.defect.model.pipelinereport.ClocSnapShotEntity;
import... | 2,151 |
3,428 | <reponame>ghalimi/stdlib
{"id":"00290","group":"easy-ham-2","checksum":{"type":"MD5","value":"2b079837bffa2f0dea4003cf99bc36e0"},"text":"From <EMAIL> Thu Aug 8 14:12:19 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc... | 1,063 |
348 | {"nom":"Harly","circ":"2ème circonscription","dpt":"Aisne","inscrits":1140,"abs":577,"votants":563,"blancs":30,"nuls":14,"exp":519,"res":[{"nuance":"LR","nom":"<NAME>","voix":331},{"nuance":"FN","nom":"Mme <NAME>","voix":188}]} | 91 |
539 | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | 6,763 |
2,151 | package com.android.hotspot2.osu;
public enum OSUMessageType {
PostDevData, ExchangeComplete, GetCertificate, Error
}
| 40 |
14,668 | <filename>sandbox/linux/syscall_broker/broker_sandbox_config.h
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SANDBOX_LINUX_SYSCALL_BROKER_BROKER_SANDBOX_CONFIG_H_
#define SANDBOX_LINUX_SYSCALL... | 583 |
2,112 | /*
* 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 required by applic... | 1,732 |
1,013 | <reponame>JosephChataignon/pyclustering
/*!
@authors <NAME> (<EMAIL>)
@date 2014-2020
@copyright BSD-3-Clause
*/
/*
@brief This is a build verification test (smoke test) that checks possibility to use the library as a shared library by calling one of the functions.
@return `0` if the build verification test p... | 1,889 |
1,392 | <reponame>treatwell/docker-maven-plugin<gh_stars>1000+
package io.fabric8.maven.docker.config.handler.property;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class PropertyModeTest {
@Test(expected = IllegalArgumentException.class)
public void testInvalidEmpty() {
Proper... | 271 |
634 | <filename>mailbox/api/src/main/java/org/apache/james/mailbox/acl/UnionMailboxACLResolver.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... | 5,830 |
1,105 | <reponame>chiu0602/fastapi-react
#!/usr/bin/env python3
from app.db.session import get_db
from app.db.crud import create_user
from app.db.schemas import UserCreate
from app.db.session import SessionLocal
def init() -> None:
db = SessionLocal()
create_user(
db,
UserCreate(
email="... | 263 |
631 | import unittest
# class Test_IBMQconfig(unittest.TestCase):
# def test_ibmqconfig(self):
# APItoken = '<KEY>'
#
# config = {
# 'url': 'https://auth.quantum-computing.ibm.com/api'
# }
#
# if __name__ == '__main__':
# unittest.main(verbosity=2)
APItoken = '<KEY>'
config = {... | 186 |
775 | <filename>SampleEncodeMultiThread.py
#
# Copyright 2020 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 require... | 2,159 |
416 | <reponame>tjachmann/visionaray<filename>include/visionaray/detail/ambient_light.inl<gh_stars>100-1000
// This file is distributed under the MIT license.
// See the LICENSE file for details.
namespace visionaray
{
template <typename T>
template <typename U>
VSNRAY_FUNC vector<3, U> ambient_light<T>::intensity(vector<3... | 253 |
3,518 | <gh_stars>1000+
{
"navigationBarTitleText": "ActionSheet",
"usingComponents": {
"wux-button": "../../dist/button/index",
"wux-actionsheet": "../../dist/actionsheet/index"
}
} | 90 |
357 | /*
* Copyright (c) 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 ... | 816 |
422 | <gh_stars>100-1000
import multiprocessing
from allmodels.DubboTask import DubboTask
from core.decorator.normal_functions import *
from core.const.Do import *
from service.DubboService import DubboService
from core.config.InitConfig import isClusterConf
class DubboTaskProgress(multiprocessing.Process):
def __init_... | 813 |
376 | #!/usr/bin/env python
from glob import glob
import os
import html_py_ever
import pytest
from bs4 import BeautifulSoup
HTML_FILES = glob(os.path.join(os.path.dirname(__file__), "*.html"))
@pytest.mark.parametrize("filename", HTML_FILES)
def test_bench_selector_rust(benchmark, filename):
document = html_py_ever.... | 230 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMSMBaseViewController.h"
#import "MMSafeModeMgrExt.h"
@class MMActivityIndicator, NSString, UIButton, UILabel;
@interface MMSMClearDataViewController : MMSMBaseViewController... | 390 |
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 ... | 724 |
6,989 | <reponame>jochenater/catboost
#include <library/cpp/testing/benchmark/bench.h>
#include <util/random/entropy.h>
#include <util/random/fast.h>
#include <util/random/normal.h>
#include <util/random/mersenne.h>
#include <util/system/compiler.h>
#include <util/generic/xrange.h>
#include <random>
// double part
Y_CPU_BEN... | 1,483 |
335 | {
"word": "Nauseating",
"definitions": [
"Causing or liable to cause a feeling of nausea or disgust; disgusting."
],
"parts-of-speech": "Adjective"
} | 69 |
11,699 | #include "taichi/backends/opengl/opengl_utils.h"
#include "glad/gl.h"
namespace taichi {
namespace lang {
namespace opengl {
uint32_t to_gl_dtype_enum(DataType dt) {
if (dt == PrimitiveType::u64) {
return GL_UNSIGNED_INT64_ARB;
} else if (dt == PrimitiveType::i64) {
return GL_INT64_ARB;
} else if (dt ==... | 392 |
1,403 | /*
* Interface.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#include <LLGL/Interface.h>
#include <LLGL/RenderSystem.h>
#include <LLGL/Window.h>
#include <LLGL/Canvas.h>
#include <LLGL/Input.h>
#include <LLGL/Timer.h>
#include ... | 1,290 |
401 | <gh_stars>100-1000
{
"changes": [
{
"packageName": "@itwin/core-common",
"comment": "Generalize the way to attach a reality data by adding a RealityDataSourceKey to ContextRealityModelProps",
"type": "none"
}
],
"packageName": "@itwin/core-common"
} | 109 |
590 | <reponame>omartrigui/kubernetes-on-aws<filename>test/e2e/toggle-scaledown.py
#!/usr/bin/env python3
import argparse
import json
import subprocess
def toggle_scaledown(enabled):
current = json.loads(
subprocess.check_output(
["kubectl", "get", "daemonset", "-o", "json", "-n", "kube-system", "ku... | 993 |
828 | <filename>hasor-rsf/rsf-framework/src/main/java/net/hasor/rsf/utils/ByteStringCachelUtils.java<gh_stars>100-1000
/*
* Copyright 2008-2009 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 ... | 2,596 |
425 | package com.instana.robotshop.shipping;
import java.util.List;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface CodeRepository extends PagingAndSortingRepository<Code, Long> {
Iterable<Code> findAll();
Code findById(long id);
}
| 91 |
313 | {"status_id":2014079357026304,"text":"Tuhpoj jag vesfib un gen uv za ulbe avafa si gaf tohider sa wu cez. #alaew","user":{"user_id":2221779382697984,"name":"<NAME>","screen_name":"@jopotido","created_at":1426491974,"followers_count":24,"friends_count":21,"favourites_count":29},"created_at":1105714727,"favorite_count":... | 169 |
997 | <filename>crypto_kem/ntrulpr761/clean/crypto_sort_uint32.h
#ifndef PQCLEAN_NTRULPR761_CLEAN_CRYPTO_SORT_UINT32_H
#define PQCLEAN_NTRULPR761_CLEAN_CRYPTO_SORT_UINT32_H
#include <stdint.h>
#define PQCLEAN_NTRULPR761_CLEAN_crypto_sort_uint32_BYTES 4
void PQCLEAN_NTRULPR761_CLEAN_crypto_sort_uint32(void *array, long long... | 167 |
337 | <reponame>francescomessina/polycube<gh_stars>100-1000
/**
* iptables API
* iptables API generated from iptables.yang
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/polycube-network/swagger-codegen.git
* branch polycube
*/
/* Do not ed... | 901 |
988 | <reponame>oyarzun/incubator-netbeans<filename>profiler/lib.profiler.ui/src/org/netbeans/lib/profiler/ui/cpu/DiffFlatProfilePanel.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
... | 1,734 |
2,945 | <filename>iddd_common/src/main/java/com/saasovation/common/port/adapter/persistence/ConnectionProvider.java
// 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 Lice... | 913 |
348 | {"nom":"Rurey","circ":"1ère circonscription","dpt":"Doubs","inscrits":224,"abs":127,"votants":97,"blancs":10,"nuls":2,"exp":85,"res":[{"nuance":"REM","nom":"<NAME>","voix":52},{"nuance":"SOC","nom":"Mme <NAME>","voix":33}]} | 90 |
1,139 | <gh_stars>1000+
package com.journaldev.jaxws.service;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.Endpoint;
@WebService
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
public class TestService {
@WebMethod
public String sayHello(String msg){
re... | 177 |
4,772 | package example.repo;
import example.model.Customer1824;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1824Repository extends CrudRepository<Customer1824, Long> {
List<Customer1824> findByLastName(String lastName);
}
| 87 |
12,278 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 12,896 |
5,169 | {
"name": "MapsAPI",
"version": "0.0.1",
"summary": "Allows to easily add Yandex.Maps to your existing iOS project using Yandex.Maps JavaScript API",
"description": "Allows to easily add Yandex.Maps to your existing iOS project using Yandex.Maps JavaScript API",
"homepage": "https://github.com/yandex/mapsapi-... | 534 |
16,461 | /*
* Copyright (c) 2015-present, Horcrux.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
package abi43_0_0.host.exp.exponent.modules.api.components.svg;
import android.content.res.Resources;
import an... | 4,010 |
506 | <filename>kattis/almostperfect.cc<gh_stars>100-1000
// https://open.kattis.com/problems/almostperfect
#include <iostream>
#include <sstream>
#include <unordered_set>
#include <vector>
using namespace std;
typedef unordered_set<int> si;
typedef vector<int> vi;
typedef vector<si> vsi;
void primes(vi &p) {
p.push_back... | 658 |
1,501 | #ifndef __COMPLETE_H__
#define __COMPLETE_H__
int complete(char *instr, char **outstr);
#endif
| 39 |
3,263 | #import <Mantle/Mantle.h>
#import "ARAppConstants.h"
#import "Sale.h"
#import "Bidder.h"
#import "BidderPosition.h"
#import "Bid.h"
#import "ARAppConstants.h"
@class Artwork;
typedef NS_ENUM(NSInteger, ARReserveStatus) {
ARReserveStatusNoReserve,
ARReserveStatusReserveNotMet,
ARReserveStatusReserveMet,
... | 727 |
456 | <filename>lib/djvMath/Math.h<gh_stars>100-1000
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
#pragma once
#include <djvCore/Core.h>
#include <vector>
#include <stddef.h>
namespace djv
{
//! Math functionality.
namespace Math
{
//! Approximate... | 1,312 |
2,269 | <reponame>Gizallina898/nar
/*
* Copyright 2019. Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 1,798 |
1,451 | package tech.linjiang.pandora.preference;
import android.content.Context;
import android.os.Build;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import tech.linjiang.pandora.preference.protocol.IProvider;
/**
* Created by linjiang on 04/06/2018.
*/
public class SharedPrefProvider implem... | 446 |
2,748 | /*
* 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 ... | 924 |
346 | import unittest
import subprocess
import os
import sys
import re
_container_image=None
class TestGPUSupport(unittest.TestCase):
"""
These tests verify that the GPU resources and configurations (device files,
libraries and value of LD_LIBRARY_PATH) are correctly set inside the container.
"""
_GPU... | 4,044 |
14,668 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_METRICS_PERF_COLLECTION_PARAMS_H_
#define CHROME_BROWSER_METRICS_PERF_COLLECTION_PARAMS_H_
#include <stdint.h>
#include "base/tim... | 399 |
318 | VERSION = (0, 0, '2b')
def get_version():
return '.'.join([str(v) for v in VERSION])
__version__ = get_version()
| 49 |
407 | <filename>src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableSchemaMessage.java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TableSchemaMessage.proto
package org.apache.hadoop.hbase.rest.protobuf.generated;
public final class TableSchemaMessage {
private TableSchemaMessage(... | 29,289 |
3,084 | <filename>biometrics/adapters/sensor_adapter/SensorAdapter.cpp
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyr... | 4,548 |
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.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 2,259 |
741 | <reponame>booostark/bopufeng-mall
package com.qingshop.mall.modules.mall.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingshop.mall.modules.mall.entity.MallGoods;
/**
* 商品基本信息表 Mapper 接口
*/
public interface MallGoodsMapper extends BaseMapper<MallGoods> {
}
| 138 |
320 | <filename>aliyun-spring-boot-starters/aliyun-fc-spring-boot-starter/src/main/java/com/alibaba/cloud/spring/boot/fc/AbstractAliyunFCInvoker.java
/*
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | 2,509 |
3,645 | <filename>SmallVideoLib2/src/main/java/com/mabeijianxi/smallvideorecord2/MediaRecorderNative.java
package com.mabeijianxi.smallvideorecord2;
import android.hardware.Camera;
import android.media.MediaRecorder;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import com.mabeijianxi.smallvid... | 2,228 |
897 | <filename>C-Plus-Plus/math/Smallest_divisible_number.cpp
//Given a number n find the smallest number evenly divisible by each number 1 to n.
#include<bits/stdc++.h>
using namespace std;
// Function returns the gcd of first n numbers
long long gcd(long long a,long long b )
{
if (a == 0)
return b;
re... | 381 |
626 | <filename>deepnet/soft_transfer_edge.py
from edge import *
class SoftTransferEdge(Edge):
@classmethod
def IsEdgeType(cls, proto):
return proto.hyperparams.soft_shared_prior
def InitializeSoftWeights(self, superclasses):
numsuperclasses = superclasses.max() + 1
numclasses = len(superclasses)
sw ... | 1,030 |
937 | from django import forms
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
from django.urls import reverse
from django.views import View
from user.models import BookInfo
def test1(request):
return HttpResponse('OK...')
def test2(request):
return render(req... | 903 |
361 | <reponame>feedhq/feedhq<gh_stars>100-1000
import time
from datetime import timedelta
from unittest.mock import patch
import feedparser
from django.core.cache import cache
from django.core.management import call_command
from django.test import TransactionTestCase
from django.utils import timezone
from django_push.subsc... | 7,536 |
332 | <reponame>BioQwer/vk-java-sdk
package com.vk.api.sdk.objects.enums;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.queries.EnumParam;
/**
* Document type.
*/
public enum DocsType implements EnumParam {
@SerializedName("audio_message")
AUDIO_MESSAGE("audio_message"),
@Serialize... | 268 |
410 | // Copyright(c) 2017 POLYGONTEK
//
// 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 i... | 4,810 |
567 | <gh_stars>100-1000
#ifndef CPPMODEL_H
#define CPPMODEL_H
namespace hiberlite{
class Scope{
public:
std::string _table, _prefix;
int prefix_depth;
inline Scope(std::string t, std::string p): _table(t)
, _prefix(p)
,prefix_depth(0)
{}
inline Scope() : prefix_depth(0) {}
inline std... | 371 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.