content
stringlengths
40
137k
"public void addTitleElement(GLElement element, boolean left) {\n int index = left ? titleBar.indexOf(titleBar.captionElement) : titleBar.indexOf(titleBar.captionElement) + 1;\n titleBar.add(index, element);\n}\n"
"private static JsonElement request(String host, String login, String password, String path, String requestBody, boolean post) {\n HttpMethod method = null;\n try {\n method = doREST(host, login, password, path, requestBody, post);\n String resp = method.getResponseBodyAsString();\n if (metho...
"public float getFloat(EDataRepresentation storageKind, int iIndex) {\n if (!hashCContainers.containsKey(storageKind))\n throw new IllegalArgumentException(\"String_Node_Str\" + storageKind + \"String_Node_Str\");\n if (!(hashCContainers.get(storageKind) instanceof FloatCContainer))\n throw new Ille...
"public int lowX() {\n return lowX;\n}\n"
"private void exportClass(Node scriptNode, Node classNode) {\n Node classMembers = classNode.getLastChild();\n for (Node maybeMemberFunctionDef : classMembers.children()) {\n if (maybeMemberFunctionDef.isMemberFunctionDef()) {\n String methodName = maybeMemberFunctionDef.getString();\n ...
"public MultiDatabasePropertyEntry getClone(String identifierValue) {\n return new MultiDatabasePropertyEntry(this.getDefiningClass(), this.getEntrySetName(), this.getField(), identifierField, this.getDescription(), this.getDefaultValue(), this.getTypeParser(), this.getReadOnly(), this.getDisplayName(), this.getWidg...
"public static void setup() throws Exception {\n String basedir = System.getProperty(\"String_Node_Str\");\n if (basedir == null) {\n basedir = new File(\"String_Node_Str\").getCanonicalPath();\n }\n File f = new File(basedir + \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", f.getP...
"public ICategoryProvider getCategoryProvider(Object input) {\n CategoryProvider provider = new CategoryProvider(new String[] { CATEGORY_KEY_GENERAL, CATEGORY_KEY_PADDING, CATEGORY_KEY_FONT, CATEGORY_KEY_BORDERS, CATEGORY_KEY_USERPROPERTIES, CATEGORY_KEY_NAMEDEXPRESSIONS, CATEGORY_KEY_ADVANCEPROPERTY }, new String[]...
"private boolean allDependentTerminated(List<ApplicationChildContext> terminationList) {\n boolean allDependentTerminated = false;\n for (ApplicationChildContext context1 : terminationList) {\n if (this.inactiveInstancesMap.containsKey(context1.getId()) && this.inactiveInstancesMap.get(context1.getId()).co...
"protected List<DomainRouterVO> startRouters(final Map<Param, Object> params, final List<DomainRouterVO> routers) throws StorageUnavailableException, InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException {\n List<DomainRouterVO> runningRouters = new ArrayList<DomainRouterVO>();\n ...
"public String toString() {\n if (stringName != null) {\n return stringName;\n }\n StringBuilder sb = new StringBuilder(128);\n sb.append(\"String_Node_Str\");\n sb.append(Integer.toHexString(System.identityHashCode(this)));\n sb.append(\"String_Node_Str\");\n sb.append(binding.client.userId...
"private int findRoleAfterMe(String name) {\n for (RoleAgent ba : roleList) {\n String after = ba.getAfter();\n if (after != \"String_Node_Str\" && after.equals(name)) {\n index = Math.min(index, roleList.indexOf(ba));\n }\n }\n return -1;\n}\n"
"private SimpleTimerTask waitForTask() throws InterruptedException {\n synchronized (_queue) {\n if (_queue.isEmpty()) {\n _queue.wait();\n return null;\n } else {\n SimpleTimerTask task = (SimpleTimerTask) _queue.getMax();\n long time = task.timeUntilExecuti...
"public void startRequest(MRCRequest rq) {\n try {\n final accessRequest rqArgs = (accessRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n final Path p = ne...
"public int extractFluid(IFluidHandler fluidHandler, ForgeDirection side) {\n int amount = liquidToExtract > transport.flowRate ? transport.flowRate : liquidToExtract;\n FluidTankInfo tankInfo = transport.getTankInfo(side)[0];\n FluidStack extracted;\n if (tankInfo.fluid != null && tankInfo.fluid.getFluid()...
"<T> Type<T> buildType(Class<T> attribType) {\n PersistentAttributeType attributeType = attribute != null ? MetaModelBuilder.getPersistentAttributeType(attribute) : persistentAttribType;\n switch(attributeType) {\n case BASIC:\n return new DefaultBasicType<T>(attribType);\n case EMBEDDED:...
"protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) {\n AntialiasingManager.activateAntialiasing(g);\n super.paintBackground(g, menuItem, bgColor);\n g = g.create();\n try {\n internalPaintBackground(g, menuItem, bgColor);\n } finally {\n g.dispose();\n }\n}\n"...
"public static int weekDayMapping(WeekDay from, WeekDay to, int weekday) {\n return to.map(from, weekday);\n}\n"
"private Object[] getParameters(String operation, Object[] args) {\n Object[] orgParams = (args[2] == null) ? null : (Object[]) args[2];\n if (orgParams == null) {\n return null;\n }\n String[] hiddenParams = pluginConfig.getClientHiddenParams();\n if (hiddenParams == null || hiddenParams.length =...
"public void checkFailedLogins() {\n UserTO userTO = UserTestITCase.getUniqueSampleTO(\"String_Node_Str\");\n MembershipTO membershipTO = new MembershipTO();\n membershipTO.setRoleId(7L);\n AttributeTO testAttributeTO = new AttributeTO();\n testAttributeTO.setSchema(\"String_Node_Str\");\n testAttribu...
"public Map nextTurn() {\n if (!isGameOver()) {\n boolean isStalemateForPlayer = isStalemateTurnForPlayer(PLAYER_ID);\n boolean isStalemateForOpponent = isStalemateTurnForPlayer(OPPONENT_ID);\n if (isStalemateForPlayer && isStalemateForOpponent) {\n _isStalemate = true;\n t...
"public static <T, C> ObjectArrayTypeInfo<T, C> getInfoFor(Type type) {\n if (type instanceof Class<?> && ((Class<?>) type).isArray() && BasicTypeInfo.getInfoFor((Class<C>) type) == null) {\n Class<C> array = (Class<C>) type;\n return new ObjectArrayTypeInfo<T, C>(type, array.getComponentType());\n ...
"private PdbRdfModel extractDataForPdbAndChain(PdbRdfModel model, String pdbID, String chainID) {\n PdbRdfModel construct = new PdbRdfModel();\n String queryString = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_St...
"public BufferedImage next() {\n if (!hasNext()) {\n return null;\n }\n return frameToImageGet(ftim, fframes.get(pos++), 0, null, 0, ftim.displayRect, new Matrix(), new ColorTransform(), fbackgroundColor, false).getBufferedImage();\n}\n"
"private List<JSONObject> grabModels(List<JSONObject> categories) {\n List<JSONObject> models = new ArrayList<JSONObject>();\n log.info(\"String_Node_Str\");\n for (JSONObject category : categories) {\n try {\n long categoryId = category.getLong(JSONKeys.ID.getKey());\n int modelsN...
"public long getExpiresInMillis() {\n int maxAge = getCacheControlMaxAge();\n if (maxAge != -1) {\n return System.currentTimeMillis() + maxAge * 1000;\n } else {\n String expire = getExpiresHeader();\n if (!StringUtils.isEmpty(expire)) {\n return HttpUtils.parseGmtTime(getExpire...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.trip_info);\n if (!initFromIntent(getIntent())) {\n Log.e(TAG, \"String_Node_Str\");\n finish();\n return;\n }\n boolean newTrip = !initFromDB();\n initForm(newTrip);...
"public void shortcutReceived(GlobalShortcutEvent evt) {\n AWTKeyStroke keystroke = evt.getKeyStroke();\n GlobalKeybindingSet set = keybindingsService.getGlobalBindings();\n for (Map.Entry<String, List<AWTKeyStroke>> entry : set.getBindings().entrySet()) {\n for (AWTKeyStroke ks : entry.getValue()) {\n ...
"public void getSubRecordsBetween(MultiResultSet results, Comparable from, Comparable to) {\n takeReadLock();\n try {\n Comparable paramFrom = from;\n Comparable paramTo = to;\n int trend = paramFrom.compareTo(paramTo);\n if (trend == 0) {\n ConcurrentMap<Data, QueryableEntr...
"protected boolean isAtSpawn(Location loc) {\n if (spawnLoc == null) {\n return false;\n }\n if (loc.getWorld().equals(bedrock.getWorld())) {\n if ((Math.abs(loc.getBlockX() - bedrock.getBlockX()) <= range) && (Math.abs(loc.getBlockZ() - bedrock.getBlockZ()) <= range)) {\n return true;...
"public static void dbg(Object o) {\n StackTraceElement[] trace = Thread.currentThread().getStackTrace();\n System.out.println(trace[2] + \"String_Node_Str\" + o);\n}\n"
"protected void postImportCondition(Condition condition, CourseEnvironmentMapper envMapper) {\n if (condition == null)\n return;\n boolean easy = StringHelper.containsNonWhitespace(condition.getConditionFromEasyModeConfiguration());\n if (easy) {\n List<Long> groupKeys = condition.getEasyModeGrou...
"private OrdinalSet<Statement> computeResult(Statement s, Map<PointerKey, MutableIntSet> pointerKeyMod, BitVectorSolver<IBasicBlock> solver, OrdinalSetMapping<Statement> domain, CGNode node, ExtendedHeapModel h, PointerAnalysis pa, Map<CGNode, OrdinalSet<PointerKey>> mod, ExpandedControlFlowGraph cfg, Map<SSAInstructio...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_home);\n ArrayList<String> menuEntries = new ArrayList<String>();\n for (int id : mSlideMenuTitleIds) {\n menuEntries.add(getString(id));\n }\n mDrawerLayout = (DrawerL...
"public AnnotationVisitor visitAnnotation(String type, boolean visible) {\n String packName = ClassFormat.extendedToPackage(type);\n if (\"String_Node_Str\".equals(packName)) {\n this.method.addModifier(Modifiers.INLINE);\n this.inline = true;\n }\n if (this.method.addRawAnnotation(packName)) ...
"private void getDsMinMax() {\n double calcMin = Double.MAX_VALUE;\n double calcMax = Double.MIN_VALUE;\n if (!getFirstSeries().isSetRadarAutoScale() || getFirstSeries().isRadarAutoScale()) {\n autoscale = true;\n } else {\n double taxisMin = getFirstSeries().getWebLabelMin();\n double ...
"public int exec(Shell shell) throws Exception {\n XIOEnvironment io = shell.getEnv().saveIO();\n try {\n applyRedirect(shell);\n return shell.exec(mCommand);\n } finally {\n shell.getEnv().restoreIO(io);\n }\n}\n"
"private void indexFile(File file, boolean commit) {\n RepresentationFilePreservationObject premisFile = null;\n try {\n premisFile = PremisUtils.getPremisFile(model.getStorage(), file.getAipId(), file.getRepresentationId(), file.getId() + \"String_Node_Str\");\n } catch (PremisMetadataException | RODAE...
"public ReplSetHeartbeatReplyBuilder setElectionTime(Optional<BsonTimestamp> electionTime) {\n this.electionTime = electionTime.orElse(null);\n return this;\n}\n"
"public void detectNewRow(String path) {\n if (SaxParserUtil.isSamePath(rootPath, path)) {\n populateNestedXMLDataMappingColumns(path);\n if (!isCurrentRowValid())\n return;\n cachedResultSetRowNo++;\n currentAvailableMaxLineNo++;\n if (cachedResultSetRowNo > Constants.C...
"private void adjustCropToStackBounds(WindowState w, Rect clipRect, boolean isFreeformResizing) {\n final AppWindowToken appToken = w.mAppToken;\n final Task task = w.getTask();\n if (task == null || !appToken.mCropWindowsToStack) {\n return;\n }\n}\n"
"public void executeProcess() throws InvocationTargetException, InterruptedException {\n Display display2 = null;\n if (parentShell != null) {\n display2 = parentShell.getDisplay();\n }\n final Display display = display2;\n final InvocationTargetException[] iteHolder = new InvocationTargetExceptio...
"public ResultSet getProcedureColumns(String schemaPattern, String procedureNamePattern, String columnNamePattern) {\n if (connection == null) {\n try {\n reconnect();\n } catch (Exception e) {\n logger.log(Level.WARNING, e.getMessage(), e);\n return null;\n }\n ...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_start);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.nav_drawer_layout);\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n ArrayList<ListItem> navDrawer = new Ar...
"public double getHigh() {\n if (isEmpty()) {\n return Double.POSITIVE_INFINITY;\n }\n return root.left.max;\n}\n"
"private void enablePlugins() {\n for (Plugin plugin : pluginManager.getPlugins()) {\n pluginManager.enablePlugin(plugin);\n }\n}\n"
"protected boolean calculateEnabled() {\n RepositoryNode rootNode = ProjectRepositoryNode.getInstance().getRootRepositoryNode(ERepositoryObjectType.METADATA);\n if (getSelectedObjects().isEmpty() || rootNode == null) {\n return false;\n } else {\n Object s = getSelectedObjects().get(0);\n ...
"private void encodeMatrix() {\n if (matrixParams == null || matrixParams.isEmpty())\n return;\n for (Map.Entry<String, List<String>> e : matrixParams.entrySet()) {\n String name = encode(e.getKey(), UriComponent.Type.MATRIX_PARAM);\n for (String value : e.getValue()) {\n path.appe...
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getType() == EventType.ZONE_CHANGE && event.getTargetId().equals(source.getSourceId())) {\n ZoneChangeEvent zEvent = (ZoneChangeEvent) event;\n if (zEvent.getFromZone() == Zone.BATTLEFIELD && zEvent.getToZone() == Zone.GR...
"public void dispatchEvent(final DistributedObjectEventPacket eventPacket, Object ignore) {\n final String serviceName = eventPacket.getServiceName();\n if (eventPacket.getEventType() == CREATED) {\n try {\n final ProxyRegistry registry = ConcurrencyUtil.getOrPutIfAbsent(registries, serviceName,...
"public OlapElement lookupChild(SchemaReader schemaReader, String name, int matchType) {\n Member[] levelMembers = schemaReader.getLevelMembers(this, true);\n if (levelMembers.length > 0) {\n Member parent = levelMembers[0].getParentMember();\n return RolapUtil.findBestMemberMatch(levelMembers, (Rol...
"public CommandLineRunner demo(UserService userService) {\n return args -> {\n Localization local = new Localization(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 7);\n User jesuspa98 = new User(0.0, 0, \"String_Node_Str\", \"String_Node_Str\", new ArrayList<>(), 0, \"String_Node_Str\"...
"public boolean configure(final String name, final Map<String, Object> xmlParams) throws ConfigurationException {\n _serverId = _msServer.getId();\n Map<String, String> params = new HashMap<String, String>();\n params = _configDao.getConfiguration(Long.toHexString(_serverId), xmlParams);\n String value = pa...
"public IValue resolve2(IContext context) {\n if (this.replacement != null) {\n return this.replacement;\n }\n if (this.arguments.isEmpty()) {\n IField field = IAccess.resolveField(context, this.instance, this.name);\n if (field != null) {\n FieldAccess access = new FieldAccess(...
"private void actionMoveUp() {\n if (null == targetRow) {\n return;\n }\n final int index = table.indexOf(targetRow);\n if (index <= 0) {\n return;\n }\n base.setRedraw(false);\n final TableItem o1 = table.getItems()[index - 1];\n final TableItem o2 = table.getItems()[index];\n ...
"IResultMetaData refreshMetaData(DataSetHandle dataSetHandle, boolean holdEvent) throws BirtException {\n IResultMetaData rsMeta = null;\n try {\n rsMeta = this.getDataSetMetaData(dataSetHandle, false);\n } catch (BirtException e1) {\n if (holdEvent || !dataSetHandle.canEdit()) {\n Com...
"public void cycleAndErrorAndReady() throws Exception {\n final SkyKey otherTop = GraphTester.toSkyKey(\"String_Node_Str\");\n final SkyKey errorKey = GraphTester.toSkyKey(\"String_Node_Str\");\n final CountDownLatch valuesReady = new CountDownLatch(3);\n final CountDownLatch errorThrown = new CountDownLatc...
"public Argument getReqArgByName(String name) {\n for (Argument a : getRequest()) {\n if (a.getName().equals(name)) {\n return a;\n }\n }\n return null;\n}\n"
"public void testStaticProperties_GRE364() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n RemoteServiceEndpointDescriptionImpl other = (RemoteServiceEndpointDescriptionImpl) obj;\n return this.serviceId.getLocation...
"private void setScore(int score) {\n mScore = score;\n if (mScoreField != null) {\n mScoreField.setText(DEBUG_IDDQD ? \"String_Node_Str\" : String.valueOf(score));\n }\n}\n"
"public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack stack) {\n super.onBlockPlacedBy(world, x, y, z, player, stack);\n int heading = MathHelper.floor_double(player.rotationYaw * 4.0F / 360.0F + 0.5D) & 3;\n TileEntityPresent te = (TileEntityPresent) world.getTileEn...
"public void buildEnvVars(AbstractBuild<?, ?> build, Map<String, String> env) {\n super.buildEnvVars(build, env);\n TagAction tagAction = build.getAction(TagAction.class);\n if (tagAction != null) {\n if (tagAction.getBuildChange() != null) {\n String change = getChangeNumber(tagAction);\n ...
"protected String _nextQuotedString() throws IOException, JsonParseException {\n char[] outBuf = _textBuffer.emptyAndGetCurrentSegment();\n int outPtr = 0;\n final char[] inputBuffer = _inputBuffer;\n main_loop: while (true) {\n int ptr = _inputPtr;\n if (ptr >= _inputEnd) {\n if (!...
"private void addEventsToGraph(Document networkDoc) {\n if (networkDoc.getRootElement().getName().equals(\"String_Node_Str\")) {\n int edgeCounter = fullGraph.getEdgeCount();\n Element networkElem = networkDoc.getRootElement();\n Element logElem = networkElem.getChild(\"String_Node_Str\");\n ...
"public Section parseView(Element view) {\n Element viewpoint = GeneratorUtils.findStereotypedRelationship(view, conforms);\n if (viewpoint == null)\n viewpoint = GeneratorUtils.findStereotypedRelationship(view, sysml14conforms);\n Section viewSection = new Section();\n viewSection.setView(true);\n ...
"private Iterator responsesToQueryReplies(Response[] responses, QueryRequest queryRequest, final int REPLY_LIMIT) {\n List queryReplies = new LinkedList();\n byte[] guid = queryRequest.getGUID();\n byte ttl = (byte) (queryRequest.getHops() + 1);\n UploadManager um = RouterService.getUploadManager();\n lo...
"private void createTabs() {\n if (Utils.hasApi(11)) {\n createActionBarTabs();\n } else {\n createOldTabs();\n }\n}\n"
"public void actionPerformed(ActionEvent e) {\n String[] joinOptions;\n String subject = null;\n JButton sourceButton = (JButton) e.getSource();\n if (sourceButton.equals(addButton)) {\n String chatRoomName = editor.getText();\n if (StringUtils.isNullOrEmpty(chatRoomName))\n return;...
"public String[] getSubjectFacets() {\n List<FacetInterface> facets = new ArrayList<>();\n if (getOwningComponent().getSubject() != null)\n for (Node facet : getOwningComponent().getSubject().getChildren()) {\n if (!(facet instanceof FacetInterface))\n continue;\n if (i...
"private static URI walkthrough(URI base, URI target) {\n String[] basePath = base.getPath().split(\"String_Node_Str\");\n String[] targetPath = target.getPath().split(\"String_Node_Str\");\n int common = findCommons(basePath, targetPath);\n System.out.printf(\"String_Node_Str\", base.getPath());\n Syste...
"private void initialize(RAInputStream rowExprsIs, RAInputStream rowLenIs, int rowCount, DataSetResultSet dataSetResultSet) throws DataException {\n try {\n IOUtil.readInt(rowExprsIs);\n int exprCount = IOUtil.readInt(rowExprsIs);\n this.exprKeys = new ArrayList();\n this.dataSetExprKeys ...
"private void sendMessage(String ircCatHost, int ircCatPort, String message, String channel) throws IOException {\n Socket socket = new Socket(ircCatHost, ircCatPort);\n Closer closer = Closer.create();\n try {\n Writer out = closer.register(new OutputStreamWriter(socket.getOutputStream(), Charset.forNa...
"public void onBrowserEvent(Context context, Element parent, Object value, NativeEvent event, ValueUpdater<Object> valueUpdater) {\n String type = event.getType();\n boolean enterPressed = (BrowserEvents.KEYDOWN.equals(type) && event.getKeyCode() == KeyCodes.KEY_ENTER);\n if (BrowserEvents.CLICK.equals(type) |...
"public Model run(final int nStartingCells, final int nDivisions, final int nFramesPerDivision) {\n final Spot tmp = model.getGraph().vertexRef();\n for (int ic = 0; ic < nStartingCells; ic++) {\n final double angle = 2d * ic * Math.PI / N_STARTING_CELLS;\n final double vx = VELOCITY * Math.cos(angl...
"public void addGridBars() {\n if (Double.isNaN(barsGrid.getWidth()) || Double.isNaN(barsGrid.getHeight()) || RandomBars.barsArray == null) {\n return;\n }\n barsGrid.getChildren().removeAll(barsGrid.getChildren());\n IntStream.range(0, 10).forEachOrdered(index -> {\n Bar bar = RandomBars.bars...
"public boolean hasValidSelection() {\n IStructuredSelection selection = (IStructuredSelection) getTreeViewer().getSelection();\n for (Object selectedObj : selection.toArray()) {\n if (m_circDependList.contains(selectedObj) || selectedObj instanceof ICategoryPO || selectedObj instanceof IReusedProjectPO) {...
"public Collection<String> getSupportedCommands() {\n Set<String> commands = new HashSet<>(supportedCommands);\n commands.add(Command.TYPE_CUSTOM);\n return commands;\n}\n"
"public void loopFreemailBoxes() {\n if (requestReceiver.fmBoxLooper == null) {\n requestReceiver.fmBoxLooper = new FreemailBoxLooper();\n requestReceiver.looperThread = new Thread(fmBoxLooper);\n requestReceiver.looperThread.start();\n }\n}\n"
"protected void openForWrite() throws IOException {\n if (_data_output_stream != null || _reader != null || _index_output_stream != null || _index_input_stream != null) {\n throw new IOException(\"String_Node_Str\" + _file_path.getName() + \"String_Node_Str\");\n }\n _index_file = _file_path;\n FileS...
"public void testStartWith() throws Exception {\n FilterDescriptor nameFilter = new FilterDescriptor(FilterCondition.AND, \"String_Node_Str\", FilterOperator.START_WITH, \"String_Node_Str\");\n Map<String, Object> queryParams = MybatisQueryProvider.getWhereQueryParamMap(ProductView.class, \"String_Node_Str\", nam...
"protected void mergeAmendmentContainerDTOs(AmendmentContainerDTO... toMerge) {\n if (toMerge != null) {\n final ClientFactory clientFactory = documentController.getClientFactory();\n for (final AmendmentContainerDTO amendmentContainerDTO : toMerge) {\n final AmendmentController amendmentCon...
"public void remove(Entity<?> en) {\n if (en == null || en.getType() == null)\n return;\n synchronized (map) {\n this.map.remove(en.getType());\n }\n}\n"
"protected Client instantiateClient(String persistenceUnit) {\n return new CoreTestClient(indexManager, persistenceUnit);\n}\n"
"public void saveDataWithException(long globalId, long shardingId) {\n TestGlobalEntity testGlobalEntity = new TestGlobalEntity();\n testGlobalEntity.setId((int) globalId);\n TestEntity testEntity = new TestEntity();\n testEntity.setId(shardingId);\n testEntity.setTestInt(10);\n storageClient.globalSa...
"private synchronized void sendCommands() {\n SendCommand sendCommand = commandQueue.poll();\n if (sendCommand != null) {\n CubeCommand cmd = getCommand(sendCommand);\n if (cmd != null) {\n if (sendCubeCommand(cmd)) {\n logger.debug(\"String_Node_Str\", sendCommand.getId(),...
"private DSSDocument extractStreamDocument(ZipEntry entry) {\n logger.debug(\"String_Node_Str\", entry.getSize());\n MimeType mimeTypeCode = MimeTypeUtil.mimeTypeOf(this.getDataFileMimeType(entry.getName()));\n if (this.storeDataFilesOnlyInMemory || entry.getSize() <= this.maxDataFileCachedInBytes) {\n ...
"public palocube getCube(String strCubeName) {\n for (palocube paloCube : paloCubes) {\n if (paloCube.getName().equals(strCubeName)) {\n return paloCube;\n }\n return null;\n}\n"
"public void addGLEventListener(GLEventListener listener) {\n canvas.addGLEventListener(listener);\n}\n"
"private CheckAndMutateBuilder getBuilder(byte[] row, byte[] family, byte[] qualifier, CompareOp op, byte[] value) throws Exception {\n CheckAndMutateBuilder builder = getDefaultTable().checkAndMutate(row, family).qualifier(qualifier);\n if (value == null && op != CompareOp.NOT_EQUAL) {\n return builder.if...
"public static boolean isDocument(String url) {\n if (url == null) {\n return false;\n }\n url = url.toLowerCase(Locale.ROOT);\n return url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\");\n}\n"
"private void ensureDebugTarget(VirtualMachine vm, ThreadReference thread, int depth) {\n if (debugTarget == null) {\n if (project == null) {\n String projectName = (String) options.get(Constants.PROJECT_NAME);\n if (StringUtils.isBlank(projectName)) {\n project = findJava...
"public void endDocument() throws SAXException {\n if (unmarshaller.getIDResolver() != null && parentRecord == null) {\n unmarshaller.getIDResolver().endDocument();\n }\n if (null != selfRecords) {\n for (int x = 0, selfRecordsSize = selfRecords.size(); x < selfRecordsSize; x++) {\n Un...
"private BlurIndex openIndex(String table, String shard, Directory dir) throws CorruptIndexException, IOException {\n ShardContext shardContext = ShardContext.create(_tableContext, shard);\n BlurIndexSimpleWriter index = new BlurIndexSimpleWriter(shardContext, dir, _mergeScheduler, _searchExecutor, _indexCloser, ...
"static <T extends SharedHashMap<Integer, CharSequence>> T newTcpSocketShmIntString(final byte identifier, final int serverPort, final InetSocketAddress... InetSocketAddress) throws IOException {\n final TcpReplication tcpReplication = new TcpReplication(serverPort, InetSocketAddress).heartBeatInterval(1000);\n r...
"public ATreeNode getSchemaTree(XSDSchema xsdSchema, ATreeNode selectedNode, boolean includeAttribute2) {\n List<ATreeNode> rootNodes = new ArrayList<ATreeNode>();\n prefixNumberGenerated = 1;\n List all = new ArrayList(xsdSchema.getElementDeclarations());\n try {\n for (Iterator i = all.iterator(); ...
"private static void getSamples() throws IOException {\n File f = new File(\"String_Node_Str\");\n for (File g : f.listFiles()) {\n sampleData.addAll(readFile(g.getCanonicalPath()));\n }\n}\n"
"public boolean eventPosted(EventObject event) {\n ElementSelectionEvent e = (ElementSelectionEvent) event;\n String text = _defText;\n ACSElement[] selected = e.getSelectedElements();\n if (selected != null && selected.length > 0) {\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i...
"public void actionPerformed(ActionEvent evt) {\n final JFileChooser fc = new JFileChooser();\n int returnVal = fc.showOpenDialog(null);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = fc.getSelectedFile();\n try {\n InputStreamProvider ip = new InputStreamProvider();\n...
"public IReportElement getReportElement(String name) {\n org.eclipse.birt.report.model.api.simpleapi.IReportElement tmpElement = ((org.eclipse.birt.report.model.api.simpleapi.IReportDesign) designElementImpl).getReportElement(name);\n IDesignElement retElement = ElementUtil.getElement(tmpElement);\n if (retEle...