content stringlengths 40 137k |
|---|
"public IClass getRefClass() {\n if (this.refClass != null) {\n return this.refClass;\n }\n final String className = this.getTypePrefix() + \"String_Node_Str\";\n return this.refClass = Package.dyvilRef.resolveClass(className);\n}\n"
|
"private void setDuplex(String duplex) {\n if (duplex != null && !\"String_Node_Str\".equalsIgnoreCase(duplex)) {\n String duplexValue = duplex;\n String tumbleValue = \"String_Node_Str\";\n if (\"String_Node_Str\".equalsIgnoreCase(duplex)) {\n duplexValue = \"String_Node_Str\";\n ... |
"public String getName(long instant, Locale locale) {\n if (locale == null) {\n locale = Locale.getDefault();\n }\n String nameKey = getNameKey(instant);\n if (nameKey == null) {\n return iID;\n }\n String name = cNameProvider.getName(locale, iID, nameKey);\n if (name != null) {\n ... |
"public static Result queryMementos() {\n return ok(views.html.search.render(new MementoQuery(), queryForm));\n}\n"
|
"public void addChangeListener_duplicatedListener() {\n final AtomicInteger counter = new AtomicInteger(0);\n RealmChangeListener<Realm> listener = new RealmChangeListener<Realm>() {\n public void onChange(Realm object) {\n counter.incrementAndGet();\n }\n };\n Realm realm = looperT... |
"public static WritableRaster createWritableChild(WritableRaster raster, int parentX, int parentY, int width, int height, int childMinX, int childMinY, int[] bandList) {\n return raster.createWritableChild(parentX, parentY, width, height, childMinX, childMinY, bandList);\n}\n"
|
"public void onSettingsUpdated(Exception error) {\n if (error == null && TextUtils.isEmpty(mPost.getPostFormat())) {\n updatePostFormat(mSiteSettings.getDefaultPostFormat());\n }\n}\n"
|
"public List<Move> allMoves(Board board) {\n LinkedList<Move> potentialMoves = new LinkedList<Move>();\n if (board.getSpace(this).getUp() != null) {\n potentialMoves.add(new MovementMove(board.getSpace(this), board.getSpace(this).getUp()));\n if (board.getSpace(this).getUp().getRight() != null)\n ... |
"private String stringFromSQLTime(Time sourceTime, QName schemaType) {\n if (XMLConstants.DATE_TIME_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(ne... |
"public List<MorphParse> parse(String word) {\n List<MorphParse> results = Lists.newArrayListWithCapacity(2);\n if (!Strings.containsNone(word, \"String_Node_Str\")) {\n results = parseNumeral(word);\n return results;\n }\n if (word.contains(\"String_Node_Str\")) {\n StemAndEnding se = ... |
"private void _placePortFigures(CompositeFigure figure, List portList, int direction) {\n Iterator ports = portList.iterator();\n int number = 0;\n int count = portList.size();\n while (ports.hasNext()) {\n Port port = (Port) ports.next();\n Figure portFigure = getController().getFigure(port);... |
"private void writeMetadataEntry(final String s) throws EoulsanException {\n if (!this.metadataFile.isLocalFile()) {\n return;\n }\n try (PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream(this.metadataFile.toFile(), true), Globals.DEFAULT_CHARSET))) {\n out.println(s);... |
"public boolean buyTrain(BuyTrain action) {\n TrainI train = action.getTrain();\n PublicCompanyI company = action.getCompany();\n String companyName = company.getName();\n TrainI exchangedTrain = action.getExchangedTrain();\n SpecialTrainBuy stb = null;\n String errMsg = null;\n int presidentCash =... |
"private Location buildJobJar(BasicMapReduceContext context) throws IOException {\n ApplicationBundler appBundler = new ApplicationBundler(ImmutableList.of(\"String_Node_Str\", \"String_Node_Str\"), ImmutableList.of(\"String_Node_Str\", \"String_Node_Str\"));\n Id.Program programId = context.getProgram().getId();... |
"public final void start() {\n monitorSite = config.getParameter(\"String_Node_Str\");\n if (StringUtils.isEmpty(monitorSite)) {\n return;\n }\n try {\n if (start.compareAndSet(false, true)) {\n collectScheduledFuture = collectScheduleExecutor.scheduleWithFixedDelay(new Runnable() {... |
"private static void renderPlanet(float partialTickTime, WorldClient world, TextureManager renderEngine, Tessellator tessellator, CelestialBodyDescriptor body, float size) {\n GL11.glTranslatef(0.0F, 0.0F, 0.0F);\n GL11.glRotatef(body.getyAngle(), 0.0F, 1.0F, 0.0F);\n float angle = world.provider.calculateCele... |
"private static void _replaceAndPrintContent(StringBuffer templateCode, String filename) throws IOException {\n String codeString = templateCode.toString();\n for (String key : replaceMap.keySet()) {\n codeString = codeString.replaceAll(key, replaceMap.get(key));\n }\n FileWriter writer = null;\n ... |
"void addConvertedValueOrValues() {\n boolean valueIsArray = valueToReturn.getClass().isArray();\n boolean valueIsIterable = valueToReturn instanceof Iterable<?>;\n if (valueIsArray || valueIsIterable || valueToReturn instanceof Iterator<?>) {\n if (returnType == void.class || hasReturnOfDifferentType()... |
"private void _validate(final AMXProxy proxy, final ProblemList problems) throws InstanceNotFoundException {\n progress(\"String_Node_Str\", proxy.objectName());\n final ObjectName objectName = proxy.objectName();\n try {\n validateObjectName(proxy);\n } catch (final Exception t) {\n problems.... |
"private void readHeaders() throws IOException {\n if (_byteReader == null)\n throw new ReaderIsNullException();\n String str = _byteReader.readLine();\n if (str == null || str.equals(\"String_Node_Str\"))\n throw new IOException();\n if (!CommonUtils.isJava118())\n BandwidthStat.HTTP_H... |
"public int getDownloadStatus() {\n if (watchdog == null || watchdog.isAborted() && downloadStatus == DOWNLOAD_RUNNING) {\n setDownloadStatus(DOWNLOAD_NOT_RUNNING);\n }\n}\n"
|
"private void parsePyxlTag() {\n final PsiBuilder.Marker pyxl = myBuilder.mark();\n myBuilder.advanceLexer();\n IElementType token = myBuilder.getTokenType();\n if (!parsePyxlTagName()) {\n myBuilder.error(\"String_Node_Str\");\n pyxl.done(PyxlElementTypes.PYXL_STATEMENT);\n return;\n ... |
"private ResidueNumber findResNumInOtherChains(int i, Chain chain) {\n for (Chain c : getFirstModelChains()) {\n if (c == chain)\n continue;\n Group seqResGroup = c.getSeqResGroup(i);\n if (seqResGroup == null) {\n logger.warn(\"String_Node_Str\", i, c.getId(), chain.getId(... |
"public void listAllRoles(HttpRequest httpRequest, HttpResponder httpResponder) throws Exception {\n ensureSecurityEnabled();\n httpResponder.sendJson(HttpResponseStatus.OK, authorizerInstantiator.get().listAllRoles());\n createLogEntry(httpRequest, null, HttpResponseStatus.OK);\n}\n"
|
"private void checkIfDividePartition(Short partition, ShortPoint2D pos1, ShortPoint2D pos2) {\n System.out.println(\"String_Node_Str\" + partition + \"String_Node_Str\" + pos1 + \"String_Node_Str\" + pos2);\n if (partition != NO_PLAYER_PARTITION_ID && !PartitionsDividedTester.isPartitionNotDivided(this, pos1, pos... |
"public void write() throws IOException {\n FileWriter output = null;\n OutputStreamWriter writer = null;\n if (mFile.exists()) {\n mFile.delete();\n }\n try {\n output = new FileWriter(mFile);\n output.write(iteration + newLine);\n output.write(page + newLine);\n outpu... |
"public static void postUpdateBlock(World world, BlockPos pos) {\n int i1 = (pos.getZ() & 15) << 4 | (pos.getX() & 15);\n Chunk chunk = world.getChunkFromBlockCoords(pos);\n try {\n int[] precMap = (int[]) field_Chunk_precipitationHeightMap.get(chunk);\n if (pos.getY() >= precMap[i1] - 1) {\n ... |
"public void setKey(int key) {\n setValue(key);\n}\n"
|
"protected ArrayList<HappyBottle> getMyLocalAfter(int minLat, int maxLat, int minLong, int maxLong, int limit, long timeafter) {\n SQLiteDatabase db = h.getReadableDatabase();\n String[] args = { Integer.toString(minLat), Integer.toString(maxLat), Integer.toString(minLong), Integer.toString(maxLong), Long.toStrin... |
"public List<ClusterResult> handle(List<LocalId> curVertices, ILLGraph graph, int componentId) throws WikiBrainException {\n ConceptualignHelper.ScanResult origScanResult = ConceptualignHelper.scanVerticesOfComponent(curVertices);\n boolean origNotAmbiguous = origScanResult.clarity.equals(1.0);\n if (origNotAm... |
"public void onPlayerMove(PlayerMoveEvent e) {\n final Player player = e.getPlayer();\n if (player.isDead()) {\n return;\n }\n if (!player.getWorld().getName().equalsIgnoreCase(Settings.worldName)) {\n return;\n }\n if (player.isOp() && !Settings.damageOps) {\n return;\n }\n ... |
"private void extractPerms(PackageInfo info, Set<MyPermissionInfo> permSet, PackageInfo installedPkgInfo) {\n final String[] strList = info.requestedPermissions;\n if (strList == null || strList.length == 0) {\n return;\n }\n for (String permName : strList) {\n try {\n PermissionInf... |
"private boolean afterMessageDeliveryInternal(ResourceHandle resourceHandle) {\n boolean success = false;\n EjbInvocation invocation = null;\n invocation = (EjbInvocation) invocationManager.getCurrentInvocation();\n if (invocation == null) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", new Object... |
"protected List<SameTypePair<Integer>> doGenerateEdges() {\n long threshold = getConfiguration().getNumberOfEdges() * 4;\n long potentialEdges = getConfiguration().getNumberOfNodes() * (getConfiguration().getNumberOfNodes() - 1);\n return doGenerateEdgesSimpler();\n}\n"
|
"public void processEvent(EventObject obj) {\n ModelResourceEvent event = (ModelResourceEvent) obj;\n if (ModelIdentifier.isFunctionModel(event.getModelResource())) {\n try {\n IFile file = (IFile) event.getModelResource().getCorrespondingResource();\n final IPath path = ModelUtil.get... |
"protected void handleDrop() {\n boolean isScalarparameter = false;\n boolean isResultSetColumn = false;\n boolean isEmbeddImage = false;\n final Object template = TemplateTransfer.getInstance().getTemplate();\n Assert.isNotNull(template);\n Assert.isTrue(handleValidateDrag(template));\n updateTarg... |
"public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n int layout = R.layout.fragment_add_clips;\n FragmentManager fm = getSupportFragmentManager();\n if (mMenu != null) {\n mMenu.findItem(R.id.itemInfo).setVisible(false);\n mMenu.findItem(R.id.itemTrim).setVis... |
"private String doHerokuSingleSignOn(String externalId, long timestampSeconds, String token, String email) throws AuthenticationException {\n String expectedToken = makeHerokuSsoToken(externalId, timestampSeconds);\n log.debug(\"String_Node_Str\", externalId, token, timestampSeconds, expectedToken);\n long now... |
"public void onTick(Instrument instrument, ITick tick) throws JFException {\n if (instrument != this.instrument)\n return;\n if (bar[PREV - 1] == null || bar[PREV] == null)\n return;\n if (priceToPips(instrument, dc[PREV - 1][UPPER] - dc[PREV - 1][LOWER]) < thresholdPips) {\n return;\n ... |
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getTargetId().equals(getSourceId())) {\n ZoneChangeEvent zEvent = (ZoneChangeEvent) event;\n Permanent permanent = zEvent.getTarget();\n if (permanent != null && zEvent.getToZone() == Zone.GRAVEYARD && zEvent.getFromZone() ==... |
"public void restoreSession(LensSessionHandle sessionHandle, String userName, String password) throws LensException {\n HandleIdentifier handleIdentifier = new HandleIdentifier(sessionHandle.getPublicId(), sessionHandle.getSecretId());\n SessionHandle hiveSessionHandle = new SessionHandle(new TSessionHandle(handl... |
"public void fillContextMenu(IMenuManager menu) {\n TreeSelection treeSelection = ((TreeSelection) this.getContext().getSelection());\n List<IFile> selectedFiles = new ArrayList<IFile>();\n if (treeSelection.size() == 1) {\n Object obj = treeSelection.getFirstElement();\n if (obj instanceof IFold... |
"private Element createAttribute(Document document, AttributeColumn column) throws Exception {\n Element attributeE = document.createElement(\"String_Node_Str\");\n attributeE.setAttribute(\"String_Node_Str\", column.getId());\n attributeE.setAttribute(\"String_Node_Str\", column.getTitle());\n switch(colum... |
"private void saveTransformation(int intervals, double[][] cx, double[][] cy, boolean bIsReverse) {\n String filename = fn_tnf_1;\n if (bIsReverse)\n filename = fn_tnf_2;\n if (filename.equals(\"String_Node_Str\")) {\n if (this.dialog.isMacroCall()) {\n if (false == bIsReverse) {\n ... |
"public UserVm rebootVirtualMachine(RebootVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException {\n Account caller = CallContext.current().getCallingAccount();\n Long vmId = cmd.getId();\n UserVmVO vmInstance = _vmDao.findById(vmId);\n if (vmInstance == null) {\n throw new Inv... |
"public void clickNodes(Node[] nodes) {\n try {\n Node n = nodes[0];\n Color[] colors;\n float[] positions;\n if (heatMapPanel.isUsePalette()) {\n colors = heatMapPanel.getSelectedPalette().getColors();\n positions = heatMapPanel.getSelectedPalette().getPositions();\... |
"public void testSMGetHitAllWithOffsetMoreCount() {\n try {\n keyList = new ArrayList<String>();\n for (int i = 0; i < 50; i++) {\n mc.delete(KEY + i).get();\n keyList.add(KEY + i);\n }\n for (int i = 0; i < 50; i++) {\n if (i % 2 == 0)\n mc... |
"private static Set getReferencedDimLevel(IScriptExpression expr, List bindings, boolean onlyFromDirectReferenceExpr) throws DataException {\n if (expr == null || expr.getText() == null || expr.getText().length() == 0)\n return new HashSet();\n if (expr.getText() == null || expr.getText().length() == 0)\n ... |
"private void setPaperTray(int paperTrayCode) {\n out.println(\"String_Node_Str\");\n out.print(\"String_Node_Str\");\n if (paperTrayCode == IPostscriptRenderOption.TRAYCODE_MANUAL) {\n out.println(\"String_Node_Str\");\n out.println(trayString);\n out.println(\"String_Node_Str\");\n } ... |
"public void changeHeightTowards(short x, short y, byte targetHeight) {\n landscapeGrid.flattenAndChangeHeightTowards(x, y, targetHeight);\n objectsGrid.removeMapObjectTypes(x, y, EMapObjectType.TO_BE_REMOVED_WHEN_FLATTENED);\n}\n"
|
"public boolean addInstanceURLVarToTemplatePlan(final BPELScopeActivity templatePlan) {\n final String xsdPrefix = \"String_Node_Str\" + System.currentTimeMillis();\n final String xsdNamespace = \"String_Node_Str\";\n this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix, xsdNamespace, templatePlan.getBuildP... |
"public Object invoke(Object self, Method method, Method proceed, Object[] args) throws Exception {\n try {\n final String mname = method.getName();\n if (mname.equals(\"String_Node_Str\")) {\n int a = (_origin != null) ? (Integer) method.invoke(_origin, args) : 0;\n return 37 * 3... |
"public void deletePersistent(Object pc) {\n checkActive();\n ZooPCImpl co = checkObject(pc);\n co.jdoZooMarkDeleted();\n}\n"
|
"public static String tmp() {\n Maybe<String> tmp = tmpdir.get();\n if (tmp.isPresent())\n return tmp.get();\n tmpdir.useWithWarning(System.getProperty(\"String_Node_Str\"));\n return tmp.get();\n}\n"
|
"public void setEndpoints(List<EndpointInfo> newEndpoints) {\n synchronized (endpoints) {\n endpoints = newEndpoints;\n updateSynchronizers();\n }\n}\n"
|
"public void actionPerform(Database database, IdeFacade ideFacade) throws LiquibaseException {\n String message;\n try {\n String changeLogFile = ideFacade.selectChangeLogFile();\n if (changeLogFile == null) {\n return;\n }\n ideFacade.getMigrator(changeLogFile, database).va... |
"private ContainerListener loadListener(String className) {\n try {\n Class clazz = Class.forName(className);\n return (ContainerListener) clazz.newInstance();\n } catch (Throwable ex) {\n String msg = logger.getResourceBundle().getString(UNABLE_TO_INSTANTIATE_CONTAINER_LISTENER);\n ms... |
"public void onContentSizeChanged(ContentChangedEvent event) {\n if (display.checkForResizes()) {\n showTab(tabsModel.getSelectedTab());\n saveModuleHeights();\n }\n}\n"
|
"private void fillDown(SnipeData v, Location<World> targetBlock) {\n double brushSize = v.getBrushSize();\n double brushSizeSquared = brushSize * brushSize;\n int minx = GenericMath.floor(targetBlock.getBlockX() - brushSize);\n int maxx = GenericMath.floor(targetBlock.getBlockX() + brushSize) + 1;\n int ... |
"protected void internalTransform(String phaseName, Map<String, String> options) {\n Scene scene = G.v().soot_Scene();\n if (output)\n out.println(\"String_Node_Str\");\n soot.jbco.util.BodyBuilder.retrieveAllNames();\n Chain<SootClass> appClasses = scene.getApplicationClasses();\n for (SootClass ... |
"protected void saveAnalysis() throws DataprofilerCoreException {\n for (Domain domain : this.analysis.getParameters().getDataFilter()) {\n domain.setName(this.analysis.getName());\n }\n IRepositoryViewObject reposObject = null;\n getAnalysisHandler().clearAnalysis();\n List<ModelElement> analysed... |
"private Map<String, AbstractPropertyValue> getInitialRelationshipProperties(String relationShipName, NodeTemplate nodeTemplate) {\n Map<String, AbstractPropertyValue> properties = Maps.newHashMap();\n if (nodeTemplate.getRelationships() != null && nodeTemplate.getRelationships().get(relationShipName) != null && ... |
"final void postScanResult(final BluetoothDevice device, final int rssi, final byte[] scanRecord) {\n final Pointer<String> name = new Pointer<>(device != null ? device.getName() : null);\n m_manager.getPostManager().runOrPostToUpdateThread(new Runnable() {\n public void run() {\n final P_Native... |
"protected Expression transformMethodCallExpression(MethodCallExpression mce) {\n Expression args = transform(mce.getArguments());\n Expression method = transform(mce.getMethod());\n Expression object = transform(mce.getObjectExpression());\n boolean isExplicitThisOrSuper = false;\n if (object instanceof... |
"public void addVesselSchedule(VesselSchedules vesselSchedules) {\n log.debug(\"String_Node_Str\");\n try {\n Session session = getSessionFactory().getCurrentSession();\n Integer vesselScheduleId = (Integer) session.save(vesselSchedules);\n log.debug(\"String_Node_Str\");\n } catch (Except... |
"public Collection<Method> getRequestMethodDocs() {\n return _methods.values();\n}\n"
|
"protected void createResponseList(QueryReply qr, String response) throws BadPacketException {\n final QueryReply localqr = qr;\n final List<Response> responseList = new Vector<Response>();\n final Response qrResponse;\n long index = 0;\n long size = 0;\n LimeXMLDocument emptyDoc = null;\n Set<URN>... |
"public boolean run(CommandLine cline) {\n double maxEffort = 5.00;\n int generations = 999999999;\n if (!cline.hasOption(\"String_Node_Str\")) {\n setErrorMessage(\"String_Node_Str\");\n return false;\n }\n if (!cline.hasOption(\"String_Node_Str\")) {\n setErrorMessage(\"String_Node... |
"private void addFirstLastLineTimes(final int rasterHeight) {\n final MetadataElement absRoot = AbstractMetadata.getAbstractedMetadata(product);\n final MetadataElement root = AbstractMetadata.getOriginalProductMetadata(product);\n final MetadataElement globalElem = root.getElement(NetcdfConstants.GLOBAL_ATTRI... |
"public void setStoragePoolAllocators(List<StoragePoolAllocator> storagePoolAllocators) {\n _storagePoolAllocators = storagePoolAllocators;\n}\n"
|
"public void cdata(String value) {\n if (isStartElementOpen) {\n isStartElementOpen = false;\n builder.append('>');\n }\n for (String part : MarshalRecord.splitCData(value)) {\n builder.append(\"String_Node_Str\");\n builder.append(part);\n builder.append(\"String_Node_Str\")... |
"public QueryRequest build() {\n long selectedEndTs = endTs == null ? System.currentTimeMillis() : endTs;\n return new QueryRequest(serviceName, spanName, annotations, binaryAnnotations, minDuration, maxDuration, selectedEndTs, Math.min(lookback == null ? selectedEndTs : lookback, selectedEndTs), limit == null ? ... |
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n boolean enabled = true;\n if (selection.size() != 1) {\n setEnabled(false);\n return;\n }\n Object targetObject = selection.getFirstElement();\n if (!(targetObject instanceof RepositoryNode)) {\n setEnabled(fals... |
"public void spawnWolf(Player p, String aggro) {\n Wolf w = (Wolf) p.getWorld().spawnCreature(p.getLocation(), CreatureType.WOLF);\n if (aggro != null && aggro.equals(ADOPT_FRIEND)) {\n EntityWolf newMcwolf = ((CraftWolf) w).getHandle();\n newMcwolf.a(p.getName());\n newMcwolf.d(true);\n ... |
"protected boolean calculateEnabled() {\n List selected = getSelectedObjects();\n if (selected.size() != 1 || !(selected.get(0) instanceof EditPart)) {\n return false;\n }\n EditPart part = (EditPart) getSelectedObjects().get(0);\n Object model = part.getModel();\n if (!(model instanceof Report... |
"public Price ema(Trade[] trades, long startTime, long endTime, long timePeriod) throws NotEnoughTradesException {\n long timeInterval = endTime - startTime;\n int nPeriods = (int) (timeInterval / timePeriod);\n if (nPeriods == 0) {\n return null;\n }\n double[] weights = new double[nPeriods + 1];... |
"public String[] detachListener(RegistrationListener listener, String layer, String appContext) {\n ArrayList<String> list = new ArrayList<String>();\n String regisID = getRegistrationID(layer, appContext);\n wLock.lock();\n try {\n Set<String> targets = id2RegisListenersMap.keySet();\n for (S... |
"public void testValueOperations() {\n Tensor f1 = new Tensor(s, 2);\n f1.setValue(0, s.fromReal(0));\n f1.setValue(1, s.fromReal(1));\n f1.fill(s.fromReal(2));\n JUnitUtils.assertArrayEquals(Algebras.getFromReal(new double[] { 2, 2 }, s), f1.getValues(), 1e-13);\n f1.setValue(0, s.fromReal(1));\n ... |
"public void handleResponse(HTSMessage response) {\n if (!response.containsKey(\"String_Node_Str\")) {\n return;\n }\n TVHGuideApplication app = (TVHGuideApplication) getApplication();\n for (Object obj : response.getList(\"String_Node_Str\")) {\n Programme p = new Programme();\n HTSMes... |
"public void sortOrder(FOXTreeNode treeNode, FOXTreeNode node) {\n if (node != null) {\n List<FOXTreeNode> children = node.getChildren();\n if (treeNode != null) {\n int tmpOrder = 0;\n int attrNsCount = 0;\n for (FOXTreeNode child : children) {\n if (chi... |
"public void chargeByMachineHours(ActionRequest request, ActionResponse response) throws AxelorException {\n List<Map<String, Object>> dataList = new ArrayList<Map<String, Object>>();\n DateTimeFormatter parser = ISODateTimeFormat.dateTime();\n LocalDateTime fromDateTime = LocalDateTime.parse(request.getContex... |
"void resetForTest() {\n synchronized (this) {\n cacheMap = new HashMap();\n }\n}\n"
|
"protected Control createDialogArea(Composite parent) {\n parent.getShell().setText(this.title);\n Composite composite = (Composite) super.createDialogArea(parent);\n GridLayout layout = (GridLayout) composite.getLayout();\n layout.makeColumnsEqualWidth = false;\n layout.numColumns = 2;\n Label datamo... |
"private void removeLastEntry() {\n LineData data = mChart.getDataOriginal();\n LineDataSet set = data.getDataSetByIndex(0);\n Entry e = set.getEntryForXIndex(set.getEntryCount() - 1);\n mData.removeEntry(e, 0);\n mChart.notifyDataSetChanged();\n mChart.invalidate();\n}\n"
|
"public Object createInstance(final Class aClass, final Callback invocationHandler) {\n Callback[] callbacks = { invocationHandler, NoOp.INSTANCE };\n ObjectInstantiator instantiator = get(aClass, callbacks);\n Object instance = instantiator.newInstance();\n Factory factory = (Factory) instance;\n factor... |
"public void dataReceived(USART source, int data) {\n if (on && chipSelect) {\n if (DEBUG) {\n System.out.println(\"String_Node_Str\" + Utils.hex8(data) + '\\'' + (char) data + '\\'' + \"String_Node_Str\" + chipSelect + \"String_Node_Str\" + state);\n switch(state) {\n case WAITIN... |
"public void close() {\n mIO.close();\n}\n"
|
"public void test() throws Exception {\n SourceFile file = PHPAstScanner.scanSingleFile(TestUtils.getCheckFile(\"String_Node_Str\"), new SelfKeywordUsageCheck());\n checkMessagesVerifier.verify(file.getCheckMessages()).next().atLine(14).withMessage(\"String_Node_Str\").noMore();\n}\n"
|
"private List<MappingState> matchBasedOnCodeFragments(MappingState parent, Set<PDGNode> nodesG1, Set<PDGNode> nodesG2) {\n CodeFragmentDecomposer cfd1 = new CodeFragmentDecomposer(nodesG1, pdg1.getFieldsAccessedInMethod());\n CodeFragmentDecomposer cfd2 = new CodeFragmentDecomposer(nodesG2, pdg2.getFieldsAccessed... |
"public FleaseMessage handlePREPARE(FleaseMessage msg) {\n final FleaseAcceptorCell cc = getCell(msg);\n cc.touch();\n if ((cc.getPrepared() != null) && (cc.getPrepared().after(msg))) {\n if (Logging.isDebug() && config.isDebugPrintMessages()) {\n final String preped = (cc.getPrepared() == nu... |
"public void afterStateUpdated(byte stateId) {\n if (!worldObj.isRemote) {\n return;\n }\n switch(stateId) {\n case 0:\n if (pipe == null && coreState.pipeId != 0) {\n initialize(BlockGenericPipe.createPipe((Item) Item.itemRegistry.getObjectById(coreState.pipeId)));\n ... |
"public void testPingPong() throws Exception {\n Pong pong = new Pong();\n Ping ping = new Ping(pong);\n try {\n pong.startActor();\n ping.startActor();\n down.await();\n } catch (Throwable t) {\n }\n pong.stopActor();\n ping.stopActor();\n Actors.shutdownAll();\n}\n"
|
"private Field getField0(String name) throws NoSuchFieldException {\n Field res;\n if ((res = searchFields(privateGetDeclaredFields(true), name)) != null) {\n return res;\n }\n Class<?>[] interfaces = getInterfaces(false);\n for (Class<?> c : interfaces) {\n if ((res = c.getField0(name)) !=... |
"private boolean matchAll(TemplateFieldSuggestions inputSuggestions, TemplateFieldSuggestions recordedSuggestions) {\n boolean matchAll = true;\n for (AbstractTemplateField inputField : inputSuggestions.getTemplateFields()) {\n for (AbstractTemplateField recordedField : recordedSuggestions.getTemplateField... |
"private void selectItem(int position, boolean closeDrawer) {\n if (position < 0) {\n position = 0;\n }\n mCurrentSelectedPosition = position;\n if (mDrawerListView != null) {\n mDrawerListView.setItemChecked(position, true);\n }\n if (closeDrawer) {\n closeDrawer();\n }\n i... |
"public void messageReceived(IoSession session, Object message) throws IOException, FtpException {\n FtpRequest request = new FtpRequestImpl(message.toString());\n ConnectionObserver observer = (ConnectionObserver) session.getAttribute(\"String_Node_Str\");\n if (observer != null) {\n observer.request(r... |
"public static KeybindingsService getKeybindingsService() {\n if (keybindingsService == null) {\n keybindingsService = ServiceUtils.getService(bundleContext, KeybindingsService.class);\n }\n return keybindingsService;\n}\n"
|
"private WlAvatarCharacter loadAvatarInternal(AvatarConfigInfo avatarConfigInfo) throws MalformedURLException, IOException {\n WlAvatarCharacter ret = null;\n PMatrix origin = new PMatrix();\n CellTransform transform = cell.getLocalTransform();\n origin.setTranslation(transform.getTranslation(null));\n o... |
"public void testCanWriteBadUri1() throws Exception {\n Assert.assertFalse(factory.canWrite(\"String_Node_Str\", conf));\n}\n"
|
"public static void onCurrencyHoldCheck(CurrencyHoldEvent event) {\n UUID target = event.getAccount();\n if (!NameManager.isAdminShop(target) || NameManager.isServerEconomyAccount(target)) {\n return;\n }\n event.canHold(true);\n event.setAccount(null);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.