id stringlengths 7 14 | text stringlengths 1 37.2k |
|---|---|
216204232_22 | public Spitter findOne(long id) {
eturn jdbcTemplate.queryForObject(
SELECT_SPITTER + " where id=?", new SpitterRowMapper(), id);
} |
216231037_5 | @PostMapping("/hero/new")
public String addNewHero(@ModelAttribute("newHero") NewHeroModel newHeroModel) {
Hero hero = newHeroModel.getHero();
String repositoryName = newHeroModel.getRepository();
heroService.addHeroToRepository(hero, repositoryName);
return "redirect:/hero";
} |
216526613_4 | @Override
public void rotate() {
locker.executeWithLock(this::doRotate);
} |
216840838_64 | @Nullable
public Stigma extractStigma(@Nonnull final RawStigmaToken stigmaToken) {
Assert.notNull(stigmaToken, "stigmaToken must not be null");
final JWT jwt;
try {
jwt = JWTParser.parse(stigmaToken.getValue());
} catch (ParseException e) {
if (logger.isDebugEnabled()) {
log... |
216898288_0 | public static DataStream<HeapAlert> computeHeapAlerts(DataStream<HeapMetrics> statsInput, ParameterTool params) {
return statsInput.flatMap(new AlertingFunction(params)).name("Create Alerts");
} |
217054700_44 | public static byte[] merge(byte[] ... byteArrays){
ByteArrayOutputStream outputStream = new ByteArrayOutputStream( );
try {
for(byte[] a: byteArrays ){
outputStream.write( a );
}
} catch (IOException e){
log.debug("Failed to merge");
}
return outputStream.toByteAr... |
217157573_2 | @Override
public boolean removeListener(BlobStoreListener listener) {
Boolean result = listeners.remove(listener);
cache.get().values().forEach(entry->{entry.store.removeListener(listener);});
StoreAndConfig defaultEntry = defaultCache.get();
if(Objects.nonNull(defaultEntry)) {
defaultEntry.stor... |
217172162_0 | @Override
public List<User> getUsers() {
return userRepository.findAll();
} |
217275258_265 | public void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders) throws Http2Exception {
int index = 0;
long headersLength = 0;
int nameLength = 0;
int valueLength = 0;
byte state = READ_HEADER_REPRESENTATION;
boolean huffmanEncoded = false;
CharSequence name = nul... |
217311696_5 | @Override
public Collection<Object> values() {
return environmentProperties.get().values();
} |
217419171_3 | @Override
public boolean convert(ConverterRequest request, ConverterResult result, Object target)
{
SCMTrigger scmTrigger = (SCMTrigger) target;
String cronValue = scmTrigger.getSpec();
ModelASTTrigger modelASTTrigger = new ModelASTTrigger( this );
modelASTTrigger.setName( "pollSCM" );
modelASTTri... |
217479559_0 | public void stop(int timeoutMillis) {
running = false;
if (debug) {
System.err.println("Stopping the HTTPS server (timeout " + timeoutMillis + " ms)");
}
httpsServer.stop(timeoutMillis);
} |
217587403_3 | public static Component translate(Component text, Locale locale) {
return RENDERER.render(text, locale);
} |
218062029_1 | public static File getToolsJar() {
if (!JavaVersionUtil.isLessThanJava9()) {
return null;
}
String javaHomeDir = getJavaHomeDir();
File toolsJar = new File(javaHomeDir, "lib/tools.jar");
if (!toolsJar.exists()) {
toolsJar = new File(javaHomeDir, "../lib/tools.jar");
}
if (!t... |
218396611_54 | @Override
public Repository newInstance(String name, String url) {
URI uri = URI.create(url);
String scheme = uri.getScheme();
if (!"hdfs".equalsIgnoreCase(scheme)) {
throw new IllegalArgumentException("Invalid hdfs url: " + url);
}
String path = uri.getPath();
String fileName = Paths.g... |
218804581_3 | public static List<String> tokenize(String value,
String delimiters,
boolean trimTokens,
boolean ignoreEmptyTokens) {
List<String> tokens = new ArrayList<>();
if (value == null) {
return tokens;
}
... |
218912806_9 | public boolean completeTaskByTaskID(String taskID){
try {
processEngine.getTaskService()
.complete(taskID);
} catch (ActivitiObjectNotFoundException e) {
logger.info("[任务完成操作失败] " + e.getMessage());
return false;
}
logger.info("[任务完成操作成功] [taskID=" + taskID + "]")... |
219180652_0 | @Override
public String toString() {
StringJoiner sj = new StringJoiner(",");
for (Entry<String, String> e : getProperties().entrySet()){
sj.add(e.getKey() + "=" + e.getValue());
}
return getFullId() + "[" + sj.toString() + "]";
} |
219255094_0 | @Override
public Optional<ProductInfo> findById(String productId) {
return repository.findById(productId);
} |
219454065_18 | public void markNotified(@NonNull NotificationType type) {
Validate.notNull(type);
Optional.ofNullable(getNotifications().get(type))
.ifPresent(settings -> {
Validate.isTrue(settings.isActive());
settings.markNotified();
});
} |
219701790_135 | @Procedure(name = "gds.alpha.similarity.cosine.stream", mode = READ)
@Description(DESCRIPTION)
public Stream<SimilarityResult> cosineStream(
@Name(value = "graphName") Object graphNameOrConfig,
@Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration
) {
return stream(graphNameO... |
220248572_1 | public static String getExtensionName(String filename) {
if ((filename != null) && (filename.length() > 0)) {
int dot = filename.lastIndexOf('.');
if ((dot >-1) && (dot < (filename.length() - 1))) {
return filename.substring(dot + 1);
}
}
return filename;
} |
220262191_21 | @Override
protected boolean shouldNotFilter(HttpServletRequest request) throws ServletException {
String path = request.getRequestURI();
Map<String, String> headerKeyValueMap = new HashMap<>();
ShadowTrafficConfig shadowTrafficConfig = shadowTrafficConfigHelper.getConfig();
// If shadow traffi... |
220952727_4 | public List<AppEnvCluster> findClusters(String env, long appId) {
return appEnvClusterRepository.findByAppIdAndEnv(appId, env);
} |
221155810_2 | @Override
public List<KisiDto> getAll() {
List<Kisi> kisiler = kisiRepository.findAll();
List<KisiDto> kisiDtos = new ArrayList<>();
kisiler.forEach(it -> {
KisiDto kisiDto =new KisiDto();
kisiDto.setId(it.getId());
kisiDto.setAdi(it.getAdi());
kisiDto.setSoyadi(it.getSoyadi... |
221881722_45 | public double getValue() {
return value;
} |
221992547_32 | public List<Neighbor> getNearNeighborsInSample(double[] point, double distanceThreshold) {
checkNotNull(point, "point must not be null");
checkArgument(distanceThreshold > 0, "distanceThreshold must be greater than 0");
if (!isOutputReady()) {
return Collections.emptyList();
}
Function<Ran... |
222008690_16 | @NotNull
@Override
public List<? extends JpsModulePropertiesSerializer<?>> getModulePropertiesSerializers() {
return Collections.emptyList();
} |
222136267_86 | public void apply(ItemStack to) {
Validate.notNull(to, "itemstack cannot be null");
Validate.isTrue(to.getType() == Material.POTION, "given itemstack is not a potion");
to.setDurability(toDamageValue());
} |
222455446_0 | @Transactional(readOnly = true)
public UserResponse getUser(Integer userId) {
final Optional<TestUser> user = userRepository.findById(userId);
return user.map(UserService::toUserResponse).orElseThrow(NotFoundException::new);
} |
222514148_1 | public boolean isClass() {
return isClass;
} |
222530720_33 | @Override
public void start(ModuleContext context) {
applicationContext =
new SpringApplicationBuilder(SpringWebInitiator.class)
.web(WebApplicationType.SERVLET)
.resourceLoader(new DefaultResourceLoader(context.getModule().getClassLoader()))
.run();
} |
222578036_1 | @Override
public List<String> getColumnNames(String tableName, String datasource) {
DatabaseMetaData metaData = null;
List<String> columnNames = Lists.newArrayList();
ResultSet rs = null;
try {
metaData = conn.getMetaData();
rs = metaData.getColumns(conn.getCatalog(), null, tableName, "%... |
222710815_0 | public ContextAssert containsOnly(Context other) {
Map.Entry<Object, Object>[] otherArray = other.stream().toArray(ARRAY_GENERATOR);
//we use containsOnly and not containsExactlyInAnyOrder because we don't care about duplicates
iterables.assertContainsOnly(info,
actualAsList,
otherArray);
return this;
} |
223482145_0 | @Override
public void handleRequest(InputStream is, OutputStream os, Context context) throws IOException {
LambdaLogger logger = context.getLogger();
String input = Utils.toString(is);
try {
Request request = GSON.fromJson(input, Request.class);
String url = request.getInputImageUrl();
... |
223551095_1807 | @Override
public Result execute()
throws UnsupportedPropertyException,
SystemException,
NoSuchResourceException,
NoSuchParentResourceException {
queryForResources();
return getResult(null);
} |
223850259_0 | public void send(){
String message="Hello World:"+ DateUtil.now();
log.info("FwSender:"+message);
//第一个参数是topic,第二个参数是内容
amqpTemplate.convertAndSend("hello",message);
} |
223898372_5 | public FileFilterConfig parse() throws DocumentException {
FileFilterConfig fileFilter = new FileFilterConfig();
SAXReader reader = new SAXReader();
Document doc = reader.read(configPath.toFile());
Element root = doc.getRootElement();
for (Iterator i = root.elementIterator("filter"); i.hasNext(); )... |
224061261_10 | @Override
public void handleResponse(Event event) {
HttpServletNetworkResponseEvent responseEvent = (HttpServletNetworkResponseEvent) event;
Segment currentSegment = getSegment();
// No need to log since a Context Missing Error will already be recorded
if (currentSegment == null) {
return;
... |
224235390_87 | @Override
public void serialize(final GenericRecord record,
final JsonGenerator gen,
final SerializerProvider serializers) throws IOException {
gen.writeRawValue(getJsonString(record, record.getSchema()));
} |
224256826_30 | @Override
public Translation<List<Acknowledgeable<W>>, Acknowledgeable<W>> apply(List<Acknowledgeable<W>> buffer) {
List<Acknowledgeable<W>> nonCanceledBuffer = WorkBuffers.collectNonCanceledAcknowledgeable(buffer, Acknowledgeable::acknowledge);
try {
return tryTranslate(nonCanceledBuffer)
.... |
224537036_84 | @Override
public DeliveryResponse getResources(InputPayload inputPayload, MessageHeaders headers) {
log.debug("Getting resources for following SRNs and headers : {}, {}", inputPayload, headers);
String authorizationToken = extractHeaderByName(headers, OsduHeader.AUTHORIZATION);
String partition = extractHeaderBy... |
224764811_71 | @Subscribe
public void onGameTick(GameTick tick)
{
// update the lingering presence of npcs in the slayer xp consideration list
Iterator<NPCPresence> presenceIterator = lingeringPresences.iterator();
while (presenceIterator.hasNext())
{
NPCPresence presence = presenceIterator.next();
presence.tickExistence();
... |
224846645_331 | @Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NativeSettingsImpl that = (NativeSettingsImpl) o;
return Objects.equals(name, that.name) &&
Objects.equals(compilerFlags, that.co... |
225191103_1 | @GET
@Path("/{id}")
public Response getOne(@PathParam("id") Long id) {
String entity = service.get(id.intValue());
if (entity == null) {
return Response
.status(Response.Status.NOT_FOUND)
.build();
}
return Response
.status(Response.Status.OK)
... |
225545609_1 | public PoolString after(PoolString other) {
if (other.isEmpty()) {
return this;
}
Preconditions.checkArgument(other.base == base);
Preconditions.checkArgument(other.startIndex == startIndex);
if (other.endIndex == endIndex) {
return empty;
}
Preconditions.checkArgument(other.endIndex < endIndex);
return new... |
225625782_51 | static UnixDomainHttpEndpoint parseFrom(URI endpoint) {
final Path path = Paths.get(endpoint.getPath());
final int sockPathIndex = indexOfSockFile(path);
final String filePath = "/" + path.subpath(0, sockPathIndex + 1).toString();
final File unixDomainFile = new File(filePath);
if (sockPathIndex == path.getN... |
225818900_8 | public static String createEndpointOptionsFromProperties(Map<String, String> props, String prefix) {
return props.keySet().stream()
.filter(k -> k.startsWith(prefix))
.map(k -> k.replace(prefix, "") + "=" + props.get(k))
.reduce((o1, o2) -> o1 + "&" + o2)
.map(result ... |
226089680_38 | @Override
public void onStartup(ServletContext servletContext) throws ServletException {
if (env.getActiveProfiles().length != 0) {
log.info("Web application configuration, using profiles: {}", (Object[]) env.getActiveProfiles());
}
log.info("Web application fully configured");
} |
226116772_0 | Map queryFromAliyun(String domain) {
//拼接查询地址
String queryDomain = "http://panda.www.net.cn/cgi-bin/check.cgi?area_domain=" + domain;
//请求万网接口进行查询
ResponseEntity<Map> forEntity = null;
try {
forEntity = restTemplate.getForEntity(queryDomain, Map.class);
} catch (RestClientException e) {
... |
226364580_7 | public static WebMercatorTile forQuadkey(String quadKey) throws IllegalArgumentException {
if (!QUADKEY_REGEXP.matcher(quadKey).matches()) {
throw new IllegalArgumentException("Invalid quadkey.");
}
int level = quadKey.length();
int x = 0;
int y = 0;
int depth = Math.min(MAX_LEVEL, quadKey.length());
... |
226861344_62 | @SuppressWarnings("unchecked") public List<E> poll(BitSet queueIds)
throws InterruptedException {
ArrayList<E> re = new ArrayList<>(queueIds.cardinality());
for (int id = queueIds.nextSetBit(0); id >= 0; id = queueIds.nextSetBit(id + 1)) {
DalQueue dalqueue = queues[id];
if (dalqueue == null... |
227063129_281 | List<RangerPolicy> getPolicies(final String serviceName, final String policyName) {
if(LOG.isDebugEnabled()) {
LOG.debug("==> RangerValidator.getPolicies(" + serviceName + ", " + policyName + ")");
}
List<RangerPolicy> policies = null;
try {
SearchFilter filter = new SearchFilter();
if (StringUtils.isNotBlan... |
227131980_94 | public static <T> MultivaluedMap<String, T> sanitizeHeaders(MultivaluedMap<String, T> headers) {
MultivaluedMap<String, T> sanitizedHeaders = new MultivaluedHashMap<>();
headers.forEach(
(key, value) -> {
if (AUTHORIZATION.equalsIgnoreCase(key)) {
sanitizedHeaders.put(
key,
... |
227144695_1 | public static double[][] approxJacobian(double[] x, Vector2VectorFunc func, double... arg)
{
final int n = x.length;
final double[] f0;
if (arg != null && arg.length > 0)
{
f0 = func.apply(x, arg);
}
else
{
f0 = func.apply(x);
}
final double[][] jac = new double[n][f... |
228257340_39 | @Override
public boolean getConsentable() {
return consentable;
} |
228959889_0 | public byte[] hashBytes(byte[] var1) {
return newHasher().hashBytes(var1);
} |
228976248_2 | @ApiOperation(value = "获取菜单", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_VALUE)
@RequestMapping(value = "/getMenu", method = RequestMethod.POST, produces = {"application/json"})
public MsgResponseBody<MenuInfo> getMenu() {
return MsgResponseBody.success().setResult(menuService.getMenu());
} |
229095535_2 | @Override
public UserDetails updatePassword(UserDetails user, String newPassword) {
return userService
.findOneByEmail(user.getUsername())
.map(
u -> {
LOGGER.info(
"Upgrading password {} for user {} to {}",
user.getPassword(),
user.get... |
229869608_0 | @Nonnull
private String toFilename( @Nonnull final TypeElement typeElement )
{
return GeneratorUtil.getGeneratedClassName( typeElement, "", "" ).toString().replace( ".", "/" );
} |
229913994_216 | public void completeTx(SendRequest req) throws InsufficientMoneyException {
lock.lock();
try {
checkArgument(!req.completed, "Given SendRequest has already been completed.");
// Calculate the amount of value we need to import.
Coin value = Coin.ZERO;
for (TransactionOutput output... |
230080058_1 | public static Map<String, Object> flatMap(@NonNull Map<String, Object> map, String joinKey) {
return recursiveFlat(map, joinKey, new ArrayList<>());
} |
230236469_32 | public Address getToAddress(NetworkParameters params) throws ScriptException {
return getToAddress(params, false);
} |
231329990_0 | @Nonnull
@Override
public VertxTcpClient createNetwork(@Nonnull TcpClientProperties properties) {
VertxTcpClient client = new VertxTcpClient(properties.getId());
initClient(client, properties);
return client;
} |
231349973_3 | public static void generatorZjmiecOACode(String url,String modelName){
File file = new File(url);
List<ExcelApi2Code> excelApi2Codes = EasypoiUtil.importExcel(file, ExcelApi2Code.class,new ImportParams());
System.out.println("WorkflowRequestTableField[] wrtf = new WorkflowRequestTableField[" + excelApi2Co... |
231519592_3 | @Override
public Response execute(RefrigeratorInitCommand cmd) {
refrigeratorMapper.truncate();
RefrigeratorRandomProfile refrigeratorRandomProfile = new RefrigeratorRandomProfile();
//先把大象全家都装进冰箱...
refrigeratorMapper.save(refrigeratorRandomProfile.randomAnimal());
refrigeratorMapper.save(refrig... |
231533573_2 | public TubeBaseSessionFactory(final ClientFactory clientFactory,
final TubeClientConfig tubeClientConfig) throws TubeClientException {
super();
this.checkConfig(tubeClientConfig);
this.tubeClientConfig = tubeClientConfig;
RpcConfig config = new RpcConfig();
config.put(R... |
232306581_4 | public static long crc32(byte[] data, int offset, int len) {
long crc = 0xFFFFFFFFL;
long[][] table = init(UT_CRC_32_SLICE_8_TABLE_THREAD_LOCAL.get());
/* Calculate byte-by-byte up to an 8-byte aligned address. After
this consume the input 8-bytes at a time. */
// In C code, it needs to align to be CPU frie... |
232664319_8 | List<String> getStatements() {
List<String> availableStatements = this.statements;
if (availableStatements == null) {
synchronized (this) {
availableStatements = this.statements;
if (availableStatements == null) {
this.statements = readStatements();
availableStatements = this.statements;
}
}
}
... |
232697780_1 | public Object instantiate() {
try {
return constructor.newInstance(parameters.toArray());
} catch (Exception e) {
throw new InstantiationFailure(e);
}
} |
232712706_9 | @Override
public void watch(WatchType type, LongConsumer consumer) {
switch (type) {
case SCHEMAVERSION:
etcdClient.watch(SCHEMA_VERSION_PATH, false, consumer);
break;
case SCHEMATASK:
etcdClient.watch(TASK_LIST, true, consumer);
break;
case PRIVERSION:
etcdClient.watch(PRI_V... |
233941256_356 | public DateRange getRange(String dateRangeString) throws ParseException {
if (dateRangeString == null || dateRangeString.isEmpty())
throw new IllegalArgumentException("Passing empty Strings is not allowed");
String[] dateArr = dateRangeString.split("-");
if (dateArr.length > 2 || dateArr.length < 1... |
234365176_2 | public static List<Token> tokenize(InputStream in) throws SexpParserException, IOException {
return SexpTokenizer.tokenize(in);
} |
234816965_2 | @GetMapping("/api/pokemons/{number}")
public ResponseEntity find(@PathVariable final int number) {
return ResponseEntity.ok()
.body(pokemonService.find(number))
;
} |
234994470_5 | @GET
@Produces(MediaType.APPLICATION_JSON)
@Path(ResourceDefinitions.Path.Common.SEARCH_FULL_PATH)
@Timed(name = MediaService.MetricsDefinitions.SearchAudio.TIMER_NAME, displayName =
METRICS_PREFIX + '.' + MediaService.MetricsDefinitions.SearchAudio.TIMER_NAME, description =
MediaService.MetricsDefinitions.Sear... |
235013588_0 | @GetMapping("/")
public String imHealthy() {
return "{healthy:true}";
} |
235035304_9 | public static String[] getHosts(String mongoUri) {
Matcher m = MONGO_URI_PATTERN.matcher(mongoUri);
if (m.find()) {
return Optional.ofNullable(m.group(2))
.map(hosts -> hosts.split(","))
.orElseThrow(() -> new RuntimeException("unsupported mongo uri"));
} else {
throw new RuntimeException("un... |
235406671_1 | public Difficulty getNextJobDifficulty(Miner miner) {
// when few shares have been submitted, use the starting difficulty
if (miner.getValidSharesSubmitted() < wait) {
return new Difficulty(startDiff);
}
// hashrate = hashes submitted / connection time
BigInteger hashrate =
mine... |
235577942_315 | public boolean hasManagerPrivilegeForDepartment(Long departmentId) {
UserContextRole userRole = userRoleFromContextService.getUserRoleInUnitId(departmentId);
return userRole.isHigherAuthorityTypeThan(UserContextRole.OKRMEMBER);
} |
235590282_3 | public List<User> userDTOsToUsers(List<UserDTO> userDTOs) {
return userDTOs.stream()
.filter(Objects::nonNull)
.map(this::userDTOToUser)
.collect(Collectors.toList());
} |
235957092_0 | public RLParams getParams(String jsonStr) {
JSONObject jsonParams = new JSONObject(jsonStr);
RLParams params = new RLParams();
if (jsonParams.has("params")) {
JSONArray paramList = jsonParams.getJSONArray("params");
for (int i = 0; i < paramList.length(); i++){
JSONObject jsonPar... |
235979171_1 | public Try<FileInputStream> tryStreamFileSubjects() {
File file = new File(this.config.getString("avro.subjects.yaml"));
return Try
.ofFailable(() -> new FileInputStream(file))
.onFailure((t) -> logger.error("Fail to load the yaml file, it may not exist.", t));
} |
236336373_3 | @Override
; |
236431478_5 | @PostMapping("text")
public String text(@RequestBody String text){
return text;
} |
237265610_7 | public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {
throw new UnsupportedOperationException("TODO: Implement this method.");
} |
237355002_0 | @RequestMapping("/add")
@ResponseBody
public ReturnT<String> add(XxlJobInfo jobInfo) {
return xxlJobService.add(jobInfo);
} |
238661958_7 | @PutMapping("/{id}")
public void update(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant,
@PathVariable("id") String prescriptionId, @RequestBody Prescription prescription) {
if (StringUtils.isNotBlank(prescription.getId()) && !StringUtils.equals(prescriptionId, prescription.getId())) {
throw new BadRequestE... |
239025775_39 | public static BodyPublisher ofObject(Object object, @Nullable MediaType mediaType) {
TypeRef<?> runtimeType = TypeRef.from(object.getClass());
Encoder encoder =
Encoder.getEncoder(runtimeType, mediaType)
.orElseThrow(() -> unsupportedConversion(runtimeType, mediaType));
return encoder.toBody(objec... |
239132730_0 | @Override
public Object pack(Object obj) throws Exception {
final BeanComparator comparator = new BeanComparator("lowestSetBit");
// create queue with numbers and basic comparator
final PriorityQueue<Object> queue = new PriorityQueue<Object>(2, comparator);
// stub data for replacement later
queue.... |
239499581_3 | @Override
public List<SqlCreateTable> sqlTableParser(String ddlSql) throws Exception {
List<SqlCreateTable> result = new LinkedList<>();
SqlNodeList nodeList = SqlUtils.parseSql(ddlSql);
for (SqlNode sqlNode : nodeList) {
if (sqlNode instanceof SqlCreateTable) {
result.add((SqlCreateTable) sqlNode);
... |
240292120_0 | public static String createStringTypeGUID() {
return HEX_IPV4_ADDR + RANDOM_SEED + Long.toHexString(System.currentTimeMillis()) + hexCycleSequence();
} |
240818625_0 | public static JsonAdapter.Factory create() {
return new Factory(new Random());
} |
241565088_0 | public static BigInteger exactDivide(BigInteger dividend, BigInteger divisor) {
if (divisor.signum() == 0) {
throw new ArithmeticException("BigInteger divide by zero");
}
return INSTANCE.get().exactDivImpl(dividend, divisor);
} |
242737551_29 | @PUT
@Path("/{id}")
@Transactional
@Operation(description = "Update a todo")
@APIResponses({
@APIResponse(responseCode = "204", description = "Todo updated"),
@APIResponse(responseCode = "400", description = "Invalid request data",
content = @Content(schema = @Schema(implementation = ApplicationErrorsDT... |
244294736_5 | @Override
public String getConsumerMetaData(MetadataIdentifier key) {
return doGetMetaData(key);
} |
244419190_1 | public Iterable<Integer> getMaxTemperatures(LocalDate fromDate, LocalDate toDate, String location) throws IOException {
Iterable<DailyWeatherInfo> weatherInfos = weatherApi.pastWeather(fromDate, toDate, location);
return QueriesEager.map(weatherInfos, dwi -> dwi.getTempMaxC());
} |
244941906_7 | static boolean matchCoupling(final CouplingFilter filter, final MethodCoupling coupling) {
return matchString(filter.getSourcePackagePattern(), coupling.getSource().getPackageName()) &&
matchString(filter.getSourceClassPattern(), coupling.getSource().getSimpleClassName()) &&
matchString(filter... |
246041169_0 | public boolean call(String button) {
int begin = getAFloor();
int end = getAFloor();
int buttonPressedFloor = getAFloor();
if (button.equalsIgnoreCase("Up")) // For Up
{
return (begin <= buttonPressedFloor && buttonPressedFloor < end) || (begin < buttonPressedFloor && buttonPressedFloor <... |
246630390_1 | @Override
public byte[] merge(Map<String, Object> keys, Iterator<byte[]> files) {
return ParquetHelper.mergeFiles(files);
} |
246677383_5 | public void buildExpressionNotation(String expressionBegin, String expressionEnd) {
this.expressionNotationBegin = expressionBegin;
this.expressionNotationEnd = expressionEnd;
String regexExpression = Pattern.quote(expressionNotationBegin) + EXPRESSION_PART + Pattern.quote(expressionNotationEnd);
expres... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.