idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
238,040
private CheckPoints httpCheckpoints(Application application, FlinkCluster flinkCluster) throws IOException {<NEW_LINE>final String flinkUrl = "jobs/%s/checkpoints";<NEW_LINE>ExecutionMode execMode = application.getExecutionModeEnum();<NEW_LINE>if (ExecutionMode.YARN_PER_JOB.equals(execMode) || ExecutionMode.YARN_APPLIC...
yarnRestRequest(reqURL, CheckPoints.class);
201,548
public boolean onInterceptTouchEvent(final MotionEvent me) {<NEW_LINE>// Detecting sliding up finger to show {@link MoreSuggestionsView}.<NEW_LINE>if (!mMoreSuggestionsView.isShowingInParent()) {<NEW_LINE>mLastX = (int) me.getX();<NEW_LINE>mLastY = (int) me.getY();<NEW_LINE>return mMoreSuggestionsSlidingDetector.onTouc...
int action = me.getAction();
1,741,230
protected String[] customCommandLineValidation() {<NEW_LINE>final List<String> <MASK><NEW_LINE>if (CROSSCHECK_BY != CrosscheckMetric.DataType.READGROUP) {<NEW_LINE>errors.add("When calling CrosscheckReadGroupFingerprints, please refrain from supplying a CROSSCHECK_BY argument. " + "(Found value " + CROSSCHECK_BY + "\n"...
errors = new ArrayList<>();
1,262,447
private boolean parseTileSourceIntent() {<NEW_LINE>Intent intent = mapActivity.getIntent();<NEW_LINE>if (intent != null && intent.getData() != null) {<NEW_LINE>Uri data = intent.getData();<NEW_LINE>if (("http".equalsIgnoreCase(data.getScheme()) || "https".equalsIgnoreCase(data.getScheme())) && data.getHost() != null &&...
mapActivity.getSupportFragmentManager(), r);
137,615
private Object executeRxJava2Aspect(RateLimiterOperator rateLimiterOperator, Object returnValue) {<NEW_LINE>if (returnValue instanceof ObservableSource) {<NEW_LINE>Observable<?> observable = (Observable) returnValue;<NEW_LINE>return observable.compose(rateLimiterOperator);<NEW_LINE>} else if (returnValue instanceof Sin...
getClass().getTypeName());
1,345,586
private MultiContainsResult processMultiContainsHttpResponse(HttpResponse httpResponse, List<RuleKey> ruleKeys) throws IOException {<NEW_LINE>ImmutableMultiContainsResult.Builder resultBuilder = ImmutableMultiContainsResult.builder();<NEW_LINE>if (httpResponse.statusCode() != 200) {<NEW_LINE>LOG.warn(String.format("Fai...
"Request was unsuccessful: %s", cacheResponse.getErrorMessage());
1,017,244
T jsonRead(SpiJsonReader jsonRead, String path, boolean withInheritance, T target) throws IOException {<NEW_LINE>JsonParser parser = jsonRead.getParser();<NEW_LINE>// noinspection StatementWithEmptyBody<NEW_LINE>if (parser.getCurrentToken() == JsonToken.START_OBJECT) {<NEW_LINE>// start object token read by Jackson alr...
" - expecting start_object", parser.getCurrentLocation());
1,647,120
void checkAgainstInheritedMethods(MethodBinding currentMethod, MethodBinding[] methods, int length, MethodBinding[] allInheritedMethods) {<NEW_LINE>super.checkAgainstInheritedMethods(currentMethod, methods, length, allInheritedMethods);<NEW_LINE><MASK><NEW_LINE>if (options.isAnnotationBasedNullAnalysisEnabled && (curre...
CompilerOptions options = this.environment.globalOptions;
861,023
private void placePostCompileAndDontMakeForceRoundDummiesHook() {<NEW_LINE>stopJavacProcessingEnvironmentFromClosingOurClassloader();<NEW_LINE>forceMultipleRoundsInNetBeansEditor();<NEW_LINE>Context context = javacProcessingEnv.getContext();<NEW_LINE>disablePartialReparseInNetBeansEditor(context);<NEW_LINE>try {<NEW_LI...
getField(Context.class, "ht");
1,850,373
private TScanRangeLocations newLocations(TBrokerScanRangeParams params, String brokerName) throws UserException {<NEW_LINE>Backend selectedBackend = backends.get(nextBe++);<NEW_LINE>nextBe = nextBe % backends.size();<NEW_LINE>// Generate on broker scan range<NEW_LINE>TBrokerScanRange brokerScanRange = new TBrokerScanRa...
UserException(e.getMessage());
239,937
private void indexExperimentsToUser(List<Pair<Experiment, Assignment>> assignments) {<NEW_LINE>try {<NEW_LINE>Session session = driver.getSession();<NEW_LINE>final BatchStatement batchStatement = new BatchStatement(BatchStatement.Type.UNLOGGED);<NEW_LINE>assignments.forEach(pair -> {<NEW_LINE>Assignment assignment = pa...
getBucketLabel().toString());
1,427,432
final ModifyDBClusterParameterGroupResult executeModifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest modifyDBClusterParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBClusterParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
(super.beforeMarshalling(modifyDBClusterParameterGroupRequest));
1,569,929
public boolean showLookup() {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>checkValid();<NEW_LINE>LOG.assertTrue(!myShown);<NEW_LINE>myShown = true;<NEW_LINE>myStampShown = System.currentTimeMillis();<NEW_LINE>fireLookupShown();<NEW_LINE>if (ApplicationManager.getApplication().isHeadl...
IdeActions.ACTION_RENAME, null, actionEvent);
1,801,063
public JSModuleRecord resolveImportedModule(ScriptOrModule referrer, ModuleRequest moduleRequest) {<NEW_LINE>Map<TruffleString, JSModuleRecord> referrerCache = cache.get(referrer);<NEW_LINE>TruffleString specifier = moduleRequest.getSpecifier();<NEW_LINE>if (referrerCache == null) {<NEW_LINE>referrerCache = new HashMap...
realm = JSRealm.get(null);
448,864
public StreamBucket collect(IntArrayList docIds) {<NEW_LINE>boolean collectSequential = isSequential(docIds);<NEW_LINE>StreamBucket.Builder builder = new StreamBucket.Builder(streamers, ramAccounting);<NEW_LINE>try (var borrowed = fetchTask.searcher(readerId)) {<NEW_LINE>var searcher = borrowed.item();<NEW_LINE>List<Le...
ReaderContext(subReaderContext, storedFieldReader::visitDocument);
187,881
public static List<ErrorDescription> deadBranch(HintContext ctx) {<NEW_LINE>String deadBranchLabel = NbBundle.getMessage(UnusedAssignmentOrBranch.class, "LBL_DEAD_BRANCH");<NEW_LINE>FlowResult <MASK><NEW_LINE>if (flow == null)<NEW_LINE>return null;<NEW_LINE>List<ErrorDescription> result = new ArrayList<ErrorDescription...
flow = Flow.assignmentsForUse(ctx);
1,176,579
public Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>final Tuple<Category, Category> parentAndChild = getChildAndParentCategories(persistencePackage, dynamicEntityDao);<NEW_LINE>final Category parent = parentAndChild.getFirst...
Category child = parentAndChild.getSecond();
1,532,158
protected PageBook createPropertiesPanelTitle(Composite parent) {<NEW_LINE>GridLayout layout;<NEW_LINE>PageBook book = new PageBook(parent, SWT.NONE);<NEW_LINE>book.setFont(parent.getFont());<NEW_LINE>book.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL));<NEW_LINE>titlePage = new Com...
= new GridLayout(2, false);
633,364
public byte[] serialize(ParserErrorCallback errorCallback, RootNode rootNode) {<NEW_LINE>Source source = rootNode.getSourceSection().getSource();<NEW_LINE>assert source != null;<NEW_LINE>CacheItem lastParserResult = cachedLastAntlrResult;<NEW_LINE>if (source != lastParserResult.source && !source.equals(lastParserResult...
PythonSSTNodeFactory(errorCallback, source, this);
1,392,744
protected void loadTileLayer(TiledMap map, MapLayers parentLayers, Element element) {<NEW_LINE>if (element.getName().equals("layer")) {<NEW_LINE>int width = element.getIntAttribute("width", 0);<NEW_LINE>int height = element.getIntAttribute("height", 0);<NEW_LINE>int tileWidth = map.getProperties().get("tilewidth", Inte...
createTileLayerCell(flipHorizontally, flipVertically, flipDiagonally);
1,351,671
private boolean parseProxyLine(String line) throws ProtocolException {<NEW_LINE>// PROXY TCP4 255.255.255.255 255.255.255.255 65535 65535\r\n<NEW_LINE>if (!line.startsWith("PROXY ")) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final Matcher m = PROXY_PATTERN.matcher(line);<NEW_LINE>if (!m.matches()) {<NEW_LINE>throw n...
(m.group(2));
182,987
public ResolveCustomerResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResolveCustomerResult resolveCustomerResult = new ResolveCustomerResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
int originalDepth = context.getCurrentDepth();
1,851,811
public Request<ListEntitiesDetectionJobsRequest> marshall(ListEntitiesDetectionJobsRequest listEntitiesDetectionJobsRequest) {<NEW_LINE>if (listEntitiesDetectionJobsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListEntitiesDetectionJobsRequest)");<NEW_LINE>}<NEW_LINE>R...
t.getMessage(), t);
1,055,947
private Set<ScalarOperator> searchEquivalentValues(Set<ScalarOperator> search, ColumnRefOperator replaceColumnRef) {<NEW_LINE>Set<ScalarOperator> result = Sets.newLinkedHashSet();<NEW_LINE>Map<ColumnRefOperator, ScalarOperator> rewriteMap = Maps.newHashMap();<NEW_LINE>for (ScalarOperator operator : search) {<NEW_LINE>/...
ReplaceColumnRefRewriter rewriter = new ReplaceColumnRefRewriter(rewriteMap);
245,351
private Coordinate displaceFromCornerAwayFromArms(Coordinate nearPt, Coordinate p1, Coordinate p2, double dist) {<NEW_LINE>Coordinate[] corner = orientCorner(nearPt, p1, p2);<NEW_LINE>boolean isInsideCorner = isInsideCorner(vertexPt, nearPt, corner[0], corner[1]);<NEW_LINE>Vector2D u1 = Vector2D.create(nearPt, corner[0...
cornerAng = u1.angle(u2);
1,647,329
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CallActivity.class, BPMN_ELEMENT_CALL_ACTIVITY).namespaceUri(BPMN20_NS).extendsType(Activity.class).instanceProvider(new ModelTypeInstanceProvider<CallActivity>() {<NEW_LINE><NEW_LINE>publ...
namespace(CAMUNDA_NS).build();
1,558,291
private static boolean showDialog(URL whereTo) {<NEW_LINE>String msg = NbBundle.getMessage(FeedbackSurvey.class, "MSG_FeedbackSurvey_Message");<NEW_LINE>String tit = NbBundle.getMessage(FeedbackSurvey.class, "MSG_FeedbackSurvey_Title");<NEW_LINE>String yes = NbBundle.getMessage(FeedbackSurvey.class, "MSG_FeedbackSurvey...
getMessage(FeedbackSurvey.class, "MSG_FeedbackSurvey_Never");
903,154
public static int bitCount(long lng) {<NEW_LINE>lng = (lng & 0x5555555555555555L) + ((lng >> 1) & 0x5555555555555555L);<NEW_LINE>lng = (lng & 0x3333333333333333L) + ((<MASK><NEW_LINE>// adjust for 64-bit integer<NEW_LINE>int i = (int) ((lng >>> 32) + lng);<NEW_LINE>i = (i & 0x0F0F0F0F) + ((i >> 4) & 0x0F0F0F0F);<NEW_LI...
lng >> 2) & 0x3333333333333333L);
1,182,505
private void greeting() {<NEW_LINE>// generate auth data<NEW_LINE>byte[] rand1 = RandomUtil.randomBytes(8);<NEW_LINE>byte[] rand2 = RandomUtil.randomBytes(12);<NEW_LINE>// save auth data<NEW_LINE>byte[] rand = new byte[rand1.length + rand2.length];<NEW_LINE>System.arraycopy(rand1, 0, rand, 0, rand1.length);<NEW_LINE>Sy...
rand1.length, rand2.length);
887,083
public Inventory toInventory(@NonNull final I_M_Inventory inventoryRecord) {<NEW_LINE>final InventoryId inventoryId = InventoryId.ofRepoId(inventoryRecord.getM_Inventory_ID());<NEW_LINE>// shall not be null at this point<NEW_LINE>final DocBaseAndSubType docBaseAndSubType = extractDocBaseAndSubTypeOrNull(inventoryRecord...
timeZone = orgDAO.getTimeZone(orgId);
1,483,473
public LocalFileHeader nextHeaderFrom(long offset) throws IOException {<NEW_LINE>int skipped = 0;<NEW_LINE>for (ByteBuffer buffer = getData(offset + skipped, MAX_HEADER_SIZE); buffer.limit() >= LocalFileHeader.SIZE; buffer = getData(offset + skipped, MAX_HEADER_SIZE)) {<NEW_LINE>int markerOffset = <MASK><NEW_LINE>if (m...
ScanUtil.scanTo(HEADER_SIG, buffer);
1,236,439
public void onReceive(Context context, Intent intent) {<NEW_LINE>if (context.getResources().getBoolean(R.bool.opentasks_support_local_lists)) {<NEW_LINE>// The database was just created, insert a local task list<NEW_LINE>ContentValues listValues = new ContentValues(5);<NEW_LINE>listValues.put(TaskLists.LIST_NAME, conte...
put(TaskLists.OWNER, "");
1,508,796
private void embedNetwork(final EncogProgramNode node) {<NEW_LINE>addBreak();<NEW_LINE>final File methodFile = (File) node.getArgs().get(0).getValue();<NEW_LINE>final MLMethod method = (MLMethod) EncogDirectoryPersistence.loadObject(methodFile);<NEW_LINE>if (!(method instanceof MLFactory)) {<NEW_LINE>throw new EncogErr...
.getContextTargetOffset()) + ";");
1,460,479
public CompletableFuture<MessagingService> start() {<NEW_LINE>if (started.get()) {<NEW_LINE><MASK><NEW_LINE>return CompletableFuture.completedFuture(this);<NEW_LINE>}<NEW_LINE>final CompletableFuture<Void> serviceLoader;<NEW_LINE>if (config.isTlsEnabled()) {<NEW_LINE>serviceLoader = loadServerSslContext().thenCompose(o...
log.warn("Already running at local address: {}", advertisedAddress);
677,621
public void install(@Nonnull Jooby application) throws Exception {<NEW_LINE>ServiceRegistry registry = application.getServices();<NEW_LINE>Jdbi jdbi;<NEW_LINE>if (factory != null) {<NEW_LINE>jdbi = factory.apply(findDataSource(registry));<NEW_LINE>} else {<NEW_LINE>jdbi = Jdbi.create(findDataSource(registry));<NEW_LINE...
new SqlObjectProvider(jdbi, sqlObject));
229,214
protected ProcessResult write(final CrawlURI curi) throws IOException {<NEW_LINE>WARCWriter writer = (WARCWriter) getPool().borrowFile();<NEW_LINE>// Reset writer temp stats so they reflect only this set of records.<NEW_LINE>writer.resetTmpStats();<NEW_LINE>writer.resetTmpRecordLog();<NEW_LINE>long position = writer.ge...
writer.getPosition() - position);
808,103
private void init() {<NEW_LINE>setBorder("normal");<NEW_LINE>VerticalBox vbox = new VerticalBox();<NEW_LINE>appendChild(vbox);<NEW_LINE>tabbox = new Tabbox();<NEW_LINE>vbox.appendChild(tabbox);<NEW_LINE>Tabs tabs = new Tabs();<NEW_LINE>tabbox.appendChild(tabs);<NEW_LINE>Tabpanels tabPanels = new Tabpanels();<NEW_LINE>t...
updateStatus(text.length());
1,617,975
protected void handleBladeException(BladeException e, Request request, Response response) {<NEW_LINE>var blade = WebContext.blade();<NEW_LINE>response.status(e.getStatus());<NEW_LINE>var modelAndView = new ModelAndView();<NEW_LINE>modelAndView.add("title", e.getStatus() + " " + e.getName());<NEW_LINE>modelAndView.add("...
.uri() + "]"));
1,405,912
void check() {<NEW_LINE>String[] <MASK><NEW_LINE>String firstExpand = slices[0];<NEW_LINE>if (isFromAnnotation) {<NEW_LINE>ExpandedQueries eqs = (ExpandedQueries) inventoryClassDefiningThisAlias.getAnnotation(ExpandedQueries.class);<NEW_LINE>DebugUtils.Assert(eqs != null, String.format("inventory[%s] having annotation[...
slices = expandField.split("\\.");
1,385,408
private void initializeValuesForMissing() {<NEW_LINE>if (nonNullReadOrderLength() < parsedFields.size()) {<NEW_LINE>Set<FieldMapping> unmapped = new LinkedHashSet<FieldMapping>(parsedFields);<NEW_LINE>unmapped.removeAll(Arrays.asList(readOrder));<NEW_LINE>missing = unmapped.toArray(new FieldMapping[0]);<NEW_LINE>String...
= new String[missing.length];
1,711,510
final DescribeGatewayCapabilityConfigurationResult executeDescribeGatewayCapabilityConfiguration(DescribeGatewayCapabilityConfigurationRequest describeGatewayCapabilityConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeGatewayCapabilityConfigurationRequest);<NEW_LINE>AWS...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
286,096
private static void runAssertionAllTypes(RegressionEnvironment env, String typeName, Object[] events) {<NEW_LINE>String graph = "@name('flow') create dataflow MyGraph " <MASK><NEW_LINE>env.compileDeploy(graph);<NEW_LINE>env.compileDeploy("@name('s0') select * from " + typeName).addListener("s0");<NEW_LINE>DefaultSuppor...
+ "DefaultSupportSourceOp -> instream<" + typeName + ">{}" + "EventBusSink(instream) {}";
189,006
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtTextOne = "@public insert into MyStreamTE select a, b from AEventTE#keepall as a, BEventTE#keepall as b";<NEW_LINE>env.compileDeploy(stmtTextOne, path);<NEW_LINE>String stmtTextTwo = "@name('s0') select...
{ { "id", "B1" } });
921,763
private static void generatePrimitiveConstantDecoder(final StringBuilder sb, final int level, final String name, final Encoding encoding) throws IOException {<NEW_LINE>assert encoding.presence() == Encoding.Presence.CONSTANT;<NEW_LINE>final PrimitiveType primitiveType = encoding.primitiveType();<NEW_LINE>final String r...
indent(sb, level, "#[inline]\n");
476,678
// Reviewed vs. Native Jan 11, 2011<NEW_LINE>protected void _beforeNewSegment(int resizeBy) {<NEW_LINE>// Called for each new segment being added.<NEW_LINE>if (m_bPathStarted) {<NEW_LINE>// make sure the m_movetoPoint exists and has<NEW_LINE>_initPathStartPoint();<NEW_LINE>// right vertex description<NEW_LINE>// The ne...
- 1, (byte) 0);
891,276
private static Class<? extends DBusSignal> createSignalClass(String intname, String signame) throws DBusException {<NEW_LINE>String name = intname + '$' + signame;<NEW_LINE>Class<? extends DBusSignal> c = classCache.get(name);<NEW_LINE>if (null == c)<NEW_LINE>c = DBusMatchRule.getCachedSignalType(name);<NEW_LINE>if (nu...
) + intname + '.' + signame);
1,532,332
public static void configureSubtitleView(PlayerView playerView) {<NEW_LINE>if (playerView != null) {<NEW_LINE><MASK><NEW_LINE>Context context = playerView.getContext();<NEW_LINE>if (subtitleView != null && context != null) {<NEW_LINE>// disable default style<NEW_LINE>subtitleView.setApplyEmbeddedStyles(false);<NEW_LINE...
SubtitleView subtitleView = playerView.getSubtitleView();
429,950
public void mergeFiles() {<NEW_LINE>String[] pdfpaths = mViewFilesAdapter.getSelectedFilePath().<MASK><NEW_LINE>String masterpwd = mSharedPrefs.getString(MASTER_PWD_STRING, appName);<NEW_LINE>new MaterialDialog.Builder(mActivity).title(R.string.creating_pdf).content(R.string.enter_file_name).input(mContext.getResources...
toArray(new String[0]);
401,836
public void actionPerformed(ActionEvent e) {<NEW_LINE>String command = e.getActionCommand();<NEW_LINE>DialogDescriptor dd = new // NOI18N<NEW_LINE>DialogDescriptor(// NOI18N<NEW_LINE>changesetPickerPanel, // NOI18N<NEW_LINE>org.openide.util.NbBundle.getMessage(ExportBundle.class, "CTL_ExportBundle.ChangesetPicker_Title...
getDefault().createDialog(dd);
530,223
private String sendRaw(String topicName, Producer<?, ?> producer, ProducerRecord recordToSend, Boolean isAsync) throws InterruptedException, ExecutionException {<NEW_LINE>ProducerRecord qualifiedRecord = prepareRecordToSend(topicName, recordToSend);<NEW_LINE>RecordMetadata metadata;<NEW_LINE>if (Boolean.TRUE.equals(isA...
new DeliveryDetails(OK, metadata));
1,831,646
private void importResource(final StructrModuleInfo module) throws IOException {<NEW_LINE>final Set<String> classes = module.getClasses();<NEW_LINE>for (final String name : classes) {<NEW_LINE>String className = StringUtils.removeStart(name, ".");<NEW_LINE>try {<NEW_LINE>// instantiate class..<NEW_LINE>final Class claz...
int modifiers = clazz.getModifiers();
193,834
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.accounts_layout);<NEW_LINE>recyclerView = findViewById(R.id.account_list);<NEW_LINE>setupToolbar();<NEW_LINE>// set the back button from action bar<NEW_LINE>ActionBar actionBar = getSupport...
= new ArbitraryDataProvider(getContentResolver());
30,738
public static void extractSuperClassGenerics(ClassNode type, ClassNode target, Map<String, ClassNode> spec) {<NEW_LINE>// TODO: this method is very similar to StaticTypesCheckingSupport#extractGenericsConnections,<NEW_LINE>// but operates on ClassNodes instead of GenericsType<NEW_LINE>if (target == null || type == targ...
type + " seems not to normally extend " + target + ". Sorry, I cannot handle this.");
1,575,171
public static DetectKitchenAnimalsResponse unmarshall(DetectKitchenAnimalsResponse detectKitchenAnimalsResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectKitchenAnimalsResponse.setRequestId<MASK><NEW_LINE>detectKitchenAnimalsResponse.setCode(_ctx.stringValue("DetectKitchenAnimalsResponse.Code"));<NEW_LINE>detectKitch...
(_ctx.stringValue("DetectKitchenAnimalsResponse.RequestId"));
1,485,625
public void computeExpectations(ArrayList<SumLattice> lattices) {<NEW_LINE>@Var<NEW_LINE>double[][] gammas;<NEW_LINE>IntArrayList cache = new IntArrayList();<NEW_LINE>for (int i = 0; i < lattices.size(); i++) {<NEW_LINE>if (lattices.get(i) == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>SumLattice lattice = lattices....
(FeatureVectorSequence) lattice.getInput();
1,418,406
private void insert(QNm field, Sequence value, JsonNodeTrx trx) {<NEW_LINE>final var fieldName = field.getLocalName();<NEW_LINE>if (value instanceof Atomic) {<NEW_LINE>if (value instanceof Str) {<NEW_LINE>trx.insertObjectRecordAsLastChild(fieldName, new StringValue(((Str) value).stringValue()));<NEW_LINE>} else if (val...
value).intValue()));
1,364,137
public void initWithNiwsConfig(IClientConfig clientConfig) {<NEW_LINE>super.initWithNiwsConfig(clientConfig);<NEW_LINE>this.ncc = clientConfig;<NEW_LINE>this.restClientName = ncc.getClientName();<NEW_LINE>this.isSecure = ncc.get(CommonClientConfigKey.IsSecure, this.isSecure);<NEW_LINE>this.isHostnameValidationRequired ...
this.config = new DefaultApacheHttpClient4Config();
954,997
public static void verifyItem(JRVerifier verifier, Item item, String itemName, String[] requiredNames, Map<String, String> alternativeNamesMap) {<NEW_LINE>if (requiredNames != null && requiredNames.length > 0) {<NEW_LINE>List<ItemProperty<MASK><NEW_LINE>if (itemProperties != null && !itemProperties.isEmpty()) {<NEW_LIN...
> itemProperties = item.getProperties();
1,443,106
protected String[] calculateAbilityDisplayValues(Player player) {<NEW_LINE>// TODO: Needed?<NEW_LINE>if (UserManager.getPlayer(player) == null) {<NEW_LINE>player.sendMessage(LocaleLoader.getString("Profile.PendingLoad"));<NEW_LINE>return new String[] { "DATA NOT LOADED", "DATA NOT LOADED" };<NEW_LINE>}<NEW_LINE>Alchemy...
] displayValues = new String[2];
1,045,248
public void checkExistingData(SessionLocal session) {<NEW_LINE>if (session.getDatabase().isStarting()) {<NEW_LINE>// don't check at startup<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StringBuilder builder = new StringBuilder("SELECT 1 FROM (SELECT ");<NEW_LINE>IndexColumn.writeColumns(builder, columns, IndexColumn.SQL_NO_ORD...
('=').append("P.");
931,708
private boolean decode(MicroQrCode qr) {<NEW_LINE>qr<MASK><NEW_LINE>// Convert pixel values into format bit values<NEW_LINE>if (!readFormatBitValues(qr)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Save the mapping from marker to pixel space as well as the location inside the image<NEW_LINE>// Doing it here so if y...
.failureCause = QrCode.Failure.NONE;
1,127,327
private void addItems() {<NEW_LINE>mTextFieldHelper = new CocosTextHelper(getTextField());<NEW_LINE>getTextField().setBubbleSize(0, 0);<NEW_LINE>mButton = (Button) findComponentById(ResourceTable.Id_editbox_enterBtn);<NEW_LINE>mButton.setTouchEventListener(new Component.TouchEventListener() {<NEW_LINE><NEW_LINE>@Overri...
getTextField().getText());
1,712,547
protected void invalidateTable(String databaseName, String tableName) {<NEW_LINE>HiveTableName hiveTableName = hiveTableName(databaseName, tableName);<NEW_LINE>tableCache.asMap().keySet().stream().filter(hiveTableNameKey -> hiveTableNameKey.getKey().equals(hiveTableName)).forEach(tableCache::invalidate);<NEW_LINE>table...
).forEach(tablePrivilegesCache::invalidate);
525,821
final ListBuildBatchesForProjectResult executeListBuildBatchesForProject(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBuildBatchesForProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
invoke(request, responseHandler, executionContext);
1,189,815
public static void serializeVector(ByteBuf buf, IntFloatVector vector) {<NEW_LINE>StorageMethod method = getStorageMethod(vector);<NEW_LINE>if (method == StorageMethod.SPARSE) {<NEW_LINE>// Sparse storage, use the iterator to avoid array copy<NEW_LINE>ObjectIterator<Int2FloatMap.Entry> iter = vector.getStorage().entryI...
buf.writeInt(indices.length);
29,033
public EvaluationMetricResult evaluate(Aggregations aggs) {<NEW_LINE>long[] tp = new long[thresholds.length];<NEW_LINE>long[] fp = new long[thresholds.length];<NEW_LINE>long[] tn = new long[thresholds.length];<NEW_LINE>long[] fn <MASK><NEW_LINE>for (int i = 0; i < thresholds.length; i++) {<NEW_LINE>Filter tpAgg = aggs....
= new long[thresholds.length];
1,645,911
static // Can be implemented with TreeSet (lower, remove, add)<NEW_LINE>// Can be implemented with TreeSet (lower, remove, add)<NEW_LINE>int // Can be implemented with TreeSet (lower, remove, add)<NEW_LINE>lis(// Can be implemented with TreeSet (lower, remove, add)<NEW_LINE>int[] A, int n) {<NEW_LINE>ArrayList<Integer>...
lis = 0, lis_end = -1;
879,750
public static ClientMessage encodeRequest(java.lang.String name, java.util.UUID txnId, long threadId, com.hazelcast.internal.serialization.Data key, com.hazelcast.internal.serialization.Data value) {<NEW_LINE><MASK><NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationName("TransactionalMultiM...
ClientMessage clientMessage = ClientMessage.createForEncode();
906,190
private String formatModules(Collection<String> data) {<NEW_LINE>boolean oddRow = false;<NEW_LINE>Color oddRowBackground = UIUtils.getDarker(UIUtils.getProfilerResultsBackground());<NEW_LINE>// NOI18N<NEW_LINE>String // NOI18N<NEW_LINE>oddRowBackgroundString = // NOI18N<NEW_LINE>"rgb(" + oddRowBackground.getRed() + ","...
.replace(" ", "&nbsp;"));
827,826
private List<CountAtBucket> nonZeroBuckets() {<NEW_LINE>List<CountAtBucket> buckets = new ArrayList<>();<NEW_LINE>long zeroSnap = zeros.get();<NEW_LINE>if (zeroSnap > 0) {<NEW_LINE>buckets.add(new CountAtBucket(UPPER_BOUNDS[getRangeIndex(ZERO.bucketIdx, ZERO.offset)], zeroSnap));<NEW_LINE>}<NEW_LINE>long lowerSnap = lo...
bucket = values.get(i);
912,651
public Response makeResponse(FitNesseContext context, Request request) throws Exception {<NEW_LINE>WikiPage page = getRequestedPage(request, context);<NEW_LINE>if (page == null)<NEW_LINE>return new NotFoundResponder().makeResponse(context, request);<NEW_LINE>if ("pages".equals(request.getInput("type"))) {<NEW_LINE>Page...
object = getObjectToSerialize(request, page);
514,412
public Node writeDescriptor(Node parent, String nodeName, ConnectionFactoryDefinitionDescriptor desc) {<NEW_LINE>Node node = appendChild(parent, nodeName);<NEW_LINE>appendTextChild(node, TagNames.CONNECTION_FACTORY_DESCRIPTION, desc.getDescription());<NEW_LINE>appendTextChild(node, TagNames.CONNECTION_FACTORY_NAME, des...
poundIndex = resourceAdapterName.indexOf('#');
165,251
public DescribeEntitlementsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeEntitlementsResult describeEntitlementsResult = new DescribeEntitlementsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
605,621
private boolean embed(TaskEvent e) {<NEW_LINE>JavaFileObject sourceFile = e.getSourceFile();<NEW_LINE>if (!sourceFile.equals(_sourceFile)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IFile file;<NEW_LINE>try {<NEW_LINE>file = getHost().getFileSystem().getIFile(sourceFile.toUri().toURL());<NEW_LINE>} catch (Exception e...
.instance().getHost();
978,973
private Sequence record(Table srcTable, Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("record" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>Expression srcExp;<NEW_LINE>int pos = 0;<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>s...
+ mm.getMessage("function.invalidParam"));
1,784,956
public static void shiftValueIntoFlags(final ITranslationEnvironment environment, final long offset, final String value, final OperandSize size, final List<ReilInstruction> instructions) throws IllegalArgumentException {<NEW_LINE>Preconditions.checkNotNull(environment, "Error: Argument environment can't be null");<NEW_...
String pfInLsb = environment.getNextVariableString();
609,439
public Object call(ExecutionContext context, Object self, Object... args) {<NEW_LINE>if (!(self instanceof DynDate)) {<NEW_LINE>throw new ThrowException(context, context.createTypeError("setYear(...) may only be used with Dates"));<NEW_LINE>}<NEW_LINE>DynDate dateObj = (DynDate) self;<NEW_LINE>long t = localTime(contex...
(context, args[2]);
1,467,092
public Scorer scorer(LeafReaderContext context) throws IOException {<NEW_LINE>Sort segmentSort = context.reader()<MASK><NEW_LINE>if (EarlyTerminatingSortingCollector.canEarlyTerminate(sort, segmentSort) == false) {<NEW_LINE>throw new IOException("search sort :[" + sort.getSort() + "] does not match the index sort:[" + ...
.getMetaData().getSort();
1,266,894
/*<NEW_LINE>* @see com.linkedin.databus2.monitors.db.EventFactory#createEvent(long, long, java.sql.ResultSet)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public long createAndAppendEvent(long scn, long timestamp, GenericRecord record, ResultSet row, DbusEventBufferAppendable eventBuffer, boolean enableTracing, boolean isRe...
row, eventBuffer, enableTracing, dbusEventsStatisticsCollector);
263,726
private void applyPlotYAxisSpec(ProductPlot aPlot, XYSeriesCollection dataset, NumberAxis guiYAxis) {<NEW_LINE>// apply Plot Y Axis Label<NEW_LINE>// if no label provided, the Y variable name is used if they are all the same within the collection<NEW_LINE>if (aPlot.getYAxis() != null) {<NEW_LINE>guiYAxis.setLabel(aPlot...
getYMax().doubleValue());
1,836,220
private void processReceived(final Channel channel, final Command msg) {<NEW_LINE>final CommandType commandType = msg.getType();<NEW_LINE>if (CommandType.HEART_BEAT.equals(commandType)) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("server receive heart beat from: host: {}", ChannelUtils.getRemoteAddr...
getRight().submit(r);
216,451
public static List<String> searchFrequentItems(int k, Iterable<String> stream) {<NEW_LINE>// Finds the candidates which may occur > n / k times.<NEW_LINE>String buf = "";<NEW_LINE>Map<String, Integer> table = new HashMap<>();<NEW_LINE>// Counts the number of strings.<NEW_LINE>int n = 0;<NEW_LINE>Iterator<String> sequen...
(buf, 0) + 1);
1,168,019
final DescribeReservedInstanceOfferingsResult executeDescribeReservedInstanceOfferings(DescribeReservedInstanceOfferingsRequest describeReservedInstanceOfferingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedInstanceOfferingsRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
13,895
public Result create(UUID customerUUID, UUID universeUUID) {<NEW_LINE>JsonNode requestBody = request()<MASK><NEW_LINE>SupportBundleFormData bundleData = formFactory.getFormDataOrBadRequest(requestBody, SupportBundleFormData.class);<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>Universe u...
.body().asJson();
1,687,625
private static void testJsMethods() {<NEW_LINE>assertTrue(callFunByA(new A<String>(), "abc").equals("abc"));<NEW_LINE>assertTrue(callFunByA(new B(), "def").equals("defabc"));<NEW_LINE>assertTrue(callFunByA(new C(), 1).equals(new Integer(6)));<NEW_LINE>assertTrue(callFunByA(new D(), 2).equals(new Integer(8)));<NEW_LINE>...
new E(), "xyz"));
63,544
public static Collection<org.netbeans.modules.cordova.platforms.spi.Device> parse(String output) throws IOException {<NEW_LINE>BufferedReader r = new BufferedReader(new StringReader(output));<NEW_LINE>// NOI18N<NEW_LINE>Pattern pattern = Pattern.compile("([-\\w]+)\\s+([\\w]+) *");<NEW_LINE>ArrayList<org.netbeans.module...
platforms.spi.Device>();
1,011,630
List<ImapResponse> readStatusResponse(String tag, String commandToLog, String logId, UntaggedHandler untaggedHandler) throws IOException, NegativeImapResponseException {<NEW_LINE>List<ImapResponse> responses = new ArrayList<>();<NEW_LINE>ImapResponse response;<NEW_LINE>do {<NEW_LINE>response = readResponse();<NEW_LINE>...
response.getTag() == null);
768,388
public StartAvailabilityMonitorTestResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartAvailabilityMonitorTestResult startAvailabilityMonitorTestResult = new StartAvailabilityMonitorTestResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
JsonToken token = context.getCurrentToken();
526,061
public void parseSelectFields(JoinInfo joinInfo) {<NEW_LINE>String sideTableName = joinInfo.getSideTableName();<NEW_LINE>String nonSideTableName = joinInfo.getNonSideTable();<NEW_LINE>List<String> fields = Lists.newArrayList();<NEW_LINE>int sideIndex = 0;<NEW_LINE>for (int i = 0; i < outFieldInfoList.size(); i++) {<NEW...
sideFieldIndex.put(i, sideIndex);
809,715
public DatabaseInfo executeQuery(DatabaseConfiguration dbConfig, String query) throws DatabaseServiceException {<NEW_LINE>try {<NEW_LINE>Connection connection = SQLiteConnectionManager.getInstance().getConnection(dbConfig);<NEW_LINE>Statement statement = connection.createStatement();<NEW_LINE>ResultSet queryResult = st...
logger.error("SQLException::", e);
122,228
// Draw at the given x/y (upper left corner of arrow area).<NEW_LINE>protected void drawRightHideArrow(GC gc, int x, int y) {<NEW_LINE>gc.setForeground(arrowColor);<NEW_LINE>y += ARROW_MARGIN;<NEW_LINE>gc.drawLine(x + 6, y, <MASK><NEW_LINE>gc.drawLine(x + 7, y, x + 7, y + 7);<NEW_LINE>gc.drawLine(x + 2, y, x + 5, y + 3...
x + 6, y + 7);
160,737
public ProcResult fetchResult() throws AnalysisException {<NEW_LINE>BaseProcResult result = new BaseProcResult();<NEW_LINE>result.setNames(TITLE_NAMES);<NEW_LINE>int totalFailedNum = 0;<NEW_LINE>int totalTaskNum = 0;<NEW_LINE>List<Long> backendIds = Catalog.getCurrentSystemInfo().getBackendIds(false);<NEW_LINE>for (Lon...
(String.valueOf(failedNum));
105,976
protected void customLoadLogic(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException {<NEW_LINE>ParsedNode argsNode = <MASK><NEW_LINE>if (argsNode == null) {<NEW_LINE>argsNode = parsedNode;<NEW_LINE>}<NEW_LINE>for (ParsedNode arg : argsNode.getChildren(null, "arg")) {<NEW_LINE>addArg(arg....
parsedNode.getChild(null, "args");
453,365
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject("indexing_pressure");<NEW_LINE>builder.startObject("memory");<NEW_LINE>builder.startObject("current");<NEW_LINE>builder.humanReadableField(COMBINED_IN_BYTES, COMBINED, new ByteSizeValue(currentCom...
PRIMARY, new ByteSizeValue(currentPrimaryBytes));
335,958
public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context) {<NEW_LINE>Optional<AnnotatedElement> element = context.getElement();<NEW_LINE>MergedAnnotations annotations = MergedAnnotations.from(element.get(), MergedAnnotations.SearchStrategy.TYPE_HIERARCHY);<NEW_LINE>if (annotations.get(Rabbit...
store.put(BROKER_RUNNING_BEAN, brokerRunning);
867,936
public void saveSyncRecord(SyncRecord record) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>if (record.getLocalPath() != null) {<NEW_LINE>values.put(KEY_SYNC_FILEPATH_ORI, encrypt(record.getLocalPath()));<NEW_LINE>}<NEW_LINE>if (record.getNewPath() != null) {<NEW_LINE>values.put(KEY_SYNC_FILEPATH_NEW,...
record.isSecondary())));
1,075,214
public static void main(String[] args) {<NEW_LINE>QuickUnionPathCompression quickUnionPathCompression = new Exercise12_QuickUnionPathCompression().new QuickUnionPathCompression(10);<NEW_LINE>quickUnionPathCompression.union(0, 1);<NEW_LINE>quickUnionPathCompression.union(2, 3);<NEW_LINE>quickUnionPathCompression.union(3...
quickUnionPathCompression2.union(6, 7);
1,690,533
public void visitEnd() {<NEW_LINE>super.visitEnd();<NEW_LINE>if (visibleParamAnnotations != null) {<NEW_LINE>VisibilityParameterAnnotationTag tag = new VisibilityParameterAnnotationTag(visibleParamAnnotations.length, AnnotationConstants.RUNTIME_VISIBLE);<NEW_LINE>for (VisibilityAnnotationTag vat : visibleParamAnnotatio...
size(), AnnotationConstants.RUNTIME_VISIBLE);
1,090,519
public AndroidElement findElement(By by) {<NEW_LINE>if (by instanceof ById) {<NEW_LINE>return findElementById(by.getElementLocator());<NEW_LINE>} else if (by instanceof ByTagName) {<NEW_LINE>return findElementByTagName(by.getElementLocator());<NEW_LINE>} else if (by instanceof ByLinkText) {<NEW_LINE>return findElementB...
findElementByXPath(by.getElementLocator());
1,097,711
public void preparedData() {<NEW_LINE>AlterTableGroupMovePartition alterTableGroupMovePartition = (AlterTableGroupMovePartition) relDdl;<NEW_LINE>String tableGroupName = alterTableGroupMovePartition.getTableGroupName();<NEW_LINE>SqlAlterTableGroup sqlAlterTableGroup = (SqlAlterTableGroup) alterTableGroupMovePartition.g...
newPartitionNames = new ArrayList<>();