idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,498,773
private void processPOST(IncomingExchange exchange) {<NEW_LINE>Request request = exchange.getRequest();<NEW_LINE>String resource = exchange.getUriPath();<NEW_LINE>Integer observe = exchange.getObserves();<NEW_LINE>List<String> observeUriQuery = exchange.getUriQuery();<NEW_LINE>if (observe != null && resource != null) {...
LOGGER.info("Requested cancel not established observation for {}", key);
1,315,486
private static Vector apply(CompLongDoubleVector v1, LongIntVector v2, Binary op) {<NEW_LINE>LongDoubleVector[<MASK><NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getStorage() instanceof Long...
] parts = v1.getPartitions();
306,373
public OutlierResult run(Relation<O> relation) {<NEW_LINE>KNNSearcher<DBIDRef> knnQuery = new QueryBuilder<>(relation, distance).kNNByDBID(minpts);<NEW_LINE>DBIDs ids = relation.getDBIDs();<NEW_LINE>// FIXME: implicit preprocessor.<NEW_LINE>WritableDataStore<KNNList> nMinPts = DataStoreUtil.makeStorage(ids, DataStoreFa...
double d = minptsNeighbours.getKNNDistance();
1,355,019
private void handleOpenAPIDefinition(OpenAPIDefinition openAPIDefinition) {<NEW_LINE>if (openAPIDefinition != null) {<NEW_LINE>// info<NEW_LINE>AnnotationsUtils.getInfo(openAPIDefinition.info()).ifPresent(info -> openAPI.setInfo(info));<NEW_LINE>// OpenApiDefinition security requirements<NEW_LINE>SecurityParser.getSecu...
-> openAPI.setSecurity(s));
1,122,845
private void create(IBaseResource theResource, PackageInstallOutcomeJson theOutcome) {<NEW_LINE>IFhirResourceDao dao = myDaoRegistry.getResourceDao(theResource.getClass());<NEW_LINE>SearchParameterMap map = createSearchParameterMapFor(theResource);<NEW_LINE>IBundleProvider searchResult = searchResource(dao, map);<NEW_L...
, map.toNormalizedQueryString(myFhirContext));
901,925
public Bitmap loadMessageImage(Context context, Conversation conversation) {<NEW_LINE>try {<NEW_LINE>if (conversation == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Bitmap attachedImage = ImageUtils.getBitMapFromLocalPath(conversation.getTopicLocalImageUri());<NEW_LINE>if (attachedImage != null) {<NEW_LINE>return...
ImageUtils.saveImageToInternalStorage(file, bitmap);
897,635
public void run() {<NEW_LINE>double CAMERA_PADDING = DEFAULT_CAMERA_PADDING;<NEW_LINE>try {<NEW_LINE>if (mParams.has("camera")) {<NEW_LINE>JSONObject <MASK><NEW_LINE>if (camera.has("padding")) {<NEW_LINE>CAMERA_PADDING = camera.getDouble("padding");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.prin...
camera = mParams.getJSONObject("camera");
500,151
protected Set<LabelMetric> createMetrics(SequenceModel<Label> model) {<NEW_LINE>Set<LabelMetric> metrics = new HashSet<>();<NEW_LINE>//<NEW_LINE>// Populate labelwise values<NEW_LINE>for (Label label : model.getOutputIDInfo().getDomain()) {<NEW_LINE>MetricTarget<Label> tgt = new MetricTarget<>(label);<NEW_LINE>metrics....
.F1.forTarget(micro));
1,070,333
private void processInvocations(JsonWriter jsonWriter, @NonNull Map<URI, String> baseToId) throws IOException {<NEW_LINE>List<Notification> configNotifications = new ArrayList<>();<NEW_LINE>Set<String> missingClasses = getMissingClasses();<NEW_LINE>if (missingClasses == null) {<NEW_LINE>missingClasses = Collections.emp...
"Classes needed for analysis were missing: %s", missingClasses.toString());
1,387,261
public OResult next() {<NEW_LINE>long begin = profilingEnabled ? System.nanoTime() : 0;<NEW_LINE>try {<NEW_LINE>if (!served) {<NEW_LINE>OResultInternal result = new OResultInternal();<NEW_LINE>ODatabase db = ctx.getDatabase();<NEW_LINE>result.setProperty("name", db.getName());<NEW_LINE>result.setProperty("user", db.get...
ODatabase.ATTRIBUTES.CHARSET)));
100,827
public Mono<AmqpLink> createProducer(String linkName, String entityPath, Duration timeout, AmqpRetryPolicy retry, String transferEntityPath) {<NEW_LINE>Objects.requireNonNull(entityPath, "'entityPath' cannot be null.");<NEW_LINE>Objects.requireNonNull(timeout, "'timeout' cannot be null.");<NEW_LINE>Objects.requireNonNu...
linkProperties.put(LINK_TRANSFER_DESTINATION_PROPERTY, transferEntityPath);
1,522,706
private boolean checkSamples(UncertainObject o1, UncertainObject o2) {<NEW_LINE>final SquaredEuclideanDistance distance = SquaredEuclideanDistance.STATIC;<NEW_LINE>// Optimization for discrete objects:<NEW_LINE>if (o1 instanceof DiscreteUncertainObject && o2 instanceof DiscreteUncertainObject) {<NEW_LINE>DiscreteUncert...
s1 = d1.getSample(i);
585,277
private void loadNode260() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.DoubleComplexNumberType_Encoding_DefaultXml, new QualifiedName(0, "Default XML"), new LocalizedText("en", "Default XML"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0)<MASK><...
, UByte.valueOf(0));
464,262
final GenerateClientCertificateResult executeGenerateClientCertificate(GenerateClientCertificateRequest generateClientCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(generateClientCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,000,171
protected void _computeToConsumeProduct(Company company, BillOfMaterial billOfMaterial, int bomLevel, CostSheetLine parentCostSheetLine, int origin, UnitCostCalculation unitCostCalculation) throws AxelorException {<NEW_LINE>if (billOfMaterial.getBillOfMaterialSet() != null) {<NEW_LINE>for (BillOfMaterial billOfMaterial...
bomLevel, costSheetLine, origin, unitCostCalculation);
497,706
public static ListGatewayLocalConfigsResponse unmarshall(ListGatewayLocalConfigsResponse listGatewayLocalConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listGatewayLocalConfigsResponse.setRequestId(_ctx.stringValue("ListGatewayLocalConfigsResponse.RequestId"));<NEW_LINE>listGatewayLocalConfigsResponse.setSuccess(...
("ListGatewayLocalConfigsResponse.Data[" + i + "].TaskId"));
889,887
private void exportKeyRingCollection(PublicKeyService publicKeyService, BuildTreeDefinedKeys keyrings, Set<String> publicKeys) throws IOException {<NEW_LINE>List<PGPPublicKeyRing> existingRings = loadExistingKeyRing(keyrings);<NEW_LINE>PGPPublicKeyRingListBuilder builder = new PGPPublicKeyRingListBuilder();<NEW_LINE>fo...
size(), keyringFile, asciiArmoredFile);
933,864
public void createFixedLengthFile(FileChunksMeta fileChunksMeta) throws BrokerException {<NEW_LINE>// ensure path exist and disk space<NEW_LINE>String filePath = this.path + File.separator + fileChunksMeta.getGroupId() + File.separator + fileChunksMeta.getTopic();<NEW_LINE>File path = new File(filePath);<NEW_LINE>path....
localFile, fileChunksMeta.getFileSize());
1,397,182
public Event disconnectEvent(Event event, User user, Date startDate, Date endDate) throws DotDataException, DotSecurityException {<NEW_LINE>Event newEvent = null;<NEW_LINE>if (event != null && event.isRecurrent()) {<NEW_LINE>Contentlet newCont = contentletAPI.copyContentlet(event, user, true);<NEW_LINE>newEvent = event...
oldCont, user, true, eventCategories);
1,305,765
public void mainFunction(String[] args) throws Exception {<NEW_LINE>String[] leftOverArgs = processLocalArgs(args);<NEW_LINE>Properties startupProps = DatabusHttpClientImpl.processCommandLineArgs(leftOverArgs);<NEW_LINE>DatabusHttpClientImpl.Config clientConfigBuilder = new DatabusHttpClientImpl.Config();<NEW_LINE>clie...
new ContainerOperationProcessor(null, client));
200,569
public void createPoolTasks(Context context, XmlWorkflowItem wi, RoleMembers assignees, Step step, WorkflowActionConfig action) throws SQLException, AuthorizeException {<NEW_LINE>// create a tasklist entry for each eperson<NEW_LINE>for (EPerson anEpa : assignees.getEPersons()) {<NEW_LINE>PoolTask task = poolTaskService...
poolTaskService.update(context, task);
1,088,469
private static void registerTimeTypeValue() {<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryColumnType.MYSQL_TYPE_YEAR, new MySQLYearBinlogProtocolValue());<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryColumnType.MYSQL_TYPE_DATE, new MySQLDateBinlogProtocolValue());<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryCol...
.MYSQL_TYPE_TIMESTAMP, new MySQLTimestampBinlogProtocolValue());
580,348
private Object buildUserModel(Map<Integer, ReadCellData<?>> cellDataMap, ReadSheetHolder readSheetHolder, AnalysisContext context) {<NEW_LINE>ExcelReadHeadProperty excelReadHeadProperty = readSheetHolder.excelReadHeadProperty();<NEW_LINE>Object resultModel;<NEW_LINE>try {<NEW_LINE>resultModel = excelReadHeadProperty.ge...
).getRowIndex(), index);
940,276
private boolean handleIndexedAssignment(JCTree.JCAssign tree) {<NEW_LINE>if (!(tree.lhs instanceof JCTree.JCArrayAccess)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>JCTree.JCArrayAccess lhs = (JCTree.JCArrayAccess) tree.lhs;<NEW_LINE>if (_tp.getTypes().isArray(lhs.indexed.type)) {<NEW_LINE>return false;<NEW_LINE>}<NE...
, ctx), "setRhsTempVar" + tempVarIndex);
207,311
private String createUrl(String serviceUrl, String terminalId, String cmd, String cwd) {<NEW_LINE>SimpleUriBuilder urlBuilder = new SimpleUriBuilder(serviceUrl + "/terminal/" + terminalId);<NEW_LINE>ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();<NEW_LINE>ColorRegistry colorRegistry = them...
.getString(XtermPlugin.PREFS_DEFAULT_SHELL_CMD));
1,131,487
private RelOptCost hashJoinCumulativeCostLowerBound(Join join, RelMetadataQuery mq, VolcanoPlanner planner) {<NEW_LINE>final double leftRowCount = mq.getRowCount(join.getLeft());<NEW_LINE>final double rightRowCount = mq.getRowCount(join.getRight());<NEW_LINE>final RelDataType probeSideRowType;<NEW_LINE>final RelDataTyp...
= buildWeight * buildRowCount + probeWeight * probeRowCount;
1,119,901
boolean calculatePositionAndValue(float x, float y) {<NEW_LINE>SliderStyle style = getStyle();<NEW_LINE>Drawable knob = style.knob;<NEW_LINE>Drawable bg = getBackgroundDrawable();<NEW_LINE>float value;<NEW_LINE>float oldPosition = position;<NEW_LINE>float min = getMinValue();<NEW_LINE>float max = getMaxValue();<NEW_LIN...
.getBottomHeight() - knobHeight * 0.5f;
184,863
public void addAndRemoveRows(UIDL partialRowAdditions) {<NEW_LINE>if (partialRowAdditions == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (partialRowAdditions.hasAttribute("hide")) {<NEW_LINE>scrollBody.unlinkAndReindexRows(partialRowAdditions.getIntAttribute("firstprowix"), partialRowAdditions.getIntAttribute("nump...
, partialRowAdditions.getIntAttribute("numprows"));
1,570,328
public static GetRepositoryCommitResponse unmarshall(GetRepositoryCommitResponse getRepositoryCommitResponse, UnmarshallerContext _ctx) {<NEW_LINE>getRepositoryCommitResponse.setRequestId(_ctx.stringValue("GetRepositoryCommitResponse.RequestId"));<NEW_LINE>getRepositoryCommitResponse.setErrorCode(_ctx.stringValue("GetR...
(_ctx.stringValue("GetRepositoryCommitResponse.Result.Message"));
1,525,921
// culotta 2/02/04: to increment counts of properties values.<NEW_LINE>public static PropertyList sumDuplicateKeyValues(PropertyList pl, boolean ignoreZeros) {<NEW_LINE>if (!(pl instanceof NumericProperty))<NEW_LINE>throw new IllegalArgumentException("PropertyList must be Numeric to sum values");<NEW_LINE>HashMap key2v...
.keySet().iterator();
62,077
protected void buildJson(JsonObject obj, Map<String, Object> map) {<NEW_LINE>LOG.debug(obj.toString());<NEW_LINE>Iterator<String> props = obj.keySet().iterator();<NEW_LINE>while (props.hasNext()) {<NEW_LINE>String prop = <MASK><NEW_LINE>JsonElement e = obj.get(prop);<NEW_LINE>LOG.debug(prop + ":" + e.toString());<NEW_L...
(String) props.next();
954,901
public long execute(WithdrawRewardParam param, Repository repo) throws ContractExeException {<NEW_LINE>byte[] ownerAddress = param.getOwnerAddress();<NEW_LINE>VoteRewardUtil.withdrawReward(ownerAddress, repo);<NEW_LINE>AccountCapsule accountCapsule = repo.getAccount(ownerAddress);<NEW_LINE>long oldBalance = accountCaps...
accountCapsule.createDbKey(), accountCapsule);
1,041,977
private static JSONArray storeProperties(Map<String, V8Object.Property> properties, V8Object.Array array) {<NEW_LINE>JSONArray arrObj = new JSONArray();<NEW_LINE>if (properties != null) {<NEW_LINE>for (Map.Entry<String, V8Object.Property> entry : properties.entrySet()) {<NEW_LINE><MASK><NEW_LINE>V8Object.Property prop ...
String propName = entry.getKey();
792,580
public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) {<NEW_LINE>ChecksumSpecs checksumSpecs = HttpChecksumUtils.checksumSpecWithRequestAlgorithm<MASK><NEW_LINE>if (!shouldAddTrailerBasedChecksumInRequest(context, executionAttributes, checksumSpecs)) {<NEW_L...
(executionAttributes).orElse(null);
1,583,517
protected int _getPixelColor(int x, int y) {<NEW_LINE>NativeScreen screen = NativePlatformFactory.getNativePlatform().getScreen();<NEW_LINE>final int byteDepth = screen.getDepth() >>> 3;<NEW_LINE>final int bwidth = screen.getWidth();<NEW_LINE>final int bheight = screen.getHeight();<NEW_LINE>if (x < 0 || x > bwidth || y...
(green << 8) | blue);
1,736,975
public void onSupportActionModeStarted(@NonNull final ActionMode mode) {<NEW_LINE>if (mSelectionModeActive && selectedTextView != null) {<NEW_LINE>mSelectionModeActive = false;<NEW_LINE>mActionMode = mode;<NEW_LINE>final Menu menu = mode.getMenu();<NEW_LINE>mode.getMenuInflater().inflate(R.menu.details_context, menu);<...
.setOnMenuItemClickListener(new TextMenuItemClickListener());
1,015,669
public static CclRuleInfo create(CclRuleRecord cclRuleRecord) {<NEW_LINE>Host host = new Host(cclRuleRecord.clientIp);<NEW_LINE>boolean needMatchDb = !StringUtils.equals(cclRuleRecord.dbName, "*");<NEW_LINE>boolean needMatchTable = !StringUtils.equals(cclRuleRecord.tableName, "*");<NEW_LINE>boolean needMatchHost = !Str...
> keywords = Lists.newArrayList();
1,190,716
private Entity replaceEditOsmTags(Amenity amenity, Entity entity) {<NEW_LINE>PoiCategory type = amenity.getType();<NEW_LINE>String subType = amenity.getSubType();<NEW_LINE>if (type != null && subType != null) {<NEW_LINE>PoiType poiType = type.getPoiTypeByKeyName(subType);<NEW_LINE>if (poiType != null && poiType.getEdit...
POI_TYPE_TAG, pt.getTranslation());
1,786,829
protected void onDraw(Canvas canvas) {<NEW_LINE>updateLayout();<NEW_LINE>super.onDraw(canvas);<NEW_LINE>final float fraction = getFraction();<NEW_LINE>final int offset = (int) (topOffset * (1f - fraction));<NEW_LINE>final int translationY = (Build.VERSION.SDK_INT >= 21 ? AndroidUtilities.statusBarHeight : 0) - topOffse...
layout.getTranslationY() + translationY);
56,668
public void enterRoutePlanningModeGivenGpx(GPXFile gpxFile, ApplicationMode appMode, LatLon from, PointDescription fromName, boolean useIntermediatePointsByDefault, boolean showMenu, int menuState) {<NEW_LINE>settings.USE_INTERMEDIATE_POINTS_NAVIGATION.set(useIntermediatePointsByDefault);<NEW_LINE>TargetPointsHelper ta...
showToastMessage(R.string.route_is_too_long_v2);
70,655
public void runMerge(HoodieTable<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> table, HoodieMergeHandle<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> mergeHandle) throws IOException {<NEW_LINE>final GenericDatumWriter<GenericRecord> gWriter;<NEW_LINE>final GenericDatumReader<GenericRecor...
, decoderCache, (GenericRecord) record);
447,406
public void runSearch(@NonNull String query) {<NEW_LINE>searching = true;<NEW_LINE>searchQuery = query;<NEW_LINE>SearchSettings searchSettings = setupSearchSettings(false);<NEW_LINE>searchUICore.setOnResultsComplete(() -> {<NEW_LINE>ItemList.Builder itemList = new ItemList.Builder();<NEW_LINE>SearchUICore.SearchResultC...
OsmAndFormatter.calculateRoundedDist(minimalSearchRadius, app);
1,386,190
public static void main(String[] args) {<NEW_LINE>Loader.loadNativeLibraries();<NEW_LINE>// Create the model.<NEW_LINE>// [START model]<NEW_LINE>CpModel model = new CpModel();<NEW_LINE>// [END model]<NEW_LINE>// Create the variables.<NEW_LINE>// [START variables]<NEW_LINE>IntVar x = model.newIntVar(0, 10, "x");<NEW_LIN...
status = solver.solve(model);
1,010,016
private void addMandatoryClaimChecks() {<NEW_LINE>long expiresAtLeeway = getLeewayFor(RegisteredClaims.EXPIRES_AT);<NEW_LINE>long notBeforeLeeway = getLeewayFor(RegisteredClaims.NOT_BEFORE);<NEW_LINE>long issuedAtLeeway = getLeewayFor(RegisteredClaims.ISSUED_AT);<NEW_LINE>expectedChecks.add(constructExpectedCheck(Regis...
claim, issuedAtLeeway, false)));
1,697,817
private void enableSystemVersioning(DdlWrite writer, String baseTable) {<NEW_LINE>DdlBuffer apply = writer.applyPostAlter();<NEW_LINE>apply.append("alter table ").append(quote(baseTable)).newLine().append(" add ").append(systemPeriodStart).append(" datetime2 GENERATED ALWAYS AS ROW START NOT NULL DEFAULT SYSUTCDATET...
append(" set (system_versioning = off)").endOfStatement();
98,210
private void loadNode461() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_CertificateTypes, new QualifiedName(0, "CertificateTypes"), new LocalizedText("en", "CertificateTypes"), LocalizedText.NULL_VALUE, UInteger.value...
this.nodeManager.addNode(node);
769,930
private void processApplicationReferences(EARApplicationInfo appInfo, Application app) throws StateChangeException {<NEW_LINE>Map<JNDIEnvironmentRefType, List<? extends JNDIEnvironmentRef>> allRefs = new EnumMap<JNDIEnvironmentRefType, List<? extends JNDIEnvironmentRef>>(JNDIEnvironmentRefType.class);<NEW_LINE>boolean ...
ResourceRefConfigList resourceRefConfigList = resourceRefConfigFactory.createResourceRefConfigList();
1,033,563
public void process() throws AxelorException {<NEW_LINE>if (invoice.getAddress() == null && (invoice.getOperationTypeSelect() == InvoiceRepository.OPERATION_TYPE_CLIENT_SALE || invoice.getOperationTypeSelect() == InvoiceRepository.OPERATION_TYPE_CLIENT_REFUND)) {<NEW_LINE>throw new AxelorException(TraceBackRepository.C...
invoice.setStatusSelect(InvoiceRepository.STATUS_VALIDATED);
1,368,429
public static ListMPCoSPhaseResponse unmarshall(ListMPCoSPhaseResponse listMPCoSPhaseResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMPCoSPhaseResponse.setRequestId(_ctx.stringValue("ListMPCoSPhaseResponse.RequestId"));<NEW_LINE>listMPCoSPhaseResponse.setCode(_ctx.integerValue("ListMPCoSPhaseResponse.Code"));<NEW_LI...
("ListMPCoSPhaseResponse.Data.PageData[" + i + "].PhaseId"));
487,873
public static SocketAddress sockaddrFromBytes(Ruby runtime, byte[] val) throws IOException {<NEW_LINE>AddressFamily afamily = AddressFamily.valueOf(uint16(val[0], val[1]));<NEW_LINE>if (afamily == null || afamily == AddressFamily.__UNKNOWN_CONSTANT__) {<NEW_LINE>throw runtime.newArgumentError("can't resolve socket addr...
2, val.length - 2);
395,629
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String mobileNetworkName, String sliceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot ...
error(new IllegalArgumentException("Parameter sliceName is required and cannot be null."));
1,612,194
protected static void createDmnEdge(String elementId, List<GraphicInfo> graphicInfoList, XMLStreamWriter xtw) throws Exception {<NEW_LINE>xtw.writeStartElement(DMNDI_PREFIX, ELEMENT_DI_EDGE, DMNDI_NAMESPACE);<NEW_LINE>xtw.writeAttribute(ATTRIBUTE_ID, "DMNEdge_" + elementId);<NEW_LINE>xtw.writeAttribute(ATTRIBUTE_DI_DMN...
(graphicInfo.getY()));
734,994
public void mouseClicked(MouseEvent me) {<NEW_LINE>if (wasPopup) {<NEW_LINE>wasPopup = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (clickToShow) {<NEW_LINE>if (imgpop != null) {<NEW_LINE>if (!imgpop.isShowing()) {<NEW_LINE>showPopup(true);<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>showPopup(false);<NEW_LINE>}<NEW_...
this)).actionPerformed(null);
1,599,127
public List<ReportReloadEntity> loadReport(long time) {<NEW_LINE>List<ReportReloadEntity> results = new ArrayList<ReportReloadEntity>();<NEW_LINE>Map<String, List<TransactionReport>> mergedReports = new HashMap<String, List<TransactionReport>>();<NEW_LINE>for (int i = 0; i < getAnalyzerCount(); i++) {<NEW_LINE>Map<Stri...
TransactionReport> reports = buildMergedReports(mergedReports);
1,200,294
public Map<String, String> lockContent(String contentletInode) throws DotContentletStateException, DotDataException, DotSecurityException, LanguageException {<NEW_LINE>// User info<NEW_LINE>HttpServletRequest req = WebContextFactory<MASK><NEW_LINE>User currentUser = null;<NEW_LINE>try {<NEW_LINE>currentUser = com.lifer...
.get().getHttpServletRequest();
1,014,918
public Response processResult(AuthenticationProcessor.Result result, boolean isAction) {<NEW_LINE>AuthenticationExecutionModel execution = result.getExecution();<NEW_LINE>FlowStatus status = result.getStatus();<NEW_LINE>switch(status) {<NEW_LINE>case SUCCESS:<NEW_LINE>logger.debugv("authenticator SUCCESS: {0}", executi...
"authenticator FAILED: {0}", execution.getAuthenticator());
1,040,619
public static void main(String[] args) {<NEW_LINE>Tracer tracer = TracerBuilder.create("Client").collectorUri(URI.create("http://localhost:9411/api/v2/spans")).build();<NEW_LINE>ClientTracingInterceptor tracingInterceptor = ClientTracingInterceptor.builder(tracer).withVerbosity().withTracedAttributes(ClientRequestAttri...
setName("Aleks").build();
1,120,537
public Block readBlock() throws IOException {<NEW_LINE>if (!rowGroupOpen) {<NEW_LINE>openRowGroup();<NEW_LINE>}<NEW_LINE>if (readOffset > 0) {<NEW_LINE>if (presentStream != null) {<NEW_LINE>// skip ahead the present bit reader, but count the set bits<NEW_LINE>// and use this as the skip size for the data reader<NEW_LIN...
presentStream.getUnsetBits(nextBatchSize, isNull);
288,425
public SequenceHandler apply(String s) {<NEW_LINE>String name = s.toLowerCase();<NEW_LINE>SequenceConfig sequenceConfig1 = sequencesConfig.stream().filter(i -> i.getName().equalsIgnoreCase(name)).findFirst().orElseGet(() -> {<NEW_LINE>SequenceConfig sequenceConfig = new SequenceConfig();<NEW_LINE>sequenceConfig.setTime...
o.init(sequenceConfig1, workerId);
1,832,367
/*<NEW_LINE>static public void selectFolder(final String prompt,<NEW_LINE>final String callbackMethod,<NEW_LINE>final File defaultSelection,<NEW_LINE>final Object callbackObject,<NEW_LINE>final Frame parentFrame) {<NEW_LINE>selectFolder(prompt, callbackMethod, defaultSelection, callbackObject, parentFrame, null);<NEW_L...
selectMethod.invoke(callbackObject, selectedFile);
444,921
public void init(ApplicationConfiguration applicationConfiguration) throws ModuleNotFoundException, ProviderNotFoundException, ServiceNotProvidedException, CycleDependencyException, ModuleConfigException, ModuleStartException {<NEW_LINE>String[] moduleNames = applicationConfiguration.moduleList();<NEW_LINE>ServiceLoade...
module.name(), module);
38,291
private Matrix pinv2(Matrix input) {<NEW_LINE>List<double[][]> uvh = svd_cross_product(input);<NEW_LINE>double[][] u = uvh.get(0);<NEW_LINE>double[][] <MASK><NEW_LINE>double[] s_tmp = get_singularValues(input);<NEW_LINE>Arrays.sort(s_tmp);<NEW_LINE>double[] s = new double[s_tmp.length];<NEW_LINE>for (int i = 0; i < s_t...
vh = uvh.get(1);
118,404
private void mapToProperties(String prefixName, Map<String, Object> properties, Object data) {<NEW_LINE>if (data instanceof List) {<NEW_LINE>List list = (List) data;<NEW_LINE>for (int i = 0; i < list.size(); i++) {<NEW_LINE>int lastIndex = prefixName.lastIndexOf('.');<NEW_LINE>String preName = prefixName.substring(0, l...
lastName = prefixName.substring(lastIndex);
124,329
private void list(CommandInterpreter ci, String name) {<NEW_LINE>try {<NEW_LINE>announce(ci, "listBindings", name);<NEW_LINE>NamingEnumeration<Binding> bindings = name == null ? getContext().listBindings(WSName.EMPTY_NAME) : getContext().listBindings(name);<NEW_LINE>Set<String> <MASK><NEW_LINE>Map<String, Binding> nonc...
subcontexts = new TreeSet<>();
1,153,694
public static QuantileDigest fromByteBuffer(ByteBuffer byteBuffer) {<NEW_LINE>double maxError = byteBuffer.getDouble();<NEW_LINE>double alpha = byteBuffer.getDouble();<NEW_LINE>QuantileDigest quantileDigest = new QuantileDigest(maxError, alpha);<NEW_LINE>quantileDigest._landmarkInSeconds = byteBuffer.getLong();<NEW_LIN...
._left = stack.pop();
907,822
public static INDArray reshape4dTo2d(INDArray in, CNN2DFormat format, LayerWorkspaceMgr workspaceMgr, ArrayType type) {<NEW_LINE>if (in.rank() != 4)<NEW_LINE>throw new IllegalArgumentException("Invalid input: expect NDArray with rank 4, got rank " + in.rank() + " with shape " + Arrays.toString(in.shape()));<NEW_LINE>va...
dup(type, out, 'c');
225,199
public CreatePullRequestApprovalRuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreatePullRequestApprovalRuleResult createPullRequestApprovalRuleResult = new CreatePullRequestApprovalRuleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int tar...
String currentParentElement = context.getCurrentParentElement();
1,469,073
final CreateDataSourceFromRDSResult executeCreateDataSourceFromRDS(CreateDataSourceFromRDSRequest createDataSourceFromRDSRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDataSourceFromRDSRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
823,762
private void drawText(Graphics2D g2d) {<NEW_LINE>String strSim = null, strOffset = null;<NEW_LINE>if (_similarity != DEFAULT_SIMILARITY) {<NEW_LINE>if (_exact) {<NEW_LINE>strSim = "99";<NEW_LINE>} else {<NEW_LINE>strSim = String.format("%d", (int) (_similarity * 100));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (_offset != null...
= getWidth(), y = 0;
1,813,537
public void onPostCreate(Bundle savedInstanceState) {<NEW_LINE>if (mSliderMenu != null) {<NEW_LINE>mSliderMenu.onPostCreate(savedInstanceState);<NEW_LINE>}<NEW_LINE>if (!mAddonEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>requestDrawerLayout();<NEW_LINE>final View contentView = get().findViewById(R.id.contentView);<N...
decorView.addView(mDrawerLayout, 0);
725,037
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.systemName, convLabelName("System Name"));<NEW_LINE...
ValidatorFactory.getInstance(Validator.REQUIRED);
177,873
public void run() {<NEW_LINE>SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(main_activity);<NEW_LINE>// if going into immersive mode, the we should set GONE the ones that are set GONE in<NEW_LINE>// showGUI(false)<NEW_LINE>// final int visibility_gone = immersive_mode ? View.GONE : ...
findViewById(R.id.exposure);
1,205,910
public void checkStoreSchema(ResourceFieldSchema schema) throws IOException {<NEW_LINE>assertFieldTypeEquals(DataType.TUPLE, schema.getType(), "tuple");<NEW_LINE>ResourceSchema vectorSchema = schema.getSchema();<NEW_LINE>assertNotNull(vectorSchema, "ResourceSchema for tuple is null");<NEW_LINE>ResourceFieldSchema[<MASK...
] vectorFieldSchemas = vectorSchema.getFields();
6,987
private void processLine(ResourceFile file, String configLine, int lineNumber) throws IOException {<NEW_LINE>String trimmedLine = configLine.trim();<NEW_LINE>if (trimmedLine.length() == 0) {<NEW_LINE>// ignore empty lines.<NEW_LINE>return;<NEW_LINE>} else if (trimmedLine.startsWith(NAME_IDENTIFIER)) {<NEW_LINE>processN...
1].trim() : "";
1,799,849
private void bitIntensityToBitValue(QrCode qr, List<Point2D_I32> locationBits) {<NEW_LINE>float gridSize = qr.getNumberOfModules() - 1.0f;<NEW_LINE>float threshold00 = (float) qr.threshCorner;<NEW_LINE>float threshold01 = (float) qr.threshRight;<NEW_LINE>float threshold10 = (float) qr.threshDown;<NEW_LINE>float thresho...
float by = b.y / gridSize;
1,654,766
final RejectResourceShareInvitationResult executeRejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectResourceShareInvitationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
(super.beforeMarshalling(rejectResourceShareInvitationRequest));
899,046
public void jimplify(DexBody body) {<NEW_LINE>if (!(instruction instanceof Instruction23x)) {<NEW_LINE>throw new IllegalArgumentException("Expected Instruction23x but got: " + instruction.getClass());<NEW_LINE>}<NEW_LINE>Instruction23x aPutInstr = (Instruction23x) instruction;<NEW_LINE>int source = aPutInstr.getRegiste...
getAssignStmt(body, sourceValue, arrayRef);
1,187,790
protected JSDynamicObject doSetIterator(VirtualFrame frame, JSDynamicObject iterator) {<NEW_LINE>Object <MASK><NEW_LINE>if (detachedProf.profile(set == Undefined.instance)) {<NEW_LINE>return createIterResultObjectNode.execute(frame, Undefined.instance, true);<NEW_LINE>}<NEW_LINE>JSHashMap.Cursor mapCursor = (JSHashMap....
set = getIteratedObjectNode.getValue(iterator);
1,145,249
private static void cleanGeneratedClassfiles(Project p) throws IOException {<NEW_LINE>// #145243<NEW_LINE>// we execute normal maven build, but need to clean any<NEW_LINE>// CoS classes present.<NEW_LINE>List<ClassPath> executePaths = new ArrayList<ClassPath>();<NEW_LINE>for (SourceGroup g : ProjectUtils.getSources(p)....
)))).result();
1,544,027
public static HotSpotTruffleCompilerImpl create(final TruffleCompilerRuntime runtime) {<NEW_LINE>OptionValues options = runtime.getGraalOptions(OptionValues.class);<NEW_LINE>HotSpotGraalRuntimeProvider hotspotGraalRuntime = (HotSpotGraalRuntimeProvider) getCompiler(options).getGraalRuntime();<NEW_LINE>SnippetReflection...
CompilerConfiguration compilerConfiguration = lowTierCompilerConfigurationFactory.createCompilerConfiguration();
1,616,464
public static JavaCompletionItem createArrayItem(CompilationInfo info, ArrayType type, int substitutionOffset, ReferencesCount referencesCount, Elements elements, WhiteListQuery.WhiteList whiteList) {<NEW_LINE>int dim = 0;<NEW_LINE>TypeMirror tm = type;<NEW_LINE>while (tm.getKind() == TypeKind.ARRAY) {<NEW_LINE>tm = ((...
"array element kind=" + tm.getKind());
1,157,430
final RestoreTableFromBackupResult executeRestoreTableFromBackup(RestoreTableFromBackupRequest restoreTableFromBackupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreTableFromBackupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "RestoreTableFromBackup");
1,498,773
private void processPOST(IncomingExchange exchange) {<NEW_LINE>Request request = exchange.getRequest();<NEW_LINE>String resource = exchange.getUriPath();<NEW_LINE>Integer observe = exchange.getObserves();<NEW_LINE>List<String> observeUriQuery = exchange.getUriQuery();<NEW_LINE>if (observe != null && resource != null) {...
), request.getMID());
1,236,873
public void createWorkflowDef(WorkflowDef workflowDef) {<NEW_LINE>try {<NEW_LINE>String workflowDefinition = toJson(workflowDef);<NEW_LINE>if (!session.execute(insertWorkflowDefStatement.bind(workflowDef.getName(), workflowDef.getVersion(), workflowDefinition)).wasApplied()) {<NEW_LINE>throw new ApplicationException(Co...
"n/a", workflowDef.getName());
276,350
static PTuple codecsInfo(PythonModule self, String encoding, PythonContext context, PythonObjectFactory factory) {<NEW_LINE>PythonModule codecsModule = (PythonModule) AbstractImportNode.importModule("codecs");<NEW_LINE>CodecsTruffleModuleBuiltins codecsTruffleBuiltins = (CodecsTruffleModuleBuiltins) self.getBuiltins();...
factory.createPythonObject(codecsTruffleBuiltins.applyEncodingClass);
1,759,830
public static ConnPoolBean createBean(JdbcConnectionPool pool) {<NEW_LINE>ConnPoolBean bean = new ConnPoolBean();<NEW_LINE>bean.setName(pool.getName());<NEW_LINE>bean.setDescription(pool.getDescription());<NEW_LINE>bean.<MASK><NEW_LINE>bean.setResType(pool.getResType());<NEW_LINE>bean.setSteadyPoolSize(pool.getSteadyPo...
setDsClass(pool.getDatasourceClassname());
395,525
private Map<Integer, T> pullSnapshot(Node node) throws TException, InterruptedException {<NEW_LINE>Map<Integer, T> result;<NEW_LINE>if (ClusterDescriptor.getInstance().getConfig().isUseAsyncServer()) {<NEW_LINE>AsyncDataClient client = (AsyncDataClient) newMember.getAsyncClient(node);<NEW_LINE>if (client == null) {<NEW...
T snapshot = snapshotFactory.create();
1,026,786
private void drawTextIntoBoundingBox(String text, Rect bb, TextPaint textPaint) {<NEW_LINE>final float arbitraryFixedSize = 20.f;<NEW_LINE>// Set an arbitrary text size to learn how high the text will be.<NEW_LINE>textPaint.setTextSize(arbitraryFixedSize);<NEW_LINE>textPaint.setTextScaleX(1.f);<NEW_LINE>// Now determin...
float) r.width());
1,468,410
public Request<UntagLogGroupRequest> marshall(UntagLogGroupRequest untagLogGroupRequest) {<NEW_LINE>if (untagLogGroupRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UntagLogGroupRequest)");<NEW_LINE>}<NEW_LINE>Request<UntagLogGroupRequest> request = new DefaultRequest<Un...
request.addHeader("X-Amz-Target", target);
683,283
public void tick() {<NEW_LINE>this.xo = this.x;<NEW_LINE>this.yo = this.y;<NEW_LINE>this.zo = this.z;<NEW_LINE>if (this.age++ >= this.lifetime) {<NEW_LINE>this.remove();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float progress = (float) Math.pow(((float) age) / lifetime, drag);<NEW_LINE>float angle = (progress * 2 * 360 + t...
, targetZ) + twirl.z);
1,648,785
public Object instantiateItem(ViewGroup container, int position) {<NEW_LINE>View view = LayoutInflater.from(container.getContext()).inflate(R.layout.file_viewpager_item, container, false);<NEW_LINE>ImageViewTouch fileImageView = (ImageViewTouch) view.findViewById(R.id.fileImageView);<NEW_LINE>final ProgressBar progress...
findViewById(R.id.fileProgressBar);
656,376
private static synchronized void expandValueSet(String valueSetUri) {<NEW_LINE>if (!codeListCache.containsKey(valueSetUri)) {<NEW_LINE>HttpHeaders headers = new HttpHeaders();<NEW_LINE>headers.setContentType(MediaType.APPLICATION_JSON);<NEW_LINE>HttpEntity<String> request = new HttpEntity<>(headers);<NEW_LINE>Map<Strin...
GET, request, String.class);
1,280,536
public final FafDeleteContext fafDelete() throws RecognitionException {<NEW_LINE>FafDeleteContext _localctx = new FafDeleteContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 108, RULE_fafDelete);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1146);<NEW_LINE>ma...
_errHandler.recover(this, re);
28,372
private void checkSpread(Node spreadNode) {<NEW_LINE><MASK><NEW_LINE>ensureTyped(target);<NEW_LINE>JSType targetType = getJSType(target);<NEW_LINE>switch(spreadNode.getParent().getToken()) {<NEW_LINE>case OBJECTLIT:<NEW_LINE>// Case: `var x = {A: a, B: b, ...obj}`.<NEW_LINE>// Nothing to check about object spread.<NEW_...
Node target = spreadNode.getOnlyChild();
1,726,529
final CancelImageCreationResult executeCancelImageCreation(CancelImageCreationRequest cancelImageCreationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelImageCreationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
175,309
public Request<ModifyInstancePlacementRequest> marshall(ModifyInstancePlacementRequest modifyInstancePlacementRequest) {<NEW_LINE>if (modifyInstancePlacementRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyInstancePlacementRequest...
request.addParameter("Version", "2015-10-01");
770,290
// GEN-LAST:event_configComboActionPerformed<NEW_LINE>private void newButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_newButtonActionPerformed<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>FileObject tempFO = FileUtil.getConfigFile(DECLARATIVE_HINT_TEMPLATE_LOCATION);<NEW_LINE>FileObjec...
DataFolder) DataObject.find(folderFO);
1,086,374
public static long parseBytes(String text) throws IllegalArgumentException {<NEW_LINE>AssertUtils.checkNotNull(text, "text");<NEW_LINE>final String trimmed = text.trim();<NEW_LINE>AssertUtils.checkArgument(!trimmed.isEmpty(), "argument is an empty- or whitespace-only string");<NEW_LINE>final int len = trimmed.length();...
trimmed.substring(0, pos);
1,226,440
public static int LoadEXRWithLayer(@NativeType("float **") PointerBuffer out_rgba, @NativeType("int *") IntBuffer width, @NativeType("int *") IntBuffer height, @NativeType("char const *") CharSequence filename, @NativeType("char const *") CharSequence layer_name, @NativeType("char const **") PointerBuffer err) {<NEW_LI...
, layer_nameEncoded, memAddress(err));
1,437,712
protected void writeForLoopWithClosureList(ForStatement loop) {<NEW_LINE>controller.getAcg().onLineNumber(loop, "visitForLoop");<NEW_LINE>writeStatementLabel(loop);<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>controller.getCompileStack().pushLoop(loop.getVariableScope(), loop.getStatementLabels(...
(expressions.get(i));