idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
750,878
int send(final long nowNs) {<NEW_LINE>final long senderPosition = this.senderPosition.get();<NEW_LINE>final int activeTermId = computeTermIdFromPosition(senderPosition, positionBitsToShift, initialTermId);<NEW_LINE>final int termOffset = (int) senderPosition & termLengthMask;<NEW_LINE>if (!hasInitialConnection || isSet...
final long newSenderPosition = maxSpyPosition(senderPosition);
830,262
private void findMemberType(@Nullable String name, Collection<IClass> result) throws CompileException {<NEW_LINE>// Search for a type with the given name in the current class.<NEW_LINE>IClass[] memberTypes = this.getDeclaredIClasses();<NEW_LINE>if (name == null) {<NEW_LINE>result.addAll(Arrays.asList(memberTypes));<NEW...
IClass declaringIClass = this.getDeclaringIClass();
501,374
List<IScanIssue> doScan(IHttpRequestResponse baseRequestResponse, IScannerInsertionPoint insertionPoint) {<NEW_LINE>// don't scan POST<NEW_LINE>if (baseRequestResponse.getRequest()[0] == 'P') {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// set value to canary<NEW_LINE>String canary = Utilities.generateCanary();<NEW_LINE...
, "".getBytes()));
1,150,097
final DescribePoliciesResult executeDescribePolicies(DescribePoliciesRequest describePoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
DescribePoliciesResult>(new DescribePoliciesResultStaxUnmarshaller());
538,580
public Metric unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Metric metric = new Metric();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE>if ...
JsonToken token = context.getCurrentToken();
1,336,656
public static void main(String[] args) throws IOException {<NEW_LINE>DslJson<Object> dslJson = new DslJson<>();<NEW_LINE>Model instance = new Model();<NEW_LINE>instance.abstractProperty = new AbstractClass.ImmutableImplementation(5, "DSL");<NEW_LINE>instance.abstractList = Arrays.asList(new AbstractClass.RecursiveClass...
2).setName("transparency"));
487,928
protected void doSSTORE() {<NEW_LINE>if (program.isStaticCall() && program.getActivations().isActive(RSKIP91)) {<NEW_LINE>throw <MASK><NEW_LINE>}<NEW_LINE>if (computeGas) {<NEW_LINE>DataWord newValue = stack.get(stack.size() - 2);<NEW_LINE>DataWord oldValue = program.storageLoad(stack.peek());<NEW_LINE>// From null to ...
Program.ExceptionHelper.modificationException(program);
643,882
public void update() {<NEW_LINE>try {<NEW_LINE>((IdEObjectImpl) serverInfo).setUuid(bimServer.getUuid());<NEW_LINE>if (bimServer.getVersionChecker() != null) {<NEW_LINE>serverInfo.setVersion(bimServer.getSConverter().convertFromSObject(bimServer.getVersionChecker().getLocalVersion()));<NEW_LINE>}<NEW_LINE>} catch (Bims...
).createSession(OperationType.READ_ONLY);
1,056,749
final EnableMFADeviceResult executeEnableMFADevice(EnableMFADeviceRequest enableMFADeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableMFADeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(enableMFADeviceRequest));
1,685,052
public void createIfNotExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.blob.BlobContainerClient.createIfNotExists<NEW_LINE><MASK><NEW_LINE>System.out.println("Create completed: " + result);<NEW_LINE>// END: com.azure.storage.blob.BlobContainerClient.createIfNotExists<NEW_LINE>// BEGIN: com.azure.storage.blo...
boolean result = client.createIfNotExists();
99,826
private void determineMainSize(@FlexDirection int flexDirection, int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int mainSize;<NEW_LINE>int paddingAlongMainAxis;<NEW_LINE>switch(flexDirection) {<NEW_LINE>// Intentional fall through<NEW_LINE>case FLEX_DIRECTION_ROW:<NEW_LINE>case FLEX_DIRECTION_ROW_REVERSE:<NEW_...
widthMode = MeasureSpec.getMode(widthMeasureSpec);
164,039
public static Expr parse(Query query, String s, boolean checkAllUsed) {<NEW_LINE>try {<NEW_LINE>Reader in = new StringReader(s);<NEW_LINE><MASK><NEW_LINE>parser.setQuery(query);<NEW_LINE>Expr expr = parser.Expression();<NEW_LINE>if (checkAllUsed) {<NEW_LINE>Token t = parser.getNextToken();<NEW_LINE>if (t.kind != ARQPar...
ARQParser parser = new ARQParser(in);
964,616
protected JdbcIndex convertIndex(Map<String, Object> recordMap) {<NEW_LINE>JdbcIndex jdbcIndex = new JdbcIndex();<NEW_LINE>jdbcIndex.setTableCatalog(safeToString(recordMap.get("TABLE_CAT")));<NEW_LINE>jdbcIndex.setTableSchema(safeToString(recordMap.get("TABLE_SCHEM")));<NEW_LINE>jdbcIndex.setTableName(safeToString(reco...
recordMap.get("PAGES")));
20,727
public void process(Aggregations aggs) {<NEW_LINE>if (topActualClassNames.get() == null && aggs.get(aggName(STEP_1_AGGREGATE_BY_ACTUAL_CLASS)) != null) {<NEW_LINE>Terms termsAgg = aggs.get(aggName(STEP_1_AGGREGATE_BY_ACTUAL_CLASS));<NEW_LINE>topActualClassNames.set(termsAgg.getBuckets().stream().map(Terms.Bucket::getKe...
.get(aggName(STEP_2_AGGREGATE_BY_PREDICTED_CLASS));
118,537
public static Key fromHex(final String str) throws KeyFormatException {<NEW_LINE>final char[] input = str.toCharArray();<NEW_LINE>if (input.length != Format.HEX.length)<NEW_LINE>throw new KeyFormatException(Format.HEX, Type.LENGTH);<NEW_LINE>final byte[] key = new byte[Format.BINARY.length];<NEW_LINE>int ret = 0;<NEW_L...
) - 1) >>> 8;
1,714,767
private void runAssertionSelectNested(RegressionEnvironment env, String typename, FunctionSendEvent4Int send, RegressionPath path) {<NEW_LINE>String epl = "@name('s0') select " + "l1.lvl1 as c0, " + "exists(l1.lvl1) as exists_c0, " + "l1.l2.lvl2 as c1, " + "exists(l1.l2.lvl2) as exists_c1, " + "l1.l2.l3.lvl3 as c2, " +...
, true, 400, true });
69,753
public void delete(String namespace) throws AccumuloException, AccumuloSecurityException, NamespaceNotFoundException, NamespaceNotEmptyException {<NEW_LINE>EXISTING_NAMESPACE_NAME.validate(namespace);<NEW_LINE>NamespaceId namespaceId = Namespaces.getNamespaceId(context, namespace);<NEW_LINE>if (namespaceId.equals(Names...
Credentials credentials = context.getCredentials();
1,265,787
JsonNode CollectDiagnostics(Customer c, CollectionLevel callhomeLevel) {<NEW_LINE>ObjectNode payload = Json.newObject();<NEW_LINE>// Build customer details json<NEW_LINE>payload.put("customer_uuid", c.uuid.toString());<NEW_LINE>payload.put("code", c.code);<NEW_LINE>payload.put("email", Users.getAllEmailsForCustomer(c.u...
provider.set("regions", regions);
805,301
final GetDeviceResult executeGetDevice(GetDeviceRequest getDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
false), new GetDeviceResultJsonUnmarshaller());
934,572
public Dimension minimumLayoutSize(final Container container) {<NEW_LINE>final JSplitPane splitPane = (JSplitPane) container;<NEW_LINE>int minPrimary = 0;<NEW_LINE>int minSecondary = 0;<NEW_LINE>final Insets insets = splitPane.getInsets();<NEW_LINE>for (int counter = 0; counter < 3; counter++) {<NEW_LINE>if (components...
final int secSize = getSizeForSecondaryAxis(minSize);
1,482,751
public static void gen_Token(JavaResourceTemplateLocations locations) {<NEW_LINE>try {<NEW_LINE>final File file = new File(Options.getOutputDirectory(), "Token.java");<NEW_LINE>final OutputFile outputFile = new OutputFile(file, tokenVersion, new String[] { Options.USEROPTION__TOKEN_EXTENDS, Options.USEROPTION__KEEP_LIN...
get(0))).beginColumn;
755,749
public Scope visitTable(TableRelation node, Scope outerScope) {<NEW_LINE>TableName tableName = node.getAlias();<NEW_LINE>Table table = node.getTable();<NEW_LINE>ImmutableList.Builder<Field> fields = ImmutableList.builder();<NEW_LINE>ImmutableMap.Builder<Field, Column> columns = ImmutableMap.builder();<NEW_LINE>for (Col...
(fields.build()));
707,013
private void addTableToPacket(Table t) throws JSONException {<NEW_LINE>JSONObject table = new JSONObject();<NEW_LINE>JSONObject[] parents = new JSONObject[10];<NEW_LINE>parents[0] = table;<NEW_LINE>for (int row = 0; row < t.getRowCount(); row++) {<NEW_LINE>List<String> rowList = getRowFromTable(t, row);<NEW_LINE>int in...
].put(name, parent);
213,878
private void updateResources(SourceConfig config) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>String icon = config.getIcon("ios", 57, 57);<NEW_LINE>// NOI18N<NEW_LINE>copy(icon, "icons/icon");<NEW_LINE>// NOI18N<NEW_LINE>icon = config.getIcon("ios", 114, 114);<NEW_LINE>// NOI18N<NEW_LINE>copy(icon, "icons/icon@2x"...
getSplash("ios", 1024, 768);
1,505,829
public void handleMatchSrc(VarNode matchSrc, PointsToSetInternal intersection, VarNode loadBase, VarNode storeBase, VarAndContext origVarAndContext, SparkField field, boolean refine) {<NEW_LINE>AllocAndContextSet allocContexts = findContextsForAllocs(new VarAndContext(loadBase, origVarAndContext.context), intersection)...
(storeBase, EMPTY_CALLSTACK, EMPTY_CALLSTACK));
1,258,107
protected static String genDocString(Op op) {<NEW_LINE>// Following roughly: https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("\"\"\"").append(op.getOpName()).append(" operation").append("\n\n");<NEW_LINE>if (op.getInputs() !...
, DocTokens.GenerationType.ND4J));
930,689
static TransportAddress[] parse(String hostPortString, int defaultPort) throws UnknownHostException {<NEW_LINE>Objects.requireNonNull(hostPortString);<NEW_LINE>String host;<NEW_LINE>String portString = null;<NEW_LINE>if (hostPortString.startsWith("[")) {<NEW_LINE>// Parse a bracketed host, typically an IPv6 literal.<NE...
colonPos = hostPortString.indexOf(':');
864,016
protected boolean driveSynchronization(Synchronization sync) {<NEW_LINE>boolean shouldContinue = true;<NEW_LINE>if (_state == Running) {<NEW_LINE>try {<NEW_LINE>sync.beforeCompletion();<NEW_LINE>} catch (Throwable t) {<NEW_LINE>FFDCFilter.processException(t, "com.ibm.tx.ltc.LocalTranCoordImpl.driveSynchronization", "15...
javax.transaction.Status.STATUS_COMMITTED);
1,134,679
protected String transform(String value, String transDef) {<NEW_LINE>if (transDef == null) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>String[] tokens = tokenize(transDef);<NEW_LINE>String retValue = value;<NEW_LINE>for (int i = 0; i < tokens.length; i += 2) {<NEW_LINE>if ("cut".equals(tokens[i]) || "trunc".equals(tok...
(tokens[i + 1]);
212,570
private void comparePosixPermissions(FileVersionComparison fileComparison) {<NEW_LINE>boolean posixPermsDiffer = false;<NEW_LINE>boolean actualIsNull = fileComparison.actualFileProperties == null || fileComparison<MASK><NEW_LINE>boolean expectedIsNull = fileComparison.expectedFileProperties == null || fileComparison.ex...
.actualFileProperties.getPosixPermissions() == null;
632,942
final DeleteProgramResult executeDeleteProgram(DeleteProgramRequest deleteProgramRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProgramRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteProgramRequest> request = null;<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
677,808
private void writeChart(JRChart chart, String chartName) {<NEW_LINE>if (chart != null) {<NEW_LINE>write(chartName + ".setShowLegend({0});\n", getBooleanText(chart.getShowLegend()));<NEW_LINE>write(chartName + ".setEvaluationTime({0});\n", chart.getEvaluationTimeValue(), EvaluationTimeEnum.NOW);<NEW_LINE>write(chartName...
getBookmarkLevel(), JRAnchor.NO_BOOKMARK);
1,620,504
private DataPack doRefresh(@Nonnull Collection<VirtualFile> roots) {<NEW_LINE>StopWatch sw = StopWatch.start("refresh");<NEW_LINE>PermanentGraph<Integer> permanentGraph = myCurrentDataPack.isFull() ? myCurrentDataPack.getPermanentGraph() : null;<NEW_LINE>Map<VirtualFile, CompressedRefs> currentRefs = myCurrentDataPack....
loadLogAndRefs(roots, currentRefs, commitCount);
539,231
private static Channel connectNio(Bootstrap bootstrap, InetSocketAddress remoteAddress, AsyncResult<?> promise, int maxAttemptCount, @Nullable Condition<Void> stopCondition, int _attemptCount) {<NEW_LINE>int attemptCount = _attemptCount;<NEW_LINE>while (true) {<NEW_LINE>ChannelFuture future = bootstrap.connect(remoteAd...
Throwable cause = future.cause();
783,433
private final void encipher(int[] lr, int off) {<NEW_LINE>int i, n, l = lr[off], r = lr[off + 1];<NEW_LINE>l ^= P[0];<NEW_LINE>for (i = 0; i <= BLOWFISH_NUM_ROUNDS - 2; ) {<NEW_LINE>// Feistel substitution on left word<NEW_LINE>n = S[(<MASK><NEW_LINE>n += S[0x100 | ((l >> 16) & 0xff)];<NEW_LINE>n ^= S[0x200 | ((l >> 8)...
l >> 24) & 0xff];
1,682,180
public InProcessNeo4j build() {<NEW_LINE>Path userLogFile = serverFolder.resolve("neo4j.log");<NEW_LINE>Path internalLogFile = serverFolder.resolve("debug.log");<NEW_LINE>config.set(ServerSettings.third_party_packages, unmanagedExtentions.toList());<NEW_LINE>config.set(GraphDatabaseSettings.store_internal_log_path, int...
policy.enabled, Boolean.TRUE);
1,840,518
final ListResourcesForWebACLResult executeListResourcesForWebACL(ListResourcesForWebACLRequest listResourcesForWebACLRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourcesForWebACLRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
787,290
public RunOutcome run(@Nonnull StepExecutionDetails<BulkImportJobParameters, VoidModel> theStepExecutionDetails, @Nonnull IJobDataSink<NdJsonFileJson> theDataSink) {<NEW_LINE>Integer maxBatchResourceCount = theStepExecutionDetails.getParameters().getMaxBatchResourceCount();<NEW_LINE>if (maxBatchResourceCount == null ||...
) (20 * FileUtils.ONE_MB);
282,499
public Collection<V> remove(Object key) {<NEW_LINE>Collection<V> collection = unfiltered.asMap().get(key);<NEW_LINE>if (collection == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// it's definitely equal to a K<NEW_LINE>@SuppressWarnings({ "unchecked", "rawtypes" })<NEW_LINE>K k = (K) key;<NEW_LINE>List<V> result ...
> itr = collection.iterator();
434,512
private void showRegionResults(final BinaryMapIndexReader region, final SearchPhrase phrase, final SearchResultCollection regionResultCollection, final SearchResultListener resultListener) {<NEW_LINE>app.runInUIThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (!paused && !ca...
resultListener.publish(resCollection, true);
1,288,053
public boolean compareAndSetStateWithStartTime(long schedulerId, long fireTime, FiredScheduledJobState currentState, FiredScheduledJobState newState, Long startTime) {<NEW_LINE>try {<NEW_LINE>final Map<Integer, ParameterContext> params = new HashMap<>(4);<NEW_LINE>int index = 1;<NEW_LINE>MetaDbUtil.setParameter(index++...
params, ParameterMethod.setLong, schedulerId);
1,253,832
public void afterExitScope(NodeTraversal t, ReferenceMap referenceMap) {<NEW_LINE>Node scopeRoot = t.getScopeRoot();<NEW_LINE>if (scopeRoot.isBlock() && scopeRoot.getParent().isFunction()) {<NEW_LINE>boolean changed = false;<NEW_LINE>for (Var v : t.getScope().getVarIterable()) {<NEW_LINE>ReferenceCollection references ...
var.isVar(), var);
594,763
private Phase createPhase() {<NEW_LINE>Phase phase = new Phase("creator", isVerboseLogging());<NEW_LINE>phase.withDaemonAccess();<NEW_LINE>configureDaemonAccess(phase);<NEW_LINE>phase.withLogLevelArg();<NEW_LINE>phase.withArgs("-app", Directory.APPLICATION);<NEW_LINE>phase.withArgs("-platform", Directory.PLATFORM);<NEW...
.launchCacheVolume, Directory.LAUNCH_CACHE));
1,463,623
public SiddhiApp visitSiddhi_app(@NotNull SiddhiQLParser.Siddhi_appContext ctx) {<NEW_LINE>SiddhiApp siddhiApp = SiddhiApp.siddhiApp();<NEW_LINE>for (SiddhiQLParser.App_annotationContext annotationContext : ctx.app_annotation()) {<NEW_LINE>siddhiApp.annotation(<MASK><NEW_LINE>}<NEW_LINE>for (SiddhiQLParser.Definition_s...
(Annotation) visit(annotationContext));
118,206
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.fine("");<NEW_LINE><MASK><NEW_LINE>WWindowStatus ws = WWindowStatus.get(request);<NEW_LINE>if (ws == null) {<NEW_LINE>WebUtil.createTimeoutPage(request, response, this, null);<NEW_LINE>return;...
HttpSession sess = request.getSession();
1,106,050
public boolean tryParse(BtcTransaction btcTx) {<NEW_LINE>if (btcTx == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (btcTx.getInputs().size() == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (btcTx.getInput(0).getScriptBytes() == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Script scriptSig = btcTx.g...
senderBtcKey = BtcECKey.fromPublicOnly(data);
1,367,997
void transpileTry(Node n, @Nullable TranspilationContext.Case breakCase) {<NEW_LINE>Node tryBlock = n.removeFirstChild();<NEW_LINE>Node catchBlock = n.removeFirstChild();<NEW_LINE>Node finallyBlock = n.removeFirstChild();<NEW_LINE>TranspilationContext.Case catchCase = catchBlock.hasChildren() ? context.createCase() : n...
.getFirstFirstChild().detach();
1,173,138
public List<LDUpdate> applyUpdates() {<NEW_LINE>List<LDUpdate> appliedUpdates = new ArrayList<LDUpdate>();<NEW_LINE>LDUpdate update = null;<NEW_LINE>while (ldUpdates.peek() != null) {<NEW_LINE>try {<NEW_LINE>update = ldUpdates.take();<NEW_LINE>} catch (Exception e) {<NEW_LINE>log.error("Error reading link discovery upd...
), update.getType());
212,584
public List<GraphQLError> checkTypeRegistry(TypeDefinitionRegistry typeRegistry, RuntimeWiring wiring) throws SchemaProblem {<NEW_LINE>List<GraphQLError> <MASK><NEW_LINE>checkForMissingTypes(errors, typeRegistry);<NEW_LINE>SchemaTypeExtensionsChecker typeExtensionsChecker = new SchemaTypeExtensionsChecker();<NEW_LINE>t...
errors = new ArrayList<>();
911,639
public boolean processScriptBefore(String fieldName) {<NEW_LINE>int index = getIndexOfScript(fieldName, true);<NEW_LINE>if (index == -1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String beforeElementName = <MASK><NEW_LINE>if (StringUtils.isNotEmpty(beforeElementName)) {<NEW_LINE>if (beforeElementName.equals(getBefor...
fieldName.substring(0, index);
340,839
private void initTransitionWatcher(final ProtocolContext protocolContext, final TransitionCoordinator composedCoordinator) {<NEW_LINE>PostMergeContext postMergeContext = protocolContext.getConsensusContext(PostMergeContext.class);<NEW_LINE>postMergeContext.observeNewIsPostMergeState(newIsPostMergeState -> {<NEW_LINE>if...
Blockchain blockchain = protocolContext.getBlockchain();
1,248,142
private void addDyeRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Red<NEW_LINE>dye(consumer, basePath, Items.RED_DYE, EnumColor.RED, BOPBlocks.ROSE);<NEW_LINE>// Purple<NEW_LINE>dye(consumer, basePath, Items.PURPLE_DYE, EnumColor.PURPLE, BOPBlocks.VIOLET, BOPBlocks.LAVENDER);<NEW_LINE>// Mage...
BOPBlocks.ORANGE_COSMOS, BOPBlocks.BURNING_BLOSSOM);
1,038,609
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean isVerified0(com.sun.jdi.ReferenceType a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart("com.sun.jdi.ReferenceType", "i...
new Object[] { a });
1,819,832
public static ListQueryProcessorsResponse unmarshall(ListQueryProcessorsResponse listQueryProcessorsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQueryProcessorsResponse.setRequestId(_ctx.stringValue("ListQueryProcessorsResponse.requestId"));<NEW_LINE>List<ResultItem> result = new ArrayList<ResultItem>();<NEW_LINE...
("ListQueryProcessorsResponse.result[" + i + "].created"));
979,293
public void plusTo(GradPair gp, int index) {<NEW_LINE>if (numClass == 2 || multiClassMultiTree) {<NEW_LINE>((BinaryGradPair) gp).plusBy(gradients[<MASK><NEW_LINE>} else if (!fullHessian) {<NEW_LINE>MultiGradPair multi = (MultiGradPair) gp;<NEW_LINE>double[] grad = multi.getGrad();<NEW_LINE>double[] hess = multi.getHess...
index], hessians[index]);
1,019,110
public String table(String message, String separator) {<NEW_LINE>String[] lines = StringUtils.split(message, '\n');<NEW_LINE>List<String[]> rows = new ArrayList<>();<NEW_LINE>Maximum.ForInteger rowWidth <MASK><NEW_LINE>for (String line : lines) {<NEW_LINE>String[] row = line.split(separator);<NEW_LINE>rowWidth.add(row....
= new Maximum.ForInteger(0);
1,828,912
public void onBindViewHolder(@NonNull final StickerPackListItemViewHolder viewHolder, final int index) {<NEW_LINE>StickerPack pack = stickerPacks.get(index);<NEW_LINE>final Context context = viewHolder.publisherView.getContext();<NEW_LINE>viewHolder.publisherView.setText(pack.publisher);<NEW_LINE>viewHolder.filesizeVie...
getContext().startActivity(intent);
786,229
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("X509XmlStrService5: Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.ou...
Source src = new StreamSource(respMsg);
1,804,284
public synchronized void sttEventReceived(STTEvent sttEvent) {<NEW_LINE>if (sttEvent instanceof SpeechRecognitionEvent) {<NEW_LINE>if (!this.isSTTServerAborting) {<NEW_LINE>this.sttServiceHandle.abort();<NEW_LINE>this.isSTTServerAborting = true;<NEW_LINE>SpeechRecognitionEvent sre = (SpeechRecognitionEvent) sttEvent;<N...
interpret(this.locale, question);
261,026
public String serialize(int numberOfSpacesToIndent, HttpResponse httpResponse) {<NEW_LINE>StringBuffer output = new StringBuffer();<NEW_LINE>if (httpResponse != null) {<NEW_LINE>appendNewLineAndIndent(numberOfSpacesToIndent * INDENT_SIZE, output).append("response()");<NEW_LINE>if (httpResponse.getStatusCode() != null) ...
, output).append(")");
1,783,646
public void openLink(String url, String title, String target) {<NEW_LINE>Objects.requireNonNull(url);<NEW_LINE>// javascript: security issue<NEW_LINE>if (SecurityUtils.ignoreThisLink(url))<NEW_LINE>return;<NEW_LINE>// if (pendingAction.size() > 0)<NEW_LINE>// closeLink();<NEW_LINE>pendingAction.add(0, (Element) documen...
).setAttribute("xlink:show", "new");
146,675
private void cleanupSubscription(SubscriptionItemStream stream) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.<MASK><NEW_LINE>try {<NEW_LINE>// Indicate that we don't want the asynch deletion thread restarted if the<NEW_LINE>// subscription fails to delete, otherwise we might end up in a tight loop trying<NEW_LINE...
entry(tc, "cleanupSubscription", stream);
267,860
public static void main(final String[] args) throws IOException {<NEW_LINE>final Circle circle = new Circle();<NEW_LINE>circle.Type = Type.Circle;<NEW_LINE>circle.Radius = 3.14;<NEW_LINE>final Rectangle rectangle = new Rectangle();<NEW_LINE>rectangle.Type = Type.Rectangle;<NEW_LINE>rectangle.Width = 10.0;<NEW_LINE>rect...
(output, (short) 1);
664,633
public void init(DataSource dataSource) throws Exception {<NEW_LINE><MASK><NEW_LINE>Assert.hasLength(selectClause, "selectClause must be specified");<NEW_LINE>Assert.hasLength(fromClause, "fromClause must be specified");<NEW_LINE>Assert.notEmpty(sortKeys, "sortKey must be specified");<NEW_LINE>StringBuilder sql = new S...
Assert.notNull(dataSource, "data source must be specified");
287,421
public void testDataSequential() throws Exception {<NEW_LINE>loadData(200000, 2);<NEW_LINE>close();<NEW_LINE>KeyColumnValueStoreManager manager = openStorageManager();<NEW_LINE>KeyColumnValueStore store = manager.openDatabase(Backend.EDGESTORE_NAME);<NEW_LINE>SliceQuery query = new SliceQuery(BufferUtil.zeroBuffer(8), ...
, Iterators.size(entries));
1,456,871
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>Log_OC.i(TAG, "onCreateView() start");<NEW_LINE>View v = super.<MASK><NEW_LINE>if (savedInstanceState != null && savedInstanceState.getParcelable(KEY_CURRENT_SEARCH_TYPE) != null && savedInstanceState.g...
onCreateView(inflater, container, savedInstanceState);
221,487
public CompatibleEnvironmentTemplateInput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CompatibleEnvironmentTemplateInput compatibleEnvironmentTemplateInput = new CompatibleEnvironmentTemplateInput();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
int originalDepth = context.getCurrentDepth();
601,767
public static ClassSetAnalysisData merge(List<ClassSetAnalysisData> datas) {<NEW_LINE>int classCount = 0;<NEW_LINE>int constantsCount = 0;<NEW_LINE>int dependentsCount = 0;<NEW_LINE>for (ClassSetAnalysisData data : datas) {<NEW_LINE>classCount += data.classHashes.size();<NEW_LINE>constantsCount += data.classesToConstan...
builderWithExpectedSize(dependents.size());
1,526,421
public BitSet findOuterMostDecisionStates() {<NEW_LINE>BitSet track = new BitSet(<MASK><NEW_LINE>int numberOfDecisions = atn.getNumberOfDecisions();<NEW_LINE>for (int i = 0; i < numberOfDecisions; i++) {<NEW_LINE>DecisionState decisionState = atn.getDecisionState(i);<NEW_LINE>RuleStartState startState = atn.ruleToStart...
atn.states.size());
314,453
public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>if (event.getType() == GameEvent.EventType.DAMAGED_PLAYER) {<NEW_LINE>DamagedPlayerEvent damageEvent = (DamagedPlayerEvent) event;<NEW_LINE>Permanent p = game.getPermanent(event.getSourceId());<NEW_LINE>if (damageEvent.isCombatDamage() && p != null && p...
(event.getPlayerId()));
746,898
private void changePassphrase(final char[] oldPassphrase) {<NEW_LINE>final char[] newPassphrase = getEnteredPassphrase(newPassphraseInput);<NEW_LINE>final char[] repeatPassphrase = getEnteredPassphrase(repeatPassphraseInput);<NEW_LINE>if (newPassphrase.length == 0) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>} else if ...
showPopup(R.string.PassphraseChangeActivity_enter_new_passphrase_exclamation);
1,840,953
public void processWay(ReaderWay way) {<NEW_LINE>try {<NEW_LINE>if (arrStorageBuilders != null) {<NEW_LINE>int nStorages = arrStorageBuilders.length;<NEW_LINE>if (nStorages > 0) {<NEW_LINE>if (nStorages == 1) {<NEW_LINE>arrStorageBuilders[0].processWay(way);<NEW_LINE>} else if (nStorages == 2) {<NEW_LINE>arrStorageBuil...
[2].processWay(way);
1,691,520
public IpGeoLocation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IpGeoLocation ipGeoLocation = new IpGeoLocation();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu...
int originalDepth = context.getCurrentDepth();
508,265
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String[] filtersAB = new String[] { "theString='a' and (intPrimitive=1 or longPrimitive=10)" };<NEW_LINE>for (String filter : filtersAB) {<NEW_LINE><MASK><NEW_LINE>env.compileDeployAddListenerMile(epl, "s0", mi...
String epl = "@name('s0') select * from SupportBean(" + filter + ")";
546,146
public // -------------------------------------------------------------<NEW_LINE>boolean loadGraph(String name) {<NEW_LINE>// Make sure index ID values are set as LONG values.<NEW_LINE>// If this is not done, when we try to sort results by vertex<NEW_LINE>// ID later it will not sort the way you would expect it to.<NEW...
System.out.println("ERROR - GraphML file not found or invalid.");
564,280
private Mono<Response<Void>> deleteRelayServiceConnectionWithResponseAsync(String resourceGroupName, String name, String entityName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
284,780
public void modifyTestElement(TestElement s) {<NEW_LINE>SubscriberSampler sampler = (SubscriberSampler) s;<NEW_LINE>super.configureTestElement(sampler);<NEW_LINE>sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));<NEW_LINE>sampler.<MASK><NEW_LINE>sampler.setProviderUrl(urlField.getText());<NEW_LIN...
setJNDIIntialContextFactory(jndiICF.getText());
1,852,092
final TableRestoreStatus executeRestoreTableFromClusterSnapshot(RestoreTableFromClusterSnapshotRequest restoreTableFromClusterSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreTableFromClusterSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.ge...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
512,433
private Object[] tryToConvertLineToHyperlink(Project project, String line) {<NEW_LINE>// pattern is "at ...... (file:line:column)"<NEW_LINE>// file can be also http:// url<NEW_LINE>if (!line.endsWith(")")) {<NEW_LINE>return tryToConvertLineURLToHyperlink(project, line);<NEW_LINE>}<NEW_LINE>int start = line.lastIndexOf(...
substring(start + 1, fileEnd);
1,673,394
public static void main(String[] args) throws Exception {<NEW_LINE>System.out.println("CLASSPATH: " + System.getProperty("CLASSPATH"));<NEW_LINE>GenericOptionsParser options = new GenericOptionsParser(args);<NEW_LINE>args = options.getRemainingArgs();<NEW_LINE>if (args.length != 2) {<NEW_LINE>System.err.println("Usage:...
job.setInputFormat(DeprecatedInputFormatWrapper.class);
1,448,484
private void startUpApi() throws Exception {<NEW_LINE>final Set<Resource> pluginResources = prefixPluginResources(PLUGIN_PREFIX, pluginRestResources);<NEW_LINE>final SSLEngineConfigurator sslEngineConfigurator = configuration.isHttpEnableTls() ? buildSslEngineConfigurator(configuration.getHttpTlsCertFile(), configurati...
HostAndPort bindAddress = configuration.getHttpBindAddress();
160,577
public Object visit(ASTReference node, Object data) {<NEW_LINE>String variableName = node.literal();<NEW_LINE>if (variableName.startsWith("$")) {<NEW_LINE>variableName = variableName.substring(<MASK><NEW_LINE>}<NEW_LINE>if (!foreachStack.isEmpty()) {<NEW_LINE>Foreach currentForeach = foreachStack.peek();<NEW_LINE>if (c...
1, variableName.length());
1,403,377
private Element createRuleSetElement(RuleSet ruleSet) {<NEW_LINE>Element ruleSetElement = document.createElementNS(RULESET_2_0_0_NS_URI, "ruleset");<NEW_LINE>ruleSetElement.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");<NEW_LINE>ruleSetElement.setAttributeNS("http://www.w3.org/2001/XMLSchema-in...
createDescriptionElement(ruleSet.getDescription());
615,741
public HttpClient instrument(HttpClient httpClient) throws Exception {<NEW_LINE>return httpClient.copyWith(httpClientSpec -> {<NEW_LINE>httpClientSpec.requestIntercept(requestSpec -> {<NEW_LINE>Context parentOtelCtx = Context.current();<NEW_LINE>if (!instrumenter.shouldStart(parentOtelCtx, requestSpec)) {<NEW_LINE>retu...
requestSpec(), null, ex);
1,737,015
public Object read(final InputStream is) {<NEW_LINE>final ART1 result = new ART1();<NEW_LINE>final EncogReadHelper in = new EncogReadHelper(is);<NEW_LINE>EncogFileSection section;<NEW_LINE>while ((section = in.readNextSection()) != null) {<NEW_LINE>if (section.getSectionName().equals("ART1") && section.getSubSectionNam...
(params, ART.PROPERTY_NO_WINNER));
80,304
public void put(Event event) throws ChannelException {<NEW_LINE>putCounter.incrementAndGet();<NEW_LINE>int eventSize = event.getBody().length;<NEW_LINE>boolean tryAcquire = <MASK><NEW_LINE>if (!tryAcquire) {<NEW_LINE>throw new ChannelException("The buffer is full, please create more SDK object.");<NEW_LINE>}<NEW_LINE>P...
this.bufferQueue.tryAcquire(eventSize);
489,069
public static V3CompressedVSizeColumnarMultiIntsSupplier fromIterable(final Iterable<IndexedInts> objectsIterable, final int offsetChunkFactor, final int maxValue, final ByteOrder byteOrder, final CompressionStrategy compression, final Closer closer) {<NEW_LINE>Iterator<IndexedInts> objects = objectsIterable.iterator()...
IndexedInts next = objects.next();
1,091,484
/*<NEW_LINE>* The resolved classpath of the given project may have changed:<NEW_LINE>* - generate a delta<NEW_LINE>* - trigger indexing<NEW_LINE>* - update project references<NEW_LINE>* - create resolved classpath markers<NEW_LINE>*/<NEW_LINE>protected void classpathChanged(ClasspathChange change, boolean refreshExtern...
change.generateDelta(delta, true);
1,161,492
public static void vertical(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int radius = kernel.getRadius();<NEW_LINE>final int offset = <MASK><NEW_LINE>f...
UtilDownConvolve.computeOffset(skip, radius);
1,227,063
public static GetCopyrightPersonListResponse unmarshall(GetCopyrightPersonListResponse getCopyrightPersonListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCopyrightPersonListResponse.setRequestId(_ctx.stringValue("GetCopyrightPersonListResponse.RequestId"));<NEW_LINE>getCopyrightPersonListResponse.setPageNum(_ctx.i...
("GetCopyrightPersonListResponse.Data[" + i + "].LegalPersonType"));
1,487,260
private void assignRole(RoleAssignee ra, DataverseRole r) {<NEW_LINE>try {<NEW_LINE>String privateUrlToken = null;<NEW_LINE>commandEngine.submit(new AssignRoleCommand(ra, r, dvObject, dvRequestService.getDataverseRequest(), privateUrlToken));<NEW_LINE>List<String> args = Arrays.asList(r.getName(), ra.getDisplayInfo().g...
(dvObject.getDisplayName()));
822,529
public static AddressXML restoreXml(XmlElement el, Language language) throws XmlParseException {<NEW_LINE>AddressXML result;<NEW_LINE>if (el.getName().equals("register")) {<NEW_LINE>String regName = el.getAttribute("name");<NEW_LINE>if (regName == null) {<NEW_LINE>throw new XmlParseException("Missing register name");<N...
register = language.getRegister(regName);
517,673
static boolean canRecover(LocalBufferFile bf) {<NEW_LINE>RecoveryFile rf = null;<NEW_LINE>try {<NEW_LINE>File[] snapshotFiles = getSnapshotFiles(bf);<NEW_LINE>rf = getRecoveryFile(bf, snapshotFiles);<NEW_LINE>if (rf != null) {<NEW_LINE>boolean canRecover = true;<NEW_LINE>try {<NEW_LINE>if (rf.getParameter(CHANGE_SET_RE...
[] changeFiles = getChangeFiles(bf);
959,618
private void insert(String data) throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>String[] dataArray = data.split(",");<NEW_LINE>String device = dataArray[0];<NEW_LINE>long time = Long.parseLong(dataArray[1]);<NEW_LINE>List<String> measurements = Arrays.asList(dataArray[<MASK><NEW_LINE>List<TSDat...
2].split(":"));
363,426
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>mPrefs = Prefs.getSharedPrefs(getApplicationContext());<NEW_LINE>doLayout();<NEW_LINE>LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this);<NEW_LINE>lbm.registerReceiver(mLocalBroadcastReceiver, new In...
Editor pEdit = mPrefs.edit();
643,717
public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));<NEW_LINE>SlowLogRecords slowLogRecords = new SlowLogRecor...
("DescribeSlowLogRecordsResponse.SlowLogRecords.Data[" + i + "].InitialAddress"));
332,511
public static void recursiveBuildStack(CodegenMethod methodNode, String name, CodegenClassMethods methods) {<NEW_LINE>if (methodNode.getOptionalSymbolProvider() == null) {<NEW_LINE>throw new IllegalArgumentException("Method node does not have symbol provider");<NEW_LINE>}<NEW_LINE>Map<String, EPTypeClass> currentSymbol...
getOptionalSymbolProvider().provide(currentSymbols);
1,853,173
// ExternalRequestDelegate<NEW_LINE>@Override<NEW_LINE>public boolean onHandleExternalRequest(@NonNull String url) {<NEW_LINE>if (UrlUtils.isEngineSupportedScheme(url)) {<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>Intent intent;<NEW_LINE>try {<NEW_LINE>intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME);<NEW...
selector.addCategory(Intent.CATEGORY_BROWSABLE);
24,268
public boolean put(final Txn<T> txn, final T key, final T val, final PutFlags... flags) {<NEW_LINE>if (SHOULD_CHECK) {<NEW_LINE>requireNonNull(txn);<NEW_LINE>requireNonNull(key);<NEW_LINE>requireNonNull(val);<NEW_LINE>txn.checkReady();<NEW_LINE>txn.checkWritesAllowed();<NEW_LINE>}<NEW_LINE>txn.kv().keyIn(key);<NEW_LINE...
kv().valIn(val);
840,964
private InheritanceModel buildInheritenceModel() {<NEW_LINE>InheritanceModel model = null;<NEW_LINE>if (superClazzType != null) {<NEW_LINE>// means there is a super class<NEW_LINE>// scan for inheritence model.<NEW_LINE>if (superClazzType.getPersistenceType().equals(PersistenceType.ENTITY) && superClazzType.getJavaType...
descriminator, descriminatorValue, tableName, schemaName);