content
stringlengths
40
137k
"public String toString() {\n String string = \"String_Node_Str\";\n if (containsInformation(subject)) {\n string += subject;\n if (containsInformation(teacher))\n string += \"String_Node_Str\" + teacher + \"String_Node_Str\";\n } else if (containsInformation(teacher))\n string ...
"private void initNetwork() {\n logger.info(\"String_Node_Str\");\n Set<SwitchInfoData> switches = new HashSet<>(pathComputer.getSwitches());\n Set<IslInfoData> links = new HashSet<>(pathComputer.getIsls());\n logger.info(\"String_Node_Str\", switches.size());\n logger.info(\"String_Node_Str\", links.siz...
"private void updateFormatField() {\n String displayFormat;\n IChoiceSet choiceSet = getFormatChoiceSet(getSelectedDataType());\n if (choiceSet == null) {\n displayFormat = DEUtil.getMetaDataDictionary().getChoiceSet(DesignChoiceConstants.CHOICE_STRING_FORMAT_TYPE).findChoice(DesignChoiceConstants.STRIN...
"public Object check(Object value) throws UWSException {\n if (value == null)\n return null;\n int maxOutputLimit = getMaxOutputLimit();\n Integer defaultOutputLimit = (Integer) getDefault(), maxRec = null;\n if (value instanceof Integer)\n maxRec = (Integer) value;\n else if (value instanc...
"public static void main(String[] args) throws FileNotFoundException, IOException {\n CommandOption.setSummary(SvmLight2Classify.class, \"String_Node_Str\");\n CommandOption.process(SvmLight2Classify.class, args);\n if (args.length == 0) {\n CommandOption.getList(SvmLight2Classify.class).printUsage(fals...
"public void testLateRootAndChildTask() throws InterruptedException {\n final String rootTaskId = \"String_Node_Str\";\n final String[] childTaskIds = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };...
"public String addWhereToSqlStringStatement(String completedSqlString, List<String> whereExpressions) throws ParseException {\n TypedReturnCode<String> trc = this.prepareQuery(completedSqlString);\n String query = trc.getObject();\n String where = this.buildWhereExpression(whereExpressions);\n if ((where !=...
"public double[] percentages(ArrayList<HappyBottle> plottables) {\n Iterator<HappyBottle> itr = plottables.iterator();\n double happy = 0;\n double sad = 0;\n double[] values = new double[2];\n while (itr.hasNext()) {\n HappyBottle element = itr.next();\n int x = new Timestamp(element.getTi...
"protected void initStorage() {\n keyPropertyStore = new DynamicStringStore(getStorageFileName() + \"String_Node_Str\", getConfig(), IdType.PROPERTY_INDEX_BLOCK);\n}\n"
"private void resetOperatingCompanies(List<PublicCompanyI> mergingCompanies) {\n List<PublicCompanyI> companies = new ArrayList<PublicCompanyI>(Arrays.asList(operatingCompanyArray));\n PublicCompanyI cgr = companyManager.getCompanyByName(PublicCompany_CGR.NAME);\n boolean cgrCanOperate = cgr.hasStarted();\n ...
"public boolean readDocument(final ReadMarshallable marshaller) {\n return read(marshaller, ReadMarshallable::readMarshallable);\n}\n"
"public int setPlaybackRate(int sampleRateInHz) {\n if (mState != STATE_INITIALIZED) {\n return ERROR_INVALID_OPERATION;\n }\n if (sampleRateInHz <= 0) {\n return ERROR_BAD_VALUE;\n }\n return native_set_playback_rate(sampleRateInHz);\n}\n"
"private void measureHeader() {\n int widthMeasureSpec = MeasureSpec.makeMeasureSpec(getWidth() - getPaddingLeft() - getPaddingRight() - (isScrollBarOverlay() ? 0 : getVerticalScrollbarWidth()), MeasureSpec.EXACTLY);\n int heightMeasureSpec = 0;\n ViewGroup.LayoutParams params = mHeader.getLayoutParams();\n ...
"private GrammarGraph parseRuleName(RuleName initialRuleName) throws GrammarException {\n debugPrintln(\"String_Node_Str\" + initialRuleName.toString());\n GrammarGraph result = (GrammarGraph) ruleStack.contains(initialRuleName.getRuleName());\n if (result != null) {\n return result;\n } else {\n ...
"private void initializeShit(Context context, AttributeSet attrs) {\n setText(\"String_Node_Str\");\n this.setBackground(getResources().getDrawable(R.drawable.checkbox_background));\n TypedArray tA = context.obtainStyledAttributes(attrs, R.styleable.wingokuflatui);\n final String userColor = tA.getString(R....
"private byte[] findClassBytes(String className) {\n if (JavaScriptHost.class.getName().equals(className)) {\n return javaScriptHostBytes;\n }\n if (classRewriter != null && classRewriter.isJsoIntf(className)) {\n byte[] newBytes = classRewriter.writeJsoIntf(className);\n if (CLASS_DUMP) {...
"private void onListModelDataChange(ListDataEvent event) {\n final ListModel<?> model = event.getModel();\n int type = event.getType();\n int index0 = event.getIndex0();\n int index1 = event.getIndex1();\n List<Component[]> cbrCompsList = (List<Component[]>) _owner.getAttribute(BinderCtrl.CHILDREN_BINDIN...
"public double getDecayExponent() {\n return getConfig().getDecayExponent();\n}\n"
"public void execute(IfcModelInterface model, Project project, ConcreteRevision concreteRevision, DatabaseSession databaseSession, Map<Long, IdEObject> created, Map<Long, IdEObject> deleted) throws UserException, BimserverLockConflictException, BimserverDatabaseException {\n EClass eClass = databaseSession.getEClass...
"private void fireMessageEvent(IIMMessageEvent event) {\n List toNotify = null;\n synchronized (messageListeners) {\n toNotify = new ArrayList(messageListeners);\n }\n for (final Iterator i = toNotify.iterator(); i.hasNext(); ) {\n final IIMMessageListener l = (IIMMessageListener) i.next();\n ...
"Name readName(Reader p) {\n int kind = p.readU8();\n switch(kind) {\n default:\n throw new RuntimeException(\"String_Node_Str\" + kind);\n case CONSTANT_TypeName:\n {\n int index = p.readU30();\n int count = p.readU30();\n assert (c...
"private void initializeGlobals(RenderScript RS, ScriptC_foreach s) {\n Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS));\n int X = 5;\n int Y = 7;\n s.set_dimX(X);\n s.set_dimY(Y);\n typeBuilder.setX(X).setY(Y);\n A = Allocation.createTyped(RS, typeBuilder.create());\n s.set_aRa...
"private static void verifyTimestamp(Node node) throws WSSecurityException {\n TimestampProcessor tsProc = new TimestampProcessor();\n LOG.debug(\"String_Node_Str\" + node);\n Vector retResults = new Vector();\n tsProc.handleToken((Element) node, null, null, null, null, retResults, WSSConfig.getDefaultWSCon...
"private boolean checkActuallyInTag(String cursorPrefix) {\n Assert.isNotNull(cursorPrefix, \"String_Node_Str\");\n int chevronCount = 0;\n int quoteCount = 0;\n boolean inQuotes = false;\n boolean inTag = false;\n String separators = \"String_Node_Str\";\n for (int i = cursorPrefix.length() - 1; i...
"public String getQueryText() throws ScriptException {\n return dataSet.getQueryText();\n}\n"
"public String toString() {\n return toStringHelper(this).addValue(flowName).addValue(switchId).addValue(inputPort).addValue(outputPort).addValue(inputVlanId).addValue(outputVlanId).addValue(outputVlanType).addValue(bandwidth).addValue(inputMeterId).addValue(outputMeterId).toString();\n}\n"
"public void onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case R.id.bar_timer_reset:\n drone.state.resetFlightTimer();\n return true;\n case R.id.bar_home:\n break;\n case R.id.menu_send_mission:\n drone.mission.sendMissionToAP...
"public void actionPerformed(ActionEvent actionEvent) {\n final ProductNodeList<Product> products = new ProductNodeList<>();\n Product[] openedProducts = SnapApp.getDefault().getProductManager().getProducts();\n for (Product prod : openedProducts) {\n products.add(prod);\n }\n Product product = Sn...
"protected void setUpInnerLayout(final View view) {\n super.setUpInnerLayout(view);\n md5sumView = (TextView) view.findViewById(R.id.md5sum_view);\n noteView = (TextView) view.findViewById(R.id.note_view);\n ImageButton downloadButton = (ImageButton) view.findViewById(R.id.download_view);\n ImageButton c...
"public void addShowcase(Location loc, Material material, short data, Player owner, ShowcaseType type, int amount, double price) {\n ShowcaseItem shit = new ShowcaseItem(loc, material, data, owner.getName(), type, amount, price);\n ShowcaseMain.instance.showcasedItems.add(shit);\n shit.setItemAmount(amount);\n...
"public XMLGregorianCalendar convertStringToXMLGregorianCalendar(String sourceString) {\n XMLGregorianCalendar calToReturn = null;\n try {\n calToReturn = getDatatypeFactory().newXMLGregorianCalendar(trimmedSourceString);\n } catch (IllegalArgumentException e1) {\n try {\n int length =...
"public static void copyFile(File srcFile, File destFile, boolean preserveFileDate) throws IOException {\n if (srcFile == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (destFile == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (!srcFile.ex...
"public static void extinguishNearby(World world, EntityPlayer player) {\n for (int x = (int) (player.posX - 1); x <= player.posX + 1; x++) for (int y = (int) (player.posY - 1); y <= player.posY + 1; y++) for (int z = (int) (player.posZ - 1); z <= player.posZ + 1; z++) if (world.getBlock(x, y, z) == Blocks.fire && P...
"public void update(DataDistribution<VehicleStateDistribution<O>> target, O obs) {\n final CountedDataDistribution<VehicleStateDistribution<O>> resampleDist = new CountedDataDistribution<VehicleStateDistribution<O>>(true);\n for (final VehicleStateDistribution<O> state : target.getDomain()) {\n final int c...
"public void testRecordTypeLeastSuperType2() {\n RecordTypeBuilder builder = new RecordTypeBuilder(registry);\n builder.addProperty(\"String_Node_Str\", NUMBER_TYPE, null);\n builder.addProperty(\"String_Node_Str\", STRING_TYPE, null);\n builder.addProperty(\"String_Node_Str\", STRING_TYPE, null);\n JSTy...
"public void close(SWF swf) {\n swfs.remove(swf);\n if (abcPanel != null && abcPanel.swf == swf) {\n abcPanel.clearSwf();\n }\n if (actionPanel != null) {\n actionPanel.clearSource();\n }\n oldValue = null;\n updateUi();\n updateTagTree();\n}\n"
"public int method(boolean isInterface, List<MethodBody> callStack, String pkg, boolean needsActivation, List<AssignableAVM2Item> subvariables, int initScope, boolean hasRest, int line, String className, String superType, boolean constructor, SourceGeneratorLocalData localData, List<GraphTargetItem> paramTypes, List<St...
"private static void request(List<ObjectNode> elementsToUpdate, List<String> elementsToDelete, Project project) throws JsonProcessingException {\n if (elementsToUpdate != null && !elementsToUpdate.isEmpty()) {\n Application.getInstance().getGUILog().log(\"String_Node_Str\" + elementsToUpdate.size() + \"String...
"public InnerClasses buildInnerClassesAttribute() {\n ConstantPoolGen cpg = classGen.getConstantPool();\n List<ClassRef> referencedClasses = new LinkedList<ClassRef>();\n for (String name : ConstantPoolReferenceFinder.findReferencedClasses(classInfo)) {\n referencedClasses.add(classInfo.getAppInfo().get...
"public View configureView(View view) {\n final CommentUserNoteBlockHolder noteBlockHolder = (CommentUserNoteBlockHolder) view.getTag();\n noteBlockHolder.nameTextView.setText(Html.fromHtml(\"String_Node_Str\" + getNoteText().toString() + \"String_Node_Str\"));\n noteBlockHolder.agoTextView.setText(DateTimeUti...
"private static Iterable<LinkedList<Relationship>> getPaths(Hit hit, DirectionData data) {\n LevelData levelData = data.visitedNodes.get(hit.connectingNode);\n if (levelData.depth == 0) {\n Collection<LinkedList<Relationship>> result = new ArrayList<LinkedList<Relationship>>();\n result.add(new Link...
"public void invokeAsync() {\n INDArray x = op.x();\n INDArray y = op.y();\n int tensorDim = 1;\n int nTensors = x.tensorssAlongDimension(tensorDim);\n subTasks = new ArrayList<>(nTensors);\n if (nTensors == 1) {\n Task<Pair<Double, Integer>> task = new CPUIndexAccumulationTask(op, threshold, f...
"public void run() {\n for (JailPrisoner prisoner : prisoners.values().toArray(new JailPrisoner[0])) {\n Player player = getServer().getPlayer(prisoner.getName());\n if (prisoner.getRemainingTime() > 0 && (player != null || (prisoner.getJail() != null && prisoner.getJail().getSettings().getBoolean(Sett...
"public void onWorldLoad(WorldLoadEvent event) {\n World w = event.getWorld();\n cb.worldSpawns.put(w, new Spawns());\n if (config.getKeys(\"String_Node_Str\") != null && config.getKeys(\"String_Node_Str\").contains(w.getName())) {\n this.cb.worldSpawns.get(w).SpawnAllowed.put(CreatureType.PIG, config.g...
"public void tagsUpdated(TaggedAxis1D axis) {\n Tag s = plot.getTimeSelectionTag();\n Tag m = plot.getTimeSelectionMaxTag();\n if (s != null && m != null && s.getValue() != m.getValue()) {\n s.setValue(m.getValue());\n plot.getTimeAxis().validateTags();\n }\n}\n"
"protected void addListInputItem(String name, String description, final String property) {\n JLabel label = addLabel(name, description);\n String values = properties.getProperty(property);\n String[] entries;\n if (values == null) {\n entries = new String[0];\n } else {\n entries = values.s...
"public void testSearchOnValue() throws Exception {\n BusinessMetadataRecord record = new BusinessMetadataRecord(flow1, \"String_Node_Str\", \"String_Node_Str\");\n dataset.setProperty(flow1, \"String_Node_Str\", \"String_Node_Str\");\n dataset.setProperty(flow1, \"String_Node_Str\", \"String_Node_Str\");\n ...
"private URL getStaticFileFromAssetsDir(String fileName) {\n URL url = null;\n if (ninjaProperties.isDev() && new File(assetsDirInDevModeWithoutTrailingSlash()).exists()) {\n String finalNameWithoutLeadingSlash = assetsControllerHelper.normalizePathWithoutLeadingSlash(fileName, false);\n File possib...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object targetObject, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n Object fieldValue = xmlObjectReferenceMapping.buildFieldValue(targetObject, xmlField, sessi...
"private void doAddContent(IContent content) {\n if (contents.size() == CONTENTS_CONVERTION_THRESHOLD) {\n contents = new LinkedHashSet<IContent>(contents);\n }\n contents.add(content);\n}\n"
"public DResult process(EndpointResult epr) {\n DResult result = new DResult();\n result.setEndpointResult(epr);\n log.debug(\"String_Node_Str\", _epURI);\n result.setDescriptionFiles((List) new ArrayList<DGETInfo>());\n int failures = 0;\n log.debug(\"String_Node_Str\", \"String_Node_Str\", _epURI);\...
"public static boolean updateDBConnection(ConnectionItem connectionItem, boolean show, final boolean onlySimpleShow) {\n List<IRepositoryViewObject> updateList = new ArrayList<IRepositoryViewObject>();\n IProxyRepositoryFactory factory = CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();\n List<Relat...
"public E convertToInternal(String varName, String in) throws PEException {\n String deq = PEStringUtils.dequote(in);\n E any = universe.get(deq);\n if (any == null) {\n throw new SchemaException(new ErrorInfo(DVEErrors.WRONG_VALUE_FOR_VARIABLE, varName, deq));\n }\n return any;\n}\n"
"public static void main(String[] args) throws Exception {\n BriefLogFormatter.init();\n System.out.println(\"String_Node_Str\");\n boolean runExpensiveTests = args.length > 1 && Integer.parseInt(args[1]) == 1;\n params = RegTestParams.get();\n File blockFile = File.createTempFile(\"String_Node_Str\", \"...
"public void test_FilterGroup() throws Exception {\n String sqlStatement = \"String_Node_Str\" + getTestTableName();\n ((OdaDataSetDesign) this.dataSet).setQueryText(sqlStatement);\n IBaseExpression[] expressions = new IBaseExpression[] { new ScriptExpression(\"String_Node_Str\"), new ScriptExpression(\"String...
"private void checkAndAddUser() {\n try (TransactionResource outter = Entities.transactionFor(CHAPUserInfo.class)) {\n CHAPUserInfo userInfo = Entities.uniqueResult(new CHAPUserInfo(\"String_Node_Str\"));\n outter.commit();\n if (!checkUser(\"String_Node_Str\")) {\n try {\n ...
"public boolean onCommand(CommandCaller caller, String[] args) {\n final PlotPlayer player = caller instanceof PlotPlayerCaller ? (PlotPlayer) caller.getSuperCaller() : null;\n final List<String> allowed_params = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"S...
"public void renderItem(ItemRenderType type, ItemStack item, Object... data) {\n String texture = ConstantValue.MICROSCOPE_MODEL;\n GL11.glPushMatrix();\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));\n switch(type.ordinal()) {\n cas...
"public void handle(ActionEvent actionEvent) {\n String[] parts = result.split(\"String_Node_Str\");\n setText(parts[0]);\n txLogoPath.setText(logo.getId());\n entriesPopup.hide();\n}\n"
"private void handleNormalInitialSegment() throws UriParserException, EdmException {\n final Matcher matcher = INITIAL_SEGMENT_PATTERN.matcher(currentPathSegment);\n if (!matcher.matches())\n throw new UriParserException(\"String_Node_Str\" + currentPathSegment);\n final String entityContainerName = mat...
"public void testThatDispensingIsValidIfQuantitiesAreSet() throws Exception {\n DispenseActivity dispenseActivity = getDispenseActivity();\n ListView mockListView = mock(ListView.class);\n View mockListItemView = mock(View.class);\n EditText mockEditText = new EditText(application);\n mockEditText.setTex...
"public void checkName(String name) throws NameException {\n ElementDefn metaData = (ElementDefn) element.getDefn();\n if (name == null) {\n if (element.hasDerived() || element.hasReferences())\n throw new NameException(element, null, NameException.DESIGN_EXCEPTION_HAS_REFERENCES);\n if (...
"private List<NodeRef> getDisposableItemsImpl(boolean isRecordLevelDisposition, NodeRef rmContainer) {\n List<NodeRef> items = filePlanService.getAllContained(rmContainer);\n List<NodeRef> result = new ArrayList<NodeRef>(items.size());\n for (NodeRef item : items) {\n if (recordFolderService.isRecordFol...
"private void setSystemVolume(VolumeStreamState streamState) {\n setStreamVolumeIndex(streamState.mStreamType, streamState.mIndex);\n int numStreamTypes = AudioSystem.getNumStreamTypes();\n for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) {\n if (streamType != streamState.mStream...
"public void testGetFolder2Args() throws PersistenceException {\n PowerMockito.mockStatic(ProjectManager.class);\n ProjectManager mockProjectManager = mock(ProjectManager.class);\n when(ProjectManager.getInstance()).thenReturn(mockProjectManager);\n Project mockProject = mock(Project.class);\n when(Proje...
"public void run() {\n if (mVideoDecoderTrack >= 0) {\n AvLog.d(\"String_Node_Str\");\n codecNum = 0;\n while (mCodecFlag && !videoDecodeStep()) {\n }\n ;\n Log.d(Aavt.debugTag, \"String_Node_Str\" + codecNum);\n mGLThreadFlag = false;\n try {\n mSem...
"public CloseableIterator<Object> query(final BasicHBaseOperations operations, final AdapterStore adapterStore, final Integer limit) {\n try {\n if (!operations.tableExists(StringUtils.stringFromBinary(index.getId().getBytes()))) {\n LOGGER.warn(\"String_Node_Str\" + StringUtils.stringFromBinary(in...
"private void testSimpleGradient(Algebra s) {\n double[] params = new double[] { 0.0, 0.0, 0.0, 0.0 };\n helpSimpleGradient(params, new ExpectedRecallFactory(), Trainer.ERMA, new double[] { -0.125, 0.125, 0.125, -0.125 }, s);\n helpSimpleGradient(params, new L2DistanceFactory(), Trainer.ERMA, new double[] { -0...
"public boolean isOpaque() {\n if (mZoomDirty) {\n return mNextZoom > 0.999f;\n } else {\n if (mMessageProc == null) {\n return false;\n } else {\n return mRollo.mMessageProc.mZoom > 0.999f;\n }\n }\n}\n"
"protected void inputsToModel(boolean create) {\n String type = typePanel.getText();\n boolean typeChanged = false;\n BaseActor oldElement = e;\n String oldId = null;\n boolean isPlayer = false;\n if (!create) {\n typeChanged = (type.equals(CHARACTER_TYPE_STR) && !(e instanceof CharacterActor))...
"public Answer execute(final BackupSnapshotCommand command, final LibvirtComputingResource libvirtComputingResource) {\n final Long dcId = command.getDataCenterId();\n final Long accountId = command.getAccountId();\n final Long volumeId = command.getVolumeId();\n final String secondaryStoragePoolUrl = comma...
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n HttpRequest request = (HttpRequest) msg;\n QueryStringDecoder decoder = new QueryStringDecoder(request.getUri());\n Map<String, List<String>> params = decoder.getParameters();\n if (params.isEmpty()) {\n ...
"protected Configuration _readConfiguration(URL specificationURL) throws Exception {\n _parser.reset();\n Configuration toplevel = (Configuration) _parser.parse(specificationURL, specificationURL);\n ComponentEntity directory = ((Configuration) toplevel).getEntity(\"String_Node_Str\");\n if (directory insta...
"public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {\n BranchId branch = variableMap.getBranch(\"String_Node_Str\");\n ArtifactQuery.getArtifactListFromBranch(branch, EXCLUDE_DELETED);\n}\n"
"public void showNewFlexibleElementForm(final FlexibleElementDTO model, final boolean isUpdate) {\n int width = 700;\n int height = 350;\n String title = I18N.CONSTANTS.adminFlexible();\n final Window window = new Window();\n window.setHeading(title);\n window.setSize(width, height);\n window.setPl...
"protected IResultIterator executeOdiQuery(IEventHandler eventHandler) throws DataException {\n try {\n RDLoad rdLoad = RDUtil.newLoad(engine.getSession().getTempDir(), getEngineContext(), new QueryResultInfo(realBasedQueryID, null, -1));\n DataSetResultSet dataSetResult = rdLoad.loadDataSetData(null, ...
"public static String translateGroupNameForExport(Context context, String groupName) throws PackageException {\n if (!groupName.matches(\"String_Node_Str\")) {\n return groupName;\n }\n String objType = groupName.substring(0, groupName.indexOf('_'));\n String tmpEndString = groupName.substring(groupN...
"Query makeProxQuery(EasyNode parent, int slop, String field, int maxSnippets) throws QueryGenException {\n Vector terms = new Vector();\n Vector notVec = new Vector();\n for (int i = 0; i < parent.nChildren(); i++) {\n EasyNode el = parent.child(i);\n if (!el.isElement())\n continue;\...
"public Set<Description> getAssertedDefinitionsImpl(NamedClass nc) {\n OWLClass owlClass = OWLAPIDescriptionConvertVisitor.getOWLDescription(nc).asOWLClass();\n Set<OWLDescription> owlAPIDescriptions = owlClass.getEquivalentClasses(new HashSet<OWLOntology>(owlAPIOntologies));\n Set<Description> definitions = n...
"public void newIndex(Comparable newValue, QueryableEntry record) {\n ConcurrentMap<Data, QueryableEntry> records = mapRecords.get(newValue);\n if (records == null) {\n records = new ConcurrentHashMap<Data, QueryableEntry>(1, 0.75f, 1);\n mapRecords.put(newValue, records);\n if (!(newValue in...
"private boolean hasAlternate(JSType type, EquivalenceMethod eqMethod) {\n for (JSType alternate : getAlternates()) {\n if (alternate.checkEquivalenceHelper(type, eqMethod)) {\n return true;\n }\n }\n return false;\n}\n"
"public void setCraftingGrid() {\n for (int i = 0; i < 9; i++) {\n inventory[getMatrixOffset() + i] = SchematicHelper.getSchematicSlot(getStackInSlot(getCurrentSchematicSlot()), i);\n }\n PacketHandler.sendToServer(CoFHTileInfoPacket.getTileInfoPacket(this).addByte(PacketInfoID.SET_GRID.ordinal()));\n}\...
"public void showInterstitial() {\n if (loadedAd != null) {\n final AppLovinSdk sdk = AppLovinSdk.getInstance(context);\n final AppLovinInterstitialAdDialog interstitialAd = createInterstitial(context, sdk);\n interstitialAd.setAdDisplayListener(this);\n interstitialAd.setAdClickListener(...
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute == requestPort) {\n Actor actor = (Actor) getContainer();\n CompositeResourceScheduler scheduler = (CompositeResourceScheduler) getDecorator();\n if (scheduler != null && enabled()) {\n ...
"private void initializeClasspath(IJavaProject project, IProgressMonitor monitor) throws OperationCanceledException, CoreException {\n if (monitor != null && monitor.isCanceled()) {\n throw new OperationCanceledException();\n }\n if (project == null) {\n return;\n IClasspathEntry[] entries = n...
"public final void write(DataOutputStream codeStream) throws IOException {\n codeStream.writeInt(0xCAFEBABE);\n codeStream.writeShort(this.minor);\n codeStream.writeShort(this.major);\n this.constantPool.write(codeStream);\n codeStream.writeShort(this.accessFlags);\n codeStream.writeShort(this.thisCla...
"private Collection<ResourceHolder> handleEntityDeath(EntityDeathEvent event, LivingEntity entity, Player killer) {\n boolean hasKiller = (killer != null);\n Integer id = entity.getEntityId();\n Configuration config = null;\n Action action = null;\n FutureReward future = null;\n List<ResourceHolder> g...
"public ArrayList<ResultModel> getResultSet(String key) {\n int pos = key.indexOf(\"String_Node_Str\");\n if (pos > 0) {\n symbol = 1;\n String keyBefore = key.substring(0, pos);\n String keyAfter = key.substring(pos + 1, key.length());\n vecKey.add(keyBefore);\n vecKey.add(keyA...
"private void setApps(ArrayList<ApplicationInfo> list) {\n final int count = list != null ? list.size() : 0;\n int allocCount = count;\n if (allocCount < 1) {\n allocCount = 1;\n }\n mIcons = new Allocation[count];\n mIconIds = new int[allocCount];\n mAllocIconIds = Allocation.createSized(mR...
"public void onPlayerDeath(PlayerDeathEvent event) {\n final Player currentPlayer = event.getEntity();\n FPlayer currentFPlayer = FPlayers.i.get(currentPlayer);\n if (Utilities.isWarZone(Board.getFactionAt(currentPlayer.getLocation()))) {\n if (!FactionsPlus.permission.has(currentPlayer, \"String_Node_S...
"public void onKeyDown(KeyDownEvent event) {\n if ((event.isMetaKeyDown() || event.isControlKeyDown()) && event.getNativeKeyCode() == KeyCodes.KEY_F) {\n event.stopPropagation();\n event.preventDefault();\n ModelGrid.this.find();\n } else if (event.getNativeKeyCode() == KeyCodes.KEY_F3) {\n ...
"private void makeBasicBlocks() {\n BasicBlock entry = new BasicBlock(-1, -2);\n addNode(entry);\n this.entry = entry;\n SSAInstruction[] instructions = (SSAInstruction[]) getInstructions();\n if (instructions.length > 0) {\n final boolean[] r = new boolean[instructions.length];\n r[0] = tr...
"public void test() {\n HipsterDirectedGraph<String, String> graph = GraphBuilder.create().connect(\"String_Node_Str\").to(\"String_Node_Str\").withEdge(\"String_Node_Str\").connect(\"String_Node_Str\").to(\"String_Node_Str\").withEdge(\"String_Node_Str\").connect(\"String_Node_Str\").to(\"String_Node_Str\").withEdg...
"public void testBasic3() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.cr...
"public SlackMessageHandle<SlackMessageReply> addReactionToMessage(SlackChannel channel, String messageTimeStamp, String emojiCode) {\n SlackMessageHandleImpl<SlackMessageReply> handle = new SlackMessageHandleImpl<SlackMessageReply>(getNextMessageId());\n Map<String, String> arguments = new HashMap<>();\n argu...
"private static void clearProjectIndenpendComplianceSettings(IJavaProject javaProject) {\n Map<String, String> projectComplianceOptions = javaProject.getOptions(false);\n if (projectComplianceOptions == null || projectComplianceOptions.isEmpty()) {\n return;\n }\n String compilerCompliance = javaProj...
"public static SoftwareManagerCollectorException ILLEGAL_ACCESS(Exception ex, String name) {\n return new SoftwareManagerCollectorException(ex, \"String_Node_Str\", name);\n}\n"
"public void copyLog(String containerId, Map<String, Object> configurationParameters) throws IOException {\n String to = null;\n if (configurationParameters.containsKey(TO)) {\n to = (String) configurationParameters.get(TO);\n } else {\n throw new IllegalArgumentException(String.format(\"String_N...
"public byte[] uncompress(ByteBuffer org, byte[] ref_data, Inflater inflater) {\n return DeltaZip.remainingToByteArray(org);\n}\n"
"private FinishedEvent readFinishedEvent(BufferedReader textIn) throws IOException {\n FinishedEvent finished = new FinishedEvent();\n String line;\n int length = -1;\n do {\n line = textIn.readLine();\n Matcher matcher = HEADER_PATTERN.matcher(line);\n if (matcher.matches()) {\n ...