max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
307 | package com.tairanchina.csp.avm.mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.tairanchina.csp.avm.entity.App;
import org.apache.ibatis.annotations.Mapper;
/**
* Created by hzlizx on 2018/5/17 0017
*/
@Mapper
public interface AppMapper extends BaseMapper<App> {
}
| 116 |
650 | <filename>Userland/Libraries/LibGfx/ICOLoader.cpp
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/ByteBuffer.h>
#include <AK/Debug.h>
#include <AK/LexicalPath.h>
#include <AK/MappedFile.h>
#include <AK/MemoryStream.h>
#include <AK/NonnullOwnPtrVector.h>
#include ... | 4,911 |
380 | package org.gluu.oxauth.interop;
import static org.gluu.oxauth.model.common.GrantType.AUTHORIZATION_CODE;
import static org.gluu.oxauth.model.common.ResponseType.CODE;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import java.util.Arrays;
import org.gluu.oxauth.BaseTest... | 884 |
350 | /*
* Copyright (C) 2005-2017 <NAME> (<EMAIL>).
*
* 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 ... | 9,451 |
305 | <filename>demos/real_time_stream_analysis/python/inference_manager.py
#
# Copyright (c) 2022 Intel 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/lic... | 2,034 |
855 | <reponame>vmayoral/Vitis_Libraries
// Copyright 2018 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#include "pik/status.h"
#include <stdarg.h>
#include <string>
namespace pik {
... | 327 |
942 | #include "../src/tmongocursor.h"
| 14 |
4,512 | <gh_stars>1000+
"""
weasyprint.tests
----------------
The Weasyprint test suite.
"""
| 38 |
2,761 | #include <clog.h>
#ifdef BUILDING_TRACEPOINT_PROVIDER
#define TRACEPOINT_CREATE_PROBES
#else
#define TRACEPOINT_DEFINE
#endif
#include "stream.c.clog.h"
| 70 |
2,611 | <gh_stars>1000+
# Lint as: python3
# Copyright 2018 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... | 378 |
445 | // SPDX-License-Identifier: Apache-2.0
#include "kompute/Sequence.hpp"
namespace kp {
Sequence::Sequence(std::shared_ptr<vk::PhysicalDevice> physicalDevice,
std::shared_ptr<vk::Device> device,
std::shared_ptr<vk::Queue> computeQueue,
uint32_t queueIndex,
... | 4,300 |
743 | /*
* 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 ... | 654 |
526 | <reponame>rychagova/egeria
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.commonservices.ffdc.rest;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
/**
* If an OMAS uses Generic types to implement it's Ja... | 440 |
2,151 | // Copyright 2013 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_BASE_COCOA_FOCUS_WINDOW_SET_H_
#define UI_BASE_COCOA_FOCUS_WINDOW_SET_H_
#include <set>
#include "ui/base/ui_base_export.h"
#include "ui/gfx/... | 392 |
1,025 | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file gwApplicationCommands.cpp
///
//==============================================================================... | 9,317 |
14,668 | <filename>components/payments/core/test_payment_manifest_downloader.h
// 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 COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_MANIFEST_DOWNLOADER_H_
#define COMPONE... | 1,705 |
1,658 | <reponame>SergeyPetrachkov/DownloadButton
//
// PKViewController.h
// DownloadButton
//
// Created by <NAME> on 06/01/2015.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
@import UIKit;
@interface PKViewController : UIViewController
@end
| 87 |
1,049 | package me.devilsen.czxing.thread;
import java.util.Deque;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import me.devilsen.czxing.util.BarCodeUtil;
/**
* desc : 任务分发器
* date : 2019... | 1,050 |
348 | <gh_stars>100-1000
{"nom":"Vismes","circ":"3ème circonscription","dpt":"Somme","inscrits":390,"abs":208,"votants":182,"blancs":16,"nuls":6,"exp":160,"res":[{"nuance":"LR","nom":"<NAME>","voix":106},{"nuance":"REM","nom":"M. <NAME>","voix":54}]} | 100 |
3,066 | /*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 1,757 |
751 | /* $NetBSD: radix.c,v 1.47 2016/12/12 03:55:57 ozaki-r Exp $ */
/*
* Copyright (c) 1988, 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... | 12,394 |
428 | <gh_stars>100-1000
#ifndef __STRING_UTILS_H__
#define __STRING_UTILS_H__
#include <stddef.h>
#include <string.h>
char *xstrdup(const char *string);
char *xstrdupn(const char *str, size_t n);
char *trim(char **str);
char *randomstr(char *buf, int len);
#endif
| 113 |
329 | package kr.dogfoot.hwplib.object.docinfo;
/**
* 아이디 매핑 헤더를 나타내는 레코드. "DocInfo" stream 안에 있는 다른 객체들의 개수를 저전한다.
*
* @author neolord
*/
public class IDMappings {
/**
* 바이너리 데이터의 개수
*/
private int binDataCount;
/**
* 한글 글꼴의 개수
*/
private int hangulFaceNameCount;
/**
* 영어 글... | 6,726 |
5,038 | /*
* Copyright 2019 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 appli... | 875 |
680 | package org.ff4j.store;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/*
* #%L
* ff4j-store-redis
* %%
* Copyright (C) 2013 - 2014 Ff4J
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 5,365 |
739 | <gh_stars>100-1000
#include <windows.h>
#include "ImportHandler.h"
#include "HunkList.h"
#include "Hunk.h"
#include "StringMisc.h"
#include "Log.h"
#include "Symbol.h"
#include "data.h"
#include <vector>
#include <set>
#include <ppl.h>
#include <cassert>
using namespace std;
const char *LoadDLL(con... | 9,999 |
14,668 | // 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 CHROME_BROWSER_BREADCRUMBS_BREADCRUMB_MANAGER_KEYED_SERVICE_FACTORY_H_
#define CHROME_BROWSER_BREADCRUMBS_BREADCRUMB_MANAGER_KEYED_SERVICE_FACTORY... | 473 |
2,023 | <reponame>tdiprima/code<filename>recipes/Python/578826_sav2mdb/recipe-578826.py<gh_stars>1000+
# -*- coding: utf-8 -*-
import sys
import os
import random
import pypyodbc
import savReaderWriter
__version__ = "1.0.0"
__author__ = "<NAME>"
__email__ = "@".join(["fomcl", "yahoo" + ".com"])
"""
sav2mdb.py: convert SPSS ... | 1,610 |
531 | <reponame>globalbus/karaf<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 Licen... | 1,048 |
2,958 | <gh_stars>1000+
package com.blade.kit.json;
import com.blade.kit.DateKit;
import com.blade.kit.ReflectKit;
import java.lang.reflect.Array;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import jav... | 7,123 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Diffraction",
"definitions": [
"The process by which a beam of light or other system of waves is spread out as a result of passing through a narrow aperture or across an edge, typically accompanied by interference between the wave forms produced."
],
... | 109 |
407 | package com.alibaba.tesla.tkgone.server.domain;
import java.io.Serializable;
import java.util.Date;
public class Config implements Serializable {
private Long id;
private Date gmtCreate;
private Date gmtModified;
private String category;
private String nrType;
private String nrId;
pr... | 2,075 |
879 | <reponame>qianfei11/zstack
package org.zstack.sdk;
import org.zstack.sdk.PciDeviceMetaData;
public class PciDeviceOfferingInstanceOfferingRefInventory {
public long id;
public void setId(long id) {
this.id = id;
}
public long getId() {
return this.id;
}
public java.lang.Stri... | 536 |
831 | <gh_stars>100-1000
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.jps.android.model.impl;
import com.intellij.util.xmlb.XmlSerializer;
import java.util.Collections;
import java.util.List;
import org.jdom... | 1,429 |
1,249 | <filename>plugins/decor/deco-layout.hpp
#pragma once
#include <vector>
#include <wayfire/region.hpp>
#include "deco-button.hpp"
namespace wf
{
namespace decor
{
static constexpr uint32_t DECORATION_AREA_RENDERABLE_BIT = (1 << 16);
static constexpr uint32_t DECORATION_AREA_RESIZE_BIT = (1 << 17);
static constexpr ... | 2,078 |
1,615 | <reponame>jackwiy/MLN<gh_stars>1000+
/**
* 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.... | 1,422 |
348 | {"nom":"Thonon-les-Bains","circ":"5ème circonscription","dpt":"Haute-Savoie","inscrits":22789,"abs":14452,"votants":8337,"blancs":620,"nuls":219,"exp":7498,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":4341},{"nuance":"DVD","nom":"Mme <NAME>","voix":3157}]} | 107 |
3,274 | <gh_stars>1000+
package com.ql.util.express.instruction.detail;
import java.util.List;
import com.ql.util.express.InstructionSet;
import com.ql.util.express.InstructionSetContext;
import com.ql.util.express.InstructionSetRunner;
import com.ql.util.express.OperateData;
import com.ql.util.express.RunEnvironment;
import... | 529 |
30,023 | """Config flow to configure the GeoNet NZ Volcano integration."""
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import (
CONF_LATITUDE,
CONF_LONGITUDE,
CONF_RADIUS,
CONF_SCAN_INTERVAL,
CONF_UNIT_SYSTEM,
CONF_UNIT_SYSTEM_IMPERIAL,
CONF_UNIT_SYSTEM... | 1,062 |
308 | <filename>Examples/Classes/TreeViewScene.h
#ifndef __TREEVIEW_SCENE_H__
#define __TREEVIEW_SCENE_H__
#include "cocos2d.h"
#include "DemoScene.h"
USING_NS_FGUI;
class TreeViewScene : public DemoScene
{
public:
TreeViewScene();
~TreeViewScene();
// implement the "static create()" method manu... | 258 |
347 | //
// Created by machiry on 5/1/17.
//
#include <iostream>
#include <llvm/Support/Debug.h>
#include "llvm/IR/DebugInfo.h"
#include "FileUtils.h"
using namespace llvm;
namespace IOCTL_CHECKER {
std::string FileUtils::getNewRelativePath(std::string &srcBaseDir, std::string &srcFilePath, std::string &bitCodeDir,
... | 1,149 |
2,342 | // Copyright (c) 2014 <NAME>. 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 retain the above copyright
// notice, this list of conditions and t... | 5,548 |
839 | <filename>rt/features/throttling/src/main/java/org/apache/cxf/throttling/ThrottlingInterceptor.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. ... | 1,299 |
848 | <gh_stars>100-1000
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ... | 8,374 |
541 | <reponame>michelcareau/DSpace<gh_stars>100-1000
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.sherpa.submit;
import static or... | 1,731 |
4,036 | <reponame>vadi2/codeql
package unreachableblocks;
public class Unreachable {
private boolean privateFalse = false;
public void method() {
if (false) {
// unreachable
}
if (privateFalse) {
// unreachable
}
if (methodFalse()) {
// unreachable
}
switch (7) {
case 5: // unreachable
break;
... | 240 |
1,050 | // Copyright 2019-2021, NVIDIA CORPORATION & AFFILIATES. 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 retain the above copyright
// notice, this... | 14,445 |
348 | {"nom":"Sant'Antonino","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":138,"abs":60,"votants":78,"blancs":11,"nuls":1,"exp":66,"res":[{"nuance":"REG","nom":"<NAME>","voix":52},{"nuance":"REM","nom":"<NAME>","voix":14}]} | 94 |
698 | /**
* Copyright (C) Zhang,Yuexiang (xfeep)
*
*/
package nginx.clojure.net;
import java.io.IOException;
public interface NginxClojureSocketHandler {
public void onConnect(NginxClojureAsynSocket s, long sc) throws IOException;
public void onRead(NginxClojureAsynSocket s, long sc) throws IOException;
public void ... | 149 |
335 | {
"word": "Multiplicity",
"definitions": [
"A large number or variety."
],
"parts-of-speech": "Noun"
} | 59 |
1,645 | /*
* Seldon -- open source prediction engine
* =======================================
* Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/)
*
**********************************************************************************************
*
* Licensed under the Apache License, Vers... | 5,445 |
2,151 | // 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_UI_ASH_LAUNCHER_INTERNAL_APP_SHELF_CONTEXT_MENU_H_
#define CHROME_BROWSER_UI_ASH_LAUNCHER_INTERNAL_APP_SHELF_CONTEXT_MENU_H_
#incl... | 395 |
500 | <reponame>wqqchh2014/CNN<filename>src/sdsoc.h
/*
* This file is developed by <NAME> (Walker LAU).
*
* This version accelerates all 7 CONV-layers of VIPLFaceNet.
*
* If you want to get the latest version of this project or met any problems,
* please go to <https://github.com/WalkerLau/Accelerating-CNN-with-FPGA... | 211 |
3,094 | # Imports
import os
import torch
import torch.nn.functional as F
import numpy as np
import config
from torch import nn, optim
from torch.utils.data import DataLoader
from tqdm import tqdm
from dataset import CatDog
from efficientnet_pytorch import EfficientNet
from utils import check_accuracy, load_checkpoint, save_che... | 1,291 |
1,217 | <reponame>473867143/Prometheus
#ifndef __DESCRIPTOR_H__
#define __DESCRIPTOR_H__
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdint.h>
class Descriptor {
public:
// constructor creates filters
Descriptor(uint8_t* I,int32_t width,int32_t height,i... | 267 |
2,860 | <reponame>pvlugter/lagom<filename>dev/sbt-plugin/src/sbt-test/sbt-plugin/run-all-javadsl/b/impl/src/main/java/impl/Module.java
/*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
package impl;
import com.google.inject.AbstractModule;
import com.lightbend.lagom.javadsl.server.ServiceGuiceSupport;
import... | 480 |
1,285 | package net.minestom.server.entity;
import net.minestom.server.entity.metadata.item.ItemEntityMeta;
import net.minestom.server.event.EventDispatcher;
import net.minestom.server.event.entity.EntityItemMergeEvent;
import net.minestom.server.instance.Chunk;
import net.minestom.server.item.ItemStack;
import net.minestom.s... | 2,885 |
321 | #pragma once
extern "C" {
#include "lua.h"
}
#define LUA_ASYNC_SOCKET_METATABLE_NAME "lua_asyncSocket"
extern int luaopen_async_socket(lua_State* L);
| 68 |
506 | <filename>oshgui/Dependencies/Source/SimpleImageLoader/Common.hpp
#ifndef IMAGELOADER_COMMON_HPP
#define IMAGELOADER_COMMON_HPP
#include <cstdint>
#include <cstdlib>
namespace SimpleImageLoader
{
inline uint16_t __SwapUInt16(uint16_t arg)
{
#if defined(_MSC_VER) && _MSC_VER >= 1310
return _byteswap_ushort(arg);
... | 834 |
1,041 | package org.tests.basic;
import io.ebean.*;
import org.junit.jupiter.api.Test;
import org.tests.model.basic.OrderAggregate;
import org.tests.model.basic.ResetBasicData;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class TestOrderTotalAmountReportBean extends BaseTestCase ... | 947 |
5,964 | // Copyright 2016 the V8 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.
#include "src/deoptimize-reason.h"
namespace v8 {
namespace internal {
std::ostream& operator<<(std::ostream& os, DeoptimizeReason reason) {
switch ... | 388 |
732 | package io.eventuate.tram.spring.optimisticlocking;
import io.eventuate.tram.jdbc.optimistic.locking.common.test.AbstractTestEntityService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;... | 414 |
331 | <reponame>yangKJ/KJBannerViewDemo<gh_stars>100-1000
//
// KJCollectionViewCell.h
// KJBannerViewDemo
//
// Created by 杨科军 on 2019/1/13.
// Copyright © 2019 杨科军. All rights reserved.
// https://github.com/yangKJ/KJBannerViewDemo
#import "KJBannerViewCell.h"
#import "KJBannerModel.h"
NS_ASSUME_NONNULL_BEGIN
@inter... | 193 |
480 | <reponame>weicao/galaxysql<gh_stars>100-1000
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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/lice... | 417 |
530 | /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
*
* or the follo... | 2,219 |
601 | <filename>austin-web/src/main/java/com/java3y/austin/web/controller/RefreshTokenController.java
package com.java3y.austin.web.controller;
import com.java3y.austin.common.enums.ChannelType;
import com.java3y.austin.common.vo.BasicResultVO;
import com.java3y.austin.cron.handler.RefreshDingDingAccessTokenHandler;
import... | 651 |
343 | <filename>testing/demo.sikuli/s01.py
# -----------------------------------------------------------------------------
# Copyright 2020 White Magic Software, Ltd.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to d... | 1,054 |
1,444 |
package mage.cards.z;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.ShroudAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
* @author Backfir3
*/
public... | 351 |
589 | package rocks.inspectit.server.instrumentation.config.job;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.mockito.Match... | 3,245 |
938 | <reponame>brickviking/TinkersConstruct
package slimeknights.tconstruct.library.materials.stats;
/**
* Material stats that support repairing, requires durability as part of the stats
*/
public interface IRepairableMaterialStats extends IMaterialStats {
/**
* Gets the amount of durability for this stat type
* ... | 103 |
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 ... | 893 |
608 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.battery.metrics.network;
import static android.net.TrafficStats.UNSUPPORTED;
import static com.facebook.batte... | 1,178 |
522 | // Copyright 2017 The TensorFlow Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 1,759 |
1,521 | <gh_stars>1000+
/**
* Copyright 2020 Alibaba Group Holding Limited.
*
* <p>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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless re... | 5,034 |
1,652 | package com.ctrip.xpipe.redis.meta.server.cluster.impl;
import com.ctrip.xpipe.api.lifecycle.TopElement;
import com.ctrip.xpipe.cluster.AbstractLeaderElector;
import com.ctrip.xpipe.redis.core.meta.MetaZkConfig;
import com.ctrip.xpipe.redis.meta.server.config.MetaServerConfig;
import org.springframework.beans.factory.... | 261 |
881 | <filename>dev/test/transforms/zlib_body_handler/main.cpp
/*
restinio
*/
/*!
Echo server.
*/
#include <catch2/catch.hpp>
#include <restinio/all.hpp>
#include <restinio/transforms/zlib.hpp>
#include <test/common/utest_logger.hpp>
#include <test/common/pub.hpp>
#include "../random_data_generators.ipp"
TEST_CASE( "... | 2,106 |
1,550 | # Leo colorizer control file for doxygen mode.
# This file is in the public domain.
# Properties for doxygen mode.
properties = {
"lineComment": "#",
}
# Attributes dict for doxygen_main ruleset.
doxygen_main_attributes_dict = {
"default": "null",
"digit_re": "",
"escape": "\\",
"high... | 7,772 |
320 | <gh_stars>100-1000
// implementation based on:
// http://map.grauw.nl/resources/midi/ym2148.php
#include "YM2148.hh"
#include "MidiInDevice.hh"
#include "MSXMotherBoard.hh"
#include "serialize.hh"
namespace openmsx {
// status register flags
constexpr unsigned STAT_TXRDY = 0x01; // Transmitter ready: no MIDI-out sen... | 2,622 |
391 | package su.levenetc.android.interactivecanvas;
/**
* Created by <NAME>.
*/
public interface ITouchEventReceiver {
void handleTouchEvent(int action, int x, int y);
}
| 54 |
315 | #include "Module/Probe/Occurrence/Probe_occurrence.hpp"
using namespace aff3ct;
using namespace aff3ct::module;
template <typename T>
Probe_occurrence<T>
::Probe_occurrence(const int size, const std::string &col_name, tools::Reporter_probe& reporter, const int n_frames)
: Probe<T>(size, col_name, reporter, n_frames),... | 549 |
1,799 | package io.cucumber.java.annotation;
import io.cucumber.java.fr.Étantdonné;
import java.math.BigDecimal;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
public class FrenchSteps {
@Étantdonné("j'ai {bigdecimal} concombres fractionnaires")
public void jAiConc... | 231 |
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.... | 1,357 |
24,206 | package com.alibaba.excel.write.style.row;
import com.alibaba.excel.write.handler.RowWriteHandler;
import com.alibaba.excel.write.handler.context.RowWriteHandlerContext;
import org.apache.poi.ss.usermodel.Row;
/**
* Set the row height strategy
*
* @author <NAME>
*/
public abstract class AbstractRowHeightStyleStr... | 415 |
29,258 | <reponame>weihubeats/arthas
package com.taobao.arthas.core.security;
import java.security.Principal;
import javax.security.auth.Subject;
import javax.security.auth.login.LoginException;
import org.assertj.core.api.Assertions;
import org.junit.Test;
/**
*
* @author hengyunabc 2021-03-04
*
*/
public class Securi... | 386 |
348 | <filename>docs/data/leg-t1/085/08504064.json
{"nom":"Chauché","circ":"4ème circonscription","dpt":"Vendée","inscrits":1815,"abs":872,"votants":943,"blancs":7,"nuls":1,"exp":935,"res":[{"nuance":"UDI","nom":"<NAME>","voix":517},{"nuance":"REM","nom":"Mme <NAME>","voix":233},{"nuance":"FN","nom":"Mme <NAME>","voix":86},{... | 247 |
1,056 | <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
* ... | 485 |
711 | /*
* Copyright 2015 JBoss 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 agreed to i... | 1,097 |
965 | void CMyDlg::SetSpinRange()
{
//set the min and max range of the up/down or spin control
SendDlgItemMessage(IDC_SPIN1, UDM_SETRANGE, 0, (LPARAM)MAKELONG(8, 1));
} | 74 |
416 | <gh_stars>100-1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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/li... | 12,316 |
462 | from datetime import datetime, timedelta
from flask import session
from sqlalchemy import func, desc
from cloud_inquisitor.constants import ROLE_ADMIN
from cloud_inquisitor.database import db
from cloud_inquisitor.log import auditlog
from cloud_inquisitor.plugins import BaseView
from cloud_inquisitor.schema import Lo... | 1,383 |
7,482 | /*
* Copyright (c) 2011-2012, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this... | 1,078 |
852 | //-------------------------------------------------
//
// Class: L1MuGMTLFPhiProEtaConvLUT
//
//
//
// Author :
// <NAME> HEPHY Vienna
//
// Migrated to CMSSW:
// <NAME>
//
//--------------------------------------------------
//-----------------------
// This Class's Header --
//------------------... | 854 |
1,322 | """Standard plugin package."""
| 7 |
3,937 | // Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// 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,
// th... | 784 |
32,544 | <reponame>zeesh49/tutorials
package com.baeldung.persistence.manytomany.dao.impl;
import org.springframework.stereotype.Repository;
import com.baeldung.hibernate.manytomany.model.Employee;
import com.baeldung.persistence.dao.common.AbstractHibernateDao;
import com.baeldung.persistence.manytomany.dao.IEmployeeDao;... | 218 |
329 | <filename>tests/testdata/macosx_minimal_system_version/test_lib.c<gh_stars>100-1000
int num_of_letters(char* text){
int num = 0;
char * lett = text;
while (lett != 0){
if (*lett >= 'a' && *lett <= 'z'){
num += 1;
} else if (*lett >= 'A' && *lett <= 'Z'){
num += 1;
... | 188 |
3,897 | <filename>targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_15_0/modules/nrfx/drivers/src/nrfx_spi.c
/**
* Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following con... | 7,091 |
506 | // https://cses.fi/problemset/task/1142/
#include <iostream>
#include <stack>
#include <tuple>
#include <vector>
using namespace std;
typedef stack<int> si;
typedef vector<int> vi;
typedef long long ll;
int main() {
int n; cin >> n;
vi v(n+1, 0);
for (int i = 0; i < n; i++) cin >> v[i];
ll m = 0;
si s;
f... | 280 |
701 | #pragma once
#include <brutal/base.h>
// doc: https://www.amd.com/system/files/TechDocs/25481.pdf
typedef struct
{
bool succ;
uint32_t eax;
uint32_t ebx;
uint32_t ecx;
uint32_t edx;
} CpuidResult;
enum cpuid_leaf
{
CPUID_FEATURE_IDENTIFIER = 1,
CPUID_EXTENDED_FEATURE_IDENTIFIER = 7,
... | 636 |
1,511 | /* Shared library add-on to iptables to add TTL matching support
* (C) 2000 by <NAME> <<EMAIL>>
*
* This program is released under the terms of GNU GPL */ | 45 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.