content
stringlengths
40
137k
"public static boolean matches(IBond bondA1, IBond bondA2, boolean matchBond, boolean shouldMatchRings, boolean matchAtomTypes) {\n if (!isAtomMatch(bondA1, bondA2, shouldMatchRings, matchAtomTypes)) {\n return false;\n }\n return isBondMatch(new DefaultBondMatcher(bondA1, matchBond, shouldMatchRings, m...
"private String getFullWmicResult(String alias, String verb, String property) {\n StringBuilder res = new StringBuilder();\n BufferedReader in = null;\n BufferedWriter bw = null;\n try {\n ProcessBuilder pb = new ProcessBuilder(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", alias, ver...
"public SerializableClassDescriptor run() {\n final SerializableClassRegistry reg = SerializableClassRegistry.getInstance();\n final SerializableClass serializableClass = reg.lookup(subject);\n final SerializableField[] fields = serializableClass.getFields();\n final boolean hasWriteObject = serializableCla...
"private static boolean copyShort(short[] data, ByteBuffer targetBuffer, SerializeState state) {\n int totalBytes = state.getTotalBytes();\n int remainingCapacity = targetBuffer.remaining();\n int bytesCopied = state.getBytesCopied();\n int remainingToCopy = data.length * 2 - bytesCopied;\n int canCopy =...
"public void testSubscriptionAfterApplicationNameUpdate() throws Exception {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"String_Node_Str\", apiStore.getSession());\n HttpResponse response = HTTPSClientUtils.doGet(storeURLHttp + \"String_Node_Str\", headers);\n Assert.asser...
"public void testTimeAffectsNanos() {\n long now = 1283895273005L;\n Timestamp t = new Timestamp(now);\n assertEquals(5000000, t.getNanos());\n t.setTime(now + 1);\n assertEquals(6000000, t.getNanos());\n}\n"
"private void send(Message m, int priority) {\n if (!supportsGGEP())\n m = m.stripExtendedPayload();\n int smh = hopsFlowMax;\n if ((smh > -1) && (m instanceof QueryRequest) && (m.getHops() >= smh))\n return;\n repOk();\n Assert.that(_outputQueue != null, \"String_Node_Str\");\n synchron...
"private void processDataElementAttributes(DataElementAttributes dataAttrs) {\n if (dataAttrs == null)\n return;\n String nativeName = dataAttrs.getName();\n String name = newParam.getName();\n if (StringUtil.isBlank(name) || (!StringUtil.isBlank(nativeName) && !name.equalsIgnoreCase(nativeName))) {\...
"public void writePortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player)) {\n return;\n }\n tag.setByte(\"String_Node_Str\", distance);\n tag.setByte(\"String_Node_Str\", intensity);\n tag.setByte(\"String_Node_Str\", duration);\n}\n"
"private void imageDownloaded() {\n if (banner != null && banner.isImageBanner()) {\n if (!flipper.getCurrentView().equals(image))\n flipper.showNext();\n } else\n flipper.startFlipping();\n show();\n}\n"
"public void stopRecord() throws InterruptedException {\n synchronized (REC_LOCK) {\n if (isRecordStarted) {\n isTryStopAudio = true;\n if (isRecordAudioStarted) {\n mAudioThread.join();\n isRecordAudioStarted = false;\n }\n synchronize...
"protected void okPressed() {\n try {\n inputParameter.setName(nameEditor.getText());\n inputParameter.setPromptText(UIUtil.convertToModelString(promptTextEditor.getText(), true));\n String newControlType = getSelectedControlType();\n if (PARAM_CONTROL_COMBO.equals(newControlType)) {\n ...
"public String aliasName() {\n return (StringUtils.isNotNullOrEmpty(aliasName) && shouldAddIdentifierToAliasName) ? QueryBuilder.quoteIfNeeded(aliasName) : aliasName;\n}\n"
"public void setProperty(String sProperty, Object oValue) {\n if (sProperty.equals(IDeviceRenderer.UPDATE_NOTIFIER)) {\n _iun = (IUpdateNotifier) oValue;\n _lhmAllTriggers.clear();\n Object obj = _iun.peerInstance();\n if (obj instanceof JComponent) {\n JComponent jc = (JCompon...
"public void renderSmartConection(int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer, int channels, ForgeDirection of) {\n TileEntity te = this.tile.getWorldObj().getTileEntity(x + of.offsetX, y + of.offsetY, z + of.offsetZ);\n IPartHost ccph = te instanceof IPartHost ? (IPartHost) te : null;\n I...
"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...
"static String getClusterName(ProgramRun programRun) {\n String cleanedAppName = programRun.getApplication().replaceAll(\"String_Node_Str\", \"String_Node_Str\").toLowerCase();\n int maxAppLength = 51 - 5 - 1 - programRun.getRun().length();\n if (cleanedAppName.length() > maxAppLength) {\n cleanedAppNam...
"public float getBackoff(WordSequence wordSequence) {\n float logBackoff = 0.0f;\n UnigramProbability prob = null;\n if (prob != null) {\n logBackoff = prob.getLogBackoff();\n }\n return logBackoff;\n}\n"
"public void cancelLongPress() {\n removeLongPressCallback();\n}\n"
"private void setupForm() {\n buildWood = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.WOOD);\n buildClay = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.CLAY);\n buildStable = createForm(\"String_Node_Str\", \"String_Node_Str\", BuildingType.STABLE);\n buildBarracks...
"static private List<Match> findCandidateMatches(ScreenRegion screenRegion, String word, double minScore, boolean firstMatchOnly) {\n ScreenRegion snapshot = screenRegion.snapshot();\n TextMap map = TextMap.createFrom(snapshot.capture());\n List<TextMatch> ret = Lists.newArrayList();\n for (WeightedFontMode...
"public Document getCustomDocument() {\n return safe(getWrapped().getCustomDocument());\n}\n"
"public MappeableContainer flip(short i) {\n final int x = BufferUtil.toIntUnsigned(i);\n if (cardinality == MappeableArrayContainer.DEFAULT_MAX_SIZE + 1) {\n if ((bitmap.get(x / 64) & (1l << x)) != 0) {\n --cardinality;\n bitmap.put(x / 64, bitmap.get(x / 64) & ~(1l << x));\n ...
"private boolean checkDeclaredFields(TreeLogger logger, TypeInfoComputed typeInfo, TypePath parent, ProblemReport problems) {\n JClassType classOrInterface = (JClassType) typeInfo.getType();\n if (classOrInterface.isEnum() != null) {\n return true;\n }\n JClassType baseType = getBaseType(classOrInter...
"public DeploymentImpl beginCreate() {\n if (creatableResourceGroup != null) {\n creatableResourceGroup.create();\n }\n DeploymentInner inner = new DeploymentInner().withProperties(new DeploymentProperties());\n inner.properties().withMode(mode());\n inner.properties().withTemplate(template());\n ...
"public void draw(Canvas canvas) {\n if (isPlaying) {\n long elapsed = (System.currentTimeMillis() - last_tick);\n if (elapsed >= DURATION) {\n if (frame <= fcount) {\n last_tick = System.currentTimeMillis();\n frame++;\n } else {\n thi...
"protected void drawContainer(IContainerArea container) {\n IStyle style = container.getStyle();\n if (null == style) {\n return;\n }\n ContainerPosition curPos = getContainerPosition();\n if (container.getContent() != null) {\n int layoutX = curPos.x + getX(container);\n int layoutY...
"private static HashSet<String> findWhitelistedTypeDescriptorParts(final String typeDescriptor, final ArrayList<String> whitelistClassRefPrefix, final ArrayList<String> blacklistClassRefPrefix, HashSet<String> whitelistedFieldTypes) {\n final Matcher matcher = TYPE_PARAM_PATTERN.matcher(typeDescriptor);\n while (...
"public void execute(final Input input) {\n if (StringUtils.isBlank(input.getOption())) {\n input.setOption(Options.HELP.getOptionName());\n }\n switch(Options.fromName(input.getOption())) {\n case DETAILS:\n new PolicyDetails(input).details();\n break;\n case LIST:\n...
"public void biTemporalQueryIsWithInNowValueToLongTest3() {\n Long nowValue = 1456876800000l;\n CassandraUtils cu = this.setUpSuite2(nowValue);\n cu.insert(data1);\n cu.insert(data2);\n cu.insert(data3);\n cu.insert(data4);\n cu.insert(data5);\n cu.query(biTemporalSearch(\"String_Node_Str\").ope...
"public void buildFieldsAndMethods() {\n super.buildFieldsAndMethods();\n GroovyTypeDeclaration[] anonymousTypes = ((GroovyTypeDeclaration) referenceContext).getAnonymousTypes();\n if (anonymousTypes != null) {\n for (GroovyTypeDeclaration anonType : anonymousTypes) {\n anonType.scope = new G...
"public static Authorizable fromString(String entityString) {\n if (entityString == null || entityString.isEmpty()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n String[] typeAndId = entityString.split(EntityId.IDSTRING_TYPE_SEPARATOR, 2);\n if (typeAndId.length != 2) {\n ...
"public boolean hasError() {\n return catastrophe != null || !errorMap.isEmpty();\n}\n"
"private static void initialiseFactory() {\n if (sessionFactory == null || sessionFactory.isClosed()) {\n try {\n log.info(\"String_Node_Str\");\n AnnotationConfiguration config = new AnnotationConfiguration();\n config.setProperty(CONNECTION_PROVIDER_CLASS, ORG_HIBERNATE_CONN...
"public void fillContextMenu(IMenuManager menu) {\n if (!isShowMenu()) {\n return;\n }\n TreeSelection currentSelection = ((TreeSelection) this.getContext().getSelection());\n if (isSelectedColumnLevel(currentSelection) || isSelectedMdmColumn(currentSelection)) {\n IMenuManager submenu = new M...
"public void fireCheck(ServiceConfiguration config) throws ServiceRegistrationException, CheckException {\n try {\n Clusters.lookup(config).check();\n } catch (NoSuchElementException ex) {\n LOG.error(ex);\n }\n}\n"
"private boolean updateAngleBands(Product multiSizeProduct, Product targetProduct, S2BandConstants bandConstants) {\n Vector<RenderedOp> inputsZenith = new Vector(17);\n Vector<RenderedOp> inputsAzimuth = new Vector(17);\n String azimuthAnglesBandName = String.format(\"String_Node_Str\", bandConstants.getPhysi...
"private String substituteGroups(RemoteFile drf, Matcher m) {\n String dst = drf.getName();\n StringBuilder sb = new StringBuilder();\n boolean lastWasWildcard = false;\n int begin = 0;\n int cg = 0;\n for (int i = 0; i < dst.length(); i++) {\n char c = dst.charAt(i);\n switch(c) {\n ...
"public void run() {\n if (logger.isLoggable(Level.FINE))\n logger.log(Level.FINE, \"String_Node_Str\");\n universe.removeCell(cellID);\n}\n"
"public synchronized Token get(Branch branch) {\n Token tmp = null;\n boolean blocked = false;\n try {\n if (_isPutWaiting()) {\n _setPutWaiting(false);\n tmp = _token;\n _setRendezvousComplete(false);\n notifyAll();\n while (!_isRendezvousComplete(...
"public void createContent(String id, Element parent) {\n Document dom = parent.getOwnerDocument();\n if (ContentConstants.DOWNLOADEXTENSION_DATA.equals(id)) {\n Element tr = dom.createElement(\"String_Node_Str\");\n Element td = dom.createElement(\"String_Node_Str\");\n String style = \"Stri...
"public static void addColor(Player player) {\n ScoreboardManager scoreboardManager = Bukkit.getScoreboardManager();\n Team team = scoreboardManager.getMainScoreboard().getTeam(player.getName());\n if (team == null) {\n Team t = scoreboardManager.getMainScoreboard().registerNewTeam(player.getName());\n ...
"public void installOperations() {\n operations.put(ShutdownOperation.RPC_NAME, new ShutdownOperation(master));\n operations.put(StatusPageOperation.RPC_NAME, new StatusPageOperation(master));\n operations.put(GetProtocolVersionOperation.RPC_NAME, new GetProtocolVersionOperation(master));\n operations.put(C...
"public void sendMessageOnClick(View view) {\n sendMessage(false);\n}\n"
"public void testNanosComparison() {\n long now = 1283895273475L;\n Timestamp t = new Timestamp(now);\n t.setNanos(0);\n Timestamp t2 = new Timestamp(t.getTime());\n t2.setNanos(0);\n assertEquals(t, t2);\n assertEquals(0, t.compareTo(t2));\n assertFalse(t.before(t2));\n assertFalse(t.after(t...
"private void updateEmail(String newEmail) {\n PushAccountSettingsPayload payload = new PushAccountSettingsPayload();\n payload.params = new HashMap<>();\n payload.params.put(\"String_Node_Str\", newEmail);\n mDispatcher.dispatch(AccountActionBuilder.newPostSettingsAction(payload));\n}\n"
"public Object invoke(Data key, EntryProcessor entryProcessor, Object[] arguments) {\n final long now = Clock.currentTimeMillis();\n final long start = isStatisticsEnabled() ? System.nanoTime() : 0;\n CacheRecord record = records.get(key);\n final boolean isExpired = processExpiredEntry(key, record, now);\n...
"private void makeDescription(StringBuilder buf, boolean values) {\n final String sep = Util.nl + \"String_Node_Str\";\n buf.append(printSegmentHeaderInfo(sep));\n RolapStar.Column[] columns = aggregation.getColumns();\n for (int i = 0; i < columns.length; i++) {\n buf.append(sep);\n buf.appen...
"public final void shouldReturnBigDecimalValueFromStringUsingDecimalType() throws Exception {\n final String decimalStringValue = \"String_Node_Str\";\n defaultEntity.setField(DECIMAL_FIELD_NAME, decimalStringValue);\n BigDecimal result = defaultEntity.getDecimalField(DECIMAL_FIELD_NAME);\n Assert.assertNot...
"public void send(int channelIndex, Token data) throws NoRoomException, IllegalActionException {\n if (_port == null) {\n throw new IllegalActionException(JavaScript.this, \"String_Node_Str\" + _parameter.getName() + \"String_Node_Str\");\n }\n if (getManager().getState() == ptolemy.actor.Manager.WRAPPI...
"private void receiveParser(Context context, Intent intent) {\n try {\n int resultCode = intent.getIntExtra(Constants.EXTRA_PARSER_RESULT_CODE, TextParserService.RESULT_CODE_OK);\n if (resultCode == TextParserService.RESULT_CODE_OK) {\n parser = TextParser.fromString(intent.getStringExtra(Co...
"public void bindFromEmail(String emailAddress) {\n mQueryHandler.startQuery(TOKEN_EMAIL_LOOKUP, emailAddress, Uri.withAppendedPath(Email.CONTENT_LOOKUP_URI, Uri.encode(emailAddress)), EMAIL_LOOKUP_PROJECTION, null, null, null);\n}\n"
"private void setupAuthTokenFile(List<String> cmd, List<String> stdin) throws WindowsException {\n WindowsRemoteFileSystem wrfs = new WindowsRemoteFileSystem(dcomInfo.getCredentials());\n authTokenFilePath = dcomInfo.getNadminParentPath() + \"String_Node_Str\" + System.nanoTime() + new Random().nextInt(1000);\n ...
"public boolean performFinish() {\n boolean isMinEmpty = CheckValueUtils.isEmpty(lowerText.getText());\n boolean isMaxEmpty = CheckValueUtils.isEmpty(higherText.getText());\n if (isContainRowCount) {\n String plower = pLowerText.getText();\n String phigher = pHigherText.getText();\n boolea...
"public int getSearchCount(String query, int maxitems) {\n return getSearchCourses(query, maxitems).size();\n}\n"
"public void parse() {\n try {\n Pattern honbunPattern = Pattern.compile(\"String_Node_Str\", Pattern.DOTALL);\n Pattern resPattern = Pattern.compile(\"String_Node_Str\", Pattern.DOTALL);\n Pattern textPattern = Pattern.compile(\"String_Node_Str\", Pattern.DOTALL);\n Pattern imgPattern = ...
"public void onIpScanned(String ip) {\n scanPercentage += getPerDevicePercent();\n updatePercentageOnActivity(scanPercentage);\n}\n"
"public void actionPerformed(ContextMenuItemEvent event) {\n app.setShowInHUD(true);\n}\n"
"public static ICubeQueryDefinition createCubeQuery(CrosstabReportItemHandle crosstabItem, IDataQueryDefinition parentQuery, boolean needMeasure, boolean needRowDimension, boolean needColumnDimension, boolean needBinding, boolean needSorting, boolean needFilter) throws BirtException {\n ICubeQueryDefinition cubeQuer...
"public int relayedBlocks(List<Block> blocks) throws VerificationException {\n if (blocks == null || blocks.size() == 0) {\n return 0;\n }\n Block prev = null;\n Block first = blocks.get(0);\n int rollbackBlockNo = 0;\n if (Arrays.equals(first.getBlockPrev(), this.getLastBlock().getBlockHash())...
"private void saveAccumulatorsOrStartTimes() {\n for (Map.Entry<Integer, Map<Integer, TimelineHostEventAccumulator>> entry : accumulators.entrySet()) {\n final int hostId = entry.getKey();\n final Map<Integer, TimelineHostEventAccumulator> hostAccumulators = entry.getValue();\n for (Map.Entry<In...
"public static List<HierarchicalStack> splitTier(final StackId roughTilesStackId, final Bounds parentStackBounds, final int maxPixelsPerDimension, final int tier) {\n final List<HierarchicalStack> splitStacks = new ArrayList<>();\n final int parentWidth = (int) Math.ceil(parentStackBounds.getDeltaX());\n final...
"public void preInit(FMLPreInitializationEvent event) {\n super.preInit(event);\n NetworkRegistry.instance().registerGuiHandler(this, proxy);\n MinecraftForge.EVENT_BUS.register(this);\n MinecraftForge.EVENT_BUS.register(proxy);\n Settings.CONFIGURATION.load();\n blockExplosive = new BlockExplosive(Se...
"public static String calculateClasspath(IJavaProject javaProject) {\n try {\n Set<String> accumulatedPathEntries = new LinkedHashSet<String>();\n IProject project = javaProject.getProject();\n String projectName = project.getName();\n IPath defaultOutputPath = javaProject.getOutputLocati...
"public void deleteResource(StoragePath storagePath) throws NotFoundException, GenericException {\n Path resourcePath = FSUtils.getEntityPath(basePath, storagePath);\n FSUtils.deletePath(resourcePath);\n Path resourceHistoryPath = historyPath.resolve(resourcePath);\n try {\n FSUtils.deletePath(resour...
"public DimensionType getY() {\n if (y != null) {\n return y;\n }\n if (generateBy instanceof ReportItemDesign) {\n return ((ReportItemDesign) generateBy).getY();\n }\n return null;\n}\n"
"public void sprint() {\n if (currentState != State.DEAD && stamina > 0 && !firing && !wasSprinting && recoveryTime <= 0) {\n Weapon weapon = this.inventory.currentItem();\n boolean isReady = weapon != null ? weapon.isReady() : true;\n if (weapon == null || !weapon.getType().equals(Type.ROCKET_L...
"public boolean onNavigationItemSelected(MenuItem item) {\n navigateTo(item.getItemId(), getControllerFor(item.getItemId()));\n return true;\n}\n"
"public void testNotChanged() {\n Webhook hubA = Webhook.builder().name(\"String_Node_Str\").channelUrl(\"String_Node_Str\").callbackUrl(\"String_Node_Str\").build().withDefaults();\n Webhook hubC = Webhook.builder().name(\"String_Node_Str\").channelUrl(\"String_Node_Str\").callbackUrl(\"String_Node_Str\").build(...
"private Map<String, Map<String, Object>> gatherReferencedAttributes(AttributeReference ar) {\n Map<String, Map<String, Object>> annos = new HashMap<String, Map<String, Object>>();\n try {\n Class<?> configBeanClass = Class.forName(ar.configBean());\n Method m = configBeanClass.getMethod(ar.methodNa...
"public ArrayList<Property> getPropertyPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic) {\n ArrayList<Property> properties = new ArrayList<Property>();\n if (cls == null) {\n return properties;\n }\n ArrayList<JavaMethod> getMethods = new ArrayList<JavaMethod>();\n for (JavaMet...
"protected View prepareDecorView(View v) {\n return ContextMenuDecorView.prepareDecorView(getSupportActivity(), v, this, INTERNAL_DECOR_VIEW_ID);\n}\n"
"void writeDurationsToParcel(Parcel out) {\n out.writeInt(mDurationsTableSize);\n for (int i = 0; i < mDurationsTableSize; i++) {\n if (DEBUG_PARCEL)\n Slog.i(TAG, \"String_Node_Str\" + mName + \"String_Node_Str\" + i + \"String_Node_Str\" + printLongOffset(mDurationsTable[i]));\n out.wri...
"private void handleDoubleClick(int column, Object target) {\n if (column == 1 && getTreeProvider().allowsSecurity(target)) {\n Permission perm = getTreeProvider().getPermission(target);\n if (perm == null) {\n perm = getTreeProvider().createPermission(target);\n }\n boolean al...
"public static final DefactoModel readModel(String pathToModel, Boolean isCorrect, List<String> languages) throws FileNotFoundException {\n Model model = ModelFactory.createDefaultModel();\n model.read(new FileReader(pathToModel), \"String_Node_Str\", \"String_Node_Str\");\n String absolutePath = new File(path...
"protected void collectStats(final long key, final Context context) {\n final long level = (key % numLevels) + minLevel;\n context.getCounter(\"String_Node_Str\", \"String_Node_Str\" + Long.toString(level)).increment(1);\n}\n"
"public void fire(ArrayList<LeftClickListener> listeners) {\n for (LeftClickListener listener : listeners) {\n listener.onLeftClick(this);\n if (isCancelled())\n break;\n }\n}\n"
"public boolean shouldExecuteOnProject(Project project) {\n if (!PHP.equals(project.getLanguage())) {\n return false;\n }\n Configuration configuration = project.getConfiguration();\n boolean skip = configuration.getBoolean(PHPCS_SKIP_KEY, !configuration.getBoolean(PHPCS_SHOULD_RUN_KEY, !parseBoolean...
"private void removeItemFromRoster(Collection rosterItems, XMPPID itemIDToRemove) {\n boolean removed = false;\n for (Iterator i = rosterItems.iterator(); i.hasNext(); ) {\n IRosterItem item = (IRosterItem) i.next();\n if (item instanceof org.eclipse.ecf.presence.roster.RosterGroup) {\n o...
"private void registerDefaultProviders() {\n for (ProviderDefinition providerDefinition : getDefaultProviderProperties()) {\n if (!providerDefinition.getPlatforms().contains(platformBroker.getName()))\n continue;\n Map<String, String> properties = providerDefinition.getProperties();\n ...
"public int human$getExperienceSinceLevel() {\n return this.human$getTotalExperience() - xpAtLevel(this.human$getLevel());\n}\n"
"public Long startNode(String clusterName, String nodeGroupName, String nodeName) throws Exception {\n logger.info(\"String_Node_Str\" + ClusterCmdUtil.getFullNodeName(clusterName, nodeGroupName, nodeName));\n ClusterEntity cluster;\n NodeGroupEntity group;\n if ((cluster = ClusterEntity.findClusterEntityBy...
"protected void dealExtendedItem(ExtendedItem element, Module module) {\n dealReportItem(element, module);\n List values = (List) element.getLocalProperty(module, ExtendedItem.FILTER_PROP);\n if (!(values == null || values.size() < 1)) {\n for (int i = 0; i < values.size(); i++) {\n FilterCon...
"public void onRequestPermissionsResult(final int requestCode, final String[] permissions, final int[] grantResults) {\n LOGW(TAG, \"String_Node_Str\" + grantResults.length + \"String_Node_Str\" + permissions.length);\n if (grantResults.length == APP_REQUIRED_PERMISSIONS.length && grantResults[0] == PackageManage...
"public EnumActionResult onItemUse(EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {\n if (!worldIn.isRemote) {\n if (worldIn.rand.nextInt(16) == 0) {\n ItemStack stack = playerIn.getHeldItem(hand);\n Entity spawni...
"public final SortedSet<OWLClassExpression> getSuperClasses(OWLClassExpression concept) {\n if (precomputeClassHierarchy) {\n return getClassHierarchy().getSuperClasses(concept, true);\n } else {\n try {\n return getSuperClassesImpl(concept);\n } catch (ReasoningMethodUnsupportedEx...
"private void createAnonClassDecl(polyglot.ast.New aNew) {\n SootClass outerClass = ((soot.RefType) Util.getSootType(aNew.anonType().outer())).getSootClass();\n sootClass.addTag(new soot.tagkit.OuterClassTag(outerClass, \"String_Node_Str\", true));\n soot.SootClass typeClass = ((soot.RefType) Util.getSootType(...
"public void run() {\n op.checkIfCancelled();\n final int x0 = rectangle.x;\n final int y0 = rectangle.y;\n final int w = rectangle.width;\n final int h = rectangle.height;\n final int xMax = x0 + w;\n final int yMax = y0 + h;\n final Rectangle sourceRectangle = getSourceRectangle(x0, y0, w, h);...
"public RrPolygonList hatch(LayerRules layerConditions, boolean surface, RrHalfPlane overrideDirection) {\n RrPolygonList result = new RrPolygonList();\n boolean foundation = layerConditions.getLayingSupport();\n Extruder[] es = layerConditions.getPrinter().getExtruders();\n for (int i = 0; i < size(); i++)...
"public String toDebugString() {\n if (getJNode() instanceof JMethodCall) {\n return \"String_Node_Str\" + ((JMethodCall) getJNode()).getTarget().getName() + \"String_Node_Str\";\n }\n return \"String_Node_Str\" + getJNode().toSource() + \"String_Node_Str\";\n}\n"
"protected TupleList executeList(final SqlTupleReader tr) {\n tr.setMaxRows(maxRows);\n for (CrossJoinArg arg : args) {\n addLevel(tr, arg);\n }\n List<Object> key = new ArrayList<Object>();\n key.add(tr.getCacheKey());\n key.addAll(Arrays.asList(args));\n TupleList result = cache.get(key);\...
"public void run(IAction action) {\n store = getIPreferenceStore();\n Configuration config = getConfiguration(store, selection);\n PropertiesLoader props = getPropertiesLoader(config.language);\n StructuredSelection structuredSelection = null;\n InputStream inputStream = null;\n FileOutputStream outpu...
"private void addAuthenticationFields() {\n Group authGroup = Form.createGroup(this, 1, Messages.getString(\"String_Node_Str\"), 110);\n authGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n authPartComposite = new Composite(authGroup, SWT.NULL);\n GridLayout authPartLayout = new GridLayout(1, ...
"private void clearImpl() {\n Map<File, Future> fileFutures;\n rwLock.writeLock().lock();\n try {\n fileFutures = new ArrayList<Future>(fileToFutures.values());\n fileToFutures.clear();\n files.clear();\n urnMap.clear();\n fileToFileDescMap.clear();\n } finally {\n ...
"private void assertTree(SortedSet<TreeEntry> tree, String volume, String path, boolean recursive) throws Exception {\n SortedSet<TreeEntry> subtree = getSubtree(tree, path, recursive);\n int offs = 0;\n for (TreeEntry entry : subtree) {\n if (path.equals(entry.getName()))\n offs = entry.getN...
"public BooleanToken isLessThan(ScalarToken arg) throws IllegalActionException {\n int typeInfo = TypeLattice.compare(this, arg);\n if (typeInfo == CPO.INCOMPARABLE) {\n throw new IllegalActionException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + arg.getType());\n }\n if (typeIn...
"public boolean applies(Ability abilityToModify, Ability source, Game game) {\n if (abilityToModify instanceof SpellAbility || abilityToModify instanceof FlashbackAbility || abilityToModify instanceof RetraceAbility) {\n Card sourceCard = game.getCard(abilityToModify.getSourceId());\n StackObject stack...
"static List topOrBottom(Evaluator evaluator, List members, Calc exp, boolean isTop, boolean isPercent, double target) {\n Map mapMemberToValue = evaluateMembers(evaluator, exp, members, false);\n sort(evaluator, members, exp, isTop, true);\n if (isPercent) {\n toPercent(members, mapMemberToValue);\n ...
"public Sound transform(Sound sound) {\n int threshold = 100;\n int channelNum = sound.getChannelNum();\n Sound builtSound = new Sound(new long[sound.getSamples().length], sound.getNbBytesPerSample(), sound.getFreq(), channelNum);\n List<Integer> freqs;\n this.log(new LogEvent(LogLevel.VERBOSE, \"String_...
"protected void _execute() throws IllegalActionException {\n CompositeActor container = (CompositeActor) classToInstantiate.getContainer();\n CompositeActor newActor = null;\n try {\n Instantiable instance = null;\n StructuralInformation info = _strucuralInformation.get(classHandle);\n Lin...