content
stringlengths
40
137k
"public JSocialKademliaStorageEntry get(GetParameter param) throws NoSuchElementException, IOException, ContentNotFoundException {\n if (this.dht.contains(param)) {\n JSocialKademliaStorageEntry e = this.dht.get(param);\n if (e.getContentMetadata().isCached()) {\n GetParameterFUC gpf = new G...
"public void generate(CoreChunk view, Random rand, int posX, int posY, int posZ) {\n Vector3f position = new Vector3f(0f, 0f, 0f);\n Matrix4f rotation = new Matrix4f(new AxisAngle4f(0f, 0f, 1f, (float) Math.PI / 2f));\n float angleOffset = rand.nextFloat(-MAX_ANGLE_OFFSET, MAX_ANGLE_OFFSET);\n recurse(view,...
"protected int[] fromJHPL(int[] transformation) {\n int[] result = new int[transformation.length];\n for (int i = 0; i < result.length; i++) {\n result[i] = transformation[transformation.length - i - 1] + offsetIndices[transformation.length - i - 1];\n }\n return result;\n}\n"
"public void saveValue(ArrayList<String> keys, ArrayList<HasValueWidget> values) {\n if (values == null || values.size() < 1 || this.currentSelected == null) {\n clientFactory.getShellView().getFooterView().showStatus(StatusType.ERROR, \"String_Node_Str\", FooterView.DEFAULT_STATUS_CLEAR_DELAY);\n }\n L...
"public void update() {\n Throwable t = null;\n try {\n WSAttributeValue surname = new WSAttributeValue();\n surname.setName(\"String_Node_Str\");\n surname.setValues(Collections.singletonList(\"String_Node_Str\"));\n surname.setKey(true);\n WSAttributeValue name = new WSAttribu...
"public int executeCommand(CommandContext context) {\n int pid = context.getArgumentAsInt(0);\n if (removePid(pid)) {\n return 0;\n }\n context.err.println(\"String_Node_Str\");\n return 1;\n}\n"
"private void createTempRootDir() {\n if (tempRootDirStr != null && new File(tempRootDirStr).exists() == true)\n return;\n File tempDtEDir = null;\n synchronized (cacheCounter1) {\n String tempDirStr = DataEngineContextExt.getInstance().getTmpdir();\n tempDtEDir = new File(tempDirStr, \"St...
"private void calcXValAverageLength() {\n if (mXVals.size() == 0) {\n mXValAverageLength = 1;\n return;\n }\n float sum = 0f;\n for (int i = 0; i < mXVals.size(); i++) {\n sum += mXVals.get(i).length();\n }\n mXValAverageLength = sum / mXVals.size();\n}\n"
"public void testWildcardMatcher() throws Exception {\n Object[][] v = new Object[][] { { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", true }, { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", true }, { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", true }, { \"String...
"private void dumpObject(StringBuilder out, Object o, char separator, List<String> ignoredProps) {\n if (o == null) {\n out.append(\"String_Node_Str\");\n } else {\n Class oClass = o.getClass();\n JSONifier jsonifier;\n if (oClass.isPrimitive()) {\n out.append(o);\n }...
"public static Drawable getBorderDrawable(LayoutParser parser, Context context) {\n if (!parser.isObject() || parser.isNull()) {\n return null;\n }\n float cornerRadius = 0;\n int borderWidth = 0, borderColor = Color.TRANSPARENT, bgColor = Color.TRANSPARENT;\n parser = parser.peek();\n String v...
"private void deleteOld() {\n File file = new File(format(pathname, index - maxRollingFileCount));\n boolean exist = file.exists();\n if (exist) {\n if (!file.delete()) {\n logger.warning(\"String_Node_Str\" + file.getAbsolutePath());\n }\n }\n}\n"
"public void addLinksWithoutGrabber(final Vector<DownloadLink> parameter) {\n if (parameter == null || parameter.size() == 0) {\n return;\n }\n Vector<DownloadLink> linkList = checkLinks(parameter);\n Vector<Vector<DownloadLink>> links = new Vector<Vector<DownloadLink>>();\n Vector<String> package...
"public static AbyssV134InputLibsArg parse(String libs) {\n AbyssV134InputLibsArg libsArg = new AbyssV134InputLibsArg();\n List<String> peLibs = getAbyssArgs(libs, \"String_Node_Str\");\n List<String> mpLibs = getAbyssArgs(libs, \"String_Node_Str\");\n List<String> seLibs = getAbyssArgs(libs, \"String_Node_...
"public void componentChanged(ComponentChangeEvent e) {\n if (e.getCode() == ComponentChangeEvent.Code.STRUCTURE_CHANGED || e.getCode() == ComponentChangeEvent.Code.DYNAMIC_ACTIVITY_CHANGED) {\n boolean invalidateWaypoints = false;\n RootModel root = getRootModel();\n if (root != null) {\n ...
"private void saveSPOTWorkspace() throws InPUTException {\n runCommand(\"String_Node_Str\" + studyId + \"String_Node_Str\" + File.separator + \"String_Node_Str\", false);\n saveSPOTHistory();\n}\n"
"private ArrayList<Integer> traverse(ArrayList<Integer> indexes, ClusterNode node) {\n if (tree.hasChildren(node) == false) {\n indexes.add(node.getClusterNr() + 1);\n } else {\n for (ClusterNode current : tree.getChildren(node)) {\n traverse(indexes, current);\n }\n }\n retu...
"private Entry scanForUpdates() {\n synchronized (warmer) {\n for (Entry ent : warmer.entries.values()) {\n if (ent.exception != null) {\n if (System.currentTimeMillis() - ent.exceptionTime < 60000)\n continue;\n ent.exception = null;\n }\...
"private SlotHandle getDefaultSlotHandle(String insertType) {\n IStructuredSelection models = InsertInLayoutUtil.editPart2Model(getSelection());\n if (models.isEmpty()) {\n return null;\n }\n model = DNDUtil.unwrapToModel(models.getFirstElement());\n if (model instanceof LibRootModel) {\n m...
"public void createControl(Composite parent) {\n ChartUIUtil.bindHelp(parent, ChartHelpContextIds.SUBTASK_TITLE);\n init();\n cmpContent = new Composite(parent, SWT.NONE);\n {\n cmpContent.setLayout(new GridLayout());\n GridData gd = new GridData(GridData.FILL_BOTH);\n cmpContent.setLay...
"private void synchronize(double height) {\n XlsContainer rowContainer = getCurrentContainer();\n ContainerSizeInfo rowSizeInfo = rowContainer.getSizeInfo();\n int startCoordinate = rowSizeInfo.getStartCoordinate();\n int endCoordinate = rowSizeInfo.getEndCoordinate();\n int startColumnIndex = axis.getCo...
"private Serializable readObject() throws IOException {\n Serializable ret = null;\n try {\n ret = (Serializable) inputStream.readObject();\n } catch (ClassNotFoundException e) {\n dumpStack(\"String_Node_Str\", e);\n IOException except = new IOException(\"String_Node_Str\" + e.getMessage(...
"public void stop() {\n try {\n this.context.unregisterReceiver(broadcastReceiver);\n } catch (IllegalArgumentException e) {\n Timber.w(e, \"String_Node_Str\");\n }\n resetNetworkBindings((ConnectivityManager.NetworkCallback) netReqCb);\n}\n"
"public int getIterations() throws IllegalActionException {\n int iterationsValue = ((IntToken) (iterations.getToken())).intValue();\n if (iterationsValue > 0) {\n return iterationsValue;\n }\n if (!isEmbedded()) {\n if (iterations.getToken().equals(_auto)) {\n return 1;\n }\...
"public void notify_event(Event e) {\n if (!visible) {\n return;\n }\n Object[] elem = children.toArray();\n for (int i = elem.length - 1; i >= 0; i--) {\n NE_GUI_Element __elem = (NE_GUI_Element) elem[i];\n __elem.notify_event(e);\n }\n if (e instanceof EMouseClick) {\n EM...
"public Object execute(ExecutionEvent event) throws ExecutionException {\n IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n if (window == null)\n return null;\n Shell shell = window.getShell();\n MessageBox confirmOperation = new MessageBox(shell, SWT.ICON_QUESTION | ...
"void startHomeActivity(Intent intent, ActivityInfo aInfo) {\n moveHomeStackTaskToTop(HOME_ACTIVITY_TYPE);\n startActivityLocked(null, intent, null, aInfo, null, null, null, null, 0, 0, 0, null, 0, 0, 0, null, false, null, null, null);\n}\n"
"public void onChunkLoad(ChunkLoadEvent event) {\n for (NPCLocation tempLoc : toRespawn.keySet()) {\n if (tempLoc.getChunkX() == event.getChunk().getX() && tempLoc.getChunkZ() == event.getChunk().getZ()) {\n if (NPCManager.get(tempLoc.getUID()) != null)\n NPCManager.register(tempLoc....
"private static void prepareLevels(QueryDefinition query, TabularHierarchyHandle hierHandle, List metaList, String dimName) throws AdapterException {\n try {\n List levels = hierHandle.getContents(TabularHierarchyHandle.LEVELS_PROP);\n for (int j = 0; j < levels.size(); j++) {\n TabularLevel...
"public long decrementAndGet() {\n long value;\n return value;\n}\n"
"private static ConcurrentMap<String, ConcurrentMap<String, PluginType<?>>> decode(final ClassLoader classLoader) {\n Enumeration<URL> resources;\n try {\n resources = classLoader.getResources(PATH + FILENAME);\n } catch (final IOException ioe) {\n LOGGER.warn(\"String_Node_Str\", ioe);\n ...
"private NamedObj _createEntity(String className, String entityName, String source) throws Exception {\n if (_current != null && !(_current instanceof CompositeEntity)) {\n throw new XmlException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + _current + \"String_Node_Str\", _currentExternal...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = source.getSourceObject(game);\n if (controller != null && sourceObject != null) {\n if (controller.chooseUse(Outcome.Benefit, choiceText, source, game)) {\n ...
"public boolean next() throws IOException, InterruptedException {\n KeyValuePair<K, VP> pair = probePairSerialization.newInstance();\n while (currentProbePartitionReader.read(pair)) {\n K key = pair.getKey();\n if (hashMap.contains(key)) {\n currentKey = key;\n currentBuildValu...
"public boolean updatePowerState(long instanceId, long powerHostId, VirtualMachine.PowerState powerState) {\n boolean needToUpdate = false;\n TransactionLegacy txn = TransactionLegacy.currentTxn();\n txn.start();\n VMInstanceVO instance = findById(instanceId);\n if (instance != null) {\n Long save...
"private boolean testTotalUploadLimit() {\n int max = SettingsManager.instance().getMaxUploads();\n int current = uploadsInProgress();\n if (current >= max)\n return false;\n return true;\n}\n"
"public void run(DenizenNPC denizen, Location location, Boolean lookClose, Float checkYaw) {\n denizen.lookClose(lookClose);\n denizen.getHandle().yaw = location.getYaw();\n denizen.getHandle().pitch = location.getPitch();\n denizen.getHandle().as = denizen.getHandle().yaw;\n}\n"
"public void run() {\n PsiManager manager = PsiManager.getInstance(myProject);\n DaemonCodeAnalyzer codeAnalyzer = DaemonCodeAnalyzer.getInstance(myProject);\n synchronized (fileToEventClasses) {\n for (VirtualFile virtualFile : fileToEventClasses.keySet()) {\n PsiFile psiFile = manager.findF...
"private void fontAddChars(FontTag ft, Set<Integer> selChars, String selFont) {\n FontTag f = (FontTag) oldValue;\n String oldchars = f.getCharacters(swf.tags);\n for (int ic : selChars) {\n char c = (char) ic;\n if (oldchars.indexOf((int) c) == -1) {\n Font font = new Font(selFont, f....
"protected MapperProcess internalMapPE(final File archiveIndexDir) throws IOException {\n final String bowtiePath;\n synchronized (SYNC) {\n bowtiePath = install(getMapperExecutableName());\n }\n final String index = getIndexArgument(archiveIndexDir);\n return new MapperProcess(this, true) {\n ...
"public void testGerritConnection(String sshKeyFile, String strHost, int port, String strUsername, String strProject, String phrase) throws RepositoryException {\n SshConnection sshConnection = null;\n File f = prepareSSHKeyFile(sshKeyFile, key);\n if (!f.isFile()) {\n throw new RepositoryException(text...
"protected boolean handleAsExtension(Packet packet) {\n final Iterator i = packet.getExtensions();\n for (; i.hasNext(); ) {\n Object extension = i.next();\n if (extension instanceof XHTMLExtension) {\n XHTMLExtension xhtmlExtension = (XHTMLExtension) extension;\n deliverEvent(...
"public SqlStatement[] generateStatements(Database database) throws UnsupportedChangeException {\n List<SqlStatement> sql = new ArrayList<SqlStatement>();\n for (ColumnConfig aColumn : columns) {\n String schemaName = getSchemaName() == null ? database.getDefaultSchemaName() : getSchemaName();\n if ...
"public static List<Variable> listLocalVariables(StackFrame stackFrame) throws AbsentInformationException {\n List<Variable> res = new ArrayList<>();\n try {\n for (LocalVariable localVariable : stackFrame.visibleVariables()) {\n Variable var = new Variable(localVariable.name(), stackFrame.getVa...
"public void createCube(String name, String[][] factTableJointColumnNames, String[][] DimJointColumnNames, IDimension[] dimensions, IDatasetIterator factTable, String[] measureColumns, long cacheSize, StopSign stopSign, boolean suppressInvalidFacttableRow) throws IOException, BirtException {\n if (dimensions.length ...
"public void setHintText(String text) {\n if (text == null) {\n if (hintText == null) {\n return;\n }\n return;\n }\n if (hintText == null) {\n hintText = text;\n hintFocusHandler = addFocusHandler(new FocusHandler() {\n public void onFocus(FocusEvent ev...
"private void updateList(final Map<URI, URI> changeTable, final Map<URI, URI> conflictTable) {\n final URI xmlDitalist = job.tempDir.toURI().resolve(\"String_Node_Str\");\n final Set<URI> hrefTopics = new HashSet<>();\n for (final FileInfo f : job.getFileInfo()) {\n if (f.isNonConrefTarget) {\n ...
"public void run() {\n try {\n WorkbenchClipboard.getWorkbenchClipboard().conceptsReset();\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n if (selection.getFirstElement() instanceof XSDElementDeclaration) {\n for (Iterator<XSDElementDec...
"private JExpression checkAndReplaceJso(JExpression arg, JType targetType) {\n JType argType = arg.getType();\n if (argType == targetType) {\n return arg;\n }\n if (!(targetType instanceof JReferenceType)) {\n return arg;\n }\n if (!program.isJavaScriptObject(argType)) {\n return ...
"private static String resizeFile(final int size, final String fileName) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(fileName);\n Dimension imageSize = getImageSize(fileInputStream);\n if (size == ((int) imageSize.getWidth()) && size == ((int) imageSize.getHeight())) {\n ...
"public void onChunkUnload() {\n super.onChunkUnload();\n if (node != null) {\n node.remove();\n}\n"
"private void handleNext(DirectionQuery query, Set<ContentKey> keys) {\n try {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n fileSpokeStore.getNext(query.getChannelName(), query.getStartKey().toUrl(), query.getCount(), baos);\n String keyString = baos.toString();\n Content...
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n UnmarshalRecord childRecord = unmarshalRecord.getChildRecord();\n if (null != childRecord) {\n if (!xmlAnyCollectionMapping.usesXMLRoot()) {\n Object objectValue = childRecord.getCurrentObject();\n ...
"private Task fromPlan(EntityManager em, CreateTaskArg createArg, RouterObjectRef objectId) throws NotFoundException, CommsRouterException {\n Router router = getRouter(em, objectId);\n Task task = new Task(objectId);\n task.setRouter(router);\n task.setRequirements(app.entityMapper.attributes.fromDto(creat...
"protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException {\n if (node.getTag(AqpAdsabsAnalyzerProcessor.ANALYZED) != null) {\n List<List<List<QueryNode>>> queryStructure;\n AqpRequestParams req = getRequest();\n SolrParams params = req.getParams();\n final String unfi...
"private static Byte parseData(String dropString) {\n String[] dropParts = dropString.split(\"String_Node_Str\");\n String[] itemParts = dropParts[0].split(\"String_Node_Str\");\n String[] itemSubParts = itemParts[0].split(\"String_Node_Str\");\n return itemSubParts.length > 1 && !itemSubParts[1].isEmpty() ...
"public boolean performFinish() {\n try {\n IndicatorParameters parameters = indicator.getParameters();\n if (parameters == null) {\n isDirty = true;\n parameters = IndicatorsFactory.eINSTANCE.createIndicatorParameters();\n indicator.setParameters(parameters);\n ...
"public void commandAction(Command command, Displayable displayable) {\n if (command == _cmdExit) {\n try {\n thread.interrupt();\n } catch (Exception e) {\n }\n _midlet.showMainForm();\n }\n}\n"
"private Ep createParamByType(Element element) throws XMLException {\n String att_name, att_var;\n NCLAttributes att = NCLAttributes.DEFAULT;\n att_name = NCLElementAttributes.NAME.toString();\n if ((att_var = element.getAttribute(att_name)).isEmpty())\n throw new NCLParsingException(\"String_Node_St...
"public void testExpression6() {\n String expression = oldExpressions[6];\n try {\n List list = extractColumnExpression(new ScriptExpression(expression));\n assertTrue(list.size() == 1);\n } catch (BirtException e) {\n fail(\"String_Node_Str\");\n }\n}\n"
"public void performRequest(Request req) {\n if (RequestConstants.REQ_DIRECT_EDIT.equals(req.getType())) {\n DirectEditRequest drequest = (DirectEditRequest) req;\n Point figureLocation = drequest.getLocation();\n IFigure findFigureAt = getFigure().findFigureAt(figureLocation.x, figureLocation.y...
"public void onHeldItemChanged(OnChangedComponent event, EntityRef character, CharacterHeldItemComponent heldItemComponent, CharacterComponent characterComponents) {\n if (localPlayer.getCharacterEntity().equals(character)) {\n EntityRef newItem = heldItemComponent.selectedItem;\n linkHeldItemLocationF...
"private Class<T> defineNewClass(ClassVisitor modifier) {\n ClassLoader sourceClassLoader = sourceClass.getClassLoader();\n final ClassLoader parentLoader = sourceClassLoader != null ? sourceClassLoader : ImplementationClass.class.getClassLoader();\n final byte[] modifiedClassfile = modifier.toByteArray();\n ...
"public boolean locationIsAtHome(final Player player, boolean coop, Location loc) {\n Set<Location> islandTestLocations = new HashSet<Location>();\n if (plugin.getPlayers().hasIsland(player.getUniqueId())) {\n islandTestLocations.add(plugin.getPlayers().getIslandLocation(player.getUniqueId()));\n if...
"public static boolean deployKubernetesGroup(KubernetesGroup kubernetesGroupBean) throws RestAPIException {\n AutoscalerServiceClient autoscalerServiceClient = getAutoscalerServiceClient();\n if (autoscalerServiceClient != null) {\n org.apache.stratos.common.kubernetes.KubernetesGroup kubernetesGroup = Poj...
"protected void getQueryString1(StringBuilder sbSelectFrom) {\n sbSelectFrom.append(\"String_Node_Str\");\n sbSelectFrom.append(entityType.getName()).append(' ');\n sbSelectFrom.append(entityAlias);\n sbSelectFrom.append(\"String_Node_Str\");\n for (Map.Entry<String, String> attributeEntry : setAttribute...
"public boolean generate(World world, Random rand, int x, int y, int z) {\n final int veinSize = genVeinSize;\n final int branchSize = 1 + (veinSize / 30);\n final int subBranchSize = 1 + (branchSize / 5);\n boolean r = false;\n for (int blocksVein = 0; blocksVein <= veinSize; ) {\n int posX = x;\...
"public void applyChanges(Revision rev, String path, boolean isNew, boolean isWritten, long oldWriteCount, long writeCountInc, ArrayList<String> added, ArrayList<String> removed) {\n if (!isWritten) {\n if (writeCountInc == 0) {\n writeCountIncrements.remove(path);\n } else {\n wr...
"private Collection<Filter> createDeleteFilter(Operations operations, Operator operator) {\n Collection<Filter> filters = new LinkedList<>();\n ColumnName name = new ColumnName(CATALOG, TABLE, COLUMN_PK);\n ColumnSelector primaryKey = new ColumnSelector(name);\n Selector rightTerm = new StringSelector(\"Str...
"public Class getWSObjectClass() {\n return WSStoredProcedure.class;\n}\n"
"private RankingFuture validatePeople(NotificationRecord record) {\n float affinity = NONE;\n Bundle extras = record.getNotification().extras;\n if (extras == null) {\n return null;\n }\n final String[] people = getExtraPeople(extras);\n if (people == null || people.length == 0) {\n retu...
"private static CategoryDataset createPatternMatchDataset(List<IndicatorUnit> indicatorUnitList, boolean isCreate) {\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n if (isCreate) {\n int i = 0;\n for (IndicatorUnit unit : indicatorUnitList) {\n IndicatorCommonUtil.compo...
"public Source resolveSchema(String systemId) {\n if (!addSchemaToList(systemId)) {\n return null;\n }\n try {\n InputSource inputSource = schemaResolver.resolveEntity(publicId, systemId);\n if (inputSource != null) {\n return new SAXSource(inputSource);\n }\n } catch ...
"public boolean redo() {\n if (redoMoves.size() > 0) {\n if (players.other(myTurn()).type().equals(\"String_Node_Str\")) {\n move(redoMoves.removeLast(), myTurn());\n move(redoMoves.removeLast(), myTurn());\n display();\n System.out.println(\"String_Node_Str\" + myT...
"public boolean cast(SpellAbility ability, Game game, boolean noMana) {\n if (!ability.getSpellAbilityType().equals(SpellAbilityType.BASE)) {\n ability = chooseSpellAbilityForCast(ability, game, noMana);\n }\n Card card = game.getCard(ability.getSourceId());\n if (card != null) {\n if (!game.r...
"public static void initializeLookAndFeel() {\n synchronized (lookAndFeelInitializedLock) {\n if (lookAndFeelInitialized) {\n return;\n }\n }\n LookAndFeel selectedLaf = null;\n if (Platform.isWindows()) {\n selectedLaf = new WindowsLookAndFeel();\n } else if (System.getPr...
"public Object answer(InvocationOnMock invocation) throws Throwable {\n ItemStatus status = (ItemStatus) invocation.getArguments()[1];\n if (status.isNotLastItem()) {\n writer.write(\"String_Node_Str\");\n } else {\n writer.write(\"String_Node_Str\" + \"String_Node_Str\");\n }\n return null...
"public void addGesture(String entryName, Gesture gesture) {\n if (entryName == null || entryName.length() == 0) {\n return;\n }\n ArrayList<Gesture> gestures = mNamedGestures.get(entryName);\n if (gestures == null) {\n gestures = new ArrayList<Gesture>();\n mNamedGestures.put(entryName...
"void add(double confidence, boolean correct) {\n for (int i = 0; i < CONFIDENCE_THRESHOLDS.length; i++) {\n if (confidence >= CONFIDENCE_THRESHOLDS[i]) {\n falsePositive[i] += correct ? 0d : 1d;\n truePositive[i] += correct ? 1d : 0d;\n }\n }\n}\n"
"private void registerUser(final String username, final String email, String password) {\n if (!AppUtils.isNetworkConnected(this)) {\n showErrorDialog();\n } else {\n showProgressDialog();\n mAuthApi.getNonceId(\"String_Node_Str\", \"String_Node_Str\", new Callback<NonceIdResponse>() {\n\n ...
"private void openDatabase(AndroidDatabase db) {\n if (db.isEncrypted()) {\n try {\n db.setSecureSqLiteDatabase(net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(db.getPath(), db.getPassword(), null));\n } catch (UnsatisfiedLinkError e) {\n throw new IllegalStateException...
"public void setupProvisioning(Stack stack) {\n LOGGER.info(\"String_Node_Str\", ReactorConfig.PROVISION_SETUP_COMPLETE_EVENT, stack.getId());\n Credential credential = stack.getCredential();\n String emailAsFolder = stack.getUser().emailAsFolder();\n String filePath = AzureCertificateService.getUserJksFile...
"public void run() {\n while (true) {\n int newTopic;\n try {\n newTopic = newTopics.take();\n } catch (InterruptedException e) {\n continue;\n }\n String lastMod = null;\n Topic oldTopic = topics.get(newTopic);\n if (oldTopic != null) {\n ...
"public void run() {\n if (Policy.TRACING_ACTIONS) {\n System.out.println(\"String_Node_Str\" + getSourceViewer());\n }\n if (isEnabled()) {\n DataSetHandle handle = (DataSetHandle) getSelectedObjects().getFirstElement();\n try {\n DataSetUIUtil.updateColumnCacheAfterCleanRs(han...
"private Collection<AnnotationData> getAnnotationSet(final List<TagAndLength> pTags) {\n Collection<AnnotationData> ret = null;\n if (pTags != null) {\n Map<ITag, AnnotationData> data = AnnotationUtils.getInstance().getMap().get(getClass().getName());\n ret = new ArrayList<AnnotationData>(data.size(...
"private List<BoundaryPart> getUpperSameRightPoint(int index, BoundaryPart orig) {\n Point point = orig.getConstraint().getPointRight();\n List<BoundaryPart> ret = new ArrayList<BoundaryPart>();\n BoundaryPart bp;\n for (int i = index + 1; i < boundary.size(); i++) {\n bp = boundary.get(i);\n ...
"public void put(K key, V value) {\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n checkStatusStarted();\n if (value == null) {\n throw new NullPointerException(\"String_Node_Str\" + key);\n }\n lockManager.lock(key);\n try {\n RIEntry<K, V> entry = new RIEntry<K, V>(key, v...
"private boolean acquireWorkspaceLock(Shell shell) {\n Location instanceLoc = Platform.getInstanceLocation();\n ConnectionUserPerReader perReader = ConnectionUserPerReader.getInstance();\n if (perReader.isHaveUserPer() && instanceLoc != null && !instanceLoc.isSet()) {\n try {\n String lastWor...
"public Collection<IClass> getAllImplementedInterfaces() {\n HashSet<IClass> result = HashSetFactory.make(2);\n IClass klass = loader.lookupClass(TypeReference.array_interfaces[0]);\n if (klass != null) {\n result.add(klass);\n }\n klass = loader.lookupClass(TypeReference.array_interfaces[1]);\n ...
"public GadgetToken saveToken(BasicOAuthStoreTokenIndex tokenKey, TokenInfo tokenInfo) {\n Map<String, GadgetTokenEntry> tokens = getGadgetTokens();\n GadgetTokenEntry entry = null;\n for (GadgetTokenEntry item : tokens.values()) {\n BasicOAuthStoreTokenIndex key = item.getKey();\n if (tokenKey.e...
"public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n Collection collection = submission.getCollection();\n String actionURL = IdentifierService.getURL(collection).toString() + \"String_Node_Str\" + knot.getId() + \"String_Node_Str\";\n ...
"protected void okPressed() {\n try {\n String familyValue = getRawFontFamily();\n String sizeValue = getRawFontSize();\n int colorValue = DEUtil.getRGBInt(color.getRGB());\n int backColorValue = DEUtil.getRGBInt(backColor.getRGB());\n String italicValue = italic.getSelection() ? D...
"private static Object readValue(final byte tagType, final ByteBuffer byteBuffer) {\n switch(tagType) {\n case 'Z':\n return readNullTerminatedString(byteBuffer);\n case 'A':\n return (char) byteBuffer.get();\n case 'I':\n return byteBuffer.getInt() & 0xffffffffL...
"private String getPathName() {\n AbstractMember localMember = (AbstractMember) hazelcastInstance.getCluster().getLocalMember();\n Address address = localMember.getAddress();\n String addressString = address.getHost().replace(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\" + address.getPort();\...
"public CourseRatingDao getCourseRatingDao() {\n if (courseRatingDao == null) {\n courseRatingDao = new SQLCourseRatingDao(new SimpleRemoveBehavior<CourseRatingEntity>());\n }\n return courseRatingDao;\n}\n"
"private void resetLastTrack() {\n String lastTrack = tp.playlist.preferences.get(Keys.LAST_TRACK_PLAYED);\n Track restoredTrack = null;\n if (!Shorty.isVoid(lastTrack)) {\n restoredTrack = tp.playlist.getTrack(lastTrack);\n }\n if (restoredTrack == null) {\n tp.player.change(tp.playlist.ge...
"public void send(byte[] message) {\n if (connected) {\n if (sendQueue.remainingCapacity() == 0)\n Thread.yield();\n while (!sendQueue.offer(message)) {\n byte[] discarded = sendQueue.poll();\n logger.warn(\"String_Node_Str\", discarded, message);\n }\n } catc...
"protected void updateHiveServerAndMakeSelection(int distributionIndex, int hiveVersionIndex) {\n boolean isSupportHiveServer2 = HiveConnUtils.isSupportHiveServer2(distributionIndex, hiveVersionIndex);\n if (isSupportHiveServer2) {\n DatabaseConnection conn = getConnection();\n String[] hiveServerDi...
"public java.util.Date convertStringToDate(String sourceString, QName schemaType) {\n XMLGregorianCalendar xmlGregorianCalender = convertStringToXMLGregorianCalendar(sourceString, schemaType);\n Calendar cal = toCalendar(xmlGregorianCalender);\n Date returnDate = cal.getTime();\n return returnDate;\n}\n"
"public int getTag() {\n return 2009120234;\n}\n"