content stringlengths 40 137k |
|---|
"private void workerInstancesCheck(final WorkerManager workerManager, int expected) throws Exception {\n Tasks.waitFor(expected, new Callable<Integer>() {\n public Integer call() throws Exception {\n return workerManager.getInstances();\n }\n }, 15, TimeUnit.SECONDS);\n}\n"
|
"public ActionForward delete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\");\n }\n ActionMessages messages = new ActionMessages();\n UserForm userForm = (UserForm) form... |
"public void setCheckpointDir(String checkpointDir) {\n this.metadata.put(checkpointDirField, checkpointDir);\n}\n"
|
"protected void cacheValue(final InternalCacheKeyInvocationContext<? extends Annotation> cacheKeyInvocationContext, final CachePutMethodDetails methodDetails, final Object value) {\n final Object cachedValue;\n if (value == null) {\n if (methodDetails.getCacheAnnotation().cacheNull()) {\n cached... |
"private void buyItemRepair(Player player, HumanNPC npc, ItemStack item, Operation op) {\n if (!EconomyHandler.useEconomy() || EconomyHandler.canBuy(op, player)) {\n if (item.getDurability() > 0) {\n double paid = EconomyHandler.payBlacksmith(op, player);\n if (paid > 0) {\n ... |
"public void relock(int recCount) {\n sysCall.sysPthreadMutexLock(mutex);\n if (VM.VerifyAssertions)\n VM._assert(holderSlot == -1);\n if (VM.VerifyAssertions)\n VM._assert(this.recCount == 0);\n holderSlot = RVMThread.getCurrentThreadSlot();\n this.recCount = recCount;\n acquireCount++;... |
"private void checkRunningState() {\n if (runningState == RunningState.RENDER) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n }\n if (runningState == RunningState.PAGEBREAK) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n}\n"
|
"Object[] packArgs(Object[] args, List modelArgs, BeansWrapper w) throws TemplateModelException {\n final int actualArgCount = args.length;\n final int fixArgCount = argCount - 1;\n if (args.length != argCount) {\n Object[] newargs = new Object[argCount];\n System.arraycopy(args, 0, newargs, 0, f... |
"public void setLimit(int limit) {\n applyLimit(limit, true);\n}\n"
|
"void updateCompliantURI(String URIprefix, String parentDisplayId, String version) {\n String thisObjDisplayId = extractDisplayId(this.getIdentity());\n URI newIdentity = URI.create(URIprefix + '/' + parentDisplayId + '/' + thisObjDisplayId + '/' + version);\n Location location = this.getLocation();\n if (l... |
"public void LoadShopMenu() {\n if (InGameShop == null) {\n InGameShop = new Scene();\n Text BuyThing1 = new Text(10, base.getCameraHeight() / 2, base.mFont2, \"String_Node_Str\") {\n public boolean onAreaTouched(TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY) {\... |
"public Object[] getChildren(Object parentElement) {\n if (parentElement instanceof IExecTestCasePO) {\n ISpecTestCasePO referencedTestCase = ((IExecTestCasePO) parentElement).getSpecTestCase();\n if (referencedTestCase != null) {\n return ArrayUtils.addAll(Collections.unmodifiableCollection... |
"public void leavePosition() {\n if (!enableNothingToDo) {\n return;\n }\n int offset = RandomSingleton.getInt(0, EDirection.NUMBER_OF_DIRECTIONS - 1);\n for (int i = 0; i < EDirection.NUMBER_OF_DIRECTIONS; i++) {\n EDirection currDir = EDirection.values[(i + offset) % EDirection.NUMBER_OF_DIR... |
"public String getProjectName() {\n return config.getOptionWithDefault(PROJECT_NAME, MiscUtils.sanitizeFileName(getAppClassName() + \"String_Node_Str\" + getTargetMethodName()));\n}\n"
|
"public List<Element> getChildren(String name) {\n List<Element> res = new ArrayList<Element>();\n if (children != null)\n for (Element child : children) {\n if (name.equals(child.getName()))\n res.add(child);\n }\n return res;\n}\n"
|
"public void run() {\n if (!isAdded()) {\n return;\n }\n try {\n getTitle();\n getContent();\n } catch (EditorFragmentNotAddedException e) {\n AppLog.e(T.EDITOR, \"String_Node_Str\");\n getActivity().runOnUiThread(new Runnable() {\n public void run() {\n ... |
"public void setUp() throws Exception {\n Path hbaseRootDir = new Path(getClass().getSimpleName() + \"String_Node_Str\" + testName.getMethodName());\n TEST_UTIL.getConfiguration().set(\"String_Node_Str\", hbaseRootDir.toString());\n FileSystem newFS = miniDfs.getFileSystem();\n RegionInfo hri = RegionInfoBu... |
"private boolean invalidateByHas(SchemaTableTree schemaTableTree) {\n for (HasContainer hasContainer : schemaTableTree.hasContainers) {\n if (!hasContainer.getKey().equals(TopologyStrategy.TOPOLOGY_SELECTION_WITHOUT) && !hasContainer.getKey().equals(TopologyStrategy.TOPOLOGY_SELECTION_FROM)) {\n if... |
"public String getStatus() {\n return null;\n}\n"
|
"public Term[] cloneTermsExcept(final boolean requireModification, final Term[] toRemove) {\n final List<Term> l = asTermList();\n boolean removed = false;\n for (final Term t : toRemove) {\n if (l.remove(t))\n removed = true;\n }\n if ((!removed) && (requireModification))\n retu... |
"public void highlightTouch(Highlight high) {\n if (high == null)\n mIndicesToHightlight = null;\n else {\n if (mLogEnabled)\n Log.i(LOG_TAG, \"String_Node_Str\" + high.toString());\n e = mData.getEntryForHighlight(high);\n if (e == null || e.getXIndex() != high.getXIndex())... |
"private void prepareExpression(QueryDefinition queryDefn) {\n beName = new String[3];\n beArray = new ScriptExpression[3];\n beName[0] = \"String_Node_Str\";\n ScriptExpression se = new ScriptExpression(\"String_Node_Str\");\n beArray[0] = se;\n beName[1] = \"String_Node_Str\";\n se = new ScriptEx... |
"public static void main(String[] args) {\n String serialPort;\n if (args.length == 1) {\n serialPort = args[0];\n } else {\n serialPort = Serial4JArduino.selectSerialPort();\n }\n JArduino arduino = new SimpleInterrupt(serialPort);\n arduino.runArduinoProcess();\n}\n"
|
"public void testSizeTransformWithImplicitParameterGroupBy2() {\n CriteriaBuilder<Long> criteria = cbf.create(em, Long.class).from(Document.class, \"String_Node_Str\").select(\"String_Node_Str\").selectCase().when(\"String_Node_Str\").lt(2l).thenExpression(\"String_Node_Str\").otherwiseExpression(\"String_Node_Str\"... |
"public final void onSensorChanged(SensorEvent event) {\n int type = event.sensor.getType();\n if (type == Sensor.TYPE_PROXIMITY) {\n float lux = event.values[0];\n long tsCurrent = System.currentTimeMillis();\n if (lux != currentSensorValue) {\n currentSensorValue = lux;\n ... |
"public void parseIcsFile_invalidTimeDelimiter_onlyValidEventsProcessed() {\n LinkedList<WorkSession> testCalendar = IcsParser.parseIcsFile(\"String_Node_Str\");\n calendarValidity(testCalendar, 2);\n}\n"
|
"protected void _checkSensorActuatorNetworkConsistency() throws IllegalActionException {\n _networkInpuPorts = new HashSet<IOPort>();\n for (TypedIOPort port : (List<TypedIOPort>) (((TypedCompositeActor) getContainer()).inputPortList())) {\n _checkSensorNetworkInputConsistency(port);\n for (TypedIOP... |
"public boolean isValid(Object value) {\n if (value == null) {\n return true;\n }\n BeanReader beanReader = new BeanReader(ThreadContext.getModel());\n Object diffValue = beanReader.getProperty(this.name);\n if (diffValue == null) {\n return false;\n }\n return ignoreCase ? diffValue.... |
"public Message dispatchMessage(Message request, String mappingName) {\n CompletableFuture<Message> responseFuture = new CompletableFuture<>();\n SimulatorScenario scenario;\n if (StringUtils.hasText(scenarioName) && applicationContext.containsBean(scenarioName)) {\n scenario = applicationContext.getBea... |
"public synchronized boolean remove(T obj) {\n Integer index = this.indexes.remove(obj);\n if (index == null) {\n return false;\n }\n T item = heap.remove(heap.size() - 1);\n this.indexes.put(item, index);\n this.heap.set(index, item);\n this.pushDown(item);\n return true;\n}\n"
|
"private void updateBlogOptions(Map<?, ?> blogOptions) {\n boolean isModified = false;\n Gson gson = new Gson();\n String blogOptionsJson = gson.toJson(blogOptions);\n if (blogOptionsJson != null) {\n isModified |= mBlog.bsetBlogOptions(blogOptionsJson);\n }\n if (!mBlog.isDotcomFlag()) {\n ... |
"private <U extends DataObject> boolean writeMergeTransaction(InstanceIdentifier<U> addIID, U data) {\n long timeout = 5000L;\n int attempt = 0;\n WriteTransaction transaction = null;\n do {\n attempt++;\n try {\n transaction = mountpoint.newWriteOnlyTransaction();\n } catch ... |
"protected void calcMinMax(int start, int end) {\n if (mYVals.size() == 0)\n return;\n List<CandleEntry> entries = mYVals;\n int endValue;\n if (end == 0 || end >= mYVals.size())\n endValue = mYVals.size() - 1;\n else\n endValue = end;\n mLastStart = start;\n mLastEnd = endValu... |
"public void onClick(View v) {\n ((BottomBarActivity) mContext).replaceFragment(HomeFragment.newInstance(Constants.CATEGORY_PAGETYPE, categories.get(i)), HomeFragment.class.getName() + CategoriesGridFragment.class.getName());\n}\n"
|
"public void createNode(long id, Map<String, Object> properties) {\n if (id < 0 || id > MAX_NODE_ID) {\n throw new IllegalArgumentException(\"String_Node_Str\" + id);\n }\n int nodeId = (int) (id & 0xFFFFFFFF);\n NodeStore nodeStore = neoStore.getNodeStore();\n if (neoStore.getNodeStore().loadLigh... |
"public static void initEoulsanRuntimeForExternalApp() throws IOException, EoulsanException {\n if (!EoulsanRuntime.isRuntime())\n newEoulsanRuntime(new Settings(true));\n final Handler[] handlers = EoulsanLogger.getLogger().getHandlers();\n if (handlers != null)\n for (Handler handler : handlers... |
"protected Object remove(Page p, long writeVersion, Object key) {\n int index = p.binarySearch(key);\n Object result = null;\n if (p.isLeaf()) {\n if (index >= 0) {\n result = p.getValue(index);\n p.remove(index);\n }\n return result;\n }\n if (index < 0) {\n ... |
"public String show(Long id) {\n return String.format(\"String_Node_Str\", id);\n}\n"
|
"public void keyPressed(KeyEvent ke) {\n switch(stage) {\n case start:\n case win:\n case lose:\n if (ke.getKeyChar() == ' ') {\n stage = play;\n reset();\n }\n break;\n case help:\n if (ke.getKeyChar() == ' ') {\n ... |
"public static int getWidthFromMaxInt(int bound) {\n return (int) Math.ceil(Math.log((double) bound + 1) / Math.log(2));\n}\n"
|
"private void triggerBeforeHostChildRemoved(Component child) {\n List<ShadowElement> shadowRoots = getShadowRoots();\n if (!shadowRoots.isEmpty()) {\n try {\n initIndexCacheMap();\n final int indexOf = getChildren().indexOf(child);\n for (ShadowElement se : new LinkedList<S... |
"public ICommand createCommandByType(final CommandType cmdType) {\n ICommand createdCommand = null;\n switch(cmdType) {\n case CREATE_ID_CATEGORY:\n {\n createdCommand = new CmdCreateIDCategory();\n break;\n }\n case CREATE_ID_TYPE:\n {\... |
"private void writeElement(Writer out, Element node, XhtmlGeneratorAdornerState state, int level) throws Exception {\n String link = adorner == null ? null : adorner.getLink(this, state, node);\n if (link != null)\n out.write(\"String_Node_Str\" + link + \"String_Node_Str\" + node.getNodeName() + \"String_... |
"private void addCustomFields(PreparedStatement stmt) throws DataException {\n if (this.customFields != null) {\n Iterator it = this.customFields.iterator();\n while (it.hasNext()) {\n CustomField customField = (CustomField) it.next();\n stmt.declareCustomColumn(rsetNumber, custom... |
"private void updateSyncSettings() {\n Log.d(TAG, \"String_Node_Str\");\n PreferenceManager mPref = new PreferenceManager(mContext);\n int sync_interval = mPref.getInt(\"String_Node_Str\", 1440);\n List<String> default_authorities = new ArrayList<String>();\n default_authorities.add(\"String_Node_Str\");... |
"protected ResponseImpl execute(BuildImageCmd command) {\n WebTarget webResource = getBaseResource().path(\"String_Node_Str\");\n String dockerFilePath = command.getPathToDockerfile();\n if (command.getTag() != null) {\n webResource = webResource.queryParam(\"String_Node_Str\", command.getTag());\n }... |
"private Command getCommand(String cmd) {\n String[] strs = cmd.trim().split(\"String_Node_Str\");\n if (strs[0].equalsIgnoreCase(\"String_Node_Str\"))\n return new QuitCmd(this, cmd);\n else\n return new Command(this, cmd);\n}\n"
|
"protected IViewerReportDesignHandle getDesignHandle() throws Exception {\n if (viewer == null)\n return null;\n IViewerReportDesignHandle design = null;\n IReportRunnable reportRunnable = null;\n HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();\n String designFile = Par... |
"public static DateTimeFormat getShortDateTimeFormat() {\n if (cachedShortDateTimeFormat == null) {\n String pattern = getDefaultDateTimeConstants().dateFormats()[SHORT_DATE_FORMAT] + \"String_Node_Str\" + getDefaultDateTimeConstants().timeFormats()[SHORT_TIME_FORMAT];\n cachedShortDateTimeFormat = new... |
"public void run() {\n GAEHandler.persistTimelineObject(moodEvent);\n}\n"
|
"private boolean createSqlQuery(String dataFilterAsString, Indicator indicator) throws ParseException, AnalysisExecutionException {\n ModelElement analyzedElement = indicator.getAnalyzedElement();\n if (analyzedElement == null) {\n return traceError(\"String_Node_Str\" + indicator.getName());\n }\n T... |
"public void getService(String id, IRpcServiceInvocationHandler<ServiceBean> handler) {\n RemoteCallback<ServiceBean> successCallback = new DelegatingRemoteCallback<ServiceBean>(handler);\n ErrorCallback<?> errorCallback = new DelegatingErrorCallback(handler);\n try {\n String encodedId = com.google.gwt... |
"public void generateAddAnimation(View child) {\n if (mIsExpanded && mAnimationsEnabled && !mChangePositionInProgress) {\n mChildrenToAddAnimated.add(child);\n mNeedsAnimation = true;\n }\n}\n"
|
"public void testUnauthorizedDriver() {\n if (DriverManager.getDriver() instanceof HttpDriver) {\n session = new SessionFactory(baseConfiguration.credentials(\"String_Node_Str\", \"String_Node_Str\").build(), \"String_Node_Str\").openSession();\n try (Transaction tx = session.beginTransaction()) {\n ... |
"public void run() {\n BufferedOutputStream bufferStream = null;\n try {\n bufferStream = new BufferedOutputStream(out);\n boolean isSolid = header.isSolid();\n fileIn1 = file.getInputStream();\n fileIn2 = isSolid ? file.getInputStream() : null;\n archive.extractEntry(isSolid, h... |
"public void testCanCreateInitialTables() throws Exception {\n final SemanticMemoryDatabase smdb = new SemanticMemoryDatabase(\"String_Node_Str\", db);\n smdb.structure();\n final Set<String> tables = new HashSet<String>();\n final ResultSet rs = db.getMetaData().getTables(null, null, null, new String[] { \... |
"public void toBytes(ByteBuf buf) {\n super.toBytes(buf);\n NetworkTools.writeString(buf, getDimensionName());\n}\n"
|
"private Object getNonNodeValueToWrite(Object value, XMLField xmlField, AbstractSession session) {\n if (this == value) {\n return this;\n }\n QName schemaType = null;\n if (xmlField.getLeafElementType() != null) {\n schemaType = xmlField.getLeafElementType();\n } else if (xmlField.isUnionF... |
"public Personalization getPersonalization() {\n if (persoCache == null) {\n persoCache = new Profile03();\n }\n return persoCache;\n}\n"
|
"public void onUpdateTick() {\n if (recalculateControllerNextTick) {\n recalcController();\n }\n if (updateNetwork) {\n if (!booting)\n myGrid.postEvent(new MENetworkBootingStatusChange());\n booting = true;\n updateNetwork = false;\n instance++;\n if (contr... |
"public String getName() {\n return \"String_Node_Str\" + dustNumber + \"String_Node_Str\";\n}\n"
|
"public void propertyChange(PropertyChangeEvent event) {\n String propertyName = event.getPropertyName();\n if (IElementParameterEventProperties.EVENT_PROPERTY_VALUE_CHANGED.equals(propertyName)) {\n reset(true);\n } else if (IElementParameterEventProperties.EVENT_PROPERTY_NAME_CHANGED.equals(propertyNa... |
"RepositoryRestController repositoryRestController() throws Exception {\n return new RepositoryRestController();\n}\n"
|
"protected Void impl() throws DockerException {\n WebResource webResource = baseResource.path(String.format(\"String_Node_Str\", containerId));\n try {\n LOGGER.trace(\"String_Node_Str\", webResource);\n Builder builder = webResource.accept(MediaType.APPLICATION_JSON);\n if (startContainerCon... |
"public PatternBuilder num(String s) {\n s = s.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n s = s.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(... |
"public DataSet getDataSet() throws Exception {\n INode node = getNode();\n if (node == null) {\n return null;\n }\n if (node.getSession() == null) {\n return null;\n }\n if (node instanceof TableNode) {\n TableNode tableNode = (TableNode) node;\n ITableInfo ti = tableNode.... |
"public Object get(Property property) {\n if (null == propertyValues) {\n return null;\n }\n return propertyValues.get(property);\n}\n"
|
"private Document getDocument(InputStream documentAsStream) throws Exception {\n BufferedReader bis = new BufferedReader(new InputStreamReader((documentAsStream)));\n bis.readLine();\n String line = \"String_Node_Str\";\n StringBuffer sb = new StringBuffer();\n while (line != null) {\n if (!\"Stri... |
"public void canGetMultiplePathsInTriangleGraph() throws Exception {\n Node nodeA = graph.makeNode(\"String_Node_Str\", \"String_Node_Str\", 0d, \"String_Node_Str\", 0d);\n Node nodeB = graph.makeNode(\"String_Node_Str\", \"String_Node_Str\", 2d, \"String_Node_Str\", 1d);\n Node nodeC = graph.makeNode(\"String... |
"public void validate(ValidationHelper helper, Context context, String key, OAuthFlow t) {\n if (t != null) {\n if (t.getAuthorizationUrl() != null) {\n if (!ValidatorUtils.isValidURI(t.getAuthorizationUrl())) {\n final String message = Tr.formatMessage(tc, \"String_Node_Str\", t.get... |
"private void checkAllRequestsFinished(Request<JSONObject> req) {\n synchronized (mStatsNetworkRequests) {\n if (req != null) {\n mStatsNetworkRequests.remove(req);\n }\n boolean isStillWorking = mStatsNetworkRequests.size() > 0 || singleThreadNetworkHandler.getQueue().size() > 0;\n ... |
"public AbstractRecord buildRow(AbstractRecord record, Object object, org.eclipse.persistence.internal.sessions.AbstractSession session, XMLMarshaller marshaller, XPathFragment rootFragment, WriteType writeType) {\n lazyInitialize();\n XPathNode textNode = rootXPathNode.getTextNode();\n List<XPathNode> nonAttr... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Thread.setDefaultUncaughtExceptionHandler(new ErrorHandler(this));\n this.setContentView(this.getContentView());\n this.base = this.createViewContext();\n Controller controller = null;\n if (savedInstanceStat... |
"private List<Map<String, String>> getBlockingKeysFromRules(MatchRuleDefinition matchRuleDefinition, boolean retrieveDisplayValue) {\n if (matchRuleDefinition != null) {\n List<Map<String, String>> ruleValues = new ArrayList<Map<String, String>>();\n for (BlockKeyDefinition bkDefinition : matchRuleDefi... |
"public String getCreateUrl(Class<? extends Definition> type) {\n DefinitionService svc = DefinitionContext.getDefinitionService(type);\n Class<? extends Definition> parentType = svc.getDefinitionType();\n return \"String_Node_Str\" + type.getName() + \"String_Node_Str\" + parentType.getName();\n}\n"
|
"public void onResponse(Call call, Response response, String tag) {\n if (response.body() instanceof RequestGiftOutput) {\n setCancelRequestBtn();\n Snackbari.showS(mRequestLay, \"String_Node_Str\");\n } else if (response.body() instanceof Gift) {\n gift = (Gift) response.body();\n set... |
"private void retrieveCoupledTypes(AstNode classDeclaration) {\n for (AstNode classStatement : classDeclaration.getChildren(PHPGrammar.CLASS_STATEMENT)) {\n AstNode stmt = classStatement.getFirstChild();\n if (stmt.is(PHPGrammar.CLASS_VARIABLE_DECLARATION, PHPGrammar.CLASS_CONSTANT_DECLARATION)) {\n ... |
"public final void removeMatcherEditorListener(MatcherEditorListener listener) {\n for (Iterator i = listeners.iterator(); i.hasNext(); ) {\n if (i.next() == listener) {\n i.remove();\n return;\n }\n }\n throw new IllegalStateException(\"String_Node_Str\" + listener);\n}\n"
|
"public void testIpAddress() throws Exception {\n byte[] slash11Netmask = new byte[] { (byte) 0xff, (byte) 0xe0, 0x00, 0x00 };\n byte[] slash24Netmask = new byte[] { (byte) 0xff, (byte) 0xff, (byte) 0xff, 0x00 };\n byte[] invalidNetmask = new byte[] { (byte) 0xff, (byte) 0xfb, (byte) 0xff, 0x00 };\n Inet4Ad... |
"public Collection<Value> prepareData() throws OpenRDFException {\n extResourcesForConcept = new HashMap<Value, Collection<URI>>();\n findResourcesForConcepts(authoritativeConcepts.getPreparedData());\n return extractUnlinkedConcepts();\n}\n"
|
"public void setAtomArrays(List<Atom[]> atomArrays, boolean setNames) {\n this.atomArrays = atomArrays;\n List<String> names = new ArrayList<String>();\n for (int i = 0; i < atomArrays.size(); i++) names.add(atomArrays.get(i)[0].getGroup().getChain().getParent().getIdentifier());\n setStructureNames(names);... |
"public HashMap<Profile, HashMap<ProjectVersionRef, Dependency>> getResolvedProfileDependencies(MavenSessionHandler session) throws ManipulationException {\n if (resolvedProfileDependencies == null) {\n resolvedProfileDependencies = new HashMap<>();\n for (final Profile profile : ProfileUtils.getProfil... |
"protected Subscription createVirtLimitSub(String productId, int quantity, String virtLimit) {\n Product product = new Product(productId, productId, owner);\n product.setAttribute(\"String_Node_Str\", virtLimit);\n when(prodAdapter.getProductById(owner, productId)).thenReturn(product);\n Subscription s = Te... |
"public void run() {\n try {\n connect();\n while (socket.isConnected()) {\n InputStream in = socket.getInputStream();\n String line = readLine(in);\n if (line.charAt(0) == '*') {\n Integer.parseInt(line.substring(1).trim());\n line = readL... |
"public void useWrench() {\n EndergenicTileEntity otherTE = RFTools.instance.clientInfo.getSelectedEndergenicTileEntity();\n if (otherTE == null) {\n RFTools.instance.clientInfo.setSelectedEndergenicTileEntity(this);\n EndergenicTileEntity destinationTE = getDestinationTE();\n RFTools.instanc... |
"protected void shutdownOutputRequested(ChannelPipeline pipeline, ShutdownOutputEvent evt) throws Exception {\n AgronaChannel channel = (AgronaChannel) evt.getChannel();\n ChannelFuture future = evt.getFuture();\n channel.worker.shutdownOutput(channel, future);\n}\n"
|
"public boolean methodLambdaToJava(ClassNode node_lambda, ClassNode node_content, StructMethod mt, BufferedWriter writer, int indent, boolean code_only) throws IOException {\n ClassWrapper wrapper = node_content.wrapper;\n MethodWrapper meth = wrapper.getMethodWrapper(mt.getName(), mt.getDescriptor());\n Metho... |
"public static <T> Set<SuperGraphEdge> addPersistenceSegmentConstraints(Segment persistenceSegment, Iterable<Entry<T, List<SuperGraphEdge>>> partition, IPETSolver<SuperGraphEdge> ipetSolver, F1<SuperGraphEdge, Long> costModel, Object analysisKey) {\n HashSet<SuperGraphEdge> missEdges = new HashSet<SuperGraphEdge>();... |
"public GroupStatistics getGroupStatistics() {\n double averageEquivalenceClassSize = 0;\n int averageEquivalenceClassSizeCounter = 0;\n int maximalEquivalenceClassSize = Integer.MIN_VALUE;\n int minimalEquivalenceClassSize = Integer.MAX_VALUE;\n int numberOfEquivalenceClasses = 0;\n int numberOfOutly... |
"protected void writeItem(ExecutableElement e) {\n beginArray();\n sep();\n ref((TypeElement) e.getEnclosingElement());\n sep();\n if (e.getKind() == ElementKind.CONSTRUCTOR)\n string(e.getEnclosingElement().getSimpleName());\n else\n string(e.getSimpleName());\n beginArray();\n fo... |
"public void testBytes() throws IOException {\n BufferedRandomAccessFile file = new BufferedRandomAccessFile(new File(tmpPath + File.separatorChar + \"String_Node_Str\"), \"String_Node_Str\", 1000);\n byte[] bytes = new byte[1024];\n bytes[0] = 1;\n bytes[1] = 2;\n file.seek(0);\n file.write(bytes, 0,... |
"protected void deRegisterObservers() {\n log.debug(\"String_Node_Str\");\n for (Observer o : observers) {\n Observable observable = o.getObservable();\n if (observable != null) {\n observable.removeObserver(o);\n }\n }\n}\n"
|
"private void sendInternal(ClientCallFuture future, ClientConnection connection, int partitionId) {\n connection.registerCallId(future);\n future.setConnection(connection);\n final SerializationService ss = client.getSerializationService();\n final ClientRequest request = future.getRequest();\n final Dat... |
"public void process() {\n PerformanceMonitor.startActivity(\"String_Node_Str\" + performanceMonitorLabel);\n blurMaterial.setFloat(\"String_Node_Str\", blurRadius, true);\n blurMaterial.setFloat2(\"String_Node_Str\", 1.0f / outputFbo.width(), 1.0f / outputFbo.height(), true);\n inputFbo.bindTexture();\n ... |
"public LinkedList<SimpleIsl> getPath(List<SimpleIsl> hint) {\n if (hint != null && hint.size() > 0) {\n SimpleSwitch from = network.getSimpleSwitch(hint.get(0).getSrcDpid());\n SimpleSwitch to = network.getSimpleSwitch(hint.get(hint.size() - 1).getDstDpid());\n if (start.equals(to) && end.equal... |
"private void writeContextImplementations() {\n for (ContextMethod method : model.getMethods()) {\n PrintWriter pw = context.tryCreate(logger, method.getPackageName(), method.getSimpleSourceName());\n if (pw == null) {\n continue;\n }\n ClassSourceFileComposerFactory factory = ... |
"public void run(Context context) throws IOException, InterruptedException {\n MapReduceClassLoader classLoader = MapReduceClassLoader.getFromConfiguration(context.getConfiguration());\n BasicMapReduceTaskContext basicMapReduceContext = classLoader.getTaskContextProvider().get(context);\n WrappedReducer.Contex... |
"public void run() {\n try {\n while (accelerateClock.now() - initTime < testDuration) {\n String dateInStringWithMs = dateFormatWithMs.format(new Date(accelerateClock.now()));\n debug.message(\"String_Node_Str\" + dateInStringWithMs, null);\n }\n } catch (Exception e) {\n ... |
"public void native_data_should_be_read_as_integer() throws JsonParseException, IOException, ClassNotFoundException {\n KeyValueObjectMapper keyValueObjectMapper = new KeyValueObjectMapper();\n Map<Object, Object> elements = keyValueObjectMapper.readValues(new ByteArrayInputStream(SIMPLE_DATA_INTEGER.getBytes()))... |
"public void testFixNonPartitionedJoin() throws Exception {\n final String expected = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n try (As... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.