content stringlengths 40 137k |
|---|
"public void onPlayerMove(PlayerMoveEvent event) {\n CPlayer onlinePlayer = Core.getOnlinePlayer(event.getPlayer());\n MobNPCEnderDragon enderBarFor = manager.enderBars.get(onlinePlayer);\n Point current = Point.of(event.getTo());\n current.setY(-300D);\n if (enderBarFor != null && enderBarFor.isSpawned(... |
"public synchronized int hashCode() {\n if (__hashCodeCalc) {\n return 0;\n }\n __hashCodeCalc = true;\n int _hashCode = 1;\n _hashCode += Long.valueOf(getId()).hashCode();\n _hashCode += getS_Count();\n _hashCode += getG_Count();\n if (getCH_Row() != null) {\n _hashCode += getCH_R... |
"public void setText(String t) {\n lastLine = -1;\n super.setText(t, contentType);\n}\n"
|
"public void importDatabase(String filename) throws IOException {\n String internalDbPath = getDatabasePath(this.context);\n String internalSpPath = \"String_Node_Str\";\n close();\n Log.w(\"String_Node_Str\", Constants.BACKUPPATH + \"String_Node_Str\" + filename);\n try {\n File newDb = new File(... |
"private Annotation createAnnotation(TreeLogger logger, Class<? extends Annotation> annotationClass, AnnotationData annotationData) {\n Map<String, Object> values = Maps.newHashMap(annotationData.getValues());\n for (Map.Entry<String, Object> entry : values.entrySet()) {\n Method method = null;\n Th... |
"public void create() {\n Random.seed(Dungeon.seedCurDepth());\n if (!(Dungeon.bossLevel() || Dungeon.depth == 21)) {\n addItemToSpawn(Generator.random(Generator.Category.FOOD));\n if (Dungeon.posNeeded()) {\n addItemToSpawn(new PotionOfStrength());\n Dungeon.LimitedDrops.STREN... |
"public void testGetDupeLinks() {\n {\n String json = \"String_Node_Str\";\n JSONObject jobj = new JSONObject(json);\n Status s = new Status(jobj, null);\n System.out.println(s.getText());\n System.out.println(s.getDisplayText());\n List<TweetEntity> urlInfo = s.getTweetEnti... |
"public void kickAfkPlayers() {\n if (lastPlayerActivity.size() < 1) {\n return;\n }\n if (plugin.getServer().getOnlinePlayers().length < playerCountThreshold) {\n return;\n }\n long activityWindow = System.currentTimeMillis() - kickTimeout;\n for (String name : lastPlayerActivity.keySet... |
"public void requestData(L layer) {\n synchronized (readLock) {\n if (!loaded && !reading) {\n RequestTask task = new RequestTask(this, layer);\n if (!WorldWind.getTaskService().isFull()) {\n loading = true;\n loadingListeners.notifyListeners(isLoading());\n... |
"public static IPlotMe_GeneratorManager getGenManager(String name) {\n return managers.get(name.toLowerCase());\n}\n"
|
"public CostSheetLine createConsumedProductWasteCostSheetLine(Product product, Unit unit, int bomLevel, CostSheetLine parentCostSheetLine, BigDecimal consumptionQty, BigDecimal wasteRate) throws AxelorException {\n BigDecimal qty = consumptionQty.multiply(wasteRate).divide(new BigDecimal(\"String_Node_Str\"), appPro... |
"public List<UnlockedAchievement> getUnlockedAchievements(Comparator<UnlockedAchievement> comparator) {\n if (comparator == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n List<UnlockedAchievement> list = new ArrayList<UnlockedAchievement>(unlockedAchievements);\n Collections... |
"public String getText(Object element) {\n if (element instanceof TableFolderNode) {\n TableFolderNode node = (TableFolderNode) element;\n if (node.isLoaded()) {\n Package catalogOrSchema = PackageHelper.getCatalogOrSchema(node.getParent());\n return ((IFolderNode) element).getNam... |
"public static void main(String[] args) throws Exception {\n for (File file : sorted(new File(\"String_Node_Str\").listFiles())) {\n try {\n if (file.getName().contains(\"String_Node_Str\") && !file.getName().endsWith(\"String_Node_Str\")) {\n System.out.println(\"String_Node_Str\" +... |
"protected void visitHtmlCloseTagNode(HtmlCloseTagNode node) {\n TagName closeTag = node.getTagName();\n if (isDefinitelyVoid(node)) {\n errorReporter.report(node.getSourceLocation(), INVALID_CLOSE_TAG, closeTag.getStaticTagName().getRawText());\n return;\n }\n if (closeTag.isForeignContent())... |
"public void shouldEstablishConnectionWithSomeExtensionsNegotiated() throws Exception {\n final IoHandler handler = context.mock(IoHandler.class);\n context.checking(new Expectations() {\n {\n oneOf(handler).sessionCreated(with(any(IoSessionEx.class)));\n atMost(1).of(handler).session... |
"public void testInsert() throws Exception {\n DataHubCompositeValue value = new DataHubCompositeValue(CONTENT_TYPE, CONTENT_LANGUAGE, DATA, 0L);\n ValueInsertionResult expected = new ValueInsertionResult(DATA_HUB_KEY, null, null);\n String columnName = keyRenderer.keyToString(DATA_HUB_KEY);\n when(hector.c... |
"public boolean reserve(Task task) {\n try {\n jdbc.queryForObject(\"String_Node_Str\", String.class, task.getTaskId(), TaskState.WAITING.ordinal());\n return jdbc.update(\"String_Node_Str\" + \"String_Node_Str\", task.getTaskId(), TaskState.WAITING.ordinal()) == 1;\n } catch (Exception e) {\n ... |
"private void showRejectUserDialog(final int userId) {\n User user = DatabaseManager.getInstance().getUserManager().get(userId);\n AlertDialog alertDialog = AlertDialog.newInstance(getResources().getString(R.string.frl_dlg_reject_friend, user.getFullName()));\n alertDialog.setPositiveButton(new DialogInterface... |
"public synchronized boolean suspendSink(BluetoothDevice device) {\n mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, \"String_Node_Str\");\n if (DBG)\n log(\"String_Node_Str\" + device + \"String_Node_Str\" + mTargetA2dpState);\n if (device == null || mAudioDevices == null) {\n retu... |
"public ItemStack getStackInSlotOnClosing(int par1) {\n if (worldObj.getBlockMetadata(xCoord, yCoord, zCoord) == 1) {\n if (this.furnaceItemStacks[par1] != null) {\n ItemStack itemstack = this.furnaceItemStacks[par1];\n this.furnaceItemStacks[par1] = null;\n return itemstack;\... |
"public String getSignature() {\n return getType() + \"String_Node_Str\" + signature.toString();\n}\n"
|
"public List<AlarmStateHistory> findById(String tenantId, String alarmId, String offset, int limit) throws Exception {\n String q = String.format(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", this.influxV9Utils.publicTenantIdPart(tenantId), this.influxV9Utils.alarmIdPart(alar... |
"public static void main(String[] args) throws XMLStreamException, FactoryConfigurationError, CoreIoException {\n get_myParts(SBOL2Doc_test);\n writeRdfOutputStream(SBOL2Doc_test);\n}\n"
|
"public Void computeResults(final OperationParams params) throws Exception {\n final File propFile = getGeoWaveConfigFile(params);\n final Properties existingProps = ConfigOptions.loadProperties(propFile, null);\n if (url != null) {\n existingProps.setProperty(GEOSERVER_URL, url);\n }\n if (getNam... |
"public void addPages() {\n mainPage = new FolderWizardPage(defaultLabel);\n addPage(mainPage);\n if (defaultLabel != null) {\n setWindowTitle(Messages.getString(\"String_Node_Str\"));\n } else {\n setWindowTitle(Messages.getString(\"String_Node_Str\"));\n }\n}\n"
|
"public LTTngTraceNode[] getTraces() {\n LTTngTraceNode[] result = (LTTngTraceNode[]) Array.newInstance(LTTngTraceNode.class, fChildren.size());\n return fChildren.toArray(result);\n}\n"
|
"protected void onResume() {\n super.onResume();\n ViewGroup playerv = (ViewGroup) findViewById(R.id.player);\n mMp.setController(this, playerv);\n if (mMp.hasActiveVideo())\n playerv.setVisibility(View.VISIBLE);\n else\n playerv.setVisibility(View.GONE);\n if (mDb.isRegisteredToPlaylist... |
"public void onConnectionStatusUpdate(boolean connected, ComponentName service, Context context) {\n if (!connected && !list.isEmpty()) {\n SdlRouterStatusProvider provider = new SdlRouterStatusProvider(context, list.poll(), this);\n if (triggerRouterServicePing) {\n provider.setFlags(Transp... |
"private boolean resetVMSSHKeyInternal(Long vmId, String sshPublicKey, String password) throws ResourceUnavailableException, InsufficientCapacityException {\n Long userId = CallContext.current().getCallingUserId();\n VMInstanceVO vmInstance = _vmDao.findById(vmId);\n VMTemplateVO template = _templateDao.findBy... |
"public void info(Object message, Throwable t) {\n if (isInfoEnabled())\n logger.log(SELF_FQCN, Level.INFO, message, t);\n}\n"
|
"public void render(GLGraphics g, float w, float h, GLElement parent) {\n final IRow r = parent.getLayoutDataAs(IRow.class, null);\n MultiFloat v = model.getSplittedValue(r);\n Color[] colors = model.getColors();\n if (v.repr >= 0) {\n boolean selected = model.getTable().getSelectedRow() == r;\n ... |
"private void saveCategory() {\n LOGGER.error(\"String_Node_Str\");\n String name = txCategoryName.getText();\n if (name.trim().compareTo(\"String_Node_Str\") == 0) {\n showError(\"String_Node_Str\");\n } else {\n Background.Category p = new Background.Category(name);\n try {\n ... |
"protected void flowThrough(Object inValue, Unit unit, List outFallValues, List outBranchValues) {\n final LocalTypeSet in = (LocalTypeSet) inValue;\n final LocalTypeSet out = (LocalTypeSet) in.clone();\n LocalTypeSet outBranch = out;\n final Stmt stmt = (Stmt) unit;\n for (Iterator bIt = stmt.getDefBoxe... |
"public FieldInfo identityField() {\n if (identityField != null) {\n return identityField;\n }\n try {\n lock.lock();\n if (identityField == null) {\n for (FieldInfo fieldInfo : fieldsInfo().fields()) {\n AnnotationInfo annotationInfo = fieldInfo.getAnnotations().... |
"public void testRowidNonPartitioned() throws Exception {\n AsOfJoinRecordSource source = new AsOfJoinRecordSource(compiler.compileSource(factory, \"String_Node_Str\"), 0, compiler.compileSource(factory, \"String_Node_Str\"), 0);\n String expected = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" ... |
"public String createdDocumentsSea() {\n List<Documents> documentsList = new ArrayList<Documents>();\n List<String> vendorCodeDocument = new ArrayList<String>();\n List<OrderItems> orderItemsList = new ArrayList<OrderItems>();\n Orders orderEntity = orderService.findOrdersById(orderIdParam);\n order = tr... |
"public void run() {\n for (EventListener listener : eventListeners) {\n if (listener.canHandle(o)) {\n try {\n listener.handle(o);\n } catch (Throwable e) {\n plugin.severe(\"String_Node_Str\", e.getClass().getName(), listener.getClass().getName());\n ... |
"public void testParseDateTime() {\n expectExceptionForParseRfc3339(\"String_Node_Str\");\n expectExceptionForParseRfc3339(\"String_Node_Str\");\n DateTime value = DateTime.parseRfc3339(\"String_Node_Str\");\n assertTrue(value.dateOnly);\n value = DateTime.parseRfc3339(\"String_Node_Str\");\n assertFa... |
"private String getNewCallcount(DocumentModel serviceModel, String newCalls) {\n Long previousCallcount, newCallsLong;\n try {\n previousCallcount = (Long) serviceModel.getProperty(Service.SCHEMA, Service.PROP_CALLCOUNT);\n } catch (Exception e) {\n previousCallcount = new Long(0);\n }\n if... |
"public int getOptionInteger(String optionName, String world, int defaultValue) {\n try {\n return Integer.parseInt(this.getOption(optionName, world, Integer.toString(defaultValue)));\n } catch (NumberFormatException ignore) {\n }\n return defaultValue;\n}\n"
|
"public boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile<DomainRouterVO> profile) {\n DomainRouterVO router = profile.getVirtualMachine();\n NicProfile controlNic = (NicProfile) profile.getParameter(VirtualMachineProfile.Param.ControlNic);\n cmds.addCommand(\"String_Node_Str\", new CheckSsh... |
"private void toSQL0(RenderContext context) {\n if (usingSyntax) {\n context.sql(\"String_Node_Str\");\n JooqUtil.toSQLNames(context, using);\n context.sql(\"String_Node_Str\");\n } else {\n context.sql(\"String_Node_Str\").sql(getCondition());\n }\n}\n"
|
"public void displayImage(final String url, final String mimeType, final String title, final String description, final String iconSrc, final MediaPlayer.LaunchListener listener) {\n int requestIdNumber = getNextId();\n final String requestId = String.format(Locale.US, \"String_Node_Str\", requestIdNumber);\n J... |
"public String toString() {\n String s = getFragment() + \"String_Node_Str\";\n if (children != null) {\n s += \"String_Node_Str\";\n for (Node node : children_.getValues()) {\n if (node != null) {\n s += node.getChar() + \"String_Node_Str\";\n }\n }\n ... |
"public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Index index = (Index) o;\n boolean equals = true;\n for (String column : index.getColumns()) {\n if (!columns.contains(column)) {\n equals = ... |
"public void extract(IDataExtractionOption option) throws BirtException {\n throw new EngineException(MessageConstants.UNSUPPORTED_DOCUMENT_VERSION_ERROR);\n}\n"
|
"public static void draw3DLine(Graphics g, int side, int style, int[] width, Rectangle r) {\n if (width.length <= side || width[side] <= 0) {\n return;\n }\n Color foreColor = g.getForegroundColor();\n Color inSideColor = foreColor;\n Color outSideColor = foreColor;\n Color darkColor = ColorMan... |
"private String reEncodeHtml(String str) {\n StringBuilder builder = new StringBuilder();\n if (str == null)\n return \"String_Node_Str\";\n String[] sources = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"S... |
"static LatLong calculateCenterOfBoundingBox(LatLong[] coordinates) {\n double pointXMin = coordinates[0].longitude;\n double pointXMax = coordinates[0].longitude;\n double pointYMin = coordinates[0].latitude;\n double pointYMax = coordinates[0].latitude;\n for (int i = 1; i < coordinates.length; ++i) {\... |
"public int getEndCellIndex(int row) {\n AbstractRowAdv rowObj = (AbstractRowAdv) getRow(row, false);\n if (rowObj != null) {\n idx1 = rowObj.getEndCellIndex();\n }\n NDataGrid dg = getDataGrid();\n if (dg == null || !dg.isSupportedDataStartEndIndex()) {\n return idx1;\n } else {\n ... |
"private void fetch() {\n while (nextEntry == null && iterator.hasNext()) {\n Map.Entry<Object, RICachedValue> entry = iterator.next();\n RICachedValue cachedValue = entry.getValue();\n K key = (K) RICache.this.keyConverter.fromInternal(entry.getKey());\n lockManager.lock(key);\n t... |
"public void connectionClosedOnError(Exception exception) {\n logger.error(\"String_Node_Str\" + exception.getLocalizedMessage());\n if (!reconnecting)\n reregister();\n else\n reconnecting = false;\n}\n"
|
"public void handleMessage(Message msg) {\n switch(msg.what) {\n case SHOW_ERROR_MSG:\n {\n HashMap data = (HashMap) msg.obj;\n synchronized (ActivityManagerService.this) {\n ProcessRecord proc = (ProcessRecord) data.get(\"String_Node_Str\");\n ... |
"private static ClassNode getNode(String name) throws IOException {\n byte[] bytes = classes.get(name);\n if (bytes == null) {\n InputStream is = clazz.getResourceAsStream(\"String_Node_Str\" + clazz.getName().replace('.', '/') + \"String_Node_Str\");\n if (is == null) {\n return null;\n ... |
"public VjoGenerator writeNeeds(final List<? extends IJstType> needs, final IJstType type) {\n if (needs == null || needs.size() == 0) {\n return this;\n } else if (needs.size() == 1) {\n if (!shouldExcludeNeed(type, needs.get(0))) {\n writeNeeds(needs.get(0).getName(), needs.get(0).getAl... |
"private void writeClassSerializationStatements() {\n if (serializableClass.isEnhanced()) {\n sourceWriter.println(\"String_Node_Str\" + WEAK_MAPPING_CLASS_NAME + \"String_Node_Str\");\n }\n for (JField serializableField : serializableFields) {\n JType fieldType = serializableField.getType();\n ... |
"public void resetAllModes() {\n mContext.enforcePermission(android.Manifest.permission.UPDATE_APP_OPS_STATS, Binder.getCallingPid(), Binder.getCallingUid(), null);\n HashMap<Callback, ArrayList<Pair<String, Integer>>> callbacks = null;\n synchronized (this) {\n boolean changed = false;\n for (in... |
"public boolean visitEdges(Predicate<Atom> predicate, Operation<ReadableAtomSpace, Atom> op) {\n for (Atom e : getEdges()) {\n if (predicate.evaluate(e)) {\n boolean result = op.operate(this, e);\n if (!result)\n return false;\n }\n }\n return true;\n}\n"
|
"public void close() throws IOException {\n flush();\n _writer.close(false);\n if (_countersSetup) {\n _recordRateCounter.close();\n _rowRateCounter.close();\n }\n if (_indexLocally) {\n if (_optimizeInFlight) {\n copyAndOptimizeInFlightDir();\n } else {\n ... |
"private void scan(long nowNanos, long nowMillis, OperationRunner[] operationRunners, CurrentOperationData[] currentOperationDataArray) {\n for (int i = 0; i < operationRunners.length && running; i++) {\n if (operationRunners[i].currentTask() == null) {\n continue;\n }\n scanOperation... |
"public static ByteBuffer defaultValue(AbstractType type) {\n CQL3Type cqlType = type.asCQL3Type();\n if (cqlType == CQL3Type.Native.INT) {\n return ByteBufferUtil.bytes(0);\n } else if (cqlType == CQL3Type.Native.VARINT || cqlType == CQL3Type.Native.BIGINT || cqlType == CQL3Type.Native.COUNTER) {\n ... |
"public void run() {\n instances[0].getMultiMap(name).lock(\"String_Node_Str\");\n latch.countDown();\n try {\n latch2.await(10, TimeUnit.SECONDS);\n instances[0].getMultiMap(name).unlock(\"String_Node_Str\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n insta... |
"private void placeImgBack() throws IOException, FailedExecuteCommand {\n mShell.execCommand(Const.Busybox + \"String_Node_Str\" + tmpFile);\n Common.copyFile(tmpFile, mCustomIMG);\n}\n"
|
"public FeedbackVo createFeedback(long feedbackType, String feedbackcontent, Date date) throws MultipleMessagesException, DuplicityException {\n FeedbackVo feedbackVo = new FeedbackVo();\n feedbackVo.setContent(feedbackcontent);\n feedbackVo.setDate(date);\n feedbackVo.setFeedbackTypeId(feedbackType);\n ... |
"public Feature getFeature() throws IOException {\n Feature feature = predecessor.getFeature();\n if (feature != null) {\n if (feature.hasContent()) {\n if ((feature.getID() % dropEveryNthFrame) == (dropEveryNthFrame - 1)) {\n if (replaceNthWithPrevious) {\n fea... |
"public void use(AbstractPlayer p, AbstractMonster m) {\n AbstractDungeon.actionManager.addToBottom(new DiscardAction(p, p, 1, false));\n AbstractDungeon.actionManager.addToBottom(new ApplyPowerAction(m, p, new WeakPower(m, magicNumber, false), magicNumber));\n}\n"
|
"public Set<String> getTeamIDs() {\n final Set<String> set = new HashSet<>();\n if (participantId != null) {\n try {\n Long.parseLong(participantId);\n } catch (final NumberFormatException e) {\n set.add(participantId);\n }\n }\n for (final LeagueEntry entry : entr... |
"public void removeBoard(String name) {\n savedBoards.remove(name);\n}\n"
|
"public final boolean handle(HttpServletRequest req, HttpServletResponse res, String target) {\n if (HuluSetting.isDevMode) {\n log.debug(\"String_Node_Str\", HttpUtil.getClientIP(req), method, target);\n }\n final ActionMethod actionMethod = actionMapping.getActionMethod(target);\n if (actionMethod ... |
"public void tick() {\n setFloatingBus(computer.getMemory().readRaw(scannerAddress + x));\n if (hPeriod > 0) {\n hPeriod--;\n if (hPeriod == 0) {\n x = -1;\n setScannerLocation(currentWriter.getYOffset(y));\n }\n } else {\n if (!isVblank && x < (APPLE_CYCLES_PE... |
"public String addVendorInPlanningError() {\n Map sessionAttributes = ActionContext.getContext().getSession();\n OrderItems entity = operationsService.findOrderItemById((Integer) sessionAttributes.get(\"String_Node_Str\"));\n orderItem = transformToOrderItemFormBean(entity);\n Orders orderEntity = orderServ... |
"public void onInventoryClick(InventoryClickEvent event) {\n Inventory inventory = event.getInventory();\n if (inventory.getName() == null) {\n return;\n }\n String title = inventory.getTitle();\n if (!inventory.getTitle().startsWith(plugin.myLocale().warpsTitle + \"String_Node_Str\")) {\n ... |
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n HttpSession session = request.getSession();\n if (session != null) {\n String user = request.getParameter(\"String_Node_Str\");\n String pass = request.getParameter(\"String_Node_St... |
"private void calculatePathwayScaling(final GL2 gl, final PathwayGraph pathway) {\n if (hashGLcontext2TextureManager.get(gl) == null)\n return;\n int pathwayPixelWidth = pathway.getWidth();\n int pathwayPixelHeight = pathway.getHeight();\n if (pathwayPixelWidth == -1 || pathwayPixelHeight == -1) {\n ... |
"public SessionInfo toSessionInfo() {\n SessionInfo info = new SessionInfo();\n info.sid = sessionID.toString();\n if (sessionType == Session.USER_SESSION) {\n info.stype = \"String_Node_Str\";\n } else if (sessionType == Session.APPLICATION_SESSION) {\n info.stype = \"String_Node_Str\";\n ... |
"public void testIsSame4DiffId() {\n ImportItem ImportItem1 = mock(ImportItem.class);\n Property property1 = mock(Property.class);\n when(itemRecord1.getProperty()).thenReturn(property1);\n when(property1.getId()).thenReturn(\"String_Node_Str\");\n when(property1.getVersion()).thenReturn(\"String_Node_St... |
"public INDArray subArray(int[] offsets, int[] shape, int[] stride) {\n ensureNotCleanedUp();\n int n = shape.length;\n if (shape.length < 1)\n return create(Nd4j.createBuffer(shape));\n if (offsets.length != n)\n throw new IllegalArgumentException(\"String_Node_Str\" + Arrays.toString(offsets... |
"public void paintCurrentStroke(Canvas canvas, Matrix toScrMatrix, boolean highQuality) {\n Path path = mCurrentPath;\n if (path == null) {\n return;\n }\n Paint paint = new Paint();\n canvas.save();\n canvas.concat(toScrMatrix);\n paint.setStyle(Style.STROKE);\n float scale = toScrMatrix... |
"public String getCourseStudentListAsCsv(String courseId, String googleId) throws EntityDoesNotExistException {\n HashMap<String, CourseDetailsBundle> courses = getCourseSummariesForInstructor(googleId);\n CourseDetailsBundle course = courses.get(courseId);\n boolean hasSection = hasIndicatedSections(courseId)... |
"public void createConfigurationFile(String filename) throws IOException {\n ArgumentNotValid.checkNotNullOrEmpty(filename, \"String_Node_Str\");\n File f = new File(filename);\n FileWriter fw = new FileWriter(f);\n try {\n fw.write(deployConfiguration.getXML());\n } finally {\n if (fw != n... |
"public SlackMessageHandle<SlackMessageReply> updateMessage(String timeStamp, SlackChannel channel, String message) {\n SlackMessageHandleImpl<SlackMessageReply> handle = new SlackMessageHandleImpl<SlackMessageReply>(getNextMessageId());\n Map<String, String> arguments = new HashMap<>();\n arguments.put(\"Stri... |
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n ChannelBuffer buf = (ChannelBuffer) msg;\n int type = buf.readUnsignedShort();\n buf.readUnsignedShort();\n if (type == MSG_IDENT || type == MSG_IDENT_FULL) {\n buf.readUnsignedInt();\n int ... |
"public static String translateScriptPath(String aResourceId) throws Exception {\n if (aResourceId != null && !aResourceId.isEmpty()) {\n Matcher httpMatcher = pattern.matcher(aResourceId);\n if (httpMatcher.matches()) {\n return aResourceId;\n } else {\n if (cache == null)... |
"public IMapData getMapData() throws MapLoadException {\n loadMapContent(EMapStartResources.HIGH_GOODS, null);\n OriginalMapFileContent mapData = mapContent.mapData;\n mapData.calculateBlockedPartitions();\n return mapData;\n}\n"
|
"public DecompilationResult decompileArchive(final File archive, File outputDir, Filter<ZipEntry> filter, final DecompilationListener listener) throws DecompilationException {\n Checks.checkFileToBeRead(archive, \"String_Node_Str\");\n Checks.checkDirectoryToBeFilled(outputDir, \"String_Node_Str\");\n log.info... |
"private void checkTimeLockedDependency(boolean shouldAccept) throws Exception {\n control.replay();\n connectWithVersion(useNotFound ? 70001 : 60001);\n ECKey key = new ECKey();\n Wallet wallet = new Wallet(unitTestParams);\n wallet.addKey(key);\n wallet.setAcceptTimeLockedTransactions(shouldAccept);... |
"void readArrayMapInternal(ArrayMap outVal, int N, ClassLoader loader) {\n if (DEBUG_ARRAY_MAP) {\n RuntimeException here = new RuntimeException(\"String_Node_Str\");\n here.fillInStackTrace();\n Log.d(TAG, \"String_Node_Str\" + N + \"String_Node_Str\", here);\n }\n while (N > 0) {\n ... |
"public NetworkACLItemVO findByAclAndNumber(long aclId, int number) {\n SearchCriteria<NetworkACLItemVO> sc = AllFieldsSearch.create();\n sc.setParameters(\"String_Node_Str\", aclId);\n sc.setParameters(\"String_Node_Str\", number);\n NetworkACLItemVO vo = findOneBy(sc);\n if (vo != null) {\n load... |
"protected void updateTiles(Axis2D axis) {\n int xPix = axis.getAxisX().getSizePixels();\n if (!isVisible() || xPix <= 0) {\n return;\n }\n double minx = axis.getMinX();\n double maxx = axis.getMaxX();\n double maxy = axis.getMaxY();\n double miny = axis.getMinY();\n double[] bounds = new... |
"public void applyParameters(Material program) {\n super.applyParameters(program);\n int texId = 0;\n DynamicFBOsManager dynamicFBOsManager = CoreRegistry.get(DynamicFBOsManager.class);\n FBO sceneOpaque = dynamicFBOsManager.get(DefaultDynamicFBOs.READ_ONLY_GBUFFER.getName());\n if (sceneOpaque != null) ... |
"public void postNotification() {\n if (foregroundId != 0 && foregroundNoti != null) {\n final String localPackageName = packageName;\n final int localForegroundId = foregroundId;\n final Notification localForegroundNoti = foregroundNoti;\n ams.mHandler.post(new Runnable() {\n ... |
"private int suck() throws IOException {\n if (buffer.remaining() == buffer.capacity())\n throw new IOException(\"String_Node_Str\");\n int bytesRead = suckle();\n if (bytesRead < 0)\n throw new EOFException(\"String_Node_Str\");\n return bytesRead;\n}\n"
|
"public void test_read_withValidInt() throws Exception {\n positionA = positionDAO.create(positionA);\n Position returnValue2 = positionDAO.create(positionB);\n Position returnValue3 = positionDAO.create(positionC);\n assertTrue(positionDAO.read(returnValue1.getId()).equals(returnValue1));\n assertTrue(p... |
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float sx, float sy, float sz) {\n boolean wrenchUsed = testWrenchUsage(x, y, z, player);\n if (wrenchUsed) {\n if (world.isRemote) {\n EndergenicTileEntity endergenicTileEntity = (EndergenicTileEnti... |
"public float getTotalBranchCoverage() {\n if (this.getCoverageResults().size() <= 0) {\n return 0.0f;\n }\n float totalBranch = this.getBranchCoverage() / this.getCoverageResults().size();\n totalBranch = Utils.roundFloat(1, RoundingMode.HALF_EVEN, totalBranch);\n return totalBranch;\n}\n"
|
"public void run() {\n synchronized (this) {\n try {\n activateBranches();\n while (isActive()) {\n while (!isIterationOver()) {\n wait();\n if (isDeadlocked() && !isIterationOver()) {\n while (isDeadlocked() && ... |
"public void initialize(IEmitterServices service) throws EngineException {\n this.service = service;\n if (service != null) {\n this.out = EmitterUtil.getOuputStream(service, \"String_Node_Str\" + getOutputFormat());\n }\n context.setTempFileDir(service.getReportEngine().getConfig().getTempDir());\n ... |
"public void createDomain(String domainName, String adminID) {\n if (this.hasApplicationConfiguration()) {\n if (!Boolean.parseBoolean(getProperty(NOT_ROUTE53_PROPERTY))) {\n ApplicationConfiguration appConf = this.applicationConfigurationDAO.get(APPLICATION_NAME);\n Route53Util.createDo... |
"private void callFunction(Context context, String function, FunctionType concrete, List<Var> oList, List<Var> iList, Var priorityVal) throws UndefinedTypeException, UserException {\n ArrayList<Var> realIList = new ArrayList<Var>(iList.size());\n ArrayList<Var> derefVars = new ArrayList<Var>();\n ArrayList<Var... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.