idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
85,271
public KubernetesCheckNumPod createKubernetesCheckPodNumTask(KubernetesCheckNumPod.CommandType commandType, String az, Map<String, String> config, int numPods) {<NEW_LINE>KubernetesCheckNumPod.Params params = new KubernetesCheckNumPod.Params();<NEW_LINE>UniverseDefinitionTaskParams.Cluster primary = taskParams().getPri...
task = createTask(KubernetesCheckNumPod.class);
60,122
public static Map<String, Object> populateNameValueMap(Object... values) {<NEW_LINE>Map<String, Object> result = new <MASK><NEW_LINE>int count = values.length / 2;<NEW_LINE>if (values.length != count * 2) {<NEW_LINE>throw new IllegalArgumentException("Expected an event number of name-value pairs");<NEW_LINE>}<NEW_LINE>...
LinkedHashMap<String, Object>();
790,255
final ListControlInsightsByControlDomainResult executeListControlInsightsByControlDomain(ListControlInsightsByControlDomainRequest listControlInsightsByControlDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listControlInsightsByControlDomainRequest);<NEW_LINE>AWSRequestMetrics awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,683,259
// Returns true if a segment of multipathA intersects point_b.<NEW_LINE>static boolean linearPathIntersectsPoint_(MultiPath multipathA, Point2D ptB, double tolerance) {<NEW_LINE>Point2D closest = new Point2D();<NEW_LINE>double toleranceSq = tolerance * tolerance;<NEW_LINE>SegmentIteratorImpl segIterA = ((MultiPathImpl)...
segmentA.getCoord2D(t, closest);
1,247,041
private Optional<String> figureUsernameGrantParam(final PwmRequest pwmRequest, final UserIdentity userIdentity) throws PwmUnrecoverableException {<NEW_LINE>if (userIdentity == null) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final String macroText = settings.getUsernameSendValue();<NEW_LINE>if (StringUtil....
(sessionLabel, () -> "preparing to send username to OAuth /sign endpoint for future injection to /grant redirect");
1,559,394
final CreateLoadBalancerListenersResult executeCreateLoadBalancerListeners(CreateLoadBalancerListenersRequest createLoadBalancerListenersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLoadBalancerListenersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,785,356
public static <T> T run(boolean parallel, int N, LoopChunkReducer<T> lcr, BinaryOperator<T> reducer, ExecutorService threadPool) {<NEW_LINE>if (!parallel) {<NEW_LINE>return lcr.run(0, N);<NEW_LINE>}<NEW_LINE>int cores_to_use = Math.min(SystemInfo.LogicalCores, N);<NEW_LINE>final List<Future<T>> futures = new ArrayList<...
lcr.run(start, end);
106,475
final ActivityTypeDetail executeDescribeActivityType(DescribeActivityTypeRequest describeActivityTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeActivityTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMet...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
57,165
final AssociateConnectionWithLagResult executeAssociateConnectionWithLag(AssociateConnectionWithLagRequest associateConnectionWithLagRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateConnectionWithLagRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
false), new AssociateConnectionWithLagResultJsonUnmarshaller());
503,485
public void onPurchaseResponse(final PurchaseResponse response) {<NEW_LINE>final String requestId = response.getRequestId().toString();<NEW_LINE>final String userId = response.getUserData().getUserId();<NEW_LINE>final PurchaseResponse.RequestStatus status = response.getRequestStatus();<NEW_LINE>Log.d(TAG, "onPurchaseRe...
i(TAG, "onPurchaseResponse: already purchased, you should verify the subscription " + "purchase on your side and make sure the purchase was granted to customer");
430,338
public PaymentRequestInformation fromCallback(String callbackURL) {<NEW_LINE>URL url;<NEW_LINE>url = checkUrl(callbackURL);<NEW_LINE>Request request = new Request.Builder().url(url).addHeader("Accept", MIME_PAYMENTREQUEST).build();<NEW_LINE>try {<NEW_LINE>final OkHttpClient httpClient;<NEW_LINE>httpClient = getHttpClie...
"could not fetch the payment request from " + url.toString());
266,071
public void onRequest(boolean https, String address, String hostname, ArrayList<String> headers) {<NEW_LINE>ArrayList<HttpCookie> cookies = RequestParser.getCookiesFromHeaders(headers);<NEW_LINE>// got any cookie ?<NEW_LINE>if (cookies != null && cookies.size() > 0) {<NEW_LINE>String domain = cookies.get(0).getDomain()...
cookies) cooky.setDomain(domain);
1,206,394
protected InternalFormat.Formatter handleSingleCharacterFormat(Spec spec) {<NEW_LINE>InternalFormat.Formatter f;<NEW_LINE>TextFormatter ft;<NEW_LINE>Object arg = getArg();<NEW_LINE>if (arg instanceof String && isOneCharacter((String) arg)) {<NEW_LINE>f = ft = setupFormat(new TextFormatter(raiseNode, buffer, spec));<NEW...
TextFormatter(raiseNode, buffer, spec);
1,445,271
static void addQuery(String loader, String primary, String secondary, LanguageCompilerSpecQuery query) {<NEW_LINE>Map<String, Map<String, Set<QueryResult>>> loadersByName = DATABASE.get(loader);<NEW_LINE>if (loadersByName == null) {<NEW_LINE><MASK><NEW_LINE>DATABASE.put(loader, loadersByName);<NEW_LINE>}<NEW_LINE>Map<S...
loadersByName = new HashMap<>();
1,135,394
public void runHandle() {<NEW_LINE>StringBuilder multi = new StringBuilder();<NEW_LINE>CounterProxy[] proxies;<NEW_LINE>int i = 0;<NEW_LINE>// this is to make sure the number of events does not change while logging<NEW_LINE>synchronized (this) {<NEW_LINE>proxies = new CounterProxy[subEvents.size()];<NEW_LINE>i = 0;<NEW...
), multi.toString());
1,600,006
public Request<DeleteInstanceEventWindowRequest> marshall(DeleteInstanceEventWindowRequest deleteInstanceEventWindowRequest) {<NEW_LINE>if (deleteInstanceEventWindowRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DeleteInstanceEventWindow...
request.addParameter("Action", "DeleteInstanceEventWindow");
21,483
public Object calculate(Context ctx) {<NEW_LINE>Object o1 = null, o2 = null;<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("spearman" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>o1 = param.getLeafExpression()....
sub1 = param.getSub(0);
334,834
public boolean initOnce() throws Exception {<NEW_LINE>Class<?> kAIOGalleryActivity = Initiator.load("com.tencent.mobileqq.richmediabrowser.AIOGalleryActivity");<NEW_LINE>if (kAIOGalleryActivity != null) {<NEW_LINE>// for QQ >= 8.3.5<NEW_LINE>Class<?> kBrowserBaseScene = Initiator.loadClass("com.tencent.richmediabrowser...
legacyAIOGalleryActivity = Initiator.load("com.tencent.mobileqq.activity.aio.photo.AIOGalleryActivity");
1,441,950
final DeleteServiceResult executeDeleteService(DeleteServiceRequest deleteServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteServiceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteService");
343,204
private void drainConduitToNearestExternal(@Nonnull GasConduit con, List<LocatedGasHandler> externals) {<NEW_LINE>BlockPos conPos = con.getBundle().getLocation();<NEW_LINE>GasStack toDrain = con.getTank().getGas();<NEW_LINE>if (toDrain == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int closestDistance = Integer.MAX_VA...
toDrain.copy(), true);
498,148
private void limit_1rps_concurrent() {<NEW_LINE>RateLimiterConfig config = RateLimiterConfig.custom().limitForPeriod(1).limitRefreshPeriod(Duration.ofSeconds(1)).timeoutDuration(Duration.ofMillis(50)).build();<NEW_LINE>RateLimiterRegistry registry = RateLimiterRegistry.of(config);<NEW_LINE>RateLimiter limiter = registr...
-> service.searchFlights(request));
1,608,506
public static void testTask(HugeGraph graph) throws InterruptedException {<NEW_LINE>Id id = IdGenerator.of(8);<NEW_LINE>String callable = "com.baidu.hugegraph.example.TaskExample$TestTask";<NEW_LINE>HugeTask<?> task = new HugeTask<>(id, null, callable, "test-parameter");<NEW_LINE>task.type("type-1");<NEW_LINE>task.name...
TaskScheduler scheduler = graph.taskScheduler();
193,673
public void createRoom(AccountJid account, EntityBareJid room, Resourcepart nickname, String password, boolean join) {<NEW_LINE>removeInvite(getInvite(account, room));<NEW_LINE>AbstractChat chat = null;<NEW_LINE>try {<NEW_LINE>chat = MessageManager.getInstance().getChat(account<MASK><NEW_LINE>} catch (UserJid.UserJidCr...
, UserJid.from(room));
1,484,403
public void run() throws Exception {<NEW_LINE>final Stopwatch w = Stopwatch.createStarted();<NEW_LINE>logger.debug("Startup begun.");<NEW_LINE>gracefulShutdownThread = new GracefulShutdownThread(this, new StackTrace());<NEW_LINE>coord.start(10000);<NEW_LINE>stateManager.setState(DrillbitState.ONLINE);<NEW_LINE>storePro...
DrillbitEndpoint md = engine.start();
212,108
private static void printTagList(final String id, final String tagName, final int comp, final int max, final boolean opt) {<NEW_LINE>if (sb.bookmarksDB == null) {<NEW_LINE>prop.put("display_" + id, 0);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int count = 0;<NEW_LINE>final Iterator<BookmarksDB.Tag> it;<NEW_LINE>if ("".equal...
getTagIterator(isAdmin, comp, max);
1,031,780
public static GridFieldVO createParameter(final Properties ctx, final int WindowNo, final int tabNo, final ResultSet rs) {<NEW_LINE>final AdWindowId adWindowId = null;<NEW_LINE>final int adTabId = 0;<NEW_LINE>final boolean tabReadOnly = false;<NEW_LINE>// because it's used only in Swing UI<NEW_LINE>final boolean applyR...
VFormat = rs.getString("VFormat");
1,053,609
public void processDirectory(@NotNull final File directory) {<NEW_LINE>try {<NEW_LINE>logger.log(SentryLevel.DEBUG, "Processing dir. %s", directory.getAbsolutePath());<NEW_LINE>if (!directory.exists()) {<NEW_LINE>logger.log(SentryLevel.WARNING, "Directory '%s' doesn't exist. No cached events to send.", directory.getAbs...
= new SendCachedEnvelopeHint(flushTimeoutMillis, logger);
1,131,807
private static InputDescriptor<OpMessage<String>, ?> createDummyStreamDescriptor(String id) {<NEW_LINE>final GenericSystemDescriptor dummySystem = new GenericSystemDescriptor(id, InMemorySystemFactory.class.getName());<NEW_LINE>final GenericInputDescriptor<OpMessage<String>> dummyInput = dummySystem.getInputDescriptor(...
withOffsetDefault(SystemStreamMetadata.OffsetType.OLDEST);
141,986
public void run() {<NEW_LINE>List<Registrar> dirtyRegistrars = Streams.stream(Registrar.loadAllCached()).filter(registrar -> registrar.isLive() && registrar.getContactsRequireSyncing() && registrar.getType() == Registrar.Type.REAL).collect(toImmutableList());<NEW_LINE>if (dirtyRegistrars.isEmpty()) {<NEW_LINE>sendRespo...
log(e.getMessage());
119,529
private void calcSizes(Rectangle cardSize) {<NEW_LINE>// small mode takes 20% of card's sizes diff<NEW_LINE>boolean smallMode = false;<NEW_LINE>int maxW = GUISizeHelper.battlefieldCardMaxDimension.width;<NEW_LINE>int minW = GUISizeHelper.battlefieldCardMinDimension.width;<NEW_LINE>if (minW > maxW) {<NEW_LINE>// on wron...
min(1, this.calcedCellsOffset);
916,248
private Set<HuId> createCUsBatch(final HUEditorRow.HUEditorRowHierarchy huEditorRowHierarchy, final int maxCUsAllowedPerBatch) {<NEW_LINE>final Set<HuId> splitCUIDs = new HashSet<>();<NEW_LINE>final IHandlingUnitsDAO handlingUnitsDAO = Services.get(IHandlingUnitsDAO.class);<NEW_LINE>final HUEditorRow cuRow = huEditorRo...
isTU(), " Parent row must be TU: " + parentRow);
786,432
public void computePairwiseGraph() {<NEW_LINE>System.out.println("----------------------------------------------------------------------------");<NEW_LINE><MASK><NEW_LINE>var config = new ConfigGeneratePairwiseImageGraph();<NEW_LINE>GeneratePairwiseImageGraph generatePairwise = FactorySceneReconstruction.generatePairwi...
System.out.println("### Creating Pairwise");
1,377,114
public Organizations buildOrganization(FeishuDepts dept) {<NEW_LINE>// Parent<NEW_LINE>SynchroRelated synchroRelatedParent = synchroRelatedService.findByOriginId(this.synchronizer, dept.getParent_department_id(), Organizations.CLASS_TYPE);<NEW_LINE>Organizations org = new Organizations();<NEW_LINE>org.setCode(dept.getD...
setName(dept.getName());
198,851
private Expression toRows(PhysType physType, Expression expression) {<NEW_LINE>if (physType.getFormat() == JavaRowFormat.SCALAR && Object[].class.isAssignableFrom(elementType) && getRowType().getFieldCount() == 1 && (table.unwrap(ScannableTable.class) != null || table.unwrap(FilterableTable.class) != null || table.unwr...
, i, physType, oldFormat));
1,520,639
protected boolean isDragPossible(MouseEvent e) {<NEW_LINE>JComponent comp = getEventComponent(e);<NEW_LINE>boolean possible = (comp == null) ? false : (comp.getTransferHandler() != null);<NEW_LINE>if (possible) {<NEW_LINE>JTextComponent c = (JTextComponent) getEventComponent(e);<NEW_LINE>if (c.getDragEnabled()) {<NEW_L...
int dot = caret.getDot();
20,267
public static // read L1 norm result<NEW_LINE>double read_l1norm_result(Configuration conf) throws Exception {<NEW_LINE>Path l2norm_output = new Path("l1norm_output");<NEW_LINE>FileSystem lfs = FileSystem.getLocal(conf);<NEW_LINE>// read the result<NEW_LINE>String local_output_path = "l1norm";<NEW_LINE>lfs.delete(new P...
new Path("l1norm/"), true);
518,197
public static ExecutionRequest mapExecutionRequest(final EntityResponse entityResponse) {<NEW_LINE>final Urn entityUrn = entityResponse.getUrn();<NEW_LINE>final EnvelopedAspectMap aspects = entityResponse.getAspects();<NEW_LINE>final ExecutionRequest result = new ExecutionRequest();<NEW_LINE>result.setUrn(entityUrn.toS...
(executionRequestInput.getSource()));
794,977
static byte[] toByteArray(final ReqSketch sk) {<NEW_LINE>final SerDeFormat serDeFormat = getSerFormat(sk);<NEW_LINE>final int bytes = getSerBytes(sk, serDeFormat);<NEW_LINE>final byte[] arr = new byte[bytes];<NEW_LINE>final WritableBuffer wbuf = WritableMemory.writableWrap(arr).asWritableBuffer();<NEW_LINE>final byte p...
final byte flags = getFlags(sk);
929,220
protected static void implMulw(long[] u, long x, long y, long[] z, int zOff) {<NEW_LINE>// assert x >>> 45 == 0;<NEW_LINE>// assert y >>> 45 == 0;<NEW_LINE>// u[0] = 0;<NEW_LINE>u[1] = y;<NEW_LINE>u[2] = u[1] << 1;<NEW_LINE>u[3] = u[2] ^ y;<NEW_LINE>u[4] = u[2] << 1;<NEW_LINE>u[5] = u[4] ^ y;<NEW_LINE>u[6] = u[3] << 1;...
(k -= 15) > 0);
1,569,034
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>String epl = "@name('s0') select " + "value < all (select sum(intPrimitive) from SupportBean#keepall group by theString having last(theString) not in ('E1', 'E3')) as c0, " + "value < any (select sum(intPrimitive) fr...
{ true, true, true });
1,216,119
public void read(OChannelDataInput network, OStorageRemoteSession session) throws IOException {<NEW_LINE>txId = network.readInt();<NEW_LINE>final int createdRecords = network.readInt();<NEW_LINE>created = new ArrayList<>(createdRecords);<NEW_LINE>ORecordId currentRid;<NEW_LINE>ORecordId createdRid;<NEW_LINE>for (int i ...
ORecordId rid = network.readRID();
1,312,333
protected void saveFile(boolean sendToPrinter, BaseFiducialSquare c) {<NEW_LINE>if (sendToPrinter) {<NEW_LINE>if (controls.format.compareToIgnoreCase("pdf") != 0) {<NEW_LINE>JOptionPane.showMessageDialog(this, "Must select PDF document type to print");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>File f = Fil...
defaultSaveName + "." + controls.format);
1,624,833
public final BeanDefinition parse(Element element, ParserContext parserContext) {<NEW_LINE>AbstractBeanDefinition definition = parseInternal(element, parserContext);<NEW_LINE>if (definition != null && !parserContext.isNested()) {<NEW_LINE>try {<NEW_LINE>String id = resolveId(element, definition, parserContext);<NEW_LIN...
BeanDefinitionHolder(definition, id, aliases);
912,479
public VocabularyInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>VocabularyInfo vocabularyInfo = new VocabularyInfo();<NEW_LINE>reader.beg...
().unmarshall(context));
1,222,822
final ListResolversResult executeListResolvers(ListResolversRequest listResolversRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResolversRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
548,276
public int compareTo(rpc_record_block other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetTimeBlock()).compareTo(other.isSetTimeBlock...
this.data, other.data);
545,697
static long evaluate_inter_mode(VarianceResults ret, int rate2, Compressor cpi, Macroblock x, int rd_adj) {<NEW_LINE>ModeInfo currentMI = x.e_mbd.mode_info_context.get();<NEW_LINE>MBPredictionMode this_mode = currentMI.mbmi.mode;<NEW_LINE>MV mv = currentMI.mbmi.mv;<NEW_LINE>long this_rd;<NEW_LINE>if (cpi.repeatFrameDet...
.BLOCK_16X16), ret, mv);
1,265,543
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LI...
ExceptionAccessDenied(effectivePerson.getName());
1,006,951
private void insertRequestModel(Operation operation, Map<String, Object> model) {<NEW_LINE>OperationRequest request = operation.getRequest();<NEW_LINE>model.put("request_method", request.getMethod());<NEW_LINE>model.put("request_url", prepareRequestUrl(request.getUri()));<NEW_LINE>String rawQuery = request.getUri().get...
getAttributes().get("contract.jsonPaths");
25,963
private void showFilter() {<NEW_LINE>filterButton.setSelected(true);<NEW_LINE>final JTextField f = new JTextField();<NEW_LINE>f.getDocument().addDocumentListener(new DocumentListener() {<NEW_LINE><NEW_LINE>public void insertUpdate(DocumentEvent e) {<NEW_LINE>changed();<NEW_LINE>}<NEW_LINE><NEW_LINE>public void removeUp...
.add(getComponent(i));
62,718
private Expr castTo(LiteralExpr value) throws AnalysisException {<NEW_LINE>if (value instanceof NullLiteral) {<NEW_LINE>return value;<NEW_LINE>} else if (type.isIntegerType()) {<NEW_LINE>return new IntLiteral(<MASK><NEW_LINE>} else if (type.isLargeIntType()) {<NEW_LINE>return new LargeIntLiteral(value.getStringValue())...
value.getLongValue(), type);
999,794
private void doQueryForMBeanOperations(JMXSecurityMBean jmxSec, Map<String, Map<String, Object>> domains, Map<String, Map<String, Object>> rbacCache, Map<String, List<String>> queryForMBeanOperations) throws Exception {<NEW_LINE>TabularData dataForMBeanOperations = jmxSec.canInvoke(queryForMBeanOperations);<NEW_LINE>Co...
"{} {} - {}", objectName, method, canInvoke);
3,483
private void lowerReduceSnippets(StoreAtomicIndexedNode storeIndexed, LoweringTool tool) {<NEW_LINE><MASK><NEW_LINE>ValueNode startIndexNode = storeIndexed.getStartNode();<NEW_LINE>// Find Get Global ID node and Global Size;<NEW_LINE>GlobalThreadIdNode oclIdNode = graph.getNodes().filter(GlobalThreadIdNode.class).first...
StructuredGraph graph = storeIndexed.graph();
456,228
public int visit(DisjointPattern sibDP, Constructor sibcons) {<NEW_LINE>// Do not forbid myself.<NEW_LINE>if (sibcons == cons) {<NEW_LINE>return CONTINUE;<NEW_LINE>}<NEW_LINE>// If the two patterns cannot be combined, then they are disjoint.<NEW_LINE>AssemblyResolvedPatterns sibpat = AssemblyResolution.fromPattern(sibD...
getMinimumLength(), "For specialization check", sibcons);
1,659,413
protected File resolveRelativeURI(URI locationURI, FileObject sourceFileObject) throws CatalogModelException, FileNotFoundException {<NEW_LINE>File result = null;<NEW_LINE>if (!locationURI.isAbsolute()) {<NEW_LINE>// this might be a relative file location<NEW_LINE>if (sourceFileObject == null)<NEW_LINE>throw new Catalo...
resultURI = sourceFileObjectURI.resolve(locationURI);
1,017,811
public ImmutableMarketData marketData(RatesCurveGroupDefinition group, RatesProvider inputProvider, ReferenceData refData) {<NEW_LINE>// Retrieve the set of required indices and the list of required currencies<NEW_LINE>Set<Index> indicesRequired = new HashSet<>();<NEW_LINE>List<Currency> ccyRequired = new ArrayList<>()...
ts = new HashMap<>();
896,789
private void runtimeTuningUpdate() {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>AutoTuneCollection profiling = profileManager.profilingCollection(false);<NEW_LINE>AutoTuneDiffCollection event = new AutoTuneDiffCollection(profiling, queryTuner, true);<N...
getDiffCount(), serverName, exeMillis);
1,362,045
public Runnable createNonPersistantTimerContextualProxy(TimerNpSERunnable taskHandler) {<NEW_LINE>Runnable proxy = null;<NEW_LINE>WSContextService contextService = nonPersistentContextServiceRef.getService();<NEW_LINE>if (contextService != null) {<NEW_LINE>TimerNpImpl tmr = taskHandler.getNpTimer();<NEW_LINE>BeanMetaDa...
.getMethod().getName();
1,265,068
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select longPrimitive as c0, sum(intPrimitive) as c1 " + "from SupportBean group by rollup(case when longPrimitive > 0 then 1 else 0 end)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement -> as...
, { null, 1 } });
588,976
public void writeBar3DPlot(JRBar3DPlot plot) throws IOException {<NEW_LINE>writer.startElement(JRXmlConstants.ELEMENT_bar3DPlot, getNamespace());<NEW_LINE>writer.addAttribute(JRXmlConstants.ATTRIBUTE_isShowLabels, plot.getShowLabels());<NEW_LINE>writer.addAttribute(JRXmlConstants.ATTRIBUTE_xOffset, plot.getXOffsetDoubl...
), plot.getOwnCategoryAxisLineColor());
129,663
private int addSuperType(RootNode root, List<ArgType> superTypesMap, Set<String> endTypes, ArgType superType) {<NEW_LINE>if (Objects.equals(superType, ArgType.OBJECT)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>superTypesMap.add(superType);<NEW_LINE>ClassNode classNode = root.resolveClass(superType);<NEW_LINE>if (classNo...
collectSuperTypes(classNode, superTypesMap, endTypes);
438,653
private <T> T valueAs(SqlNode node, Class<T> clazz) {<NEW_LINE>final SqlLiteral literal;<NEW_LINE>switch(node.getKind()) {<NEW_LINE>case ARRAY_VALUE_CONSTRUCTOR:<NEW_LINE>final List<Object> list = new ArrayList<>();<NEW_LINE>for (SqlNode o : ((SqlCall) node).getOperandList()) {<NEW_LINE>list.add(valueAs(o, Object.class...
> builder2 = ImmutableMap.builder();
712,695
private ErrorCode checkAuthorityIssuerArgsValidity(AuthorityIssuer args) {<NEW_LINE>if (args == null) {<NEW_LINE>return ErrorCode.ILLEGAL_INPUT;<NEW_LINE>}<NEW_LINE>if (!WeIdUtils.isWeIdValid(args.getWeId())) {<NEW_LINE>return ErrorCode.WEID_INVALID;<NEW_LINE>}<NEW_LINE>String name = args.getName();<NEW_LINE>if (!isVal...
logger.error("accValue is invalid.", e);
1,016,588
public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallStaticBooleanMethod clazz=" + clazz + ",...
ret = dvmMethod.CallStaticBooleanMethod(varArg);
1,691,300
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (mSelectedRecording == null) {<NEW_LINE>JOptionPane.showMessageDialog(AddRecordingTunerDialog.this, "Please select a recording file", "Select a Recording File", JOptionPane.ERROR_MESSAGE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long frequency = getFrequency();<NEW_...
mLog.error("Error adding recording tuner", ex);
1,160,889
private DefaultUsage toDefaultUsage(final Usage input) {<NEW_LINE>final DefaultUsage result = new DefaultUsage();<NEW_LINE>result.setName(input.getName());<NEW_LINE>result.setBillingMode(input.getBillingMode());<NEW_LINE>result.setBillingPeriod(input.getBillingPeriod());<NEW_LINE>result.setUsageType(input.getUsageType(...
(input.getRecurringPrice()));
469,789
// @see com.biglybt.pif.Plugin#initialize(com.biglybt.pif.PluginInterface)<NEW_LINE>@Override<NEW_LINE>public void initialize(PluginInterface _plugin_interface) throws PluginException {<NEW_LINE>plugin_interface = _plugin_interface;<NEW_LINE>plugin_interface.getPluginProperties().setProperty("plugin.name", "Platform-Sp...
PlatformManager platform = PlatformManagerFactory.getPlatformManager();
1,143,292
public static ArrayList<DAGNode> topoSort(final Collection<? extends DAGNode> nodes) {<NEW_LINE>final ArrayList<DAGNode> topoOrder = new ArrayList<DAGNode>(nodes.size());<NEW_LINE>final HashSet<DAGNode> visited = new HashSet<DAGNode>();<NEW_LINE>for (final DAGNode node : nodes) {<NEW_LINE>if (node.directSuperNodes.isEm...
tmp = topoOrder.get(i);
1,305,326
protected void initForm() {<NEW_LINE>this.setHeight("100%");<NEW_LINE>Borderlayout layout = new Borderlayout();<NEW_LINE>layout.setStyle("width: 100%; height: 100%; position: absolute;");<NEW_LINE>appendChild(layout);<NEW_LINE>String sql = // all<NEW_LINE>MRole.getDefault().// all<NEW_LINE>addAccessSQL(// all<NEW_LINE>...
ConfirmPanel confirmPanel = new ConfirmPanel(true);
851,387
public static Object value(final HttpServletRequest request, final String name) {<NEW_LINE>Object value = request.getAttribute(name);<NEW_LINE>if (value != null) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>if (isMultipartRequest(request)) {<NEW_LINE>try {<NEW_LINE>final MultipartRequest multipartRequest = MultipartReq...
params = request.getParameterValues(name);
1,334,242
private Throwable createThrowable(String typeName, String message) throws IllegalAccessException, InvocationTargetException, InstantiationException, ClassNotFoundException {<NEW_LINE>Class<? extends Throwable> clazz = resolveThrowableClass(typeName);<NEW_LINE>Constructor<? extends <MASK><NEW_LINE>Constructor<? extends ...
Throwable> defaultCtr = getDefaultConstructor(clazz);
1,389,343
public void testisUserNotInRoleLDAPWar2() throws Exception {<NEW_LINE>Log.info(logClass, getCurrentTestName(), "-----Entering " + getCurrentTestName());<NEW_LINE><MASK><NEW_LINE>Log.info(logClass, getCurrentTestName(), "-------------Executing BasicAuthCreds");<NEW_LINE>String response = executeGetRequestBasicAuthCreds(...
String queryString = EJB_WAR2_PATH + SIMPLE_SERVLET2 + "?testInstance=ejb03&testMethod=manager";
548,104
public I_C_Print_Job_Instructions createPrintJobInstructions(@Nullable final UserId userToPrintId, final boolean createWithSpecificHostKey, @NonNull final I_C_Print_Job_Line firstLine, @NonNull final I_C_Print_Job_Line lastLine, final int copies) {<NEW_LINE>Check.assume(firstLine.getSeqNo() <= lastLine.getSeqNo(), "Fir...
instructions.setStatus(X_C_Print_Job_Instructions.STATUS_Pending);
689,523
final UpdateConnectionResult executeUpdateConnection(UpdateConnectionRequest updateConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
967,317
public static NDList predictorForward(PaddlePredictor predictor, PpNDArray[] inputs, String[] inputNames) {<NEW_LINE>long[] inputHandles = new long[inputs.length];<NEW_LINE>for (int i = 0; i < inputs.length; i++) {<NEW_LINE>inputs[i].setName(inputNames[i]);<NEW_LINE>inputHandles[i] = inputs[i].getHandle();<NEW_LINE>}<N...
predictor.getHandle(), inputHandles);
163,764
final DeleteServerCertificateResult executeDeleteServerCertificate(DeleteServerCertificateRequest deleteServerCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteServerCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);
1,711,057
public void onCompletion(Void result, Exception exception) {<NEW_LINE>long processingStartTimeMs = SystemTime.getInstance().milliseconds();<NEW_LINE>metrics.getSignedUrlSecurityPostProcessRequestTimeInMs.update(processingStartTimeMs - operationStartTimeMs);<NEW_LINE>try {<NEW_LINE>if (exception == null) {<NEW_LINE>Stri...
callback.onCompletion(null, processResponseException);
168,692
public void rightClickBlock(GlowPlayer player, GlowBlock target, BlockFace face, ItemStack holding, Vector clickedLoc, EquipmentSlot hand) {<NEW_LINE><MASK><NEW_LINE>if (data instanceof Dye) {<NEW_LINE>Dye dye = (Dye) data;<NEW_LINE>if (dye.getColor() == DyeColor.WHITE && player.getGameMode() != GameMode.ADVENTURE) {<N...
MaterialData data = holding.getData();
807,756
private void processPegInVersionLegacy(BtcTransaction btcTx, Transaction rskTx, int height, PeginInformation peginInformation, Coin totalAmount) throws IOException, RegisterBtcTransactionException {<NEW_LINE>Address senderBtcAddress = peginInformation.getSenderBtcAddress();<NEW_LINE>TxSenderAddressType senderBtcAddress...
logRejectedPegin(btcTx, RejectedPeginReason.PEGIN_CAP_SURPASSED);
1,835,266
private void loadConfigValueType(final MapPack param) {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>MapPack pack = null;<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>pack = (MapPack) tcp.getSingle(RequestCmd.CONFIGURE_VALUE_TYPE, param);<N...
String key = keys.next();
530,337
public Map<String, Mat> predict(Map<String, Mat> input) {<NEW_LINE>var net = getNet();<NEW_LINE>// If we have one input and one output, use simpler method<NEW_LINE>if (input.size() == 1 && outputLayerNames.size() == 1) {<NEW_LINE>var output = predict(input.values().iterator().next());<NEW_LINE>return Map.of(outputLayer...
(name, new Mat());
792,804
private void warmStartServer() {<NEW_LINE>Future<Result> startFuture = server.start();<NEW_LINE>try {<NEW_LINE>result = startFuture.get(SERVER_START_TIMEOUT, SERVER_START_TIMEOUT_UNIT);<NEW_LINE>dumpResult("Starting a server", result);<NEW_LINE>Assert.assertTrue("Result of start attempt should be successful", result.su...
new AssertionFailedError("Start operation did not complete normally: " + e));
273,903
private static FileObject findModuleAsFile(final FileObject fromModule, final String module) {<NEW_LINE>FileObject parentFO = fromModule.isFolder() ? fromModule : fromModule.getParent();<NEW_LINE>if (parentFO != null) {<NEW_LINE>FileObject resultFO = parentFO.getFileObject(module);<NEW_LINE>if (resultFO != null && !res...
getFileObject(module + '.' + JS_EXT);
953,831
private RefactoringStatus initialize(JavaRefactoringArguments arguments) {<NEW_LINE>final String selection = arguments.getAttribute(JavaRefactoringDescriptorUtil.ATTRIBUTE_SELECTION);<NEW_LINE>if (selection != null) {<NEW_LINE>int offset = -1;<NEW_LINE>int length = -1;<NEW_LINE>final StringTokenizer tokenizer = new Str...
getName(), IJavaRefactorings.EXTRACT_CONSTANT);
388,495
private Mono<Response<Flux<ByteBuffer>>> startWithResponseAsync(String resourceGroupName, String networkWatcherName, String connectionMonitorName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.er...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,260,857
public com.squareup.okhttp.Call userCommunicationTokenCall(String token, String platformAgent, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path a...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1,100,115
public DescribeInsightRulesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeInsightRulesResult describeInsightRulesResult = new DescribeInsightRulesResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth...
int originalDepth = context.getCurrentDepth();
1,649,478
List<WorkflowAction> filterActions(final List<WorkflowAction> actions, final User user, final boolean respectFrontEndRoles, final Permissionable permissionable) throws DotDataException {<NEW_LINE>if ((user != null) && roleAPI.doesUserHaveRole(user, cmsAdminRole)) {<NEW_LINE>Logger.debug(this, () -> "user:" + user.getUs...
(this, () -> " No actions were passed. ");
830,433
private void updateMultiConsumers(DBRProgressMonitor monitor, DataTransferPipe pipe, File[] files) {<NEW_LINE>final StreamProducerSettings producerSettings = getWizard().getPageSettings(this, StreamProducerSettings.class);<NEW_LINE>IDataTransferConsumer<?, ?> originalConsumer = pipe.getConsumer();<NEW_LINE>DataTransfer...
getNodeSettings(dtSettings.getConsumer());
69,755
public Graph unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Graph graph = new Graph();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
"iso8601").unmarshall(context));
959,477
private void readMap(DataReader reader) throws IOException {<NEW_LINE>logger.fine("Map section; at offset " + reader.getByteOffset());<NEW_LINE>reader.readOpeningTag(TAG_MAP);<NEW_LINE>dtaMap = new DTADataMap();<NEW_LINE>long dta_offset_stata_data = reader.readULong();<NEW_LINE>logger.fine("dta_offset_stata_data: " + d...
long dta_offset_characteristics = reader.readULong();
364,986
public TeradataParameters unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TeradataParameters teradataParameters = new TeradataParameters();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get...
String currentParentElement = context.getCurrentParentElement();
998,688
GhidraFile copyTo(GhidraFolderData newParentData, TaskMonitor monitor) throws IOException, CancelledException {<NEW_LINE>synchronized (fileSystem) {<NEW_LINE>if (newParentData.getLocalFileSystem().isReadOnly()) {<NEW_LINE>throw new ReadOnlyException("copyVersionTo permitted to writeable project only");<NEW_LINE>}<NEW_L...
String contentType = item.getContentType();
372,271
public void run() throws DDlogException {<NEW_LINE>// Insert something in the input table<NEW_LINE>this.api.transactionStart();<NEW_LINE>DDlogRecCommand[] c1 = this.createCommand(DDlogCommand.Kind.Insert, "AI", 0, 1);<NEW_LINE>this.api.applyUpdates(c1);<NEW_LINE>// Apply the changes and get the result<NEW_LINE>DDlogAPI...
] clone = new DDlogRecord[1];
1,840,638
public void start(BundleContext bc) {<NEW_LINE>this.bundleContext = bc;<NEW_LINE>ServiceReference refConfig = bundleContext.getServiceReference(ConfigurationService.class.getName());<NEW_LINE>configService = (ConfigurationService) bundleContext.getService(refConfig);<NEW_LINE>// Check if the message history is enabled ...
getSettingsString(MessageHistoryService.PNAME_IS_MESSAGE_HISTORY_ENABLED)));
1,068,614
// pkg-private for tests<NEW_LINE>void storeDEK(String dekId, SecretKey dek) throws IOException {<NEW_LINE>final BlobPath dekBlobPath = delegatedBasePath.add<MASK><NEW_LINE>logger.debug("Repository [{}] storing wrapped DEK [{}] under blob path {}", repositoryName, dekId, dekBlobPath);<NEW_LINE>final BlobContainer dekBl...
(DEK_ROOT_CONTAINER).add(dekId);
645,020
public void run() {<NEW_LINE>List<String> listOptions = listActionConfig.listType;<NEW_LINE>if (listOptions == null) {<NEW_LINE>try {<NEW_LINE>printing.printAllSanitizedSecrets(keywhizClient.allSecrets());<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw Throwables.propagate(e);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<...
.toLowerCase().trim();
66,253
/*<NEW_LINE>private static RestClientBuilder buildRestClient(Elasticsearch settings) {<NEW_LINE>List<HttpHost> hosts = new ArrayList<>(settings.getNodes().size());<NEW_LINE>settings.getNodes().forEach(node -> hosts.add(HttpHost.create(node.decodedUrl())));<NEW_LINE><NEW_LINE>RestClientBuilder builder = RestClient.build...
setPathPrefix(settings.getPathPrefix());
1,430,194
private void rehash(final int newCapacity) {<NEW_LINE>final int mask = newCapacity - 1;<NEW_LINE>resizeThreshold = (int) (newCapacity * loadFactor);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final K[] tempKeys = (K[]) new Object[newCapacity];<NEW_LINE>final long[] tempValues = new long[newCapacity];<NEW_LINE>Arr...
final K key = keys[i];
126,602
public Matrix3 inv() {<NEW_LINE>float det = det();<NEW_LINE>if (det == 0)<NEW_LINE>throw new GdxRuntimeException("Can't invert a singular matrix");<NEW_LINE>float inv_det = 1.0f / det;<NEW_LINE>float[] tmp = this.tmp, val = this.val;<NEW_LINE>tmp[M00] = val[M11] * val[M22] - val[M21] * val[M12];<NEW_LINE>tmp[M10] = val...
] = inv_det * tmp[M00];