idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,504,363
/*<NEW_LINE>* @see com.sitewhere.grpc.service.AssetManagementGrpc.AssetManagementImplBase#<NEW_LINE>* createAsset(com.sitewhere.grpc.service.GCreateAssetRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void createAsset(GCreateAssetRequest request, StreamObserver<GCreateAss...
handleServerMethodExit(AssetManagementGrpc.getCreateAssetMethod());
784,342
private void init() {<NEW_LINE>int row = 0;<NEW_LINE>addLabelled("Width", tfRegionWidth, 0, row++, "Define region width");<NEW_LINE>addLabelled("Height", tfRegionHeight, 0, row++, "Define region height");<NEW_LINE>addLabelled("Size units", comboUnits<MASK><NEW_LINE>addLabelled("Classification", comboClassification, 0, ...
, 0, row++, "Choose the units used to define the region width & height");
818,371
private static void loadThroughCacheRequest(URIStatus status, FileSystemContext context, long blockId, AlluxioConfiguration conf, WorkerNetAddress localNetAddress) throws IOException {<NEW_LINE>AlluxioBlockStore blockStore = AlluxioBlockStore.create(context);<NEW_LINE>OpenFilePOptions openOptions = OpenFilePOptions.new...
(status.getBlockInfo(blockId));
801,533
final DescribeComponentResult executeDescribeComponent(DescribeComponentRequest describeComponentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeComponentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,553,950
public static void registerType(final ModelBuilder modelBuilder) {<NEW_LINE>final ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(OutputSet.class, BPMN_ELEMENT_OUTPUT_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<OutputSet>() {<NEW_LINE><NEW_LIN...
DataOutput.class).build();
984,983
public static Matrix backSub(Matrix U, Matrix y) {<NEW_LINE>if (y.rows() != U.rows())<NEW_LINE>throw new ArithmeticException("Vector and matrix sizes do not agree");<NEW_LINE>Matrix x = new DenseMatrix(U.cols(), y.cols());<NEW_LINE>double[] x_col_k = new double[y.rows()];<NEW_LINE>final int start = Math.min(U.rows(), U...
, k, x_col_k[i]);
1,499,556
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 4 && args.length != 5) {<NEW_LINE>System.err.printf("Expected 4 or 5 parameters, got %d\n", args.length);<NEW_LINE>System.err.println("Usage: java AeadExample encrypt/decrypt key-file input-file output-file" + " [associated-data]");<N...
aead.encrypt(plaintext, associatedData);
888,230
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TaskSchedule task(String id, Task10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> code, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10) {<NEW_LINE>checkTaskName(id);<NEW_LINE>TaskPackage taskPackage = TaskPackage.createPackage(id, c...
arg7, arg8, arg9, arg10);
806,885
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>// populate the tableSet set with the tables you want to operate on<NEW_LINE>final SortedSet<String> tableSet = new TreeSet<>();<NEW_LINE>if (cl.hasOption(optTablePattern.getOpt())) {<NEW_LINE>shellSta...
.getWriter().flush();
643,298
private int ensureUids(Context activity, ContentResolver resolver, AndroidCalendar cal) {<NEW_LINE>String[] cols = new String[] { Events._ID };<NEW_LINE>String[] args = new <MASK><NEW_LINE>Map<Long, String> newUids = new HashMap<>();<NEW_LINE>Cursor cur = resolver.query(Events.CONTENT_URI, cols, Events.CALENDAR_ID + " ...
String[] { cal.mIdStr };
950,314
public synchronized void addItem(Context context, ItemInfo item, boolean newItem) {<NEW_LINE>itemsIdMap.put(item.id, item);<NEW_LINE>switch(item.itemType) {<NEW_LINE>case LauncherSettings.Favorites.ITEM_TYPE_FOLDER:<NEW_LINE>folders.put(item.id, (FolderInfo) item);<NEW_LINE>workspaceItems.add(item);<NEW_LINE>break;<NEW...
.add((LauncherAppWidgetInfo) item);
1,532,808
public static void removeRolesFromMember(Member member, Role... roles) {<NEW_LINE>if (member == null) {<NEW_LINE>DiscordSRV.debug("Can't remove roles from null member");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Role> rolesToRemove = Arrays.stream(roles).filter(role -> !role.isManaged()).filter(role -> !role.getGuild()...
), rolesToRemove).queue();
1,393,879
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String factoryName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getS...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
162,629
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.sitewhere.spi.device.communication.IDeviceEventDecoder#decode(java.<NEW_LINE>* lang.Object, java.util.Map)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public List<IDecodedDeviceRequest<?>> decode(T payload, Map<String, Object> eventSourceMetadata) throws EventDecod...
HashMap<String, Object>();
746,175
public static List<Integer> distributeEvenlyIntoList(int listLength, int numElements) {<NEW_LINE>if (listLength < 1) {<NEW_LINE>throw new IllegalArgumentException("Argument listLength must be greater than 0 : " + listLength);<NEW_LINE>}<NEW_LINE>if (numElements < 0) {<NEW_LINE>throw new IllegalArgumentException("Argume...
= numElements - (listLength * floorElements);
134,197
protected DefaultCaseDiagramCanvas generateCaseDiagram(CmmnModel cmmnModel, String imageType, String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader, double scaleFactor) {<NEW_LINE>prepareCmmnModel(cmmnModel);<NEW_LINE>DefaultCaseDiagramCanvas caseDiagramCanvas = initCas...
getGraphicInfo(planModel.getId());
1,605,856
protected boolean doGenerateReport(String entryName, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>IXDocReport report = null;<NEW_LINE>IContext context = null;<NEW_LINE>DumperOptions dumperOptions = null;<NEW_LINE>try {<NEW_LINE>// 1) Get XDoc report<NEW_LINE>...
entryName, dumperOptions, request, response);
1,774,459
static Double eval(String expr, Map<String, ? extends Number> vars) {<NEW_LINE>Deque<Double> stack = new ArrayDeque<>();<NEW_LINE>String[] parts = expr.split("[,\\s]+");<NEW_LINE>for (String part : parts) {<NEW_LINE>switch(part) {<NEW_LINE>case ":add":<NEW_LINE>binaryOp(stack, (a<MASK><NEW_LINE>break;<NEW_LINE>case ":s...
, b) -> a + b);
849,135
protected void updateIntegrityHMAC(File tmpFile, int oleStreamSize) throws GeneralSecurityException, IOException {<NEW_LINE>// as the integrity hmac needs to contain the StreamSize,<NEW_LINE>// it's not possible to calculate it on-the-fly while buffering<NEW_LINE>// TODO: add stream size parameter to getDataStream()<NE...
update(buf, 0, readBytes);
720,639
public void reset(Library srcLib, Library destLib, int destHeader) throws IOException {<NEW_LINE>ArchiveSection destSection = new ArchiveSection();<NEW_LINE>destSection.header = destHeader;<NEW_LINE>destSection.sign = sign;<NEW_LINE>if (subDataHeader > 0) {<NEW_LINE>byte[] <MASK><NEW_LINE>int dataPos = Library.getDataP...
bytes = srcLib.readBlocks(subDataHeader);
180,845
final void save(final SerializedVariable var) {<NEW_LINE>if (changesQueue.size() > FIRST_WARNING && lastWarning < System.currentTimeMillis() - WARNING_INTERVAL * 1000) {<NEW_LINE>Skript.warning("Cannot write variables to the database '" + <MASK><NEW_LINE>lastWarning = System.currentTimeMillis();<NEW_LINE>}<NEW_LINE>if ...
databaseName + "' at sufficient speed; server performance may suffer and many variables will be lost if the server crashes. (this warning will be repeated at most once every " + WARNING_INTERVAL + " seconds)");
945,811
public CostCategoryInheritedValueDimension unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CostCategoryInheritedValueDimension costCategoryInheritedValueDimension = new CostCategoryInheritedValueDimension();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
JsonToken token = context.getCurrentToken();
185,396
final DeleteUserPoolClientResult executeDeleteUserPoolClient(DeleteUserPoolClientRequest deleteUserPoolClientRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPoolClientRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,122,515
public static void loadSchemaURIs(String schemaLocation, List<URI> uris, Map<String, String> schemaLocationMap) {<NEW_LINE>StringTokenizer st = new // NOI18N<NEW_LINE>StringTokenizer(// NOI18N<NEW_LINE>schemaLocation.replace("\n", " "), " ");<NEW_LINE>while (st.hasMoreTokens()) {<NEW_LINE>URI uri = null;<NEW_LINE>try {...
.nextToken().trim();
1,670,744
private void acceptLine(String line) {<NEW_LINE>// Patch to handle Unicode characters<NEW_LINE>// Submitted by Daniel Leuck<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>int lineLength = line.length();<NEW_LINE>for (int i = 0; i < lineLength; i++) {<NEW_LINE>char c = line.charAt(i);<NEW_LINE>if (c > 127) {...
Integer.toString(c, 16);
420,259
public static void main(String[] args) throws IOException, NoSuchAlgorithmException {<NEW_LINE>String buildName = "build-test";<NEW_LINE>String buildNumber = "2";<NEW_LINE>String artifactoryURL = "http://localhost:8081/artifactory";<NEW_LINE>// optional. Only used when deploying the actual artifacts (in addition to the...
artifactsDirectory.listFiles(), listOfDirectoryArtifacts);
266,623
private void doVisit(FileVisitor visitor, File file, LinkedList<String> relativePath, int segmentIndex, AtomicBoolean stopFlag) {<NEW_LINE>if (stopFlag.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String segment = patternSegments.get(segmentIndex);<NEW_LINE>if (segment.contains("**")) {<NEW_LINE>PatternSet patternSet ...
.format("Could not list contents of directory '%s' as it is not readable.", file));
905,067
public long handleRelationTags(long oldRelationFlags, ReaderRelation relation) {<NEW_LINE>int code = 0;<NEW_LINE>if (relation.hasTag(OSMTags.Keys.ROUTE, "hiking") || relation.hasTag(OSMTags.Keys.ROUTE, "foot")) {<NEW_LINE>Integer val = hikingNetworkToCode.get(relation.getTag("network"));<NEW_LINE>if (val != null)<NEW_L...
int) relationCodeEncoder.getValue(oldRelationFlags);
272,046
public void execute(BaseRequest request, BaseResponse response) {<NEW_LINE>String <MASK><NEW_LINE>if (connStr == null) {<NEW_LINE>response.getContent().append("not valid parameter");<NEW_LINE>sendResult(request, response, HttpResponseStatus.BAD_REQUEST);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int connectionId = Integer.v...
connStr = request.getSingleParameter("connection_id");
1,718,547
public okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/...
.parameterToPair("path", path2));
892,139
private void loadNode1231() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionDiagnostics_CreateSubscriptionCount, new QualifiedName(0, "CreateSubscriptionCount"), new LocalizedText("en", "CreateSubscriptionCoun...
.expanded(), false));
908,962
private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void applyData(int height) {<NEW_LINE>currentBlockHeightTextField.setText(String.valueOf(daoFacade.getChainHeight()));<NEW_LINE>DaoPhase.Phase phase = daoFacade.phaseProperty().get();<NEW_LINE>// If we are in l...
.Phase.RESULT, daoFacade));
958,470
private void executeUpgradeForPostgres() throws DotDataException, DotRuntimeException {<NEW_LINE><MASK><NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>dc.setSQL("TRUNCATE TABLE tag_inode");<NEW_LINE>dc.loadResult();<NEW_LINE>dc.setSQL(GET_STRUCTURES_WITH_TAGS_FIELDS_POSTGRES);<NEW_LINE>dc.addParam(Field.FieldType....
Logger.info(this, "Starting Task03540UpdateTagInodesReferences depending on your dataset it could take several minutes.");
831,961
private void changeUses(String to, String from, ASTNode node) {<NEW_LINE>// remember this method is only called when "to" and "from" are both non<NEW_LINE>// null<NEW_LINE>List<Object> subBodies = node.get_SubBodies();<NEW_LINE>Iterator<Object> it = subBodies.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>// goin...
(List) it.next();
841,715
public void process(CtMethod m) throws Exception {<NEW_LINE>aa.addLocalVar(m, "mObj", "com.creditease.tomcat.plus.interceptor.TomcatPlusIT");<NEW_LINE>m.insertBefore("{mObj=new TomcatPlusIT();mObj.onAppInit(new Object[]{this});}");<NEW_LINE>String sb = "{mObj.onAppStart(new Object[]{this});" + "FilterDef fd=new FilterD...
+ "this.filterConfigs.put(\"UAV_Global_Filter\", filterConfig);" + "FilterMap filterMap=new FilterMap();" + "filterMap.setFilterName(\"UAV_Global_Filter\");" + "filterMap.addURLPattern(\"/*\");";
55,298
final CreateApplicationSnapshotResult executeCreateApplicationSnapshot(CreateApplicationSnapshotRequest createApplicationSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createApplicationSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
80,520
private void readFormatterFile() {<NEW_LINE>File formatterFile = new File(lfFileName + FORMATTERS_EXTENSION);<NEW_LINE>if (formatterFile.exists()) {<NEW_LINE>try (Reader in = new FileReader(formatterFile)) {<NEW_LINE>// Ok, we found and opened the file. Read all contents:<NEW_LINE>StringBuilder sb = new StringBuilder()...
String line = line1.trim();
892,495
private void deleteAliasesAndModel(DeleteTrainedModelAction.Request request, List<String> modelAliases, ActionListener<AcknowledgedResponse> listener) {<NEW_LINE>logger.debug(() -> new ParameterizedMessage("[{}] Deleting model", request.getId()));<NEW_LINE>ActionListener<AcknowledgedResponse> nameDeletionListener = Act...
currentMetadata = ModelAliasMetadata.fromState(currentState);
578,040
private void updateDatabase(boolean forceDBComparison, ServerState serverState) {<NEW_LINE>// download NEW cards/sets, but do not download data fixes (it's an old and rare feature from old clients, e.g. one client for different servers with different cards)<NEW_LINE>// use case: server gets new minor version with new c...
null, serverState.getExpansionsContentVersion());
215,612
public static org.python.Object ctime(org.python.Object seconds) {<NEW_LINE>java.util.Date date;<NEW_LINE>if ((seconds == null) || (seconds instanceof org.python.types.NoneType)) {<NEW_LINE>long currentTimeInMillis = System.currentTimeMillis();<NEW_LINE>date = new <MASK><NEW_LINE>} else {<NEW_LINE>// Type checking the ...
java.util.Date(currentTimeInMillis);
990,716
public void start() {<NEW_LINE>mLogger.d(TAG, "start");<NEW_LINE>// This saving is needed just for situation when the user starts navigation<NEW_LINE>// and then app crashes. So, the previous route will be restored on the next app launch.<NEW_LINE>saveRoute();<NEW_LINE>MapObject my <MASK><NEW_LINE>if (my == null || !Ma...
= LocationHelper.INSTANCE.getMyPosition();
360,182
public KeyValueProcessor create(Map<String, Processor.Factory> registry, String processorTag, String description, Map<String, Object> config) throws Exception {<NEW_LINE>String field = ConfigurationUtils.readStringProperty(TYPE, processorTag, config, "field");<NEW_LINE>String targetField = ConfigurationUtils.readOption...
TYPE, processorTag, config, "trim_value");
167,724
public List<String> validateValue(final PwmSetting pwmSetting) {<NEW_LINE>final int maxBodyChars = 500_000;<NEW_LINE>if (pwmSetting.isRequired()) {<NEW_LINE>if (values == null || values.isEmpty() || values.values().iterator().next() == null) {<NEW_LINE>return Collections.singletonList("required value missing");<NEW_LIN...
"from field is required" + localeMsg.get());
697,816
private void zipFilesToStage(Twister2PipelineOptions options) {<NEW_LINE>File zipFile = null;<NEW_LINE>Set<String> jarSet = new HashSet<>();<NEW_LINE>// TODO figure out if we can remove all the dependencies that come with<NEW_LINE>// the twister2 jars as well since they will be anyway provided from the<NEW_LINE>// syst...
info(e.getMessage());
547,580
private UploadItem createAndAddUploadItem(final UploadableFile uploadableFile, final Place place, final SimilarImageInterface similarImageInterface) {<NEW_LINE>final UploadableFile.DateTimeWithSource dateTimeWithSource = uploadableFile.getFileCreatedDate(context);<NEW_LINE>long fileCreatedDate = -1;<NEW_LINE>String cre...
0, new UploadMediaDetail(place));
1,335,020
public com.amazonaws.services.quicksight.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.quicksight.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.quicksight.model.ResourceNotFoundException(...
class).unmarshall(context));
1,195,485
void visitElement_profile(Element profileEl) {<NEW_LINE>String id = profileEl.getAttribute(ConfigPersistenceUtils.CONFIG_ATTRIBUTE_ID);<NEW_LINE>if (id == null) {<NEW_LINE>return;<NEW_LINE>} else if ("".equals(id)) {<NEW_LINE>id = GradleExecConfiguration.DEFAULT;<NEW_LINE>}<NEW_LINE>String displayName = profileEl.getAt...
String pv = p.getTextContent();
480,118
protected List<TableInfo<CommonField<Datatype>>> discoverInternal(final JdbcDatabase database, final String schema) throws Exception {<NEW_LINE>final Set<String> internalSchemas = new HashSet<>(getExcludedInternalNameSpaces());<NEW_LINE>final Set<JdbcPrivilegeDto> tablesWithSelectGrantPrivilege = getPrivilegesTableForC...
collect(Collectors.toList());
1,231,217
public CompletableFuture<Void> listSyncAndWatch() {<NEW_LINE>if (!running) {<NEW_LINE>return CompletableFuture.completedFuture(null);<NEW_LINE>}<NEW_LINE>Set<String> nextKeys = new ConcurrentSkipListSet<>();<NEW_LINE>return processList(nextKeys, null).thenAccept(result -> {<NEW_LINE>store.retainAll(nextKeys);<NEW_LINE>...
.getMetadata().getResourceVersion();
109,915
private void savePrefs(String msg) {<NEW_LINE>prefs.setAtSaveMakeHTML(isSelected(prefMoreHTML));<NEW_LINE>prefs.setAtSaveCleanBundle(isSelected(prefMoreClean));<NEW_LINE>prefs.setPrefMoreRunSave(isSelected(prefMoreRunSave));<NEW_LINE>prefs.setPrefMoreHighlight(isSelected(prefMoreHighlight));<NEW_LINE>prefs.setPrefMoreM...
.setPrefMoreLogActions(isSelected(prefMoreLogActions));
716,840
public RestLiRequestData extractRequestData(RoutingResult routingResult, DataMap dataMap) {<NEW_LINE>final RestLiRequestDataImpl.Builder builder = new RestLiRequestDataImpl.Builder();<NEW_LINE>Set<?> ids = routingResult.getContext()<MASK><NEW_LINE>// No entity for unstructured data requests<NEW_LINE>if (UnstructuredDat...
.getPathKeys().getBatchIds();
825,769
protected ORecord readCurrentRecord(ORecord iRecord, final int iMovement) {<NEW_LINE>if (limit > -1 && browsedRecords >= limit)<NEW_LINE>// LIMIT REACHED<NEW_LINE>return null;<NEW_LINE>do {<NEW_LINE>final boolean moveResult;<NEW_LINE>switch(iMovement) {<NEW_LINE>case 1:<NEW_LINE>moveResult = nextPosition();<NEW_LINE>br...
throw new IllegalStateException("Invalid movement value : " + iMovement);
1,844,908
public SQLStatement parseCreateFullTextStatement() {<NEW_LINE>Lexer.SavePoint mark = lexer.mark();<NEW_LINE>accept(Token.CREATE);<NEW_LINE>accept(Token.FULLTEXT);<NEW_LINE>if (lexer.identifierEquals(FnvHash.Constants.CHARFILTER)) {<NEW_LINE>lexer.nextToken();<NEW_LINE>return parseFullTextCharFilter();<NEW_LINE>} else i...
this.exprParser.name());
353,893
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>// stop any audio that may be playing<NEW_LINE>mediaManager.getValue().stopAudio(true);<NEW_LINE>mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE);<NEW_LINE>if (mAudioManager == null...
.getValue().getCurrentVideoQueue();
1,304,426
protected void initField(String name) {<NEW_LINE>// note: java.beans API is more verbose to use correctly (?) but would arguably be better<NEW_LINE>Field field;<NEW_LINE>try {<NEW_LINE>field = getClass().getField(name);<NEW_LINE>} catch (NoSuchFieldException e) {<NEW_LINE>throw new Error(e);<NEW_LINE>}<NEW_LINE>String ...
field.getType(), e);
1,550,311
private void updateUi() {<NEW_LINE>if ((ledgerManager.getCurrentState() != AccountScanManager.Status.unableToScan) && (ledgerManager.getCurrentState() != AccountScanManager.Status.initializing)) {<NEW_LINE>findViewById(R.id.ivConnectLedger).setVisibility(View.GONE);<NEW_LINE>} else {<NEW_LINE>findViewById(R.id.ivConnec...
add(toAddress.toDoubleLineString());
1,695,326
// parse security JSR250 annotations at the class level<NEW_LINE>private boolean parseClassSecurity(Class<?> cls, SecurityContext sc) {<NEW_LINE>// try DenyAll<NEW_LINE>DenyAll denyAll = cls.getAnnotation(DenyAll.class);<NEW_LINE>if (denyAll != null) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnab...
cls.getAnnotation(RolesAllowed.class);
1,037,038
static void registerOptionsDefined(Plugin plugin, Class<?> cls, Object receiver) {<NEW_LINE>Class<?<MASK><NEW_LINE>if (superclass != null) {<NEW_LINE>registerOptionsDefined(plugin, superclass, receiver);<NEW_LINE>}<NEW_LINE>for (Field f : cls.getDeclaredFields()) {<NEW_LINE>AutoOptionDefined annotation = f.getAnnotatio...
> superclass = cls.getSuperclass();
184,215
public ContextMenu ofRoot(JavaResource resource) {<NEW_LINE>this.resource = resource;<NEW_LINE>String name = resource.toString();<NEW_LINE>MenuItem header = new MenuItem(shorten(name));<NEW_LINE>header.getStyleClass().add("context-menu-header");<NEW_LINE>header.setGraphic(new IconView(UiUtil.getResourceIcon(resource)))...
getItems().add(addSrc);
1,757,691
public static DescribeOssStockStatusResponse unmarshall(DescribeOssStockStatusResponse describeOssStockStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeOssStockStatusResponse.setRequestId(_ctx.stringValue("DescribeOssStockStatusResponse.RequestId"));<NEW_LINE>describeOssStockStatusResponse.setStockStatus(_c...
(_ctx.integerValue("DescribeOssStockStatusResponse.ImagePornCount"));
1,749,167
/*<NEW_LINE>static final Logger logger = LoggerFactory.getLogger(ODTExporter.class.getName());<NEW_LINE><NEW_LINE>public static final Property<VirtualType> transformationProvider = new EndNode("transformationProvider", TransformationRules.class);<NEW_LINE>public static final Property<File> documentTemplate ...
setParent(template.getParent());
1,620,449
public static double block_zero(GrayF64 integral, int x0, int y0, int x1, int y1) {<NEW_LINE>x0 = Math.min(x0, integral.width - 1);<NEW_LINE>y0 = Math.min(y0, integral.height - 1);<NEW_LINE>x1 = Math.min(x1, integral.width - 1);<NEW_LINE>y1 = Math.min(y1, integral.height - 1);<NEW_LINE>double br = 0, tr = 0, bl = 0, tl...
y0 * integral.stride + x1];
108,809
public VoidResponse addFileAuditLogDestination(String userId, String serverName, List<String> supportedSeverities) {<NEW_LINE>final String methodName = "addFileAuditLogDestination";<NEW_LINE>RESTCallToken token = restCallLogger.<MASK><NEW_LINE>VoidResponse response = new VoidResponse();<NEW_LINE>try {<NEW_LINE>errorHan...
logRESTCall(serverName, userId, methodName);
509,684
protected View doInBackground(View... params) {<NEW_LINE>try {<NEW_LINE>m = new AccountManager(Authentication.reddit);<NEW_LINE>JsonNode node = m.getFlairChoicesRootNode(subOverride, null);<NEW_LINE>flairs = m.getFlairChoices(subOverride, node);<NEW_LINE>FlairTemplate currentF = m.getCurrentFlair(subOverride, node);<NE...
temp.getCssClass() + "]");
891,098
private void showSearchByDialog(final LogLine logLine) {<NEW_LINE>View view = getLayoutInflater().inflate(R.layout.dialog_searchby, null);<NEW_LINE>AlertDialog dialog = new MaterialAlertDialogBuilder(this).setTitle(R.string.filter_choice).setIcon(R.drawable.ic_search).setView(view).setNegativeButton(R.string.close, nul...
(logLine.getProcessId()));
399,783
private void buildRequestMessageMetaData(Message msg) {<NEW_LINE>if (msg instanceof APIMessage || (msg instanceof NeedReplyMessage && !Boolean.valueOf(msg.getHeaderEntry(CloudBus.HEADER_NO_NEED_REPLY_MSG)))) {<NEW_LINE>RequestMessageMetaData metaData;<NEW_LINE>if (msg instanceof LockResourceMessage) {<NEW_LINE>LockReso...
.msgId = msg.getId();
1,341,342
private <T> void jumpTo(@Nonnull final T commitId, @Nonnull final PairFunction<GraphTableModel, T, Integer> rowGetter, @Nonnull final SettableFuture<Boolean> future) {<NEW_LINE>if (future.isCancelled())<NEW_LINE>return;<NEW_LINE>GraphTableModel model <MASK><NEW_LINE>int row = rowGetter.fun(model, commitId);<NEW_LINE>if...
= getTable().getModel();
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...
+ "].ServiceInfos[" + j + "].Name"));
1,063,519
protected void processAbstractionAtReturn(MethodSummaries flows, AccessPath apAtReturn, SootMethod m, FlowSource source, Stmt stmt, AccessPath sourceAP, boolean isAlias, boolean isInCallee) {<NEW_LINE>// Was this the value returned by the method?<NEW_LINE>if (stmt instanceof ReturnStmt) {<NEW_LINE>ReturnStmt retStmt = ...
source, sink, isAlias, flows);
1,591,996
public StartImageScanResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartImageScanResult startImageScanResult = new StartImageScanResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
60,689
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Player attachTo = game.getPlayer(targetPointer.getFirst(game, source));<NEW_LINE>if (controller == null || !(game.getState().getZone(source.getSourceId()) == Zone.GRAVEYARD) || attachTo == n...
getSourceId(), Boolean.TRUE);
334,866
public void refresh(TableCell _cell) {<NEW_LINE>TableCellSWT cell = (TableCellSWT) _cell;<NEW_LINE>SubscriptionManager subs_man = SubscriptionManagerFactory.getSingleton();<NEW_LINE>Download dl = (Download) cell.getDataSource();<NEW_LINE>if (dl == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (torrent...
Torrent torrent = dl.getTorrent();
398,034
public ViewHolderNotifications onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>logDebug("onCreateViewHolder");<NEW_LINE>View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_notification_list, parent, false);<NEW_LINE>holder = new ViewHolderNotifications(v);<NEW_LINE>holder.itemLayout = ...
holder.itemLayout.setOnClickListener(this);
1,022,925
public void initScene() {<NEW_LINE>final String path = "M22.395-127.223c-4.492,11.344-4.688,33.75,0,44.883" + "c-11.328-4.492-33.656-4.579-44.789,0.109c4.491-11.354,4.688-33.75,0-44.892" + "C-11.066-122.63,11.262-122.536,22.395-127.223z";<NEW_LINE>SVGPath svgPath = new SVGPath();<NEW_LINE>List<CompoundCurve3D> paths = ...
getCurrentCamera().setY(50);
1,147,280
protected ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String appId) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Bu...
getAppDictFactory().listWithAppInfo(appId);
1,661,967
public static <H extends Hcl> List<HclRightPadded<H>> withElements(List<HclRightPadded<H>> before, List<H> elements) {<NEW_LINE>// a cheaper check for the most common case when there are no changes<NEW_LINE>if (elements.size() == before.size()) {<NEW_LINE>boolean hasChanges = false;<NEW_LINE>for (int i = 0; i < before....
.EMPTY, Markers.EMPTY));
1,846,258
public boolean delete(String groupId, String operator) {<NEW_LINE>LOGGER.info("begin to delete inlong group for groupId={} by user={}", groupId, operator);<NEW_LINE>Preconditions.checkNotNull(groupId, ErrorCodeEnum.GROUP_ID_IS_EMPTY.getMessage());<NEW_LINE>InlongGroupEntity entity = groupMapper.selectByGroupId(groupId)...
count = streamService.selectCountByGroupId(groupId);
993,484
public double transform(final double in) {<NEW_LINE>double toTransform = in;<NEW_LINE>if (toTransform < 1) {<NEW_LINE>// allow to transform the input for empty traces or all traces with empty<NEW_LINE>// points:<NEW_LINE>if (this.m_accessor == null) {<NEW_LINE>throw new IllegalStateException("Connect this axis (" + thi...
).getName() + " must not be used with values < 1!");
1,751,376
public RecurringCharge unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>RecurringCharge recurringCharge = new RecurringCharge();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += ...
XMLEvent xmlEvent = context.nextEvent();
1,763,876
public static FluidStack move(IFluidHandler from, IFluidHandler to, int max) {<NEW_LINE>if (from == null || to == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FluidStack toDrainPotential;<NEW_LINE>if (from instanceof IFluidHandlerAdv) {<NEW_LINE>IFluidFilter filter = f -> to.fill(f, false) > 0;<NEW_LINE>toDrainPot...
from.drain(max, false);
1,571,119
private void paintDefaultButton(Graphics g, ActionButton c) {<NEW_LINE>int state = c.getPopState();<NEW_LINE>paintBackground(c, g, c.getSize(), state);<NEW_LINE>if (!c.isWithoutBorder()) {<NEW_LINE>paintBorder(c, g, c.getSize(), state);<NEW_LINE>}<NEW_LINE>paintIcon(g, c, TargetAWT.to<MASK><NEW_LINE>if (c.shallPaintDow...
(c.getIcon()));
1,734,740
public void init(CmdArgs args) {<NEW_LINE>setPreparationThreads(args.getInt(CoreLandmark.PREPARE + "threads", getPreparationThreads()));<NEW_LINE>landmarkCount = args.getInt(CoreLandmark.COUNT, landmarkCount);<NEW_LINE>activeLandmarkCount = args.getInt(CoreLandmark.ACTIVE_COUNT_DEFAULT, Math.min(4, landmarkCount));<NEW...
Core.PREPARE + "weightings", "");
742,714
private void computeProjection() {<NEW_LINE>projection = new Projection.Short(0, sheet.getWidth() - 1);<NEW_LINE>final ArrayList<Integer> derivatives = new ArrayList<>();<NEW_LINE>final LineInfo firstLine = staff.getFirstLine();<NEW_LINE>final LineInfo lastLine = staff.getLastLine();<NEW_LINE>final int dx = params.staf...
derivatives.get(size - i);
894,687
private static JSONDocumentPrintingOptions toJSONDocumentPrintingOptions(@NonNull final DocumentPrintOptionsIncludingDescriptors printOptions, @NonNull final String adLanguage) {<NEW_LINE>final ArrayList<JSONDocumentPrintingOption> jsonOptionsList = new ArrayList<>();<NEW_LINE>for (final DocumentPrintOptionDescriptor o...
value = printOptions.getOptionValue(internalName);
159,305
protected void copyInteger(byte[] to, int toLen, byte[] from, int fromLen, boolean isUnsigned, boolean isBigEndian) {<NEW_LINE>if (isBigEndian) {<NEW_LINE>if (isUnsigned) {<NEW_LINE>to[0] = from[0];<NEW_LINE>} else {<NEW_LINE>// Reverse the sign bit.<NEW_LINE>to[0] = (byte) (from[0] ^ 128);<NEW_LINE>}<NEW_LINE>System.a...
sign = from[fromLen - 1];
985,134
public void updatePhis(Program program, Variable[] parameters) {<NEW_LINE>if (program.basicBlockCount() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>frontierVariableCache = new int[program.basicBlockCount()][][];<NEW_LINE>this.program = program;<NEW_LINE>phisByReceiver.clear();<NEW_LINE>cfg = ProgramUtils.buildControlF...
program.basicBlockCount()][];
1,291,273
private static final Set<String> parseIdentifierListFromComment(String annotationName, List<Token<?>> comments, MessageQueue mq) {<NEW_LINE>// TODO(mikesamuel): replace with jsdoc comment parser<NEW_LINE>Set<String> idents = Sets.newLinkedHashSet();<NEW_LINE>for (Token<?> comment : comments) {<NEW_LINE>// Remove line p...
body.indexOf('@', annotBodyStart);
859,638
final GetIpamPoolCidrsResult executeGetIpamPoolCidrs(GetIpamPoolCidrsRequest getIpamPoolCidrsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getIpamPoolCidrsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
156,170
protected long nextKey() {<NEW_LINE>// Fail if there is no node anymore.<NEW_LINE>if (mNextKey == Fixed.NULL_NODE_KEY.getStandardProperty()) {<NEW_LINE>return done();<NEW_LINE>}<NEW_LINE>getTrx().moveTo(mNextKey);<NEW_LINE>// Fail if the subtree is finished.<NEW_LINE>if (getTrx().getLeftSiblingKey() == getStartKey()) {...
= getTrx().getFirstChildKey();
1,673,938
public RexNode newColumnDefaultValue(RelOptTable table, int iColumn, InitializerContext context) {<NEW_LINE>final RelDataTypeField relDataTypeField = table.getRowType().getFieldList().get(iColumn);<NEW_LINE>final String columnName = relDataTypeField.getName();<NEW_LINE>final Field field = getColumn(columnName).getField...
DataType columnDataType = field.getDataType();
1,210,280
@Consumes("application/x-www-form-urlencoded")<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(description = "Fetch OAuth2 Access Token")<NEW_LINE>public AccessTokenResponse postAccessTokenRequest(@Parameter(description = "token request details include scope", required = true) String request) {<NEW_L...
delegate.postAccessTokenRequest(context, request);
74,667
protected UserProfileMetadata configureUserProfile(UserProfileMetadata metadata, KeycloakSession session) {<NEW_LINE>UserProfileContext context = metadata.getContext();<NEW_LINE><MASK><NEW_LINE>if (!isEnabled(session)) {<NEW_LINE>if (!context.equals(UserProfileContext.USER_API) && !context.equals(UserProfileContext.REG...
UserProfileMetadata decoratedMetadata = metadata.clone();
1,799,102
public MultiplexSettingsSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MultiplexSettingsSummary multiplexSettingsSummary = new MultiplexSettingsSummary();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
701,318
void checkSpecificAccessControl() throws UnauthorizedAccessException {<NEW_LINE>if (userInfo.isAdmin) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_LINE>String entityType = getNonNullRequestParamValue(Const.ParamsNames.ENTITY_TYPE);<NEW_LINE>if (u...
, logic.getCourse(courseId));
19,685
public static AttachKeyPairResponse unmarshall(AttachKeyPairResponse attachKeyPairResponse, UnmarshallerContext _ctx) {<NEW_LINE>attachKeyPairResponse.setRequestId(_ctx.stringValue("AttachKeyPairResponse.RequestId"));<NEW_LINE>attachKeyPairResponse.setKeyPairName(_ctx.stringValue("AttachKeyPairResponse.KeyPairName"));<...
("AttachKeyPairResponse.Results[" + i + "].Success"));
644,283
public static DescribeSlowSQLLogsResponse unmarshall(DescribeSlowSQLLogsResponse describeSlowSQLLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowSQLLogsResponse.setRequestId(_ctx.stringValue("DescribeSlowSQLLogsResponse.RequestId"));<NEW_LINE>describeSlowSQLLogsResponse.setPageRecordCount(_ctx.integerValu...
("DescribeSlowSQLLogsResponse.Items[" + i + "].ExecuteCost"));
1,840,383
public TiledMap load(String fileName, TmxMapLoader.Parameters parameter) {<NEW_LINE>FileHandle tmxFile = resolve(fileName);<NEW_LINE>this.root = xml.parse(tmxFile);<NEW_LINE>ObjectMap<String, Texture> textures = new ObjectMap<String, Texture>();<NEW_LINE>final Array<FileHandle> textureFiles = getDependencyFileHandles(t...
values().toArray());
1,252,724
public IRubyObject initialize(IRubyObject[] args, Block block) {<NEW_LINE>if (args.length > 0) {<NEW_LINE>final IRubyObject arg = args[0];<NEW_LINE>if (arg instanceof RubyFixnum) {<NEW_LINE>this.status = arg;<NEW_LINE>// (status, message)<NEW_LINE>if (args.length > 1)<NEW_LINE>this.message = args[1];<NEW_LINE>} else if...
RubyFixnum.zero(getRuntime());
1,803,503
public static <TStruct extends BondSerializable> Bonded<TStruct> unmarshal(InputStream inputStream, StructBondType<TStruct> bondType) throws IOException {<NEW_LINE>ArgumentHelper.ensureNotNull(inputStream, "inputStream");<NEW_LINE>short protocol = readInt16(inputStream);<NEW_LINE>short version = readInt16(inputStream);...
(inputStream, version), bondType);
1,117,707
private void writeObject(ObjectOutputStream out) throws IOException {<NEW_LINE>// hasValue<NEW_LINE>out.writeBoolean(projectName != null);<NEW_LINE>out.writeUTF(projectName == null ? "" : projectName);<NEW_LINE>// hasValue<NEW_LINE>out.writeBoolean(tabSize != null);<NEW_LINE>out.writeInt(tabSize == null ? 0 : tabSize);...
writeUTF(entry.getKey());