idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,845,774
private Comparable ceil(RexCall call, List<Comparable> values) {<NEW_LINE>if (values.get(0) == N) {<NEW_LINE>return N;<NEW_LINE>}<NEW_LINE>final Long v = (Long) values.get(0);<NEW_LINE>final TimeUnitRange unit = (<MASK><NEW_LINE>switch(unit) {<NEW_LINE>case YEAR:<NEW_LINE>case MONTH:<NEW_LINE>switch(call.getKind()) {<N...
TimeUnitRange) values.get(1);
1,021,023
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>mProgressBar = view.findViewById(R.id.top_progress_bar);<NEW_LINE>mPhoneTextView = view.<MASK><NEW_LINE>mCountDownTextView = view.findViewById(R.id.ticker);<NEW_LINE>mResendCodeTextView = view.findViewById(R.id.resend_code);<N...
findViewById(R.id.edit_phone_number);
390,689
public String tagLibraryInfoToString(TagLibraryInfo info, String indent) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// NOI18N<NEW_LINE>sb.append(indent).append("tlibversion : ").append(getFieldByReflection("tlibversion", info)).append('\n');<NEW_LINE>// NOI18N<NEW_LINE>sb.append(indent).append("jspvers...
i], indent + " "));
1,838,073
public Attribute unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Attribute attribute = new Attribute();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NE...
int originalDepth = context.getCurrentDepth();
188,033
public static MediaConstraints parseMediaConstraints(ConstraintsMap constraints) {<NEW_LINE>MediaConstraints mediaConstraints = new MediaConstraints();<NEW_LINE>// TODO: change getUserMedia constraints format to support new syntax<NEW_LINE>// constraint format seems changed, and there is no mandatory any more.<NEW_LINE...
optional = constraints.getArray("optional");
1,683,772
public static VipInventory valueOf(VipVO vo) {<NEW_LINE>VipInventory inv = new VipInventory();<NEW_LINE>inv.setName(vo.getName());<NEW_LINE>inv.setDescription(vo.getDescription());<NEW_LINE>inv.setCreateDate(vo.getCreateDate());<NEW_LINE>inv.setGateway(vo.getGateway());<NEW_LINE>inv.setIp(vo.getIp());<NEW_LINE>inv.setI...
setNetmask(vo.getNetmask());
1,480,308
public void ldapSetUp(int instance) throws Exception {<NEW_LINE>// Choose a port for LDAP - we ran into an instance where 8020 and 8021 were chosen<NEW_LINE>// This caused problems starting one of the other servers that the tests use<NEW_LINE>// ds = new InMemoryLDAPServer(LDAP_PARTITION_1_DN);<NEW_LINE>ds = new InMemo...
SAMLConstants.SAML_USER_5_NAME, SAMLConstants.SAML_USER_5_PWD);
1,556,976
public static void main(String[] args) {<NEW_LINE>Label[] items1 = new Label[5];<NEW_LINE>Label[] items2 = new Label[5];<NEW_LINE>for (int i = 0; i < items1.length; i++) {<NEW_LINE>items1[i] = new Label();<NEW_LINE>items2[i] = new Label();<NEW_LINE>}<NEW_LINE>Labels labels1 = new Labels(items1);<NEW_LINE>Labels labels2...
] possibleScores = c1.getPossibleScores();
461,251
public List<StoreDefinition> readStoreList(Reader input, boolean verifySchema) {<NEW_LINE>try {<NEW_LINE>SAXBuilder builder = new SAXBuilder();<NEW_LINE>Document doc = builder.build(input);<NEW_LINE>if (verifySchema) {<NEW_LINE><MASK><NEW_LINE>validator.validate(new JDOMSource(doc));<NEW_LINE>}<NEW_LINE>Element root = ...
Validator validator = schema.newValidator();
167,938
public synchronized static void init(Context c) {<NEW_LINE>if (c == null) {<NEW_LINE>LOG.d("AppProfile init null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AppSP.get().init(c);<NEW_LINE>if (!Android6.canWrite(c)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (profile.equals(getCurrent(c))) {<NEW_LINE>LOG.d("AppProfile skip", ...
= new File(SYNC_FOLDER_DEVICE_PROFILE, APP_PROGRESS_JSON);
185,704
private void drawVerticalScrollbar(Canvas canvas) {<NEW_LINE>int viewWidth = mRecyclerViewWidth;<NEW_LINE>int left = viewWidth - mVerticalThumbWidth;<NEW_LINE>int top = Math.max(0, mVerticalThumbCenterY - mVerticalThumbHeight / 2);<NEW_LINE>mVerticalThumbDrawable.setBounds(0, 0, mVerticalThumbWidth, mVerticalThumbHeigh...
translate(-mVerticalThumbWidth, -top);
1,770,011
protected void doExecute() throws Exception {<NEW_LINE>Exception exception = null;<NEW_LINE>S realValue = map.get(k);<NEW_LINE>if (!ObjectUtils.equals(s, realValue)) {<NEW_LINE>logger.info("[doRun][current value not as expected, return]{},{},{}", k, s, realValue);<NEW_LINE>future().setSuccess();<NEW_LINE>return;<NEW_LI...
k + "," + s, e);
1,253,362
private void continueGroup(VideoGroup group) {<NEW_LINE>boolean updateInProgress = mScrollAction != null && !mScrollAction.isDisposed();<NEW_LINE>if (updateInProgress) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.d(TAG, "continueGroup: start continue group: " + group.getTitle());<NEW_LINE>getController().showProgressBar(...
MediaGroup mediaGroup = group.getMediaGroup();
962,601
private HttpResponse nodes(String tenantName, String applicationName, String instanceName, String environment, String region) {<NEW_LINE>ApplicationId id = ApplicationId.from(tenantName, applicationName, instanceName);<NEW_LINE>ZoneId zone = requireZone(environment, region);<NEW_LINE>List<Node> nodes = controller.servi...
) > node.rebootGeneration());
277,082
final void executeRespondActivityTaskFailed(RespondActivityTaskFailedRequest respondActivityTaskFailedRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(respondActivityTaskFailedRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequ...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
685,148
final StopMultiplexResult executeStopMultiplex(StopMultiplexRequest stopMultiplexRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopMultiplexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,055,671
public void run() {<NEW_LINE>var viewer = qupath.getViewer();<NEW_LINE>var imageData = viewer.getImageData();<NEW_LINE>if (imageData == null) {<NEW_LINE>Dialogs.showNoImageError(title);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>var builder = new SvgTools.SvgBuilder(viewer);<NEW_LINE>var server = imageData.getServer();<NEW_L...
ImageIncludeType) params.getChoiceParameterValue("includeImage");
476,923
public Map<String, Object> deleteTenantById(User loginUser, int id) throws Exception {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>if (isNotAdmin(loginUser, result)) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>Tenant tenant = tenantMapper.queryById(id);<NEW_LINE>if (tenant == null) {<NEW_LINE>putM...
.updateProcessInstanceByTenantId(id, -1);
1,442,490
private void connectStemToBeams(Inter stem, List<Inter> allBeams, Inter head) {<NEW_LINE>// Which head corner?<NEW_LINE>if (globalDir == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double headX = GeoUtil.center2D(head.<MASK><NEW_LINE>double stemX = GeoUtil.center2D(stem.getBounds()).getX();<NEW_LINE>final HorizontalSide ...
getBounds()).getX();
38,817
public void enterS_interface_nve(S_interface_nveContext ctx) {<NEW_LINE>int line = ctx.getStart().getLine();<NEW_LINE>int first = toInteger(<MASK><NEW_LINE>int last = ctx.nverange.last != null ? toInteger(ctx.nverange.last) : first;<NEW_LINE>// flip first and last if range is backwards<NEW_LINE>if (last < first) {<NEW_...
ctx.nverange.iname.first);
1,828,332
public StatementMetric[] flushMetrics() {<NEW_LINE>rwLock.acquireWriteLock();<NEW_LINE>try {<NEW_LINE>boolean isEmpty = false;<NEW_LINE>if (currentLastElement == -1) {<NEW_LINE>isEmpty = true;<NEW_LINE>}<NEW_LINE>// first fill in the blanks if there are no reports and we report inactive statements<NEW_LINE>if (isReport...
= new StatementMetric[metrics.length];
242,963
public void activate() {<NEW_LINE>logger.debug("LgTv servlet activate called");<NEW_LINE>try {<NEW_LINE>bundleContext = FrameworkUtil.getBundle(this.getClass()).getBundleContext();<NEW_LINE>if (bundleContext != null) {<NEW_LINE>ServiceReference<?> serviceReference1 = bundleContext.getServiceReference(LgtvBindingProvide...
logger.warn("NamespaceException occurred during servlet startup", e);
245,227
public static ScenarioResult fromKarateJson(File workingDir, Feature feature, Map<String, Object> map) {<NEW_LINE>int sectionIndex = (Integer) map.get("sectionIndex");<NEW_LINE>int exampleIndex = (Integer) map.get("exampleIndex");<NEW_LINE>FeatureSection section = feature.getSection(sectionIndex);<NEW_LINE>Scenario sce...
getScenario().getDescription());
69,519
public void sendResponse(final Exchange exchange, final Response response) {<NEW_LINE>// delegate to top<NEW_LINE>ObserveRelation relation = exchange.getRelation();<NEW_LINE>boolean retransmit = relation <MASK><NEW_LINE>try {<NEW_LINE>if (retransmit) {<NEW_LINE>// observe- or cancel-observe-requests may have<NEW_LINE>/...
!= null && relation.isEstablished();
1,835,074
public static void main(String[] args) throws IOException {<NEW_LINE>// Generated classes are already DSL-JSON compatible and can be serialized using reader/writer directly<NEW_LINE>DslJson<Object> dslJson = new DslJson<>();<NEW_LINE>JsonWriter writer1 = dslJson.newWriter();<NEW_LINE>JsonWriter writer2 = dslJson.newWri...
).setY(2)));
787,889
void fillMenu(JPopupMenu popup, JMenu menu) {<NEW_LINE>assert null != popup || null != menu;<NEW_LINE>FilterRepository filterRep = FilterRepository.getInstance();<NEW_LINE>NotificationFilter activeFilter = notificationManager.getActiveFilter();<NEW_LINE>JRadioButtonMenuItem item = new JRadioButtonMenuItem(new CancelFil...
.EMPTY.equals(activeFilter));
236,946
public final void regexExpression(int lc_stmt) throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST regexExpression_AST = null;<NEW_LINE>equalityExpression(lc_stmt);<NEW_LINE>astFactory.addASTChild(currentAST, returnAST);<NEW_LINE>{<NEW...
.create(LT(1));
1,447,096
public synchronized void removeVariableIfFound(String deploymentId, String variableName) {<NEW_LINE>VariableDeployment <MASK><NEW_LINE>if (entry == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Variable variable = entry.getVariable(variableName);<NEW_LINE>if (variable == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (...
entry = deploymentsWithVariables.get(deploymentId);
1,475,919
public NaiveBayesTextModelData deserializeModel(Params meta, Iterable<String> data, Iterable<Object> distinctLabels) {<NEW_LINE>NaiveBayesTextModelData modelData = new NaiveBayesTextModelData();<NEW_LINE>String json = data.iterator().next();<NEW_LINE>NaiveBayesTextProbInfo dataInfo = JsonConverter.fromJson(json, NaiveB...
modelData.phi[i] += tmp;
421,550
public void testQueueNameQUEUE_B(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContext = jmsQCFBindings.createContext();<NEW_LINE>Queue queue = jmsContext.createQueue("QUEUE/queue");<NEW_LINE>JMSProducer jmsProducer = jmsContext.createProducer();<NEW_LINE>String tex...
() + " ]; expected [ " + text + " ]";
437,684
public void onSuccess(@NonNull Integer status) {<NEW_LINE>Descriptor nd = installer.getNewDescriptor();<NEW_LINE>SpannableStringBuilder message;<NEW_LINE>switch(status) {<NEW_LINE>case AppInstaller.STATUS_NEW:<NEW_LINE>if (installer.getJar() != null) {<NEW_LINE>convert(installer);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>m...
-> openFileLauncher.launch(null));
119,410
public FormatWalkResult format(String type, long address, PrintStream out, Context context, List<IFieldFormatter> fieldFormatters, String[] extraArgs) {<NEW_LINE>if (type.equalsIgnoreCase("j9object") || type.equalsIgnoreCase("j9indexableobject")) {<NEW_LINE>J9ClassPointer clazz = null;<NEW_LINE>J9ObjectPointer object =...
romClass().className());
1,334,117
private void processCodeItem(DexHeader header, ClassDefItem item, EncodedMethod method, MethodIDItem methodID) throws DuplicateNameException, IOException, Exception {<NEW_LINE>if (method.getCodeOffset() > 0) {<NEW_LINE>Address codeAddress = baseAddress.add(DexUtil.adjustOffset(method.getCodeOffset(), header));<NEW_LINE...
DataType codeItemDataType = codeItem.toDataType();
1,381,490
public void invalidateBasedOn(WatchmanPathEvent event) {<NEW_LINE>LOG.verbose("Parser watched event %s %s", event.getKind(), event.getPath());<NEW_LINE>filesChangedCounter.inc();<NEW_LINE>RelPath path = event.getPath();<NEW_LINE>AbsPath fullPath = event.getCellPath().resolve(event.getPath());<NEW_LINE>// We only care a...
state, cell, buildFiles, path);
91,513
public static <K extends Kernel2D> SteerableKernel<K> gaussian(Class<K> kernelType, int orderX, int orderY, double sigma, int radius) {<NEW_LINE>if (orderX < 0 || orderX > 4)<NEW_LINE>throw new IllegalArgumentException("derivX must be from 0 to 4 inclusive.");<NEW_LINE>if (orderY < 0 || orderY > 4)<NEW_LINE>throw new I...
kernel1DType = FactoryKernel.get1DType(kernelType);
1,348,130
public static Map<IProfile, List<IProfiles>> findProfilesUsage(IArchimateModel model) {<NEW_LINE>Map<IProfile, List<IProfiles>> map = new HashMap<>();<NEW_LINE>// Iterate through all model contents<NEW_LINE>for (Iterator<EObject> iter = model.eAllContents(); iter.hasNext(); ) {<NEW_LINE>EObject eObject = iter.next();<N...
.add((IProfiles) eObject);
449,581
boolean renew() {<NEW_LINE>EurekaHttpResponse<InstanceInfo> httpResponse;<NEW_LINE>try {<NEW_LINE>httpResponse = eurekaTransport.registrationClient.sendHeartBeat(instanceInfo.getAppName(), instanceInfo.getId(), instanceInfo, null);<NEW_LINE>logger.debug(PREFIX + "{} - Heartbeat status: {}", appPathIdentifier, httpRespo...
appPathIdentifier, instanceInfo.getAppName());
145,015
private NodeInterface importCSSRule(final CSSRule rule) throws FrameworkException {<NEW_LINE>// Check if rule already exists and skip if yes<NEW_LINE>final String cssText = rule.getCssText();<NEW_LINE>final String selectorsString = StringUtils.trim(StringUtils.substringBefore(cssText, "{"));<NEW_LINE>final App app = St...
final NodeInterface parentRuleNode = importCSSRule(parentRule);
791,551
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// Global.initActivity(this);<NEW_LINE>setContentView(R.layout.app_bar_main);<NEW_LINE>Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>getSupportActionBar().setDisplay...
findViewById(R.id.refresher);
41,545
final CheckDomainTransferabilityResult executeCheckDomainTransferability(CheckDomainTransferabilityRequest checkDomainTransferabilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(checkDomainTransferabilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
(super.beforeMarshalling(checkDomainTransferabilityRequest));
171,293
MultiPoint multiPointSimplifyAsFeature_() {<NEW_LINE>MultiVertexGeometryImpl multiVertexImpl = (MultiVertexGeometryImpl) m_geometry._getImpl();<NEW_LINE>// sort lexicographically:by y,then by x,then by other attributes in the<NEW_LINE>// order.<NEW_LINE><MASK><NEW_LINE>assert (pointCount > 0);<NEW_LINE>AttributeStreamO...
int pointCount = multiVertexImpl.getPointCount();
756,917
public static void main2(String[] args) throws IOException {<NEW_LINE>ReadableByteChannel ch = null;<NEW_LINE>try {<NEW_LINE>Cmd cmd = MainUtils.parseArguments(args, ALL_FLAGS);<NEW_LINE>if (cmd.args.length < 1) {<NEW_LINE>MainUtils.printHelp(ALL_FLAGS, asList("file name", "guid"));<NEW_LINE>return;<NEW_LINE>} else if ...
.args[0])));
317,724
private static void fillOutputPayload(Response swaggerResponse, org.restlet.ext.platform.internal.model.Response response, Operation swaggerOperation, Contract contract, Map<String, Object> parameters) {<NEW_LINE>Property property = swaggerResponse.getSchema();<NEW_LINE>if (property == null) {<NEW_LINE>return;<NEW_LINE...
getRepresentation(payload.getType());
1,083,949
private void writeMergeFile(String clientName, Map<File, DatabaseRemoteFile> allMergedDatabaseFiles) throws StorageException, IOException {<NEW_LINE>// Increment the version by 1, to signal cleanup has occurred<NEW_LINE>long lastClientVersion = getNewestDatabaseFileVersion(clientName, localDatabase.getKnownDatabases())...
databaseDAO.save(lastNDatabaseVersions, newLocalMergeDatabaseFile);
1,068,576
public void onBlocked(BlockException e, Context context, ResourceWrapper resourceWrapper, DefaultNode param, int count, Object... args) {<NEW_LINE>S span = buildSpan();<NEW_LINE>ApplicationContext applicationContext = PluginContextAware.getStaticApplicationContext();<NEW_LINE>PluginAdapter pluginAdapter = applicationCo...
toString() : StringUtils.EMPTY);
22,446
public int compareTo(Version other) {<NEW_LINE>int minSize = Math.min(myIntComponents.size(), other.myIntComponents.size());<NEW_LINE>for (int i = 0; i < minSize; i++) {<NEW_LINE>int thisN = myIntComponents.get(i);<NEW_LINE>int otherN = <MASK><NEW_LINE>if (thisN != otherN) {<NEW_LINE>return thisN - otherN;<NEW_LINE>}<N...
other.myIntComponents.get(i);
1,528,982
public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>PathConstraint constraint = skeleton.pathConstraints.get(pathConstraintIndex);<NEW_LINE>if (!constraint.active)<NEW_LINE>return;<NEW_LINE>float[] frames = this.fram...
x - constraint.mixX) * alpha;
1,767,700
public ANode visitAssignment(AssignmentContext ctx) {<NEW_LINE>AExpression lhs = (AExpression) visit(ctx.noncondexpression());<NEW_LINE>AExpression rhs = (AExpression) visit(ctx.expression());<NEW_LINE>final Operation operation;<NEW_LINE>if (ctx.ASSIGN() != null) {<NEW_LINE>operation = null;<NEW_LINE>} else if (ctx.AMU...
lhs, rhs, false, operation);
1,015,016
protected void storeValueForSetter(SootMethod method, Function function, Type memberType, Value memberPtr, Value env, Value value, long flags) {<NEW_LINE>soot.Type type = method.getParameterType(0);<NEW_LINE>if (needsMarshaler(type)) {<NEW_LINE>MarshalerMethod marshalerMethod = config.getMarshalerLookup().findMarshaler...
memberType, env, value, flags);
899,017
private void refillToken(int burstSize, long averageRate, long currentTimeMillis) {<NEW_LINE>long refillTime = lastRefillTime.get();<NEW_LINE>long timeDelta = currentTimeMillis - refillTime;<NEW_LINE>long newTokens = timeDelta * averageRate / rateToMsConversion;<NEW_LINE>if (newTokens > 0) {<NEW_LINE>long newRefillTime...
: refillTime + newTokens * rateToMsConversion / averageRate;
931,696
final DescribeContactFlowResult executeDescribeContactFlow(DescribeContactFlowRequest describeContactFlowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeContactFlowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
718,163
public Builder mergeFrom(io.kubernetes.client.proto.V1Admission.AdmissionResponse other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1Admission.AdmissionResponse.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasUid()) {<NEW_LINE>bitField0_ |= 0x00000001;<NEW_LINE>uid_ = other.uid_;<NEW_LINE>onC...
mergeFrom(other.internalGetAuditAnnotations());
520,219
// org.apache.spark.network.util.JavaUtils<NEW_LINE>public static long timeStringAs(String str, TimeUnit unit) {<NEW_LINE>String lower = str.toLowerCase(Locale.ROOT).trim();<NEW_LINE>try {<NEW_LINE>Matcher m = Pattern.compile("(-?[0-9]+)([a-z]+)?").matcher(lower);<NEW_LINE>if (!m.matches()) {<NEW_LINE>throw new NumberF...
(m.group(1));
690,946
public void send(String topic, Bundle wab, String contextPath, Exception ex) {<NEW_LINE>EventAdmin service = (EventAdmin) _serviceTracker.getService();<NEW_LINE>if (service != null) {<NEW_LINE>Dictionary<String, Object> props = new Hashtable<>();<NEW_LINE>props.put("bundle.symbolicName", wab.getSymbolicName());<NEW_LIN...
"bundle.version", wab.getVersion());
490,931
protected void onAttachedToWindow() {<NEW_LINE>super.onAttachedToWindow();<NEW_LINE>if (isInEditMode()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Need to invalidate the colors as early as possible. When subscribing to the continuous observable<NEW_LINE>// below (subscription = ...), we're using distinctToMainThread(), ...
(this), onErrorLogAndRethrow());
927,649
public static DescribeAutoProvisioningGroupInstancesResponse unmarshall(DescribeAutoProvisioningGroupInstancesResponse describeAutoProvisioningGroupInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAutoProvisioningGroupInstancesResponse.setRequestId(_ctx.stringValue("DescribeAutoProvisioningGroupInstances...
("DescribeAutoProvisioningGroupInstancesResponse.Instances[" + i + "].NetworkType"));
285,477
private PropertySource createPropertySource(AnnotationAttributes attributes, ConfigurableEnvironment environment, ResourceLoader resourceLoader, EncryptablePropertyResolver resolver, EncryptablePropertyFilter propertyFilter, List<PropertySourceLoader> loaders) throws Exception {<NEW_LINE>String name = generateName(attr...
String actualName = name + "#" + resolvedLocation;
1,384,140
private static IndexRecord indexColumnRecord(String catalog, String schema, String tableName, boolean nonUnique, String indexName, String indexTableName, String nullable, String indexType, int indexLocation, IndexStatus indexStatus, long version, String indexComment, int seqInIndex, SqlIndexColumnName column, boolean c...
(column.getLength()));
1,830,415
public SplitResult<OffsetRange> trySplit(double fractionOfRemainder) {<NEW_LINE>// Convert to BigDecimal in computation to prevent overflow, which may result in loss of<NEW_LINE>// precision.<NEW_LINE>BigDecimal cur = (lastAttemptedOffset == null) ? BigDecimal.valueOf(range.getFrom()).subtract(BigDecimal.ONE, MathConte...
range.getFrom(), split);
1,286,108
protected synchronized void initializeRedeployment() {<NEW_LINE>if (watcher != null) {<NEW_LINE>throw new IllegalStateException("Redeployment already started ? The watcher already exists");<NEW_LINE>}<NEW_LINE>// Compute the application id. We append "-redeploy" to ease the identification in the process list.<NEW_LINE>...
().toString() + "-redeploy";
1,485,687
public static QueryOrderInfoAfterSaleResponse unmarshall(QueryOrderInfoAfterSaleResponse queryOrderInfoAfterSaleResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOrderInfoAfterSaleResponse.setRequestId(_ctx.stringValue("QueryOrderInfoAfterSaleResponse.RequestId"));<NEW_LINE>queryOrderInfoAfterSaleResponse.setCode(_ct...
= new ArrayList<Logistics>();
1,818,084
private boolean checkSelfIntersections_() {<NEW_LINE>MultiPathImpl multiPathImpl = (MultiPathImpl) m_geometry._getImpl();<NEW_LINE>m_edges.clear();<NEW_LINE>// we reuse the edges while going through a<NEW_LINE>m_edges.ensureCapacity(20);<NEW_LINE>// polygon.<NEW_LINE>m_lineEdgesRecycle.clear();<NEW_LINE>// we reuse the...
AttributeStreamOfInt32 bunch = new AttributeStreamOfInt32(0);
570,303
protected Color createColor(Matcher matcher, double a) {<NEW_LINE>double h = Double.parseDouble(matcher.group(1)) / 360;<NEW_LINE>double s = Double.parseDouble(matcher.group(2)) / 100;<NEW_LINE>double l = Double.parseDouble(matcher.group(3)) / 100;<NEW_LINE>double r, g, b;<NEW_LINE>if (s == 0) {<NEW_LINE>r = l;<NEW_LIN...
luminocity2, h - 1.0 / 3.0);
1,184,472
private void createSymbols(LengthStringOrdinalSet[] lengthStringOrdinalSets, SymbolTable symbolTable) {<NEW_LINE>for (LengthStringOrdinalSet lengthStringOrdinalSet : lengthStringOrdinalSets) {<NEW_LINE>int ordinal = Conv.shortToInt(lengthStringOrdinalSet.getOrdinal());<NEW_LINE>if (ordinal >= entryPointList.size()) {<N...
addr = entryPointList.get(ordinal);
234,442
public String importPermissions(PermissionAssistant permissionAssistant) {<NEW_LINE>try {<NEW_LINE>ResourceBundle bundle = I18n.getBundle(new Locale<MASK><NEW_LINE>MetaFile metaFile = permissionAssistant.getMetaFile();<NEW_LINE>File csvFile = MetaFiles.getPath(metaFile).toFile();<NEW_LINE>try (CSVReader csvReader = new...
(permissionAssistant.getLanguage()));
575,940
final ExitStandbyResult executeExitStandby(ExitStandbyRequest exitStandbyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exitStandbyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,318,958
public Page queryList(EruptModel eruptModel, Page page, EruptQuery eruptQuery) {<NEW_LINE>Query query = new Query();<NEW_LINE>this.addQueryCondition(eruptQuery, query);<NEW_LINE>page.setTotal(mongoTemplate.count(query, eruptModel.getClazz()));<NEW_LINE>if (page.getTotal() > 0) {<NEW_LINE>query.<MASK><NEW_LINE>query.ski...
limit(page.getPageSize());
1,291,838
public void initializeDefaultPreferences() {<NEW_LINE>IPreferenceStore prefs = GroovyPlugin.getDefault().getPreferenceStore();<NEW_LINE>// Debug<NEW_LINE><MASK><NEW_LINE>prefs.setDefault(GROOVY_DEBUG_FORCE_DEBUG_OPTIONS_ON_STARTUP, true);<NEW_LINE>prefs.setDefault(GROOVY_DEBUG_FILTER_LIST, "sun,com.sun,groovy.lang,groo...
prefs.setDefault(GROOVY_DEBUG_FILTER_STACK, true);
1,729,487
protected void overrideJournalExtent(final Properties p) {<NEW_LINE>final long bytesUnderManagement = this.bytesUnderManagement.get();<NEW_LINE>if (accelerateOverflowThreshold == 0 || bytesUnderManagement >= accelerateOverflowThreshold) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final double d = (double) bytesUnderManageme...
, Long.toString(adjustedExtent));
303,620
public void run() {<NEW_LINE>try (BufferedReader reader = new BufferedReader(new InputStreamReader(consoleStdin))) {<NEW_LINE>String line;<NEW_LINE>while (!shutdownRequested.get() && (line = reader.readLine()) != null) {<NEW_LINE>// Execute the line in a new thread<NEW_LINE>pythonExecutionThread = new PythonPluginExecu...
getInterpreter().getPrimaryPrompt());
1,145,531
private static List<CTutorialStep> readSteps(final Node node) {<NEW_LINE>final List<CTutorialStep> steps = new ArrayList<CTutorialStep>();<NEW_LINE>for (int i = 0; i < node.getChildNodes().getLength(); ++i) {<NEW_LINE>final Node child = node.<MASK><NEW_LINE>final String childText = child.getNodeName();<NEW_LINE>if ("st...
getChildNodes().item(i);
399,928
public static int blend(int color, int other, float ratio) {<NEW_LINE>if (ratio > 1) {<NEW_LINE>ratio = 1;<NEW_LINE>} else if (ratio < 0) {<NEW_LINE>ratio = 0;<NEW_LINE>}<NEW_LINE>float iRatio = 1.0f - ratio;<NEW_LINE>int aA = color >> 24 & 0xFF;<NEW_LINE>int aR = color >> 16 & 0xFF;<NEW_LINE>int aG = color >> 8 & 0xFF...
bG = other >> 8 & 0xFF;
92,502
private void handleChangeInVcrNodes(Set<CloudDataNode> newVcrNodes) {<NEW_LINE>Set<CloudDataNode> removedNodes = new HashSet<>(vcrNodes.get());<NEW_LINE>removedNodes.removeAll(newVcrNodes);<NEW_LINE>vcrNodes.set(new ArrayList<>(newVcrNodes));<NEW_LINE>logger.info("Handling VCR nodes change. The removed vcr nodes: {}", ...
removeCloudReplica(partitionId.toPathString());
285,992
public void saveDataSource(DataSource ds, String path, String user) throws RepositoryException {<NEW_LINE>ByteArrayOutputStream baos = new ByteArrayOutputStream();<NEW_LINE>try {<NEW_LINE>JAXBContext jaxbContext = JAXBContext.newInstance(DataSource.class);<NEW_LINE>Marshaller jaxbMarshaller = jaxbContext.createMarshall...
n.addNode(filename, "nt:file");
1,300,662
private void internalRunner() {<NEW_LINE>final Set<String> reindexInodes = new HashSet<>();<NEW_LINE>final List<List<Contentlet>> reindexList = new ArrayList<>();<NEW_LINE>final List<Runnable> otherListenerList = new ArrayList<>();<NEW_LINE>final int batchSize = Config.getIntProperty(INDEX_COMMIT_LISTENER_BATCH_SIZE, 5...
contentToIndex = new ArrayList<>();
1,222,146
final DescribeFirewallPolicyResult executeDescribeFirewallPolicy(DescribeFirewallPolicyRequest describeFirewallPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFirewallPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
(super.beforeMarshalling(describeFirewallPolicyRequest));
159,382
private void createTypeSignature(TypeMirror type, Map<String, Integer> typeVariableIndexes, Map<String, TypeMirror> genericSignatures, StringBuilder builder) {<NEW_LINE>String typeName = typeWithoutAnnotations(type.toString());<NEW_LINE>if (type.getKind() == TypeKind.DECLARED) {<NEW_LINE>DeclaredType declaredType = (De...
(typeName).append(".class");
388,021
public static List<Element> fromObject(Document doc, String name, Object o) {<NEW_LINE>if (o instanceof Map) {<NEW_LINE>Map<String, Object> map = (Map) o;<NEW_LINE>Map<String, Object> attribs = (Map) map.get("@");<NEW_LINE>Object value = map.get("_");<NEW_LINE>if (value != null || attribs != null) {<NEW_LINE>List<Eleme...
fromObject(doc, name, value);
296,364
Iterable<Submodule> listSubmodules(String currentRemoteUrl) throws RepoException {<NEW_LINE>ImmutableList.Builder<Submodule> result = ImmutableList.builder();<NEW_LINE>for (String submoduleName : getSubmoduleNames()) {<NEW_LINE>String path = getSubmoduleField(submoduleName, "path");<NEW_LINE>if (path == null) {<NEW_LIN...
throw new RepoException("Path is required for submodule " + submoduleName);
1,272,349
private void initializeConnectionProperties() throws ResourceException {<NEW_LINE>try {<NEW_LINE>// Retrieve the default values for all Connection properties.<NEW_LINE>// Save the default values for when null is specified in the CRI.<NEW_LINE>// - get the default values from the JDBC driver<NEW_LINE>if (rrsTransactiona...
debug(this, tc, "MCF is rrsTransactional: forcing currentAutoCommit and defaultAutoCommit to true");
641,611
public void run() {<NEW_LINE>String msg_details = MessageText.getString("network.admin.maybe.vpn.msg", new String[] { intf.getName() + " - " + intf.getDisplayName() });<NEW_LINE>long res = ui_manager.showMessageBox("network.admin.maybe.vpn.title", "!" + msg_details + "!", UIManagerEvent.MT_YES | UIManagerEvent.MT_NO_DE...
lookup_map = new HashMap<>();
1,273,903
public void handle(Buffer b) {<NEW_LINE>try {<NEW_LINE>String rp = event.headers().get(QUARKUS_PASSWORD);<NEW_LINE>String bodyHash = HashUtil.sha256(b.getBytes());<NEW_LINE>String compare = HashUtil.sha256(bodyHash + password);<NEW_LINE>if (!compare.equals(rp)) {<NEW_LINE>log.error("Incorrect password");<NEW_LINE>event...
setStatusCode(500).end();
702,305
public void userCancelWithdrawal(String token, final Response.Listener<Transaction> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'token' is set<NEW_LINE>if (token == null) {<NEW_LINE>VolleyError error = new VolleyError("Missin...
] contentTypes = { "application/json", "application/x-www-form-urlencoded" };
1,132,331
public static io.opencensus.trace.NetworkEvent asNetworkEvent(io.opencensus.trace.BaseMessageEvent event) {<NEW_LINE>Utils.checkNotNull(event, "event");<NEW_LINE>if (event instanceof io.opencensus.trace.NetworkEvent) {<NEW_LINE>return (io.opencensus.trace.NetworkEvent) event;<NEW_LINE>}<NEW_LINE>io.opencensus.trace.Mes...
.trace.NetworkEvent.Type.SENT;
779,602
public void run() {<NEW_LINE>ServerSocket ss = null;<NEW_LINE>try {<NEW_LINE>String str = "127.0.0.1";<NEW_LINE>String[] ipStr = str.split("\\.");<NEW_LINE>byte[] ipBuf = new byte[4];<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>ipBuf[i] = (byte) (Integer.parseInt(ipStr[i]) & 0xFF);<NEW_LINE>}<NEW_LINE>InetAddress a...
ServerSocket(port, 10, add);
1,389,343
public void testisUserNotInRoleLDAPWar2() throws Exception {<NEW_LINE>Log.info(logClass, getCurrentTestName(<MASK><NEW_LINE>String queryString = EJB_WAR2_PATH + SIMPLE_SERVLET2 + "?testInstance=ejb03&testMethod=manager";<NEW_LINE>Log.info(logClass, getCurrentTestName(), "-------------Executing BasicAuthCreds");<NEW_LIN...
), "-----Entering " + getCurrentTestName());
436,309
public Map<String, String> insertAgentCount(@RequestParam("agentCount") int agentCount, @RequestParam("timestamp") long timestamp) {<NEW_LINE>if (timestamp < 0) {<NEW_LINE>Map<String, String> result = new HashMap<>();<NEW_LINE>result.put("result", "FAIL");<NEW_LINE>result.put("message", "negative timestamp.");<NEW_LINE...
result.put("result", "SUCCESS");
1,546,912
public static void execute(SearchContext context) {<NEW_LINE>final SuggestionSearchContext suggest = context.suggest();<NEW_LINE>if (suggest == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>CharsRefBuilder spare = new CharsRefBuilder();<NEW_LINE>final List<Suggestion<? extends Entry<? extends Option>>> su...
).equals(result.name);
991,661
private static void tryAssertionIntoTableFromExpression(RegressionEnvironment env, AtomicInteger milestone) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create expression sumi {a -> sum(intPrimitive)}", path);<NEW_LINE>env.compileDeploy("@public create expression sumd alias...
, 1000d, 10000f, 100L });
1,038,377
private Configuration retrieveConfig(NestedConfigHelper configHelper, ConfigurationAdmin configAdmin) throws InitWithoutConfig {<NEW_LINE>if (configHelper == null)<NEW_LINE>throw new InitWithoutConfig("Configuration not found");<NEW_LINE>// We need configAdmin to list the configurations of nested classloader elements w...
throw new InitWithoutConfig("Configuration for classloader not found, exception " + e);
303,937
public PropertySource<?> locate(Environment environment) {<NEW_LINE>if (!(environment instanceof ConfigurableEnvironment)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ConfigurableEnvironment env = (ConfigurableEnvironment) environment;<NEW_LINE>if (configloaded.get() && !env.getPropertySources().contains(REFRESH_ARGS_P...
asList(env.getActiveProfiles());
168,716
public static void validateTableGroupChange(TableGroupConfig curTableGroupConfig, TableGroupConfig saveTableGroupConfig) {<NEW_LINE>List<PartitionGroupRecord> partitionGroupRecords = saveTableGroupConfig.getPartitionGroupRecords();<NEW_LINE>Long tgId = partitionGroupRecords.get(0).tg_id;<NEW_LINE>Long firstPgId = parti...
findFirst().orElse(null);
679,998
public Config build() {<NEW_LINE>try {<NEW_LINE>// apply framework configs<NEW_LINE>config.putAll(createSystemConfig(options, config));<NEW_LINE>// apply user configs<NEW_LINE>config.putAll(createUserConfig(options));<NEW_LINE>config.put(ApplicationConfig.APP_NAME, options.getJobName());<NEW_LINE>config.put(Application...
JOB_NAME, options.getJobName());
680,754
public boolean validateObject(WorkerKey key, PooledObject<Worker> p) {<NEW_LINE>Worker worker = p.getObject();<NEW_LINE>Optional<Integer> exitValue = worker.getExitValue();<NEW_LINE>if (exitValue.isPresent()) {<NEW_LINE>if (reporter != null && worker.diedUnexpectedly()) {<NEW_LINE>String msg = String.format("%s %s (id ...
getWorkerFilesWithDigests().keySet());
1,002,979
protected Client createClient(String clientId, char[] clientSecret, ClientType clientType, String[] redirectURIs, Map<String, Object> properties) {<NEW_LINE>BasicDBObject client = new BasicDBObject("_id", clientId);<NEW_LINE>if (clientSecret != null) {<NEW_LINE>client.put(MongoClient.CLIENT_SECRET, String.copyValueOf(c...
= new ArrayList<String>();
1,749,002
public Description matchNewClass(NewClassTree tree, VisitorState state) {<NEW_LINE>List<String> errors = new ArrayList<>();<NEW_LINE>if (CONSTRUCTORS.matches(tree, state)) {<NEW_LINE>List<? extends ExpressionTree> args = tree.getArguments();<NEW_LINE>int numArgs = args.size();<NEW_LINE>verify(numArgs >= 3 && numArgs <=...
.get(3), errors);
968,366
private void displayLoggers() {<NEW_LINE>LogManager lm = LogManager.getLogManager();<NEW_LINE>TreeSet<String> names = new TreeSet<String>();<NEW_LINE>for (Enumeration<String> e = lm.getLoggerNames(); e.hasMoreElements(); ) {<NEW_LINE>Logger logger = lm.getLogger(e.nextElement());<NEW_LINE>StringBuilder output = new Str...
Level level = logger.getLevel();
250,720
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "symbol", "price", "sumVol" };<NEW_LINE>String stmtText = "@name('s0') select symbol, price, sum(volume) as sumVol " + "from SupportMarketDataBean#length(5) " + "group by symbol";<NEW_LINE>env.compileDeploy(stmtText).addListener("s0"...
, "TAC", -2, 12);
1,597,914
private UserSearchResults doDetailLookup(final UserIdentity userIdentity) throws PwmUnrecoverableException {<NEW_LINE>final List<FormConfiguration> detailFormConfig = this.peopleSearchConfiguration.getSearchDetailForm();<NEW_LINE>final Map<String, String> attributeHeaderMap = UserSearchResults.fromFormConfiguration(det...
"', error: " + e.getMessage());
1,131,699
final UpdateDataSourceResult executeUpdateDataSource(UpdateDataSourceRequest updateDataSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDataSourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);