content
stringlengths
40
137k
"public void main() throws InstantiationException, IllegalAccessException, IOException, TimeoutException, IguanaException, InterruptedException {\n Config.getInstance(\"String_Node_Str\");\n ConsumerTest ct = new ConsumerTest();\n Properties p = new Properties();\n p.setProperty(\"String_Node_Str\", \"Strin...
"public void registerDimensionPerspective(DimensionPerspective dimensionPerspective) {\n if (dimensionPerspective.getPerspectiveID() == null)\n throw new IllegalStateException(\"String_Node_Str\" + dimensionPerspective);\n hashDimensionPerspectives.put(dimensionPerspective.getPerspectiveID(), dimensionPers...
"protected void endKeyEvent() {\n if (ongoingKeyEvent != null) {\n boolean replaced = replaceKeyEvent(ongoingKeyEvent);\n if (replaced) {\n ongoingKeyEvent.aborted();\n ongoingKeyEvent = null;\n } else {\n ongoingKeyEvent.released();\n ongoingKeyEvent ...
"public double[] confidences() {\n return confidences;\n}\n"
"public boolean execute(ICommandSender sender, String[] args) throws Exception {\n if (args.length > 1) {\n throw new BadUsageException(getUsage());\n }\n IPlayer player = (IPlayer) sender;\n if (player.hasPermission(PermissionNames.ADMIN_PROTECT) || player.hasPermission(PermissionNames.USER_PROTECT)...
"private static void applyLayoutOnRow(LayoutSlot mappingSlot, TableRow row, Module module) {\n List cells = row.getContentsSlot();\n if (cells.size() == 0)\n return;\n LayoutRow mappingRow = mappingSlot.getCurrentLayoutRow();\n for (int i = 0, startCol = 1; i < cells.size(); i++) {\n Cell cell...
"public int hashCode() {\n int result = getLocation().hashCode() ^ baseCommit.hashCode();\n if (remoteCommit != null)\n result ^= remoteCommit.hashCode();\n return result;\n}\n"
"public void close(Double opCode, String aReason) throws Exception {\n if (opCode == null) {\n opCode = Double.valueOf(CloseReason.CloseCodes.NO_STATUS_CODE.getCode());\n }\n if (aReason == null) {\n aReason = \"String_Node_Str\";\n }\n if (session.isOpen()) {\n session.close(new Clo...
"public void verifyMocks() {\n verify(topologyEngineService).getActiveSwitches();\n verify(topologyEngineService).getActiveLinks();\n verify(topologyDefinition, times(2)).getActiveSwitches();\n verify(topologyDefinition).getIslsForActiveSwitches();\n}\n"
"protected void parseDeploymentOverlay(final XMLExtendedStreamReader reader, final ModelNode baseAddress, final List<ModelNode> list) throws XMLStreamException {\n final EnumSet<Attribute> required = EnumSet.of(Attribute.NAME);\n String name = null;\n final int count = reader.getAttributeCount();\n for (int...
"public boolean canModify(Object element, String property) {\n boolean editable = false;\n if (getSelectedExecNodeOwner() instanceof AbstractTestCaseEditor && ((AbstractTestCaseEditor) getSelectedExecNodeOwner()).getEditorHelper().requestEditableState() == EditableState.OK) {\n editable = true;\n }\n ...
"public static void makeVarNamesUnique(Program in) {\n for (CompFunction f : in.getComposites()) {\n makeVarNamesUnique(f, in.getGlobalConsts().keySet());\n }\n}\n"
"public static ITalendProcessJavaProject getTalendCodeJavaProject(ERepositoryObjectType type, Project project) {\n String codeProjectId = AggregatorPomsHelper.getCodeProjectId(type, project.getTechnicalLabel());\n ITalendProcessJavaProject talendCodeJavaProject = talendCodeJavaProjects.get(codeProjectId);\n if...
"public static void main(String[] args) {\n String newFile = null;\n String oldFile = null;\n String dirName = \"String_Node_Str\";\n LinkedHashMap<String, Command> commands = new LinkedHashMap<String, Command>();\n LinkedHashMap<String, Command> oldCommands = new LinkedHashMap<String, Command>();\n A...
"public static void main(String[] args) throws IOException, GitAPIException, IncorrectTraceException, PreconditionException, ClassNotFoundException, InstantiationException, IllegalAccessException {\n if (args.length < 1) {\n System.err.println(\"String_Node_Str\");\n System.err.println(\"String_Node_St...
"public static void calculateSQLChanges(IFile file, PathPair pathPair, TextFileChange textFileChange) throws Exception {\n if (!ModelUtil.isModelFile(file)) {\n return;\n }\n IPath sourcePath = new Path(pathPair.getSourcePath());\n IPath targetPath = new Path(pathPair.getTargetPath());\n String so...
"public static void logMessage(String logRecordJson) throws RemoteLoggingException {\n HttpServletRequest threadLocalRequest = RequestFactoryServlet.getThreadLocalRequest();\n String strongName = null;\n if (threadLocalRequest != null) {\n threadLocalRequest.getHeader(RpcRequestBuilder.STRONG_NAME_HEADE...
"public void init(WorkerContext<LogisticRegressionParams, LogisticRegressionParams> context) {\n loadConfigFiles(context.getProps());\n int[] inputOutputIndex = DTrainUtils.getInputOutputCandidateCounts(this.columnConfigList);\n this.inputNum = inputOutputIndex[0] == 0 ? inputOutputIndex[2] : inputOutputIndex[...
"protected boolean updateTemplateOrIsoPermissions(UpdateTemplateOrIsoPermissionsCmd cmd) {\n Transaction txn = Transaction.currentTxn();\n Long id = cmd.getId();\n Account account = UserContext.current().getAccount();\n List<String> accountNames = cmd.getAccountNames();\n Long userId = UserContext.curren...
"public Update conflictAction(ConflictAction conflictAction) {\n this.conflictAction = conflictAction;\n return this;\n}\n"
"public Operation prepareReplicationOperation(PartitionReplicationEvent event) {\n if (event.getReplicaIndex() > 1) {\n return null;\n }\n Map<String, Long> data = new HashMap<String, Long>();\n int partitionId = event.getPartitionId();\n for (Map.Entry<String, AtomicLongContainer> containerEntry ...
"public boolean execCmd(String user, String privateKeyFile, String hostIP, int sshPort, String command) {\n AuAssert.check(command != null);\n connect(user, privateKeyFile, hostIP, sshPort);\n ChannelExec channel = null;\n logger.info(\"String_Node_Str\");\n try {\n channel = (ChannelExec) session...
"private long[] _decode(String hash, String alphabet) {\n ArrayList<Long> ret = new ArrayList<Long>();\n int i = 0;\n String regexp = \"String_Node_Str\" + this.guards + \"String_Node_Str\";\n String hashBreakdown = hash.replaceAll(regexp, \"String_Node_Str\");\n String[] hashArray = hashBreakdown.split(...
"public CharPred substIn(CharPred p, UnaryCharIntervalSolver cs) {\n return new CharPred(c);\n}\n"
"protected ElementParameterType getParameterType(NodeType node, String paramName) {\n ElementParameterType paramType = ParameterUtilTool.findParameterType(node, paramName);\n if (node != null && paramType != null) {\n Object value = ParameterUtilTool.convertParameterValue(paramType);\n if (\"String_...
"public static String getBuiltinOpImpl(BuiltinOpcode op) {\n String impl = builtinOpImpls.get(op);\n if (impl != null) {\n return impl;\n }\n return null;\n}\n"
"public Object invoke() throws InterruptedException, ExecutionException, TimeoutException {\n op.setCallerUuid(uuid);\n final InvocationBuilder builder;\n if (target == null) {\n builder = nodeEngine.getOperationService().createInvocationBuilder(serviceName, op, partitionId).setReplicaIndex(replicaIndex...
"private void initialize(final ARXResult r, final ModelNodeFilter filter) {\n if ((r == null) || (r.getLattice() == null) || (filter == null)) {\n reset();\n return;\n }\n final ARXLattice l = r.getLattice();\n latticeWidth = 0;\n numNodes = 0;\n optimum = r.getGlobalOptimum();\n fina...
"public Collection<SortButtonCategory> getSubCategories() {\n return subCategories;\n}\n"
"public double getHorizon() {\n getDimensionInformation();\n if (dimensionInformation != null && dimensionInformation.getTerrainType().hasNoHorizon()) {\n return 0;\n } else {\n return super.getHorizon();\n }\n}\n"
"public SAMRecord deepCopy() {\n final SAMRecord newSAM = new SAMRecord(getHeader());\n newSAM.setReadName(getReadName());\n newSAM.setReadBases(Arrays.copyOf(getReadBases(), getReadLength()));\n final byte[] baseQualities = getBaseQualities();\n newSAM.setBaseQualities(Arrays.copyOf(baseQualities, baseQ...
"public List<Trigger> getTriggersOfJob(JobKey jobKey) throws SchedulerException {\n return (List<Trigger>) invoke(\"String_Node_Str\", new Object[] { jobKey }, new String[] { JobKey.class.getName() });\n}\n"
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.list_view_with_spinner, null);\n mListView = (ListView) v.findViewById(R.id.list);\n mProgressBar = (ProgressBar) v.findViewById(R.id.progress);\n if (mAdapter != null) {...
"public void widgetSelected(SelectionEvent e) {\n boolean success = false;\n String email = emailText.getText().trim();\n String password = passwordText.getText().trim();\n String pseudonym = userNameText.getText().trim();\n try {\n success = RegisterManagement.getInstance().createUser(email, pseu...
"public void node(Node node, NamespaceResolver resolver) {\n if (isStartElementOpen) {\n openAndCloseStartElement();\n isStartElementOpen = false;\n }\n try {\n if (node.getNodeType() == Node.DOCUMENT_NODE) {\n node = ((Document) node).getDocumentElement();\n }\n d...
"protected FileObject getResource(String name) throws IOException {\n return processingEnv.getFiler().getResource(CLASS_OUTPUT, \"String_Node_Str\", name);\n}\n"
"public void testProviderCyclic() {\n try {\n createProvider(SCHEMA_XML_CYCLIC);\n fail(\"String_Node_Str\");\n } catch (NodeCycleException e) {\n assertThat(e).hasMessageContaining(\"String_Node_Str\");\n }\n}\n"
"public void addDependencies(ModelElement element) {\n TdReport report = (TdReport) element;\n for (Analysis ana : ReportHelper.getAnalyses(report)) {\n TypedReturnCode<Dependency> dependencyReturn = DependenciesHandler.getInstance().setDependencyOn(report, ana);\n if (dependencyReturn.isOk()) {\n ...
"private static byte[] readBytes(Uri uri, ContentResolver resolver) throws IOException {\n InputStream inputStream = resolver.openInputStream(uri);\n ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();\n if (!thumbnail) {\n int bufferSize = 1024;\n byte[] buffer = new byte[bufferSize]...
"public Vector3f center() {\n Vector3f result = min.toVector3f();\n Vector3f halfSize = size.toVector3f();\n halfSize.scale(0.5f);\n result.add(halfSize);\n return result;\n}\n"
"public void cleanupForServer(long msId) {\n PreparedStatement pstmt = null;\n try {\n pstmt = _concierge.conn().prepareStatement(CLEANUP_MGMT_LOCKS_SQL);\n pstmt.setLong(1, msId);\n int rows = pstmt.executeUpdate();\n s_logger.info(\"String_Node_Str\" + rows + \"String_Node_Str\" + ms...
"private void processMouseReleased(Editor editor, CommandState.SubMode mode, int startOff, int endOff) {\n if (ExEntryPanel.getInstance().isActive()) {\n ExEntryPanel.getInstance().deactivate(false);\n }\n ExOutputModel.getInstance(editor).clear();\n if (CommandState.getInstance(editor).getMode() == ...
"public void use(UPlayer uplayer, Player player) {\n UConf uconf = UConf.get(player);\n uplayer.msg(\"String_Node_Str\");\n uplayer.msg(this.desc);\n if (!Perm.ALTAR_LIGHT.has(player, true))\n return false;\n if (!uplayer.isVampire() && playerHoldsWaterBottle(player)) {\n if (!ResourceUtil....
"public INDArray permute(int... rearrange) {\n if (rearrange.length != shape.length)\n return dup();\n checkArrangeArray(rearrange);\n int[] newShape = doPermuteSwap(shape, rearrange);\n int[] newStride = doPermuteSwap(stride, rearrange);\n char newOrder = Shape.getOrder(newShape, newStride, eleme...
"private void setSelectedTimeInt(long time, boolean ensureVisible, boolean doNotify) {\n long time0 = _time0;\n long time1 = _time1;\n if (ensureVisible) {\n long timeSpace = (long) ((_time1 - _time0) * .02);\n long timeMid = (long) ((_time1 - _time0) * .5);\n if (time < _time0 + timeSpace...
"public void testWeekend() {\n DateEncoder e = DateEncoder.builder().customDays(21, Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")).forced(true).build();\n DateEncoder mon = DateEncoder.builder().customDays(21, Arrays.asList(\"String_Node_Str\")).forced(true).build();\n DateEncode...
"private synchronized void animateTabRemoval(final TextView view, final int position, final LightningView reference, final boolean isShown) {\n mRemoveTab.setAnimationListener(new AnimationListener() {\n public void onAnimationEnd(Animation animation) {\n new Handler().post(new Runnable() {\n ...
"public boolean createLinkedClone(String cloneName, ManagedObjectReference morBaseSnapshot, ManagedObjectReference morFolder, ManagedObjectReference morResourcePool, ManagedObjectReference morDs) throws Exception {\n assert (morBaseSnapshot != null);\n assert (morFolder != null);\n assert (morResourcePool != n...
"private void executeMethodInvocationDialog(final Class cls, final IRemoteService remoteService) {\n final MethodInvocationDialog mid = new MethodInvocationDialog((Shell) null, cls);\n if (mid.open() == Window.OK) {\n final int timeout = (mid.getTimeout() > 0) ? mid.getTimeout() : 30000;\n final Str...
"public static boolean itemsIdentical(ItemStack stackA, ItemStack stackB) {\n return itemsEqualWithoutMetadata(stackA, stackB) && (stackA.getItemDamage() == stackB.getItemDamage()) && doNBTsMatch(stackA.stackTagCompound, stackB.stackTagCompound);\n}\n"
"public EasyJsonObject action(Sender sender, int command, EasyJsonObject requestObject) throws SQLException {\n String title = requestObject.getString(\"String_Node_Str\");\n String content = requestObject.getString(\"String_Node_Str\");\n String writer = requestObject.getString(\"String_Node_Str\");\n bool...
"protected void processRequest() throws Exception {\n String module = request.getParameter(\"String_Node_Str\");\n String moduleStr = \"String_Node_Str\";\n if (module != null && module.trim().length() > 0) {\n if (\"String_Node_Str\".equals(module)) {\n request.setAttribute(\"String_Node_Str...
"private TypeText buildImplementationClassField(Composite parent) {\n int style = creatingNewRule() ? SWT.SINGLE | SWT.BORDER : SWT.READ_ONLY | SWT.BORDER;\n final TypeText classField = new TypeText(parent, style, true, \"String_Node_Str\");\n classField.setEnabled(false);\n Listener validateListener = new ...
"public void run() {\n if (!npc.isSpawned()) {\n Bukkit.getScheduler().cancelTask(void_watcher_task);\n return;\n }\n if (npc.getEntity().getLocation().getY() < -1000) {\n npc.despawn(DespawnReason.DEATH);\n if (respawn) {\n if (npc.isSpawned()) {\n npc.get...
"private boolean removeLispMapping(LispAddressContainer eid) {\n Preconditions.checkNotNull(eid, \"String_Node_Str\");\n try {\n LOG.trace(\"String_Node_Str\", eid);\n Future<RpcResult<Void>> result = lfmService.removeMapping(LispUtil.buildRemoveMappingInput(eid, 0));\n result.get().getResult...
"public void getRegionsToBeCompacted(HttpRequest request, HttpResponder responder, int numRegions) {\n if (!initializePruningDebug(responder)) {\n return;\n }\n try {\n if (!initializePruningDebug(responder)) {\n return;\n }\n Set<String> regionNames = pruningDebug.getReg...
"protected Event getUpdateEvent(Comment comment) {\n return new CommentEvent(issue, issue.getProject(), getSession().getUser(), comment, \"String_Node_Str\");\n}\n"
"public BigDecimal computeKilometricExpense(ExpenseLine expenseLine, Employee employee) throws AxelorException {\n BigDecimal multiplier = expenseLine.getKilometricTypeSelect() == 1 ? BigDecimal.ONE : new BigDecimal(\"String_Node_Str\");\n BigDecimal distance = expenseLine.getDistance().multiply(multiplier);\n ...
"private void drawEvent(long t, List<Events.InferenceEvent> v, float y, int maxItemsPerCycle) {\n if (v.isEmpty()) {\n return;\n }\n float itemScale = Math.min(timeScale / maxItemsPerCycle, yScale / maxItemsPerCycle);\n float x = t;\n y += yScale / maxItemsPerCycle / 2f;\n for (Events.Inference...
"public ItemListOverlayInternal create(GuiScreen guiScreen) {\n if (Config.isOverlayEnabled()) {\n GuiProperties guiProperties = GuiProperties.create(guiScreen);\n if (guiProperties != null) {\n final int columns = ItemListOverlayInternal.getColumns(guiProperties);\n if (columns >...
"public void resolveTypes(List<Marker> markers, IContext context) {\n this.typesResolved = true;\n if (this.genericCount > 0) {\n GenericType type = new GenericType(this);\n for (ITypeVariable v : this.generics) {\n v.resolveTypes(markers, context);\n type.addType(new WildcardT...
"public static boolean isNumberType(ClassNode cn) {\n return cn.equals(Byte_TYPE) || cn.equals(Short_TYPE) || cn.equals(Integer_TYPE) || cn.equals(Long_TYPE) || cn.equals(Float_TYPE) || cn.equals(Double_TYPE) || cn == byte_TYPE || cn == short_TYPE || cn == int_TYPE || cn == long_TYPE || cn == float_TYPE || cn == dou...
"protected List<DefaultProfilerPluginContext> loadPlugins(AgentOption agentOption) {\n final ProfilerPluginLoader loader = new ProfilerPluginLoader(this);\n return loader.load(agentOption.getPluginJars());\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n mThemeUtils = new ThemeUtils(this);\n setTheme(mThemeUtils.getCurrent());\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_drawer);\n if (savedInstanceState != null) {\n if (savedInstanceState.containsKey(\"String_Node...
"public WorldServer a(int i) {\n for (WorldServer world : worlds) {\n if (world.dimension == i) {\n return world;\n }\n }\n return worlds.get(0);\n}\n"
"public String getSubtitle() {\n return \"String_Node_Str\";\n}\n"
"public boolean pay(ManaType manaType, Ability ability, Filter filter, Game game) {\n if (!autoPayment && !manaType.equals(unlockedManaType)) {\n return false;\n }\n if (getConditional(manaType, ability, filter, game) > 0) {\n removeConditional(manaType, ability, game);\n lockManaType();\n...
"public void run(VMRunnerConfiguration configuration, ILaunch launch, IProgressMonitor monitor) throws CoreException {\n delegate.run(configuration, launch, monitor);\n IProcess[] ps = launch.getProcesses();\n if (ps != null && ps.length > 0) {\n if (runScript) {\n if (monitor == null) {\n ...
"public Set<InstalledUnit> installPatchFile(File updatesiteZip, boolean keepChangeConfigIni) throws Exception {\n if (updatesiteZip != null && updatesiteZip.exists() && updatesiteZip.isFile() && updatesiteZip.getName().endsWith(FileExtensions.ZIP_FILE_SUFFIX)) {\n final File tmpFolder = org.talend.utils.files...
"public void addConstructor(ConstructorInfo constructor) {\n synchronized (constructors) {\n constructors.add(constructor);\n this.info = null;\n }\n}\n"
"private TextWritingException throwExceptionAndClose(String message, Object[] recordValues, Throwable cause) {\n try {\n throw new TextWritingException(message, recordCount, recordValues, cause);\n } finally {\n try {\n close();\n } catch (Throwable t) {\n }\n }\n}\n"
"public MimeMessage generateSystemErrorEmail(Throwable error, String requestPath, String requestParam) throws AddressException, MessagingException {\n Session session = Session.getDefaultInstance(new Properties(), null);\n MimeMessage message = new MimeMessage(session);\n String errorMessage = error.getMessage...
"public void fire() throws IllegalActionException {\n super.fire();\n try {\n _omcCommand.loadModelicaFile(fileName.getExpression(), subModel.getExpression());\n if (!(dependencies.getExpression().isEmpty() && baseModel.getExpression().isEmpty()))\n _omcCommand.loadModelicaFile(dependenci...
"private void loadAudioFile(String file) throws IOException {\n Class<? extends AudioFileReader> theRealAudioFileReaderClass = audioFileReaderClass == null ? defaultAudioFileReaderClass : audioFileReaderClass;\n AudioFileReader audioFileReader;\n try {\n audioFileReader = theRealAudioFileReaderClass.get...
"private Collection<Relation> findRelations(Resource concept) {\n Collection<Relation> allRelations = new ArrayList<>();\n try {\n TupleQuery query = repCon.prepareTupleQuery(QueryLanguage.SPARQL, createConnectionsQuery(concept));\n TupleQueryResult result = query.evaluate();\n while (result....
"public void messageReceived(MessageReceivedEvent evt) {\n logger.trace(\"String_Node_Str\" + evt.getSourceContact().getAddress());\n Contact protocolContact = evt.getSourceContact();\n Date date = evt.getTimestamp();\n Message message = evt.getSourceMessage();\n MetaContact metaContact = mainFrame.getCo...
"public void setNextExec(Date nextExec) {\n this.nextExec = new Date(nextExec.getTime());\n}\n"
"protected void saveProperties() throws IOException, SecurityException {\n File home = FileUtils.getHomeConfigDir();\n File path = new File(home, \"String_Node_Str\");\n path = new File(path, desc.getId());\n File config = new File(path, \"String_Node_Str\" + \"String_Node_Str\");\n FileWriter writer = n...
"public synchronized long getVoucher(boolean test) throws UserException {\n if (!active) {\n return 0;\n }\n System.out.println(getClass() + \"String_Node_Str\" + test);\n long currentFreeSpace = getFreeSpace();\n if (currentFreeSpace <= 0) {\n throw new UserException(POSIXErrno.POSIX_ERROR...
"protected TestSet parse(InputStream stream) {\n state = new Memento();\n Scanner scanner = null;\n try {\n scanner = new Scanner(stream, this.encoding);\n String line = null;\n while (scanner.hasNextLine()) {\n line = scanner.nextLine();\n if (line != null && line.le...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (null == value) {\n return false;\n }\n boolean wasXMLRoot = false;\n XPathFrag...
"protected StringBuffer getProfileArgs() {\n StringBuffer profileBuffer = new StringBuffer();\n profileBuffer.append(TalendMavenConstants.PREFIX_PROFILE);\n profileBuffer.append(SPACE);\n addArg(profileBuffer, true, true, TalendMavenConstants.PROFILE_DEFAULT_SETTING);\n addArg(profileBuffer, isOptionChoo...
"public static Workflow parseYAML(File yamlFile) throws IOException {\n Workflow.WorkflowBuilder builder = Workflow.builder();\n BufferedInputStream bis = new BufferedInputStream(new FileInputStream(yamlFile));\n Map<?, ?> loadMap = (Map<?, ?>) yaml.load(bis);\n Map<?, ?> workflowMap = (Map<?, ?>) loadMap.g...
"private JComponent createEquivalentPanel() {\n GridBagConstraints c = new GridBagConstraints();\n equivalentPanel = new JXTitledPanel(EQUIVALENTCLASS_PANEL_TITLE);\n equivalentPanel.getContentContainer().setLayout(new GridBagLayout());\n c.weightx = 1.0;\n c.weighty = 1.0;\n c.fill = GridBagConstrain...
"public boolean onItemLongClick(AdapterView<?> arg0, View view, int arg2, long arg3) {\n TextView bottomtext = (TextView) view.findViewById(R.id.bottomtext);\n if (bottomtext.length() < 5) {\n return false;\n }\n fthread = (FutabaThread) view.getContext();\n FLog.d(\"String_Node_Str\" + arg2 + \"S...
"public void exportNode(File exportDirectory, ICourse course) {\n XStream xstream = XStreamHelper.createXStreamInstance();\n ChecklistManager cm = ChecklistManager.getInstance();\n Checklist checklist = loadOrCreateChecklist(course.getCourseEnvironment().getCoursePropertyManager());\n Checklist copy = cm.co...
"private void restartInstances(HttpResponder responder, String serviceName, int instanceId) {\n long startTimeMs = System.currentTimeMillis();\n boolean isSuccess = true;\n try {\n if (!masterServiceManager.isServiceEnabled()) {\n throw new IllegalStateException();\n }\n MasterS...
"public String getEntrySetName() {\n if (identifierValue != null)\n return identifierValue + \"String_Node_Str\" + this.getEntrySetName();\n else\n return this.entrySetName;\n}\n"
"public void setSize(Integer size) {\n if (size == null) {\n this.size = AlienConstants.DEFAULT_ES_SEARCH_SIZE;\n } else if (size > AlienConstants.MAX_ES_SEARCH_SIZE) {\n this.size = AlienConstants.MAX_ES_SEARCH_SIZE;\n } else {\n this.size = size;\n }\n}\n"
"public static ApplicationInfoBean getApplicationRuntime(String applicationId) throws RestAPIException {\n ApplicationInfoBean applicationBean = null;\n ApplicationContext applicationContext = null;\n try {\n applicationContext = getAutoscalerServiceClient().getApplication(applicationId);\n } catch (...
"private void append(ID fromID, String body) {\n if (!isFirstMessage) {\n chatText.append(Text.DELIMITER);\n }\n int length = chatText.getCharCount();\n String name = getUserName(fromID);\n if (fromID.equals(remoteID)) {\n if (showTimestamps) {\n chatText.append(FORMATTER.format(...
"private void removeNodeAndPropagate(String indexOfRemovedNode, Vector<String[]> accumulatedEdgesToRemove) {\n Vector<Edge<String, String>> childCases = internalCaseDAG.getParents(indexOfRemovedNode);\n for (Edge<String, String> child : childCases) {\n accumulatedEdgesToRemove.addElement(new String[] { chi...
"public void onFlushDirty_shouldSetTheChangedByField() throws Exception {\n AuditableInterceptor interceptor = new AuditableInterceptor();\n User u = new User();\n Assert.assertTrue(u instanceof Auditable);\n String[] propertyNames = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n Object[] c...
"private void killBaddies() {\n int j = 0;\n boolean oob = false;\n boolean obs = false;\n while (j < particleList.size()) {\n Particle p = particleList.get(j);\n if (p.getWeight() < .01 / (NUM_PARTICLES * NUM_PARTICLES) || p.getWeight() == 0) {\n oob = (p.getX() >= map.length || p....
"public UriInfoImpl setQueryOptions(final List<QueryOptionImpl> list) {\n for (QueryOptionImpl item : list) {\n if (item instanceof SystemQueryOptionImpl) {\n setSystemQueryOption((SystemQueryOptionImpl) item);\n } else if (item instanceof CustomQueryOptionImpl) {\n addCustomQuery...
"public IAtsProgram getProgram(IAtsTeamDefinition teamDef) {\n IAtsProgram program = null;\n Object object = services.getAttributeResolver().getSoleAttributeValue(teamDef, AtsAttributeTypes.ProgramUuid, null);\n if (object instanceof ArtifactId) {\n program = services.getConfigItemFactory().getProgram((...
"public void onClick(View v) {\n Date current = (Date) getAnswer().getValue();\n Calendar cal = Calendar.getInstance();\n cal.setTime(current);\n cal.add(Calendar.DATE, 1);\n getMyGreg().setDate(new DateData(cal.getTime()));\n}\n"
"public void execute(JobExecutionContext context) throws JobExecutionException {\n NetLogger netLog = NetLogger.getTlogger();\n netlogger.debug(netLog.start(\"String_Node_Str\"));\n MaDDashGlobals globals = null;\n try {\n globals = MaDDashGlobals.getInstance();\n } catch (Exception e) {\n ...
"protected void drawItemStack(ItemStack stack, int x, int y, String str, RenderItem itemRender, FontRenderer fontRendererObj, boolean canHyperlink) {\n GlStateManager.pushMatrix();\n GlStateManager.translate(0, 0, 32F);\n GlStateManager.enableBlend();\n GlStateManager.blendFunc(GlStateManager.SourceFactor.S...
"public void close() {\n scriptContext.exit();\n}\n"