content
stringlengths
40
137k
"private void setSelectedLayout(LayoutBuilder builder) {\n controller.setLayout(builder != null ? model.getLayout(builder) : null);\n}\n"
"protected void setupDatabase(Database database) throws Exception {\n dropAndCreateTable(new CreateTableStatement(null, TABLE_NAME).addColumn(VARCHAR_COL_NAME, \"String_Node_Str\").addColumn(DATE_COL_NAME, \"String_Node_Str\").addColumn(BOOLEAN_COL_NAME, database.getBooleanType()).addColumn(INT_COL_NAME, \"String_No...
"public OpenAPI buildModel() {\n return OASFactory.createObject(OpenAPI.class).info(OASFactory.createObject(Info.class).title(\"String_Node_Str\").version(\"String_Node_Str\").termsOfService(\"String_Node_Str\").contact(OASFactory.createObject(Contact.class).name(\"String_Node_Str\").url(\"String_Node_Str\").email(\...
"public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session) {\n super.initialize(session);\n XMLDescriptor xmlDescriptor = (XMLDescriptor) getDescriptor();\n Iterator mappingIterator = xmlDescriptor.getMappings().iterator();\n Iterator fieldTransformerIterator;\n DatabaseMa...
"public static boolean searchPrototypeChain(boolean instanceOnly, List<ABC> abcs, String pkg, String obj, String propertyName, Reference<String> outName, Reference<String> outNs, Reference<String> outPropNs, Reference<Integer> outPropNsKind, Reference<GraphTargetItem> outPropType, Reference<ValueKind> outPropValue) {\n...
"private List mergeTwoGroupBoundaryInfoGroups(List higherGroup, List lowerGroup) {\n List result = new CachedList(tempDir, DataEngineSession.getCurrentClassLoader(), GroupBoundaryInfo.getCreator());\n for (int i = 0; i < higherGroup.size(); i++) {\n GroupBoundaryInfo gbi1 = (GroupBoundaryInfo) higherGroup....
"public void shouldZipDir() throws Exception {\n Path toZipDir = temporaryFolder.resolve(\"String_Node_Str\");\n toZipDir.toFile().mkdirs();\n File toZipFile = toZipDir.resolve(SOME_FILE_PATH).toFile();\n toZipFile.getParentFile().mkdirs();\n toZipFile.createNewFile();\n try (ByteArrayOutputStream out...
"private void checkRenderedResults(DetectorFiducialCalibration detector, SimulatePlanarWorld simulator, List<Point2D_F64> locations2D) {\n simulator.render();\n if (!detector.process(simulator.getOutput())) {\n visualize(simulator, locations2D, null);\n failedToDetect++;\n return;\n }\n ...
"private boolean addMapObject(ISPosition2D pos, AbstractHexMapObject mapObject) {\n for (RelativePoint point : mapObject.getBlockedTiles()) {\n short currX = point.calculateX(x);\n short currY = point.calculateY(y);\n if (!grid.isInBounds(currX, currY) || grid.isBlocked(currX, currY)) {\n ...
"public boolean validateObject(PooledObject<Channel> p) {\n if (!p.getObject().isOpen()) {\n log.debug(String.format(\"String_Node_Str\", System.currentTimeMillis() - p.getCreateTime()));\n return false;\n }\n return true;\n}\n"
"private void addressHandler(org.web3j.protocol.core.methods.response.Transaction tx) {\n String to = Web3jUtil.getTo(tx);\n String key = RedisConstants.LISTEN_ETH_ADDR + \"String_Node_Str\" + to;\n String hash = tx.getHash();\n BigInteger userId = (BigInteger) redisTemplate.opsForValue().get(key);\n if ...
"public List getAllDataSources() {\n IModuleNameScope namescope = module.getModuleNameSpace(Module.DATA_SOURCE_NAME_SPACE);\n List elementList = namescope.getElements(IModuleNameScope.ARBITARY_LEVEL);\n return generateHandleList(elementList);\n}\n"
"private synchronized void addTernNatureAdapters(IConfigurationElement[] cf, Map<ITernNatureCapability, List<DefaultModule>> map) {\n for (IConfigurationElement ce : cf) {\n String id = ce.getAttribute(\"String_Node_Str\");\n String className = ce.getAttribute(\"String_Node_Str\");\n try {\n ...
"protected void update() {\n AnalysisData context = getContext().getData();\n if (context == null || context.config == null || context.handle == null) {\n reset();\n return;\n }\n root.setRedraw(false);\n ARXResult result = model.getResult();\n ARXNode node = model.getSelectedNode();\n ...
"private void setEnabledForButtons() {\n if (isCubeMode()) {\n boolean inheritXTab = getDataServiceProvider().checkState(IDataServiceProvider.INHERIT_CUBE);\n if (inheritXTab) {\n btnFilters.setEnabled(false);\n btnBinding.setEnabled(false);\n } else {\n boolean ...
"public void loadExtendsOrImplements(List<ClassOrInterfaceType> extendsList) {\n if (extendsList != null) {\n for (ClassOrInterfaceType type : extendsList) {\n String name = type.accept(nameBuilder, null);\n Symbol<?> s = table.findSymbol(name, ReferenceType.TYPE);\n if (s == ...
"public static void fireExceptionEvent(ServiceConfiguration config, ServiceChecks.Severity severity, Throwable t) {\n LifecycleEvent event = null;\n String correlationId = null;\n try {\n correlationId = Contexts.lookup().getCorrelationId();\n } catch (IllegalContextAccessException ex) {\n cor...
"protected void _resolveProperties(NamedObj toplevel, PropertyConstraintHelper toplevelHelper, List<Inequality> constraintList) throws TypeConflictException, PropertyResolutionException {\n Writer writer = null;\n List<Inequality> conflicts = new LinkedList<Inequality>();\n List<Inequality> unacceptable = new ...
"public void onClick(View view) {\n if (requestCode == Request.DIRECTORY) {\n if (currentFile.isDirectory()) {\n curDirectory = currentFile;\n data = new Intent();\n data.putExtra(FILE_EXTRA_DATA_PATH, currentFile.getAbsolutePath());\n setResult(RESULT_OK, data);\n ...
"public static void setTagLastUpdated(ReaderTag tag, String date) {\n setDateColumn(tag, \"String_Node_Str\", date);\n}\n"
"public void validate() throws RuleValidationException {\n int i = 0;\n for (GTIngredient rule : this) {\n i++;\n try {\n rule.validate();\n } catch (ValidationException e) {\n throw new ValidationException(\"String_Node_Str\" + i + \"String_Node_Str\" + e.getMessage());...
"private static void setOnLongClickListener(Object classObj, View contentView, Method method) {\n OnLongClick onLongClick = method.getAnnotation(OnLongClick.class);\n int[] ids = onLongClick.value();\n if (ids != null) {\n for (int id : ids) {\n View view = viewFinder.findViewById(id);\n ...
"protected void initialize() throws Exception {\n for (Map.Entry<Id.Namespace, StreamSpecification> streamSpecEntry : streamMetaStore.listStreams().entries()) {\n Id.Stream streamId = Id.Stream.from(streamSpecEntry.getKey(), streamSpecEntry.getValue().getName());\n StreamConfig config;\n try {\n...
"public Object unmarshal(String v) throws Exception {\n if (v.equals(\"String_Node_Str\")) {\n return null;\n }\n String fixedString = v.replace(\"String_Node_Str\", \"String_Node_Str\");\n int lastSlash = fixedString.lastIndexOf('/');\n String entityType = fixedString.substring((baseURI + context...
"public Template buildTemplate(ComputeService computeService, ConfigBag config) {\n TemplateBuilder templateBuilder = (TemplateBuilder) config.get(TEMPLATE_BUILDER);\n if (templateBuilder == null) {\n templateBuilder = new PortableTemplateBuilder<PortableTemplateBuilder<?>>();\n } else {\n LOG.de...
"public void onClick(View view) {\n if (mContactUri == null) {\n return;\n }\n if (view.getId() == R.id.star) {\n final ContentValues values = new ContentValues(1);\n values.put(Contacts.STARRED, mStarredView.isChecked());\n mContentResolver.update(mContactUri, values, null, null);\...
"public void startRequest(DIRRequest rq) {\n try {\n final service_registerRequest request = (service_registerRequest) rq.getRequestMessage();\n final ServiceRegistry reg = request.getService();\n byte[] data = database.directLookup(DIRRequestDispatcher.DB_NAME, DIRRequestDispatcher.INDEX_ID_SER...
"private void newBrowseItemView(String browseItem) throws RemoteException {\n for (XSDElementDeclaration decl : declList) {\n String fullName = BROWSE_ITEMS + decl.getName();\n if (fullName.equals(browseItem)) {\n XtentisPort port = getXtentisPort();\n WSView view = new WSView();\...
"public void onSubscribe(WireOut wireOut) {\n wireOut.writeEventName(identifier).marshallable(WriteMarshallable.EMPTY).writeComment(toString() + \"String_Node_Str\" + hub.toString() + \"String_Node_Str\");\n}\n"
"public void startCall() {\n if (waitingTasksMap != null && !waitingTasksMap.containsKey(REJECT_CALL_TASK)) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n Runnable callTask = callTasksMap.get(START_CALL_TASK);\n executeCallTask(callTask);\n }\n}\n"
"public void setApiVersion(String apiVersion) {\n if (null != apiVersion && !apiVersion.trim().isEmpty()) {\n _apiVersion = apiVersion;\n }\n}\n"
"private void setStateOfMinorGrid() {\n boolean enabled;\n if (ChartUIUtil.is3DWallFloorSet(getChart())) {\n enabled = getAxisForProcessing().getMinorGrid().getLineAttributes().isSetVisible() && getAxisForProcessing().getMinorGrid().getLineAttributes().isVisible();\n if (!ChartUIUtil.is3DType(getCha...
"public void fire() throws IllegalActionException {\n super.fire();\n for (int i = 0; i < trigger.getWidth(); i++) {\n if (trigger.hasToken(i)) {\n trigger.get(i);\n }\n }\n Precision precision = new Precision(((Parameter) getAttribute(\"String_Node_Str\")).getExpression());\n Ov...
"protected void setUp() {\n if (ROUTER_SERVICE.isStarted())\n return;\n final File TEMP_DIR = new File(\"String_Node_Str\");\n TEMP_DIR.mkdirs();\n TEMP_DIR.deleteOnExit();\n SettingsManager.instance().setDirectories(new File[] { TEMP_DIR });\n SettingsManager.instance().setExtensions(\"String_...
"public void testMultipleIndicesAndCheckpoint() throws Exception {\n database = BabuDBFactory.createBabuDB(new BabuDBConfig(baseDir, baseDir, 1, 0, 0, SyncMode.SYNC_WRITE, 0, 0, compression, maxNumRecs, maxBlockFileSize, true, 0, Logging.LEVEL_DEBUG));\n Database db = database.getDatabaseManager().createDatabase(...
"public void filterComponents(String searchTerm, boolean filterTarget) {\n List<LabeledRectangle> components;\n if (filterTarget == true) {\n components = cdmComponents;\n lastTargetFilter = searchTerm;\n } else {\n components = sourceComponents;\n lastSourceFilter = searchTerm;\n ...
"public void action(Action action) {\n if (action.getActionType() != EActionType.SCREEN_CHANGE) {\n System.out.println(\"String_Node_Str\" + action.getActionType());\n }\n switch(action.getActionType()) {\n case BUILD:\n this.setSelection(new SelectionSet());\n EBuildingType...
"public void testGroupOnNumber() throws Exception {\n groupOnNumber(new Integer(10), 3);\n}\n"
"private String getThreadingSummary(int levels) {\n if (levels <= 1)\n return getString(R.string.none);\n return String.format(getString(R.string.levels_quantity), levels);\n}\n"
"private Row getVisibleRow(Row row) {\n if (row instanceof Group) {\n final Group g = (Group) row;\n if (!g.isOpen()) {\n for (int j = 0, len = g.getItemCount(); j < len && _it.hasNext(); j++) _it.next();\n }\n }\n while (!row.isVisible() && _it.hasNext()) row = (Row) _it.next()...
"public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {\n context.startService(new Intent(context, BluetoothOppService.class));\n } else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED)) {\n if (Bl...
"public Comment create(final long created_at) throws IOException {\n long __id = realCreate(new AttrSetter() {\n public void set(PreparedStatement stmt) throws SQLException {\n stmt.setTimestamp(1, new Timestamp(created_at));\n }\n }, getInsertStatement(Arrays.asList(\"String_Node_Str\", ...
"public void setCookieMode(Boolean cookieMode) {\n debug.message(\"String_Node_Str\" + cookieMode);\n if (cookieMode != null) {\n this.cookieMode = cookieMode;\n }\n}\n"
"public void useTimeAttribData(FloatBuffer attributeBuffer) {\n painterLock.lock();\n try {\n this.timeAttributeBuffer = attributeBuffer;\n this.updateSelectedTime();\n } finally {\n lock.unlock();\n }\n}\n"
"public boolean isRed(JobletContainer jobletContainer) {\n IProcess2 jobletProcess = (IProcess2) jobletContainer.getNode().getComponent().getProcess();\n ERepositoryStatus status = ProxyRepositoryFactory.getInstance().getStatus(jobletProcess.getProperty().getItem());\n if (status == ERepositoryStatus.LOCK_BY_O...
"protected String getRelativeRequestURI(Command command) {\n List<String> argumentList = command.getArgumentList();\n throwExceptionIfArguementIsEmpty(argumentList);\n String uri = \"String_Node_Str\";\n String optionName = CommandOption.DOMAIN_SEARCH_BY_NAME.getOption();\n String optionNsLdhName = Comma...
"public List<String> getAllValueDefinitions() {\n return new ArrayList<String>(2);\n}\n"
"public static FilterExpression replaceMilestoneAliases(IModel model, FilterExpression expr) {\n List<String> repoIds = getMetaQualifierContent(expr, QualifierType.REPO).stream().map(String::toLowerCase).collect(Collectors.toList());\n if (repoIds.isEmpty()) {\n repoIds.add(model.getDefaultRepo().toLowerCa...
"void testSingle(List<Output> in, String expected) {\n OutputStream outStream = new ByteArrayOutputStream();\n PrintStream printStream = new PrintStream(outStream, true);\n PrintConsumer printConsumer = new PrintConsumer(printStream);\n printConsumer.consumeOutput(in);\n String actual = outStream.toStrin...
"protected void addEidApplication() {\n DedicatedFile eIdAppl = new DedicatedFile(null, new DedicatedFileIdentifier(HexString.toByteArray(AID_EID)));\n mf.addChild(eIdAppl);\n addEidDg1(eIdAppl);\n addEidDg2(eIdAppl);\n addEidDg3(eIdAppl);\n addEidDg4(eIdAppl);\n addEidDg5(eIdAppl);\n addEidDg6(...
"public void run() {\n if (fTimeGraphViewer.getControl().isDisposed()) {\n return;\n }\n ITimeGraphEntry[] entries = fEntryList.toArray(new ITimeGraphEntry[0]);\n Arrays.sort(entries, new TraceEntryComparator());\n fTimeGraphViewer.setInput(entries);\n fTimeGraphViewer.setTimeBounds(fStartTime,...
"public static final long[][] bitwiseXor(final long[][] matrix1, final long[][] matrix2) {\n int rows = _rows(matrix1);\n int columns = _columns(matrix1);\n _checkSameDimension(\"String_Node_Str\", matrix1, matrix2);\n long[][] returnValue = new long[rows][columns];\n for (int i = 0; i < rows; i++) {\n ...
"public String format(int indent) {\n try {\n boolean useIndentAmount = false;\n TransformerFactory factory = TransformerFactory.newInstance();\n if (indent != -1) {\n try {\n factory.setAttribute(\"String_Node_Str\", indent);\n } catch (IllegalArgumentExcept...
"double getSubDiv(double x, double y, double x1, double y1) throws ZeroDivException {\n\tif (x == x1){\n\t\tthrow new ZeroDivException(x, x1);\n\t}\n\treturn (y - y1) / (x - x1);\n}\n"
"public SerializerResult error(final ODataServerError error) throws SerializerException {\n OutputStream outputStream = null;\n SerializerException cachedException = null;\n try {\n buffer = new CircleStreamBuffer();\n JsonGenerator json = new JsonFactory().createGenerator(buffer.getOutputStream(...
"protected Object getInternal(final K key, ExpiryPolicy expiryPolicy, boolean async) {\n final long start = System.nanoTime();\n ensureOpen();\n validateNotNull(key);\n final Data keyData = toData(key);\n Object cached = getCachedValue(keyData, !async);\n if (cached != NOT_CACHED) {\n return as...
"public void addProperty(final EdmProperty property) {\n if (isAll == AllKinds.IMPLICITLYTRUE) {\n isAll = AllKinds.FALSE;\n }\n if (!isAll && !properties.contains(property)) {\n properties.add(property);\n }\n}\n"
"public boolean onCommand(CommandPerformEvent event) {\n if (event.getArgs().length < 2) {\n return false;\n } else {\n String message = StringUtil.combineSplit(1, event.getArgs(), \"String_Node_Str\");\n Nexus.getInstance().sendIRC().message(event.getArgs()[0], message);\n return true...
"private void unregister(boolean fireEvent) {\n synchronized (initializationLock) {\n RegistrationState currRegState = getRegistrationState();\n if (connection != null && connection.isConnected())\n connection.disconnect();\n if (fireEvent) {\n fireRegistrationStateChanged(...
"public int compareTo(final CtfIterator o) {\n if (this.getRank() < o.getRank()) {\n return -1;\n else if (this.getRank() > o.getRank())\n return 1;\n return 0;\n}\n"
"protected void createTexts() {\n for (Iterator<ComplexTableViewerColumn> iterator = columns.iterator(); iterator.hasNext(); ) {\n ComplexTableViewerColumn column = iterator.next();\n if (column.isCombo()) {\n CCombo combo = new CCombo(mainComposite, SWT.BORDER | SWT.READ_ONLY);\n ...
"void handleMaster(Address masterAddress) {\n lock.lock();\n try {\n if (!node.joined() && !node.getThisAddress().equals(masterAddress)) {\n logger.log(Level.FINEST, \"String_Node_Str\" + this);\n final Address currentMaster = node.getMasterAddress();\n if (currentMaster !=...
"public void setDirectories(final File[] dirArray) {\n HashMap directories = new HashMap();\n for (int i = 0; i < dirArray.length; i++) {\n if (dirArray[i].isDirectory())\n directories.put(dirArray[i], \"String_Node_Str\");\n }\n Set fileSet = directories.keySet();\n Object[] prunedFile...
"private UISlider getCustomSlider() {\n if (customSlider == null) {\n CGRect frame = new CGRect(0.0, 12.0, 130.0, SLIDER_HEIGHT);\n customSlider = new UISlider(frame);\n customSlider.addOnValueChangedListener(new UIControl.OnValueChangedListener() {\n public void onValueChanged(UICont...
"public void testLessThanOrEqual() throws Exception {\n FilterDescriptor idFilter = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.LESS_THAN_OR_EQUAL, 3);\n ParamExpression paramExpression = MybatisQueryProvider.getWhereExpression(ProductView.class, idFilter);\n Map<String, Objec...
"public boolean requestComplete(HttpUriRequest method, HttpResponse response) {\n aborter = null;\n if (downloadStatus == DownloadState.ABORTED) {\n return false;\n }\n InputStream torrentDownloadStream = null;\n FileOutputStream torrentOutputStream = null;\n FileInputStream torrentInputStream ...
"public void widgetSelected(SelectionEvent e) {\n try {\n List<String> topChilds = getTopChildrenNames();\n IdentityConstraintInputDialog dialog = new IdentityConstraintInputDialog(entityWrapper.getSourceEntity(), getShell(), Messages.EntityKeyConfigComposite_AddANewKey, topChilds, entityWrapper.getSou...
"private static void runForN(int N) {\n PList<Float> output;\n PList<Float> input = generateRandomFloatList(N);\n PList<Integer> input2 = generateRandomIntList(N);\n System.out.println(\"String_Node_Str\");\n output = input.map(new LambdaMapper<Float, Float>() {\n public Float map(Float input) {\n...
"private void decodeGps(Position position, ChannelBuffer buf) {\n DateBuilder dateBuilder = new DateBuilder(timeZone).setDate(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte()).setTime(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte());\n position.setTime(dateBuilder.getD...
"public void actionPerformed(ActionEvent e) {\n GUIAddDog guiAddDog = new GUIAddDog(email, guiDogs);\n guiAddDog.setVisible(true);\n dispose();\n}\n"
"public final synchronized void getReadAccess() {\n if (_readOnly) {\n return;\n }\n while (true) {\n Thread current = Thread.currentThread();\n if (current instanceof PtolemyThread) {\n PtolemyThread ptThread = (PtolemyThread) current;\n if (ptThread.readDepth != 0) ...
"private Cell[][] markMultiTableHeaders(Cell[][] cells) {\n if (cells == null)\n return cells;\n for (int i = 0; i < cells.length; i++) {\n if (cells[i][0].isBreakingLineOverRow()) {\n if (i - 2 >= 0 && !cells[i - 2][0].isIs_header() && !isSequentiallyBreakingLine(cells, i - 2, 0) && cell...
"public TFAgentStatBatch map(AgentStatBo agentStatBo) {\n try {\n List<TFAgentStat> tFAgentstatList = tFAgentStatMapper.map(agentStatBo);\n long startTimestamp = getStartTimestamp(agentStatBo);\n TFAgentStatBatch tFAgentStatBatch = new TFAgentStatBatch(agentStatBo.getAgentId(), startTimestamp, t...
"protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) {\n if (menuItem.isSelected()) {\n g = g.create();\n try {\n AntialiasingManager.activateAntialiasing(g);\n int menuWidth = menuItem.getWidth();\n int menuHeight = menuItem.getHeight();\n ...
"public void addTransition(Object edge, AtnState otherState) {\n if (!edge.equals(Constants.epsilon) && !(edge instanceof TokenType) && !(edge instanceof GruleType) && !(edge instanceof Predicate))\n throw new DropinccException(\"String_Node_Str\" + edge);\n if (this.transitions.containsKey(edge)) {\n ...
"private void prepareCommonParams(boolean isGsMode, final List<String> args, final SourceType sourceType) {\n String alg = super.getModelConfig().getTrain().getAlgorithm();\n args.add(\"String_Node_Str\");\n addRuntimeJars(args);\n args.add(\"String_Node_Str\");\n if (CommonUtils.isDesicionTreeAlgorithm(...
"public static String getIdentifier(String identifier) {\n String id = identifier.trim();\n if (DSSXMLUtils.isOid(id)) {\n id = id.substring(id.lastIndexOf(':') + 1);\n } else {\n return id;\n }\n return id;\n}\n"
"public void setVisible(boolean b) {\n if (!properties.containsKey(PROPERTY_VISIBLE)) {\n properties.put(PROPERTY_VISIBLE, Boolean.valueOf(renderable.isVisible()));\n }\n renderable.setVisible(b);\n}\n"
"public static String getCanonicalizedJsonString(Object object) {\n String canonicalizedJsonString = null;\n if (null != object) {\n if (object instanceof JsonElement) {\n canonicalizedJsonString = gsonWithoutHtmlEscaping.toJson(canonicalize((JsonElement) object));\n } else {\n ...
"public final void setBlock(int x, int y, int z, byte type, boolean update, boolean overwrite) {\n int chunkPosX = calcChunkPosX(x) % (int) Configuration.VIEWING_DISTANCE_IN_CHUNKS.x;\n int chunkPosZ = calcChunkPosZ(z) % (int) Configuration.VIEWING_DISTANCE_IN_CHUNKS.y;\n int blockPosX = calcBlockPosX(x, chunk...
"protected void onCameraResolutionChange(int width, int height) {\n if (verbose)\n Log.i(TAG, \"String_Node_Str\" + cameraWidth + \"String_Node_Str\" + cameraHeight + \"String_Node_Str\");\n}\n"
"public boolean onPrepareOptionsMenu(Menu menu) {\n boolean contentChanged = !mOriginalContent.equals(mText.getText().toString());\n boolean isNoteUnencrypted = isNoteUnencrypted();\n menu.setGroupVisible(Menu.CATEGORY_ALTERNATIVE, isNoteUnencrypted);\n if (mState == STATE_EDIT_NOTE_FROM_SDCARD) {\n ...
"protected void init(RepositoryNode node) {\n ERepositoryObjectType nodeType = (ERepositoryObjectType) node.getProperties(EProperties.CONTENT_TYPE);\n if (ERepositoryObjectType.METADATA_FILE_DELIMITED != null && !ERepositoryObjectType.METADATA_FILE_DELIMITED.equals(nodeType)) {\n return;\n }\n IProxy...
"public Object calculate(Object value) throws BirtException {\n if (value == null || value.equals(\"String_Node_Str\")) {\n return value;\n }\n if (value.toString().length() <= interval)\n return value;\n return value.toString().substring(0, interval);\n}\n"
"protected boolean execute(Map<Parameters, String> params) throws JumbuneException {\n String debugAnalyserReport = null;\n Map<String, String> report = null;\n try {\n LOGGER.info(\"String_Node_Str\");\n YamlLoader yamlLoader = (YamlLoader) super.getLoader();\n YamlConfig yamlConfig = (Ya...
"public void onCreate(SurfaceHolder surfaceHolder) {\n super.onCreate(surfaceHolder);\n sketch = createSketch();\n sketch.initSurface(PWallpaper.this, getSurfaceHolder());\n sketch.startSurface();\n sketch.preview = isPreview();\n if (isPreview())\n requestPermissions();\n setTouchEventsEnab...
"private void onWhereClause(EntityMetadata metadata, Object key, CQLTranslator translator, StringBuilder queryBuilder, MetamodelImpl metaModel) {\n queryBuilder.append(CQLTranslator.ADD_WHERE_CLAUSE);\n if (metaModel.isEmbeddable(metadata.getIdAttribute().getBindableJavaType())) {\n Field[] fields = metada...
"public void addEventListener(final String eventName, final LeoObject function) {\n switch(eventName.toLowerCase()) {\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(BombDisarmedEvent.class, new BombDisarmedListener() {\n public void onBombDisarm...
"public synchronized int hashCode() {\n if (__hashCodeCalc) {\n return 0;\n }\n __hashCodeCalc = true;\n int _hashCode = 1;\n _hashCode += Long.valueOf(getRptElementId()).hashCode();\n _hashCode += Long.valueOf(getDataSetId()).hashCode();\n __hashCodeCalc = false;\n return _hashCode;\n}\n...
"public static void main(final String[] args) throws Exception {\n checkArguments(args);\n setupDefaultEnvironment(args, false);\n load();\n}\n"
"private void _storeEndpoints() {\n ActorGraphModel aGraph = (ActorGraphModel) this.getLayoutTarget().getGraphModel();\n boolean allDirectionsSet = false;\n Set edges = _ptolemyDiva2KielerEdges.keySet();\n while (!allDirectionsSet) {\n allDirectionsSet = true;\n for (Iterator edgeIter = edges....
"public JSONObject makeRequest(String method, Map<String, String> arguments) throws JSONException {\n if (key.length() == 0 || secret.length() == 0) {\n return new JSONObject(\"String_Node_Str\");\n }\n if (arguments == null) {\n arguments = new HashMap<>();\n }\n arguments.put(\"String_Nod...
"private static int parseMultiName(ConstantPool constants, Flasm3Lexer lexer) throws ParseException, IOException {\n ParsedSymbol s = lexer.lex();\n int kind = 0;\n int name_index = -1;\n int namespace_index = -1;\n int namespace_set_index = -1;\n int qname_index = -1;\n List<Integer> params = new ...
"public static String stripMetadata(final String contents) {\n final String[] lines = splitPreserveAllTokens(contents, \"String_Node_Str\");\n final List<String> code = new ArrayList<String>();\n boolean started = false;\n boolean finished = false;\n for (final String line : lines) {\n if (!finish...
"public static Marker getMarker(Marker... markers) {\n Marker output = new MultiMarker(markers);\n return output;\n}\n"
"private void extractColumns(CubeQueryContext cubeql) throws LensException {\n ASTNode selTree = cubeql.getSelectAST();\n if (selTree.getChildCount() == 1) {\n ASTNode star = HQLParser.findNodeByPath(selTree, TOK_SELEXPR, TOK_ALLCOLREF);\n if (star == null) {\n star = HQLParser.findNodeBy...
"public void setHighAddress(long highAddress) {\n allocLastPage(highAddress - (((int) highAddress) & (log.getCachePageSize() - 1)));\n this.highAddress = highAddress;\n}\n"
"static List<ShardIdWithVersion> removeIntersectingShards(List<ShardIdWithVersion> shardsForTime, String dataset, final DateTime start) {\n final List<ShardTruncatedStart> shardsForTimeTruncated = new ArrayList<ShardTruncatedStart>(shardsForTime.size());\n for (ShardIdWithVersion shard : shardsForTime) {\n ...
"protected void runShadowProcess(Boolean flag) {\n XmlFileConnection connection2 = getConnection();\n String tempXmlFilePath = getContextXmlPath(connection2);\n if (tempXmlFilePath == null ? XmlUtil.isXSDFile(connection2.getXmlFilePath()) : XmlUtil.isXSDFile(connection2.getXmlFilePath()) || XmlUtil.isXSDFile(t...
"public static void rollbackIfNeeded(Connection c, String action, Object o) {\n try {\n c.rollback();\n c.setAutoCommit(true);\n } catch (SQLException e) {\n log.warn(\"String_Node_Str\" + action + \"String_Node_Str\" + o + \"String_Node_Str\" + ExceptionUtils.getSQLExceptionCause(e), e);\n ...