idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
345,548
public com.amazonaws.services.fsx.model.ResourceDoesNotSupportTaggingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.fsx.model.ResourceDoesNotSupportTaggingException resourceDoesNotSupportTaggingException = new com.amazonaws.services.<MASK><NEW_LINE>in...
fsx.model.ResourceDoesNotSupportTaggingException(null);
114,594
public AviatorObject call(final Map<String, Object> env, final AviatorObject arg1, final AviatorObject arg2, final AviatorObject arg3) {<NEW_LINE>Object coll = arg1.getValue(env);<NEW_LINE>Object <MASK><NEW_LINE>Object val = arg3.getValue(env);<NEW_LINE>if (coll == null) {<NEW_LINE>throw new NullPointerException("null ...
key = arg2.getValue(env);
1,728,431
public Clustering<Model> run(Relation<? extends NumberVector> relation) {<NEW_LINE>// current dimensionality associated with each seed<NEW_LINE>int dim_c = RelationUtil.dimensionality(relation);<NEW_LINE>if (dim_c < l) {<NEW_LINE>throw new IllegalStateException("Dimensionality of data < parameter l! " + "(" + dim_c + "...
clusters.size(), LOG);
688,970
protected Javers assembleJaversInstance() {<NEW_LINE>CoreConfiguration coreConfiguration = configurationBuilder().build();<NEW_LINE>addComponent(coreConfiguration);<NEW_LINE>// boot main modules<NEW_LINE>addModule(new DiffFactoryModule());<NEW_LINE>addModule(new CommitFactoryModule(getContainer()));<NEW_LINE>addModule(...
typeMapper().getJaversType(c);
903,880
public GetDomainNameResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDomainNameResult getDomainNameResult = new GetDomainNameResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
1,230,619
private Future<Connection> login(MSSQLSocketConnection conn, String username, String password, String database, Byte encryptionLevel, EventLoopContext context) {<NEW_LINE>if (clientConfigSsl && encryptionLevel != ENCRYPT_ON && encryptionLevel != ENCRYPT_REQ) {<NEW_LINE>Promise<Void> closePromise = context.promise();<NE...
, encryptionLevel, (MSSQLConnectOptions) options);
1,201,310
private void submitChange(String changeId) throws RepoException, ValidationException {<NEW_LINE>try (ProfilerTask ignore = generalOptions.profiler().start("submit_gerrit_change")) {<NEW_LINE>ChangeInfo changeInfo = findChange(changeId);<NEW_LINE>if (changeInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GerritApi g...
repoUrl, resultInfo.getChangeId());
662,137
public List<StaticAsset> readAllStaticAssets() {<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<StaticAsset> criteria = builder.createQuery(StaticAsset.class);<NEW_LINE>Root<StaticAssetImpl> handler = criteria.from(StaticAssetImpl.class);<NEW_LINE>criteria.select(handler);<NEW_LINE>List<Predicate> restrictions = new ArrayList<...
CriteriaBuilder builder = em.getCriteriaBuilder();
285,310
public void computeModuleUpdates(IClasspathEntry entry) throws JavaModelException {<NEW_LINE>for (IClasspathAttribute attribute : entry.getExtraAttributes()) {<NEW_LINE><MASK><NEW_LINE>// the attributes considered here may have multiple values separated by ':'<NEW_LINE>String values = attribute.getValue();<NEW_LINE>if ...
String attributeName = attribute.getName();
475,085
static Iterator<Quad> accessData(Tuple<Node> patternTuple, NodeTupleTable nodeTupleTable, boolean anyGraph, Predicate<Tuple<NodeId>> filter, ExecutionContext execCxt) {<NEW_LINE>NodeTable nodeTable = nodeTupleTable.getNodeTable();<NEW_LINE>Function<Tuple<NodeId>, Quad> asQuad = asQuad(nodeTable, <MASK><NEW_LINE>Tuple<N...
nodeTupleTable.getTupleLen(), anyGraph);
1,146,187
public void initRuntimeLibraryTypedAsts(Optional<ColorPool.Builder> colorPoolBuilder) {<NEW_LINE>checkState(this.runtimeLibraryTypedAsts == null);<NEW_LINE>String path = String.join("", "/runtime_libs.typedast");<NEW_LINE>TypedAstDeserializer.DeserializedAst astData = TypedAstDeserializer.deserializeRuntimeLibraries(th...
.class.getResourceAsStream(path));
1,054,532
public BeanDefinition parse(Element elt, ParserContext pc) {<NEW_LINE>String loginUrl = null;<NEW_LINE>String defaultTargetUrl = null;<NEW_LINE>String authenticationFailureUrl = null;<NEW_LINE>String alwaysUseDefault = null;<NEW_LINE>String successHandlerRef = null;<NEW_LINE>String failureHandlerRef = null;<NEW_LINE>//...
validateHttpRedirect(authenticationFailureForwardUrl, pc, source);
1,038,835
Optional<ImagesAndRegistryClient> tryMirrors(BuildContext buildContext, ProgressEventDispatcher.Factory progressDispatcherFactory) throws LayerCountMismatchException, BadContainerConfigurationFormatException {<NEW_LINE>EventHandlers eventHandlers = buildContext.getEventHandlers();<NEW_LINE>Collection<Map.Entry<String, ...
String mirror = entry.getValue();
1,530,452
/*<NEW_LINE>* Client to test Advertize... Run it on node boxes to test for firewall.<NEW_LINE>*/<NEW_LINE>public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 2 && args.length != 3) {<NEW_LINE>System.out.println("Usage: Advertize multicastaddress port [bindaddress]");<NEW_LINE>System.ou...
System.out.println("Linux like OS");
1,177,466
public static Map<String, String> listCategoriesAndTitles(String docLang) {<NEW_LINE>String docLangDir = (docLang != null && (!"en".equalsIgnoreCase(docLang) && !docLang.matches("en-.*"))) ? "_" + docLang : "";<NEW_LINE>File[] categories = new File(cheatSheetBaseDir + docLangDir).listFiles(new FileFilter() {<NEW_LINE><...
LinkedHashMap<String, String>();
60,133
void handleResponse(List<Slot> slots, MultiSearchResponse response, Exception e) {<NEW_LINE>remoteRequestPermits.release();<NEW_LINE>executedSearchesTotal.<MASK><NEW_LINE>if (response != null) {<NEW_LINE>assert slots.size() == response.getResponses().length;<NEW_LINE>for (int i = 0; i < response.getResponses().length; ...
add(slots.size());
940,241
void runStartCellPhase() {<NEW_LINE>int startCell = isochroneNodeStorage.getCellId(fromNonVirtual);<NEW_LINE>CoreRangeDijkstra coreRangeDijkstra = new CoreRangeDijkstra(graph, weighting, isochroneNodeStorage, borderNodeDistanceStorage);<NEW_LINE>EdgeFilterSequence edgeFilterSequence = new EdgeFilterSequence();<NEW_LINE...
).put(sweepEndNode, dist);
1,816,632
private long processNackWithReturnValue(ControlNack nackMsg) throws SIResourceException {<NEW_LINE>// This is called by a PubSubOutputHandler when it finds Unknown<NEW_LINE>// ticks in it's own stream and need the InputStream to resend them<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_L...
SibTr.debug(tc, "Ignoring processNack on sourceStream at PubSubInputHandler");
1,301,061
/* Plays midi file through the system's midi sequencer.<NEW_LINE>* @param inFilepath points to a local file containing symbolic melodies<NEW_LINE>* @param instrumentName : See the list in Midi2MelodyStrings.java. If null, defaults to "Acoustic Grand Piano".<NEW_LINE>* @param secondsToPlay -- seconds after which to s...
out.println("Playing melodies from " + inFilepath);
814,716
private void insert(String data) throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>String[] dataArray = data.split(",");<NEW_LINE>String device = dataArray[0];<NEW_LINE>long time = Long.parseLong(dataArray[1]);<NEW_LINE>List<String> measurements = Arrays.asList(dataArray[2].split(":"));<NEW_LINE>L...
parseInt(valuesStr[i]));
474,949
public boolean refresh(TypeElement typeElement) {<NEW_LINE>Map<String, ? extends AnnotationMirror> types = getHelper().getAnnotationsByType(getHelper().getCompilationController().getElements().getAllAnnotationMirrors(typeElement));<NEW_LINE>// NOI18N<NEW_LINE>AnnotationMirror annotationMirror = types.get("javax.faces.c...
AnnotationParser.create(getHelper());
714,281
protected MessageCorrelationBuilder createMessageCorrelationBuilder(CorrelationMessageDto messageDto) {<NEW_LINE>RuntimeService runtimeService = processEngine.getRuntimeService();<NEW_LINE>ObjectMapper objectMapper = getObjectMapper();<NEW_LINE>Map<String, Object> correlationKeys = VariableValueDto.toMap(messageDto.get...
String name = correlationKey.getKey();
446,365
private static MPrintFormat copy(Properties ctx, int from_AD_PrintFormat_ID, int to_AD_PrintFormat_ID, int to_Client_ID) {<NEW_LINE>MClient company = MClient.get(ctx);<NEW_LINE>s_log.info("From AD_PrintFormat_ID=" + from_AD_PrintFormat_ID + ", To AD_PrintFormat_ID=" + to_AD_PrintFormat_ID + ", To Client_ID=" + to_Clien...
MPrintFormat(ctx, to_AD_PrintFormat_ID, null);
861,336
public Suggestions search(final List<NamedIndexReader> indexReaders, final SuggesterQuery suggesterQuery, final Query query) {<NEW_LINE>if (indexReaders == null || suggesterQuery == null) {<NEW_LINE>return new Suggestions(Collections.emptyList(), true);<NEW_LINE>}<NEW_LINE>List<NamedIndexReader> readers = indexReaders;...
0).getReader()));
7,670
final DeleteImportResult executeDeleteImport(DeleteImportRequest deleteImportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteImportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,666,047
@Operation(summary = "List measurements for an area", description = "List measurements for an area")<NEW_LINE>public Response listDeviceMeasurementsForArea(@Parameter(description = "Token that identifies area", required = true) @PathParam("areaToken") String areaToken, @Parameter(description = "Page number", required =...
(result, getAssetManagement()));
1,611,970
private void registerForMetamorphic(String variant, Consumer<FinishedRecipe> consumer) {<NEW_LINE>Block base = Registry.BLOCK.getOptional(prefix(LibBlockNames.METAMORPHIC_PREFIX + variant + "_stone")).get();<NEW_LINE>Block slab = Registry.BLOCK.getOptional(prefix(LibBlockNames.METAMORPHIC_PREFIX + variant + "_stone" + ...
.WALL_SUFFIX)).get();
1,827,536
public static Trajectory generateTrajectory(ControlVectorList controlVectors, TrajectoryConfig config) {<NEW_LINE>final var flip = new Transform2d(new Translation2d(), Rotation2d.fromDegrees(180.0));<NEW_LINE>final var newControlVectors = new ArrayList<Spline.ControlVector>(controlVectors.size());<NEW_LINE>// Create a ...
), config.isReversed());
1,629,486
private String addMarkdownLikeHyperlinks(String aboutText, List<StyleRange> styles) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Pattern pattern = Pattern.compile("\\[(?<text>[^\\]]*)\\]\\((?<link>[^\\)]*)\\)");<NEW_LINE>Matcher matcher = pattern.matcher(aboutText);<NEW_LINE>StringBuilder answer = new StringBuilder(aboutText.len...
.theme().hyperlink();
1,432,537
public static ElementHandle createHandle(ParserResult info, final GroovyElement object) {<NEW_LINE>if (object instanceof KeywordElement || object instanceof CommentElement) {<NEW_LINE>// Not tied to an AST - just pass it around<NEW_LINE>return new GroovyElementHandle(null, object, info.getSnapshot().getSource().getFile...
root = ASTUtils.getRoot(info);
1,380,619
private void create() {<NEW_LINE>textPane = new JTextPane();<NEW_LINE>doc = textPane.getStyledDocument();<NEW_LINE>add(textPane, BorderLayout.CENTER);<NEW_LINE>textPane.setEditable(false);<NEW_LINE>pathAttrSet = new SimpleAttributeSet();<NEW_LINE>pathAttrSet.addAttribute(StyleConstants.FontFamily, "Tahoma");<NEW_LINE>p...
(204, 0, 204));
1,513,452
public static ListDataServiceAuthorizedApisResponse unmarshall(ListDataServiceAuthorizedApisResponse listDataServiceAuthorizedApisResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataServiceAuthorizedApisResponse.setRequestId(_ctx.stringValue("ListDataServiceAuthorizedApisResponse.RequestId"));<NEW_LINE>listDataServi...
("ListDataServiceAuthorizedApisResponse.Data.ApiAuthorizedList[" + i + "].ApiName"));
614,738
protected void serviceAMF(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>log.debug("Servicing AMF");<NEW_LINE>IRemotingConnection conn = null;<NEW_LINE>try {<NEW_LINE>RemotingPacket packet = decodeRequest(req);<NEW_LINE>if (packet == null) {<NEW_LINE>log.error("Packet ...
req.setAttribute(CONNECTION, conn);
272,665
private void createStreamWithMessageHeaderV1(StoreKey key, BlobProperties blobProperties, ByteBuffer userMetadata, InputStream blobStream, long streamSize, BlobType blobType) throws MessageFormatException {<NEW_LINE>int headerSize = MessageFormatRecord.MessageHeader_Format_V1.getHeaderSize();<NEW_LINE>int blobPropertie...
MessageFormatRecord.UserMetadata_Format_V1.getUserMetadataSize(userMetadata);
44,883
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>if ((decoder.state_zs_flags & StateFlags.W) != 0)<NEW_LINE>instruction.setCode(code64);<NEW_LINE>else<NEW_LINE>instruction.setCode(code32);<NEW_LINE>if ((((flags & 4) | (decoder.state_zs_flags & StateFlags.HAS66)) & decoder.invalidCheckMask) == (4 | State...
instruction.setOp0Kind(OpKind.MEMORY);
1,782,611
public void readChromaResidual(MBlock mBlock, boolean leftAvailable, boolean topAvailable, int mbX) {<NEW_LINE>if (mBlock.cbpChroma() != 0) {<NEW_LINE>if ((mBlock.cbpChroma() & 3) > 0) {<NEW_LINE>readChromaDC(mbX, leftAvailable, topAvailable, mBlock.dc1, 1, mBlock.curMbType);<NEW_LINE>readChromaDC(mbX, leftAvailable, t...
, mBlock.ac[2]);
1,837,303
public com.amazonaws.services.chimesdkmeetings.model.ServiceUnavailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.chimesdkmeetings.model.ServiceUnavailableException serviceUnavailableException = new com.amazonaws.services.chimesdkmeetings.model.Se...
class).unmarshall(context));
1,299,807
private static void maybeReplaceStatement(Buffer buffer) {<NEW_LINE>// Unassigned field access is only useful for compiler.<NEW_LINE>Matcher <MASK><NEW_LINE>if (m.matches()) {<NEW_LINE>buffer.replaceStatement("");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int index = buffer.lastStatementIndexOf("goog.");<NEW_LINE>if (index ...
m = buffer.matchLastStatement(FIELD_STATEMENT);
391,948
public static Method findMethod(Class<?> clazz, String methodName, Class<?>[] args, boolean checkInheritance, boolean strictArgs) throws NoSuchMethodException {<NEW_LINE>if (clazz == null)<NEW_LINE>throw new NoSuchMethodException("No class");<NEW_LINE>if (methodName == null || methodName.trim().equals(""))<NEW_LINE>thr...
] methods = clazz.getDeclaredMethods();
357,381
public User ofRecord(@NonNull final I_AD_User userRecord) {<NEW_LINE>final IUserBL userBL = Services.get(IUserBL.class);<NEW_LINE>final IBPartnerBL bPartnerBL = Services.get(IBPartnerBL.class);<NEW_LINE>final Language userLanguage = Language.asLanguage(userRecord.getAD_Language());<NEW_LINE>final Language bpartnerLangu...
language = userBL.getUserLanguage(userRecord);
1,778,981
public void mergeTo(IntIntVector mergedRow) {<NEW_LINE>StorageMethod method = VectorStorageUtils.getStorageMethod(vector);<NEW_LINE>switch(method) {<NEW_LINE>case DENSE:<NEW_LINE>{<NEW_LINE>int[] values = getVector().getStorage().getValues();<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>mergedRow.set(i +...
indexOffset, entry.getIntValue());
1,017,916
// //////////////////////////////////////////////////////////////////////////<NEW_LINE>// ExecutorService call() Method //<NEW_LINE>// //////////////////////////////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public TaskState call() {<NEW_LINE>GlassF...
? remoteShutdownStart() : localShutdownStart();
1,851,129
public static List<String> exportEndpointsToS3(PinpointClient pinpoint, S3Client s3Client, String s3BucketName, String iamExportRoleArn, String applicationId) {<NEW_LINE>SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd-HH_mm:ss.SSS_z");<NEW_LINE>String endpointsKeyPrefix = "exports/" + applicationId + "_"...
s3UrlPrefix(s3UrlPrefix).build();
858,455
private static String[] makeLiteralNames() {<NEW_LINE>return new String[] { null, null, null, null, null, null, null, "'as'", "'def'", "'in'", "'trait'", "'threadsafe'", "'var'", null, "'abstract'", "'assert'", "'break'", "'case'", "'catch'", "'class'", "'const'", "'continue'", "'default'", "'do'", "'else'", "'enum'", ...
null, null, "'@'", "'...'" };
562,062
protected static void readConfig() {<NEW_LINE>send_peer_ids = COConfigurationManager.getBooleanParameter("Tracker Send Peer IDs");<NEW_LINE>max_peers_to_send = COConfigurationManager.getIntParameter("Tracker Max Peers Returned");<NEW_LINE>scrape_cache_period = COConfigurationManager.getIntParameter("Tracker Scrape Cach...
full_scrape_enable = COConfigurationManager.getBooleanParameter("Tracker Server Full Scrape Enable");
897,476
public List<String> calculate() {<NEW_LINE>List<String> nameBlocks = new ArrayList<String>();<NEW_LINE>LinkedHashSet<String> names = new LinkedHashSet<String>();<NEW_LINE>Matcher matcher = pattern.matcher(typeName);<NEW_LINE>if (matcher.find()) {<NEW_LINE>int idx = matcher.start();<NEW_LINE>if (idx > 0) {<NEW_LINE>Stri...
typeName.substring(0, idx);
276,008
private PersonAttribute checkPersonAttribute(Business business, PullResult result, Person person, User user, Attr attr) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>EntityManager em = emc.get(PersonAttribute.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuil...
, attr.getName()));
1,693,075
private static HRDParameters readHRDParameters(BitReader _in) {<NEW_LINE>HRDParameters hrd = new HRDParameters();<NEW_LINE>hrd.cpbCntMinus1 = readUEtrace(_in, "SPS: cpb_cnt_minus1");<NEW_LINE>hrd.bitRateScale = (int) readNBit(_in, 4, "HRD: bit_rate_scale");<NEW_LINE>hrd.cpbSizeScale = (int) readNBit(_in, 4, "HRD: cpb_s...
readNBit(_in, 5, "HRD: time_offset_length");
1,494,293
public IAnyResource mergeGoldenResources(IAnyResource theFromGoldenResource, IAnyResource theMergedResource, IAnyResource theToGoldenResource, MdmTransactionContext theMdmTransactionContext) {<NEW_LINE>Long fromGoldenResourcePid = myIdHelperService.getPidOrThrowException(theFromGoldenResource);<NEW_LINE>Long toGoldenRe...
String resourceType = theMdmTransactionContext.getResourceType();
1,503,345
public boolean enclose() {<NEW_LINE>boolean retVal = false;<NEW_LINE>float[] minCoords = new float[getNumDims()];<NEW_LINE>Arrays.fill(minCoords, Float.POSITIVE_INFINITY);<NEW_LINE>float[] maxCoords = new float[getNumDims()];<NEW_LINE>Arrays.fill(maxCoords, Float.NEGATIVE_INFINITY);<NEW_LINE>for (Node child : getChildr...
minCoordinates, 0, minCoordinates.length);
1,027,007
private GerritMessageInfo createMessageInfo(TransformResult result, boolean newReview, String gerritChangeId, ChangeIdPolicy changeIdPolicy) throws ValidationException {<NEW_LINE>Revision rev = result.getCurrentRevision();<NEW_LINE>ImmutableList.Builder<LabelFinder> labels = ImmutableList.builder();<NEW_LINE>if (result...
(CHANGE_ID_LABEL + ": " + gerritChangeId));
439,115
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE><MASK><NEW_LINE>out.println("Servlet to test ATP using UCP");<NEW_LINE>Connection conn = null;<NEW_LINE>try {<NEW_LINE>// Get a context for the JNDI look up<NEW_LINE>PoolDataSource pds = getPoo...
PrintWriter out = response.getWriter();
413,634
public static Size fromDataSize(DataSize dataSize) {<NEW_LINE>switch(dataSize.getUnit()) {<NEW_LINE>case BYTES:<NEW_LINE>return Size.bytes(dataSize.getQuantity());<NEW_LINE>case KIBIBYTES:<NEW_LINE>return Size.<MASK><NEW_LINE>case KILOBYTES:<NEW_LINE>return Size.bytes(dataSize.toBytes());<NEW_LINE>case MEBIBYTES:<NEW_L...
kilobytes(dataSize.getQuantity());
1,329,268
protected TokenEntry processToken(Tokens tokenEntries, GenericToken currentToken, String fileName) {<NEW_LINE>String image = currentToken.getImage();<NEW_LINE>Token plsqlToken = (Token) currentToken;<NEW_LINE>if (ignoreIdentifiers && plsqlToken.kind == PLSQLParserConstants.IDENTIFIER) {<NEW_LINE>image = String.valueOf(...
), currentToken.getEndColumn());
831,599
public void testXA015(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>final TransactionManager tm = TransactionManagerFactory.getTransactionManager();<NEW_LINE>final int commitRepeatCount = 3;<NEW_LINE>tm.begin();<NEW_LINE>final Transaction tx = tm.getTransaction();<NEW_LINE>tx.enl...
.enlistResource(new XAResourceImpl());
1,267,281
public static StartingState determineStartingState(String jobId, List<PhaseProgress> progressOnStart) {<NEW_LINE>PhaseProgress lastIncompletePhase = null;<NEW_LINE>for (PhaseProgress phaseProgress : progressOnStart) {<NEW_LINE>if (phaseProgress.getProgressPercent() < 100) {<NEW_LINE>lastIncompletePhase = phaseProgress;...
), lastIncompletePhase.getProgressPercent());
885,956
public DefaultMutableTreeNode parent(MPPProductBOM bom) {<NEW_LINE>// System.out.println("Parent:" + bom.getName());<NEW_LINE>// X_M_Product product = new X_M_Product(getCtx(), bom.getM_Product_ID(),"M_Product");<NEW_LINE>// vparent.setValue(m_product_id);<NEW_LINE>DefaultMutableTreeNode parent = new DefaultMutableTree...
BigDecimal) bomline.getAssay());
382,059
private void extractX509Extensions() throws IOException, ParserException {<NEW_LINE>String ocspUrlResult = null;<NEW_LINE>byte[] certAsn1 = certificate.getEncoded();<NEW_LINE>// Parse ASN.1 structure of the certificate<NEW_LINE>Asn1Parser asn1Parser = new Asn1Parser(certAsn1, false);<NEW_LINE>List<Asn1Encodable> asn1En...
(0)).getChildren();
683,532
public Request<DeleteTagsRequest> marshall(DeleteTagsRequest deleteTagsRequest) {<NEW_LINE>if (deleteTagsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DeleteTagsRequest> request = new DefaultRequest<DeleteTagsRequest>(deleteTagsRequest,...
request.setHttpMethod(HttpMethodName.POST);
567,078
public static Object checkValidDataType(IParam sub, Context ctx, String type) {<NEW_LINE>Object retObj = null;<NEW_LINE>do {<NEW_LINE>if (sub == null) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>// System.out.println("checkValidDataType::IParam= "+sub);<NEW_LINE>Object o = sub.getLeafExpression().calculate(ctx);<NEW_LINE>if ...
"instanceof = " + o + " is not " + type);
1,519,941
public void delete(String uid) {<NEW_LINE>Util.assertHasLength(uid);<NEW_LINE>if (!exist(uid)) {<NEW_LINE>throw new FeatureNotFoundException(uid);<NEW_LINE>}<NEW_LINE>// Parameter<NEW_LINE>Map<String, Object> paramUID = new HashMap<>();<NEW_LINE>paramUID.put("uid", uid);<NEW_LINE>Transaction tx = graphDb.beginTx();<NEW...
paramGroupName.put(GROUP_NAME, groupName);
471,082
public okhttp3.Call attachPolicyToUserCall(String userId, String policyId, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/auth/users/{userId}/policies/{policyId}".replaceAll("\\{" + "userId" + "\\}", ...
localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
586,210
public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>g.setColor(Color.WHITE);<NEW_LINE>g.fillRect(x, y, getIconWidth(), getIconHeight());<NEW_LINE>g.setColor(new Color(0xb5d5ff));<NEW_LINE>g.drawRect(x, y, getIconWidth(), getIconHeight());<NEW_LINE>float fontSize = getMaxFontSize(g, getIconWidth() - ...
= x + (halfWidth - halfTextWidth);
244,648
private static void writeParsedConfig(AppInfo appInfo, String certData, boolean uninstall, String... hostNames) throws IOException, CertificateEncodingException {<NEW_LINE>if (hostNames.length == 0)<NEW_LINE>hostNames = CertificateChainBuilder.DEFAULT_HOSTNAMES;<NEW_LINE>File cfgDir = tryWrite(appInfo, false);<NEW_LINE...
cfgDir.getPath(), CFG_FILE);
1,681,952
public static DetectIPCPedestrianResponse unmarshall(DetectIPCPedestrianResponse detectIPCPedestrianResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectIPCPedestrianResponse.setRequestId(_ctx.stringValue("DetectIPCPedestrianResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<ImageInfoListItem> imageI...
= new ArrayList<Integer>();
25,655
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jScrollPane1 = <MASK><NEW_LINE>panel = new javax.swing.JPanel();<NEW_LINE>jScrollPane1.setBorder(null);<NEW_LINE>javax.swing.GroupLayout panelLayout = new javax.swing.GroupLayout(p...
new javax.swing.JScrollPane();
1,851,637
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint(...
apiVersion, virtualHubParameters, accept, context);
1,154,404
public Parent createContent() {<NEW_LINE>htmlEditor = new HTMLEditor();<NEW_LINE>htmlEditor.setHtmlText(INITIAL_TEXT);<NEW_LINE>ScrollPane htmlSP = new ScrollPane();<NEW_LINE>htmlSP.setFitToWidth(true);<NEW_LINE>// Workaround of RT-21495<NEW_LINE>htmlSP.setPrefWidth(htmlEditor.prefWidth(-1));<NEW_LINE>htmlSP.setPrefHei...
getStyleClass().add("noborder-scroll-pane");
1,388,308
/*<NEW_LINE>* resets (clears) the reader database<NEW_LINE>*/<NEW_LINE>public static void reset(boolean retainBookmarkedPosts) {<NEW_LINE>// note that we must call getWritableDb() before getDatabase() in case the database<NEW_LINE>// object hasn't been created yet<NEW_LINE>SQLiteDatabase db = getWritableDb();<NEW_LINE>...
getDatabase().reset(db);
117,067
final CreateAssessmentResult executeCreateAssessment(CreateAssessmentRequest createAssessmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAssessmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
950,534
public Object execute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>String wizardId = event.getParameter(ProjectTemplateSelectionPage.COMMAND_PROJECT_FROM_TEMPLATE_NEW_WIZARD_ID);<NEW_LINE>String templateName = event.getParameter(ProjectTemplateSelectionPage.COMMAND_PROJECT_FROM_TEMPLATE_PROJECT_TEMPLATE_N...
IWorkbenchWizard wizard = wizardDescriptor.createWizard();
956,664
public static List<String> findClasses(String[] searchPathsOrJars, ClassFilter filter) throws IOException {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("findClasses with searchPathsOrJars : {} and classFilter : {}", Arrays.toString(searchPathsOrJars), filter);<NEW_LINE>}<NEW_LINE>// Find all jars in the sea...
findClassesInOnePath(path, listClasses, filter);
1,517,827
final ListAssociationVersionsResult executeListAssociationVersions(ListAssociationVersionsRequest listAssociationVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssociationVersionsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,442,711
private boolean definePropertyLength(JSDynamicObject thisObj, PropertyDescriptor descriptor, PropertyDescriptor currentDesc, long len, boolean doThrow) {<NEW_LINE>assert JSRuntime.isValidArrayLength(len);<NEW_LINE>assert !currentDesc.getConfigurable();<NEW_LINE>boolean currentWritable = currentDesc.getWritable();<NEW_L...
newConfigurable = descriptor.getIfHasConfigurable(false);
962,653
public void finished() {<NEW_LINE>if (debug) {<NEW_LINE>printClock();<NEW_LINE>}<NEW_LINE>int cold = (int) data.values().stream().filter(node -> node.status == Status.COLD).count();<NEW_LINE>int hot = (int) data.values().stream().filter(node -> node.status == Status.HOT).count();<NEW_LINE>int nonResident = (int) data.v...
sizeHot, "Hot: expected %s but was %s", sizeHot, hot);
348,216
public static SqlOperatorTable operatorTable(String className) {<NEW_LINE>// Dummy schema to collect the functions<NEW_LINE>final CalciteSchema schema = CalciteSchema.createRootSchema(false, false);<NEW_LINE>ModelHandler.addFunctions(schema.plus(), null, ImmutableList.of(), className, "*", true);<NEW_LINE>// The follow...
= new SqlTypeFactoryImpl(RelDataTypeSystem.DEFAULT);
1,753,537
public void generateBToJCheckCast(MethodVisitor mv, BType sourceType, JType targetType) {<NEW_LINE>switch(targetType.jTag) {<NEW_LINE>case JTypeTags.JBYTE:<NEW_LINE>generateCheckCastBToJByte(mv, sourceType);<NEW_LINE>break;<NEW_LINE>case JTypeTags.JCHAR:<NEW_LINE>generateCheckCastBToJChar(mv, sourceType);<NEW_LINE>brea...
generateCheckCastBToJRef(mv, sourceType, targetType);
1,179,467
public HttpResponse logoutUserForHttpResponse(Map<String, Object> params) throws IOException {<NEW_LINE>UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/logout");<NEW_LINE>// Copy the params argument if present, to allow passing in immutable maps<NEW_LINE>Map<String, Object> allParams = param...
<String, Object>(params);
1,693,075
private static HRDParameters readHRDParameters(BitReader _in) {<NEW_LINE>HRDParameters hrd = new HRDParameters();<NEW_LINE>hrd.cpbCntMinus1 = readUEtrace(_in, "SPS: cpb_cnt_minus1");<NEW_LINE>hrd.bitRateScale = (int) <MASK><NEW_LINE>hrd.cpbSizeScale = (int) readNBit(_in, 4, "HRD: cpb_size_scale");<NEW_LINE>hrd.bitRateV...
readNBit(_in, 4, "HRD: bit_rate_scale");
407,199
protected boolean writeCustomProperties(ServiceTask serviceTask, boolean didWriteExtensionStartElement, XMLStreamWriter xtw) throws Exception {<NEW_LINE>for (CustomProperty customProperty : serviceTask.getCustomProperties()) {<NEW_LINE>if (StringUtils.isEmpty(customProperty.getSimpleValue())) {<NEW_LINE>continue;<NEW_L...
writeStartElement(FLOWABLE_EXTENSIONS_PREFIX, ATTRIBUTE_FIELD_EXPRESSION, FLOWABLE_EXTENSIONS_NAMESPACE);
1,084,416
public DescribeAttackResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAttackResult describeAttackResult = new DescribeAttackResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
().unmarshall(context));
1,571,202
private static void initKafkaProducerMap(Long clusterId) {<NEW_LINE>ClusterDO clusterDO = PhysicalClusterMetadataManager.getClusterFromCache(clusterId);<NEW_LINE>if (clusterDO == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>KafkaProducer<String, String> kafkaProducer = KAFKA_PRODUCE...
error("create kafka producer failed, clusterDO:{}.", clusterDO, e);
542,217
private ConfigCenterConfig registryAsConfigCenter(RegistryConfig registryConfig) {<NEW_LINE>String protocol = registryConfig.getProtocol();<NEW_LINE><MASK><NEW_LINE>URL url = URL.valueOf(registryConfig.getAddress(), registryConfig.getScopeModel());<NEW_LINE>String id = "config-center-" + protocol + "-" + url.getHost() ...
Integer port = registryConfig.getPort();
805,144
public static Iterable<SqlFeatureContext> loadFeatures() throws IOException {<NEW_LINE>try (InputStream sqlFeatures = SqlFeatures.class.getResourceAsStream("/sql_features.tsv")) {<NEW_LINE>if (sqlFeatures == null) {<NEW_LINE>throw new ResourceNotFoundException("sql_features.tsv file not found");<NEW_LINE>}<NEW_LINE>Arr...
.split("\t", NUM_COLS));
201,420
public Font resolveDeserializedFont(Font font) {<NEW_LINE>// We use the font.getName() method here because the name field in the java.awt.Font class is the only font name related information that gets serialized,<NEW_LINE>// along with the size and style. The font.getFontName() and font.getFamily() both return runtime ...
getSize2D(), null, true);
471,470
protected void createMultiInstanceLoopCharacteristics(BpmnParse bpmnParse, Activity modelActivity) {<NEW_LINE><MASK><NEW_LINE>MultiInstanceActivityBehavior miActivityBehavior = createMultiInstanceActivityBehavior(bpmnParse, modelActivity, loopCharacteristics);<NEW_LINE>modelActivity.setBehavior(miActivityBehavior);<NEW...
MultiInstanceLoopCharacteristics loopCharacteristics = modelActivity.getLoopCharacteristics();
1,603,529
protected Single<Subject> enhance(ProviderRequest request, AuthenticationResponse previousResponse, Subject subject) {<NEW_LINE>String username = subject.principal().getName();<NEW_LINE>Optional<List<Grant>> grants = roleCache.computeValue(username, Optional::empty);<NEW_LINE>if (grants.isPresent()) {<NEW_LINE>return a...
-> buildSubject(subject, it));
1,556,694
private static void destroyOpenAL() {<NEW_LINE>if (!trackExists())<NEW_LINE>return;<NEW_LINE>stop();<NEW_LINE>if (!AL.isCreated())<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>// get Music object's (private) Audio object reference<NEW_LINE>Field sound = player.getClass().getDeclaredField("sound");<NEW_LINE>sound.setAccessi...
.get().getSourceCount();
946,361
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {<NEW_LINE>String selected = parent.getItemAtPosition(pos).toString();<NEW_LINE>if (parent == baudRateSpinner) {<NEW_LINE>setBaudRate(Integer.parseInt(selected));<NEW_LINE>} else if (parent == modelSpinner) {<NEW_LINE>try {<NEW_LINE>masterLi...
(selected.toUpperCase()));
1,708,697
private void fullScreen() {<NEW_LINE>// hide top status bar<NEW_LINE>Activity activity = (Activity) getContext();<NEW_LINE>WindowManager.LayoutParams attrs = activity.getWindow().getAttributes();<NEW_LINE>attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;<NEW_LINE>activity.getWindow().setAttributes(attrs);<NEW_...
MarginLayoutParams(mRecordVideoBtn.getLayoutParams());
938,979
protected void validateIcmpTypeAndCode(NetworkACLItemVO networkACLItemVO) {<NEW_LINE><MASK><NEW_LINE>Integer icmpCode = networkACLItemVO.getIcmpCode();<NEW_LINE>if (icmpType == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (icmpType.longValue() != -1 && !NetUtils.validateIcmpType(icmpType.longValue())) {<NEW_LINE>thr...
Integer icmpType = networkACLItemVO.getIcmpType();
1,424,913
public int[] calculateAspectRatio(int origWidth, int origHeight) {<NEW_LINE>int newWidth = this.targetWidth;<NEW_LINE>int newHeight = this.targetHeight;<NEW_LINE>// If no new width or height were specified return the original bitmap<NEW_LINE>if (newWidth <= 0 && newHeight <= 0) {<NEW_LINE>newWidth = origWidth;<NEW_LINE...
(double) origWidth) * origHeight);
1,559,980
private Image createDelegatePaintedImage(Component c) {<NEW_LINE>double toolkitScale = Toolkit.getDefaultToolkit().getScreenResolution() / 96.0;<NEW_LINE>final int EXTRA_PIXELS = 2;<NEW_LINE>BufferedImage img = new BufferedImage(EXTRA_PIXELS + (int) Math.ceil(delegate.getIconWidth() * toolkitScale), EXTRA_PIXELS + (int...
toolkitScale) / (double) height);
867,544
private void savePreset() {<NEW_LINE>Thread saveThd = new Thread() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>EcuDataPv vid = (EcuDataPv) VidPvs.get(0);<NEW_LINE>String fileName = vid.get(EcuDataPv.FID_VALUE).toString().trim() + ".prs";<NEW_LINE>// notify about property change<NEW_LINE>firePro...
log.info("Preset saving skipped: " + fileName);
1,424,267
public void createBackup() {<NEW_LINE>boolean backupEnabled = configProvider.getBaseConfig().getMain().getBackupEveryXDays().isPresent();<NEW_LINE>if (!backupEnabled) {<NEW_LINE>logger.debug("Automatic backup is disabled");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int backupEveryXDays = configProvider.getBaseConfig().getMa...
debug("{} days since first start but backup is to be executed every {} days", daysSinceFirstStart, backupEveryXDays);
1,748,659
public void decode(MBlock mBlock, Picture mb) {<NEW_LINE>int mbX = mapper.getMbX(mBlock.mbIdx);<NEW_LINE>int mbY = mapper.getMbY(mBlock.mbIdx);<NEW_LINE>int address = mapper.getAddress(mBlock.mbIdx);<NEW_LINE>boolean leftAvailable = mapper.leftAvailable(mBlock.mbIdx);<NEW_LINE>boolean topAvailable = mapper.topAvailable...
][address] = s.qp;
268,809
public void run() {<NEW_LINE>Dispatcher dispatch = Dispatcher.instance();<NEW_LINE>try {<NEW_LINE>SIPStreamConectionAdapter connection = m_connection;<NEW_LINE>Socket socket = connection.m_socket;<NEW_LINE>final int packetSize = socket.getReceiveBufferSize();<NEW_LINE>final String peerHost = connection.getRemoteHost();...
] buf = new byte[packetSize];
378,942
static DatePickerDialog createDialog(Bundle args, Context activityContext, @Nullable OnDateSetListener onDateSetListener) {<NEW_LINE>final Calendar c = Calendar.getInstance();<NEW_LINE>DatePickerDialog dialog = getDialog(args, activityContext, onDateSetListener);<NEW_LINE>if (args != null && args.containsKey(RNConstant...
set(Calendar.MILLISECOND, 999);
733,350
public StreamPendingSummary build(Object data) {<NEW_LINE>if (null == data) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<Object> objectList = (List<Object>) data;<NEW_LINE>long total = BuilderFactory.LONG.build(objectList.get(0));<NEW_LINE>String minId = SafeEncoder.encode((byte[]) objectList.get(1));<NEW_LINE>Stri...
>) objectList.get(3);
614,308
final DescribeChannelResult executeDescribeChannel(DescribeChannelRequest describeChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
invoke(request, responseHandler, executionContext);