idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
76,460
protected Object resultByBlockNumber(final JsonRpcRequestContext requestContext, final long blockNumber) {<NEW_LINE>if (requestContext.getRequest().getParamLength() != 2) {<NEW_LINE>return new JsonRpcErrorResponse(requestContext.getRequest().getId(), JsonRpcError.INVALID_PARAMS);<NEW_LINE>}<NEW_LINE>final TraceCallMany...
).getId(), INTERNAL_ERROR);
546,329
private FlushJobAction.Response flushJob(FlushJobAction.Request flushRequest) {<NEW_LINE>try {<NEW_LINE>LOGGER.<MASK><NEW_LINE>try (ThreadContext.StoredContext ignore = client.threadPool().getThreadContext().stashWithOrigin(ML_ORIGIN)) {<NEW_LINE>return client.execute(FlushJobAction.INSTANCE, flushRequest).actionGet();...
trace("[" + jobId + "] Sending flush request");
426,721
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.<MASK><NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(source.getTargets().get(0).getTargets());<NEW_LINE>if (cards.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!game.getB...
getPlayer(source.getControllerId());
1,501,733
private boolean matchServiceLabels(V1Service service) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Kubernetes Service Label Properties:");<NEW_LINE>if (this.properties.getServiceLabels() != null) {<NEW_LINE>this.properties.getServiceLabels().forEach((key, value) -> log.debug(key + ":" + value));<NEW_LINE>...
).get(k)));
1,288,194
public void onChanged(final CdsUpdate update) {<NEW_LINE>class ClusterDiscovered implements Runnable {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (shutdown) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.log(XdsLogLevel.DEBUG, "Received cluster update {0}", update);<NEW_LINE>discovered = true;...
ClusterState childState = new ClusterState(cluster);
1,547,478
final CreateSiteToSiteVpnAttachmentResult executeCreateSiteToSiteVpnAttachment(CreateSiteToSiteVpnAttachmentRequest createSiteToSiteVpnAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSiteToSiteVpnAttachmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
endClientExecution(awsRequestMetrics, request, response);
867,312
private static int iterateToFixedPoint(List<InstructionBlock> blocks, int frameSize, BlockInfo[] blockInfos, ArrayList<InstructionBlock>[] predecessors) {<NEW_LINE>// by processing the graph bottom-up, we may reach a fixed point more quickly<NEW_LINE>ArrayDeque<InstructionBlock> workList = new ArrayDeque<>(blocks);<NEW...
blockInfos[block.getBlockIndex()];
549,274
private void populateStats() {<NEW_LINE>iter.reset();<NEW_LINE>int removedEntryCount = 0;<NEW_LINE>int maxSize = 0;<NEW_LINE>long totalBucketCount = 0;<NEW_LINE>int ordinal = iter.next();<NEW_LINE>while (ordinal != ORDINAL_NONE) {<NEW_LINE>removedEntryCount++;<NEW_LINE>int size = typeState.size(ordinal);<NEW_LINE>if (s...
bitsPerKeyElement = stateEngineDataElements[0].bitsPerKeyElement;
1,585,742
public Node<K, V> put(K key, V value, int hash, int bitsConsumed) {<NEW_LINE>int thisHash = keys[0].hashCode();<NEW_LINE>int keyIndex;<NEW_LINE>if (thisHash != hash) {<NEW_LINE>// Insert<NEW_LINE>return CompressedIndex.combine(new Leaf<>(key, value), hash, this, thisHash, bitsConsumed);<NEW_LINE>} else if ((keyIndex = ...
newKeys[keys.length] = key;
784,003
private void drawMapIcons(BufferedImage image, int drawBaseX, int drawBaseY, Region region, int z) {<NEW_LINE><MASK><NEW_LINE>int baseY = region.getBaseY();<NEW_LINE>Graphics2D graphics = image.createGraphics();<NEW_LINE>drawMapIcons(graphics, region, z, drawBaseX, drawBaseY);<NEW_LINE>if (labelRegions) {<NEW_LINE>grap...
int baseX = region.getBaseX();
1,491,272
public void cloneFields(Cloner cloner, Object original) {<NEW_LINE>// Clone all of the fields that need fix-ups and/or potential<NEW_LINE>// sharing.<NEW_LINE>this.<MASK><NEW_LINE>this.worldBound = cloner.clone(worldBound);<NEW_LINE>this.worldLights = cloner.clone(worldLights);<NEW_LINE>this.localLights = cloner.clone(...
parent = cloner.clone(parent);
121,911
public static ListClriskDatasourceTableResponse unmarshall(ListClriskDatasourceTableResponse listClriskDatasourceTableResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClriskDatasourceTableResponse.setRequestId(_ctx.stringValue("ListClriskDatasourceTableResponse.RequestId"));<NEW_LINE>listClriskDatasourceTableResponse...
("ListClriskDatasourceTableResponse.TableList[" + i + "]"));
637,003
protected void didBecomeActive(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.didBecomeActive(savedInstanceState);<NEW_LINE>presenter.squareClicks().subscribe(new Consumer<BoardCoordinate>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void accept(BoardCoordinate xy) throws Exception {<NEW_LINE>if (board.cells...
getY()] = MarkerType.NOUGHT;
708,488
private <T> AtomicReference<ImmutableUserData> computeUserRef(long userId, T newData, BiFunction<T, ImmutableUserData, ImmutableUserData> userUpdater) {<NEW_LINE>for (; ; ) {<NEW_LINE>AtomicReference<ImmutableUserData> existing = users.get(userId);<NEW_LINE>AtomicReference<ImmutableUserData> ref;<NEW_LINE>if (existing ...
userUpdater.apply(newData, oldUser);
1,093,814
public Object calculate(Context ctx) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>if (param == null || param.isLeaf() || param.getSubSize() < 4) {<NEW_LINE>throw new RQException("Fduration:" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>Object[] r...
sub = param.getSub(i);
697,181
protected void paintComponent(Graphics g0) {<NEW_LINE>super.paintComponent(g0);<NEW_LINE>// getX();<NEW_LINE>int x = 0;<NEW_LINE>// getY();<NEW_LINE>int y = 0;<NEW_LINE>int width = getWidth();<NEW_LINE>int height = getHeight();<NEW_LINE>// initialize<NEW_LINE>cachedImage = new BufferedImage(width, height, TYPE_INT_ARGB...
cachedImage, 0, 0, null);
1,041,216
public ExplainedOptional<NameAndGreeting> computeBPartnerNameAndGreeting(final I_C_BPartner_QuickInput bpartner) {<NEW_LINE>if (bpartner.isCompany()) {<NEW_LINE>final String companyname = bpartner.getCompanyname();<NEW_LINE>if (companyname == null || Check.isBlank(companyname)) {<NEW_LINE>return ExplainedOptional.empty...
.retrieveContactsByQuickInputId(extractBpartnerQuickInputId(bpartner));
127,576
public DescribeAnomalyDetectorsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAnomalyDetectorsResult describeAnomalyDetectorsResult = new DescribeAnomalyDetectorsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
XMLEvent xmlEvent = context.nextEvent();
1,583,727
private static void load(EscapeMode e, String pointsData, int size) {<NEW_LINE>e.nameKeys = new String[size];<NEW_LINE>e.codeVals = new int[size];<NEW_LINE>e.codeKeys = new int[size];<NEW_LINE>e.nameVals = new String[size];<NEW_LINE>int i = 0;<NEW_LINE>CharacterReader reader = new CharacterReader(pointsData);<NEW_LINE>...
e.codeKeys[index] = cp1;
597,183
void newPolyglotEngineInstance(ObjectReference engine, JPDAThreadImpl thread) {<NEW_LINE>LOG.log(Level.FINE, "Engine created breakpoint hit: engine = {0} in thread = {1}", new Object[] { engine, thread.getThreadReference() });<NEW_LINE>assert inited.get() : "The remote services should have been initialized already from...
iex, thread.getDebugger());
1,018,239
/*<NEW_LINE>* Determines the status of a snapshot for a date. If there was at least one successful snpashot for the date, snapshot<NEW_LINE>* for the date is considered completed.<NEW_LINE>* @param date date of the snapshot. Format of date is yyyymmdd<NEW_LINE>* @return {"Snapshotstatus":false} or {"Snapshotstatus":t...
MediaType.APPLICATION_JSON).build();
1,074,308
public DatasetVersion cloneDatasetVersion() {<NEW_LINE>DatasetVersion dsv = new DatasetVersion();<NEW_LINE>dsv.setVersionState(this.getPriorVersionState());<NEW_LINE>dsv.setFileMetadatas(new ArrayList<>());<NEW_LINE>if (this.getUNF() != null) {<NEW_LINE>dsv.setUNF(this.getUNF());<NEW_LINE>}<NEW_LINE>if (this.getDataset...
setDescription(fm.getDescription());
1,553,152
// start a pick and plop from the palette operation<NEW_LINE>void start(PaletteItem item, Point pt) {<NEW_LINE>// clean up prev is necessary<NEW_LINE>if (dragComponent != null) {<NEW_LINE>menuEditLayer.layers.remove(dragComponent);<NEW_LINE>dragComponent = null;<NEW_LINE>}<NEW_LINE>if (!menuEditLayer.doesFormContainMen...
null, item.getComponentClass());
913,678
protected boolean exist(Business business, EffectivePerson effectivePerson, String name, String superior, String excludeId) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Folder.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> cq = cb.crea...
createQuery(cq).getSingleResult();
3,048
protected void layoutNativeView(boolean informParent) {<NEW_LINE>if (nativeView != null) {<NEW_LINE>Animation a = nativeView.getAnimation();<NEW_LINE>if (a instanceof TiMatrixAnimation) {<NEW_LINE>TiMatrixAnimation matrixAnimation = (TiMatrixAnimation) a;<NEW_LINE>matrixAnimation.invalidateWithMatrix(nativeView);<NEW_L...
getViewTreeObserver().addOnGlobalLayoutListener(layoutListener);
1,614,116
public void invoke(@NotNull String line, @NotNull Repl api, @NotNull Supplier<@NotNull String> scanner) throws QuitReplException {<NEW_LINE>Concrete.Expression expr = api.preprocessExpr(line);<NEW_LINE>if (api.checkErrors() || expr == null)<NEW_LINE>return;<NEW_LINE>if (expr instanceof Concrete.ReferenceExpression && (...
getReferent()).getTypechecked();
688,187
static int VP8_UVSSE(Compressor cpi) {<NEW_LINE>Macroblock x = cpi.mb;<NEW_LINE>FullAccessIntArrPointer uptr, vptr;<NEW_LINE>FullAccessIntArrPointer upred_ptr = x.block.getRel(16).getSrcPtr();<NEW_LINE>FullAccessIntArrPointer vpred_ptr = x.block.getRel(20).getSrcPtr();<NEW_LINE>int uv_stride = x.block.getRel(16).src_st...
pre.v_buffer.shallowCopyWithPosInc(offset);
1,766,354
private void invoke_lambda(final JSONObject action, final JSONObject data, final JSONObject options, final Context context) {<NEW_LINE>try {<NEW_LINE>// construct lambda<NEW_LINE>JSONObject lambda = new JSONObject();<NEW_LINE><MASK><NEW_LINE>JSONObject args = new JSONObject();<NEW_LINE>args.put("name", action.getString...
lambda.put("type", "$lambda");
491,262
public void startTransactionRunners(AccumuloConfiguration conf) {<NEW_LINE>final ThreadPoolExecutor pool = ThreadPools.getServerThreadPools().createExecutorService(conf, Property.MANAGER_FATE_THREADPOOL_SIZE, true);<NEW_LINE>fatePoolWatcher = ThreadPools.getServerThreadPools().createGeneralScheduledExecutorService(conf...
log.trace("Error adding transaction runner to FaTE executor pool.", e);
131,705
public PermissionGroupParams unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PermissionGroupParams permissionGroupParams = new PermissionGroupParams();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
)).unmarshall(context));
294,866
// same as before (removes defs from HashMap)<NEW_LINE>private void removeEclipseDefs() {<NEW_LINE>if (getEclipseDefs() == null)<NEW_LINE>return;<NEW_LINE>Iterator it = getEclipseDefs().keySet().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>String key = (String) it.next();<NEW_LINE>if (getConfig().containsKey(ke...
(String) it2.next();
881,187
static Subject doOtherKerberosLogin(String jaasLoginContextEntry, final String upn, @Sensitive final String password) throws LoginException {<NEW_LINE>Subject subject = new Subject();<NEW_LINE>Krb5LoginModuleWrapper krb5 = new Krb5LoginModuleWrapper();<NEW_LINE>Map<String, String> options = new <MASK><NEW_LINE>Map<Stri...
HashMap<String, String>();
1,448,423
public SGeometryData convertToSObject(GeometryData input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SGeometryData result = new SGeometryData();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid(input.getRid());<NEW_LINE>result.setNrI...
Buffer indicesVal = input.getIndices();
1,575,852
public void generateEvents(Campaign campaign) {<NEW_LINE>LocalDateTime eventStartDateTime = campaign.getEventStartDateTime();<NEW_LINE><MASK><NEW_LINE>Long duration = campaign.getDuration();<NEW_LINE>for (Partner partner : campaign.getPartnerSet()) {<NEW_LINE>Event event = new Event();<NEW_LINE>if (partner.getIsContact...
LocalDateTime eventEndDateTime = campaign.getEventEndDateTime();
1,482,575
public Optional<SimpleLock> lock(@NonNull LockConfiguration lockConfiguration) {<NEW_LINE>String transactionId = null;<NEW_LINE>try {<NEW_LINE>StreamTransactionEntity streamTransactionEntity = arangoCollection.db().beginStreamTransaction(new StreamTransactionOptions().exclusiveCollections(arangoCollection.name()));<NEW...
(arangoCollection, existingDocument, lockConfiguration));
1,065,833
public VAdminProto.RepairJobResponse handleRepairJob(VAdminProto.RepairJobRequest request) {<NEW_LINE>VAdminProto.RepairJobResponse.Builder response = VAdminProto.RepairJobResponse.newBuilder();<NEW_LINE>try {<NEW_LINE>int requestId = asyncService.getUniqueRequestId();<NEW_LINE>asyncService.submitOperation(requestId, n...
setException(new VoldemortException("Repair job interrupted"));
8,800
void saveIssue(EslintBridgeServer.Issue issue) {<NEW_LINE>NewIssue newIssue = context.newIssue();<NEW_LINE>NewIssueLocation location = newIssue.newLocation().message(issue.message).on(file);<NEW_LINE>if (issue.endLine != null) {<NEW_LINE>location.at(file.newRange(issue.line, issue.column, issue.endLine, issue.endColumn...
checks.ruleKeyByEslintKey(issue.ruleId);
1,763,699
public void drawTranslate(UGraphic ug, UTranslate translate1, UTranslate translate2) {<NEW_LINE>final Snake snake = Snake.create(skinParam(), getInLinkRenderingColor(), Arrows.asToDown()).<MASK><NEW_LINE>final Point2D p1 = pos1.getTranslated(gpoint1.getPoint2D());<NEW_LINE>final Point2D p2 = pos2.getTranslated(gpoint2....
withLabel(textBlock, HorizontalAlignment.LEFT);
1,030,030
public static void main(String[] args) {<NEW_LINE>String modelPath = "edu/stanford/nlp/models/srparser/englishSR.ser.gz";<NEW_LINE>String taggerPath = "edu/stanford/nlp/models/pos-tagger/english-left3words-distsim.tagger";<NEW_LINE>for (int argIndex = 0; argIndex < args.length; ) {<NEW_LINE>switch(args[argIndex]) {<NEW...
("Unknown argument " + args[argIndex]);
77,219
public static ListEngineNamespacesResponse unmarshall(ListEngineNamespacesResponse listEngineNamespacesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listEngineNamespacesResponse.setRequestId(_ctx.stringValue("ListEngineNamespacesResponse.RequestId"));<NEW_LINE>listEngineNamespacesResponse.setHttpCode(_ctx.stringValue(...
(_ctx.integerValue("ListEngineNamespacesResponse.PageSize"));
408,245
private void initDefaultRoutes(Router router) {<NEW_LINE>router.add(GET, "/", RootTask.class);<NEW_LINE>router.add(GET, "", RootRedirectTask.class);<NEW_LINE>router.add(POST, "/reset", ResetTask.class);<NEW_LINE>router.add(GET, "/mappings", GetAllStubMappingsTask.class);<NEW_LINE>router.add(POST, "/mappings", CreateStu...
POST, "/mappings/save", SaveMappingsTask.class);
539,339
public boolean fight(Permanent fightTarget, Ability source, Game game, boolean batchTrigger) {<NEW_LINE>// double fight events for each creature<NEW_LINE>game.fireEvent(GameEvent.getEvent(GameEvent.EventType.FIGHTED_PERMANENT, fightTarget.getId(), source, source.getControllerId()));<NEW_LINE>game.fireEvent(GameEvent.ge...
setValue("batchFight_" + data, morSet);
1,671,323
private boolean tryToFixTranslationOutOfBounds(@NonNull EditorElement element, @NonNull Matrix lastKnownGoodPosition) {<NEW_LINE>final Matrix elementMatrix = element.getLocalMatrix();<NEW_LINE>final Matrix original = new Matrix(elementMatrix);<NEW_LINE>final float[] current = new float[9];<NEW_LINE>final float[] lastGo...
[5] - lastGood[5];
1,565,135
private void loadNode1202() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_AxisInformation, new QualifiedName(0, "AxisInformation"), new LocalizedText("en", "AxisInformation"), LocalizedText.NULL_VALUE, UInteger...
String xml = sb.toString();
1,659,989
private void mergeChangesAndDetermineConflicts(ExternalLocation[] externalLocations, TaskMonitor monitor) throws CancelledException {<NEW_LINE>if (!equivalentExternals(externalLocations[LATEST], externalLocations[MY])) {<NEW_LINE>// Both Latest and My changed it but they don't match.<NEW_LINE>// See what pieces can be ...
ORIGINAL], externalLocations[MY]);
557,501
public void startBugsnag(boolean startBugsnagOnly) {<NEW_LINE>setStartBugsnagOnly(startBugsnagOnly);<NEW_LINE>Configuration testConfig = new Configuration("12312312312312312312312312312312");<NEW_LINE>// Setup<NEW_LINE>testConfig.setAutoDetectErrors(true);<NEW_LINE>testConfig.setAutoTrackSessions(false);<NEW_LINE>testC...
addMetadata("test", "filter_me", "foobar");
1,321,142
public void translate(GeyserSession session, EmotePacket packet) {<NEW_LINE>if (session.getGeyser().getConfig().getEmoteOffhandWorkaround() != EmoteOffhandWorkaroundOption.DISABLED) {<NEW_LINE>// Activate the workaround - we should trigger the offhand now<NEW_LINE>ServerboundPlayerActionPacket swapHandsPacket = new Ser...
, packet.getEmoteId()));
546,510
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {<NEW_LINE>getWidget().htmlContentAllowed = uidl.hasAttribute(OptionGroupConstants.HTML_CONTENT_ALLOWED);<NEW_LINE>super.updateFromUIDL(uidl, client);<NEW_LINE>getWidget().sendFocusEvents = client.hasEventListeners(this, EventId.FOCUS);<NEW_LINE>getWid...
.addFocusHandler(getWidget()));
854,784
private VMTemplateVO createTemplateObjectInDB(SystemVMTemplateDetails details) {<NEW_LINE>Long templateId = vmTemplateDao.getNextInSequence(Long.class, "id");<NEW_LINE>VMTemplateVO template = new VMTemplateVO();<NEW_LINE>template.setUuid(details.getUuid());<NEW_LINE>template.setUniqueName(String.format("routing-%s", St...
setUrl(details.getUrl());
1,274,724
private void logResults() {<NEW_LINE>LOG.info("Key Values Processed: " + kvs_processed.get());<NEW_LINE>LOG.info("Rows Processed: " + rows_processed.get());<NEW_LINE>LOG.info(<MASK><NEW_LINE>LOG.info("Annotations: " + annotations.get());<NEW_LINE>LOG.info("Invalid Row Keys Found: " + bad_key.get());<NEW_LINE>LOG.info("...
"Valid Datapoints: " + valid_datapoints.get());
921,772
private DatabaseAccountCreateUpdateParameters createUpdateParametersInner(DatabaseAccountGetResultsInner inner) {<NEW_LINE>this.ensureFailoverIsInitialized();<NEW_LINE>DatabaseAccountCreateUpdateParameters createUpdateParametersInner = new DatabaseAccountCreateUpdateParameters();<NEW_LINE>createUpdateParametersInner.wi...
(createUpdateParametersInner), this.failoverPolicies);
1,556,832
private void refrehReads() {<NEW_LINE>int perThousands;<NEW_LINE>long readsFromCache = cfmStats.getBytesReadFromCache();<NEW_LINE>long readsFromFile = cfmStats.getBytesReadFromFile();<NEW_LINE>long nbReadsFromCache = cfmStats.getCacheReadCount();<NEW_LINE>long nbReadsFromFile = cfmStats.getFileReadCount();<NEW_LINE>lbl...
(DisplayFormatters.formatByteCountToKiBEtc(readsFromFile));
1,020,908
public void recoverUserName(RecoverUserNameRequest body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling recoverUserName");<NEW_LIN...
HashMap<String, Object>();
1,315,759
private static boolean containsNullableFields(RelNode r) {<NEW_LINE>final RexBuilder rexBuilder = r.getCluster().getRexBuilder();<NEW_LINE>final RelDataType rowType = r.getRowType();<NEW_LINE>final List<RexNode> list = new ArrayList<>();<NEW_LINE>final RelMetadataQuery mq = r.getCluster().getMetadataQuery();<NEW_LINE>f...
field.getIndex())));
1,535,148
public void addDisabledNode(int nodeId, String storeName, long storeVersion) throws Exception {<NEW_LINE>if (!lockAcquired) {<NEW_LINE>throw new VoldemortException("HdfsFailedFetchLock.addDisabledNode() called while the lock is not acquired!");<NEW_LINE>}<NEW_LINE>int attempts = 1;<NEW_LINE>boolean success = false;<NEW...
Path(failedJobDir, getUniqueFileName());
526,247
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
87,746
private static void migratePushKeys() {<NEW_LINE>Context context = MainApp.getAppContext();<NEW_LINE>AppPreferences preferences = AppPreferencesImpl.fromContext(context);<NEW_LINE>if (!preferences.isKeysMigrationEnabled()) {<NEW_LINE>String oldKeyPath = MainApp.getStoragePath() + File.separator + MainApp.getDataFolder(...
FileStorageUtils.moveFile(oldPublicKeyFile, publicKeyFile);
1,748,958
public void run(RegressionEnvironment env) {<NEW_LINE>sendTimeEvent(env, 1, 8, 0, 0, 0);<NEW_LINE>String expression = "@name('s0') select symbol from SupportMarketDataBean#length(2) output when current_timestamp - last_output_timestamp >= 2000";<NEW_LINE>env.compileDeploy(expression).setSubscriber("s0");<NEW_LINE>sendE...
sendEvent(env, "S4", 0);
249,560
private PHPParseResult sanitize(final Context context, final Sanitize sanitizing, PHP5ErrorHandler errorHandler) throws Exception {<NEW_LINE>switch(sanitizing) {<NEW_LINE>case NONE:<NEW_LINE>case MISSING_CURLY:<NEW_LINE>return parseBuffer(context, Sanitize.REQUIRE_FUNCTION_INCOMPLETE, errorHandler);<NEW_LINE>case REQUI...
.<Comment>emptyList());
1,149,885
public void onItemClick(int position) {<NEW_LINE>ContextMenuItem item = adapter.getItem(position);<NEW_LINE>int standardId = item.getTitleId();<NEW_LINE>ItemClickListener click = item.getItemClickListener();<NEW_LINE>if (click != null) {<NEW_LINE>click.onContextMenuClick(listAdapter, <MASK><NEW_LINE>} else if (standard...
standardId, position, false, null);
333,914
public void write(float angle) {<NEW_LINE>if (attached() == false) {<NEW_LINE>System.err.println("You need to call attach(pin) before write(angle).");<NEW_LINE>throw new RuntimeException("Servo is not attached");<NEW_LINE>}<NEW_LINE>if (angle < 0 || 180 < angle) {<NEW_LINE><MASK><NEW_LINE>throw new IllegalArgumentExcep...
System.err.println("Only degree values between 0 and 180 can be used.");
1,479,829
protected <V> void visitSubject(RuleMethodDataCollector dataCollector, MethodRuleDefinition<?, ?> ruleDefinition, ModelType<V> typeParameter, RuleSourceValidationProblemCollector problems) {<NEW_LINE>if (ruleDefinition.getReferences().size() == 0) {<NEW_LINE>problems.add(ruleDefinition, "A method " + getDescription() +...
> typeVariables = subjectType.getTypeVariables();
841,558
public CancelJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CancelJobResult cancelJobResult = new CancelJobResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
int originalDepth = context.getCurrentDepth();
994,938
private MTableScrollPane<CounterRequest> createScrollPane() {<NEW_LINE>final MTable<CounterRequest> table = getTable();<NEW_LINE>final MTableScrollPane<CounterRequest> tableScrollPane = new MTableScrollPane<>(table);<NEW_LINE>table.addColumn("name", getString("Requete"));<NEW_LINE>table.setColumnCellRenderer<MASK><NEW_...
("name", new NameTableCellRenderer());
199,706
public static Pair<Jid, String> extractJidAndName(X509Certificate certificate) throws CertificateEncodingException, IllegalArgumentException, CertificateParsingException {<NEW_LINE>Collection<List<?>> alternativeNames = certificate.getSubjectAlternativeNames();<NEW_LINE>List<String> emails = new ArrayList<>();<NEW_LINE...
jid = Jid.of(name);
491,108
private void doAssertAgentAndItsAssociationInDBAndCache() {<NEW_LINE>stream(agentService.getAgentInstances()).filter(agentInstance -> agentInstance.getUuid().startsWith("Perf-Test-Agent-")).forEach(agentInstance -> {<NEW_LINE>Agent agentInCache = agentInstance.getAgent();<NEW_LINE>Agent agentInDB = agentDao.fetchAgentF...
bombIfAgentEnvAssociationInDBAndEnvCacheAreDifferent(agentInCache, agentEnvsInDB, agentEnvsInEnvCache);
862,376
public void run() {<NEW_LINE>t.set(Thread.currentThread());<NEW_LINE>handle.start();<NEW_LINE>NbMavenProject nbmp;<NEW_LINE>try {<NEW_LINE>nbmp = finder.find(p);<NEW_LINE>} finally {<NEW_LINE>handle.finish();<NEW_LINE>}<NEW_LINE>t.set(null);<NEW_LINE>if (nbmp == null || NbMavenProject.isErrorPlaceholder(nbmp.getMavenPr...
relativizeFile(root, module) : null;
1,458,425
// checked by primitiveKind()<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private void mapPrimitiveType(EntityProxy<E> proxy, Attribute<E, ?> attribute, PreparedStatement statement, int index) throws SQLException {<NEW_LINE>switch(attribute.getPrimitiveKind()) {<NEW_LINE>case BYTE:<NEW_LINE>byte byteValue = proxy....
<E, Short>) attribute);
1,342,728
public void process(CommandProcess process) {<NEW_LINE>try {<NEW_LINE>if (StringUtils.isBlank(propertyName) && StringUtils.isBlank(propertyValue)) {<NEW_LINE>// show all system properties<NEW_LINE>process.appendResult(new SystemPropertyModel(System.getProperties()));<NEW_LINE>} else if (StringUtils.isBlank(propertyValu...
value = System.getProperty(propertyName);
1,212,608
public void run() {<NEW_LINE>Socket worker = ctx.createSocket(SocketType.DEALER);<NEW_LINE>worker.connect("inproc://backend");<NEW_LINE>while (!Thread.currentThread().isInterrupted()) {<NEW_LINE>// The DEALER socket gives us the address envelope and message<NEW_LINE>ZMsg msg = ZMsg.recvMsg(worker);<NEW_LINE>ZFrame addr...
replies = rand.nextInt(5);
661,199
private void checkDNSSPI() {<NEW_LINE>String error_str = null;<NEW_LINE>try {<NEW_LINE>// not supposed to exist - SPI will return loopback if things are working OK<NEW_LINE>InetAddress <MASK><NEW_LINE>if (ia.isLoopbackAddress()) {<NEW_LINE>// looks good!<NEW_LINE>} else {<NEW_LINE>error_str = "Loopback address expected...
ia = InetAddress.getByName(DNS_SPI_TEST_HOST);
144,033
public void enableDestinationCreation(SICoreConnectionFactory siccf) {<NEW_LINE>if (tcInt.isEntryEnabled())<NEW_LINE>SibTr.entry(tcInt, "enableDestinationCreation");<NEW_LINE>try {<NEW_LINE>if (admin == null) {<NEW_LINE>if (tcInt.isDebugEnabled())<NEW_LINE>SibTr.debug(tcInt, "Setting up destination definition objects."...
debug(tcInt, "Exception enabling destination creation", e);
1,246,381
public WritableMap toJSObject(Device value) {<NEW_LINE>WritableMap result = Arguments.createMap();<NEW_LINE>result.putString(Metadata.ID, value.getId());<NEW_LINE>result.putString(Metadata.NAME, value.getName());<NEW_LINE>if (value.getRssi() != null) {<NEW_LINE>result.putInt(Metadata.RSSI, value.getRssi());<NEW_LINE>} ...
result.putNull(Metadata.LOCAL_NAME);
358,685
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>sourcePanel = new javax.swing.JPanel();<NEW_LINE>sourceInfoPanel = new javax.swing.JPanel();<NEW_LINE>sourceNamePanel = new javax.swing.JPanel();<NEW_LINE>sourceNameLabel = new jav...
new javax.swing.JComboBox();
1,552,766
private static String fixRelativeLink(Pattern pattern, Path helpFile, String fileContents) {<NEW_LINE>int currentPosition = 0;<NEW_LINE>StringBuffer newContents = new StringBuffer();<NEW_LINE>Matcher matcher = pattern.matcher(fileContents);<NEW_LINE>boolean hasMatches = matcher.find();<NEW_LINE>if (!hasMatches) {<NEW_L...
int matchStart = matcher.start();
641,875
public void onInputSizeChanged(final int width, final int height) {<NEW_LINE>super.onInputSizeChanged(width, height);<NEW_LINE>int size = filters.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>filters.get(i).onInputSizeChanged(width, height);<NEW_LINE>}<NEW_LINE>if (frameBuffers != null && (frameWidth != wi...
.GL_TEXTURE_2D, frameBufferTextures[i]);
34,934
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>multi_get_result result = new multi_get_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER.error...
_LOGGER.error("TApplicationException inside handler", e);
408,137
public void generatePayments(final int ratePerSecond) {<NEW_LINE>KafkaProducer<String, Payment> producer = new KafkaProducer<>(properties(), new StringSerializer(), new Payment.Serde().serializer());<NEW_LINE>ScheduledExecutorService scheduledExecutor = Executors.newSingleThreadScheduledExecutor();<NEW_LINE>paymentRunn...
.getId(), payment));
515,339
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = <MASK><NEW_LINE>error = validator.validate(this.knowledgeId, convLabelName("Knowledge Id"));<NEW_LINE>if (error != null) {<NEW_LINE>errors.add...
ValidatorFactory.getInstance(Validator.REQUIRED);
180,359
public void fixMissingMasterKey(@NonNull GroupMasterKey groupMasterKey) {<NEW_LINE>GroupId.V2 groupId = GroupId.v2(groupMasterKey);<NEW_LINE>if (getGroupV1ByExpectedV2(groupId).isPresent()) {<NEW_LINE>Log.w(TAG, "There already exists a V1 group that should be migrated into this group. But if the recipient already exist...
add(new RequestGroupV2InfoJob(groupId));
1,847,926
public static void register() {<NEW_LINE>AllFluidTags.BOTTOMLESS_ALLOW.add(Fluids.WATER, Fluids.LAVA);<NEW_LINE>AllItemTags.CREATE_INGOTS.includeIn(AllItemTags.BEACON_PAYMENT);<NEW_LINE>AllItemTags.CREATE_INGOTS.includeIn(Tags.Items.INGOTS);<NEW_LINE>AllItemTags.UPRIGHT_ON_BELT.add(Items.GLASS_BOTTLE, Items.POTION, Ite...
Blocks.SOUL_FIRE, Blocks.SOUL_CAMPFIRE);
1,536,067
private void addJoinFieldMapping(ObjectNode propertiesNode, ElasticsearchPersistentProperty property) throws IOException {<NEW_LINE>JoinTypeRelation[] joinTypeRelations = property.getRequiredAnnotation(JoinTypeRelations.class).relations();<NEW_LINE>if (joinTypeRelations.length == 0) {<NEW_LINE>LOGGER.warn(//<NEW_LINE>S...
(parent, children[0]);
1,187,163
public static void renderVolume(ImageByte4 output, VolumeShort2 volume, Float3 volumeDims, Matrix4x4Float view, float nearPlane, float farPlane, float smallStep, float largeStep, Float3 light, Float3 ambient) {<NEW_LINE>for (@Parallel int y = 0; y < output.Y(); y++) {<NEW_LINE>for (@Parallel int x = 0; x < output.X(); ...
set(x, y, pixel);
1,324,771
protected Action process() throws IOException {<NEW_LINE>cipherBuffer = byteBufferPool.acquire(connection.getOutputBufferSize(), connection.isUseOutputDirectByteBuffers());<NEW_LINE>int pos = BufferUtil.flipToFill(cipherBuffer);<NEW_LINE>int drained = quicheConnection.drainCipherBytes(cipherBuffer);<NEW_LINE>if (LOG.is...
boolean connectionClosed = quicheConnection.isConnectionClosed();
1,193,018
static ExpansionStatistics create(org.graalvm.options.OptionValues options) {<NEW_LINE>if (!isEnabled(options)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>boolean legacyExpansion = options.get(PolyglotCompilerOptions.PrintExpansionHistogram);<NEW_LINE>Set<CompilationTier> traceMethodExpansion = options.get(PolyglotCom...
options.get(PolyglotCompilerOptions.NodeExpansionStatistics);
1,238,359
private void sendVODSeekCM(IMessageInput msgIn, int position) {<NEW_LINE>OOBControlMessage oobCtrlMsg = new OOBControlMessage();<NEW_LINE><MASK><NEW_LINE>oobCtrlMsg.setServiceName("seek");<NEW_LINE>Map<String, Object> paramMap = new HashMap<>(1);<NEW_LINE>paramMap.put("position", Integer.valueOf(position));<NEW_LINE>oo...
oobCtrlMsg.setTarget(ISeekableProvider.KEY);
1,774,708
public emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp result = new emu.grasscutter.net.proto.DungeonEntryInfoRspOuterClass.DungeonEntryInfoRsp(this);<NEW_LINE>int from_bitField0_ = bitField...
util.Collections.unmodifiableList(dungeonEntryList_);
126,801
public static Class<?> loadClass(String className, boolean allowPrimitives) throws ClassNotFoundException {<NEW_LINE>// Do we have a primitive class<NEW_LINE>if (allowPrimitives) {<NEW_LINE>switch(className) {<NEW_LINE>case "B":<NEW_LINE>case "byte":<NEW_LINE>return Byte.TYPE;<NEW_LINE>case "C":<NEW_LINE>case "char":<N...
() - 1), false);
1,388,199
private void _processPortletRequest(HttpServletRequest req, HttpServletResponse res, boolean action) throws Exception {<NEW_LINE>String contentType = req.getHeader("Content-Type");<NEW_LINE>if ((contentType != null) && (contentType.startsWith("multipart/form-data"))) {<NEW_LINE>UploadServletRequest uploadReq = (UploadS...
.getString(req, "p_p_mode"));
123,044
private SchemaElementPrinter<GraphQLInterfaceType> interfacePrinter() {<NEW_LINE>return (out, type, visibility) -> {<NEW_LINE>if (isIntrospectionType(type)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (shouldPrintAsAst(type.getDefinition())) {<NEW_LINE>printAsAst(out, type.getDefinition(<MASK><NEW_LINE>} else {<NEW_LINE>...
), type.getExtensionDefinitions());
870,766
public void showTripSummaryInfo(@NonNull Trip trip) {<NEW_LINE>presenter.stopTripInfoUpdating();<NEW_LINE>tripConfirmSnackbar.dismiss();<NEW_LINE>if (getActivity() != null) {<NEW_LINE>if (trip.getDestination() == null && trip.getSummary() == null) {<NEW_LINE>stats.setVisibility(View.GONE);<NEW_LINE>destination.setVisib...
getDestination().getAddress());
868,435
public com.amazonaws.services.wafv2.model.WAFOptimisticLockException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.wafv2.model.WAFOptimisticLockException wAFOptimisticLockException = new com.amazonaws.services.wafv2.model.WAFOptimisticLockException(null);<NEW_...
String currentParentElement = context.getCurrentParentElement();
1,657,000
// Speaker identification from file.<NEW_LINE>public static void identificationWithFileAsync() throws InterruptedException, ExecutionException {<NEW_LINE>// <identificationWithFile><NEW_LINE>// Creates an instance of a speech config with specified<NEW_LINE>// subscription key and service region. Replace with your own s...
System.out.println("Enrolled successfully");
1,224,542
/* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_physicalProcessorOffset_", declaredType="J9ProcessorArchitecture")<NEW_LINE>* public long physicalProcessor() throws CorruptDataException {<NEW_LINE>* return getIntAtOffset(J9ProcessorDesc._physicalProcessorOffse...
method.visitMaxs(3, 1);
1,619,057
// No choice but to use Enumeration<NEW_LINE>@SuppressWarnings("JdkObsolete")<NEW_LINE>private static InetAddress buildBenchmarkAddr() {<NEW_LINE>InetAddress tmp = null;<NEW_LINE>try {<NEW_LINE>Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();<NEW_LINE>outer: while (networkInter...
.getInetAddresses().nextElement();
112,142
public void populateDisplayData(DisplayData.Builder builder) {<NEW_LINE>super.populateDisplayData(builder);<NEW_LINE>List<String> topics = getTopics();<NEW_LINE>List<TopicPartition> topicPartitions = getTopicPartitions();<NEW_LINE>if (topics.size() > 0) {<NEW_LINE>builder.add(DisplayData.item("topics", Joiner.on(",").j...
StaticValueProvider.of(value)));
1,773,642
public void resize(int newSize) {<NEW_LINE>if (m_bLockedInSize)<NEW_LINE>throw new GeometryException("invalid call. Attribute Stream is locked and cannot be resized.");<NEW_LINE>if (newSize <= m_size) {<NEW_LINE>if ((newSize * 5) / 4 < m_buffer.length) {<NEW_LINE>// decrease when the 25%<NEW_LINE>// margin is exceeded<...
0, newBuffer, 0, newSize);
1,751,882
public static TlsDHConfig receiveDHConfig(TlsContext context, TlsDHGroupVerifier dhGroupVerifier, InputStream input) throws IOException {<NEW_LINE>BigInteger p = readDHParameter(input);<NEW_LINE>BigInteger g = readDHParameter(input);<NEW_LINE>int namedGroup = getNamedGroupForDHParameters(p, g);<NEW_LINE>if (namedGroup ...
.getSecurityParametersHandshake().getClientSupportedGroups();
1,745,220
public void writeAdditional(CompoundNBT compound) {<NEW_LINE>if (this.throwerUUID != null) {<NEW_LINE>compound.putUniqueId("thrower", this.throwerUUID);<NEW_LINE>}<NEW_LINE>compound.putBoolean(IN_FLIGHT_NBT, this.dataManager.get(IN_FLIGHT_DMP));<NEW_LINE>compound.putInt(PICKUP_DELAY_NBT, pickupDelay);<NEW_LINE>compound...
.dataManager.get(MOMENTUM_DMP));
1,551,996
public synchronized Map<String, Map<String, Integer>> createDatabase(String database) {<NEW_LINE>Map<String, Map<String, Integer>> <MASK><NEW_LINE>if (measurement2TagOrders != null) {<NEW_LINE>return measurement2TagOrders;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>SetStorageGroupPlan setStorageGroupPlan = new SetStorageGroupP...
measurement2TagOrders = database2Measurement2TagOrders.get(database);