idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
576,962
public void onPlayerDeathEvent(final PlayerDeathEvent event) {<NEW_LINE>final Entity entity = event.getEntity();<NEW_LINE>if (entity.hasMetadata("NPC")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final User user = ess.getUser(event.getEntity());<NEW_LINE>if (ess.getSettings().infoAfterDeath()) {<NEW_LINE>final <MASK><NEW_L...
Location loc = user.getLocation();
114,464
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>append_result result = new append_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER.error("TTra...
INTERNAL_ERROR, e.getMessage());
1,637,793
protected static Pair<Type, Integer> fromThrift(TTypeDesc typeDesc, int nodeIdx) throws InternalException {<NEW_LINE>TTypeNode node = typeDesc.getTypes().get(nodeIdx);<NEW_LINE>Type type = null;<NEW_LINE>switch(node.getType()) {<NEW_LINE>case SCALAR:<NEW_LINE>{<NEW_LINE>Preconditions.checkState(node.isSetScalarType());...
createCharType(scalarType.getLen());
1,821,418
public void encode(Buffer valueBuffer) {<NEW_LINE>StrategyAnalyzer<Short> versionStrategyAnalyzer = versionAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Integer> schemaTypeStrategyAnalyzer = schemaTypeAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Integer> fastTraceCountsStrategyAnalyzer = fastTraceCountsAnaly...
getBestStrategy().getCode());
880,289
private void saveSubFolder(Business business, String folderId, String newFolderId, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>List<Attachment2> attachments = business.attachment2().listWithFolder2(folderId, FileStatus.VALID.getNa...
= usedSize / (1024 * 1024);
693,851
public StockQtyAndUOMQty subtract(@NonNull final StockQtyAndUOMQty minuend, @NonNull final StockQtyAndUOMQty subtrahend) {<NEW_LINE>final ProductId productId = extractCommonProductId(minuend, subtrahend);<NEW_LINE>final Quantity stockQty1 = minuend.getStockQty();<NEW_LINE>final Quantity stockQty2 = subtrahend.getStockQ...
()), stockQty1, stockQty2);
1,038,949
public void write(IntBuffer value, String name, IntBuffer defVal) throws IOException {<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (value.equals(defVal)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element el = appendElement(name);<NEW_LINE>el.setAttribute("size", String.valueOf(value.limit()));<NE...
append(value.get());
974,876
public void showProgress(final boolean show) {<NEW_LINE>// On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow<NEW_LINE>// for very easy animations. If available, use these APIs to fade-in<NEW_LINE>// the progress spinner.<NEW_LINE>if (VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {<NEW_LINE>int...
android.R.integer.config_shortAnimTime);
1,213,339
protected boolean writeExtensionChildElements(BaseElement element, boolean didWriteExtensionStartElement, XMLStreamWriter xtw) throws Exception {<NEW_LINE>ServiceTask serviceTask = (ServiceTask) element;<NEW_LINE>if (!serviceTask.getCustomProperties().isEmpty()) {<NEW_LINE>for (CustomProperty customProperty : serviceTa...
writeStartElement(ACTIVITI_EXTENSIONS_PREFIX, ATTRIBUTE_FIELD_EXPRESSION, ACTIVITI_EXTENSIONS_NAMESPACE);
1,732,943
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {<NEW_LINE>// here requires to generate a sequence of finally blocks invocations depending corresponding<NEW_LINE>// to each of the traversed try statements, so that execution will terminate properly.<NEW_LINE>// lookup the...
problemReporter().invalidContinue(this);
1,761,455
public final void updateTreeTableColumn(TreeTableColumn<S, T> col) {<NEW_LINE>// remove style class of existing tree table column, if it is non-null<NEW_LINE>TreeTableColumn<S, T> oldCol = getTableColumn();<NEW_LINE>if (oldCol != null) {<NEW_LINE>oldCol.getStyleClass().removeListener(weakColumnStyleClassListener);<NEW_...
addAll(col.getStyleClass());
847,240
public Object handleException(RequestDetails theRequestDetails, BaseServerResponseException theException) throws ServletException, IOException {<NEW_LINE>IRestfulResponse response = theRequestDetails.getResponse();<NEW_LINE>FhirContext ctx = theRequestDetails<MASK><NEW_LINE>IBaseOperationOutcome oo = theException.getOp...
.getServer().getFhirContext();
665,262
private void cftfsub(int n, float[] a, int offa, int[] ip, int nw, float[] w) {<NEW_LINE>if (n > 8) {<NEW_LINE>if (n > 32) {<NEW_LINE>cftf1st(n, a, offa, w, nw - (n >> 2));<NEW_LINE>if (n > 512) {<NEW_LINE>cftrec4(n, a, offa, nw, w);<NEW_LINE>} else if (n > 128) {<NEW_LINE>cftleaf(n, 1, a, offa, nw, w);<NEW_LINE>} else...
a, offa, w, 0);
356,818
public Response<Void> deleteByIdWithResponse(String id, String ifMatch, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID...
Utils.getValueFromIdByName(id, "gateways");
1,622,813
public static IRubyObject from_memory(ThreadContext context, IRubyObject cls, IRubyObject[] args) {<NEW_LINE>// args[0]: string, args[1]: url, args[2]: encoding, args[3]: options<NEW_LINE>Ruby runtime = context.getRuntime();<NEW_LINE>// Not nil allowed!<NEW_LINE>if (args[0].isNil()) {<NEW_LINE>throw runtime.newArgument...
"@errors", runtime.newArray());
997,427
final GetItemResult executeGetItem(GetItemRequest getItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getItemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
732,487
final CreatePolicyVersionResult executeCreatePolicyVersion(CreatePolicyVersionRequest createPolicyVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPolicyVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,309,122
private void readSipListeners(SipAppDesc application) throws UnableToAdaptException {<NEW_LINE>Set<String> sipListenerClassesName = _fragmentAnnotations.selectAnnotatedClasses(SipListener.class);<NEW_LINE>if (sipListenerClassesName.isEmpty()) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {...
= new LinkedList<String>();
1,571,203
private void selectItem(int pos) {<NEW_LINE>if (pos < 0 || pos >= mMainMenu.getEntries().length) {<NEW_LINE>pos = 0;<NEW_LINE>}<NEW_LINE>String titlePrefix = getString(R.string.main_activity_title_prefix);<NEW_LINE>getSupportActionBar().setTitle(titlePrefix + mMainMenu.getEntries()[pos]);<NEW_LINE>String nextFragmentTa...
= getSupportFragmentManager().beginTransaction();
968,137
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {<NEW_LINE>if (!openAsDialog()) {<NEW_LINE>OsmandApplication app = getMyApplication();<NEW_LINE>boolean nightMode = !app<MASK><NEW_LINE>int colorResId = ColorUtilities.getActiveButtonsAndLinksTextColorId(nightMode);<NEW_LINE>MenuItem itemReload = menu.ad...
.getSettings().isLightContent();
770,731
public static void analyzeHeap(List<String> classNames, List<File> dumps) throws IOException {<NEW_LINE>for (File dump : dumps) {<NEW_LINE>String dumpName = dump.getName();<NEW_LINE>Heap heap = HeapFactory.createHeap(dump);<NEW_LINE>System.out.println(dumpName + "\tTotal.JavaHeap\tsize:\t" + heap.getSummary().getTotalL...
println(prefix + "\tinstances:\t" + instances);
1,356,490
public Statement parseStatement() throws ParseException {<NEW_LINE>// look for any labels preceding statement<NEW_LINE>Mark m = tq.mark();<NEW_LINE>Token<JsTokenType<MASK><NEW_LINE>if (JsTokenType.WORD == t.type) {<NEW_LINE>String label = parseIdentifier(false);<NEW_LINE>FilePosition labelPos = t.pos;<NEW_LINE>if (tq.c...
> t = tq.peek();
1,648,302
public LowLevelHttpResponse execute() throws IOException {<NEW_LINE>if (tokenRequestStatusCode != null) {<NEW_LINE>MockLowLevelHttpResponse response = new MockLowLevelHttpResponse().setStatusCode(tokenRequestStatusCode).setContent("Token Fetch Error");<NEW_LINE>return response;<NEW_LINE>}<NEW_LINE>String metadataReques...
String refreshText = refreshContents.toPrettyString();
1,754,712
public void watch(GameEvent event, Game game) {<NEW_LINE>if (event.getType() == GameEvent.EventType.UPKEEP_STEP_POST) {<NEW_LINE>// clear the watcher after upkeep<NEW_LINE>blockedOrBeenBlockedCreatures.put(event.getPlayerId(), new HashSet<>());<NEW_LINE>} else if (event.getType() == GameEvent.EventType.BLOCKER_DECLARED...
event.getTargetId(), game);
1,803,975
public ApiResponse<Void> publicSharesSendUploadNotificationWithHttpInfo(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 public...
localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
456,554
public boolean storeEntry(AuditLogEntry entry) {<NEW_LINE>LOGGER.debug("Storing entry {}", entry);<NEW_LINE>// Note checks for action, time and action are redundant since<NEW_LINE>// they are already checked in AuditLogEntry<NEW_LINE>if (entry == null || entry.getAction() == null || entry.getUser() == null || entry.get...
makeEmptyStringForNull(entry.getBefore());
1,343,053
private void deleteIsomorphism() {<NEW_LINE>int[] compacted = new int[nextFreeCell - _removedCells];<NEW_LINE>int[] nodes = new int[<MASK><NEW_LINE>int[] gains = new int[_nodesToRemove.size() + 1];<NEW_LINE>int idx = 1;<NEW_LINE>if (_nodesToRemove.isEmpty()) {<NEW_LINE>// If no equality detected, simply resize the arra...
_nodesToRemove.size() + 1];
1,127,122
int calcColumn(int matcherStart) {<NEW_LINE>try {<NEW_LINE>while (bcs.position() < matcherStart) {<NEW_LINE><MASK><NEW_LINE>switch(curChar) {<NEW_LINE>case BufferedCharSequence.UnicodeLineTerminator.LF:<NEW_LINE>case BufferedCharSequence.UnicodeLineTerminator.PS:<NEW_LINE>case BufferedCharSequence.UnicodeLineTerminator...
char curChar = bcs.nextChar();
1,285,990
public ResultMap scoreWithDetails(long user, @Nonnull Collection<Long> items) {<NEW_LINE>Long2DoubleMap history = dao.userRatingVector(user);<NEW_LINE>logger.debug("Predicting for {} items for user {} with {} events", items.size(), user, history.size());<NEW_LINE>LongSortedSet itemSet = LongUtils.packedSet(items);<NEW_...
neighborhoodScorer.score(item, nbrs);
327,773
public void run(final JobExecutionContext jobContext) throws JobExecutionException {<NEW_LINE>final Permissionable permissionable;<NEW_LINE>final Trigger trigger = jobContext.getTrigger();<NEW_LINE>final Map<String, Serializable> map = getExecutionData(trigger, CascadePermissionsJob.class);<NEW_LINE>final String permis...
String) map.get("userId");
1,816,141
public void run() {<NEW_LINE>fGraphicalViewer = getWorkbenchPart().getAdapter(GraphicalViewer.class);<NEW_LINE>fOldParent = fGraphicalViewer.getControl().getParent();<NEW_LINE>fOldPaletteViewer = fGraphicalViewer.getEditDomain().getPaletteViewer();<NEW_LINE>// Set Property so clients know this is in full screen mode<NE...
getPartService().addPartListener(partListener);
271,483
public Object resolveConstructorArgument(String paramName, Class<?> paramType, NativeWebRequest request) throws Exception {<NEW_LINE>MultipartRequest multipartRequest = <MASK><NEW_LINE>if (multipartRequest != null) {<NEW_LINE>List<MultipartFile> files = multipartRequest.getFiles(paramName);<NEW_LINE>if (!files.isEmpty(...
request.getNativeRequest(MultipartRequest.class);
356,702
public void supplierPartnerDomain(ActionRequest request, ActionResponse response) {<NEW_LINE>PurchaseOrderSupplierLine purchaseOrderSupplierLine = request.getContext().asType(PurchaseOrderSupplierLine.class);<NEW_LINE>PurchaseOrderLine purchaseOrderLine = purchaseOrderSupplierLine.getPurchaseOrderLine();<NEW_LINE>if (p...
Company company = purchaseOrder.getCompany();
464,331
public APNSVoipSandboxChannelRequest unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>APNSVoipSandboxChannelRequest aPNSVoipSandboxChannelReques...
().unmarshall(context));
1,000,989
private boolean addDirectoryInfo(String path, long quota, Map<String, MountedStorage> storageMap) throws IOException {<NEW_LINE>File file = new File(path);<NEW_LINE>if (!file.exists()) {<NEW_LINE>System.err.format("Path %s does not exist.%n", path);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!file.isDirectory()) {<...
directorySize = FileUtils.sizeOfDirectory(file);
463,749
private void resetValues() {<NEW_LINE>mPdfOptions = new ImageToPDFOptions();<NEW_LINE>mPdfOptions.setBorderWidth(mSharedPreferences.getInt(DEFAULT_IMAGE_BORDER_TEXT, DEFAULT_BORDER_WIDTH));<NEW_LINE>mPdfOptions.setQualityString(Integer.toString(mSharedPreferences.getInt(DEFAULT_COMPRESSION, DEFAULT_QUALITY_VALUE)));<NE...
getInt(Constants.DEFAULT_PAGE_COLOR_ITP, DEFAULT_PAGE_COLOR);
1,525,692
public synchronized void createTweet(Status status, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>String originalName = "";<NEW_LINE>long id = status.getId();<NEW_LINE>long time = status<MASK><NEW_LINE>String[] html = TweetLinkUtils.getLinksInStatus(status);<NEW_LINE>String text = html[0]...
.getCreatedAt().getTime();
1,760,989
public List<Template> findTemplates(final User user, final boolean includeArchived, final Map<String, Object> params, final String hostId, final String inode, final String identifier, final String parent, final int offset, final int limit, final String orderBy) throws DotSecurityException, DotDataException {<NEW_LINE>L...
parent, offset, limit, orderBy);
39,541
private void loadNode1135() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.ServerStatusType_BuildInfo_ProductName, new QualifiedName(0, "ProductName"), new LocalizedText("en", "ProductName"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataV...
.expanded(), true));
511,189
public CEditor addUOM(Object feature, MLookup uomLookup, int c_uom_id) {<NEW_LINE>String name = "";<NEW_LINE>String description = "";<NEW_LINE>int displayType = uomLookup.getDisplayType();<NEW_LINE>WEditor uomEditor = null;<NEW_LINE>if (displayType == DisplayType.TableDir || displayType == DisplayType.Table || displayT...
description, true, false, true);
908,360
public static SyncFileNotEnoughSpaceDialogFragment newInstance(OCFile file, long availableDeviceSpace) {<NEW_LINE>Bundle args = new Bundle();<NEW_LINE>SyncFileNotEnoughSpaceDialogFragment frag = new SyncFileNotEnoughSpaceDialogFragment();<NEW_LINE>String properFileSize = DisplayUtils.bytesToHumanReadable(file.getFileLe...
ARG_TITLE_ID, R.string.sync_not_enough_space_dialog_title);
1,469,115
public void flushToLocalStorage() {<NEW_LINE>MatrixStorage storage = PSAgentContext.get().getMatrixStorageManager().getMatrixStoage(matrixId);<NEW_LINE>MatrixMeta matrixMeta = PSAgentContext.get().getMatrixMetaManager().getMatrixMeta(matrixId);<NEW_LINE>int row = matrixMeta.getRowNum();<NEW_LINE>Vector deltaVector;<NEW...
.writeLock().unlock();
1,538,165
public void execute(String label) {<NEW_LINE>// move cursor to next insert location<NEW_LINE>Position pos = moveCursorToNextInsertLocation();<NEW_LINE>// truncate length to print margin - 5<NEW_LINE>int printMarginColumn = prefs_.marginColumn().getValue();<NEW_LINE>int length = printMarginColumn - 5;<NEW_LINE>// trunca...
++) sectionLabel.append("-");
1,688,912
private void handleNewJobLogPart() {<NEW_LINE>// Ensure a publisher has been injected, otherwise do not send job log event to be published<NEW_LINE>if (getBatchEventsPublisher() != null) {<NEW_LINE>String logContent = null;<NEW_LINE>try {<NEW_LINE>// get the content of the job log part<NEW_LINE>logContent = new String(...
getCause() : e) });
1,555,088
final ListUnsupportedAppVersionResourcesResult executeListUnsupportedAppVersionResources(ListUnsupportedAppVersionResourcesRequest listUnsupportedAppVersionResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUnsupportedAppVersionResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
475,228
public static ListServicesResponse unmarshall(ListServicesResponse listServicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listServicesResponse.setRequestId(_ctx.stringValue("ListServicesResponse.RequestId"));<NEW_LINE>listServicesResponse.setNextToken(_ctx.stringValue("ListServicesResponse.NextToken"));<NEW_LINE>li...
("ListServicesResponse.Services[" + i + "].ServiceId"));
911,917
private void changeStartTimes(List<LatticeWord> words, int newStartTime) {<NEW_LINE>ArrayList<LatticeWord> toRemove = new ArrayList<>();<NEW_LINE>for (LatticeWord lw : words) {<NEW_LINE>latticeWords.remove(lw);<NEW_LINE>int oldStartTime = lw.startNode;<NEW_LINE>lw.startNode = newStartTime;<NEW_LINE>if (latticeWords.con...
[i].add(lw);
737,687
public String serialize(int nodeIdx, boolean verbose) {<NEW_LINE>boolean empty = true;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String prefix = (nodeIdx == -1 ? "" : "." + nodeIdx + ".");<NEW_LINE>if (state != State.UP) {<NEW_LINE>empty = false;<NEW_LINE>sb.append(prefix).append("s:").append(state.seri...
("c:").append(capacity);
175,585
@BackpressureSupport(BackpressureKind.ERROR)<NEW_LINE>@SchedulerSupport(SchedulerSupport.CUSTOM)<NEW_LINE>public static Flowable<Long> intervalRange(long start, long count, long initialDelay, long period, @NonNull TimeUnit unit, @NonNull Scheduler scheduler) {<NEW_LINE>if (count < 0L) {<NEW_LINE>throw new IllegalArgume...
delay(initialDelay, unit, scheduler);
1,019,080
public void reload() {<NEW_LINE>try {<NEW_LINE>// stop deleted cluster<NEW_LINE>deletingClusterList.forEach(item -> {<NEW_LINE>item.stop();<NEW_LINE>});<NEW_LINE>deletingClusterList.clear();<NEW_LINE>// update cluster list<NEW_LINE>List<CacheClusterConfig> configList = this.context.getCacheClusters();<NEW_LINE>List<Pul...
e.getMessage(), e);
1,105,393
public static void main(String[] args) {<NEW_LINE>LogConfig.configureRuntime();<NEW_LINE><MASK><NEW_LINE>CoordinatorService coordinatorService = CoordinatorService.builder().build();<NEW_LINE>WebServer server = WebServer.builder(createRouting(config, coordinatorService)).config(config.get("helidon.lra.coordinator.serve...
Config config = Config.create();
1,640,557
public MappeableContainer xor(MappeableBitmapContainer value2) {<NEW_LINE>int newCardinality = 0;<NEW_LINE>if (BufferUtil.isBackedBySimpleArray(this.bitmap) && BufferUtil.isBackedBySimpleArray(value2.bitmap)) {<NEW_LINE>long[] b = this.bitmap.array();<NEW_LINE>long[] v2 = value2.bitmap.array();<NEW_LINE>int len = this....
final MappeableBitmapContainer answer = new MappeableBitmapContainer();
1,710,448
public ANode visitSource(SourceContext ctx) {<NEW_LINE>List<SFunction> functions = new ArrayList<>();<NEW_LINE>for (FunctionContext function : ctx.function()) {<NEW_LINE>functions.add((SFunction) visit(function));<NEW_LINE>}<NEW_LINE>// handle the code to generate the execute method here<NEW_LINE>// because the stateme...
(AStatement) visit(statement));
741,090
public String[][] dealCSV(BufferedReader reader, String filedNames, String seprator, String quoteStr, String escapeStr) {<NEW_LINE>char sepratorChar = seprator.charAt(0);<NEW_LINE>char quoteChar = quoteStr.charAt(0);<NEW_LINE>char escapeChar = escapeStr.charAt(0);<NEW_LINE>CSVReader csv = null;<NEW_LINE>String tempStri...
String[][] {});
1,247,982
static PersonaAccount addPersonaAccount(Persona persona, CentralRepoAccount account, String justification, Persona.Confidence confidence) throws CentralRepoException {<NEW_LINE>CentralRepoExaminer currentExaminer = getCRInstance().getOrInsertExaminer(System.getProperty("user.name"));<NEW_LINE>Instant instant = Instant....
).executeCommand(insertSQL, params);
494,213
private void validatePlanNumberOfPartitions() {<NEW_LINE>int numPreviousPartitions = getTopLevelStepInstance().getPartitionPlanSize();<NEW_LINE>int numCurrentPartitions = currentPlan.getNumPartitionsInPlan();<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.fine("For step: " + getStepName() + ", previous n...
IllegalArgumentException("Partition plan size is calculated as " + numCurrentPartitions + ", must be greater than or equal to 0.");
1,711,596
public CommandLineRunner commandLineRunner(ServletContext servletContext) {<NEW_LINE>return (args) -> {<NEW_LINE>File temp = new File(System.getProperty("java.io.tmpdir"));<NEW_LINE>URL resourceUrl = servletContext.getResource("webjars/jquery/3.5.0/jquery.js");<NEW_LINE>JarURLConnection connection = <MASK><NEW_LINE>Str...
(JarURLConnection) resourceUrl.openConnection();
1,159,736
private synchronized void buildCache() {<NEW_LINE>Map<String, ManagementNodeNotFoundHandler> oldEntries = null;<NEW_LINE>if (managementNodeNotFoundHandlers != null) {<NEW_LINE>oldEntries = managementNodeNotFoundHandlers.asMap();<NEW_LINE>}<NEW_LINE>long maxNum = CloudBusGlobalConfig.MAX_MANAGEMENTNODE_NOTFOUND_ERROR_HA...
toJson(handler.message)));
1,431,414
public okhttp3.Call readFlowSchemaCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}".replaceAll("\\{" + "name...
HashMap<String, Object>();
1,463,490
final DeleteUserPoolResult executeDeleteUserPool(DeleteUserPoolRequest deleteUserPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
invoke(request, responseHandler, executionContext);
870,243
public static DescribeClusterDashboardResponse unmarshall(DescribeClusterDashboardResponse describeClusterDashboardResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClusterDashboardResponse.setRequestId(_ctx.stringValue("DescribeClusterDashboardResponse.RequestId"));<NEW_LINE>Dashboard dashboard = new Dashboard();...
+ "].Nodes[" + j + "].Address"));
383,394
public Optional<ServiceBindingConfigSource> convert(List<ServiceBinding> serviceBindings) {<NEW_LINE>var matchingByType = ServiceBinding.singleMatchingByType("serviceregistry", serviceBindings);<NEW_LINE>Config config = ConfigProvider.getConfig();<NEW_LINE>if (matchingByType.isEmpty()) {<NEW_LINE>return Optional.empty(...
getProperties().get("clientSecret");
1,133,449
public static void startTrack(final Object... args) {<NEW_LINE>if (isClosed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// --Create Record<NEW_LINE>final int len = args.length == 0 ? 0 : args.length - 1;<NEW_LINE>final Object content = args.length == 0 ? "" : args[len];<NEW_LINE>final Object[] tags = new Object[len];<NEW_L...
long timestamp = System.currentTimeMillis();
1,327,848
private List<Wo> list(Business business, Wi wi, List<Identity> identityList) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isBlank(wi.getKey()) && (ListTools.isEmpty(wi.getUnitList()) || ListTools.isEmpty(identityList))) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>EntityManager e...
, o, Wo.class));
1,412,399
Object doTimeout(VirtualFrame frame, PSimpleQueue self, boolean block, Object timeout, @Cached PyLongAsLongAndOverflowNode asLongNode, @Cached CastToJavaDoubleNode castToDouble) {<NEW_LINE>assert block;<NEW_LINE>// convert timeout object (given in seconds) to a Java long in microseconds<NEW_LINE>long ltimeout;<NEW_LINE...
.execute(timeout) * 1000000.0);
514,611
public MTable deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {<NEW_LINE>final <MASK><NEW_LINE>final JsonNode node = codec.readTree(jsonParser);<NEW_LINE>final JsonNode schemaNode = node.get(M_TABLE_SCHEMA_STR);<NEW_LINE>final JsonNode dataNo...
ObjectCodec codec = jsonParser.getCodec();
1,345,235
public void read(org.apache.thrift.protocol.TProtocol iprot, TKeyExtent struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apac...
skip(iprot, schemeField.type);
1,599,023
public DescribePiiEntitiesDetectionJobResult describePiiEntitiesDetectionJob(DescribePiiEntitiesDetectionJobRequest describePiiEntitiesDetectionJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePiiEntitiesDetectionJobRequest);<...
new JsonResponseHandler<DescribePiiEntitiesDetectionJobResult>(unmarshaller);
1,655,619
private RevolutPaymentExport toRevolutExport(@NonNull final I_Revolut_Payment_Export record) {<NEW_LINE>final CurrencyId currencyId = CurrencyId.<MASK><NEW_LINE>final CurrencyCode currencyCode = currencyDAO.getCurrencyCodeById(currencyId);<NEW_LINE>final Amount amount = Amount.of(record.getAmount(), currencyCode);<NEW_...
ofRepoId(record.getC_Currency_ID());
975,198
private void convertNodeToDenseNode(RecordProxy<NodeRecord, Void> nodeChange, RelationshipRecord firstRel, RecordAccess<RelationshipRecord, Void> relRecords, RelationshipGroupDegreesStore.Updater groupDegreesUpdater, NodeDataLookup nodeDataLookup) {<NEW_LINE>NodeRecord node = nodeChange.forChangingLinkage();<NEW_LINE>n...
relId, null).forChangingLinkage();
1,012,234
public Result visit(Project e) {<NEW_LINE>final Result x = visitInput(e, 0, Clause.SELECT);<NEW_LINE>parseCorrelTable(e, x);<NEW_LINE>final Builder builder = x.builder(e);<NEW_LINE>if (!isStar(e.getProjects(), e.getInput().getRowType(), e.getRowType())) {<NEW_LINE>final List<SqlNode> selectList = new ArrayList<>();<NEW...
sqlExpr, e.getRowType());
1,189,889
public Request<ModifyLaunchTemplateRequest> marshall(ModifyLaunchTemplateRequest modifyLaunchTemplateRequest) {<NEW_LINE>if (modifyLaunchTemplateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyLaunchTemplateRequest> request = new De...
<ModifyLaunchTemplateRequest>(modifyLaunchTemplateRequest, "AmazonEC2");
1,072,569
private String issueProjectLine(MProject project) {<NEW_LINE>MProjectLine projectLine = new MProjectLine(getCtx(), getProjectLineId(), get_TrxName());<NEW_LINE>if (projectLine.getM_Product_ID() == 0)<NEW_LINE>throw new IllegalArgumentException("Projet Line has no Product");<NEW_LINE>if (projectLine.getC_ProjectIssue_ID...
MProjectIssue projectIssue = new MProjectIssue(project);
1,328,560
private void writeRequestRumData(CounterRequest request) throws IOException {<NEW_LINE>final CounterRequestRumData rumData = request.getRumData();<NEW_LINE>final DecimalFormat percentUsFormat = new DecimalFormat("0.00", DecimalFormatSymbols.getInstance(Locale.US));<NEW_LINE>final DecimalFormat percentLocaleFormat = I18...
= networkTimeMean + serverMean + domProcessingMean + pageRenderingMean;
929,139
private void inject(PolyfillUsage polyfillUsage) {<NEW_LINE>Polyfill polyfill = polyfillUsage.polyfill();<NEW_LINE>final FeatureSet outputFeatureSet = compiler<MASK><NEW_LINE>final FeatureSet featuresRequiredByPolyfill = FeatureSet.valueOf(polyfill.polyfillVersion);<NEW_LINE>if (polyfill.kind.equals(Polyfill.Kind.STATI...
.getOptions().getOutputFeatureSet();
1,059,920
public void onCheckedChanged(RadioGroup group, int checkedId) {<NEW_LINE>SlidingMenu sm = getSlidingMenu();<NEW_LINE>switch(checkedId) {<NEW_LINE>case R.id.left:<NEW_LINE>sm.setMode(SlidingMenu.LEFT);<NEW_LINE>sm.<MASK><NEW_LINE>break;<NEW_LINE>case R.id.right:<NEW_LINE>sm.setMode(SlidingMenu.RIGHT);<NEW_LINE>sm.setSha...
setShadowDrawable(R.drawable.shadow);
1,472,138
public com.amazonaws.services.secretsmanager.model.EncryptionFailureException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.secretsmanager.model.EncryptionFailureException encryptionFailureException = new com.amazonaws.services.secretsmanager.model.EncryptionF...
int originalDepth = context.getCurrentDepth();
11,717
public <T> T chooseElement(final String dialogTitle, final String message, final List<T> elements, Function<T, String> labelFun) {<NEW_LINE>try (LiveVariable<T> chosen = new LiveVariable<>()) {<NEW_LINE>getShell().getDisplay().syncExec(new Runnable() {<NEW_LINE><NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public v...
T) dialog.getFirstResult());
686,946
public int initialQpDelta(Picture pic, int mbX, int mbY) {<NEW_LINE>if (initialQp <= MINQP) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>byte[] patch = new byte[256];<NEW_LINE>MBEncoderHelper.take(pic.getPlaneData(0), pic.getPlaneWidth(0), pic.getPlaneHeight(0), mbX << 4, mbY << 4, patch, 16, 16);<NEW_LINE>int avg = calcAv...
= (initialQp - MINQP) / 2;
1,750,233
// autogenerated by CtBiScannerGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T> void visitCtIntersectionTypeReference(final spoon.reflect.reference.CtIntersectionTypeReference<T> reference) {<NEW_LINE>spoon.reflect.reference.CtIntersectionTypeReference other = ((spoon.reflect.reference.CtIntersectionTypeRefer...
), other.getPackage());
600,920
public static void onLoadStyle(Context c, TextStyle textStyle) {<NEW_LINE>final Resources.Theme theme = c.getTheme();<NEW_LINE>// check first if provided attributes contain textAppearance. As an analogy to TextView<NEW_LINE>// behavior,<NEW_LINE>// we will parse textAppearance attributes first and then will override le...
textStyleResId, R.styleable.RenderCoreText);
736,817
public static Exception writeGpx(Writer output, GPXFile file, IProgress progress) {<NEW_LINE>if (progress != null) {<NEW_LINE>progress.startWork(file.getItemsToWriteSize());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>XmlSerializer serializer = PlatformUtil.newSerializer();<NEW_LINE>serializer.setOutput(output);<NEW_LINE>// $NO...
attribute(null, "xmlns:osmand", "https://osmand.net");
1,011,047
public int bindParameters(PreparedStatement statement) throws SQLException {<NEW_LINE>// first write the changed properties<NEW_LINE>int index = EntityWriter.this.bindParameters(statement, entity, filter);<NEW_LINE>// write the where arguments<NEW_LINE>for (Attribute<E, ?> attribute : whereAttributes) {<NEW_LINE>if (at...
statement, index + 1, version);
296,150
private TransactionJson buildCreateSmartContractTransaction(byte[] ownerAddress, BuildArguments args) throws JsonRpcInvalidParamsException, JsonRpcInvalidRequestException, JsonRpcInternalException {<NEW_LINE>try {<NEW_LINE>CreateSmartContract.Builder build = CreateSmartContract.newBuilder();<NEW_LINE>build.setOwnerAddr...
JsonRpcInternalException(e.getMessage());
688,629
private boolean actionText(final WarehouseId only_Warehouse_ID, final int only_Product_ID) {<NEW_LINE>String text = m_text.getText();<NEW_LINE>log.debug(text);<NEW_LINE>// Null<NEW_LINE>if (text == null || text.length() == 0) {<NEW_LINE>if (isMandatory()) {<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>setValue(nul...
= text.toUpperCase() + "%";
756,122
public void start() {<NEW_LINE>Runnable r = new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>if (parent.stopSync())<NEW_LINE>return;<NEW_LINE>if (!NbApplication.isAppForeground()) {<NEW_LINE>Process.setThreadPriority(<MASK><NEW_LINE>} else {<NEW_LINE>Process.setThreadPriority(Process.THREAD_PRIORITY_DEF...
Process.THREAD_PRIORITY_BACKGROUND + Process.THREAD_PRIORITY_LESS_FAVORABLE);
1,409,428
protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<NEW_LINE>LocalDefs ld = G.v().<MASK><NEW_LINE>for (Unit s : b.getUnits()) {<NEW_LINE>// System.out.println("stmt: "+s);<NEW_LINE>for (ValueBox vbox : s.getUseBoxes()) {<NEW_LINE>Value v = vbox.getValue();<NEW_LINE>if (v instanceof...
soot_toolkits_scalar_LocalDefsFactory().newLocalDefs(b);
64,879
public ProjectInvitationResponse newProjectInvitationResponse(ProjectInvitationJoinVO invite) {<NEW_LINE>ProjectInvitationResponse response = new ProjectInvitationResponse();<NEW_LINE>response.setId(invite.getUuid());<NEW_LINE>response.setProjectId(invite.getProjectUuid());<NEW_LINE>response.setProjectName(invite.getPr...
setDomainId(invite.getDomainUuid());
673,775
public int calcSelectedIndex(@Nonnull Object[] modelElements, @Nonnull String trimmedText) {<NEW_LINE>if (myModel instanceof Comparator) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>Matcher matcher <MASK><NEW_LINE>final String statContext = statisticsContext();<NEW_LINE>Comparator<Object> itemComparator = Comparator.compar...
= buildPatternMatcher(transformPattern(trimmedText));
438,815
public void processInlineConstructor(RecoveredClass recoveredClass, Function inlinedConstructorFunction, Map<Address, RecoveredClass> referenceToClassMap) throws CancelledException, InvalidInputException, DuplicateNameException, CircularDependencyException {<NEW_LINE>if (referenceToClassMap.isEmpty()) {<NEW_LINE>return...
Address reference = referenceIterator.next();
1,818,469
public static String toJSONString(Object object, boolean prettyFormat) {<NEW_LINE>JSONWriter.Context context = JSONFactory.<MASK><NEW_LINE>if (prettyFormat) {<NEW_LINE>context.config(JSONWriter.Feature.PrettyFormat);<NEW_LINE>}<NEW_LINE>context.setDateFormat("millis");<NEW_LINE>try (JSONWriter writer = JSONWriter.of(co...
createWriteContext(JSONWriter.Feature.ReferenceDetection);
915,266
float evaluate(int indexA, int indexB, float t) {<NEW_LINE>m_sweepA.getTransform(xfa, t);<NEW_LINE>m_sweepB.getTransform(xfb, t);<NEW_LINE>switch(m_type) {<NEW_LINE>case POINTS:<NEW_LINE>{<NEW_LINE>Rotation.mulTransUnsafe(xfa.q, m_axis, axisA);<NEW_LINE>Rotation.mulTransUnsafe(xfb.q, m_axis.negateLocal(), axisB);<NEW_L...
.subLocal(pointB), normal);
1,685,624
public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tuple13Task<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> par(final Task<T1> task1, final Task<T2> task2, final Task<T3> task3, final Task<T4> task4, final Task<T5> task5, final Task<T6> task6, final Task<T7> task7, final Task<T8> task8, f...
ArgumentUtil.requireNotNull(task8, "task8");
1,000,948
protected AnnotationNode annotation(AST annotationNode) {<NEW_LINE>annotationBeingDef = true;<NEW_LINE>AST node = annotationNode.getFirstChild();<NEW_LINE>AnnotationNode annotatedNode = new AnnotationNode(makeType(annotationNode));<NEW_LINE>// GRECLIPSE end<NEW_LINE>configureAST(annotatedNode, annotationNode);<NEW_LINE...
int until = annotatedNode.getEnd();
1,332,599
public CompletableFuture<BallerinaExampleListResponse> list(BallerinaExampleListRequest request) {<NEW_LINE>return CompletableFuture.supplyAsync(() -> {<NEW_LINE>BallerinaExampleListResponse response = new BallerinaExampleListResponse();<NEW_LINE>Gson gson = new Gson();<NEW_LINE>Path bbeJSONPath = Paths.get(CommonUtil....
(EXAMPLES_DIR).resolve(BBE_DEF_JSON);
232,235
public void joinParticleGroups(ParticleGroup groupA, ParticleGroup groupB) {<NEW_LINE>assert (groupA != groupB);<NEW_LINE>RotateBuffer(groupB.m_firstIndex, groupB.m_lastIndex, m_count);<NEW_LINE>assert (groupB.m_lastIndex == m_count);<NEW_LINE>RotateBuffer(groupA.m_firstIndex, groupA.m_lastIndex, groupB.m_firstIndex);<...
groupA.m_strength, groupB.m_strength);
369,876
private void addPreviewPane(JDialog dialog) {<NEW_LINE>String content = getText();<NEW_LINE>try {<NEW_LINE>FormulaUtils.evalIfScript(getNode(), content);<NEW_LINE>evaluationStatus = EvaluationStatus.PASSED;<NEW_LINE>} catch (ExecuteScriptException e) {<NEW_LINE>final StringWriter out = new StringWriter();<NEW_LINE>try ...
add(resisablePreview, BorderLayout.EAST);
1,303,098
private void addMembers(final TypeElement e, final Description parentDescription, final CompilationInfo info, final Context ctx, boolean fqn) {<NEW_LINE>List<? extends Element> members = info.getElements().getAllMembers(e);<NEW_LINE>for (Element m : members) {<NEW_LINE>if (canceled.get())<NEW_LINE>return;<NEW_LINE>if (...
d, info, ctx, fqn);
933,568
public void update(Downloader d, String file) {<NEW_LINE>titleLbl.setText(file);<NEW_LINE>if (d.getProgress() > 0) {<NEW_LINE>setTitle("[" + d.<MASK><NEW_LINE>} else {<NEW_LINE>setTitle(file);<NEW_LINE>}<NEW_LINE>String statTxt = "";<NEW_LINE>if (d.isConverting()) {<NEW_LINE>statTxt = StringResource.get("TITLE_CONVERT"...
getProgress() + "%]" + file);
436,132
public static QueryAppTasksResponse unmarshall(QueryAppTasksResponse queryAppTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAppTasksResponse.setRequestId(_ctx.stringValue("QueryAppTasksResponse.RequestId"));<NEW_LINE>queryAppTasksResponse.setCode(_ctx.integerValue("QueryAppTasksResponse.Code"));<NEW_LINE>quer...
("QueryAppTasksResponse.Data.List[" + i + "].TimeSchema"));