idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,727,633
// ----- private methods -----<NEW_LINE>private void init() {<NEW_LINE>factories.put(NotEmptyQuery.class, new NotEmptyQueryFactory(this));<NEW_LINE>factories.put(FulltextQuery.class, new KeywordQueryFactory(this));<NEW_LINE>factories.put(SpatialQuery.class, new SpatialQueryFactory(this));<NEW_LINE>factories.put(GraphQu...
.class, new IntTypeConverter());
975,397
private // Operates on one dimension at a time.<NEW_LINE>List<Pair<Integer, Double>> integerPixelCoordinatesAndWeights(double d, int numPixels) {<NEW_LINE>if (d <= 0.5)<NEW_LINE>return Collections.singletonList(new Pair<>(0, 1.0));<NEW_LINE>else if (d >= numPixels - 0.5)<NEW_LINE>return Collections.singletonList(new Pa...
= 1 - (shifted - floor);
353,874
public BeanDefinition parse(Element element, ParserContext pc) {<NEW_LINE>CompositeComponentDefinition compositeDef = new CompositeComponentDefinition(element.getTagName(), pc.extractSource(element));<NEW_LINE>pc.pushContainingComponent(compositeDef);<NEW_LINE>boolean prePostAnnotationsEnabled = !element.hasAttribute(A...
getChildElementByTagName(element, Elements.EXPRESSION_HANDLER);
74,392
public UsageInfo[] findUsages() {<NEW_LINE>myRenamers.clear();<NEW_LINE>ArrayList<UsageInfo> <MASK><NEW_LINE>List<PsiElement> elements = new ArrayList<>(myAllRenames.keySet());<NEW_LINE>// noinspection ForLoopReplaceableByForEach<NEW_LINE>for (int i = 0; i < elements.size(); i++) {<NEW_LINE>PsiElement element = element...
result = new ArrayList<>();
404,324
private Collection<Component> defineProblemComponents() {<NEW_LINE>final List<Component> all = new ArrayList<Component>();<NEW_LINE>final String ID = ProblemAnalyzer.ID;<NEW_LINE>//<NEW_LINE>all.//<NEW_LINE>add(//<NEW_LINE>C(ProblemHandler.class, DefaultProblemHandler.ID, DefaultProblemHandler.class).//<NEW_LINE>config...
LongExecutionProblemHandler.ID }, "m_handlers"));
1,708,578
public static ClientMessage encodeRequest(java.lang.String name, java.lang.String inMemoryFormat, boolean asyncFillup, boolean statisticsEnabled, java.lang.String mergePolicy, @Nullable java.util.Collection<com.hazelcast.client.impl.protocol.task.dynamicconfig.ListenerConfigHolder> listenerConfigs, @Nullable java.lang....
StringCodec.encode(clientMessage, name);
749,026
private void processNode(Node node) {<NEW_LINE>if (node.getNodeType() == Node.DOCUMENT_NODE) {<NEW_LINE>NodeList children = node.getChildNodes();<NEW_LINE>if (children != null) {<NEW_LINE>setAttributes(new ArrayList());<NEW_LINE>for (int i = 0; i < children.getLength(); i++) {<NEW_LINE>processNode(children.item(i));<NE...
getAttributes().add(current);
19,775
public TimecodeBurnin unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TimecodeBurnin timecodeBurnin = new TimecodeBurnin();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
JsonToken token = context.getCurrentToken();
1,580,769
final ModifyDBClusterEndpointResult executeModifyDBClusterEndpoint(ModifyDBClusterEndpointRequest modifyDBClusterEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBClusterEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
704,945
protected static void dropPhysicalDbsInStorageInst(String storageInstId, Map<String, String> grpPhyDbMap, long socketTimeout) throws SQLException {<NEW_LINE>// ----prepare conn of target inst----<NEW_LINE>HaSwitchParams haSwitchParams = StorageHaManager.getInstance().getStorageHaSwitchParams(storageInstId);<NEW_LINE>if...
connProps = getJdbcConnPropsFromAtomConnPropsForGroup(socketTimeout, storageConnProps);
823,396
public long createValidationProfile(String userId, ValidationProfile profile) throws StorageException {<NEW_LINE>logger.debug("Inserting a validation profile for: {} name: ", <MASK><NEW_LINE>try {<NEW_LINE>return this.jdbi.withHandle(handle -> {<NEW_LINE>String statement = sqlStatements.insertValidationProfile();<NEW_...
userId, profile.getName());
256,257
public ApiResponse executeHttpCall(@NonNull final ApiRequestAudit apiRequestAudit) {<NEW_LINE>if (apiRequestAudit.getMethod() == null || apiRequestAudit.getPath() == null) {<NEW_LINE>throw new AdempiereException("Missing essential data from the given ApiRequestAudit!").setParameter("Method", apiRequestAudit.getMethod()...
sysConfigBL.getIntValue(CFG_INTERNAL_PORT, CFG_INTERNAL_PORT_DEFAULT);
1,102,133
protected ShellyMgrResponse loadFirmware(String path, Map<String, String[]> parameters) throws ShellyApiException {<NEW_LINE>String deviceType = getUrlParm(parameters, URLPARM_DEVTYPE);<NEW_LINE>String deviceMode = getUrlParm(parameters, URLPARM_DEVMODE);<NEW_LINE>String version = getUrlParm(parameters, URLPARM_VERSION...
ShellyMgrResponse(failure, HttpStatus.BAD_REQUEST_400);
1,176,903
public static void datasetList(String projectId, String regionId) throws IOException {<NEW_LINE>// String projectId = "your-project-id";<NEW_LINE>// String regionId = "us-central1";<NEW_LINE>// Initialize the client, which will be used to interact with the service.<NEW_LINE>CloudHealthcare client = createClient();<NEW_...
(100).setPageToken(pageToken);
435,155
public void prettyPrintLetClause(Concrete.LetClause letClause, boolean printPipe) {<NEW_LINE>if (printPipe) {<NEW_LINE>myBuilder.append("| ");<NEW_LINE>}<NEW_LINE>prettyPrintPattern(letClause.getPattern(), Concrete.Pattern.PREC, true);<NEW_LINE>for (Concrete.Parameter arg : letClause.getParameters()) {<NEW_LINE>myBuild...
}.doPrettyPrint(this, noIndent);
1,284,945
private void loadNode109() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.Server_SetSubscriptionDurable_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0),...
this.nodeManager.addNode(node);
787,129
public <T extends Event> void unregisterEventReceiver(EventReceiver<T> eventReceiver, Class<T> eventClass, Class<? extends Component>... componentTypes) {<NEW_LINE>SetMultimap<Class<? extends Component>, EventHandlerInfo> eventHandlerMap = componentSpecificHandlers.get(eventClass);<NEW_LINE>if (eventHandlerMap != null)...
.values().iterator();
812,703
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>View root = inflater.inflate(R.layout.quick_feed_discovery, container, false);<NEW_LINE>View discoverMore = root.findViewById(R.id.discover_m...
dummies = new ArrayList<>();
1,508,576
private static MimeMultipart createMultiPartEntity(final ByteString entity, final String entityContentType, String query) throws MessagingException {<NEW_LINE>MimeMultipart multi = new MimeMultipart(MIXED);<NEW_LINE>// Create current entity with the associated type<NEW_LINE>MimeBodyPart dataPart = new MimeBodyPart();<N...
ContentType contentType = new ContentType(entityContentType);
563,384
public String delete(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, Long[] ids, HttpServletRequest request, ModelMap model) {<NEW_LINE>if (CommonUtils.notEmpty(ids)) {<NEW_LINE>Set<Integer> categoryIdSet = new HashSet<>();<NEW_LINE>for (CmsContent entity : service.delete(site.getId(), admin, ids)) {<N...
CmsFileUtils.moveFile(filePath, backupFilePath);
1,788,579
public ListDeploymentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDeploymentsResult listDeploymentsResult = new ListDeploymentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
592,021
public ODocument toNetworkStream() {<NEW_LINE>ODocument result = super.toNetworkStream();<NEW_LINE>result.setProperty("query", cfg.getQuery());<NEW_LINE>result.setProperty("updatable", cfg.isUpdatable());<NEW_LINE>List<Map<String, Object>> indexes = new ArrayList<>();<NEW_LINE>for (OViewConfig.OViewIndexConfig idx : cf...
s.value.toString());
1,648,302
public LowLevelHttpResponse execute() throws IOException {<NEW_LINE>if (tokenRequestStatusCode != null) {<NEW_LINE>MockLowLevelHttpResponse response = new MockLowLevelHttpResponse().setStatusCode<MASK><NEW_LINE>return response;<NEW_LINE>}<NEW_LINE>String metadataRequestHeader = getFirstHeaderValue("Metadata-Flavor");<N...
(tokenRequestStatusCode).setContent("Token Fetch Error");
756,527
public static void putLongByByte(long address, long value) {<NEW_LINE>if (BIG_ENDIAN) {<NEW_LINE>unsafe.putByte(address, (byte) (value >> 56));<NEW_LINE>unsafe.putByte(address + 1, (byte) (value >> 48));<NEW_LINE>unsafe.putByte(address + 2, (byte) (value >> 40));<NEW_LINE>unsafe.putByte(address + 3, (byte) (value >> 32...
) (value >> 32));
1,360,391
public void beforePush(GitRepository scratchClone, MessageInfo messageInfo, boolean skipPush, List<? extends Change<?>> originChanges) throws ValidationException, RepoException {<NEW_LINE>if (skipPush || generalOptions.allowEmptyDiff(allowEmptyDiff)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Change<?> originalChange ...
getHead().getSha());
565,549
final CreateCrawlerResult executeCreateCrawler(CreateCrawlerRequest createCrawlerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCrawlerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,522,225
private void write(WriteOptions writeOptions, Order order, DBState state, int numEntries, int valueSize, int entriesPerBatch) throws IOException {<NEW_LINE>if (state == FRESH) {<NEW_LINE>if (useExisting) {<NEW_LINE>message = "skipping (--use_existing_db is true)";<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>db.close();<NEW_LI...
, generator.generate(valueSize));
378,147
final ListServersResult executeListServers(ListServersRequest listServersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServersRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListServersRequest> request = null;<NEW_LINE>Respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,017,767
private static void addCustomDefs(Project project) throws BuildException, IOException {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>if (AntBridge.getInterface().isAnt16()) {<NEW_LINE>Map<String, ClassLoader> antlibLoaders = AntBridge.getCustomDefClassLoaders();<NEW_LINE>for (Map.Entry<String, ClassLoader...
replace('.', '/') + "/antlib.xml";
1,049,892
public static ListLivesResponse unmarshall(ListLivesResponse listLivesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLivesResponse.setRequestId(_ctx.stringValue("ListLivesResponse.RequestId"));<NEW_LINE>listLivesResponse.setCode(_ctx.stringValue("ListLivesResponse.Code"));<NEW_LINE>listLivesResponse.setMessage(_ctx...
("ListLivesResponse.Data.Items[" + i + "].Id"));
167,453
private static void fetchArray(final ODocument rootRecord, final Object iUserObject, final OFetchPlan iFetchPlan, Object fieldValue, String fieldName, final int iCurrentLevel, final int iLevelFromRoot, final int iFieldDepthLevel, final Map<ORID, Integer> parsedRecords, final String iFieldPathFromRoot, final OFetchListe...
get(document.getIdentity());
1,263,742
private String[] composeXilinxHLSLinkCommand() {<NEW_LINE><MASK><NEW_LINE>bufferCommand.add(fpgaCompiler);<NEW_LINE>bufferCommand.add(Tornado.FPGA_EMULATION ? ("-t " + "sw_emu") : ("-t " + "hw"));<NEW_LINE>bufferCommand.add("--platform " + fpgaName + " -l " + "-g");<NEW_LINE>bufferCommand.add("--xp " + "misc:solution_n...
StringJoiner bufferCommand = new StringJoiner(" ");
1,753,539
public Set<String> findClassSet(String packageName, Consumer<String> consumer) {<NEW_LINE>packageName = packageName.replace(".", "/");<NEW_LINE>try {<NEW_LINE>ClassLoader classLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>Enumeration <MASK><NEW_LINE>Set<String> result = new HashSet<>();<NEW_LINE>whi...
resources = classLoader.getResources(packageName);
1,309,740
public Result isConditionMet(Index index, ClusterState clusterState) {<NEW_LINE>Metadata metadata = clusterState.metadata();<NEW_LINE>IndexMetadata indexMetadata = metadata.index(index);<NEW_LINE>String indexName = index.getName();<NEW_LINE>if (indexMetadata == null) {<NEW_LINE>String errorMessage = String.format(Local...
getIndicesLookup().get(indexName);
639,215
private void replaceSequenceV2EthenE2VthenID(T originalStep) {<NEW_LINE>Traversal.Admin<?, ?> traversal = originalStep.getTraversal();<NEW_LINE>Step<Edge, Vertex> e2vStep;<NEW_LINE>// remove obsolete NoOpBarrier<NEW_LINE>if (originalStep.getPreviousStep() instanceof NoOpBarrierStep) {<NEW_LINE>traversal.removeStep(orig...
).forEach(e2vStep::addLabel);
593,884
public UserSearchResults performMultiUserSearchFromForm(final Locale locale, final SearchConfiguration searchConfiguration, final int maxResults, final List<FormConfiguration> formItem, final SessionLabel sessionLabel) throws PwmUnrecoverableException, PwmOperationalException {<NEW_LINE>final Map<String, String> attrib...
= searchResults.size() > maxResults;
1,762,173
final UnsubscribeFromEventResult executeUnsubscribeFromEvent(UnsubscribeFromEventRequest unsubscribeFromEventRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(unsubscribeFromEventRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
false), new UnsubscribeFromEventResultJsonUnmarshaller());
1,176,143
private static TypeHierarchyItem toTypeHierarchyItem(IType type) throws JavaModelException {<NEW_LINE>if (type == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Location location = getLocation(type, LocationType.FULL_RANGE);<NEW_LINE>Location selectLocation = getLocation(type, LocationType.NAME_RANGE);<NEW_LINE>if (...
setRange(location.getRange());
872,009
public ApiResponse<Void> usersDeleteWithHttpInfo(String id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling usersDelete");<NEW_LINE>}<NEW...
HashMap<String, Object>();
1,665,956
public static Object convertDateTimeToString(Object value, SqlTypeName sqlTypeName) {<NEW_LINE>if (value instanceof Timestamp || value instanceof Date || value instanceof Time) {<NEW_LINE>switch(sqlTypeName) {<NEW_LINE>case TIME:<NEW_LINE>case TIME_WITH_LOCAL_TIME_ZONE:<NEW_LINE>// xx:xx:xx.0 is valid but doesn't confo...
TimestampString timestampStr = new TimestampString(strValue);
1,207,631
private Map<String, URL> sortAndNormalizeSpecifierMap(JsonObject obj, URL baseURL) {<NEW_LINE>final Map<String, URL> normalized = new HashMap<>();<NEW_LINE>for (Map.Entry<String, Object> kv : obj) {<NEW_LINE>final String normalizedSpecifierKey = normalizeSpecifierKey(kv.getKey(), baseURL);<NEW_LINE>if (normalizedSpecif...
normalized.put(normalizedSpecifierKey, null);
1,696,312
public Response safeHandle(HttpRequest request) throws JSONException {<NEW_LINE>SelendroidLogger.info("execute script command");<NEW_LINE>JSONObject payload = getPayload(request);<NEW_LINE>String script = payload.getString("script");<NEW_LINE>JSONArray args = payload.optJSONArray("args");<NEW_LINE>Object value = null;<...
), StatusCode.UNKNOWN_ERROR, e);
1,326,763
public void removeUser(Long userId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'userId' is set<NEW_LINE>if (userId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'userId' when calling removeUser");<NEW_L...
String[] localVarAccepts = { "application/json" };
244,403
private boolean createTable() {<NEW_LINE>LOG.info("create statistics table start");<NEW_LINE>TableName tableName = new TableName(Constants.StatisticsDBName, Constants.StatisticsTableName);<NEW_LINE>Map<String, String> properties = Maps.newHashMap();<NEW_LINE>int defaultReplicationNum = Math.min(3, Catalog.getCurrentSys...
"Failed to create table" + e.getMessage());
1,777,339
// The Main function<NEW_LINE>public static void main(String[] args) {<NEW_LINE>int[] freq = { 2, 1, 1, 3, 2, 3, 4, 5, <MASK><NEW_LINE>int n = freq.length;<NEW_LINE>BinaryIndexedTree tree = new BinaryIndexedTree();<NEW_LINE>// Build fenwick tree from given array<NEW_LINE>tree.constructBITree(freq, n);<NEW_LINE>System.o...
6, 7, 8, 9 };
1,529,634
protected void visitAnnotations(AnnotatedNode node, int target) {<NEW_LINE>if (node.getAnnotations().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.currentClass.setAnnotated(true);<NEW_LINE>if (!isAnnotationCompatible()) {<NEW_LINE>addError("Annotations are not supported in the current runtime. " + JVM_ERROR_ME...
= new AnnotationVisitor(source, errorCollector);
697,653
public void requestDestroyed(ServletRequestEvent sre) {<NEW_LINE>String cname = findContextName(sre.getServletContext());<NEW_LINE>HttpServletRequest r = (HttpServletRequest) sre.getServletRequest();<NEW_LINE>String rname = findRequestName(r);<NEW_LINE>DispatcherType d = r.getDispatcherType();<NEW_LINE>if (sre.getServl...
br = Request.getBaseRequest(r);
1,556,574
final ListComplianceStatusResult executeListComplianceStatus(ListComplianceStatusRequest listComplianceStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listComplianceStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
308,408
public Pair<ByteArray, Versioned<byte[]>> computeNext() {<NEW_LINE>try {<NEW_LINE>int size = inputStream.readInt();<NEW_LINE>if (size == -1) {<NEW_LINE>socketPool.checkin(destination, sands);<NEW_LINE>return endOfData();<NEW_LINE>}<NEW_LINE>VAdminProto.FetchPartitionEntriesResponse response = responseFromStream(inputSt...
close(sands.getSocket());
1,425,004
final GetTagsResult executeGetTags(GetTagsRequest getTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,670,683
protected void initTemplates() {<NEW_LINE>fmConfig = new Configuration();<NEW_LINE>fmConfig.setObjectWrapper(new DefaultObjectWrapper());<NEW_LINE>fmConfig.setClassForTemplateLoading(getClass(), "");<NEW_LINE>try {<NEW_LINE>ClassLoader loader <MASK><NEW_LINE>String templatePackage = "org/appcelerator/kroll/annotations/...
= getClass().getClassLoader();
1,678,247
public static Path textpath(String text, String fontName, double fontSize, String alignment, Point position, double width) {<NEW_LINE>Text.Align align;<NEW_LINE>try {<NEW_LINE>align = <MASK><NEW_LINE>} catch (IllegalArgumentException ignore) {<NEW_LINE>align = Text.Align.CENTER;<NEW_LINE>}<NEW_LINE>if (align == Text.Al...
Text.Align.valueOf(alignment);
1,777,139
void add() {<NEW_LINE>errorField.setVisible(false);<NEW_LINE>DefaultTableModel model = <MASK><NEW_LINE>String hash = hashField.getText();<NEW_LINE>if (!hash.equals("")) {<NEW_LINE>if (hash.matches("[a-fA-F0-9]{32}")) {<NEW_LINE>for (int i = 0; i < model.getRowCount(); i++) {<NEW_LINE>if (model.getValueAt(i, 0).equals(h...
(DefaultTableModel) hashTable.getModel();
839,445
public CreateCallAnalyticsCategoryResult createCallAnalyticsCategory(CreateCallAnalyticsCategoryRequest createCallAnalyticsCategoryRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCallAnalyticsCategoryRequest);<NEW_LINE>AWSRequestM...
new JsonResponseHandler<CreateCallAnalyticsCategoryResult>(unmarshaller);
62,030
public static SymbolInformation resolveWorkspaceSymbol(SymbolInformation request) {<NEW_LINE>ITypeRoot unit = JDTUtils.resolveTypeRoot(request.getLocation().getUri());<NEW_LINE>if (unit == null || !unit.exists()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Location location = request.getLocation();<NEW_LINE>try {<NEW_L...
location = JDTUtils.toLocation(child);
1,138,827
public UserInfo buildUserInfo(ListUserResponse user, SynchroRelated relatedOrg) {<NEW_LINE>UserInfo userInfo = new UserInfo();<NEW_LINE>userInfo.setUsername(user.getUserid());<NEW_LINE>userInfo.setNickName(user.getName());<NEW_LINE>userInfo.setDisplayName(user.getName());<NEW_LINE>userInfo.setFormattedName(user.getName...
userInfo.setStatus(ConstsStatus.INACTIVE);
966,064
private void processCalc() {<NEW_LINE>AnalystField firstOutputField = null;<NEW_LINE>final int barsNeeded = Math.abs(getAnalyst().determineMinTimeSlice());<NEW_LINE>final int inputCount = getAnalyst().determineInputCount();<NEW_LINE>final int outputCount = getAnalyst().determineOutputCount();<NEW_LINE>setIndentLevel(2)...
-field.getTimeSlice()));
541,022
public static DescribeUserCertificateListResponse unmarshall(DescribeUserCertificateListResponse describeUserCertificateListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUserCertificateListResponse.setRequestId<MASK><NEW_LINE>describeUserCertificateListResponse.setTotalCount(_ctx.integerValue("DescribeUserCert...
(_ctx.stringValue("DescribeUserCertificateListResponse.RequestId"));
835,529
public AutoCloseableIterator<JsonNode> queryTableIncremental(final JdbcDatabase database, final List<String> columnNames, final String schemaName, final String tableName, final String cursorField, final Datatype cursorFieldType, final String cursor) {<NEW_LINE>LOGGER.info("Queueing query for table: {}", tableName);<NEW...
.enquoteIdentifier(connection, cursorField));
1,516,011
public String forFindByColumns(String alias, List<Join> joins, String table, String loadColumns, List<Column> columns, String orderBy, Object limit) {<NEW_LINE>StringBuilder sqlBuilder = SqlBuilder.forFindByColumns(alias, joins, table, loadColumns, columns, orderBy, ' ');<NEW_LINE>if (limit == null) {<NEW_LINE>return s...
(limit).append(" tempcolumn=0,");
1,503,709
static Annotation[] addAnnotation(ASTNode source, Annotation[] originalAnnotationArray, char[][] annotationTypeFqn, ASTNode... args) {<NEW_LINE>char[] simpleName = annotationTypeFqn[annotationTypeFqn.length - 1];<NEW_LINE>if (originalAnnotationArray != null)<NEW_LINE>for (Annotation ann : originalAnnotationArray) {<NEW...
newAnnotationArray, 0, originalAnnotationArray.length);
715,014
// VisibleForTesting<NEW_LINE>void sendMetricData(List<MetricDatum> metricData) throws InterruptedException {<NEW_LINE>PutMetricDataRequest putMetricDataRequest = PutMetricDataRequest.builder().namespace(config.namespace()).metricData(metricData).build();<NEW_LINE>CountDownLatch latch = new CountDownLatch(1);<NEW_LINE>...
logger.error("error sending metric data.", t);
1,547,513
private SOAPMessage invokeService3(String portNum) throws Exception {<NEW_LINE>String wsdlLocation = "http://localhost:" + portNum + "/untoken/SOAPService3?wsdl";<NEW_LINE>StringReader reqMsg = new StringReader("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Header></soapenv:Head...
URL wsdlURL = new URL(wsdlLocation);
58,651
private void executePrecompile(final PrecompiledContract contract, final MessageFrame frame, final OperationTracer operationTracer) {<NEW_LINE>final Gas gasRequirement = contract.gasRequirement(frame.getInputData());<NEW_LINE>if (frame.getRemainingGas().compareTo(gasRequirement) < 0) {<NEW_LINE>LOG.trace("Not enough ga...
frame.getInputData(), frame);
1,815,374
public static ListPersonTraceResponse unmarshall(ListPersonTraceResponse listPersonTraceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPersonTraceResponse.setRequestId<MASK><NEW_LINE>listPersonTraceResponse.setTotalCount(_ctx.integerValue("ListPersonTraceResponse.TotalCount"));<NEW_LINE>listPersonTraceResponse.setM...
(_ctx.stringValue("ListPersonTraceResponse.RequestId"));
1,092,666
final GetPolicyResult executeGetPolicy(GetPolicyRequest getPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPolicyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetPolicyRequest> request = null;<NEW_LINE>Response<GetPolic...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
435,343
// ========================================= Helpers ======================================<NEW_LINE>Element writeLineColor(ILineObject lineObject, Element parentElement) {<NEW_LINE>Element lineColorElement = null;<NEW_LINE>RGB rgb = ColorFactory.convertStringToRGB(lineObject.getLineColor());<NEW_LINE>if (rgb == null) ...
= new Element(ELEMENT_LINECOLOR, ARCHIMATE3_NAMESPACE);
1,195,640
private void handle(APICreateSearchIndexMsg msg) throws Exception {<NEW_LINE>APICreateSearchIndexEvent evt = new <MASK><NEW_LINE>if (!msg.getInventoryNames().isEmpty()) {<NEW_LINE>Set<String> validInventoryNames = getAllInventoryNames();<NEW_LINE>for (String invname : msg.getInventoryNames()) {<NEW_LINE>if (!validInven...
APICreateSearchIndexEvent(msg.getId());
1,126,109
public static DescribeDomainStatusCodeListResponse unmarshall(DescribeDomainStatusCodeListResponse describeDomainStatusCodeListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainStatusCodeListResponse.setRequestId(_ctx.stringValue("DescribeDomainStatusCodeListResponse.RequestId"));<NEW_LINE>List<StatusCode> s...
("DescribeDomainStatusCodeListResponse.StatusCodeList[" + i + "].Status503"));
1,299,115
public String GetCurrentProgramName() {<NEW_LINE>String functionName = "GetCurrentProgramName";<NEW_LINE>if (!checkBluetooth(functionName)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>byte[] command = new byte[2];<NEW_LINE>// Direct command telegram, response required<NEW_LINE>command[0] = (byte) 0x00;<NEW_LINE>// GETCUR...
returnPackage = sendCommandAndReceiveReturnPackage(functionName, command);
378,202
// GR-31094 method has deoptimization sources without corresponding deoptimization targets<NEW_LINE>// within native image.<NEW_LINE>@TruffleBoundary<NEW_LINE>public static Object prepareStack(JSRealm realm, JSDynamicObject errorObj, GraalJSException exception) {<NEW_LINE>JSStackTraceElement[<MASK><NEW_LINE>if (realm.i...
] stackTrace = exception.getJSStackTrace();
1,593,094
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>response.setContentType("text/html");<NEW_LINE>response.setStatus(HttpServletResponse.SC_OK);<NEW_LINE>response.addHeader("Cache-Control", "no-cache");<NEW_LINE>HttpSession session = request.ge...
println("<p>" + message + "</p>");
888,726
public TrxLookupSet fetchTransInfo(String db) {<NEW_LINE>final TrxLookupSet lookupSet = new TrxLookupSet();<NEW_LINE>final List<List<Map<String, Object>>> results = SyncManagerHelper.sync(new FetchTransForDeadlockDetectionSyncAction(db), db);<NEW_LINE>for (List<Map<String, Object>> result : results) {<NEW_LINE>if (resu...
Long) row.get("CONN_ID");
320,574
private <A, B, LS, RS, LT, RT> OpticParts<A, B> cap(final FamilyOptic<A, B> lo, final FamilyOptic<A, B> ro, final int index) {<NEW_LINE>final TypeToken<TraversalP.Mu> bound = TraversalP.Mu.TYPE_TOKEN;<NEW_LINE>final OpticParts<A, B> lp = lo.apply(index);<NEW_LINE>final OpticParts<A, B> <MASK><NEW_LINE>final Optic<? sup...
rp = ro.apply(index);
304,334
final BatchGetDevicePositionResult executeBatchGetDevicePosition(BatchGetDevicePositionRequest batchGetDevicePositionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetDevicePositionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
201,810
public void onConnected() {<NEW_LINE>isGatewayConnected = true;<NEW_LINE>Map<String, String> properties = editProperties();<NEW_LINE>boolean propertiesChanged = false;<NEW_LINE>OpenGateway gw = gateway;<NEW_LINE>if (gw == null) {<NEW_LINE>logger.warn("received onConnected() but gateway is null");<NEW_LINE>return;<NEW_L...
, properties.get(PROPERTY_SERIAL_NO));
628,551
public MeasurementProcessingConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MeasurementProcessingConfig measurementProcessingConfig = new MeasurementProcessingConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
().unmarshall(context));
46,035
void searchDuplicates(List<PairedReadSequence> sequences, Histogram<Integer> duplicationHisto, Histogram<Integer> opticalHisto) {<NEW_LINE>for (int i = 0; i < sequences.size(); ++i) {<NEW_LINE>final PairedReadSequence lhs = sequences.get(i);<NEW_LINE>if (lhs == null)<NEW_LINE>continue;<NEW_LINE>final List<PairedReadSeq...
sequences.set(j, null);
1,346,929
public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex buildPartial() {<NEW_LINE>net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((...
bitField0_ = (bitField0_ & ~0x00000004);
1,321,477
public void run() {<NEW_LINE>LOG.info("start to PartitionCreateRunnable:id:{},partition:{}", idConfig.getInlongGroupId(), strPartitionValue);<NEW_LINE>this.state = PartitionState.CREATING;<NEW_LINE>HdfsIdFile idFile = null;<NEW_LINE>try {<NEW_LINE>String strIdRootPath = idConfig.parsePartitionPath(partitionTime);<NEW_L...
e.getMessage(), e);
1,389,202
private void addPubDate(Map<Field, String> fields, PubDate pubDate) {<NEW_LINE>if (pubDate.getYear() == null) {<NEW_LINE>// if year of the pubdate is null, the medlineDate shouldn't be null<NEW_LINE>fields.put(StandardField.YEAR, extractYear(pubDate.getMedlineDate()));<NEW_LINE>} else {<NEW_LINE>fields.put(StandardFiel...
parse(pubDate.getMonth());
69,510
public CompletableFuture<ExecutionData> execute(DelegateExecution execution, AsyncTaskInvoker taskInvoker) {<NEW_LINE>HttpRequest request;<NEW_LINE>HttpServiceTask httpServiceTask = <MASK><NEW_LINE>try {<NEW_LINE>request = createRequest(execution, httpServiceTask.getId());<NEW_LINE>} catch (Exception e) {<NEW_LINE>if (...
(HttpServiceTask) execution.getCurrentFlowElement();
1,181,746
private void createInspectClassMapAcls(Configuration c) {<NEW_LINE>_inspectClassMaps.forEach((inspectClassMapName, inspectClassMap) -> {<NEW_LINE>String inspectClassMapAclName = computeInspectClassMapAclName(inspectClassMapName);<NEW_LINE>MatchSemantics matchSemantics = inspectClassMap.getMatchSemantics();<NEW_LINE>Lis...
.getSimpleName(), matchSemantics));
274,658
public void primitiveArrayDump(int address, int type, int length) {<NEW_LINE>Assert((address & 7) == 0);<NEW_LINE>// convert unsigned to signed types<NEW_LINE>if (type >= 8)<NEW_LINE>type -= 8;<NEW_LINE>Assert(type < 8);<NEW_LINE>Assert(type >= 0);<NEW_LINE>int gap = (address - lastAddress) >> 3;<NEW_LINE>int absgap = ...
(type << 2) | 2);
1,177,398
private void generateIsArray(WasmLocal subtypeVar, WasmClassGenerator classGenerator, ValueType itemType, List<WasmExpression> body) {<NEW_LINE>int itemOffset = classGenerator.getFieldOffset(new FieldReference(RuntimeClass.class.getName(), "itemType"));<NEW_LINE>WasmExpression itemExpression = new WasmGetLocal(subtypeV...
getBody().add(delegateToItem);
456,287
public void onNonNullFieldAssignment(Symbol field, AccessPathNullnessAnalysis analysis, VisitorState state) {<NEW_LINE>// Traversing AST is costly, therefore we access the initializer method through the leaf node in<NEW_LINE>// state parameter<NEW_LINE>TreePath pathToMethod = NullabilityUtil.findEnclosingMethodOrLambda...
getSymbol(pathToMethod.getLeaf());
1,366,829
private boolean connect() {<NEW_LINE>final String server = config.getString("xmpp.server", null);<NEW_LINE>if (server == null || server.equals("example.com")) {<NEW_LINE>logger.log(Level.WARNING, tl("xmppNotConfigured"));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final int port = config.getInt("xmpp.port", 5222);<NEW_...
setSecurityMode(ConnectionConfiguration.SecurityMode.required);
298,873
// autogenerated by CtBiScannerGenerator<NEW_LINE>public void visitCtFor(final spoon.reflect.code.CtFor forLoop) {<NEW_LINE>spoon.reflect.code.CtFor other = ((spoon.reflect.code.CtFor) (this.stack.peek()));<NEW_LINE>enter(forLoop);<NEW_LINE>biScan(spoon.reflect.path.CtRole.ANNOTATION, forLoop.getAnnotations(), other.ge...
), other.getForInit());
1,257,404
public boolean mouseScrolled(double mouseX, double mouseY, double delta) {<NEW_LINE>Window window = getMinecraft().getWindow();<NEW_LINE>double hoveredX = mouseX - window.getGuiScaledWidth() / 2;<NEW_LINE>double hoveredY = mouseY - window.getGuiScaledHeight() / 2;<NEW_LINE>double distance = hoveredX * hoveredX + hovere...
mouseScrolled(mouseX, mouseY, delta);
1,325,427
private void generateMethodBody(MethodVisitor mv, String initClass, String stopFuncName, AsyncDataCollector asyncDataCollector) {<NEW_LINE>// create FP value<NEW_LINE>JvmCodeGenUtil.createFunctionPointer(mv, initClass, stopFuncName);<NEW_LINE>// no parent strand<NEW_LINE>mv.visitInsn(ACONST_NULL);<NEW_LINE>jvmTypeGen.l...
(mv, new BNilType());
1,211,110
public UnprocessedAccount unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UnprocessedAccount unprocessedAccount = new UnprocessedAccount();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
1,265,996
public String extractContent(String language, Path file) {<NEW_LINE>String content = null;<NEW_LINE>try (InputStream inputStream = Files.newInputStream(file);<NEW_LINE>PDDocument pdfDocument = PDDocument.load(inputStream)) {<NEW_LINE>content = new PDFTextStripper().getText(pdfDocument);<NEW_LINE>} catch (Exception e) {...
300, ImageType.GRAY)));
411,602
void read(File additions) {<NEW_LINE>String[] lines = PApplet.loadStrings(additions);<NEW_LINE>if (lines == null) {<NEW_LINE>throw new NullPointerException(<MASK><NEW_LINE>}<NEW_LINE>// for (String line : lines) {<NEW_LINE>for (int i = 0; i < lines.length; i++) {<NEW_LINE>String line = lines[i];<NEW_LINE>if ((line.leng...
"File not found:\n" + additions.getAbsolutePath());
1,005,221
public BeamSqlTable buildBeamSqlTable(Table table) {<NEW_LINE>Schema schema = table.getSchema();<NEW_LINE>JSONObject properties = table.getProperties();<NEW_LINE>Optional<ParsedLocation> parsedLocation = Optional.empty();<NEW_LINE>if (!Strings.isNullOrEmpty(table.getLocation())) {<NEW_LINE>parsedLocation = Optional.of(...
)) : Optional.empty();
711,763
public ResultSet executeQuery(String sql) throws SQLException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "executeQuery", new Object[] { this, sql });<NEW_LINE>try {<NEW_LINE>// Synchronize to make sure the transaction cannot be ended until after the<NEW_LINE>// statement completes.<NEW_LINE>synchronized ...
exit(tc, "executeQuery", rsImpl);
1,382,656
public static void passiveADPAgentDemo() {<NEW_LINE><MASK><NEW_LINE>System.out.println("DEMO: Passive-ADP-Agent");<NEW_LINE>System.out.println("=======================");<NEW_LINE>System.out.println("Figure 21.3");<NEW_LINE>System.out.println("-----------");<NEW_LINE>CellWorld<Double> cw = CellWorldFactory.createCellWo...
System.out.println("=======================");
416,307
private void updateTitleView() {<NEW_LINE>if (Algorithms.isEmpty(selectedItems)) {<NEW_LINE>checkBox.setState(UNCHECKED);<NEW_LINE>} else {<NEW_LINE>checkBox.setState(selectedItems.containsAll(allItems) ? CHECKED : MISC);<NEW_LINE>}<NEW_LINE>int checkBoxColor = checkBox.getState() == UNCHECKED ? secondaryColorRes : act...
), allItems.size());
497,601
protected final void bindValues(SQLiteStatement stmt, TraceRepo entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>stmt.bindLong(1, entity.getId());<NEW_LINE>stmt.bindString(2, entity.getName());<NEW_LINE>String description = entity.getDescription();<NEW_LINE>if (description != null) {<NEW_LINE>stmt.bindString(3, descri...
Date startTime = entity.getStartTime();
1,176,076
public void recalculateSize(Point p) {<NEW_LINE>int xDelta = (p.x - gesturePoint.x);<NEW_LINE>int yDelta = (p.y - gesturePoint.y);<NEW_LINE>switch(resizeMode) {<NEW_LINE>case ScaleMode.NW_RESIZE_MODE:<NEW_LINE>currentDragRect.setBounds(rectangle.x + xDelta, rectangle.y + yDelta, rectangle.width - xDelta, rectangle.heig...
xDelta, rectangle.height - yDelta);
502,318
public void run(RegressionEnvironment env) {<NEW_LINE>// test for ESPER-185<NEW_LINE>String[] fields = "mycount".split(",");<NEW_LINE><MASK><NEW_LINE>env.compileDeployAddListenerMileZero(epl, "s0");<NEW_LINE>sendEvent(env, SYMBOL_DELL, 10);<NEW_LINE>env.assertPropsIRPair("s0", fields, new Object[] { 1L }, new Object[] ...
String epl = "@name('s0') select irstream count(price) as mycount " + "from SupportMarketDataBean#length(5) " + "group by price";