idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,225,502
public boolean diff(final String first, final String second, String diff) throws java.io.IOException {<NEW_LINE>Process prs = null;<NEW_LINE>File diffFile = null;<NEW_LINE>if (null == diff)<NEW_LINE>diffFile = File.createTempFile("~diff", "tmp~");<NEW_LINE>else<NEW_LINE>diffFile = new File(diff);<NEW_LINE>FileOutputStr...
prs.getInputStream(), fos);
592,919
protected void applyEnterTableKey(EventBean[] eventsPerStream, Object tableKey, ExprEvaluatorContext exprEvaluatorContext) {<NEW_LINE>ObjectArrayBackedEventBean bean = tableInstance.getCreateRowIntoTable(tableKey, exprEvaluatorContext);<NEW_LINE>currentAggregationRow = (AggregationRow) bean.getProperties()[0];<NEW_LINE...
evaluate(eventsPerStream, true, exprEvaluatorContext);
1,026,883
public ArrayList<Fact> createFacts(MAcctSchema acctSchema) {<NEW_LINE>ArrayList<Fact> facts = new ArrayList<Fact>();<NEW_LINE>// Other Acct Schema<NEW_LINE>if (acctSchema.getC_AcctSchema_ID() != acctSchemaId)<NEW_LINE>return facts;<NEW_LINE>// create Fact Header<NEW_LINE>Fact fact = new Fact(this, acctSchema, postingTy...
BigDecimal expenseAmt = depreciationExp.getExpense();
1,006,361
private void addDeckToCursor(long id, String name, JSONArray deckCounts, MatrixCursor rv, Collection col, String[] columns) {<NEW_LINE>MatrixCursor.<MASK><NEW_LINE>for (String column : columns) {<NEW_LINE>switch(column) {<NEW_LINE>case FlashCardsContract.Deck.DECK_NAME:<NEW_LINE>rb.add(name);<NEW_LINE>break;<NEW_LINE>c...
RowBuilder rb = rv.newRow();
783,061
public Optional<StockMove> copyAndSplitStockMove(StockMove stockMove, List<StockMoveLine> stockMoveLines) throws AxelorException {<NEW_LINE>stockMoveLines = MoreObjects.firstNonNull(stockMoveLines, Collections.emptyList());<NEW_LINE>StockMove newStockMove = stockMoveRepo.copy(stockMove, false);<NEW_LINE>// In copy Orig...
(stockMoveToolService.compute(newStockMove));
1,618,339
public static String printMentionDetectionLog(Document document) {<NEW_LINE>StringBuilder sbLog = new StringBuilder();<NEW_LINE>List<CoreMap> sentences = document.annotation.get(SentencesAnnotation.class);<NEW_LINE>sbLog.append("\nERROR START-----------------------------------------------------------------------\n");<N...
.nerString).append("\n");
1,459,091
private void updateWatchlistBox(final CacheDetailActivity activity) {<NEW_LINE>final boolean supportsWatchList = cache.supportsWatchList();<NEW_LINE>binding.watchlistBox.setVisibility(supportsWatchList ? View.VISIBLE : View.GONE);<NEW_LINE>if (!supportsWatchList) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int watchLi...
setText(R.string.cache_watchlist_not_on);
1,327,418
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('s0') @public insert rstream into NextStream " + "select rstream s0.theString as theString from SupportBean#length(3) as s0", path);<NEW_LINE>env.addListener("s0");<NEW_LINE>env.compileDep...
assertNull(listener.getLastOldData());
385,436
public void listSecretVersionsCodeSnippets() {<NEW_LINE>SecretClient secretClient = getSecretClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.secretclient.listSecretVersions#string<NEW_LINE>for (SecretProperties secret : secretClient.listPropertiesOfSecretVersions("secretName")) {<NEW_LINE>KeyVaultSecret secret...
), secretWithValue.getValue());
225,149
private // final Fact fact,<NEW_LINE>List<Fact> // final Fact fact,<NEW_LINE>createFacts_BankTransfer(// final Fact fact,<NEW_LINE>final AcctSchema as, // final FactLine factLine_BankAsset<NEW_LINE>final DocLine_BankStatement line) {<NEW_LINE>//<NEW_LINE>// Make sure it's a valid bank transfer line<NEW_LINE>Check.assum...
factLine_BankAsset_Builder.setAmtSource(trxAmt, null);
500,900
private <T> void saveValidConfigToCacheAndNotifyEntityConfigChangeListeners(EntityConfigSaveResult<T> saveResult) {<NEW_LINE>saveValidConfigToCache(saveResult.getConfigHolder());<NEW_LINE>LOGGER.info("About to notify {} config listeners", saveResult.getEntityConfig().getClass().getName());<NEW_LINE>for (ConfigChangedLi...
.currentTimeMillis() - startTime));
415,371
final BatchDisassociateUserStackResult executeBatchDisassociateUserStack(BatchDisassociateUserStackRequest batchDisassociateUserStackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDisassociateUserStackRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
(super.beforeMarshalling(batchDisassociateUserStackRequest));
131,049
protected int compare(Object obj1, Object obj2, @Cached("create(getContext())") ToTemporalDateTimeNode toTemporalDateTime) {<NEW_LINE>JSTemporalPlainDateTimeObject one = (JSTemporalPlainDateTimeObject) toTemporalDateTime.executeDynamicObject(obj1, Undefined.instance);<NEW_LINE>JSTemporalPlainDateTimeObject two = (JSTem...
), two.getNanosecond());
1,772,434
XContentBuilder toXContentFragment(final XContentBuilder builder) throws IOException {<NEW_LINE>if (maxReadRequestOperationCount != null) {<NEW_LINE>builder.field(MAX_READ_REQUEST_OPERATION_COUNT.getPreferredName(), maxReadRequestOperationCount);<NEW_LINE>}<NEW_LINE>if (maxWriteRequestOperationCount != null) {<NEW_LINE...
MAX_WRITE_REQUEST_OPERATION_COUNT.getPreferredName(), maxWriteRequestOperationCount);
385,062
public void menuShown(MenuEvent e) {<NEW_LINE>Utils.disposeSWTObjects(menuTree.getItems());<NEW_LINE>bShown = true;<NEW_LINE>Object oMenuSource = menuTree.getData("MenuSource");<NEW_LINE>int menuSource = (oMenuSource instanceof Number) ? ((Number) oMenuSource).intValue() : SWT.MENU_MOUSE;<NEW_LINE>SideBarEntrySWT entry...
(MessageText.getString("menu.sidebar.options"));
1,823,318
static String buildSignature(ImmutableList<String> salts, ImmutableSortedMap<String, byte[]> properties) {<NEW_LINE>Hasher signature = SIGNATURE_HASH_FUNCTION.newHasher();<NEW_LINE>logger.atFinest().log(">>>>>>>> Building signature");<NEW_LINE>for (String salt : salts) {<NEW_LINE>logger.atFinest().log(" Salt: %s", s...
putBytes(property.getValue());
1,834,376
public static void main1(String[] args) throws Exception {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.println("Syntax: paste <to movie> <from movie> [second]");<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>File toFile = new File(args[0]);<NEW_LINE>SeekableByteChannel to = null;<NEW_LINE>SeekableByteChannel fr...
parseDouble(args[2]));
36,365
protected void handleMetadata() throws Docx4JException {<NEW_LINE>// docProps/app.xml (Extended Properties)<NEW_LINE>if (pkg.getDocPropsExtendedPart() != null && pkg.getDocPropsExtendedPart().getContents() != null) {<NEW_LINE>pkg.getDocPropsExtendedPart().<MASK><NEW_LINE>pkg.getDocPropsExtendedPart().getContents().setM...
getContents().setCompany(null);
269,831
protected DataPacket createAddEntityPacket() {<NEW_LINE>AddEntityPacket pk = new AddEntityPacket();<NEW_LINE>pk<MASK><NEW_LINE>pk.entityUniqueId = this.getId();<NEW_LINE>pk.type = NETWORK_ID;<NEW_LINE>pk.x = (float) this.x;<NEW_LINE>pk.y = (float) this.y;<NEW_LINE>pk.z = (float) this.z;<NEW_LINE>pk.speedX = (float) thi...
.entityRuntimeId = this.getId();
1,618,842
protected synchronized void trim() {<NEW_LINE>if (this.chunkcache.length == 0)<NEW_LINE>return;<NEW_LINE>final long needed = this.chunkcount * this.rowdef.objectsize;<NEW_LINE><MASK><NEW_LINE>if (needed >= this.chunkcache.length)<NEW_LINE>// in case that the growfactor causes that the cache would<NEW_LINE>return;<NEW_L...
assert needed <= this.chunkcache.length;
1,757,494
final StopRxNormInferenceJobResult executeStopRxNormInferenceJob(StopRxNormInferenceJobRequest stopRxNormInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopRxNormInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,479,835
public ReservedInstancesConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ReservedInstancesConfiguration reservedInstancesConfiguration = new ReservedInstancesConfiguration();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_...
int originalDepth = context.getCurrentDepth();
1,718,005
public DeleteVMSnapshotAnswer execute(VmwareHostService hostService, DeleteVMSnapshotCommand cmd) {<NEW_LINE>List<VolumeObjectTO> listVolumeTo = cmd.getVolumeTOs();<NEW_LINE>VirtualMachineMO vmMo = null;<NEW_LINE>VmwareContext context = hostService.getServiceContext(cmd);<NEW_LINE>String vmName = cmd.getVmName();<NEW_L...
vmMo = hyperHost.findVmOnHyperHost(vmName);
386,778
// auto-generated, see spoon.generating.ReplacementVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public void visitCtFor(final spoon.reflect.code.CtFor forLoop) {<NEW_LINE>replaceInListIfExist(forLoop.getAnnotations(), new spoon.support.visitor.replace<MASK><NEW_LINE>replaceInListIfExist(forLoop.getForInit(), n...
.ReplacementVisitor.CtElementAnnotationsReplaceListener(forLoop));
905,036
protected JPanel filletMaterialPanel() {<NEW_LINE>JPanel filletPanel = new JPanel(new MigLayout("", "[][65lp::][30lp::]"));<NEW_LINE>String tip = trans.get("FinsetCfg.ttip.Finfillets1") + trans.get("FinsetCfg.ttip.Finfillets2") + trans.get("FinsetCfg.ttip.Finfillets3");<NEW_LINE>filletPanel.setBorder(BorderFactory.crea...
JSpinner(m.getSpinnerModel());
962,899
protected String transformResponse(String transformation, String response) {<NEW_LINE>String transformedResponse;<NEW_LINE>if (isEmpty(transformation) || transformation.equalsIgnoreCase("default")) {<NEW_LINE>logger.debug("transformed response is '{}'", response);<NEW_LINE>return response;<NEW_LINE>}<NEW_LINE>Matcher <...
matcher = EXTRACT_FUNCTION_PATTERN.matcher(transformation);
1,160,088
private void countVoteAccount(VoteWitnessContract voteContract) {<NEW_LINE>AccountStore accountStore = chainBaseManager.getAccountStore();<NEW_LINE>VotesStore votesStore = chainBaseManager.getVotesStore();<NEW_LINE>MortgageService mortgageService = chainBaseManager.getMortgageService();<NEW_LINE>byte[] ownerAddress = v...
accountCapsule = accountStore.get(ownerAddress);
336,367
public ByteBuf encodeRequest(Request request) throws Exception {<NEW_LINE>DubboHeader header = new DubboHeader();<NEW_LINE>byte flag = (byte) (FLAG_REQUEST | getContentTypeId());<NEW_LINE>if (!request.isOneWay()) {<NEW_LINE>flag |= FLAG_TWOWAY;<NEW_LINE>}<NEW_LINE>if (request.isHeartbeat()) {<NEW_LINE>flag |= FLAG_EVEN...
getSubscribeInfo().getGroup());
1,488,114
private static <B extends Enum<B>> B toBukkit(Enum<?> nms, Class<B> bukkit) {<NEW_LINE>Enum<?> converted;<NEW_LINE>BiMap<Enum<?>, Enum<?>> nmsToBukkit = classMappings.get(nms.getClass());<NEW_LINE>if (nmsToBukkit != null) {<NEW_LINE>converted = nmsToBukkit.get(nms);<NEW_LINE>if (converted != null)<NEW_LINE>return (B) c...
nmsToBukkit.put(nms, converted);
1,051,007
DocIdSet processLeaf(Query query, CompositeValuesCollectorQueue queue, LeafReaderContext context, boolean fillDocIdSet) throws IOException {<NEW_LINE>final Terms terms = context.reader().terms(field);<NEW_LINE>if (terms == null) {<NEW_LINE>// no value for the field<NEW_LINE>return DocIdSet.EMPTY;<NEW_LINE>}<NEW_LINE>By...
(BytesRef) queue.getUpperValueLeadSource();
727,882
public Cursor handle(RelNode relNode, ExecutionContext executionContext) {<NEW_LINE>if (relNode instanceof PhyDdlTableOperation) {<NEW_LINE>final PhyDdlTableOperation tableOperation = (PhyDdlTableOperation) relNode;<NEW_LINE>final SequenceBean sequence = tableOperation.getSequence();<NEW_LINE>sequence.setKind(tableOper...
SequenceValidator.validate(sequence, executionContext);
256,007
public SqlResult execute(@Nonnull SqlStatement statement) {<NEW_LINE>ClientConnection connection = getQueryConnection();<NEW_LINE>QueryId id = QueryId.create(connection.getRemoteUuid());<NEW_LINE>List<Object> params = statement.getParameters();<NEW_LINE>List<Data> params0 = new ArrayList<>(params.size());<NEW_LINE>for ...
message = invoke(requestMessage, connection);
173,065
public static String urlToJSONString(String urlToRead) {<NEW_LINE>// Alright, so sometimes Twitch decides that our client ID should be blocked. Currently only happens for the hidden /api endpoints.<NEW_LINE>// IF we are being blocked, then retry the request with Twitch web ClientID. They are typically not blocking this...
result = urlToJSONString(urlToRead, false);
1,534,641
public PNode visit(ImportFromSSTNode node) {<NEW_LINE>scopeEnvironment.setCurrentScope(node.scope);<NEW_LINE>String from = node.from;<NEW_LINE>int level = 0;<NEW_LINE>while (from.length() > level && from.charAt(level) == '.') {<NEW_LINE>level++;<NEW_LINE>}<NEW_LINE>if (level > 0) {<NEW_LINE>from = from.substring(level)...
makeWriteNode(EmptyNode.create());
761,898
final private IntervalFunction IntervalAtLeast() throws ParseException {<NEW_LINE>IntervalFunction source;<NEW_LINE>ArrayList<IntervalFunction> sources <MASK><NEW_LINE>Token minShouldMatch;<NEW_LINE>jj_consume_token(FN_PREFIX);<NEW_LINE>jj_consume_token(ATLEAST);<NEW_LINE>jj_consume_token(LPAREN);<NEW_LINE>minShouldMat...
= new ArrayList<IntervalFunction>();
1,147,627
private DrownVulnerabilityType genLeakyExportCheckData(String dataFilePath) {<NEW_LINE>Config tlsConfig = getTlsConfig();<NEW_LINE>SSL2CipherSuite cipherSuite = tlsConfig.getDefaultSSL2CipherSuite();<NEW_LINE>// Produce correctly-padded SECRET-KEY-DATA of the wrong length (case 2<NEW_LINE>// from the DROWN paper)<NEW_L...
getFirstReceivedMessage(HandshakeMessageType.SSL2_SERVER_VERIFY, trace);
458,246
private static void init() {<NEW_LINE>try {<NEW_LINE>// TODO is this initialize needed?<NEW_LINE>// PythonInterpreter.initialize(System.getProperties(), null, new String[0]);<NEW_LINE>Class.forName("org.python.util.PythonInterpreter");<NEW_LINE>} catch (Exception ex) {<NEW_LINE>Debug.log("Jython: not found on classpath...
cPyFunction = Class.forName("org.python.core.PyFunction");
135,654
protected void removeByC_EA(String companyId, String emailAddress) throws NoSuchUserException, SystemException {<NEW_LINE>Session session = null;<NEW_LINE>User systemUser = null;<NEW_LINE>try {<NEW_LINE>systemUser = APILocator.getUserAPI().getSystemUser();<NEW_LINE>} catch (DotDataException e) {<NEW_LINE>// TODO Auto-g...
("firstName ASC").append(", ");
921,975
protected TaskResult run(GcsClient gcs, String projectId) {<NEW_LINE>Optional<String> command = params.<MASK><NEW_LINE>Optional<String> bucket = params.getOptional("bucket", String.class);<NEW_LINE>Optional<String> object = params.getOptional("object", String.class);<NEW_LINE>// ToDo implement timeout parameter. Please...
getOptional("_command", String.class);
1,321,047
private void computeAngleOfRotation(PointTrack t, Vector3D_F64 pointingPlane) {<NEW_LINE>VoTrack p = t.getCookie();<NEW_LINE>// Compute ground pointing vector<NEW_LINE>groundCurr.x = pointingPlane.z;<NEW_LINE>groundCurr.y = -pointingPlane.x;<NEW_LINE>double norm = groundCurr.norm();<NEW_LINE>groundCurr.x /= norm;<NEW_L...
.y * p.ground.y;
1,387,796
public CompletableFuture<List<TextEdit>> willSaveWaitUntil(WillSaveTextDocumentParams params) {<NEW_LINE>String uri = params.getTextDocument().getUri();<NEW_LINE>JavaSource js = getJavaSource(uri);<NEW_LINE>if (js == null) {<NEW_LINE>return CompletableFuture.completedFuture(Collections.emptyList());<NEW_LINE>}<NEW_LINE...
doOrganizeImports(wc, null, false);
310,147
public boolean[] isTagAuto() {<NEW_LINE>TagProperty[] props = getSupportedProperties();<NEW_LINE>for (TagProperty prop : props) {<NEW_LINE>String name = prop.getName(false);<NEW_LINE>if (name.equals(TagFeatureProperties.PR_TRACKER_TEMPLATES)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>int type = prop.getType();<NEW_LINE>...
{ true, false, false });
788,593
private static void evaluateCapabilities() {<NEW_LINE>boolean tempMonitor = false;<NEW_LINE>boolean tempInjection = false;<NEW_LINE>boolean tempNexmonFirmware = false;<NEW_LINE><MASK><NEW_LINE>String line = Nexutil.getInstance().getIoctl(400);<NEW_LINE>if (line.contains("0x000000: 07")) {<NEW_LINE>tempMonitor = true;<N...
Shell.SU.run("ifconfig wlan0 up");
1,387,831
final EnableRuleResult executeEnableRule(EnableRuleRequest enableRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableRuleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<EnableRuleRequest> request = null;<NEW_LINE>Response<En...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
791,557
public static UpdateExperimentBasicInfoResponse unmarshall(UpdateExperimentBasicInfoResponse updateExperimentBasicInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateExperimentBasicInfoResponse.setRequestId(_ctx.stringValue("UpdateExperimentBasicInfoResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW...
= new ArrayList<String>();
249,101
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>// single-column constant<NEW_LINE>String stmtText = "@name('s0') select (select id from SupportBean_S1#length(1000) where p10='X') as ids1 from SupportBean_S0";<NEW_LINE>env.compileDeployAddListenerMile(stmtTe...
new SupportBean("E1", 15));
1,153,959
private Map<PendingTx, Transaction> createTransactions(Block parent) {<NEW_LINE>Map<PendingTx, Transaction> txes = new LinkedHashMap<>();<NEW_LINE>Map<ByteArrayWrapper, Long> nonces = new HashMap<>();<NEW_LINE>Repository repoSnapshot = getBlockchain().getRepository().getSnapshotTo(parent.getStateRoot());<NEW_LINE>for (...
setAddress(transaction.getContractAddress());
919,702
<T> R<T> findResult(ProxyLookup proxy, ImmutableInternalData[] newData, Template<T> template) {<NEW_LINE>assert Thread.holdsLock(proxy);<NEW_LINE>Map<Template, Reference<R>> map = getResults();<NEW_LINE>Reference<R> ref = map.get(template);<NEW_LINE>R r = (ref == null) ? null : ref.get();<NEW_LINE>if (r != null) {<NEW_...
Reference<R>>(map);
1,148,741
public CanaryCodeOutput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CanaryCodeOutput canaryCodeOutput = new CanaryCodeOutput();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
629,883
public Expr transforExpr(ParseNode parseNode) {<NEW_LINE>if (parseNode instanceof CallExpr) {<NEW_LINE>CallExpr parseNode1 = (CallExpr) parseNode;<NEW_LINE>String name = parseNode1.getName();<NEW_LINE>List<ParseNode> exprs = parseNode1.getArgs().getExprs();<NEW_LINE>List<Expr> collect = exprs.stream().map(i -> transfor...
(exprs.get(0));
1,507,054
public static ListNodesResponse unmarshall(ListNodesResponse listNodesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNodesResponse.setRequestId(_ctx.stringValue("ListNodesResponse.RequestId"));<NEW_LINE>listNodesResponse.setTotalCount(_ctx.integerValue("ListNodesResponse.TotalCount"));<NEW_LINE>listNodesResponse.se...
("ListNodesResponse.Nodes[" + i + "].CreateMode"));
741,473
public void registerMap() {<NEW_LINE>// 0 - Entity id<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>// 1 - UUID<NEW_LINE>map(Type.UUID);<NEW_LINE>// 2 - Type<NEW_LINE>map(Type.BYTE);<NEW_LINE>// 3 - X<NEW_LINE>map(Type.DOUBLE);<NEW_LINE>// 4 - Y<NEW_LINE>map(Type.DOUBLE);<NEW_LINE>// 5 - Z<NEW_LINE>map(Type.DOUBLE);<NEW_LINE>//...
get(Type.INT, 0);
928,092
private TimeZoneAndName parse(String zone) {<NEW_LINE>final Matcher tzMatcher = TZ_PATTERN.matcher(zone);<NEW_LINE>if (tzMatcher.matches()) {<NEW_LINE>String name = tzMatcher.group(1);<NEW_LINE>String <MASK><NEW_LINE>String hours = tzMatcher.group(3);<NEW_LINE>String minutes = tzMatcher.group(4);<NEW_LINE>String second...
sign = tzMatcher.group(2);
1,296,156
public void run() {<NEW_LINE>DefaultConfiguration defaultConf = DefaultConfiguration.getInstance();<NEW_LINE>long defaultDelay = defaultConf.getTimeInMillis(Property.REPLICATION_WORK_PROCESSOR_DELAY);<NEW_LINE>long defaultPeriod = defaultConf.getTimeInMillis(Property.REPLICATION_WORK_PROCESSOR_PERIOD);<NEW_LINE>Accumul...
conf.getTimeInMillis(Property.REPLICATION_WORK_PROCESSOR_DELAY);
797,988
public RefactoringStatus checkInitialConditions(IProgressMonitor pm) throws CoreException, OperationCanceledException {<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MASK><NEW_LINE>RefactoringStatus result = Checks.validateModifiesFiles(ResourceUtil.getFiles(new ICompilationUnit[] { fCu }), getValidationContext(), p...
pm.beginTask("", 16);
881,023
private static void write_package_keepout(app.freerouting.library.Package.Keepout p_keepout, WriteScopeParameter p_par, boolean p_is_via_keepout) throws java.io.IOException {<NEW_LINE>Layer keepout_layer;<NEW_LINE>if (p_keepout.layer >= 0) {<NEW_LINE>app.freerouting.board.Layer board_layer = p_par.board.layer_structure...
geometry.planar.Shape[0];
1,535,292
public int load() {<NEW_LINE>final Map<String, Pair<Map<String, String>, List<Pair<Pattern, String>>>> relatedContentMap = new HashMap<>();<NEW_LINE>getAvailableRelatedContentList().stream().forEach(entity -> {<NEW_LINE>final String key = getHostKey(entity);<NEW_LINE>Pair<Map<String, String>, List<Pair<Pattern, String>...
pair = relatedContentMap.get(key);
183,624
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "add");<NEW_LINE>final String targetRegister = in...
(ReilHelpers.createNop(offset));
1,643,267
private String convertNumber(Number number) {<NEW_LINE>if (Integer.class.isInstance(number)) {<NEW_LINE>return NumericUtils.intToPrefixCoded(number.intValue());<NEW_LINE>} else if (Double.class.isInstance(number)) {<NEW_LINE>return NumericUtils.doubleToPrefixCoded(number.doubleValue());<NEW_LINE>} else if (Long.class.i...
intToPrefixCoded(number.intValue());
1,028,820
public static PsiElementVisitor createVisitorAndAcceptElements(@Nonnull LocalInspectionTool tool, @Nonnull ProblemsHolder holder, boolean isOnTheFly, @Nonnull LocalInspectionToolSession session, @Nonnull List<PsiElement> elements, @Nonnull Set<String> elementDialectIds, @Nullable Set<String> dialectIdsSpecifiedForTool)...
buildVisitor(holder, isOnTheFly, session);
355,665
private <T> T runMethod(Callable<T> callable, String methodName, File[] roots) throws GitException {<NEW_LINE>try {<NEW_LINE>if (isExclusiveRepositoryAccess(methodName)) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Level.FINER, "Running an exclusive command: {0} on {1}", new Object[] { methodName, repositoryRoot });<NEW_LINE>...
Level.FINEST, "Repository unblocked: {0}", repositoryRoot);
217,299
public ConversionResult<T> convert(String argument, InjectedValueAccess context) {<NEW_LINE>Actor actor = context.injectedValue(Key.of(Actor.class)).orElseThrow(() -> new IllegalStateException("No actor"));<NEW_LINE>LocalSession session = WorldEdit.getInstance().getSessionManager().get(actor);<NEW_LINE>ParserContext pa...
Locatable) actor).getExtent();
244,317
private void enableLiveUpdates(boolean enable) {<NEW_LINE>if (!Algorithms.isEmpty(adapter.mapsList)) {<NEW_LINE>AlarmManager alarmMgr = (AlarmManager) app.getSystemService(Context.ALARM_SERVICE);<NEW_LINE>List<LocalIndexInfo> mapsToUpdate = getMapsToUpdate(adapter.mapsList, settings);<NEW_LINE>for (LocalIndexInfo li : ...
)[timeOfDayPreference.get()];
1,048,161
private T createProxy(Map<String, String> referenceParameters) {<NEW_LINE>if (shouldJvmRefer(referenceParameters)) {<NEW_LINE>createInvokerForLocal(referenceParameters);<NEW_LINE>} else {<NEW_LINE>urls.clear();<NEW_LINE>if (StringUtils.isNotEmpty(url)) {<NEW_LINE>// user specified URL, could be peer-to-peer address, or...
getServiceModel(), getApplicationModel());
1,035,129
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(description = "Add the specified assertion to the given policy version")<NEW_LINE>public Assertion putAssertionPolicyVersion(@Parameter(description = "name of the domain", required = true) @PathParam("domainName") S...
delegate.recordMetrics(context, code);
530,599
public int findPaths(int m, int n, int N, int i, int j) {<NEW_LINE>final int MOD = (int) (1e9 + 7);<NEW_LINE>final int[] dirs = new int[] { -1, 0<MASK><NEW_LINE>int[][] f = new int[m][n];<NEW_LINE>f[i][j] = 1;<NEW_LINE>int res = 0;<NEW_LINE>for (int step = 0; step < N; ++step) {<NEW_LINE>int[][] temp = new int[m][n];<N...
, 1, 0, -1 };
1,596,532
private TokenResponse authorizeWithPassword(final Credentials credentials) throws BackgroundException {<NEW_LINE>try {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Request tokens for user %s", credentials.getUsername()));<NEW_LINE>}<NEW_LINE>final PasswordTokenRequest request = new PasswordTok...
, e.getStatusMessage()));
1,024,908
final PutPublicAccessBlockResult executePutPublicAccessBlock(PutPublicAccessBlockRequest putPublicAccessBlockRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putPublicAccessBlockRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix);
1,354,763
public static void main(String[] args) throws Exception {<NEW_LINE>java.util.Date startDate = new java.util.Date();<NEW_LINE>System.out.println("[Start: " + startDate.toString() + "]");<NEW_LINE>ParseArgs parseArgs = new ParseArgs(args).invoke();<NEW_LINE>if (parseArgs.error()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>St...
long diffSeconds = diff / 1000 % 60;
1,430,910
private void handleSnappy(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, BuildProducer<NativeImageResourceBuildItem> nativeLibs, NativeConfig nativeConfig) {<NEW_LINE>reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, true, "org.xerial.snappy.SnappyInputStream", "org.xerial.snappy.SnappyOutputSt...
snappyNativeLibraryName = System.mapLibraryName("snappyjava");
1,182,873
String generate() {<NEW_LINE>TypeSpec.Builder generated = classBuilder(className).superclass(superType()).addAnnotations(copiedClassAnnotations(context.autoValueClass())).addTypeVariables(annotatedTypeVariableNames()).addModifiers(isFinal ? FINAL : ABSTRACT).addMethod(constructor());<NEW_LINE>generatedAnnotationSpec(el...
addFields(methodOverrider.fields());
1,781,324
public void initSubDevices() {<NEW_LINE>Dual020mADevice sensor0 = ModelFactory.eINSTANCE.createDual020mADevice();<NEW_LINE>sensor0.setSensorNum((short) 0);<NEW_LINE>sensor0.setUid(getUid());<NEW_LINE>String subIdsensor0 = "sensor0";<NEW_LINE>sensor0.setSubId(subIdsensor0);<NEW_LINE>logger.debug("{} addSubDevice {}", Lo...
sensor1.setUid(getUid());
1,311,930
public Image makeGradient(String attribute, int wide, int high) {<NEW_LINE>int top = getColor(attribute + ".gradient.top").getRGB();<NEW_LINE>int bot = getColor(<MASK><NEW_LINE>// float r1 = (top >> 16) & 0xff;<NEW_LINE>// float g1 = (top >> 8) & 0xff;<NEW_LINE>// float b1 = top & 0xff;<NEW_LINE>// float r2 = (bot >> 1...
attribute + ".gradient.bottom").getRGB();
113,197
boolean match(Matcher matcher, int i, CharSequence seq) {<NEW_LINE>int savedFrom = matcher.from;<NEW_LINE>boolean conditionMatched = false;<NEW_LINE>int startIndex = (!matcher.transparentBounds) ? matcher.from : 0;<NEW_LINE>int from = Math.<MASK><NEW_LINE>// Set end boundary<NEW_LINE>int savedLBT = matcher.lookbehindTo...
max(i - rmax, startIndex);
137,079
public void actionPerformed(final ActionEvent event) {<NEW_LINE>try {<NEW_LINE>final URL url = new URL(nodeAndMapReference.getMapReference());<NEW_LINE>if (url == null)<NEW_LINE>return;<NEW_LINE>UITools.executeWhenNodeHasFocus(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW...
select(nodeAndMapReference.getNodeReference());
1,506,731
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullUserRequest other) {<NEW_LINE>if (other == cn.wildfirechat.proto.WFCMessage.PullUserRequest.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (requestBuilder_ == null) {<NEW_LINE>if (!other.request_.isEmpty()) {<NEW_LINE>if (request_.isEmpty()) {<NEW_L...
bitField0_ = (bitField0_ & ~0x00000001);
366,542
public R read(JsonReader in) throws IOException {<NEW_LINE>JsonElement jsonElement = Streams.parse(in);<NEW_LINE>JsonElement labelJsonElement = jsonElement.getAsJsonObject().remove(typeFieldName);<NEW_LINE>if (labelJsonElement == null) {<NEW_LINE>throw new JsonParseException("cannot deserialize " + baseType + " because...
"cannot deserialize " + baseType + " subtype named " + label);
671,925
private I_C_RemittanceAdvice toRemittanceAdviceRecord(@NonNull final RemittanceAdvice remittanceAdvice) {<NEW_LINE>final I_C_RemittanceAdvice record = getRecordById(remittanceAdvice.getRemittanceAdviceId());<NEW_LINE>record.setDocStatus(remittanceAdvice.getDocStatus());<NEW_LINE>record.setRemittanceAmt(remittanceAdvice...
getSourceBPartnerId().getRepoId());
579,542
private static String createTokenByGenerator(Controller controller, String tokenName, int secondsOfTimeOut) {<NEW_LINE>if (secondsOfTimeOut < Const.MIN_SECONDS_OF_TOKEN_TIME_OUT) {<NEW_LINE>secondsOfTimeOut = Const.MIN_SECONDS_OF_TOKEN_TIME_OUT;<NEW_LINE>}<NEW_LINE>String tokenId = null;<NEW_LINE>Token token = null;<NE...
valueOf(random.nextLong());
1,089,179
public ChangeConfigResponse changeMasterConfig(String host, int port, boolean isAdd, boolean useHost, String hostAddrToAdd) throws Exception {<NEW_LINE>String masterUuid = null;<NEW_LINE>if (isAdd || !useHost) {<NEW_LINE>masterUuid = getMasterUUID(host, port);<NEW_LINE>if (masterUuid == null) {<NEW_LINE>throw new Illeg...
port, masterUuid, isAdd, useHost);
785,098
public ListNamedShadowsForThingResult listNamedShadowsForThing(ListNamedShadowsForThingRequest listNamedShadowsForThingRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listNamedShadowsForThingRequest);<NEW_LINE>AWSRequestMetrics awsReque...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
735,092
final UpdateVoiceConnectorResult executeUpdateVoiceConnector(UpdateVoiceConnectorRequest updateVoiceConnectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVoiceConnectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
583,778
public Asset<?> create(RequestParams requestParams, Asset<?> asset) {<NEW_LINE>try {<NEW_LINE>if (isRestrictedUser()) {<NEW_LINE>throw new WebApplicationException(FORBIDDEN);<NEW_LINE>}<NEW_LINE>if (asset == null) {<NEW_LINE>LOG.finer("No asset in request");<NEW_LINE>throw new WebApplicationException(BAD_REQUEST);<NEW_...
throw new WebApplicationException(ex, BAD_REQUEST);
854,635
private Single<PathConverter> upload(Set<Path> files) {<NEW_LINE>if (files.isEmpty()) {<NEW_LINE>return Single.just(PathConverter.NO_CONVERSION);<NEW_LINE>}<NEW_LINE>RequestMetadata metadata = TracingMetadataUtils.buildMetadata(<MASK><NEW_LINE>RemoteActionExecutionContext context = RemoteActionExecutionContext.createFo...
buildRequestId, commandId, "bes-upload", null);
1,227,608
public static QueryMovieSchedulesResponse unmarshall(QueryMovieSchedulesResponse queryMovieSchedulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMovieSchedulesResponse.setRequestId(_ctx.stringValue("QueryMovieSchedulesResponse.RequestId"));<NEW_LINE>queryMovieSchedulesResponse.setLogsId(_ctx.stringValue("QueryMo...
("QueryMovieSchedulesResponse.Schedules[" + i + "].CinemaId"));
850,727
public void verifyBOMAssignment(@NonNull final I_PP_Product_Planning planning, @NonNull final I_PP_Product_BOM productBom) {<NEW_LINE>if (!planning.isAttributeDependant()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AttributeSetInstanceId planningASIId = AttributeSetInstanceId.ofRepoIdOrNone(planning.getM_AttributeSet...
).orElse(AttributesKey.NONE);
1,331,230
final DeactivateAnomalyDetectorResult executeDeactivateAnomalyDetector(DeactivateAnomalyDetectorRequest deactivateAnomalyDetectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deactivateAnomalyDetectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeactivateAnomalyDetector");
837,228
public GroupIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GroupIdentifier groupIdentifier = new GroupIdentifier();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
577,086
public void batchPackets(Player[] players, DataPacket[] packets, boolean forceSync) {<NEW_LINE>if (players == null || packets == null || players.length == 0 || packets.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Timings.playerNetworkSendTimer.startTiming();<NEW_LINE>byte[][] payload = new byte[packets.length * ...
, this.networkCompressionLevel), targets);
699,657
private void installModules(Collection<String> artifacts, String jsonProject) {<NEW_LINE>final Set<String> dependencies = new HashSet<>();<NEW_LINE>// process mvnDependencies from CWD package.json<NEW_LINE>if (jsonProject != null) {<NEW_LINE>try {<NEW_LINE>processJson(new File<MASK><NEW_LINE>} catch (IOException e) {<N...
(cwd, jsonProject), dependencies);
1,826,156
public boolean addReplica(ReplicaId replicaId) {<NEW_LINE>if (partitionToPartitionInfo.containsKey(replicaId.getPartitionId())) {<NEW_LINE>logger.warn("Partition {} already exists in replication manager, rejecting adding replica request.", replicaId.getPartitionId());<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>rwLock.w...
remoteReplicaInfos = new ArrayList<>();
497,599
private static void compute(MeasureComputerContext context, String metricKey) {<NEW_LINE>var component = context.getComponent();<NEW_LINE>if (component.getType() == Component.Type.FILE) {<NEW_LINE>// FILE doesn't required any aggregation. Relevant metrics should be provided by the sensor.<NEW_LINE>return;<NEW_LINE>}<NE...
context.addMeasure(metricKey, aggregation);
1,361,953
final DisassociateHealthCheckResult executeDisassociateHealthCheck(DisassociateHealthCheckRequest disassociateHealthCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateHealthCheckRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
(super.beforeMarshalling(disassociateHealthCheckRequest));
549,752
final DescribeFleetPortSettingsResult executeDescribeFleetPortSettings(DescribeFleetPortSettingsRequest describeFleetPortSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFleetPortSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
invoke(request, responseHandler, executionContext);
1,192,358
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>Toolbar toolbar = view.findViewById(R.id.payments_recovery_phrase_confirm_fragment_toolbar);<NEW_LINE>EditText word1 = view.findViewById(R.id.payments_recovery_phrase_confirm_fragment_word_1);<NEW_LINE>EditText word2 = view.<M...
findViewById(R.id.payments_recovery_phrase_confirm_fragment_word_2);
1,420,534
private HttpDataSource.Factory buildHttpDataSourceFactory(DefaultBandwidthMeter bandwidthMeter, OCFile file, Account account) {<NEW_LINE>if (file.isDown()) {<NEW_LINE>return new DefaultHttpDataSourceFactory(MainApp.Companion.getUserAgent(), bandwidthMeter);<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>OwnCloudCredentials ...
getUserAgent(), bandwidthMeter, params);
1,273,449
private void pollingConsumer(MessageChannel channel) {<NEW_LINE>PollingConsumer pollingConsumer = new PollingConsumer((PollableChannel) channel, this.handler);<NEW_LINE>if (this.pollerMetadata == null) {<NEW_LINE>this.pollerMetadata = PollerMetadata.getDefaultPollerMetadata(this.beanFactory);<NEW_LINE>Assert.notNull(th...
this.pollerMetadata.getErrorHandler());
1,132,119
protected ThriftMessage decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception {<NEW_LINE>if (!buffer.readable()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>short firstByte = buffer.getUnsignedByte(0);<NEW_LINE>if (firstByte >= 0x80) {<NEW_LINE>ChannelBuffer messageBuffer = tryDecode...
ctx, channel, buffer, true);
850,450
private static Map<String, GHEvent> createEventMap() {<NEW_LINE>HashMap<String, GHEvent> map = new HashMap<>();<NEW_LINE>map.put("CommitCommentEvent", GHEvent.COMMIT_COMMENT);<NEW_LINE>map.put("CreateEvent", GHEvent.CREATE);<NEW_LINE>map.put("DeleteEvent", GHEvent.DELETE);<NEW_LINE>map.put("ForkEvent", GHEvent.FORK);<N...
put("WatchEvent", GHEvent.WATCH);
222,868
protected void throwOrLogDisposedException(final Long disposedTS) {<NEW_LINE>final StringBuilder message = new StringBuilder();<NEW_LINE>message.append("Accessing an already disposed AttributeStorage shall not be allowed");<NEW_LINE>message.append("\n Storage: " + this);<NEW_LINE>message.append("\n Disposed on: " + (di...
HUException(message.toString());