content stringlengths 40 137k |
|---|
"private static void applyLinkParameter(LinkParameter parameter, Map<String, Object> linkParameters) {\n String parameterName = parameter.name();\n if (parameterName == null || parameterName.isEmpty()) {\n parameterName = UNKNOWN_NAME;\n }\n Object model = linkParameters.get(parameterName);\n mode... |
"private void addNodesToFlushStack(Node node, EventType eventType) {\n Map<NodeLink, Node> children = node.getChildren();\n if (children != null) {\n Map<NodeLink, Node> oneToOneChildren = new HashMap<NodeLink, Node>();\n Map<NodeLink, Node> oneToManyChildren = new HashMap<NodeLink, Node>();\n ... |
"private void replayCheckpoint() throws Exception {\n final CheckpointDeserializer deserializer = new CheckpointDeserializer(this.vertexID, !this.isCheckpointLocal);\n final Path checkpointPath = this.isCheckpointLocal ? CheckpointUtils.getLocalCheckpointPath() : CheckpointUtils.getDistributedCheckpointPath();\n ... |
"public Future<?> disconnect(OfflineCause cause) {\n boolean online = isOnline();\n boolean terminateNow = false;\n if (cause instanceof OfflineCause.SimpleOfflineCause && ((OfflineCause.SimpleOfflineCause) cause).description.toString().equals(Messages._Hudson_NodeBeingRemoved().toString())) {\n for (La... |
"public String getRawText(Key key) throws BookException {\n checkActive();\n String charset = getBookMetaData().getBookCharset();\n if (!(key instanceof IndexKey)) {\n throw new BookException(Msg.BAD_KEY, new Object[] { ClassUtil.getShortClassName(key.getClass()), key.getName() });\n }\n IndexKey ... |
"public static void setUp() throws WSDLException {\n if (conn == null) {\n try {\n conn = buildConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String ddlCreateProp = System.getProperty(DATABASE_DDL_CREATE_KEY, DEFAULT_DATABASE_DDL_CREATE);\n ... |
"public Iterator<E> iterator() {\n return new Iterator<E>() {\n Iterator<Record> recordIterator = result.iterator();\n public boolean hasNext() {\n return recordIterator.hasNext();\n }\n public E next() {\n return func.transform(recordIterator.next());\n }\n ... |
"private void applyAggrFilter(AggregationDefinition[] aggregations, IAggregationResultSet[] resultSet, int j, AggrFilterDefinition filter, List levelFilters) throws DataException, IOException {\n DimLevel targetLevel = filter.getTargetLevel();\n ILevel[] levelsOfDimension = getLevelsOfDimension(targetLevel.getDim... |
"protected void onRead(WireIn inWire, WireOut outWire) {\n if (isClosed.get()) {\n inWire.clear();\n return;\n }\n if (YamlLogging.showServerReads() && inWire.hasMore()) {\n String s = Wires.fromSizePrefixedBlobs(inWire.bytes());\n LOG.info(\"String_Node_Str\" + s);\n }\n onMe... |
"boolean tryAcquireExclusive(final long l, final TimeUnit timeUnit) throws InterruptedException {\n if (getThread().isInterrupted())\n throw new InterruptedException();\n if (l <= 0)\n return false;\n final ElapsedTimer timer = new ElapsedTimer(timeUnit.toMillis(l));\n if (!monitor.tryLock(tim... |
"private void writeValueToDisk(OutputStream os, Object o) throws IOException {\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(os));\n String className = o.getClass().getCanonicalName();\n if (o instanceof ArrayList) {\n className = parseArrayList(o);\n } else if (o instanceof HashMa... |
"protected void _execute() throws Exception {\n super._execute();\n NamedObj sample = null;\n String name = rootName;\n if (target != null) {\n name = target.getName();\n }\n if (manager.isTargetInstantiableAttribute()) {\n sample = _iconContainer.getAttribute(name);\n } else if (mana... |
"private void _addChoices() throws IllegalActionException {\n _solvers.addAll(getListOfSolverClass(\"String_Node_Str\"));\n if (_solvers.size() > 0) {\n property.setExpression(_solvers.get(0).getSimpleName());\n }\n for (Class solver : solvers) {\n property.addChoice(solver.getSimpleName());\n... |
"public String handleToken(String content) {\n Object value = MVELUtils.eval(content, bindings);\n if (value == null) {\n return \"String_Node_Str\";\n } else if (value instanceof Date) {\n DateFormat df = new SimpleDateFormat(DEFAULT_DATE_FORMAT);\n df.setTimeZone(TimeZone.getTimeZone(\"S... |
"private void loopForPingRequest() throws IOException {\n for (int i = 0; i < 10; i++) {\n Message m = null;\n try {\n m = receive(SettingsManager.instance().getTimeout());\n if (m == null)\n return;\n } catch (BadPacketException e) {\n return;\n ... |
"public void onEvent(int event, String path) {\n String removedPackage = null;\n int removedUid = -1;\n String addedPackage = null;\n int addedUid = -1;\n synchronized (mInstallLock) {\n String fullPathStr = null;\n File fullPath = null;\n if (path != null) {\n fullPath = ... |
"private Object invokeCallback(CallbackHandler callbackHandler) {\n try {\n Logger.log(\"String_Node_Str\" + callbackHandler.method.getName() + \"String_Node_Str\" + Arrays.toString(callbackHandler.parameters), LogType.DATABASE);\n return callbackHandler.method.invoke(callbackHandler.caller, callbackHa... |
"protected boolean isInTime(String scheduleTime) {\n Map<String, Integer> days = new HashMap<>();\n days.put(\"String_Node_Str\", 1);\n days.put(\"String_Node_Str\", 2);\n days.put(\"String_Node_Str\", 3);\n days.put(\"String_Node_Str\", 4);\n days.put(\"String_Node_Str\", 5);\n days.put(\"String_N... |
"public int runMovingChecks(Player p, Location to, Location from, double yd, double xs, double zs, MoveData movedata, boolean up, boolean inwater, boolean onladder, XYZ lg) {\n if ((p.isSneaking() || p.isBlocking()) && p.isSprinting()) {\n if (p.isBlocking() && p.isSprinting()) {\n if ((System.curr... |
"protected void ping() {\n int count = 0;\n try {\n Thread.sleep(PING_DELAY);\n } catch (Exception e) {\n }\n while (!stop) {\n try {\n if (count == maxPings) {\n try {\n server.stop(false);\n } catch (Exception e) {\n ... |
"public void actionPerformed(ActionEvent e) {\n JDSounds.PT(\"String_Node_Str\");\n ConfigPanelAddons config;\n switch(e.getID()) {\n case JDAction.ITEMS_MOVE_UP:\n case JDAction.ITEMS_MOVE_DOWN:\n case JDAction.ITEMS_MOVE_TOP:\n case JDAction.ITEMS_MOVE_BOTTOM:\n linkLis... |
"public void labelBuild(TaskListener listener, String name, String description, final FilePath nodeWorkspace) throws Exception {\n EnvVars env = getRun().getEnvironment(listener);\n Expand expand = new Expand(env);\n name = expand.format(name, false);\n description = expand.format(description, false);\n ... |
"public void load() {\n if (layered) {\n properties = (SortedProperties) defaultProperties.clone();\n } else {\n properties = new SortedProperties();\n }\n try {\n InputStream stream = new FileInputStream(getFile());\n try {\n properties.load(stream);\n } finall... |
"private boolean checkResultSchema(UpdateResult result, Object object, Object parameter) {\n if (object == null || parameter == null) {\n return false;\n }\n if (object instanceof IMetadataTable) {\n if (parameter instanceof ConnectionItem) {\n ConnectionItem connection = (ConnectionIt... |
"public void onEntityDamage(EntityDamageEvent event) {\n if (event.isCancelled())\n return;\n Entity victim = event.getEntity();\n JailPrisoner prisoner = Jail.guards.get(victim);\n JailZone jail = prisoner != null ? prisoner.getJail() : null;\n if (prisoner != null) {\n if (jail.getSetting... |
"public Object fontSelector(PPr pPr, RPr rPr, String text) {\n Style pStyle = null;\n if (pPr == null || pPr.getPStyle() == null) {\n pStyle = getDefaultPStyle();\n } else if (wordMLPackage.getMainDocumentPart().getStyleDefinitionsPart(false) != null) {\n pStyle = wordMLPackage.getMainDocumentPar... |
"private void drawWithConstructionMask(MapDrawContext context, float maskState, Image image) {\n int tiles = 6;\n float toplineBottom = maskState;\n float toplineTop = Math.min(1, toplineBottom + .1f);\n float[] tris = new float[(tiles + 2) * 3 * 5];\n addToArray(tris, 0, 0, 0, image);\n addToArray(tr... |
"public void onBlogChanged() {\n super.onBlogChanged();\n if (mMediaEditFragment != null) {\n mMediaEditFragment.loadMedia(null);\n if (!mMediaEditFragment.isInLayout() && mMediaEditFragment.isVisible())\n getSupportFragmentManager().popBackStack();\n }\n getSupportFragmentManager()... |
"public void endUpdate() {\n if (updateElement == -1) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if (lastUpdateIdx < firstUpdateIdx)\n return;\n if (updateElement == VERTICES) {\n if (updateVertexArray == null) {\n throw new RuntimeException(\"String_Node_Str\... |
"private void renderDateField(List form, String fieldName, DCInput dcInput, DCValue[] dcValues, boolean readonly) throws WingException {\n Composite fullDate = form.addItem().addComposite(fieldName, \"String_Node_Str\");\n Text year = fullDate.addText(fieldName + \"String_Node_Str\");\n Select month = fullDate... |
"private void setText(String[] args, CommandSender sender) {\n Player p = (Player) sender;\n HumanNPC n = NPCManager.getNPC(NPCManager.NPCSelected.get(p.getName()));\n String text = \"String_Node_Str\";\n if (args.length >= 2) {\n int i = 0;\n for (String s : args) {\n if (i == 1 &&... |
"public void unRegisterConsumer(final FetchManager fetchManager) {\n try {\n final FutureTask<ZKLoadRebalanceListener> futureTask = this.consumerLoadBalanceListeners.remove(fetchManager);\n if (futureTask != null) {\n final ZKLoadRebalanceListener listener = futureTask.get();\n if... |
"public boolean isActive() {\n return !getTankStack().isEmpty();\n}\n"
|
"private void updateGradient() {\n Vector weightsVector = this.logisticRegression.getWeights().getAllWeights();\n Vector penalty = new DenseVector(weightsVector.size());\n for (int j = 0; j < penalty.size(); j++) {\n int featureIndex = logisticRegression.getWeights().getFeatureIndex(j);\n if (fea... |
"private Resource saveScreenshots(Item item) {\n Resource itemResource = xmiResourceManager.getScreenshotResource(item, true);\n EMap screenshots = null;\n if (item instanceof ProcessItem) {\n screenshots = ((ProcessItem) item).getProcess().getScreenshots();\n } else if (item instanceof JobletProcess... |
"final void dumpDbInfo(FileDescriptor fd, PrintWriter pw, String[] args) {\n ArrayList<ProcessRecord> procs = collectProcesses(pw, 0, false, args);\n if (procs == null) {\n pw.println(\"String_Node_Str\" + args[0]);\n return;\n }\n pw.println(\"String_Node_Str\");\n for (int i = procs.size(... |
"public static void fireConcept(DerivationContext nal, int numTaskLinks) {\n for (int i = 0; i < numTaskLinks; i++) {\n if (nal.currentConcept.taskLinks.size() == 0) {\n return false;\n }\n nal.currentTaskLink = nal.currentConcept.taskLinks.takeNext();\n if (nal.currentTaskLink... |
"protected Object call() throws Exception {\n ReplicatedMapService replicatedMapService = getService(ReplicatedMapService.SERVICE_NAME);\n ReplicatedRecordStore recordStore = replicatedMapService.getReplicatedRecordStore(parameters.name, true);\n return recordStore.containsValue(serializationService.toObject(p... |
"TReturn visitDirectory(RecursivePkgKey recursivePkgKey, Environment env) {\n RootedPath rootedPath = recursivePkgKey.getRootedPath();\n ImmutableSet<PathFragment> excludedPaths = recursivePkgKey.getExcludedPaths();\n Path root = rootedPath.getRoot();\n PathFragment rootRelativePath = rootedPath.getRelative... |
"public void surfaceDestroyed(SurfaceHolder holder) {\n mSurfaceHolder = null;\n if (mMediaController != null)\n mMediaController.hide();\n release(true);\n}\n"
|
"private void showInClient() {\n limeWireLayeredPane.add(videoPanel, videoLayer);\n resizeVideoContainer();\n GuiUtils.getMainFrame().toFront();\n}\n"
|
"private void setBackground(boolean isSelected) {\n if (thePanel == null)\n return;\n Color color = isSelected ? SELECTED_COLOR : Color.WHITE;\n thePanel.setBackground(color);\n int childCount = thePanel.getComponentCount();\n for (int i = 0; i < childCount; i++) {\n Component child = thePa... |
"private boolean methodToJava(ClassNode node, StructMethod mt, TextBuffer buffer, int indent, BytecodeMappingTracer tracer) {\n ClassWrapper wrapper = node.getWrapper();\n StructClass cl = wrapper.getClassStruct();\n MethodWrapper methodWrapper = wrapper.getMethodWrapper(mt.getName(), mt.getDescriptor());\n ... |
"protected void startContainer(IContainerArea container) {\n if (container.needClip()) {\n startClip(container);\n }\n if (container instanceof RowArea) {\n rowStyleStack.push(container.getStyle());\n } else if (container instanceof CellArea) {\n drawCell(container);\n } else {\n ... |
"private Collection<Issue> getIssues(String ids) throws UnsupportedIssueIdException {\n if (ids == null || ids.isEmpty()) {\n return Collections.emptySet();\n }\n Collection<Issue> issues = new ArrayList<Issue>();\n StringTokenizer tokenizer = new StringTokenizer(ids, \"String_Node_Str\");\n while... |
"public List<RosterEntryView> getRosterView(OLATResourceable ores, int firstResult, int maxResults) {\n TypedQuery<RosterEntryView> query = dbInstance.getCurrentEntityManager().createNamedQuery(\"String_Node_Str\", RosterEntryView.class).setParameter(\"String_Node_Str\", ores.getResourceableId()).setParameter(\"Stri... |
"private boolean validate(Space from, Space to) {\n if (from.equals(to))\n return false;\n if (Math.abs(from.row() - to.row()) <= 1 && Math.abs(from.col() - to.col()) <= 1) {\n if (from.row() == to.row() || from.col() == to.col())\n isJump = false;\n else\n isJump = true... |
"private JAXBContextState createContextState(Generator generator, JaxbClassLoader loader, TypeMappingInfo[] typesToBeBound, Map properties) throws Exception {\n Project proj = generator.generateProject();\n ConversionManager conversionManager = null;\n if (classLoader != null) {\n conversionManager = ne... |
"protected String singleInputForTest() {\n return getTestName().substring(4);\n}\n"
|
"public FormStatus process(String actionName) {\n FormStatus retStatus = FormStatus.InfoError;\n String host = \"String_Node_Str\";\n outputFile = mooseLauncher.getOutputFile();\n if (\"String_Node_Str\".equals(actionName)) {\n URI appUri = URI.create(modelFiles.retrieveEntry(\"String_Node_Str\").get... |
"public void setFocus() {\n IComponentSettingsView viewer = (IComponentSettingsView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(IComponentSettingsView.ID);\n if (viewer != null) {\n IStructuredSelection selection = (IStructuredSelection) getViewer().getSelection();\n ... |
"public void mouseMove(MouseEvent event) {\n int newLine = fParentRuler.toDocumentLineNumber(event.y) + 1;\n if (annotationColumn instanceof ISTAnnotationHyperlink) {\n if (((ISTAnnotationHyperlink) annotationColumn).isAnnotationHyperlink(newLine) && !annotationColumn.getAnnotation(newLine).trim().isEmpty(... |
"public void jobStateChange(StateEvent event) {\n State dependsState = event.getState();\n StateCondition condition = StateConditions.ACTIVE;\n if (condition.test(dependsState)) {\n return;\n }\n ExecutorService executorService = ensureExecutorService();\n if (!stop) {\n if (IfJob.this.s... |
"private void load(Collection<? extends ObjectID<?>> ids) {\n Preconditions.checkNotNull(ids, \"String_Node_Str\");\n log.info(\"String_Node_Str\", ids.size());\n for (final ObjectID<?> id : ids) {\n log.debug(\"String_Node_Str\", id);\n allocator.allocate(id.getID());\n add(id);\n }\n}... |
"public void setDatedObjects(List<? extends Dated> datedObjects) {\n mainVC = createVelocityContainer(\"String_Node_Str\");\n next = LinkFactory.createCustomLink(\"String_Node_Str\", \"String_Node_Str\", null, Link.NONTRANSLATED, mainVC, this);\n next.setCustomEnabledLinkCSS(\"String_Node_Str\");\n next.set... |
"public Call processCheckoutPaymentForm(final String language) {\n return CheckoutPaymentController.process(language);\n}\n"
|
"private static Sound normalize(Sound sound) {\n double[] data = sound.getSamples();\n double[] newdata = new double[sound.getSamples().length];\n double max = 0;\n for (int i = 0; i < data.length; i++) {\n if (Math.abs(data[i]) > max)\n max = Math.abs(data[i]);\n }\n double maxValue... |
"protected boolean doCheckState() {\n String value = getStringValue();\n if (value != null && value.trim().length() > 0) {\n int offset = 0;\n Iterator<CssRule> ruleIterator = cssStyleManager.createRuleIterator(value);\n while (ruleIterator.hasNext()) {\n CssRule rule = ruleIterato... |
"public boolean handlesURI(String uri) {\n if (sLogger.isLoggable(Level.FINE)) {\n sLogger.fine(\"String_Node_Str\" + uri + \"String_Node_Str\");\n }\n if (uri != null) {\n try {\n parseURIForHostInfo(uri);\n return true;\n } catch (Exception ex) {\n sLogge... |
"public void addDependencies(ModelElement element) {\n Analysis analysis = (Analysis) element;\n List<IndicatorDefinition> udis = AnalysisHelper.getUserDefinedIndicators(analysis);\n try {\n for (IndicatorDefinition udi : udis) {\n if (udi == null) {\n continue;\n }\... |
"private void setMediaPlaybackState(int state) {\n PlaybackStateCompat.Builder playbackStateBuilder = new PlaybackStateCompat.Builder();\n playbackStateBuilder.setActions(getAvailableActions());\n playbackStateBuilder.setState(state, audioPlayer.getCurrentPosition(), 1.0f, SystemClock.elapsedRealtime());\n ... |
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n if (player == null) {\n return false;\n }\n Cards cards = new CardsImpl(Zone.PICK);\n int count = Math.min(player.getLibrary().size(), 5);\n for (int i = 0; i < count; i++) {\n ... |
"public void blockInteract(PlayerInteractEvent event) {\n Player pl = event.getPlayer();\n if (event.hasBlock()) {\n AutoRefMatch match = plugin.getMatch(event.getClickedBlock().getWorld());\n AutoRefPlayer apl = match == null ? null : match.getPlayer(pl);\n if (match != null && apl != null) ... |
"public void read(InputStream in) throws IOException {\n byte[] temp = new byte[1];\n in.read(temp);\n op = temp[0];\n in.read(temp);\n htype = temp[0];\n in.read(temp);\n hlen = temp[0];\n in.read(temp);\n hops = temp[0];\n xid = new byte[4];\n in.read(xid);\n secs = new byte[2];\n ... |
"public Iterator<Atom> iterateAtomsBySTI(final boolean increasingOrDecreasing, final Predicate<Atom> include) {\n Iterator<Atom> i;\n if (increasingOrDecreasing)\n i = attentionSortedBySTI.navigableKeySet().iterator();\n else\n i = attentionSortedBySTI.navigableKeySet().descendingIterator();\n ... |
"public static String getFormattedValue(CurrencyValue value, CoinUtil.Denomination denomination, int precision) {\n if (value == null) {\n return \"String_Node_Str\";\n }\n BigDecimal val = value.getValue();\n if (val == null) {\n return \"String_Node_Str\";\n }\n if (value.isBtc()) {\n ... |
"public org.hl7.fhir.dstu2.model.QuestionnaireResponse.QuestionAnswerComponent convertQuestionnaireResponseItemAnswerComponent(org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhi... |
"public Dimension getFixPreferredSize(int w, int h) {\n int width = 0;\n int height = 0;\n if (recommendSize.width > 0) {\n width = recommendSize.width;\n } else {\n if (recommendSize.height > 0) {\n width = getPreferredSize(w, recommendSize.height, true, false, true).width;\n ... |
"public boolean equals(Object obj) {\n if (obj instanceof TreeObject) {\n TreeObject o = (TreeObject) obj;\n if (o.getParent() == null || getParent() == null)\n return o.getName().equals(getName()) && getType() == o.getType();\n else {\n if (o.getName().equals(getName()) &&... |
"public void run() {\n int reconnect_delay = 0;\n String reason = \"String_Node_Str\";\n do {\n if (getConsumerState() == StreamConsumer.STATE_RUNNING && reconnect_delay > 0) {\n try {\n Thread.sleep(reconnect_delay * 1000);\n } catch (Exception e) {\n }\n... |
"public void onEndReceivingParameters(List<Parameter> parameter) {\n if (droneEventsListener != null) {\n droneEventsListener.onEndReceivingParameters();\n }\n}\n"
|
"public boolean loadInitialData() throws DBException {\n BaseTable table = this;\n Record record = table.getRecord();\n while (((record.getDatabaseType() & DBConstants.SHARED_TABLE) != 0) && ((record.getDatabaseType() & DBConstants.BASE_TABLE_CLASS) == 0)) {\n String tableName = record.getTableNames(fal... |
"private ColumnInfo[] generateColumnsInfo(List<ChangeInfo> changes) {\n ItemAndWidth number = new ItemAndWidth(\"String_Node_Str\", 0);\n ItemAndWidth hash = new ItemAndWidth(\"String_Node_Str\", 0);\n ItemAndWidth topic = new ItemAndWidth(\"String_Node_Str\", 0);\n ItemAndWidth subject = new ItemAndWidth(\... |
"public void addMimeMapping(String extension, String mimeType) {\n mimeMappings.put(extension.toLowerCase(Locale.ENGLISH), mimeType);\n if (notifyContainerListeners) {\n fireContainerEvent(\"String_Node_Str\", extension);\n }\n}\n"
|
"int appendString(FeatureExpr ctx, MJIEnv env, int objref, String s) {\n final int slen = s.length();\n Conditional<Integer> condAref = env.getReferenceField(ctx, objref, \"String_Node_Str\");\n Map<Integer, FeatureExpr> arefMap = condAref.toMap();\n for (Integer aref : arefMap.keySet()) {\n FeatureE... |
"public FormValidation doTestConnection(final String hostName, final int port, final String userName, final String password, final boolean secure, final String ipHostName, final int ipPort) throws IOException, ServletException {\n LOGGER.fine(\"String_Node_Str\");\n LOGGER.fine(\"String_Node_Str\" + hostName);\n ... |
"public JPackage getPackage(String targetNamespace) {\n XSSchema s = Ring.get(XSSchemaSet.class).getSchema(targetNamespace);\n BISchemaBinding sb = builder.getBindInfo(s).get(BISchemaBinding.class);\n String name = null;\n if (builder.defaultPackage1 != null)\n name = builder.defaultPackage1;\n if... |
"protected void configure() {\n requestInjection(createsAThread);\n bind(A.class).toInstance(new A());\n}\n"
|
"public UserProfile loadProfile(SkinSiteProfile ssp, String username) throws Exception {\n String json0 = HttpUtil0.readHttp(\"String_Node_Str\" + username);\n if (json0 == null || json0.equals(\"String_Node_Str\")) {\n CustomSkinLoader.logger.info(\"String_Node_Str\" + username + \"String_Node_Str\");\n ... |
"public String loadUpdateStatus() {\n Orders orderEntity = orderService.findOrdersById(orderStatusLogsService.findOrderItemById(orderItemIdParam).getOrderId());\n order = transformToOrderFormBean(orderEntity);\n OrderItems orderItemEntity = orderStatusLogsService.findOrderItemById(orderItemIdParam);\n order... |
"public boolean match(Card card, UUID playerId, Game game) {\n if (!this.match(card, game)) {\n return false;\n }\n return Predicates.and(extraPredicates).apply(new ObjectSourcePlayer(card, sourceId, playerId), game);\n}\n"
|
"public Action nextAction(Percept percept) {\n makePerceptSentences(percept);\n Action action = makeActionQuery();\n System.out.println(\"String_Node_Str\" + action + \"String_Node_Str\" + pos);\n return action;\n}\n"
|
"public long addAndGet(long delta) {\n return 0;\n}\n"
|
"protected Repository createRepository(String url, String username, String password) {\n String prefix = \"String_Node_Str\" + UUID.randomUUID().toString().replace(\"String_Node_Str\", \"String_Node_Str\");\n RDBOptions options = new RDBOptions().tablePrefix(prefix).dropTablesOnClose(true);\n DocumentNodeStore... |
"public Source getTestSource() {\n if (endpointURI != null && !endpointURI.isEmpty()) {\n EndpointTestSource endpointSource = new EndpointTestSource(CacheUtils.getAutoPrefixForURI(datasetURI), datasetURI, endpointURI, endpointGraphs, getAllSchemata());\n endpointSource.setQueryDelay(this.endpointQueryD... |
"public String getUnitDisplayName(String key) {\n IChoice choice = ChoiceSetFactory.getDimensionChoiceSet(getElement(), getProperty()).findChoice(key);\n if (choice == null) {\n return null;\n }\n return choice.getDisplayName();\n}\n"
|
"public String open() {\n Shell parent = getParent();\n Display display = parent.getDisplay();\n shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MIN | SWT.MAX);\n props.setLook(shell);\n setShellImage(shell, m_currentMeta);\n ModifyListener lsMod = new ModifyListener() {\n public v... |
"public void executeMain() throws BuildException {\n if (baseDir == null && filesets.size() == 0 && groupfilesets.size() == 0 && \"String_Node_Str\".equals(archiveType)) {\n throw new BuildException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n if (zipFile == null) {\n t... |
"private void computeValuesIfNeeded() {\n if (totalSegments >= 0)\n return;\n totalSegments = coveredSegments = 0;\n for (int line = 1, n = lastLine; line <= n; line++) {\n if (lineToLineData.containsKey(line)) {\n LineCoverageData lineData = lineToLineData.get(line);\n if (... |
"public void testHighAccuracyExternalDifferentiation() throws IntegratorException, DerivativeException {\n FirstOrderIntegrator integ = new DormandPrince54Integrator(1.0e-8, 100.0, 1.0e-10, 1.0e-10);\n double hP = 1.0e-12;\n SummaryStatistics residualsP0 = new SummaryStatistics();\n SummaryStatistics residu... |
"public void reMoveIfNeeded(float velocity) {\n View target = (View) animator.getTarget();\n if (target != null) {\n Rect targetRect = new Rect();\n target.getHitRect(targetRect);\n float scale;\n if (maxScale < target.getScaleY()) {\n scale = maxScale;\n } else if (t... |
"private void writeDataFormat(StyleEntry style) {\n Integer type = (Integer) style.getProperty(StyleConstant.DATA_TYPE_PROP);\n if (type == SheetData.DATE && style.getProperty(StyleConstant.DATE_FORMAT_PROP) != null) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", st... |
"public void onResume() {\n super.onResume();\n asyncInitGallery();\n}\n"
|
"static Injector createInjector(CConfiguration cConf, Configuration hConf) {\n return Guice.createInjector(new ConfigModule(cConf, hConf), new IOModule(), new ZKClientModule(), new KafkaClientModule(), new MetricsClientRuntimeModule().getDistributedModules(), new DiscoveryRuntimeModule().getDistributedModules(), new... |
"protected void initialize() {\n if (root == null) {\n isNewArea = true;\n createRoot();\n buildTableLayoutInfo();\n root.setWidth(layoutInfo.getTableWidth());\n maxAvaWidth = layoutInfo.getTableWidth();\n setCurrentIP(0);\n setCurrentBP(0);\n repeatRowCount = ... |
"public byte readByte() throws IOException {\n falloc(1);\n totallyRead += 1;\n return (byte) is.read();\n}\n"
|
"private Expression transformInlineConstants(Expression exp) {\n if (exp instanceof PropertyExpression) {\n PropertyExpression pe = (PropertyExpression) exp;\n if (pe.getObjectExpression() instanceof ClassExpression) {\n ClassExpression ce = (ClassExpression) pe.getObjectExpression();\n ... |
"private ArrayList<Host> parseConfig(File config) {\n ArrayList<Host> _hosts = new ArrayList<>();\n try {\n Builder parser = new Builder();\n Document doc = parser.build(config);\n Element root = doc.getRootElement();\n Elements eHosts = root.getChildElements(\"String_Node_Str\");\n ... |
"public void test3() throws IOException, InterruptedException {\n map3.put(5, \"String_Node_Str\");\n waitTillEqual(5000);\n assertEquals(new TreeMap(map1), new TreeMap(map2));\n assertEquals(new TreeMap(map3), new TreeMap(map2));\n assertTrue(!map1.isEmpty());\n}\n"
|
"public boolean canBlock(Permanent attacker, Permanent blocker, Ability source, Game game) {\n return game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) > 0;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.