content stringlengths 40 137k |
|---|
"protected RestResult handleRequest(RestRequest restRequest) {\n RestResult result = null;\n if (restRequest != null) {\n PodioFilter filter = restRequest.getFilter();\n if (filter != null) {\n RestOperation operation = restRequest.getOperation();\n Object item = restRequest.ge... |
"protected DataCell getResultInternal() {\n IPreferenceStore prefStore = HCSToolsBundleActivator.getDefault().getPreferenceStore();\n double madScalingFactor = prefStore.getDouble(HCSToolsPreferenceInitializer.MAD_SCALING_FACTOR);\n if (super.getResultInternal().isMissing())\n return super.getResultInte... |
"protected void onResume() {\n super.onResume();\n IntentFilter filter = new IntentFilter(SearchGeocacheService.ACTION_PROGRESS_UPDATE);\n filter.addAction(SearchGeocacheService.ACTION_PROGRESS_UPDATE);\n filter.addAction(SearchGeocacheService.ACTION_PROGRESS_COMPLETE);\n filter.addAction(SearchGeocacheS... |
"public void translateCardToCenter() {\n AnimationSet animSet = new AnimationSet(true);\n TranslateAnimation anim = new TranslateAnimation(0, -getX(), 0, -getY());\n anim.setDuration(600);\n anim.setAnimationListener(new TranslateAnimation.AnimationListener() {\n public void onAnimationStart(Animatio... |
"public void enterPosition(ShortPoint2D position, Movable movable, boolean informFullArea) {\n movableGrid.movableEntered(position, movable);\n notifyAttackers(position, movable, informFullArea);\n}\n"
|
"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 boolean doRemove(XtentisPort port, Object wsObj) throws RemoteException {\n WSUniversePK pk = new WSUniversePK();\n String name = cmd.getObjName();\n pk.setPk(name);\n port.deleteUniverse(new WSDeleteUniverse(pk));\n TreeObjectUtil.deleteSpecificationFromAttachedRole(port, name, EXtentisObjects.U... |
"public void setValueToDefault(List<? extends IElementParameter> listParam) {\n if (defaultValues == null) {\n return;\n }\n int size = defaultValues.size();\n for (int i = size - 1; 0 <= i; i--) {\n IElementParameterDefaultValue iDefaultValue = defaultValues.get(i);\n boolean setDefaul... |
"private <T> List<T> _findByQuery(IQuery<T> query, IDBResource dbResource, Class<T> clazz, boolean useCache, EnumDBMasterSlave masterSlave) {\n List<T> result = Lists.newArrayList();\n Transaction tx = null;\n try {\n tx = txManager.getTransaction();\n if (tx != null) {\n tx.enlistReso... |
"public boolean listInReadyState() {\n Account account = UserContext.current().getCaller();\n boolean isAccountSpecific = (account == null || isAdmin(account.getType())) && (getAccountName() != null) && (getDomainId() != null);\n TemplateFilter templateFilter = TemplateFilter.valueOf(getIsoFilter());\n bool... |
"private void doCrawlLoop() throws IOFailure {\n String errorMessage = \"String_Node_Str\" + \"String_Node_Str\";\n long lastNonZeroActiveQueuesTime = System.currentTimeMillis();\n long lastTimeReceivedData = System.currentTimeMillis();\n boolean crawlIsEnded = false;\n try {\n crawlIsEnded = heri... |
"public void call() {\n Actor.addDelayed(new Pushing(enemy, enemy.pos, newPosFinal, new Callback() {\n public void call() {\n enemy.pos = newPosFinal;\n Dungeon.level.press(newPosFinal, enemy);\n Cripple.prolong(enemy, Cripple.class, 4f);\n if (enemy == Dungeon.hero... |
"protected boolean isTextOverfull(int size, int buffer, double remainingSpaceX, int pixelX, int nextStartPixel, Rectangle2D bounds) {\n return bounds.getWidth() + buffer > remainingSpaceX && getOverlapRenderingMode() == Overfull;\n}\n"
|
"public void startRequest(MRCRequest rq) {\n try {\n Args rqArgs = (Args) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n final Path p = new Path(rqArgs.filePath);\n final VolumeInfo vol... |
"private void GenEither(AST.Either ast, Changed c, String context, String prefix, int col) throws PcalTLAGenException {\n Changed allC = new Changed(c);\n Changed[] cOrs = new Changed[ast.ors.size()];\n int[] ucLocs = new int[ast.ors.size()];\n StringBuffer sb = new StringBuffer(prefix);\n int prefixInde... |
"public int getSlotIndex(String slot) {\n final int N = mSlots.size();\n for (int i = 0; i < N; i++) {\n if (slot.equals(mSlots.get(i))) {\n return i;\n }\n }\n mSlots.add(slot);\n mIcons.add(null);\n return N;\n}\n"
|
"public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.action_sync) {\n LayoutInflater inflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View syncProgress = inflater.inflate(R.layout.sync_progress, null);\n MenuItemCompa... |
"public static void scenarioNoConceptDrift(int batchSize) throws Exception {\n for (int i = 0; i < numIter; i++) {\n BayesianNetworkSampler sampler = new BayesianNetworkSampler(network);\n sampler.setSeed(i);\n DataOnMemory<DataInstance> batch = sampler.sampleToDataStream(batchSize).toDataOnMemo... |
"private void completeDispatch(T t) {\n Observable<ManualInput> sequence = resolveObservableSequence(t);\n sequence = mapEncoderBuckets(sequence);\n sequence = fillInSequence(sequence);\n subscribers.add(getDelegateObserver());\n subscription = sequence.subscribe(getDelegateSubscriber());\n observable... |
"private static void parsePlantableFlowers(Property property, String flowerType) {\n for (String string : property.getStringList()) {\n StackUtils.Stack plantableFlower = StackUtils.parseStackString(string, OreDictionary.WILDCARD_VALUE);\n if (plantableFlower == null) {\n continue;\n ... |
"void saveToXml(XmlSerializer out) throws IOException, XmlPullParserException {\n Slog.i(TAG, \"String_Node_Str\" + this);\n out.attribute(null, ATTR_TASKID, String.valueOf(taskId));\n if (realActivity != null) {\n out.attribute(null, ATTR_REALACTIVITY, realActivity.flattenToShortString());\n }\n ... |
"public static List extractColumnExpressions(String oldExpression) throws BirtException {\n if (oldExpression == null || oldExpression.trim().length() == 0)\n return new ArrayList();\n return ExpressionParserUtility.compileColumnExpression(oldExpression, mode);\n}\n"
|
"void createMainCharacter() {\n Resource<SpriteSheet> walkingAnimationResource = resourceManager.get(\"String_Node_Str\");\n Resource<SpriteSheet> idleAnimationResource = resourceManager.get(\"String_Node_Str\");\n Resource<SpriteSheet> jumpAnimationResource = resourceManager.get(\"String_Node_Str\");\n Res... |
"protected void command() {\n jedis.select(db);\n if (jedis.exists(key) && getValueType(key) != NodeType.SORTEDSET)\n throw new RuntimeException(\"String_Node_Str\" + key + \"String_Node_Str\");\n}\n"
|
"private void addConfigPanel(Class configPanelClass, String img, String title) {\n this.configClasses.add(configPanelClass);\n int n = 10;\n JPanel p = new JPanel(new BorderLayout(n, n));\n p.setBorder(new EmptyBorder(n, n, n, n));\n this.containerPanels.add(p);\n configPanels.add(null);\n int m = ... |
"public List<Solution> inferSpeciesTree() {\n long startTime = System.currentTimeMillis();\n String[] gtTaxa;\n String[] stTaxa;\n Collapse.CollapseDescriptor cd = null;\n if ((trees == null) || (trees.size() == 0)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (taxon... |
"public void appendOut(final byte[] chars, final int start, final int end) {\n append(new String(chars, start, end));\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n int xSum = 0;\n xSum += playerPaysXGenericMana(controller, source, game);\n for (UUID playerId : game.getState().getPlayersInRange(controller.getId(... |
"public DateTime getLastPlayed() {\n if (coreData.getLastPlayed() == null) {\n load(CHAMPION_MASTERY_LOAD_GROUP);\n }\n return coreData.getLastPlayed();\n}\n"
|
"public void run() {\n while (true) {\n try {\n Thread.sleep(STATS_SECONDS * 1000);\n System.out.println(\"String_Node_Str\" + Hazelcast.getCluster().getMembers().size());\n IMap<String, byte[]> map = Hazelcast.getMap(\"String_Node_Str\");\n MapOperationStats mapOpS... |
"private Hashtable createCategoryToItsActionsWithShortcutsMap() {\n Iterator actionCategoriesIterator = ActionProperties.getActionCategories().iterator();\n Hashtable categoryToItsActionsWithShortcutsIdsMap = new Hashtable();\n while (actionCategoriesIterator.hasNext()) categoryToItsActionsWithShortcutsIdsMap.... |
"public static PlayerSetting readFromStream(DataInputStream dis) throws IOException {\n dis.readShort();\n boolean available = dis.readBoolean();\n if (available) {\n byte readTeamId = dis.readByte();\n Byte teamId = readTeamId == -1 ? null : readTeamId;\n String civilizationName = dis.rea... |
"public String processSubmit(Customer customer, BindingResult result, SessionStatus status, HttpSession session) {\n loginValidator.validate(customer, result);\n if (result.hasErrors()) {\n returnStr = \"String_Node_Str\";\n } else {\n status.setComplete();\n session.setAttribute(\"String_... |
"public ConditionQueryBuilder<ModelClass> replaceEmptyParams(Object... values) {\n if (!useEmptyParams) {\n throw new IllegalStateException(\"String_Node_Str\" + ConditionQueryBuilder.class.getSimpleName() + \"String_Node_Str\" + \"String_Node_Str\");\n }\n if (conditions.size() != values.length) {\n ... |
"private void _replaceConnectingEntities(ComponentEntity targetEntity, HashMap<String, Type> portTypes) throws CloneNotSupportedException, IllegalActionException, NameDuplicationException {\n for (Object attributeObject : targetEntity.attributeList()) {\n Attribute attribute = (Attribute) attributeObject;\n ... |
"public void clear() {\n List<String> world_script_events = new ArrayList<String>();\n Map<String, dObject> context = new HashMap<String, dObject>();\n dPlayer player = null;\n if (dPlayer.matches(flagOwner))\n player = dPlayer.valueOf(flagOwner);\n dNPC npc = null;\n if (dNPC.matches(flagOwner... |
"public JavaClass[] processObjectFactory(JavaClass objectFactoryClass, ArrayList<JavaClass> classes) {\n Collection methods = objectFactoryClass.getMethods();\n Iterator methodsIter = methods.iterator();\n NamespaceInfo namespaceInfo = getNamespaceInfoForPackage(objectFactoryClass.getPackage());\n while (me... |
"public AbstractFile getParent() throws IOException {\n if (!getParentSet) {\n getParent = file.getParent();\n if (recurseInstances && getParent != null)\n getParent = new CachedFile(getParent, true);\n getParentSet = true;\n }\n return getParent;\n}\n"
|
"public static String[] getAbis() {\n if (hasApi(21)) {\n return Build.SUPPORTED_ABIS;\n }\n if (hasApi(8)) {\n return new String[] { Build.CPU_ABI, Build.CPU_ABI2 };\n }\n return Build.SUPPORTED_ABIS;\n}\n"
|
"public void raiseAlarm(String faultFamily, String faultMember, int faultCode, Properties properties) {\n if (!enabled) {\n return;\n }\n if (queuing) {\n synchronized (queue) {\n queue.add(faultFamily, faultMember, faultCode, properties, true);\n }\n return;\n }\n ... |
"public String generateTypeConvertFireCode(boolean forComposite) throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n Iterator<Channel> channels = getTypeConvertChannels().iterator();\n while (channels.hasNext()) {\n Channel source = channels.next();\n if (!forComposite && ... |
"PageBtree split(int splitPoint) throws SQLException {\n int newPageId = index.getPageStore().allocatePage();\n PageBtreeLeaf p2 = PageBtreeLeaf.create(index, newPageId, parentPageId);\n for (int i = splitPoint; i < entryCount; ) {\n p2.addRowTry(getRow(splitPoint));\n removeRow(splitPoint);\n ... |
"public void destroy() {\n for (ServletDefinition servletDefinition : servletDefinitions) {\n servletDefinition.destroy(destroyedSoFar);\n }\n}\n"
|
"private soot.SootMethod getMethodFromClass(soot.SootClass sootClass, String name, ArrayList paramTypes, soot.Type returnType) {\n return sootClass.getMethod(name, paramTypes, returnType);\n}\n"
|
"public void syncFromServer(Map<Integer, DimensionDescriptor> dims, Map<Integer, DimensionInformation> dimInfo) {\n RFTools.log(\"String_Node_Str\");\n if (dims.isEmpty() || dimInfo.isEmpty()) {\n RFTools.log(\"String_Node_Str\");\n }\n for (Map.Entry<Integer, DimensionDescriptor> entry : dims.entryS... |
"private void refreshDataSets() {\n String selectedDataSetName = dataSetChooser.getText();\n String[] oldList = dataSetChooser.getItems();\n ArrayList avaiableList = new ArrayList();\n for (Iterator iter = SessionHandleAdapter.getInstance().getReportDesignHandle().getVisibleDataSets().iterator(); iter.hasNe... |
"public static void setSaveLog(boolean isOpen, int fileCount, float fileSize) {\n if (Kit.getApplication() == null)\n throw new NullPointerException(\"String_Node_Str\");\n if (isOpen) {\n if (Writer == null)\n Writer = new LogWriter(fileCount, fileSize, LogWriter.getDefaultLogPath());\n ... |
"private Node getNode(Object entity, ObjectGraph graph, NodeState initialNodeState) {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(entity.getClass());\n if (entityMetadata == null) {\n return null;\n }\n Object id = PropertyAccessorHelper.getId(entity, entityMetadata);\n... |
"public static List<Map<String, Object>> getHadoopPropertiesFullList(Connection connection, String propertiesJsonStr, boolean includeQuotes) {\n IHadoopClusterService hadoopClusterService = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IHadoopClusterService.class)) {\n hadoopClusterSer... |
"public Response insertValue(String contentType, String channelName, byte[] data) {\n if (!channelDao.channelExists(channelName)) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }\n Callable<ValueInsertionResult> task = new WriteAndDispatch(channelName, contentType, data);\n Value... |
"private void restoreCharacter(EntityRef entity, PlayerEntityStore playerEntityStore) {\n Map<String, EntityRef> restoredEntities = playerEntityStore.restoreAll();\n EntityRef character = restoredEntities.get(\"String_Node_Str\");\n if (character == null) {\n spawnPlayer(entity, new Vector3i(Chunk.SIZE_... |
"public void actionPerformed(ActionEvent e) {\n JFileChooser chooser = null;\n if (_widget.getText().length() > 0) {\n chooser = new JFileChooser(_widget.getText());\n } else if (_path != null) {\n chooser = new JFileChooser(_path);\n } else {\n chooser = new JFileChooser();\n }\n ... |
"String encode(final Coder owner, DirectPosition position, final boolean reproject, final String separator, final int digits) throws FactoryException, TransformException {\n final StringBuilder buffer = owner.buffer;\n if (toNormalized != null) {\n owner.normalized = position = toNormalized.transform(posit... |
"public AttributeList setAttributes(AttributeList attributes) {\n return new AttributeList();\n}\n"
|
"public static void setJobResources(HalvadeOptions opt, Configuration conf, int type, boolean subtractAM) {\n int tmpmem = (int) (opt.mem * 1024);\n int tmpvcores = opt.vcores;\n if (opt.setMapContainers)\n opt.mapContainersPerNode = Math.min(tmpvcores, Math.max(tmpmem / mmem, 1));\n if (opt.setReduc... |
"public List<Meaning> performC2KB(Document document) throws GerbilException {\n return annotator.performC2KB(document);\n}\n"
|
"public void testWriteHarvestFiles() throws Exception {\n Job j = TestInfo.getJob();\n j.setJobID(1L);\n assertTrue(\"String_Node_Str\", j.getSeedListAsString() != \"String_Node_Str\");\n assertTrue(\"String_Node_Str\", j.getOrderXMLdoc().hasContent());\n File crawlDir = new File(TestInfo.WORKING_DIR, \"... |
"public void triggerInterrupts() {\n boolean trigger = false;\n int tIndex = 0;\n for (int i = 0, n = noCompare; i < n; i++) {\n boolean newTrigger = (tcctl[i] & CC_TRIGGER_INT) == CC_TRIGGER_INT;\n trigger = trigger | newTrigger;\n if (i == 0) {\n core.flagInterrupt(ccr0Vector,... |
"private static void formatImplementation(Set<Implementation> implementations, List<TopLevelDocument<QName>> topLevelDoc) {\n for (Implementation implementation : implementations) {\n List<NamedProperty<QName>> list = new ArrayList<>();\n formatCommonTopLevelData(list, implementation);\n if (imp... |
"private Object putIfAbsentInternalSync(V value, long start, Data keyData, Data valueData, ClientDelegatingFuture<Boolean> delegatingFuture, boolean marked) {\n try {\n Object response = delegatingFuture.get();\n if (statisticsEnabled) {\n handleStatisticsOnPutIfAbsent(start, (Boolean) respo... |
"protected void writeTrackPartStart(String trackPartName) throws IOException {\n String styleId = getStyleForFlightMode(flightMode);\n writer.write(\"String_Node_Str\");\n writer.write(\"String_Node_Str\" + trackPartName + \"String_Node_Str\");\n writer.write(\"String_Node_Str\");\n writer.write(\"String... |
"private IColumnValueIterator getColumnValueIterator(DataSetHandle dataSet, Iterator inputParamBindings, Iterator columnBindings, String boundColumnName, IRequestInfo requestInfo) throws BirtException {\n ArrayList temp = new ArrayList();\n while (columnBindings != null && columnBindings.hasNext()) {\n Obj... |
"public Portable readPortable(String fieldName) throws IOException {\n FieldDefinition fd = cd.get(fieldName);\n if (fd == null) {\n throw throwUnknownFieldException(fieldName);\n }\n final int currentPos = in.position();\n try {\n int pos = getPosition(fd);\n in.position(pos);\n ... |
"public boolean isConstantValue() {\n return (constantValue != null && !(constantValue instanceof ConstantFieldInfo)) || Type.NULL.equals(type);\n}\n"
|
"public Optional<Group> upsertGroup(Group group) {\n logger.info(\"String_Node_Str\" + group);\n group = group.withDefaults();\n groupValidator.validate(group);\n Optional<Group> existingGroup = getGroup(group.getName());\n if (existingGroup.isPresent()) {\n if (existingGroup.get().equals(group)) ... |
"public static void main(String[] args) throws ScribbleException {\n new CommandLine(args).run();\n}\n"
|
"private void insertItemEvents(ItemStack toInsert, EnumDyeColor colour, double speed, EnumFacing from) {\n IPipeHolder holder = pipe.getHolder();\n PipeEventItem.OnInsert onInsert = new PipeEventItem.OnInsert(holder, this, colour, toInsert, from);\n holder.fireEvent(onInsert);\n if (onInsert.getStack().isEm... |
"public URL getImageUrl() throws IOException {\n JsonElement bgElement = getPage(getApiUrl()).get(\"String_Node_Str\");\n if (!bgElement.isJsonNull()) {\n return new URL(\"String_Node_Str\", getApiUrl().getHost(), bgElement.getAsString());\n }\n return null;\n}\n"
|
"private Var backendBagAppend(Context context, Var bag, Var elem) throws UserException {\n Var stmtResultVar = elem;\n Type elemType = Types.containerElemType(bag);\n boolean bagRef = Types.isBagRef(bag);\n boolean elemRef = Types.isRefTo(elem, elemType);\n boolean openWait1 = bagRef || elemRef;\n if ... |
"private void processMRCAS() {\n for (int i = 0; i < jt.getInternalNodeCount(); i++) {\n JadeNode tnode = jt.getInternalNode(i);\n ArrayList<JadeNode> nds = tnode.getTips();\n ArrayList<Node> hit_nodes = new ArrayList<Node>();\n for (int j = 0; j < nds.size(); j++) {\n IndexHit... |
"public Description matchMethod(MethodTree tree, VisitorState state) {\n if (!matchWithinClass) {\n return Description.NO_MATCH;\n }\n Symbol.MethodSymbol methodSymbol = ASTHelpers.getSymbol(tree);\n if (initializerErrors.containsKey(methodSymbol)) {\n return reportInitializerError(methodSymbo... |
"protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n Preferences.refreshPreferences();\n Preferences.printSettings();\n if (Preferences.mLicense == 1 || Preferences.mLicense == 2) {\n if (Preferences.mReplay == true) {\n }\n if (Preferences.mTyping == true) {\n ... |
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n Pulse newObject = (Pulse) super.clone(workspace);\n try {\n newObject.attributeChanged(newObject.indexes);\n newObject.attributeChanged(newObject.values);\n newObject.attributeChanged(newObject.repeat);\n A... |
"public void logout() {\n WebElement logoutButton;\n int attempts = 0;\n while (attempts < 3) {\n try {\n logoutButton = Utils.getWebDriver().findElement(LOGOUT_SELECTOR);\n if (logoutButton != null) {\n logoutButton.click();\n return;\n }\n... |
"public void draw(Batch batch, Entity entity, float parentAlpha) {\n ParticleComponent particleComponent = particleComponentMapper.get(entity);\n TransformComponent transformComponent = transformComponentMapper.get(entity);\n particleComponent.particleEffect.setPosition(transformComponent.x, transformComponent... |
"public void map(Chunk[] chks) {\n int chunkSize = chks[0].len();\n long start = chks[0].start();\n Vec[] A_vecs = A.vecs();\n long A_rows = A.numRows();\n for (int c = 0; c < chks.length; c++) {\n for (int r = 0; r < chunkSize; r++) {\n double v = 0;\n for (long i = 0; i < A... |
"private AnnotatedNode findMethodDeclaration(String name, ClassNode declaringType, List<ClassNode> methodCallArgumentTypes, boolean checkSuperInterfaces) {\n if (checkSuperInterfaces && declaringType.isInterface()) {\n LinkedHashSet<ClassNode> allInterfaces = new LinkedHashSet<ClassNode>();\n VariableS... |
"public void actionPerformed(ActionEvent arg0) {\n if (arg0 == null) {\n } else {\n StepMetaSearch.this.d = SearchManager.getInstance().searchForSong(sf.getArtist(), sf.getAlbum(), sf.getSongTitle());\n StepMetaSearch.this.handleMetaResult();\n }\n}\n"
|
"public Object valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, AbstractSession executionSession) {\n ContainerPolicy cp = this.getContainerPolicy();\n Object fieldValue = row.getValues(this.getField());\n if (fieldValue == null) {\n if (reuseContainer) {\n... |
"private static void fixupContinuationRec(Logger logger, Function function, Continuation continuation, HierarchicalMap<String, Var> visible, Set<String> referencedGlobals, Set<String> outerBlockVars, Set<String> neededVars) {\n List<Var> constructVars = continuation.constructDefinedVars();\n List<String> construc... |
"public SearchNode addNode(SimpleIsl nextIsl) {\n SearchNode newNode = this.clone();\n newNode.parentPath.add(nextIsl);\n newNode.dstSw = network.getSimpleSwitch(nextIsl.getDstDpid());\n newNode.allowedDepth--;\n newNode.parentCost += nextIsl.cost;\n return newNode;\n}\n"
|
"public List<List<SpanBo>> selectSpans(List<TransactionId> transactionIdList) {\n List<List<SpanBo>> spanBos = this.master.selectSpans(transactionIdList);\n if (CollectionUtils.isNotEmpty(spanBos)) {\n for (List<SpanBo> spanBo : spanBos) {\n if (CollectionUtils.isNotEmpty(spanBo)) {\n ... |
"public static void purchaseRestore() {\n if (hasManager()) {\n manager.purchaseRestore();\n } else {\n throw new RuntimeException(\"String_Node_Str\");\n }\n}\n"
|
"public void addGateExpansion(IGateExpansion expansion) {\n if (!expansions.containsKey(expansion)) {\n expansions.put(expansion, expansion.makeController(pipe != null ? pipe.container : null));\n }\n}\n"
|
"public void setUp() throws Exception {\n contextReplicaSet = \"String_Node_Str\";\n builtInReplicaSet = \"String_Node_Str\";\n}\n"
|
"public static void runJob(String input, String clustersIn, String output, String measureClass, String convergenceDelta, String maxIterations, String jarLocation) {\n int maxIter = new Integer(maxIterations);\n try {\n JobConf conf = new JobConf(KMeansDriver.class);\n Path outPath = new Path(output)... |
"private boolean deleteJoinNLines(Editor editor, int startLine, int count, boolean spaces) {\n MotionGroup.moveCaret(editor, VimPlugin.getMotion().moveCaretToLineEnd(editor, startLine, true));\n for (int i = 1; i < count; i++) {\n int start = VimPlugin.getMotion().moveCaretToLineEnd(editor);\n Motio... |
"public File getDiskCacheDir(Context context) {\n String cachePath;\n if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()) || !Environment.isExternalStorageRemovable()) {\n cachePath = context.getExternalCacheDir().getPath();\n } else {\n cachePath = context.getFilesDir().g... |
"public void run() {\n mAdapter.notifyDataSetChanged();\n mMessageListView.setSelection(firstPos + (mAdapter.getCount() - countBeforeUpdate));\n mIsCatchingUp = false;\n}\n"
|
"public void onChildEvent(MonitorStatusEvent statusEvent) {\n String id = statusEvent.getId();\n LifeCycleState status1 = statusEvent.getStatus();\n if (status1 == ClusterStatus.Active || status1 == GroupStatus.Active) {\n onChildActivatedEvent(id);\n } else if (status1 == ClusterStatus.Inactive || s... |
"public void postEditDomain() {\n if (getDomainValidator().isValid()) {\n this.configurationManager.updateDomainConfiguration(this.in(\"String_Node_Str\"), this.in(\"String_Node_Str\"), this.in(\"String_Node_Str\"), this.in(\"String_Node_Str\", new SafeStringConverter()));\n this.redirect(ROOT_URL);\n ... |
"public List<Node> getInstants(long startTime, long endTime, DateTimeZone timeZone, Resolution resolution) {\n if (timeZone == null) {\n timeZone = this.timeZone;\n }\n if (resolution == null) {\n resolution = this.resolution;\n }\n List<Node> result = new LinkedList<>();\n MutableDateTi... |
"public void prepareShutdown() {\n logger.info(\"String_Node_Str\");\n stopDownloads();\n logger.info(\"String_Node_Str\");\n JDUtilities.getDownloadController().saveDownloadLinksSyncnonThread();\n logger.info(\"String_Node_Str\");\n AccountController.getInstance().saveSyncnonThread();\n logger.inf... |
"private Node checkPath(List<Node> path, NodeAction triggerSkip, PriorityQueue<Node> queue) {\n int anonymityProperty = config.getBinaryPhaseConfiguration().getAnonymityProperty();\n int low = 0;\n int high = path.size() - 1;\n Node lastAnonymousNode = null;\n while (low <= high) {\n final int mid... |
"public void testCursorModel8() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = creator.createQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new ScriptExpres... |
"public String toString() {\n StringBuilder builder = new StringBuilder();\n Iterator it = urlList.iterator();\n if (it.hasNext()) {\n s = it.next().toString();\n }\n while (it.hasNext()) {\n s = s + \"String_Node_Str\" + it.next().toString();\n }\n logFine(\"String_Node_Str\" + s);\n... |
"public boolean apply(Game game, Ability source) {\n Card card = game.getCard(source.getFirstTarget());\n Player player = game.getPlayer(source.getControllerId());\n if (card != null && player != null) {\n Player targetPlayer = game.getPlayer(card.getOwnerId());\n if (targetPlayer != null) {\n ... |
"private ExportFileResource generateWsdlFile(ProcessItem item) {\n String jobName = item.getProperty().getLabel();\n String jobVersion = item.getProperty().getVersion();\n PetalsWsdlBean wsdlBean = new PetalsWsdlBean();\n wsdlBean.setJobName(jobName);\n wsdlBean.setJobVersion(jobVersion);\n wsdlBean.s... |
"private void _replaceTargetEntity(ComponentEntity targetEntity, HashMap<String, String> portTypes) throws CloneNotSupportedException, IllegalActionException, NameDuplicationException {\n ArrayList<Attribute> attributes = new ArrayList<Attribute>(targetEntity.attributeList());\n for (Attribute attribute : attribu... |
"public void testClosedCase() {\n SymmetryAxes axes = new SymmetryAxes();\n Matrix4d r90 = new Matrix4d();\n r90.set(new AxisAngle4d(0, 0, 1, -Math.PI / 2));\n axes.addAxis(r90, 4, SymmetryType.CLOSED);\n Matrix4d r180 = new Matrix4d();\n r180.set(new AxisAngle4d(1, 0, 0, Math.PI));\n axes.addAxis(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.