idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,107,789
public void activate(BundleContext context) {<NEW_LINE>super.activate(context);<NEW_LINE>logger.info("Loading eclim plugins...");<NEW_LINE>String pluginsDir = System.getProperty("eclim.home") + File.separator + ".." + File.separator;<NEW_LINE>String[] pluginDirs = new File(pluginsDir).list(new FilenameFilter() {<NEW_LI...
ii].lastIndexOf('_'));
1,274,871
public SBase convertProtocolBuffersMessageToSObject(Message message, SBase newInstance, SClass sClass) throws ConvertException {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (newInstance == null) {<NEW_LINE>newInstance = sClass.newInstance();<NEW_LINE>}<NEW_LINE>Message subTypeMessage = null;<NEW_LINE>for (FieldDescripto...
Descriptor descriptor = message.getDescriptorForType();
525,208
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>try {<NEW_LINE>// Getting the binder<NEW_LINE>Class smClass = Class.forName("android.os.ServiceManager");<NEW_LINE>IBinder binder = (IBinder) smClass.getMethod("get...
Parcel reply = Parcel.obtain();
1,296,110
private List<Operation> extractOperations(MockService mockService, WsdlInterface wi) {<NEW_LINE>List<Operation> result = new ArrayList<Operation>();<NEW_LINE>List<MockOperation> operations = mockService.getMockOperationList();<NEW_LINE>for (MockOperation mockOperation : operations) {<NEW_LINE>// Build a new operation.<...
.getMockOperation().getScript();
1,321,232
public void onChildClicked(GroupBean groupItem, ChildBean childItem) {<NEW_LINE>if (childItem.mIconId == R.drawable.xiaoshipin) {<NEW_LINE>Intent intent = new Intent(Intent.ACTION_VIEW);<NEW_LINE>intent.setData(Uri.parse("http://dldir1.qq.com/hudongzhibo/liteav/XiaoShiPin.apk"));<NEW_LINE>startActivity(intent);<NEW_LIN...
(Uri.parse("http://dldir1.qq.com/hudongzhibo/liteav/xiaozhibo.apk"));
314,377
public static void main(String[] args) {<NEW_LINE>ThreadLocalDirectoryBenchmark benchmark = new ThreadLocalDirectoryBenchmark();<NEW_LINE>long end;<NEW_LINE>System.out.println("ThreadLocalDirectory<Integer, Integer>");<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>benchmark.sumFromMultipleThreads();<NEW_LI...
(end - start) + " ms.");
213,902
private void startLookups(final List<LookupBean> lookupBeanList) {<NEW_LINE>final ImmutableMap.Builder<String, LookupExtractorFactoryContainer> builder = ImmutableMap.builder();<NEW_LINE>final ExecutorService executorService = Execs.multiThreaded(lookupConfig.getNumLookupLoadingThreads(), "LookupExtractorFactoryContain...
1, remainingLookups.size());
1,647,343
public void migrate(Schema schema, DatabaseSession databaseSession) {<NEW_LINE>EClass pluginBundleVersionClass = schema.createEClass("store", "PluginBundleVersion");<NEW_LINE>EEnum pluginBundleType = schema.createEEnum("store", "PluginBundleType");<NEW_LINE>schema.createEEnumLiteral(pluginBundleType, "MAVEN");<NEW_LINE...
schema.createEEnum("store", "PluginType");
1,747,826
public Map<String, Boolean> propertyTreeGetFlages(String sessionToken, String path) {<NEW_LINE>String response = transport.execute(SimpleRequestBuilder.buildNewJsonRequest(ClassKeys.PROPERTY_TREE).addFunction(FunctionKeys.GET_FLAGS).addParameter(ParameterKeys.PATH, path).addParameter(ParameterKeys.TOKEN, sessionToken)....
responseObj = JSONResponseHandler.toJsonObject(response);
1,840,622
// GEN-LAST:event_upTestFolderActionPerformed<NEW_LINE>private void downFolderActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_downFolderActionPerformed<NEW_LINE>int[] indeces = sourceFolders.getSelectedRows();<NEW_LINE>if (indeces.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (in...
, indeces[i] + 1);
1,631,824
protected void handleOAuthRequest(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, IOException {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "Checking if OAuth20 Provider should process the request.");<NEW_LINE>Tr.debug(tc, "Inbound request ...
Tr.debug(tc, "OAUTH20 _SSO OP WILL NOT PROCESS THE REQUEST");
129,434
public F5LoadBalancerResponse createF5LoadBalancerResponse(ExternalLoadBalancerDeviceVO lbDeviceVO) {<NEW_LINE>F5LoadBalancerResponse response = new F5LoadBalancerResponse();<NEW_LINE>Host lbHost = _hostDao.findById(lbDeviceVO.getHostId());<NEW_LINE>Map<String, String> lbDetails = _detailsDao.findDetails(lbDeviceVO.get...
setIpAddress(lbHost.getPrivateIpAddress());
34,231
public static List<Component> cutTextComponent(Component c, ChatFormatting defaultColor, ChatFormatting highlightColor, int indent) {<NEW_LINE>String s = c.getString();<NEW_LINE>// Apply markup<NEW_LINE>// .replaceAll("_([^_]+)_", highlightColor + "$1" + defaultColor);<NEW_LINE>String markedUp = s;<NEW_LINE>// Split wo...
markedUp.substring(start, end);
1,108,064
public SubTaskGroup createAccessKeySetupTask(String regionCode) {<NEW_LINE>SubTaskGroup subTaskGroup = getTaskExecutor(<MASK><NEW_LINE>CloudAccessKeySetup.Params params = new CloudAccessKeySetup.Params();<NEW_LINE>params.providerUUID = taskParams().providerUUID;<NEW_LINE>params.regionCode = regionCode;<NEW_LINE>params....
).createSubTaskGroup("Create Access Key", executor);
162,553
private static List<OrderByItem> expandColumnNames(SelectClauseElementCompiled[] selectionList, List<OrderByItem> orderByUnexpanded) {<NEW_LINE>if (orderByUnexpanded == null || orderByUnexpanded.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>// copy list to modify<NEW_LINE>List<OrderByItem> e...
OrderByItem orderByElement = iterator.next();
514,498
public static Distribution of(List<String> unquineName) {<NEW_LINE>MetadataManager metadataManager = MetaClusterCurrent.wrapper(MetadataManager.class);<NEW_LINE>List<ShardingTable> shardingTables = new ArrayList<>();<NEW_LINE>List<GlobalTable> globalTables = new ArrayList<>();<NEW_LINE>List<NormalTable> <MASK><NEW_LINE...
normalTables = new ArrayList<>();
204,450
public static void main(String[] args) {<NEW_LINE>Locale.setDefault(Locale.ENGLISH);<NEW_LINE>System.setProperty("sun.java2d.uiScale", "1x");<NEW_LINE>System.setProperty(FlatSystemProperties.UI_SCALE, "1x");<NEW_LINE>File dir = new File("dumps/uidefaults");<NEW_LINE>dump(FlatLightLaf.class.getName(), dir, false);<NEW_L...
main(new String[0]);
1,471,850
public static QueryMqSofamqConsumerAccumulateResponse unmarshall(QueryMqSofamqConsumerAccumulateResponse queryMqSofamqConsumerAccumulateResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMqSofamqConsumerAccumulateResponse.setRequestId(_ctx.stringValue("QueryMqSofamqConsumerAccumulateResponse.RequestId"));<NEW_LINE>que...
(_ctx.booleanValue("QueryMqSofamqConsumerAccumulateResponse.Data.Online"));
347,121
static Map<String, Object> createBaseCoSProperties(@NonNull final JavaActionProvider.Context ctx) {<NEW_LINE>final String command = ctx.getCommand();<NEW_LINE>final Project project = ctx.getProject();<NEW_LINE>final UpdateHelper updateHelper = ctx.getUpdateHelper();<NEW_LINE>final PropertyEvaluator evaluator = ctx.getP...
execProperties = new HashMap<>();
481,169
public Object dbcOpenEnd(Object conn, Object stat) {<NEW_LINE>if (stat == null)<NEW_LINE>return conn;<NEW_LINE>LocalContext lctx = (LocalContext) stat;<NEW_LINE>MethodStep step = (MethodStep) lctx.stepSingle;<NEW_LINE>if (step == null)<NEW_LINE>return conn;<NEW_LINE>TraceContext tctx = lctx.context;<NEW_LINE>if (tctx =...
currentTimeMillis() - tctx.startTime);
1,373,753
private void loadResource(ShapeId id, ObjectNode node, FullyResolvedModelFile modelFile) {<NEW_LINE>LoaderUtils.checkForAdditionalProperties(node, id, RESOURCE_PROPERTIES, modelFile.events());<NEW_LINE><MASK><NEW_LINE>ResourceShape.Builder builder = ResourceShape.builder().id(id).source(node.getSourceLocation());<NEW_L...
applyShapeTraits(id, node, modelFile);
1,275,498
private void initializeFileMenu() {<NEW_LINE>// File menu<NEW_LINE>JMenu fileMenu = new JMenu("File");<NEW_LINE>fileMenu.setMnemonic(KeyEvent.VK_F);<NEW_LINE>fileMenu.<MASK><NEW_LINE>// Browse directory file menu<NEW_LINE>JMenuItem browseDirectory = new JMenuItem("Browse directory...");<NEW_LINE>browseDirectory.setMnem...
getAccessibleContext().setAccessibleDescription("File actions for JAVMovieScraper");
740,611
public Column<C> next() {<NEW_LINE>ColumnOrSuperColumn column = base.next();<NEW_LINE>if (column.isSetSuper_column()) {<NEW_LINE>SuperColumn sc = column.getSuper_column();<NEW_LINE>return new ThriftSuperColumnImpl<C>(colSer.fromBytes(sc.getName()), sc);<NEW_LINE>} else if (column.isSetCounter_column()) {<NEW_LINE><MASK...
CounterColumn cc = column.getCounter_column();
1,767,878
final DescribeJobExecutionResult executeDescribeJobExecution(DescribeJobExecutionRequest describeJobExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,253,316
private SappAddressRollershutterStatus parseSappAddressStatus(String bindingStringAddress) throws BindingConfigParseException {<NEW_LINE>String pnmasId;<NEW_LINE>SappAddressType addressType;<NEW_LINE>int address;<NEW_LINE>String subAddress;<NEW_LINE>int openValue;<NEW_LINE>int closedValue;<NEW_LINE>String[] bindingAddr...
.parseInt(bindingAddress[5]);
898,706
public I_IMP_ProcessorLog createLog(@NonNull final org.compiere.model.I_IMP_Processor impProcessor, @Nullable final String summary, @Nullable final String text, @Nullable final String reference, @Nullable final Throwable error) {<NEW_LINE>if (error != null) {<NEW_LINE>// we only want to log the stacktrace of the orgina...
setAD_Org_ID(impProcessor.getAD_Org_ID());
1,266,081
public void transform(PictureHiBD src, PictureHiBD dst) {<NEW_LINE>int[] y = src.getPlaneData(0);<NEW_LINE>int[] u = src.getPlaneData(1);<NEW_LINE>int[] v = src.getPlaneData(2);<NEW_LINE>int[] data = dst.getPlaneData(0);<NEW_LINE>int offLuma = 0, offChroma = 0;<NEW_LINE>for (int i = 0; i < dst.getHeight(); i++) {<NEW_L...
(offLuma + 1) * 3);
911,365
private static void initScaledBoxes(World world) {<NEW_LINE>if (scaledBoxes == null) {<NEW_LINE>scaledBoxes = new int[100][20];<NEW_LINE>for (int size = 0; size < 100; ++size) {<NEW_LINE>for (int i = 0; i < 20; ++i) {<NEW_LINE>scaledBoxes[size][i] = GLAllocation.generateDisplayLists(1);<NEW_LINE>GL11.glNewList(scaledBo...
.PI) * range / 2F);
1,179,349
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.knowledgeId, convLabelName("Knowledge Id"));<NEW_LI...
.answerId, convLabelName("Answer Id"));
1,340,613
private static FakeResults fakeFST01FL2() {<NEW_LINE>FakeResults r = new FakeResults();<NEW_LINE>ArrayList<LogRecord> latestScanList = new ArrayList<LogRecord>();<NEW_LINE>// [35.144137278765335,33.411331214010715,"1406475896542"] Floor 2<NEW_LINE>latestScanList.add(new LogRecord("00:0b:fd:4a:71:ab", -85));<NEW_LINE>la...
LogRecord("00:0e:84:4b:0b:ec", -70));
1,614,492
private static String addToEffectivePartitionKey(String effectivePartitionKey, int value) {<NEW_LINE>checkArgument(value == 1 <MASK><NEW_LINE>byte[] blob = hexBinaryToByteArray(effectivePartitionKey);<NEW_LINE>if (value == 1) {<NEW_LINE>for (int i = blob.length - 1; i >= 0; i--) {<NEW_LINE>if ((0xff & blob[i]) < 255) {...
|| value == -1, "Argument 'value' has invalid value - only 1 and -1 are allowed");
366,908
private void createArea(final NodeModel node) {<NEW_LINE>final NodeView nodeView = mapView.getNodeView(node);<NEW_LINE>if (nodeView != null) {<NEW_LINE><MASK><NEW_LINE>holder.title = TextController.getController().getShortPlainText(node);<NEW_LINE>holder.alt = TextController.getController().getShortPlainText(node);<NEW...
final AreaHolder holder = new AreaHolder();
1,768,466
public File tofile(byte[] buf, String[] generalTitle) {<NEW_LINE>byte[] bytes = buf;<NEW_LINE>// Goodwill<NEW_LINE>String path = System.getProperty("java.io.tmpdir");<NEW_LINE>if (!(path.endsWith("/") || path.endsWith("\\")))<NEW_LINE>path = path + System.getProperty("file.separator");<NEW_LINE>String prefix = StringUt...
Level.SEVERE, "file", e);
722,712
public static void main(String... args) {<NEW_LINE>Params params = new Params();<NEW_LINE>CmdLineParser parser = new CmdLineParser(params);<NEW_LINE>try {<NEW_LINE>parser.parseArgument(args);<NEW_LINE>} catch (CmdLineException t) {<NEW_LINE>System.err.println(t.getMessage());<NEW_LINE>parser.printUsage(System.out);<NEW...
add(refModel.getName());
663,499
public SDVariable defineLayer(SameDiff SD, SDVariable input, Map<String, SDVariable> paramTable, SDVariable mask) {<NEW_LINE>Conv2DConfig conf = Conv2DConfig.builder().kH(kernelSize[0]).kW(kernelSize[1]).sH(stride[0]).sW(stride[1]).pH(padding[0]).pW(padding[1]).dH(dilation[0]).dW(dilation[1]).paddingMode(ConvolutionMod...
.get(BIAS_PARAM), conf);
1,769,110
private String makeNewOutgoingConnection(String peer_source, String address, int tcp_port, int udp_port, boolean use_tcp, boolean require_crypto, byte crypto_level, Map user_data) {<NEW_LINE>// make sure this connection isn't filtered<NEW_LINE>if (ip_filter.isInRange(address, getDisplayName(), getTorrentHash())) {<NEW_...
) || address.equals("127.0.0.1");
24,550
final PutAppLaunchConfigurationResult executePutAppLaunchConfiguration(PutAppLaunchConfigurationRequest putAppLaunchConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAppLaunchConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,336,416
public SkipperClient skipperClient(SkipperClientProperties properties, RestTemplateBuilder restTemplateBuilder, ObjectMapper objectMapper, @Nullable OAuth2TokenUtilsService oauth2TokenUtilsService) {<NEW_LINE>// TODO (Tzolov) review the manual Hal convertion configuration<NEW_LINE>objectMapper.registerModule(new Jackso...
(true).buildClientHttpRequestFactory());
1,622,575
final ListClassificationJobsResult executeListClassificationJobs(ListClassificationJobsRequest listClassificationJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClassificationJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
682,888
public void run(Object[] args, ZContext ctx, Socket pipe) {<NEW_LINE>// Subscribe to everything<NEW_LINE>Socket subscriber = ctx.createSocket(SocketType.SUB);<NEW_LINE>subscriber.subscribe(ZMQ.SUBSCRIPTION_ALL);<NEW_LINE>subscriber.connect("tcp://localhost:5556");<NEW_LINE>// Get and process messages<NEW_LINE>while (tr...
String string = subscriber.recvStr();
1,494,934
public Scope resolveNamespace(String name, boolean onlyInternal) {<NEW_LINE>if (isHidden(name)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Collection<? extends NameRenaming> opened = myNamespaceCommand.getOpenedReferences();<NEW_LINE>for (NameRenaming renaming : opened) {<NEW_LINE>String newName = renaming.getName();<...
ExpressionResolveNameVisitor.resolve(oldRef, myModuleNamespace);
699,236
private void parseGroupByFillClause(IoTDBSqlParser.GroupByFillClauseContext ctx) {<NEW_LINE>GroupByTimeComponent groupByTimeComponent = new GroupByTimeComponent();<NEW_LINE>FillComponent fillComponent = new FillComponent();<NEW_LINE>// parse time range (start time & end time)<NEW_LINE>parseTimeRange(ctx.timeRange(), gr...
(), true, groupByTimeComponent));
1,235,742
public void createControl(Composite ancestor) {<NEW_LINE>Font font = ancestor.getFont();<NEW_LINE>Composite parent = SWTFactory.createComposite(ancestor, font, 2, 1, GridData.FILL_BOTH);<NEW_LINE>control = parent;<NEW_LINE>SWTFactory.createLabel(parent, "ngrok Installations:", 2);<NEW_LINE>table = new Table(parent, SWT...
createPushButton(buttons, "Edit...", null);
501,388
public byte[] encrypt(byte[] key, byte[] data) {<NEW_LINE>if (key == null) {<NEW_LINE>LOGGER.severe(Common.addTag("Key is null"));<NEW_LINE>return new byte[0];<NEW_LINE>}<NEW_LINE>if (data == null) {<NEW_LINE>LOGGER.severe<MASK><NEW_LINE>return new byte[0];<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>byte[] iVec = new byte[I_VE...
(Common.addTag("data is null"));
1,204,667
public Description matchCompilationUnit(CompilationUnitTree tree, VisitorState state) {<NEW_LINE>if (tree.getTypeDecls().size() <= 1) {<NEW_LINE>// package-info.java files have zero top-level declarations, everything<NEW_LINE>// else should have exactly one.<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>Lis...
setMessage(message).build();
474,099
public static void dumpConfiguration(final PrintStream out) {<NEW_LINE>out.print("OrientDB ");<NEW_LINE>out.print(OConstants.getVersion());<NEW_LINE>out.println(" configuration dump:");<NEW_LINE>String lastSection = "";<NEW_LINE>for (OGlobalConfiguration value : values()) {<NEW_LINE>final int index = value.key.indexOf(...
) value.getValue()));
222,707
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String namespaceName, EHNamespaceInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requi...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,199,348
public static AlarmNotification fromJson(JSONObject jsonObject, Collection<String> pushIdentifierIds) throws JSONException {<NEW_LINE>OperationType operationType = OperationType.values()[jsonObject.getInt("operation")];<NEW_LINE>String summaryEnc = jsonObject.getString("summary");<NEW_LINE>String eventStartEnc = jsonOb...
(jsonObject.getJSONObject("alarmInfo"));
1,230,152
public Answer execute(final UnPlugNicCommand command, final CitrixResourceBase citrixResourceBase) {<NEW_LINE>final Connection conn = citrixResourceBase.getConnection();<NEW_LINE>final String vmName = command.getVmName();<NEW_LINE>final Map<String, Boolean> vlanToPersistenceMap = command.getVlanToPersistenceMap();<NEW_...
, shouldDeleteVlan(networkLabel, vlanToPersistenceMap));
358,957
void kill() {<NEW_LINE>if (autodetectCommunicator == null) {<NEW_LINE>// Killing a connected process would also complete the persistent task if `finish` was true,<NEW_LINE>// so we should do the same here even though the process wasn't yet connected at the time of<NEW_LINE>// the kill<NEW_LINE>if (finish) {<NEW_LINE>jo...
LOGGER.error("[{}] Failed to kill autodetect process for job", jobId);
1,685,313
static void handlePublishConfirmsAsynchronously() throws Exception {<NEW_LINE>try (Connection connection = createConnection()) {<NEW_LINE>Channel ch = connection.createChannel();<NEW_LINE>String queue = UUID.randomUUID().toString();<NEW_LINE>ch.queueDeclare(queue, false, false, true, null);<NEW_LINE>ch.confirmSelect();...
"Message with body %s has been nack-ed. Sequence number: %d, multiple: %b%n", body, sequenceNumber, multiple);
1,513,716
private void appendRawData(byte[] rawData) {<NEW_LINE>System.arraycopy(rawData, 0, rawBuffer, bufferPointer, rawData.length);<NEW_LINE>bufferPointer += rawData.length;<NEW_LINE>SeparatorPredicate predicate = new SeparatorPredicate();<NEW_LINE>int[] indexes = IntStream.range(0, bufferPointer).filter(predicate).toArray()...
prevIndex, i + separator.length);
276,946
public static void main(String[] args) {<NEW_LINE>// BEGIN:<NEW_LINE>// com.azure.analytics.purview.catalog.generated.entityaddclassificationsbyuniqueattribute.entityaddclassificationsbyuniqueattribute<NEW_LINE>EntityClient entityClient = new EntityClientBuilder().credential(new DefaultAzureCredentialBuilder().build())...
addClassificationsByUniqueAttributeWithResponse("azure_storage_account", atlasClassificationArray, requestOptions);
1,447,043
public void bind(@NonNull DcMsg messageResult, @NonNull GlideRequests glideRequests, @NonNull Locale locale, @Nullable String highlightSubstring) {<NEW_LINE>DcContext dcContext = DcHelper.getContext(getContext());<NEW_LINE>DcContact sender = dcContext.getContact(messageResult.getFromId());<NEW_LINE>this.selectedThreads...
getSummarytext(512), highlightSubstring));
1,001,720
public void unSetup() {<NEW_LINE>if (dialogControls.isOkButtonEnabled()) {<NEW_LINE><MASK><NEW_LINE>manipulator.setParseNumbers(parseNumbers);<NEW_LINE>manipulator.setStartColumn(getComboBoxColumn(startColumnComboBox));<NEW_LINE>manipulator.setEndColumn(getComboBoxColumn(endColumnComboBox));<NEW_LINE>if (parseNumbers) ...
boolean parseNumbers = parseNumbersRadioButton.isSelected();
1,218,414
public void showUndoBar(boolean immediate, CharSequence message, Parcelable undoToken, UndoBarHideListener undoBarHideListener) {<NEW_LINE>// We're replacing the existing UndoBarHideListener, meaning that<NEW_LINE>// the original object removal was not undone. So, execute<NEW_LINE>// onUndoBarHide for the previous list...
config_mediumAnimTime)).setListener(null);
136,019
protected void process(AuRequest request) {<NEW_LINE>final String[] data = request.getData();<NEW_LINE>final Component comp = request.getComponent();<NEW_LINE>if (comp == null)<NEW_LINE>throw new UiException(MZk.ILLEGAL_REQUEST_COMPONENT_REQUIRED, this);<NEW_LINE>if (data == null || data.length < 2)<NEW_LINE>throw new ...
toString(data), this });
1,743,916
public void contextInitialized(ServletContextEvent servletContextEvent) {<NEW_LINE>log.info("Initializing '" + getBlock() + "' block, servlet context path: " + servletContextEvent.getServletContext().getContextPath());<NEW_LINE>checkAppHome();<NEW_LINE>try {<NEW_LINE>ServletContext sc = servletContextEvent.getServletCo...
new ServletContextInitializedEvent(sc, applicationContext));
204,346
private double throttlingProbability(Instant instantSinceEpoch) {<NEW_LINE>if (!allRequestsMovingFunction.isSignificant()) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>long allRequestsCount = allRequestsMovingFunction.get(nowMsSinceEpoch);<NEW_LINE>long successfulRequestsCount = successfulRequestsMovingFunc...
long nowMsSinceEpoch = instantSinceEpoch.getMillis();
1,256,323
private void revokeInternal(UserIdentity userIdent, String role, TablePattern tblPattern, PrivBitSet privs, boolean errOnNonExist, boolean isReplay) throws DdlException {<NEW_LINE>writeLock();<NEW_LINE>try {<NEW_LINE>if (role != null) {<NEW_LINE>// revoke privs from role<NEW_LINE>PaloRole existingRole = roleManager.rev...
LOG.info("finished to revoke privilege. is replay: {}", isReplay);
1,609,319
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, HL7Application hl7App, String deviceDN, Attributes attrs) {<NEW_LINE>attrs.put(new BasicAttribute("objectclass", "hl7Application"));<NEW_LINE>LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7ApplicationName", hl7App.getApplicationName(), null);<NEW_...
ldapObj, hl7App, deviceDN, attrs);
510,848
private void decodeRows() throws EOFException {<NEW_LINE>decodedLength = decodedRows.length;<NEW_LINE>for (int u = 0; u < units; u++) {<NEW_LINE>if (bufferPos >= bufferLength) {<NEW_LINE>throw new EOFException("Unexpected end of stream");<NEW_LINE>}<NEW_LINE>// Decode one unit<NEW_LINE>byte cb1 = buffer[bufferPos + uni...
* (column + columns * y);
1,383,074
public GraphPath createDirectGraphPath(NearbyStop egress, boolean arriveBy, int departureTime, ZonedDateTime startOfTime) {<NEW_LINE>List<Edge> egressEdges = egress.edges;<NEW_LINE>Vertex flexToVertex = egress.state.getVertex();<NEW_LINE>if (!isRouteable(flexToVertex)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FlexTr...
= secondsFromStartOfTime + latestArrivalTime - flexTime - preFlexTime;
1,391,584
public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings) throws SAXException {<NEW_LINE>super.closeElement(element, attributes, content, warnings);<NEW_LINE>try {<NEW_LINE>if (RocksimCommonConstants.OD.equals(element)) {<NEW_LINE>lug.setOuterRadius(Math.max(0, Do...
content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_RADIUS));
1,010,096
public ModelAssembler addImport(Path importPath) {<NEW_LINE><MASK><NEW_LINE>if (Files.isDirectory(importPath)) {<NEW_LINE>try (Stream<Path> files = Files.walk(importPath, FileVisitOption.FOLLOW_LINKS).filter(p -> !p.equals(importPath)).filter(p -> Files.isDirectory(p) || Files.isRegularFile(p))) {<NEW_LINE>files.forEac...
Objects.requireNonNull(importPath, "The importPath provided to ModelAssembler#addImport was null");
1,040,025
private static <T> boolean stacksMatchList(List<T> list, NonNullList<ItemStack> stacks, Function<T, Integer> size, BiPredicate<T, ItemStack> matchesIgnoringSize) {<NEW_LINE>List<ItemStack> queryList = new ArrayList<>(stacks.size());<NEW_LINE>for (ItemStack s : stacks) if (!s.isEmpty())<NEW_LINE>queryList.add(s.copy());...
ItemStack query = it.next();
1,506,439
protected void handleIncludeCaseInstance(TaskInfoQueryWrapper taskInfoQueryWrapper, JsonNode includeProcessInstanceNode, List<? extends TaskInfo> tasks, Map<String, String> caseInstanceNames) {<NEW_LINE>if (includeProcessInstanceNode.asBoolean() && CollectionUtils.isNotEmpty(tasks)) {<NEW_LINE>Set<String> caseInstanceI...
), caseInstance.getName());
838,912
void addInstruction(Instruction instruction, int flags) {<NEW_LINE>if (flags != AsmOperandFlags.NONE) {<NEW_LINE>if ((flags & AsmOperandFlags.BROADCAST) != 0)<NEW_LINE>instruction.setBroadcast(true);<NEW_LINE>if ((flags & AsmOperandFlags.ZEROING) != 0)<NEW_LINE>instruction.setZeroingMasking(true);<NEW_LINE>if ((flags &...
REGISTER_MASK) >>> 6));
1,548,371
private void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jMainClassList = <MASK><NEW_LINE>setLayout(new java.awt.GridBagLayout());<NEW_LINE>setPreferredSize(new java.awt.Dimension...
new javax.swing.JList();
391,194
public ImageStore migrateToObjectStore(String name, String url, String providerName, Map<String, String> details) throws DiscoveryException, InvalidParameterValueException {<NEW_LINE>// check if current cloud is ready to migrate, we only support cloud with only NFS secondary storages<NEW_LINE>List<ImageStoreVO> imgStor...
DataStoreLifeCycle lifeCycle = provider.getDataStoreLifeCycle();
437,169
public void deleteSource(final SourceRead source) throws JsonValidationException, IOException, ConfigNotFoundException {<NEW_LINE>// "delete" all connections associated with source as well.<NEW_LINE>// Delete connections first in case it fails in the middle, source will still be visible<NEW_LINE>final WorkspaceIdReques...
getSpecFromSourceId(source.getSourceId());
940,623
public static RubyStruct unmarshalFrom(UnmarshalStream input) throws java.io.IOException {<NEW_LINE>final <MASK><NEW_LINE>RubySymbol className = input.unique();<NEW_LINE>RubyClass rbClass = pathToClass(runtime, className.asJavaString());<NEW_LINE>if (rbClass == null) {<NEW_LINE>throw runtime.newNameError(UNINITIALIZED_...
Ruby runtime = input.getRuntime();
149,861
public boolean visit(MethodInvocation node) {<NEW_LINE>IMethodBinding methodBinding = node.resolveMethodBinding();<NEW_LINE>try {<NEW_LINE>if (WebfluxUtils.REQUEST_PREDICATES_TYPE.equals(methodBinding.getDeclaringClass().getBinaryName())) {<NEW_LINE>String name = methodBinding.getName();<NEW_LINE>if (name != null && We...
), nameArgument.getLength());
1,677,216
protected Boolean call() throws Exception {<NEW_LINE>super.call();<NEW_LINE>if (isCancelled()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>EventsModel eventsModel = getEventsModel();<NEW_LINE>Set<Long> selectedEventIDs;<NEW_LINE>TimeLineController controller = getController();<NEW_LINE>// grab the currently selected ev...
updateMessage(Bundle.ListViewPane_loggedTask_updateUI());
730,154
public static void average(InterleavedS32 from, GrayS32 to) {<NEW_LINE>final int numBands = from.getNumBands();<NEW_LINE>if (numBands == 1) {<NEW_LINE>for (int y = 0; y < from.height; y++) {<NEW_LINE>int indexFrom = from.getIndex(0, y);<NEW_LINE>int indexTo = to.getIndex(0, y);<NEW_LINE>System.arraycopy(from.data, inde...
to.getIndex(0, y);
978,194
private void loadFile(boolean force) {<NEW_LINE>RepositoryContentService service = ServiceFactory.get(RepositoryContentService.class, force);<NEW_LINE>service.getContents(mRepoOwner, mRepoName, mPath, mRef).map(ApiHelpers::throwOnFailure).map(Optional::of).onErrorResumeNext(error -> {<NEW_LINE>if (error instanceof ApiR...
? response.errors() : null;
1,176,802
public void update(final AnActionEvent e) {<NEW_LINE>e.getPresentation().setVisible(false);<NEW_LINE>VirtualFile virtualFile = e.getData(PlatformDataKeys.VIRTUAL_FILE);<NEW_LINE>VirtualFile[] files = e.getData(PlatformDataKeys.VIRTUAL_FILE_ARRAY);<NEW_LINE>if (files != null && files.length > 1) {<NEW_LINE>virtualFile =...
getPresentation().setVisible(true);
1,027,204
private void resolveHttpParams(HttpParams params) {<NEW_LINE>if (params != null) {<NEW_LINE>if (params.getProxy() != null) {<NEW_LINE>InetSocketAddress socketAddress = (InetSocketAddress) params.getProxy().address();<NEW_LINE>HttpHost proxy = new HttpHost(socketAddress.getHostName(), socketAddress.getPort());<NEW_LINE>...
SSLSocketFactory(params.getSSLContext());
712,489
public static QuerySoundCodeListResponse unmarshall(QuerySoundCodeListResponse querySoundCodeListResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySoundCodeListResponse.setRequestId(_ctx.stringValue("QuerySoundCodeListResponse.RequestId"));<NEW_LINE>querySoundCodeListResponse.setSuccess<MASK><NEW_LINE>querySoundCodeL...
(_ctx.booleanValue("QuerySoundCodeListResponse.Success"));
313,137
private boolean save() throws Throwable {<NEW_LINE>// Unit<NEW_LINE>UnitConfig uc = new UnitConfig();<NEW_LINE>uc.setTempTimeOutHour(((Integer) jSTempTimeOut.getValue<MASK><NEW_LINE>uc.setProxyTimeOutHour(((Integer) jSProxyTimeOut.getValue()).intValue());<NEW_LINE>uc.setInterval(((Integer) jSInterval.getValue()).intVal...
()).intValue());
1,169,008
private void addVertexSelectedModeAction(String group) {<NEW_LINE>Icon pathsToVertexIcon = ResourceManager.loadImage("images/fgin.png");<NEW_LINE>Icon pathsFromVertexIcon = ResourceManager.loadImage("images/fgout.png");<NEW_LINE>Icon pathsFromToVertexIcon = ResourceManager.loadImage("images/fginout.png");<NEW_LINE>Icon...
"Show Scoped Flow From Block", forwardScopedIcon, EdgeDisplayType.ScopedFlowsFromVertex);
124,097
public <T> Optional<T> read(Path file, Logger log, Class<T> clazz) throws IOException {<NEW_LINE>final long start = System.currentTimeMillis();<NEW_LINE>log.trace("Reading {}", file);<NEW_LINE>byte[] bytes = new byte[0];<NEW_LINE>try {<NEW_LINE>bytes = Files.readAllBytes(file);<NEW_LINE>log.trace("Read {} bytes from {}...
, JavaUtils.duration(start));
1,032,835
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LI...
setLastUpdatePerson(effectivePerson.getDistinguishedName());
1,811
public static Editable addChecklistUnicodeSpansForRegex(Editable editable, String regex) {<NEW_LINE>if (editable == null) {<NEW_LINE>return new SpannableStringBuilder("");<NEW_LINE>}<NEW_LINE>Pattern p = Pattern.<MASK><NEW_LINE>Matcher m = p.matcher(editable);<NEW_LINE>int positionAdjustment = 0;<NEW_LINE>while (m.find...
compile(regex, Pattern.MULTILINE);
1,057,662
final RetrieveTapeArchiveResult executeRetrieveTapeArchive(RetrieveTapeArchiveRequest retrieveTapeArchiveRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(retrieveTapeArchiveRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
728,440
public HttpResponse execute(HttpRequest req) {<NEW_LINE>Span span = newSpanAsChildOf(tracer, req, "sessionqueue.clear");<NEW_LINE>HTTP_REQUEST.accept(span, req);<NEW_LINE>try {<NEW_LINE>int value = newSessionQueue.clearQueue();<NEW_LINE>span.setAttribute("cleared", value);<NEW_LINE>HttpResponse response = new HttpRespo...
"Cleared the new session request queue", "cleared_requests", value)));
955,748
final AdminLinkProviderForUserResult executeAdminLinkProviderForUser(AdminLinkProviderForUserRequest adminLinkProviderForUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminLinkProviderForUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
150,993
public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@public @buseventtype create json schema JsonEvent(a int, b int);\n" + "@name('s0') select * from JsonEvent#keepall").addListener("s0");<NEW_LINE>env.sendEventJson("{\"a\" : 1, \"b\": 2, \"c\": 3}\n", "JsonEvent");<NEW_LINE>Map<String, Object> ex...
expectedOne.put("a", 1);
124,860
@ResponseBody<NEW_LINE>@ApiImplicitParams({ @ApiImplicitParam(name = "store", dataType = "string", defaultValue = "DEFAULT"), @ApiImplicitParam(name = "lang", dataType = "string", defaultValue = "en") })<NEW_LINE>public void updateOrderStatus(@PathVariable final Long id, @Valid @RequestBody String status, @ApiIgnore Me...
String user = authorizationUtils.authenticatedUser();
1,161,132
public void valueChanged(ListSelectionEvent e) {<NEW_LINE>int[<MASK><NEW_LINE>// addJar allways enabled<NEW_LINE>// addLibrary allways enabled<NEW_LINE>// addArtifact allways enabled<NEW_LINE>// remove enabled only if selection is not empty<NEW_LINE>boolean remove = si != null && si.length > 0;<NEW_LINE>if (si != null ...
] si = rootsList.getSelectedRows();
609,102
public MantisKafkaConsumer<?> build() {<NEW_LINE>Preconditions.checkNotNull(context, "context");<NEW_LINE>Preconditions.checkNotNull(kafkaSourceConfig, "kafkaSourceConfig");<NEW_LINE>Preconditions.checkNotNull(registry, "registry");<NEW_LINE>Preconditions.checkArg(consumerIndex >= 0, "consumerIndex must be greater than...
subscribe(kafkaSourceConfig.getTopics());
331,451
private static User loadFromPrefs(UserId userId, SharedPreferences securePrefs) {<NEW_LINE>final User user = new User();<NEW_LINE>user<MASK><NEW_LINE>user.name = securePrefs.getString(PREF_USER_NAME, "");<NEW_LINE>user.displayName = securePrefs.getString(PREF_DISPLAY_NAME, "");<NEW_LINE>user.username = user.name;<NEW_L...
.id = userId.getId();
788,476
private void innerSendToken(final ReactorDispatcher dispatcher, final SecurityToken token, final String tokenAudience, final OperationResult<Void, Exception> sendTokenCallback) {<NEW_LINE>final Message request = Proton.message();<NEW_LINE>final Map<String, Object> properties = new HashMap<>();<NEW_LINE>properties.put(C...
PUT_TOKEN_TYPE, token.getTokenType());
13,674
// region Lifecycle<NEW_LINE>@Override<NEW_LINE>public void pluginInitialize() {<NEW_LINE>super.pluginInitialize();<NEW_LINE>resourceApi = webView.getResourceApi();<NEW_LINE>wwwDirectoryUri = Uri.parse("file:///android_asset/www");<NEW_LINE>applicationDirectoryUri = Uri.withAppendedPath(wwwDirectoryUri, "application");...
e(LOG_TAG, "Could not load asset manager cache", e);
1,418,221
private boolean sameCompoundModel(CompoundModelSpecification first, CompoundModelSpecification second, MultiValueMap<ModelKey, ModelKey> referenceKeyToEffectiveKey, HashMap<List<ModelKey>, Boolean> seen) {<NEW_LINE>if (first == second) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (first == null || second == null) {<N...
trace("Comparing compound specs {} and {}", first, second);
934,792
private void updatePlatformUser(User user) {<NEW_LINE>final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();<NEW_LINE>PlatformUser currentPlatformUser = null;<NEW_LINE>if (authentication != null && !(authentication instanceof AnonymousAuthenticationToken)) {<NEW_LINE>currentPlatfo...
), user.getAvatarFileName());
865,796
public NakadiCursor convert(final String eventTypeStr, final Cursor cursor) throws InternalNakadiException, NoSuchEventTypeException, InvalidCursorException {<NEW_LINE>final String[] parts = cursor.getOffset().split("-", 3);<NEW_LINE>if (parts.length != 3) {<NEW_LINE>throw new InvalidCursorException(CursorError.INVALID...
Integer.parseInt(orderStr, TIMELINE_ORDER_BASE);
123,923
private // ==========================<NEW_LINE>void updateSettings() {<NEW_LINE>for (Channel chan : channels.values()) {<NEW_LINE>updateSettings(chan);<NEW_LINE>}<NEW_LINE>if (defaultChannel != null) {<NEW_LINE>updateSettings(defaultChannel);<NEW_LINE>}<NEW_LINE>dock.setSetting(DockSetting.Type.TAB_LAYOUT, getTabLayout...
, UIManager.getColor("TextField.selectionForeground"));
1,308,410
public RealtimeContactAnalysisSegment unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RealtimeContactAnalysisSegment realtimeContactAnalysisSegment = new RealtimeContactAnalysisSegment();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
int originalDepth = context.getCurrentDepth();
682,809
public int compareTo(Flow6 rhs) {<NEW_LINE>int ret;<NEW_LINE>ret = _ingressNode.compareTo(rhs._ingressNode);<NEW_LINE>if (ret != 0) {<NEW_LINE>return ret;<NEW_LINE>}<NEW_LINE>ret = _srcIp.compareTo(rhs._srcIp);<NEW_LINE>if (ret != 0) {<NEW_LINE>return ret;<NEW_LINE>}<NEW_LINE>ret = _dstIp.compareTo(rhs._dstIp);<NEW_LIN...
compare(_tcpFlagsPsh, rhs._tcpFlagsPsh);