idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
180,542
private void initComponents() {<NEW_LINE>// GEN-BEGIN:initComponents<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jPanel1 = new MainClassChooser(sourcesRoots, org.openide.util.NbBundle.getBundle(Main...
= java.awt.GridBagConstraints.REMAINDER;
356,741
public void accept(ThreadContext context, SaveContextVisitor visitor) {<NEW_LINE>Document document = getDocument();<NEW_LINE>visitor.enter(document);<NEW_LINE>NodeList children = document.getChildNodes();<NEW_LINE>for (int i = 0; i < children.getLength(); i++) {<NEW_LINE>Node child = children.item(i);<NEW_LINE>short ty...
getCachedNodeOrCreate(context.runtime, child);
1,347,819
final DescribeRxNormInferenceJobResult executeDescribeRxNormInferenceJob(DescribeRxNormInferenceJobRequest describeRxNormInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRxNormInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeRxNormInferenceJob");
438,834
protected boolean isWeaker(MutableRel rel0, MutableRel rel) {<NEW_LINE>if (rel0 == rel || equivalents.get(rel0).contains(rel)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!(rel0 instanceof MutableFilter) || !(rel instanceof MutableFilter)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!rel.rowType.equals(rel0.r...
), rexImpl, rel.rowType);
1,186,401
public Mono<UserData> saveProfilePhoto(Part filePart) {<NEW_LINE>final Mono<String> prevAssetIdMono = getForCurrentUser().map(userData -> ObjectUtils.defaultIfNull(userData.getProfilePhotoAssetId(), ""));<NEW_LINE>final Mono<Asset> uploaderMono = assetService.upload(filePart, MAX_PROFILE_PHOTO_SIZE_KB, true);<NEW_LINE>...
String oldAssetId = tuple.getT1();
545,721
private List<City> fillWithCities(String name, final ResultMatcher<City> resultMatcher, final List<Integer> typeFilter) throws IOException {<NEW_LINE>List<City> result <MASK><NEW_LINE>ResultMatcher<MapObject> matcher = new ResultMatcher<MapObject>() {<NEW_LINE><NEW_LINE>List<City> cache = new ArrayList<City>();<NEW_LIN...
= new ArrayList<City>();
1,256,143
public void to(WriteStream<T> ws, Handler<AsyncResult<Void>> completionHandler) {<NEW_LINE>if (ws == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>boolean endOnSuccess;<NEW_LINE>boolean endOnFailure;<NEW_LINE>synchronized (PipeImpl.this) {<NEW_LINE>if (dst != null) {<NEW_LINE>throw new IllegalS...
write(item, this::handleWriteResult);
293,567
protected static ExtractedInfo extractProvenanceInfo(Map<String, Provenance> map) {<NEW_LINE>Map<String, Provenance> configuredParameters = new HashMap<>(map);<NEW_LINE>String className = ObjectProvenance.checkAndExtractProvenance(configuredParameters, CLASS_NAME, StringProvenance.class, DirectoryFileSourceProvenance.c...
.class.getSimpleName()));
745,904
public String expandExpressions(String text, DatabaseChangeLog changeLog) {<NEW_LINE>if (text == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Matcher matcher = EXPRESSION_PATTERN.matcher(text);<NEW_LINE>String originalText = text;<NEW_LINE>while (matcher.find()) {<NEW_LINE>String expressionString = originalText.su...
), matcher.end());
1,697,204
public boolean processMarkers(Marker[] imagedBoardMarkers, Marker[] imagedProjectorMarkers, int cameraNumber) {<NEW_LINE>rmseBoardWarp[cameraNumber] = boardPlane.getTotalWarp(imagedBoardMarkers, boardWarp[cameraNumber]);<NEW_LINE>rmseProjWarp[cameraNumber] = projectorPlane.getTotalWarp(imagedProjectorMarkers, projWarp[...
getProjectiveDevice().imageHeight) / 2;
681,799
final ListDistributionsByKeyGroupResult executeListDistributionsByKeyGroup(ListDistributionsByKeyGroupRequest listDistributionsByKeyGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDistributionsByKeyGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudFront");
1,133,641
public void start(Stage stage) {<NEW_LINE>FlowPane main = new FlowPane();<NEW_LINE>main.setVgap(20);<NEW_LINE>main.setHgap(20);<NEW_LINE>main.getChildren().add(new Button("Java Button"));<NEW_LINE>JFXButton jfoenixButton = new JFXButton("JFoenix Button");<NEW_LINE>main.getChildren().add(jfoenixButton);<NEW_LINE>JFXButt...
getChildren().add(main);
139,322
protected ErlangVisitor buildErlangVisitor(@NotNull final ProblemsHolder holder, @NotNull LocalInspectionToolSession session) {<NEW_LINE>return new ErlangVisitor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void visitFunctionCallExpression(@NotNull ErlangFunctionCallExpression o) {<NEW_LINE>if (o.getParent() instan...
getBif("erlang", name, arity);
292,608
public void addToContextMenu(ContextMenu menu) {<NEW_LINE>// --------------------------<NEW_LINE>// Dock<NEW_LINE>// --------------------------<NEW_LINE>menu.addCheckboxItem("dockToggleDocked", "Dock as tab", isDocked);<NEW_LINE>// --------------------------<NEW_LINE>// Channel Change<NEW_LINE>// ----------------------...
JMenu openChansMenu = new JMenu(openChansLabel);
250,674
public Object fromKV(byte[] key, byte[] value) {<NEW_LINE>String[] keyParts = new String(key).split(MetricUtils.DELIM);<NEW_LINE>if (keyParts.length >= 4) {<NEW_LINE>this.clusterName = keyParts[0];<NEW_LINE>this.topologyId = keyParts[1];<NEW_LINE>this.metaType = Integer.valueOf(keyParts[2]);<NEW_LINE>this.id = Long.val...
(valueParts[1], 0);
862,288
public void run(WorkingCopy workingCopy) throws java.io.IOException {<NEW_LINE><MASK><NEW_LINE>ClassTree javaClass = SourceUtils.getPublicTopLevelTree(workingCopy);<NEW_LINE>TypeElement classElement = SourceUtils.getPublicTopLevelElement(workingCopy);<NEW_LINE>List<? extends AnnotationMirror> anns = classElement.getAnn...
workingCopy.toPhase(Phase.ELEMENTS_RESOLVED);
327,626
private static Alias merge(Alias a1, String name, Function<String, Alias> findUnqualifiedAlias, HashSet<String> names) {<NEW_LINE>if (names.contains(name)) {<NEW_LINE>throw new RuntimeException("Encountered alias loop on '" + name + "'");<NEW_LINE>}<NEW_LINE>String[] <MASK><NEW_LINE>if (parts.length > 2 || parts[0].isE...
parts = name.split("@");
884,588
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("workday" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>if (size != 2 && size != 3) {<NEW_LINE>MessageManager mm ...
(Date) date1.clone();
207,443
public void read(org.apache.thrift.protocol.TProtocol prot, SyncRequestMessage struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>struct.header = new AsyncMessageHeader();<NEW_LINE>struct.header.read(iprot);...
struct.keys.add(_elem54);
1,015,774
public void insertSpace(AddrSpace spc) {<NEW_LINE>// Add new space to the list, verify name and id conventions<NEW_LINE>boolean nametype_mismatch = false;<NEW_LINE>boolean duplicatedefine = false;<NEW_LINE>switch(spc.getType()) {<NEW_LINE>case IPTR_CONSTANT:<NEW_LINE>if (!spc.getName().equals(SpaceNames.CONSTANT_SPACE_...
spc.getName() + " was initialized with wrong type");
1,302,484
public synchronized void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setStroke(new BasicStroke(5));<NEW_LINE>g2.setColor(Color.gray);<NEW_LINE>if (mode == Mode.PLACING_POINTS) {<NEW_LINE>if (numSelected == 1) {<NEW_LINE>drawCorner(g2, quad.a, Color...
quad.a, Color.RED);
420,921
final DeletePipelineResult executeDeletePipeline(DeletePipelineRequest deletePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
504,259
private I_PP_Cost_Collector createFinishedGoodsReceipt(@NonNull final ReceiptCostCollectorCandidate candidate) {<NEW_LINE>final I_PP_Order order = candidate.getOrder();<NEW_LINE>final <MASK><NEW_LINE>final Quantity qtyScrap = candidate.getQtyScrap();<NEW_LINE>final Quantity qtyReject = candidate.getQtyReject();<NEW_LIN...
Quantity qtyToDeliver = candidate.getQtyToReceive();
377,883
private static int subscribePlayer(CommandSourceStack source, String player_name, String logname, String option) {<NEW_LINE>Player player = source.getServer().getPlayerList().getPlayerByName(player_name);<NEW_LINE>if (player == null) {<NEW_LINE><MASK><NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (LoggerRegistry.getLogger(...
Messenger.m(source, "r No player specified");
238,266
public static CellDataSet cellSet2Matrix(final CellSet cellSet, ICellSetFormatter formatter) {<NEW_LINE>if (cellSet == null) {<NEW_LINE>return new CellDataSet(0, 0);<NEW_LINE>}<NEW_LINE>final Matrix matrix = formatter.format(cellSet);<NEW_LINE>final CellDataSet cds = new CellDataSet(matrix.getMatrixWidth(), matrix.getM...
setOffset(matrix.getOffset());
745,331
private TypeUpdateResult applyInvokeTypes(TypeUpdateInfo updateInfo, BaseInvokeNode invoke, int argsCount, Set<ArgType> knownTypeVars, Supplier<ArgType> getReturnType, Function<Integer, ArgType> getArgType) {<NEW_LINE>boolean allSame = true;<NEW_LINE>RegisterArg resultArg = invoke.getResult();<NEW_LINE>if (resultArg !=...
updateTypeChecked(updateInfo, resultArg, returnType);
647,332
public static Object buildType(ColumnDesc column, ClasspathImportServiceCompileTime classpathImportService, ClasspathExtensionClass classpathExtension) throws ExprValidationException {<NEW_LINE>if (column.getType() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ClassDescriptor classIdent = ClassDescriptor.<MASK><...
parseTypeText(column.getType());
159,683
private OvsVpcRoutingPolicyConfigCommand prepareVpcRoutingPolicyUpdate(long vpcId) {<NEW_LINE>List<OvsVpcRoutingPolicyConfigCommand.Acl> acls = new ArrayList<>();<NEW_LINE>List<OvsVpcRoutingPolicyConfigCommand.Tier> <MASK><NEW_LINE>VpcVO vpc = _vpcDao.findById(vpcId);<NEW_LINE>List<? extends Network> vpcNetworks = _vpc...
tiers = new ArrayList<>();
1,625,147
static WebServer startServer() {<NEW_LINE>// load logging configuration<NEW_LINE>LogConfig.configureRuntime();<NEW_LINE>// By default this will pick up application.yaml from the classpath<NEW_LINE>Config config = Config.create();<NEW_LINE>SendingService sendingService = new SendingService(config);<NEW_LINE>WebServer se...
t.printStackTrace(System.err);
1,366,858
static Errno writeFilestat(Node node, WasmMemory memory, int address, TruffleFile file) {<NEW_LINE>// Write filestat structure<NEW_LINE>// https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md#-filestat-struct<NEW_LINE>try {<NEW_LINE>Filestat.writeFiletype(node, memory, address, getType(file));<NEW_LINE...
.getAttribute(TruffleFile.UNIX_INODE));
1,260,028
public AssociateUserSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociateUserSettingsResult associateUserSettingsResult = new AssociateUserSettingsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
class).unmarshall(context));
201,102
private LocalDate next(LocalDate transactionDate) {<NEW_LINE>LocalDate previousDate = transactionDate;<NEW_LINE>// the transaction date might be edited (or moved to the next months b/c<NEW_LINE>// of public holidays) -> determine the "normalized" date by comparing<NEW_LINE>// the three months around the current transac...
next = next.plusDays(1);
1,084,708
static Mono<MemberUpdateEvent> guildMemberUpdate(DispatchContext<GuildMemberUpdate, MemberData> context) {<NEW_LINE>GatewayDiscordClient gateway = context.getGateway();<NEW_LINE>long guildId = Snowflake.asLong(context.getDispatch().guildId());<NEW_LINE>long memberId = Snowflake.asLong(context.getDispatch().user().id())...
guildId)).orElse(null);
912,514
public boolean levelCheck(int iter) {<NEW_LINE>if (levelChecked < iter) {<NEW_LINE>levelChecked = iter;<NEW_LINE>boolean opDeclLevelCheck = opDeclNode.levelCheck(iter);<NEW_LINE>level = opDeclNode.getLevel();<NEW_LINE>if (set != null) {<NEW_LINE><MASK><NEW_LINE>level = Math.max(set.getLevel(), level);<NEW_LINE>if (leve...
levelCorrect = set.levelCheck(iter);
813,817
private ResponseHandler createResponseHandler(final String name, final Object value) {<NEW_LINE>if ("json".equalsIgnoreCase(name)) {<NEW_LINE>return with(json(value));<NEW_LINE>}<NEW_LINE>if (isResource(name) && value instanceof TextContainer) {<NEW_LINE>TextContainer container = (TextContainer) value;<NEW_LINE>return ...
] responseHandlers = sequence.toResponseHandlers();
690,702
protected void masterOperation(final TypesExistsRequest request, final ClusterState state, final ActionListener<TypesExistsResponse> listener) {<NEW_LINE>String[] concreteIndices = indexNameExpressionResolver.concreteIndexNames(state, request.indicesOptions(), request.indices());<NEW_LINE>if (concreteIndices.length == ...
onResponse(new TypesExistsResponse(false));
1,426,196
public ResultStream doGet(final SortOrder sortOrder, int pageSize, int page) throws FrameworkException {<NEW_LINE>final List<GraphObjectMap> <MASK><NEW_LINE>final GraphObjectMap info = new GraphObjectMap();<NEW_LINE>info.setProperty(new GenericProperty("modules"), VersionHelper.getModules());<NEW_LINE>info.setProperty(...
resultList = new LinkedList<>();
1,724,402
public void startSource() {<NEW_LINE>// setup Netty server<NEW_LINE>bootstrap = new Bootstrap();<NEW_LINE>logger.info("Set max workers : {} ;", maxThreads);<NEW_LINE>bootstrap.channel(NioDatagramChannel.class);<NEW_LINE>bootstrap.option(ChannelOption.SO_RCVBUF, receiveBufferSize);<NEW_LINE>bootstrap.option(ChannelOptio...
(port)).sync();
726,304
private void doDraw(Graphics2D g, float x, float y, int startColumn, int endColumn) {<NEW_LINE>updateStats(endColumn - startColumn, myCharPositions.length);<NEW_LINE>if (startColumn == 0 && endColumn == myCharPositions.length) {<NEW_LINE>g.drawGlyphVector(myGlyphVector, x, y);<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE...
Shape savedClip = g.getClip();
1,208,743
public void runSupport() {<NEW_LINE>if (allTags != null) {<NEW_LINE>boolean create_tabs = false;<NEW_LINE>List<Tag> <MASK><NEW_LINE>boolean filterOnly = COConfigurationManager.getBooleanParameter("Library.ShowTagButtons.FiltersOnly");<NEW_LINE>synchronized (pending_tag_changes) {<NEW_LINE>ourPendingTags.addAll(pending_...
ourPendingTags = new ArrayList<>();
1,778,038
public void run() {<NEW_LINE>FileDialog dialog2 = new FileDialog(shell, SWT.SYSTEM_MODAL | SWT.SAVE);<NEW_LINE>dialog2.<MASK><NEW_LINE>dialog2.setFilterExtensions(new String[] { "*.json" });<NEW_LINE>String str2 = dialog2.open();<NEW_LINE>if (str2 != null) {<NEW_LINE>if (!(str2.toLowerCase(Locale.US).endsWith(".json"))...
setFilterPath(TorrentOpener.getFilterPathTorrent());
954,854
private MPayment createPayment(String documentNo, int bankAccountId, boolean isReceipt, BigDecimal paymentAmount, String tenderType, int currencyId, int conversionTypeId) {<NEW_LINE>MBankAccount bankAccount = MBankAccount.get(getCtx(), bankAccountId);<NEW_LINE>MPayment payment = new MPayment(getCtx(), 0, get_TrxName())...
null ? tenderType : getTenderType());
1,511,365
private static void appendRepresentation(Representation oldRepresentation, Representation newRepresentation, long segmentNumShift) {<NEW_LINE>if (segmentNumShift <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MultiSegmentRepresentation oldMultiRepresentation = (MultiSegmentRepresentation) oldRepresentation;<NEW_LINE>Mult...
Helpers.getField(lastTimeline, "startTime");
1,356,490
public Statement parseStatement() throws ParseException {<NEW_LINE>// look for any labels preceding statement<NEW_LINE>Mark m = tq.mark();<NEW_LINE>Token<JsTokenType> t = tq.peek();<NEW_LINE>if (JsTokenType.WORD == t.type) {<NEW_LINE>String label = parseIdentifier(false);<NEW_LINE>FilePosition labelPos = t.pos;<NEW_LIN...
s = parseLoopOrSwitch(labelPos, label);
480,573
public PTrailer loadTrailer(long position) {<NEW_LINE>PTrailer trailer = null;<NEW_LINE>try {<NEW_LINE>if (seekableInput != null) {<NEW_LINE>seekableInput.beginThreadAccess();<NEW_LINE>long savedPosition = seekableInput.getAbsolutePosition();<NEW_LINE>seekableInput.seekAbsolute(position);<NEW_LINE>Parser parser = new P...
FINE, "Error loading PTrailer instance: " + position, e);
1,853,240
public static Set<StreamCategory> parseCategorySearch(String json) {<NEW_LINE>Set<StreamCategory> result = new HashSet<>();<NEW_LINE>try {<NEW_LINE>JSONParser parser = new JSONParser();<NEW_LINE>JSONObject root = (JSONObject) parser.parse(json);<NEW_LINE>Object data = root.get("data");<NEW_LINE>if (!(data instanceof JS...
JSONArray) data).iterator();
1,479,609
public boolean prepare(boolean reConnect) {<NEW_LINE>if (reConnect) {<NEW_LINE>close(false);<NEW_LINE>}<NEW_LINE>Configure conf = Configure.getInstance();<NEW_LINE>String host = conf.net_collector_ip;<NEW_LINE>int port = conf.net_collector_tcp_port;<NEW_LINE>int so_timeout = conf.net_collector_tcp_so_timeout_ms;<NEW_LI...
this.hashCode(), this);
1,830,493
public static void main(String[] args) throws Exception {<NEW_LINE>Map<DataFieldName, String> map = new HashMap<DataFieldName, String>();<NEW_LINE>map.put(new DataFieldName("bm1"), "whale shark");<NEW_LINE>map.put(<MASK><NEW_LINE>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(Syst...
new DataFieldName("bm2"), "dolphin");
799,285
private void showResultsMessage(List<DomainFile> allFiles, List<DomainFile> failedFiles) {<NEW_LINE>int total = allFiles.size();<NEW_LINE>if (failedFiles.isEmpty()) {<NEW_LINE>String s = "Checkout completed for " + total + " file(s)";<NEW_LINE>tool.setStatusInfo(s);<NEW_LINE>Msg.info(this, s);<NEW_LINE>return;<NEW_LINE...
df = failedFiles.get(0);
427,881
public void importBuild(Object antBuildFile, String baseDirectory, Transformer<? extends String, ? super String> taskNamer) {<NEW_LINE>File file = gradleProject.file(antBuildFile);<NEW_LINE>Optional<Object> baseDirectoryOptional = Optional.ofNullable(baseDirectory);<NEW_LINE>final File baseDir = gradleProject.file(base...
getAntProject().setBaseDir(oldBaseDir);
349,807
public static QueryOperationAuditInfoListResponse unmarshall(QueryOperationAuditInfoListResponse queryOperationAuditInfoListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOperationAuditInfoListResponse.setRequestId(_ctx.stringValue("QueryOperationAuditInfoListResponse.RequestId"));<NEW_LINE>queryOperationAuditInfo...
("QueryOperationAuditInfoListResponse.Data[" + i + "].CreateTime"));
1,133,550
public void BALOAD(Object conc_array, int conc_index, String className, String methodName) {<NEW_LINE>// pop symbolic arguments<NEW_LINE>IntegerValue symb_index = env.topFrame().operandStack.popBv32();<NEW_LINE>ReferenceExpression array_ref = env.topFrame().operandStack.popRef();<NEW_LINE>if (nullReferenceViolation(arr...
symb_index, new IntegerConstant(intValue));
1,207,462
private void makePurchase(boolean isSubscription) {<NEW_LINE>try {<NEW_LINE>Bundle buyIntentBundle = inAppBillingService.getBuyIntent(3, getActivity().getPackageName(), TEST_SKU, <MASK><NEW_LINE>int response = getResponseCodeFromBundle(buyIntentBundle);<NEW_LINE>if (response != BILLING_RESPONSE_RESULT_OK) {<NEW_LINE>Lo...
isSubscription ? "subs" : "inapp", "this is a test");
1,600,161
public void connect() throws IOException, SlimVersionMismatch {<NEW_LINE><MASK><NEW_LINE>if (!isConnected(slimServerVersionMessage)) {<NEW_LINE>throw new SlimVersionMismatch("Got invalid slim header from client. Read the following: " + slimServerVersionMessage);<NEW_LINE>}<NEW_LINE>slimServerVersion = Double.parseDoubl...
String slimServerVersionMessage = reader.readLine();
1,131,851
public static void main(String[] args) {<NEW_LINE><MASK><NEW_LINE>ScriptEngineManager manager = new ScriptEngineManager();<NEW_LINE>for (ScriptEngineFactory factory : manager.getEngineFactories()) {<NEW_LINE>System.out.println(" engineName=" + factory.getEngineName() + " engineVersion=" + factory.getEngineVersion() + ...
System.out.println("Scripting APIs:");
1,597,411
private void receiveHandshakeResponse(String key) throws IOException {<NEW_LINE>BufferedReader in = new BufferedReader(new InputStreamReader(input));<NEW_LINE>ArrayList<String> responseLines = new ArrayList<String>();<NEW_LINE>String line = in.readLine();<NEW_LINE>if (line == null) {<NEW_LINE>throw new IOException("Web...
String> headerMap = getHeaders(responseLines);
99,893
private static void optimizeOperator(int operator, ASTNode tk, ASTNode tkOp, ASTLinkedList astLinkedList, ASTLinkedList optimizedAst, ParserContext pCtx) {<NEW_LINE>switch(operator) {<NEW_LINE>case Operator.REGEX:<NEW_LINE>optimizedAst.addTokenNode(new RegExMatchNode(tk, astLinkedList.nextNode(), pCtx));<NEW_LINE>break...
.nextNode(), pCtx));
1,009,966
public void clearBits(int factor) {<NEW_LINE>if (factor < PATTERN_SIZE) {<NEW_LINE>Arrays.fill(firstPattern, 0);<NEW_LINE>Arrays.fill(pattern, 0);<NEW_LINE>int vs = factor << SHIFT_SIZE_ADD;<NEW_LINE>for (int num = factor * factor; num <= vs; num += factor * 2) {<NEW_LINE>firstPattern[num >> SHIFT_SIZE_ADD] |= (1l << (...
+ idxBase] |= firstPattern[patternIdx];
796,073
public GridBoundsChange performAction(GridManager gridManager, DesignerContext context) {<NEW_LINE>GridInfoProvider gridInfo = gridManager.getGridInfo();<NEW_LINE>boolean gapSupport = gridInfo.hasGaps();<NEW_LINE>int[] originalColumnBounds = gridInfo.getColumnBounds();<NEW_LINE>int[] originalRowBounds = gridInfo.getRow...
(gapSupport ? 2 : 1)];
110,560
public static void patchRepositoryComponent(CtClass ctClass) throws CannotCompileException {<NEW_LINE>StringBuilder src = new StringBuilder("{");<NEW_LINE>src.append(PluginManagerInvoker.buildInitializePlugin(DeltaSpikePlugin.class));<NEW_LINE>src.append(PluginManagerInvoker.buildCallPluginMethod(DeltaSpikePlugin.class...
insertAfter(src.toString());
1,754,969
private void displayEmailMsg(MesssageArtifactData artifactData) {<NEW_LINE>enableCommonFields();<NEW_LINE>directionText.setEnabled(false);<NEW_LINE>ccLabel.setEnabled(true);<NEW_LINE>this.fromText.setText(artifactData.getAttributeDisplayString(TSK_EMAIL_FROM));<NEW_LINE>this.fromText.setToolTipText(artifactData.getAttr...
.getAttributeDisplayString(TSK_EMAIL_CONTENT_HTML), HTML_TAB_INDEX);
1,660,629
void checkExtension(OCFPackage ocf, String extension) {<NEW_LINE>if (extension != null) {<NEW_LINE>if (!extension.equals("epub")) {<NEW_LINE>if (extension.matches("[Ee][Pp][Uu][Bb]")) {<NEW_LINE>report.message(MessageId.PKG_016, EPUBLocation.create(epubFile.getName()));<NEW_LINE>} else {<NEW_LINE>List<String> opfPaths ...
.getName(), extension));
1,567,914
public static List<TransportRouteResult> convertToTransportRoutingResult(NativeTransportRoutingResult[] res, TransportRoutingConfiguration cfg) {<NEW_LINE>// cache for converted TransportRoutes:<NEW_LINE>TLongObjectHashMap<TransportRoute> convertedRoutesCache = new TLongObjectHashMap<>();<NEW_LINE>TLongObjectHashMap<Tr...
TransportRouteResult trr = new TransportRouteResult(cfg);
805,932
public void onViewCreated(View view, Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>final Activity activity = getActivity();<NEW_LINE>mToast = Toast.makeText(activity, "", Toast.LENGTH_SHORT);<NEW_LINE>mToast.setGravity(Gravity.CENTER, 0, 0);<NEW_LINE>mRecyclerView = (TwoW...
getDrawable(R.drawable.divider);
1,634,276
public EPUBVersion retrieveOpfVersion(InputStream inputStream) throws InvalidVersionException {<NEW_LINE>SAXParserFactory factory = SAXParserFactory.newInstance();<NEW_LINE>factory.setNamespaceAware(true);<NEW_LINE>factory.setValidating(false);<NEW_LINE>try {<NEW_LINE>factory.setFeature("http://xml.org/sax/features/val...
.create(path), path);
198,038
private int[] adaptFpsRange(int expectedFps, List<int[]> fpsRanges) {<NEW_LINE>expectedFps *= 1000;<NEW_LINE>int[] closestRange = fpsRanges.get(0);<NEW_LINE>int measure = Math.abs(closestRange[0] - expectedFps) + Math.abs(closestRange[1] - expectedFps);<NEW_LINE>for (int[] range : fpsRanges) {<NEW_LINE>if (range[0] <= ...
]) / 2) - expectedFps);
117,433
public void onError(Throwable e) {<NEW_LINE>// It is important here to retry the markDown for warm-up cluster.<NEW_LINE>// We cannot go ahead to markUp the regular cluster, as the warm-up cluster to uris association has not been deleted<NEW_LINE>// from the zookeeper store.<NEW_LINE>if (e instanceof KeeperException.Con...
_uri, _partitionDataMap, _uriSpecificProperties, markUpCallback);
433,099
static Context deleteContext(Map<String, String> config) {<NEW_LINE>// default delete config using data config<NEW_LINE>Context dataContext = dataContext(config);<NEW_LINE>int rowGroupSize = PropertyUtil.propertyAsInt(config, DELETE_PARQUET_ROW_GROUP_SIZE_BYTES, dataContext.rowGroupSize());<NEW_LINE>Preconditions.check...
checkArgument(rowGroupCheckMinRecordCount > 0, "Row group check minimal record count must be > 0");
1,512,220
public boolean useImageAsIs(final Uri uri) {<NEW_LINE>final String path = getOriginalPath(uri);<NEW_LINE>if (path == null || isPathBlacklisted(path)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final File file = new File(path);<NEW_LINE>long size = file.length();<NEW_LINE>if (size == 0 || size >= mXmppConnectionServic...
getContentResolver().openInputStream(uri);
1,622,331
public DatasetImageStats unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DatasetImageStats datasetImageStats = new DatasetImageStats();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
1,320,322
public ProcessInstanceMigrationBuilder fromProcessInstanceMigrationDocument(ProcessInstanceMigrationDocument document) {<NEW_LINE>migrationDocumentBuilder.setProcessDefinitionToMigrateTo(document.getMigrateToProcessDefinitionId());<NEW_LINE>migrationDocumentBuilder.setProcessDefinitionToMigrateTo(document.getMigrateToP...
setPostUpgradeJavaDelegate(document.getPostUpgradeJavaDelegate());
919,466
protected Object convertFromInternal(org.springframework.messaging.Message<?> message, Class<?> targetClass, @Nullable Object conversionHint) {<NEW_LINE>MimeType contentType = getMimeType(message.getHeaders());<NEW_LINE>final <MASK><NEW_LINE>if (contentType == null) {<NEW_LINE>contentType = PROTOBUF;<NEW_LINE>}<NEW_LIN...
Object payload = message.getPayload();
584,747
private int checkAndGetLongThreshold(String type, int duration) {<NEW_LINE>ClientConfigManager config = Cat.getManager().getConfigManager();<NEW_LINE>ProblemLongType longType = ProblemLongType.findByMessageType(type);<NEW_LINE>if (longType != null) {<NEW_LINE>switch(longType) {<NEW_LINE>case LONG_CACHE:<NEW_LINE>return...
LONG_CALL.getName(), duration);
1,033,606
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {<NEW_LINE>final String metricRegistryRef = element.getAttribute("metric-registry");<NEW_LINE>if (!StringUtils.hasText(metricRegistryRef)) {<NEW_LINE>parserContext.getReaderContext().error("Metric-registry id required for eleme...
type = element.getAttribute("type");
1,668,063
public Map<String, Map<String, String>> previewNewNote(long mid, String[] flds) {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M && !hasReadWritePermission()) {<NEW_LINE>// avoid situation where addNote will pass, but deleteNote will fail<NEW_LINE>throw new SecurityException("previewNewNote requires full re...
html.put("q", q);
1,552,553
protected int encodeLine(MessageTree tree, Message message, ByteBuf buf, char type, Policy policy, int level, LineCounter counter) {<NEW_LINE>BufferHelper helper = m_bufferHelper;<NEW_LINE>int count = 0;<NEW_LINE>if (counter != null) {<NEW_LINE>counter.inc();<NEW_LINE>count += helper.tr1(buf, counter.getCount() % 2 != ...
Object data = message.getData();
165,814
protected void execute(Terminal terminal, OptionSet options, Environment env) throws Exception {<NEW_LINE>String username = parseUsername(arguments.values(options), env.settings());<NEW_LINE>char[] passwordHash = getPasswordHash(terminal, env, passwordOption.value(options));<NEW_LINE>Path file = FileUserPasswdStore.res...
= new HashMap<>(users);
1,361,703
public int update(Uri uri, ContentValues values, String where, String[] whereArgs) {<NEW_LINE>deferDaggerInit();<NEW_LINE>String projectId = getProjectId(uri);<NEW_LINE>logServerEvent(projectId, AnalyticsEvents.FORMS_PROVIDER_UPDATE);<NEW_LINE>FormsRepository formsRepository = getFormsRepository(projectId);<NEW_LINE>St...
(existingValues, formsPath, cachePath));
984,440
public static void handle(String stmt, ManagerConnection c) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = header.write(buffer, c, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : fields) {<NEW_LINE>buffer = field.write(buffer, c, true);<NEW_LINE>}<NEW_LINE>// w...
write(buffer, c, true);
505,325
public static QueryFaceUserByNameResponse unmarshall(QueryFaceUserByNameResponse queryFaceUserByNameResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryFaceUserByNameResponse.setRequestId(_ctx.stringValue("QueryFaceUserByNameResponse.RequestId"));<NEW_LINE>queryFaceUserByNameResponse.setSuccess(_ctx.booleanValue("Query...
+ "].FacePicList[" + j + "].FaceMd5"));
274,764
public void attachInfo(Context context, ProviderInfo info) {<NEW_LINE>// super.attachInfo calls onCreate(). Fail as early as possible.<NEW_LINE>checkContentProviderAuthority(info);<NEW_LINE>super.attachInfo(context, info);<NEW_LINE>// Initialize ConfigResolver early for accessing device caching layer.<NEW_LINE><MASK><N...
ConfigResolver configResolver = ConfigResolver.getInstance();
1,146,301
public void printTopicDocuments(PrintWriter out, int max) {<NEW_LINE>out.println("#topic doc name proportion ...");<NEW_LINE>ArrayList<TreeSet<IDSorter<MASK><NEW_LINE>for (int topic = 0; topic < numTopics; topic++) {<NEW_LINE>TreeSet<IDSorter> sortedDocuments = topicSortedDocuments.get(topic);<NEW_LINE>@Var<NEW_LINE>in...
>> topicSortedDocuments = getTopicDocuments(10.0);
1,788,272
public boolean handle(ResourcePackRequest packet) {<NEW_LINE>ResourcePackInfo.Builder builder = new VelocityResourcePackInfo.BuilderImpl(Preconditions.checkNotNull(packet.getUrl())).setPrompt(packet.getPrompt()).setShouldForce(packet.isRequired()).<MASK><NEW_LINE>String hash = packet.getHash();<NEW_LINE>if (hash != nul...
setOrigin(ResourcePackInfo.Origin.DOWNSTREAM_SERVER);
1,830,699
public String saveAsFile(boolean accessingAsFile) throws IOException {<NEW_LINE>File file = new SikulixFileChooser(<MASK><NEW_LINE>if (file == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String bundlePath = FileManager.slashify(file.getAbsolutePath(), false);<NEW_LINE>if (!file.getAbsolutePath().endsWith(".sikuli...
sikuliIDE, accessingAsFile).save();
176,433
final DescribeDocumentResult executeDescribeDocument(DescribeDocumentRequest describeDocumentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDocumentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
515,804
public okhttp3.Call connectOptionsNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/nodes/{name}/proxy".replaceAll("\\{" + "name" + "\\}", localVarApiClient...
HashMap<String, String>();
858,276
public CompletableFuture<NIVariable> evaluateAsync(String expression, String resultName) {<NEW_LINE>String resultVarName = (resultName != null) ? resultName : expression;<NEW_LINE>CompletableFuture<NIVariable> result = new CompletableFuture<>();<NEW_LINE>NIVariable value = getVariables().get(expression);<NEW_LINE>if (v...
MITList results = record.results();
1,526,501
public void process(final Exchange exchange) throws Exception {<NEW_LINE>final Patient patient = exchange.getIn().getBody(Patient.class);<NEW_LINE>final String orgCode = ProcessorHelper.getPropertyOrThrowError(exchange, <MASK><NEW_LINE>final GetPatientsRouteContext routeContext = ProcessorHelper.getPropertyOrThrowError...
GetPatientsRouteConstants.ROUTE_PROPERTY_ORG_CODE, String.class);
1,228,335
public static void applyCommonConfiguration(Config config, HttpClient.Builder builder, HttpClient.Factory factory) {<NEW_LINE>builder.followAllRedirects();<NEW_LINE>if (config.getConnectionTimeout() > 0) {<NEW_LINE>builder.connectTimeout(config.getConnectionTimeout(), TimeUnit.MILLISECONDS);<NEW_LINE>}<NEW_LINE>if (con...
tlsVersions(config.getTlsVersions());
955,643
public ModelAndView profile(ModelMap map, HttpServletRequest request, @Valid String snsid) {<NEW_LINE>CousultInvite coultInvite = OnlineUserProxy.consult(snsid, super.getOrgi(request));<NEW_LINE>logger.info("[profile] snsaccount Id {}, Ai {}, Aifirst {}, Ainame {}, Aisuccess {}, Aiid {}", coultInvite.getSnsaccountid(),...
), coultInvite.getAiid());
461,583
public static LiveChannelStat parseGetLiveChannelStat(InputStream responseBody) throws ResponseParseException {<NEW_LINE>try {<NEW_LINE>Element root = getXmlRootElement(responseBody);<NEW_LINE>LiveChannelStat result = new LiveChannelStat();<NEW_LINE>result.setPushflowStatus(PushflowStatus.parse(root.getChildText("Statu...
videoElem.getChildText("Width")));
1,019,777
public boolean handleOnActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>if (this.requestCode != requestCode) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final Callback<TwitterSession> callback = getCallback();<NEW_LINE>if (callback != null) {<NEW_LINE>if (resultCode == Activity.RESULT_OK) {<NEW_...
screenName = data.getStringExtra(EXTRA_SCREEN_NAME);
1,624,556
public Response<Void> deleteByIdWithResponse(String id, String ifMatch, Boolean deleteSubscriptions, Boolean notify, AppType appType, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsErr...
deleteSubscriptions, notify, appType, context);
1,778,617
public void run() {<NEW_LINE>CommandLine parent = self == null ? null : self.getParent();<NEW_LINE>if (parent == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Help.ColorScheme colors = colorScheme != null ? colorScheme : Help.defaultColorScheme(ansi);<NEW_LINE>if (commands != null) {<NEW_LINE>Map<String, CommandLine> pa...
parent.usage(out, colors);
1,713,177
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val...
Utils.getValueFromIdByName(id, "referenceDataSets");
610,797
public static void main(String[] args) {<NEW_LINE>System.setProperty("az.factory.internat.bundle", "com.biglybt.ui.none.internat.MessagesBundle");<NEW_LINE>COConfigurationManager.initialise();<NEW_LINE>if (System.getProperty(SystemProperties.SYSPROP_LOW_RESOURCE_MODE, "false").equals("true")) {<NEW_LINE>System.out.prin...
setParameter(TransferSpeedValidator.AUTO_UPLOAD_ENABLED_CONFIGKEY, false);
1,478,453
protected LeafNode createStringAndFloatLeafNode(String line) {<NEW_LINE>// Note: this code is identical to createIntAndFloatArrayLeafNode(),<NEW_LINE>// except for the last line.<NEW_LINE>StringTokenizer tok = new StringTokenizer(line, " ");<NEW_LINE>// read the indices from the tokenized String<NEW_LINE>int numTokens ...
substring(0, lastIndex - 1);
1,004,149
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_microphone_configure);<NEW_LINE>mPrefManager = new PreferenceManager(this.getApplicationContext());<NEW_LINE>Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>setSupportAction...
mPrefManager.setMicrophoneSensitivity(newValue + "");
1,650,283
public void uncaughtException(Thread thread, final Throwable throwable) {<NEW_LINE>System.err.println("In thread '" + thread + "' uncaught exception: " + throwable);<NEW_LINE>throwable.printStackTrace(System.err);<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run...
setText(text.toString());
293,978
public void paint(Graphics g, JComponent c) {<NEW_LINE>JBTabsImpl tabs = (JBTabsImpl) c;<NEW_LINE>if (tabs.getVisibleInfos().isEmpty())<NEW_LINE>return;<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>final GraphicsConfig config = new GraphicsConfig(g2d);<NEW_LINE>config.setAntialiasing(true);<NEW_LINE>try {<NEW_LIN...
myMoreIcon.paintIcon(tabs, g);