content
stringlengths
40
137k
"public void draw() {\n Entity riding = mc.player.getRidingEntity();\n if (riding == null) {\n return;\n }\n if (!(riding instanceof LocomotiveDiesel)) {\n return;\n }\n LocomotiveDiesel loco = (LocomotiveDiesel) riding;\n drawGauge(0xAA79650c, ((float) loco.getLiquidAmount()) / Fluid...
"private void processMouseDrag(Editor editor) {\n if (CommandState.getInstance().getMode() == CommandState.MODE_VISUAL) {\n CommandState.getInstance().popState();\n }\n int offset = editor.getCaretModel().getOffset();\n int start = editor.getSelectionModel().getSelectionStart();\n if (offset > sta...
"protected Object check(HadoopServiceProperties serviceProperties, ClassLoader classLoader) throws Exception {\n Object configuration = Class.forName(\"String_Node_Str\", true, classLoader).newInstance();\n Object conf = ReflectionUtils.newInstance(\"String_Node_Str\", classLoader, new Object[] { configuration })...
"public void commit(Transaction tx) {\n String url = tx.url() + \"String_Node_Str\";\n logger.debug(\"String_Node_Str\", url);\n HttpPost request = new HttpPost(url);\n request.setHeader(new BasicHeader(HTTP.CONTENT_TYPE, \"String_Node_Str\"));\n try (CloseableHttpResponse response = executeRequest(reque...
"private ElementDefinitionBindingComponent generateBinding(String bn, Profile p) throws Exception {\n BindingSpecification src = definitions.getBindingByName(bn);\n if (src == null)\n return null;\n ElementDefinitionBindingComponent dst = new Profile.ElementDefinitionBindingComponent();\n dst.setName...
"public HilightedTextWriter toString(HilightedTextWriter writer, List<Object> localData) {\n GraphTargetItem expr = expression;\n List<GraphTargetItem> ifBranch = onTrue;\n List<GraphTargetItem> elseBranch = onFalse;\n if (onTrue.isEmpty()) {\n if (onFalse.isEmpty()) {\n if (expr instanceo...
"public String getAssetsBaseUrl() {\n String rootPath = getAssetsRootPath();\n if (shouldUseAssetsOrSdCard()) {\n if (assetsOnExternalStorage()) {\n return \"String_Node_Str\" + rootPath;\n }\n return \"String_Node_Str\" + rootPath;\n } else\n return rootPath;\n}\n"
"public void checkPostTipOffReport() throws InterruptedException {\n AndroidElement e = mDriver.findElement(By.id(\"String_Node_Str\"));\n LogUtil.printCurrentMethodName();\n e.click();\n WaitUtil.forceWait(3);\n assertEquals(ContextUtil.getCurrentActivity(), \"String_Node_Str\");\n mDriver.findElemen...
"public BigDecimal getAmountCurrencyConverted(Currency currencyStart, Currency currencyEnd, BigDecimal amountToPay, LocalDate localDate) throws AxelorException {\n if (!currencyStart.equals(currencyEnd)) {\n CurrencyConversionLine currencyConversionLine = this.getCurrencyConversionLine(currencyStart, currency...
"private Rectangle createDraggableRectangle(double x, double y, double width, double height) {\n final double handleRadius = 10;\n Rectangle rect = new Rectangle(x, y, width, height);\n rect.setVisible(true);\n rect.setFill(Color.BLACK);\n rect.setOpacity(0.2);\n resizeHandleNW = new Circle(handleRadi...
"public void populateItem(final Item<ICellPopulator<NotificationTO>> cellItem, final String componentId, final IModel<NotificationTO> model) {\n final NotificationTO notificationTO = model.getObject();\n final ActionLinksPanel panel = new ActionLinksPanel(componentId, model);\n panel.add(new ActionLink() {\n\n...
"RouteInfo makeGlobalRoute(MediaRouterClientState.RouteInfo globalRoute) {\n RouteInfo route = new RouteInfo(sStatic.mSystemCategory);\n route.mGlobalRouteId = globalRoute.id;\n route.mName = globalRoute.name;\n route.mDescription = globalRoute.description;\n route.mSupportedTypes = globalRoute.supported...
"public Data getData() throws DataProcessingException {\n Data data;\n if (curPoint == -1) {\n data = new DataStartSignal();\n curPoint++;\n } else if (curPoint == numPoints) {\n if (numPoints > 0) {\n firstSampleNumber = (firstSampleNumber - frameShift + frameSize - 1);\n ...
"private void loadExternalScores(ScoreParseSpecification spec, Collection<ATableBasedDataDomain> dataDomains) {\n ATableBasedDataDomain target = null;\n for (ATableBasedDataDomain dataDomain : dataDomains) {\n if (dataDomain.getLabel().contains(\"String_Node_Str\")) {\n targetIDType = dataDomain...
"public float[] generateTransformedValuesBarChart(List<? extends Entry> entries, int dataSet, BarData bd, float phaseY) {\n float[] valuePoints = new float[entries.size() * 2];\n int setCount = bd.getDataSetCount();\n float space = bd.getGroupSpace();\n for (int j = 0; j < valuePoints.length; j += 2) {\n ...
"private ModelCoordinate createIndexCoordinateWithRemoteUrlHint(String remoteUrl) {\n ModelCoordinate mc = new ModelCoordinate(INDEX.getGroupId(), INDEX.getArtifactId(), INDEX.getClassifier(), INDEX.getExtension(), INDEX.getVersion());\n return createCopyWithRepositoryUrlHint(mc, remoteUrl);\n}\n"
"public void testAspectFailingExecution() throws Exception {\n scratch.file(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n reporter.removeHandler(failFastHandler);\n try {\n Analysis...
"public IValue resolve(MarkerList markers, IContext context) {\n if (this.instance != null) {\n if (this.instance.valueTag() == FIELD_ACCESS) {\n FieldAccess fa = (FieldAccess) this.instance;\n if (fa.instance != null) {\n fa.instance = fa.instance.resolve(markers, context...
"final void switchUserLocked(int userId) {\n if (mCurrentUser == userId) {\n return;\n }\n mCurrentUser = userId;\n int index = mTaskHistory.size();\n for (int i = 0; i < index; ) {\n final TaskRecord task = mTaskHistory.get(i);\n if (isCurrentProfileLocked(task.userId) || task.topRu...
"public static void writeImage(BufferedImage img, File f) {\n try {\n if (f.getParentFile() != null && !f.getParentFile().exists()) {\n f.getParentFile().mkdirs();\n }\n if (!f.getName().toUpperCase().endsWith(\"String_Node_Str\")) {\n f = new File(f.getName() + \"String_No...
"private void buildRequestBody(VariableElement var, RestDocumentation.Resource.Method doc) {\n doc.setRequestBody(jsonTypeFromTypeMirror(var.asType(), new HashSet<DeclaredType>()));\n}\n"
"public ModuleNeeded clone() {\n ModuleNeeded cloned = new ModuleNeeded(context, moduleName, informationMsg, mrRequired, installURL, requiredIf, mavenUri);\n cloned.bundleName = bundleName;\n cloned.bundleVersion = bundleVersion;\n cloned.context = context;\n cloned.dynamic = dynamic;\n cloned.exclude...
"public static ForgeArchive getDeployment() {\n ForgeArchive archive = ShrinkWrap.create(ForgeArchive.class).addBeansXML().addClasses(TestFooModel.class, TestFooSubModel.class).addAsAddonDependencies(AddonDependencyEntry.create(\"String_Node_Str\"), AddonDependencyEntry.create(\"String_Node_Str\"));\n return arch...
"public boolean hasWork() {\n if (this.getFuelStack() == null && fuelBurnTime <= 0)\n return false;\n else if (fuelBurnTime <= 0)\n if (RecipeManager.findMatchingRecipe(inventory.getStackInSlot(SLOT_RESOURCE), resourceTank.getFluid()) == null)\n return false;\n if (this.getFermentation...
"public Object getValue(Object element, String property) {\n if (element == dummyChoice) {\n ComputedColumn column = StructureFactory.newComputedColumn(inputElement, DEFAULT_COLUMN_NAME);\n column.setExpression(\"String_Node_Str\");\n addBinding(column);\n return \"String_Node_Str\";\n ...
"public void writeInvJump(MethodWriter writer, int varIndex, Label elseLabel) throws BytecodeException {\n if (varIndex >= 0) {\n writer.writeVarInsn(Opcodes.ALOAD, varIndex);\n }\n this.boxingMethod.writeInvoke(writer, null, null);\n this.pattern.writeInvJump(writer, -1, elseLabel);\n}\n"
"public void testMerge() throws Exception {\n assertTrue(\"String_Node_Str\" + MERGE_XML.getAbsolutePath(), MERGE_XML.isFile());\n assertTrue(\"String_Node_Str\" + MERGE_SOURCE.getAbsolutePath(), MERGE_SOURCE.isFile());\n assertTrue(\"String_Node_Str\" + MERGE_TARGET.getAbsolutePath(), MERGE_TARGET.isFile());\...
"public char getPieceAt(long square) {\n char p = ((pawns & square) != 0 ? 'p' : ((knights & square) != 0 ? 'n' : ((bishops & square) != 0 ? 'b' : ((rooks & square) != 0 ? 'r' : ((queens & square) != 0 ? 'q' : ((kings & square) != 0 ? 'k' : '.'))))));\n return ((whites & square) != 0 ? Character.toUpperCase(p) : ...
"private static void loadData() throws TException, InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException {\n KsDef ksDef = null;\n CfDef user_Def = new CfDef();\n user_Def.name = \"String_Node_Str\";\n user_Def.keyspace = _KEYSPACE;\n user_Def.setComparator_type(\"...
"public RefiringData fire(ArrayToken arguments) throws IllegalActionException {\n RefiringData data = super.fire(arguments);\n Mode choice = (Mode) mode.getChosenValue();\n String text = message.stringValue();\n MessageHandler oldHandler;\n switch(choice) {\n case ERROR:\n oldHandler = ...
"public void maxARecordPanel() {\n Point b = this.findElementDefineDriver(this.driver, By.xpath(locator.getString(\"String_Node_Str\"))).getLocation();\n Point a = this.findElementDefineDriver(this.driver, By.xpath(locator.getString(\"String_Node_Str\"))).getLocation();\n logger.info(\"String_Node_Str\" + b.x ...
"public void sort(Comparator<T> comparator) {\n getSortOrder().clear();\n allitems.sort(comparator);\n}\n"
"public Void visitClass(ClassTree ct, Void _) {\n TypeElement e = (TypeElement) TreeUtil.getElement(ct);\n if (e != null) {\n addDecl(gen.findTokenAfter(ct, false, ct.getSimpleName().toString()), e);\n List<ParsedType> descendants = getParsedType(e).descendants;\n if (!descendants.isEmpty()) ...
"public void messageArrived(Message<TaskDto> message) {\n if (!(contentPanel instanceof TaskContainer)) {\n return;\n }\n TaskDto taskDto = message.getPayload();\n if (!isThisPlace(taskDto)) {\n return;\n }\n if (((TaskContainer) contentPanel).containsTask(taskDto)) {\n return;\n ...
"public Number getValue(Object dataset, Comparable rowKey, Comparable columnKey) {\n if (isTOPChartInstalled()) {\n return chartService.getValue(dataset, rowKey, columnKey);\n }\n return Integer.MIN_VALUE;\n}\n"
"public static void main(String[] args) throws JMetalException, InterruptedException {\n DoubleProblem problem;\n Algorithm<List<DoubleSolution>> algorithm;\n CrossoverOperator<List<DoubleSolution>, List<DoubleSolution>> crossover;\n MutationOperator<DoubleSolution> mutation;\n SelectionOperator selectio...
"public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException, ServletException {\n HttpServletRequest request = (HttpServletRequest) servletRequest;\n Map<String, Object> authzid = (Map<String, Object>) request.getAttribute(AuthNFilter.ATTRIBUTE_AUTH_CONTEXT);\n Stri...
"private void createLoopLinks(List<FOXTreeNode> treeData) {\n for (FOXTreeNode treeNode : treeData) {\n if (treeNode.getColumn() != null) {\n TableItem tableItem = null;\n for (TableItem curTableItem : getSource().getItems()) {\n if (curTableItem.getText().equals(treeNode....
"public void testCase1() {\n ExecutionTime et = ExecutionTime.forCron(parser.parse(\"String_Node_Str\"));\n Optional<ZonedDateTime> olast = et.lastExecution(currentDateTime);\n ZonedDateTime last = olast.orElse(null);\n ZonedDateTime expected = ZonedDateTime.of(LocalDateTime.of(2015, 12, 31, 12, 0), ZoneId....
"public String getRid(Object entity) {\n Class clazz = entity.getClass();\n while (clazz != Object.class) {\n for (Field field : clazz.getDeclaredFields()) {\n OId ridAnnotation = field.getAnnotation(OId.class);\n if (ridAnnotation != null) {\n field.setAccessible(true)...
"public void testGrandTotal() 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 = columnEdg...
"private boolean generateExpansion(XhtmlNode x, ValueSet vs, ValueSet src, boolean header, List<UsedConceptMap> maps) throws FHIRFormatError, DefinitionException, IOException {\n boolean hasExtensions = false;\n List<String> langs = new ArrayList<String>();\n if (header) {\n XhtmlNode h = x.addTag(getHe...
"public void info() {\n GUIInfo info = new GUIInfo(guiHome);\n info.setVisible(true);\n}\n"
"protected String[] getCompatibleDataTypes(String dataType) {\n String[] compatibleTypes = null;\n if (DesignChoiceConstants.COLUMN_DATA_TYPE_STRING.equals(dataType)) {\n compatibleTypes = new String[] { DesignChoiceConstants.COLUMN_DATA_TYPE_DECIMAL, DesignChoiceConstants.COLUMN_DATA_TYPE_INTEGER, DesignC...
"public void handleShiftCombo() {\n while (Keyboard.next()) {\n if (Keyboard.getEventKeyState()) {\n int keyCode = Keyboard.getEventKey();\n switch(keyCode) {\n case Keyboard.KEY_LEFT:\n break;\n case Keyboard.KEY_RIGHT:\n ...
"public Context getCalleeTarget(CGNode caller, CallSiteReference site, IMethod callee, final InstanceKey[] receiver) {\n Context baseContext = base.getCalleeTarget(caller, site, callee, receiver);\n String calleeFullName = callee.getDeclaringClass().getName().toString();\n String calleeShortName = calleeFullNa...
"public boolean hasTheSameTagAs(DEEvent event) {\n Actor actor = event.actor();\n if (actor == null) {\n actor = (Actor) event.ioPort().getContainer();\n }\n boolean same = _timestamp.compareTo(event.timeStamp()) == 0 && _microstep == event.microstep();\n return same;\n}\n"
"private boolean findEmptyLocation(BlockCacheLocation location) {\n for (int j = 0; j < 10; j++) {\n OUTER: for (int bankId = 0; bankId < _banks.length; bankId++) {\n AtomicInteger bitSetCounter = _lockCounters[bankId];\n BlockLocks bitSet = _locks[bankId];\n if (bitSetCounter...
"public boolean act() {\n if (target.isAlive()) {\n int maxDmg = 3 + Math.round(4 * target.HP / (float) target.HT);\n target.damage(Random.Int(1, maxDmg), this);\n Buff.detach(target, Chill.class);\n if (target instanceof Hero) {\n Hero hero = (Hero) target;\n Item i...
"private void runShadowProcess(final Property property, final Node inputNode, final IContext selectContext, final IElementParameter switchParam) {\n DatabaseConnection connt = TracesConnectionUtils.createConnection(connParameters);\n String dbmsId = connt.getDbmsId();\n if (dbmsId == null) {\n Shell she...
"public static YamlConfiguration loadYamlFile(String file) {\n File dataFolder = plugin.getDataFolder();\n File yamlFile = new File(dataFolder, file);\n YamlConfiguration config = null;\n if (yamlFile.exists()) {\n try {\n config = new YamlConfiguration();\n config.load(yamlFile...
"public static void checkerMunger(IHierarchy model, Shadow shadow, Checker checker) {\n if (shadow.getSourceLocation() == null || checker.getSourceLocation() == null)\n return;\n String sourceHandle = ProgramElement.createHandleIdentifier(checker.getSourceLocation().getSourceFile(), checker.getSourceLocati...
"public Long toNonNullValue(Instant value) {\n return Long.valueOf(value.getMillis());\n}\n"
"public void run() {\n if (evt instanceof IContainerDisconnectedEvent || evt instanceof IContainerEjectedEvent) {\n final ID departedContainerID = ((evt instanceof IContainerDisconnectedEvent) ? ((IContainerDisconnectedEvent) evt).getTargetID() : ((IContainerEjectedEvent) evt).getTargetID());\n ID conn...
"private Parameters getParameters() {\n final Drone drone = this.droneMgr.getDrone();\n final Map<String, com.o3dr.services.android.lib.drone.property.Parameter> proxyParams = new HashMap<String, com.o3dr.services.android.lib.drone.property.Parameter>();\n List<Parameter> droneParameters = drone.getParameters(...
"public static CharGroup findWordInTree(Node node, final String string) {\n int index = 0;\n final StringBuilder checker = DBG ? new StringBuilder() : null;\n final int[] codePoints = getCodePoints(string);\n CharGroup currentGroup;\n do {\n int indexOfGroup = findIndexOfChar(node, codePoints[inde...
"public void optimizeMethod(MethodInfo method) {\n ConstantPoolGen cpg = method.getConstantPoolGen();\n InstructionList il = method.getCode().getInstructionList();\n InvokeMap invokeMap = new InvokeMap();\n for (InvokeSite invoke : method.getCode().getInvokeSites()) {\n CallString cs = new CallString...
"private static void injectViews(Object classObj, ViewFinder viewFinder) throws IllegalAccessException, IllegalArgumentException {\n Class<?> clazz = classObj.getClass();\n Field[] fields = clazz.getDeclaredFields();\n for (Field field : fields) {\n if (field.isAnnotationPresent(ViewInject.class)) {\n ...
"public String regexNotLike(String element, String regex) {\n return surroundWithSpaces(element + surroundWithSpaces(this.not() + getRegularExpressionFunction()) + regex);\n}\n"
"protected String post(Request req) {\n try {\n DataStore<Entity> store = datastoreHolder.get();\n Entity data = store.createNew();\n InputStream in = req.getInputStream();\n if (log.isTraceEnabled()) {\n in = FileUtil.print(in);\n }\n Entity inData = jsonHolder.g...
"public static void createIDTypesAndMapping() {\n IDCategory geneIDCategory = IDCategory.registerCategory(EGeneIDTypes.GENE.name());\n IDType david = IDType.registerType(EGeneIDTypes.DAVID.name(), geneIDCategory, EGeneIDTypes.DAVID.getColumnType());\n IDType.registerType(EGeneIDTypes.GENE_NAME.name(), geneIDCa...
"public long[] getRemoteSSRCs(MediaType mediaType) {\n ColibriConferenceIQ.Channel channel = getColibriChannel(mediaType);\n if (channel != null)\n return channel.getSSRCs();\n long ssrc = super.getRemoteSSRC(mediaType);\n return (ssrc == SSRC_UNKNOWN) ? ColibriConferenceIQ.NO_SSRCS : new int[] { (in...
"public static OMNode getFirstMatchingNode(final String xpath, final OMElement elt) throws MalformedConfigurationFileException {\n AXIOMXPath axiomXpath;\n List<OMNode> nodeList = null;\n try {\n axiomXpath = new AXIOMXPath(xpath);\n nodeList = axiomXpath.selectNodes(elt);\n return nodeLis...
"public static void testGaussian0() throws IOException, ClassNotFoundException {\n BayesianNetwork oneNormalVarBN = BayesianNetworkLoader.loadFromFile(\"String_Node_Str\");\n for (int i = 0; i < 10; i++) {\n Variable varA = oneNormalVarBN.getStaticVariables().getVariableByName(\"String_Node_Str\");\n ...
"public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {\n return new String[] { IDocument.DEFAULT_CONTENT_TYPE, CFPartitionScanner.HTM_END_TAG, CFPartitionScanner.HTM_TAG_ATTRIBS, CFPartitionScanner.HTM_START_TAG_BEGIN, CFPartitionScanner.HTM_START_TAG_END, CFPartitionScanner.CF_COMMENT, CFPartition...
"public ImagePlus applyClassifier(final Instances data, int w, int h, int numThreads, boolean probabilityMaps) {\n if (numThreads == 0)\n numThreads = Runtime.getRuntime().availableProcessors();\n final int numClasses = data.numClasses();\n final int numInstances = data.numInstances();\n final int nu...
"protected void writeSimpleMasterPage(DataOutputStream out, SimpleMasterPageDesign design) throws IOException {\n writeMasterPage(out, design);\n boolean showHeaderOnFirst = design.isShowHeaderOnFirst();\n if (!showHeaderOnFirst) {\n IOUtil.writeShort(out, FIELD_SHOW_HEADER_ON_FIRST);\n IOUtil.wr...
"public void complete(ActionReport report, Payload.Outbound outbound) {\n if (commandProgress != null && report != null && report.getActionExitCode() == ExitCode.SUCCESS) {\n commandProgress.complete();\n }\n this.payload = outbound;\n complete(report);\n if (isManagedJob) {\n JobPersistenc...
"public void loadWorldInventory(Player player, String world) {\n boolean newMember = true;\n if (plugin.sharesMap.containsKey(world)) {\n world = plugin.sharesMap.get(world);\n }\n String worldCheckName = \"String_Node_Str\" + world;\n for (String inventory : plugin.inventories.keySet()) {\n ...
"public boolean isAvailable() {\n return protectionGetOwnerMethod != null;\n}\n"
"private void startConnection(ManagedConnection conn) throws IOException {\n Thread.currentThread().setName(\"String_Node_Str\");\n if (conn.isGUESSUltrapeer()) {\n QueryUnicaster.instance().addUnicastEndpoint(conn.getInetAddress(), conn.getListeningPort());\n }\n}\n"
"public static void removeServiceGroup(String name) throws RestAPIException {\n try {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + name);\n }\n AutoscalerServiceClient asServiceClient = getAutoscalerServiceClient();\n StratosManagerServiceClient smServiceClie...
"public static boolean isDefaultValue(Map.Entry<PropertyDescriptor<?>, Object> entry) {\n PropertyDescriptor<?> desc = entry.getKey();\n Object value = entry.getValue();\n return areEqual(desc.defaultValue(), value);\n}\n"
"public static UFgExample get2ndOrderGraOnlyFg(AnnoSentence sent, CorpusStatistics cs, FeatureNames alphabet, int numParams, boolean onlyFast) {\n FactorGraph fg = new FactorGraph();\n DepParseFeatureExtractorPrm fePrm = new DepParseFeatureExtractorPrm();\n fePrm.featureHashMod = numParams;\n fePrm.firstOrd...
"public static <Q extends Quantity<Q>> String format(Q quantity, int digitCount, boolean keepTraillingZero, boolean displayUnit, Unit<Q> ptargetUnit) {\n String result = StringUtils.EMPTY;\n Unit<Q> localTargetUnit = ptargetUnit;\n DecimalFormat df = new DecimalFormat(\"String_Node_Str\", DecimalFormatSymbols....
"public ASTExtractionBlock getASTExtractionBlock() {\n List<VariableDeclarationStatement> allVariableDeclarationStatements = new ArrayList<VariableDeclarationStatement>();\n List<VariableDeclarationExpression> allVariableDeclarationExpressions = new ArrayList<VariableDeclarationExpression>();\n List<LocalVaria...
"public boolean performFinish() {\n boolean formIsPerformed = true;\n connectionItem.setConnection((SalesforceSchemaConnection) EcoreUtil.copy(temConnection));\n if (formIsPerformed) {\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n try {\n if (creation) {\n...
"public void callParticipantRemoved(CallParticipantEvent evt) {\n if (evt.getSourceCall() == call) {\n CallParticipant participant = evt.getSourceCallParticipant();\n CallParticipantPanel participantPanel = (CallParticipantPanel) participantsPanels.get(participant);\n if (participantPanel != nul...
"public static void loadSiliconRecipes() {\n GameRegistry.addShapelessRecipe(new ItemStack(BuildCraftTransport.gateCopier, 1), new ItemStack(BuildCraftCore.wrenchItem), EnumRedstoneChipset.RED.getStack(1));\n BuildcraftRecipeRegistry.assemblyTable.addRecipe(\"String_Node_Str\", 5000, PipeWire.RED.getStack(8), \"S...
"public <L, R> void bulkAddEdges(SqlgGraph sqlgGraph, SchemaTable in, SchemaTable out, String edgeLabel, Pair<String, String> idFields, List<Pair<L, R>> uids) {\n if (!sqlgGraph.tx().isInStreamingBatchMode() && !sqlgGraph.tx().isInStreamingWithLockBatchMode()) {\n throw SqlgExceptions.invalidMode(\"String_Nod...
"public void onIQ(final IQ iq) {\n if (IQ.isSuccess(iq)) {\n handler.onStorageResponse(new PrivateStorageResponseEvent(iq));\n }\n}\n"
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n Clock newObject = (Clock) super.clone(workspace);\n try {\n newObject.attributeChanged(newObject.offsets);\n newObject.attributeChanged(values);\n ArrayType valuesArrayType = (ArrayType) newObject.values.getType()...
"public boolean registerApplianceStatusListener(ApplianceStatusListener applianceStatusListener) {\n if (applianceStatusListener == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n boolean result = applianceStatusListeners.add(applianceStatusListener);\n if (result && isInitia...
"public void onSuccess(String buckTargetResult) {\n try {\n String currentClassPath = currentClass.getPath();\n Map<String, List<String>> pathAndTargetData = mObjectMapper.readValue(buckTargetResult, Map.class);\n String importTargetName = \"String_Node_Str\";\n String importPath = \"Stri...
"public long findCorrectResourceLimitForAccount(Account account, ResourceType type) {\n long max = Resource.RESOURCE_UNLIMITED;\n ResourceLimitVO limit = _resourceLimitDao.findByOwnerIdAndType(account.getId(), ResourceOwnerType.Account, type);\n if (limit != null) {\n max = limit.getMax().longValue();\n...
"public void run() {\n for (Player p : Bukkit.getOnlinePlayers()) {\n if (!sm.config.getCustomConfig().getStringList(\"String_Node_Str\").contains(p.getWorld().getName())) {\n for (Entity e : p.getNearbyEntities(15, 15, 15)) {\n if (!(e instanceof LivingEntity)) {\n ...
"public void initializeJMS(Project project) {\n JMSSyncProjectMapping jmsSyncProjectMapping = getProjectMapping(project);\n boolean initialized = initDurable(project);\n jmsSyncProjectMapping.setDisabled(!initialized);\n}\n"
"public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TvShowViewModel tvShow = adapter.getItem(position);\n tvShowSelected = tvShow;\n Picasso.with(getBaseContext()).load(tvShow.getFanArt()).placeholder(R.drawable.tv_show_placeholder).into(fanArtImageView);\n renderEpiso...
"private void loadExifData() {\n Cursor c = getCursor();\n String filePath;\n synchronized (c) {\n filePath = c.getString(mContainer.indexData());\n }\n mExif = new ExifInterface(filePath);\n if (mExifData == null) {\n mExifData = mExif.getAttributes();\n }\n}\n"
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n jButton1.setText(\"String_Node_Str\");\n jButton1.setEnabled(false);\n if (jCheckBox1.isSelected()) {\n Browser.enablePaxWebsiteChecking();\n } else {\n if (!jCheckBox2.isSelected()) {\n return;\n }\n ...
"public String getViewDefinition(String viewName) throws JDBCException {\n String definition = (String) new JdbcTemplate(this).queryForObject(getViewDefinitionSql(viewName), String.class);\n return definition.replaceFirst(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
"public ScreenModuleGuiBuilder block(String tagnamePos) {\n String monitoring;\n if (currentData.hasKey(tagnamePos + \"String_Node_Str\")) {\n int dim;\n if (currentData.hasKey(tagnamePos + \"String_Node_Str\")) {\n dim = currentData.getInteger(tagnamePos + \"String_Node_Str\");\n ...
"public void onChange(boolean selfChange) {\n updateBattery();\n}\n"
"public void initialise() {\n setAnimationSystem(MenuAnimationSystems.createDefaultSwipeAnimation());\n final UILabel saveGamePath = find(\"String_Node_Str\", UILabel.class);\n if (saveGamePath != null) {\n Path savePath = PathManager.getInstance().getSavesPath();\n saveGamePath.setText(translati...
"public Object resolveEnumConstant(Object type, String constant) {\n Class clazz = getJavaClass(type);\n Object[] constants = clazz.getEnumConstants();\n if (constants != null) {\n for (int i = 0; i < constants.length; i++) {\n Enum<?> enumConstant = (Enum<?>) constants[i];\n if (e...
"private void initDisplayArea() {\n if (DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals(selectedType)) {\n if (inputHandle.getURI() != null) {\n locationEditor.setText(inputHandle.getURI());\n }\n if (inputHandle.getTargetWindow() != null) {\n targetChooser.setText(...
"public void testSeparateIds() {\n RecordImpl createRecord = (RecordImpl) requestFactory.create(SimpleFooRecord.class);\n assertTrue(createRecord.isFuture());\n Long futureId = createRecord.getId();\n RecordImpl mockRecord = new RecordImpl(RecordJsoImpl.create(futureId, 1, SimpleFooRecordImpl.SCHEMA), Reque...
"private static InteractiveConsole newInterpreter(SocialiteCommandLineOptions opts) {\n if (opts.interactive) {\n return new JLineSociaLiteConsole(opts);\n } else {\n return new JLineSociaLiteConsole(opts);\n }\n}\n"
"public void destroy() {\n synchronized (inputs) {\n for (int i = 0; i < inputs.length; i++) {\n if (inputs[i] != null && inputs[i].item != null) {\n if (!inputs[i].item.collect()) {\n Dungeon.level.drop(inputs[i].item, Dungeon.hero.pos);\n }\n ...
"public boolean asThough(UUID objectId, AsThoughEffectType type, UUID controllerId, Game game) {\n List<AsThoughEffect> asThoughEffectsList = getApplicableAsThoughEffects(type, game);\n for (AsThoughEffect effect : asThoughEffectsList) {\n HashSet<Ability> abilities = asThoughEffectsMap.get(type).getAbilit...