content
stringlengths
40
137k
"public void resetBoardWithNewMoves(String[] moves) {\n Log.d(TAG, \"String_Node_Str\");\n for (String move : moves) {\n Log.d(TAG, \"String_Node_Str\" + move + \"String_Node_Str\");\n int row1 = move.charAt(1) - '0';\n int col1 = move.charAt(0) - '0';\n int row2 = move.charAt(3) - '0'...
"public void saveAnalysis() throws DataprofilerCoreException {\n Analysis ana = analysisItem.getAnalysis();\n for (Domain domain : ana.getParameters().getDataFilter()) {\n domain.setName(ana.getName());\n }\n IRepositoryViewObject reposObject = null;\n columnSetAnalysisHandler.clearAnalysis();\n ...
"URI assembleJAR(String name, File rootDirectory, List<File> classpaths, Map<String, File> metadatas) throws IOException {\n File archive = new File(System.getProperty(\"String_Node_Str\"), name + \"String_Node_Str\");\n archive.deleteOnExit();\n JarOutputStream jos = new JarOutputStream(new FileOutputStream(a...
"private static void depose() {\n if (count.get() == 0)\n try {\n trans.get().close();\n } catch (Throwable e) {\n throw Lang.wrapThrow(e);\n } finally {\n trans.set(null);\n }\n}\n"
"public void testSerialization() {\n LookupPaintScale g1 = new LookupPaintScale();\n LookupPaintScale g2 = null;\n try {\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n ObjectOutput out = new ObjectOutputStream(buffer);\n out.writeObject(g1);\n out.close();\n ...
"private boolean methodAcceptsAutoBeanAsFirstParam(JClassType beanType, JMethod method) {\n JParameter[] params = method.getParameters();\n if (params.length == 0) {\n return false;\n }\n JClassType paramAsClass = params[0].getType().isClassOrInterface();\n if (paramAsClass == null) {\n ret...
"public Map<BlockPos, NBTTagCompound> getOldTileEntities(Chunk chunk) {\n DataInputStream dis = null;\n Map<BlockPos, NBTTagCompound> returned = new HashMap<BlockPos, NBTTagCompound>();\n try {\n dis = RegionFileCache.getChunkInputStream(chunkSaveLocation, chunk.x, chunk.z);\n if (dis == null) {\...
"public Aggregates<A> vertical(Aggregates<? extends A> aggregates, Renderer rend) {\n Aggregates<Double> pixelEnergy = rend.transfer(aggregates, new Energy<>(delta));\n EdgeEnergy energy = new EdgeEnergy(pixelEnergy);\n Aggregates<Integer> matchings = matchings(pixelEnergy, energy);\n double[] seamEnergies ...
"public void perform(GraphRewrite event, EvaluationContext context, JavaTypeReferenceModel payload) {\n List<JavaClassModel> classes = payload.getFile().getJavaClasses();\n classes.forEach(classModel -> {\n GraphService<EjbSessionBeanModel> ejbSessionService = new GraphService<>(event.getGraphContext(), Ej...
"public void setType(DTO newType) {\n DTO oldType = getType();\n super.setType(newType);\n if (getOppositeOf() != null && !newType.eIsProxy() && (newType == null || getOppositeOf().getDto() == null || !getOppositeOf().getDto().isSubtypeOf(newType))) {\n setOppositeOf(null);\n }\n if (eNotification...
"private static Map createMap() {\n try {\n ois = new ObjectInputStream(new FileInputStream(URN_CACHE_FILE));\n return (Map) ois.readObject();\n } catch (Exception e) {\n return new HashMap();\n } finally {\n try {\n ois.close();\n } catch (IOException e) {\n ...
"public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {\n if (!world.isRemote) {\n if (world.getBlock(x, y, z) != null && world.getBlock(x, y, z) instanceof BlockCrop) {\n TileEntity te = world.getTileEnt...
"protected static String[] getParameterTypeNames(MethodPattern pattern, String[] parameterTypeSignatures, IType declaringType) {\n int n = parameterTypeSignatures.length;\n String[] typeNames = new String[n];\n if (declaringType != null)\n try {\n int candidates = 0;\n if (n > 0) {...
"public void setSyncProviderAutomatically(String account, String providerName, boolean sync) {\n synchronized (mAuthorities) {\n if (account != null) {\n AuthorityInfo authority = getAuthorityLocked(account, providerName, \"String_Node_Str\");\n if (authority != null) {\n ...
"public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n ChatMessage msg = chatHistoryAdapter.mCheckedItem;\n switch(item.getItemId()) {\n case R.id.action_edit:\n if (msg.getStatus() == ChatMessage.STATUS_SENDING) {\n chatManager.removeFromUnsent(msg);\n ...
"public void populateFromConfig(HierarchicalConfiguration config) {\n super.populateFromConfig(config);\n hostname = StringUtils.trimToEmpty(config.getString(REPOSITORY_GERRIT_REPOSITORY_HOSTNAME));\n username = config.getString(REPOSITORY_GERRIT_USERNAME);\n userEmail = config.getString(REPOSITORY_GERRIT_E...
"public boolean apply(Game game, Ability source) {\n StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(targetPointer.getFirst(game, source));\n if (stackAbility != null) {\n Player controller = game.getPlayer(source.getControllerId());\n Permanent sourcePermanent = game.getPe...
"public static String createBorderString(Object currentBorder) {\n String retval = null;\n if (currentBorder != null) {\n if (currentBorder instanceof CompoundBorder) {\n Border oborder = ((CompoundBorder) currentBorder).getOutsideBorder();\n Border iborder = ((CompoundBorder) current...
"private <T extends Item> Collection<T> executeQuery(final AttributeQuery query, final Class<T> itemClass) {\n final ItemConfiguration itemConfiguration = getItemConfiguration(itemClass);\n final String tableName = databaseSchemaHolder.schemaName() + \"String_Node_Str\" + itemConfiguration.tableName();\n final...
"public Object Get_by_or_fail(int key) {\n synchronized (tmp_key) {\n return hash.Get_by_or_fail(tmp_key.Val_(key));\n }\n}\n"
"public void testImportsForComplicatedTypes() {\n TypeElement list = typeElementOf(\"String_Node_Str\");\n TypeElement map = typeElementOf(\"String_Node_Str\");\n Set<TypeMirror> types = ImmutableSet.of(typeUtil.getPrimitiveType(TypeKind.INT), typeMirrorOf(\"String_Node_Str\"), typeUtil.getDeclaredType(list, t...
"public void checkAndRemoveHostFromTunnelNetwork(Network nw, Host host) {\n if (nw.getVpcId() != null && isVpcEnabledForDistributedRouter(nw.getVpcId())) {\n List<Long> vmIds = _ovsNetworkToplogyGuru.getActiveVmsInVpcOnHost(nw.getVpcId(), host.getId());\n if (vmIds != null && !vmIds.isEmpty()) {\n ...
"protected SendMessage getSendMessage(SupportedAppProtocolRes message, V2GMessages nextExpectedMessage, org.v2gclarity.risev2g.shared.v2gMessages.appProtocol.ResponseCodeType responseCode) {\n String messageName = message.getClass().getSimpleName();\n if (!responseCode.value().substring(0, 2).toUpperCase().equals...
"public void onRestoreInstanceState(Parcelable state) {\n if (state instanceof State) {\n State s = (State) state;\n super.onRestoreInstanceState(s.getSuperState());\n this.cursorFreq = s.cx;\n this.cursorDB = s.cy;\n this.xZoom = s.xZ;\n this.yZoom = s.yZ;\n this.xSh...
"public int compareTo(ForeignKey o) {\n int returnValue = 0;\n if (this.getForeignKeyTable() != null && o.getForeignKeyTable() != null) {\n returnValue = this.getForeignKeyTable().compareTo(o.getForeignKeyTable());\n }\n if (returnValue == 0 && this.getForeignKeyColumns() != null && o.getForeignKeyCo...
"protected void drawData() {\n BarData bd = (BarData) mCurrentData;\n ArrayList<BarDataSet> dataSets = (ArrayList<BarDataSet>) bd.getDataSets();\n int setCount = bd.getDataSetCount();\n for (int i = 0; i < setCount; i++) {\n BarDataSet dataSet = dataSets.get(i);\n boolean noStacks = dataSet.ge...
"public TileEntity createTileEntity(World world, int metadata) {\n if (metadata == 2) {\n return new FusionTileEntity();\n }\n if (metadata == 3) {\n return new FissionTileEntity();\n } else {\n return new TileEntityProxy();\n }\n}\n"
"private <S extends StatementBuilder<S>> S generateCase(boolean addPrimitive, State state, Case currentCase, S builder) {\n if (currentCase.isGoingUp()) {\n for (int i = currentCase.getStartLevel(); i <= currentCase.getDepth(); i++) {\n String field = state.fieldPath[i];\n int index = st...
"protected OEntity toOEntity(EdmEntitySet ees, Object obj, List<EntitySimpleProperty> expand) {\n EntityInfo<?, ?> ei = eis.get(ees.name);\n final List<OLink> links = new ArrayList<OLink>();\n final List<OProperty<?>> properties = new ArrayList<OProperty<?>>();\n Object keyValue = ei.properties.getPropertyV...
"public void setStatus(ApplicationStatus status, String instanceId) {\n ApplicationInstance applicationInstance = (ApplicationInstance) this.instanceIdToInstanceMap.get(instanceId);\n if (applicationInstance == null) {\n log.warn(\"String_Node_Str\" + instanceId + \"String_Node_Str\" + \"String_Node_Str\")...
"private void fireNotificationActionTypeEvent(String eventType, String sourceEventType, String sourceActionType, NotificationActionHandler actionHandler) {\n NotificationActionTypeEvent event = new NotificationActionTypeEvent(this, eventType, sourceEventType, sourceActionType, actionHandler);\n NotificationChange...
"public void fillTabList(ProxiedPlayer player, ITabList tabList) throws LayoutException {\n if (config.verticalMode) {\n tabList = tabList.flip();\n }\n if (config.autoShrinkTabList) {\n tabList.setShouldShrink(true);\n }\n List<Section> topSections = new ArrayList<>(top);\n List<Section...
"private void start() {\n JsonBimServerClientFactory factory = new JsonBimServerClientFactory(\"String_Node_Str\");\n try {\n BimServerClient client = factory.create(new UsernamePasswordAuthenticationInfo(\"String_Node_Str\", \"String_Node_Str\"));\n long poid = 2686977;\n long roid = 720899;...
"private String intToString(int val) {\n return Integer.toString(val);\n}\n"
"public void run() {\n while (isRunning) {\n dequeuedEvents.clear();\n long currentTime = System.currentTimeMillis();\n synchronized (queuedEventList) {\n for (MidiEventWithTiming event : queuedEventList) {\n if (event.timing <= currentTime) {\n deque...
"public void mouseUp(MouseEvent e) {\n Preprocess pp = new Preprocess(inputFiles, txtStopWords.getText(), txtOutput.getText(), txtSuffix.getText(), txtDelimiters.getText(), btnDoLowercase.getSelection(), btnStemming.getSelection(), cmbStemLang.getText());\n IEclipseContext iEclipseContext = context;\n ContextI...
"private void recalculateAggregation(List<IAggregationResultRow> aggregationRows) throws DataException, IOException {\n Set<Integer> duplicatedIndex = new HashSet<Integer>();\n for (int i = 0; i < aggregationRows.size(); i++) {\n this.calculator.start();\n List<Integer> positions = getRowsPositionIn...
"public ArrayList<String> getPfade() {\n ArrayList<String> pfade = new ArrayList<>();\n for (DatenAbo abo : this) {\n String s = abo.arr[DatenAbo.ABO_ZIELPFAD];\n if (!pfade.contains(s)) {\n pfade.add(abo.arr[DatenAbo.ABO_ZIELPFAD]);\n }\n }\n GermanStringSorter sorter = Germ...
"public void setCollection(boolean isCollection) {\n super.setCollection(isCollection);\n if (isCollection && jsonArrayBuilder == null) {\n jsonArrayBuilder = Json.createArrayBuilder();\n }\n}\n"
"public String invoke(final String value) throws Exception {\n final AttributesImpl atts = new AttributesImpl();\n XMLUtils.addOrSetAttribute(atts, attrName, value);\n return ((URI) method.invoke(writer, ATTRIBUTE_NAME_CONREF, atts)).toString();\n}\n"
"private void buildDisplayList(final GL gl, int iGLDisplayListIndex) {\n gl.glNewList(iGLDisplayListIndex, GL.GL_COMPILE);\n if (tree == null) {\n if (bRenderGeneTree == true) {\n if (set.getClusteredTreeGenes() != null) {\n tree = set.getClusteredTreeGenes();\n cur...
"private int strToKey(String skey) {\n if (skey.startsWith(\"String_Node_Str\")) {\n if (skey.equals(\"String_Node_Str\")) {\n return 256;\n } else if (skey == \"String_Node_Str\") {\n return 257;\n } else if (skey == \"String_Node_Str\") {\n return 258;\n ...
"protected boolean visit(IResourceDelta delta, Collection<Runnable> runnables) {\n VisitResourceHelper visitHelper = new VisitResourceHelper(delta);\n boolean merged = ProjectRepositoryNode.getInstance().getMergeRefProject();\n Set<RepositoryNode> topLevelNodes = getTopLevelNodes();\n for (final RepositoryN...
"public void blockPlaced(Chunk chunk, BlockPosition pos) {\n if (_parent.getBlock(pos.x, pos.y, pos.z) == DIRT_TYPE) {\n addActiveBlock(pos);\n }\n for (int i = 0; i < 6; i++) {\n BlockPosition nBp = new BlockPosition(pos.x + (int) NEIGHBORS6[i].x, pos.y + (int) NEIGHBORS6[i].y, pos.z + (int) NEI...
"public void onStartUpdates(View view) {\n if (!servicesConnected()) {\n return;\n }\n mRunning = true;\n mRequestType = ActivityUtils.REQUEST_TYPE.ADD;\n mActivityDetectionRequester.requestUpdates(getIntervalMillis());\n ((TextView) view).setText(R.string.stop_updates);\n}\n"
"public void updateMarker(MarkerInfo markerInfo, boolean isDraggable) {\n final Coord2D coord = markerInfo.getPosition();\n if (coord == null) {\n return;\n }\n final LatLng position = DroneHelper.CoordToLatLang(coord);\n Marker marker = mMarkers.get(markerInfo);\n if (marker == null) {\n ...
"public void pluginInstalled(long pluginBundleVersionId, PluginContext pluginContext, SPluginInformation sPluginInformation) throws BimserverDatabaseException {\n try (DatabaseSession session = bimDatabase.createSession()) {\n Plugin plugin = pluginContext.getPlugin();\n Condition pluginCondition = new...
"public void doInTransactionWithoutResult(TransactionStatus status) {\n for (Long acctId : acctIds) {\n IAMAccountPolicyMapVO acctMap = _aclAccountPolicyMapDao.findByAccountAndPolicy(acctId, policyId);\n if (acctMap != null) {\n _aclAccountPolicyMapDao.remove(acctMap.getId());\n }\n ...
"private void processFlowMod(OFMessage msg, FloodlightContext cntx) {\n List<OFFlowMod> flows;\n OFFlowMod tmpFlow = (OFFlowMod) msg;\n if (tmpFlow.getCommand() == OFFlowMod.OFPFC_DELETE && tmpFlow.getMatch().equals(new OFMatch())) {\n this.removeFlows();\n return;\n }\n if (this.mySlicer.g...
"static Version determineVersionFromVersionString(String versionString) throws ParseException {\n if (versionString.startsWith(HBASE_94_VERSION)) {\n return Version.HBASE_94;\n }\n if (versionString.startsWith(HBASE_96_VERSION)) {\n return Version.HBASE_96;\n }\n if (versionString.startsWit...
"public void onError(int correlationId, Result resultCode, String info) {\n if (listener != null) {\n listener.onError(correlationId, resultCode, info);\n }\n}\n"
"public Result<Boolean> setAlias(String addr, String password, String aliasName) {\n if (!Address.validAddress(addr)) {\n Result.getFailed(AccountErrorCode.PARAMETER_ERROR);\n }\n Account account = accountService.getAccount(addr).getData();\n if (null == account) {\n account = accountService.g...
"public void entityDamage(EntityDamageEvent event) {\n Map<String, dObject> context = new HashMap<String, dObject>();\n boolean isFatal = false;\n dEntity entity = new dEntity(event.getEntity());\n String entityType = entity.getEntityType().name();\n String cause = event.getCause().name();\n String de...
"public void createControl(Composite parent) {\n cmpContent = new Composite(parent, SWT.NONE);\n {\n GridLayout glContent = new GridLayout(2, false);\n cmpContent.setLayout(glContent);\n GridData gd = new GridData(GridData.FILL_BOTH);\n cmpContent.setLayoutData(gd);\n }\n Composi...
"public void toString(String prefix, StringBuilder buffer) {\n if (this.valueCount == 0) {\n buffer.append(Formatting.Expression.emptyExpression);\n } else {\n buffer.append('\\n').append(prefix).append('{').append('\\n');\n String prefix1 = prefix + Formatting.Method.indent;\n IValue ...
"public BaseURLProvider get(String realm) {\n String realmDN = DNMapper.orgNameToDN(realm);\n BaseURLProvider cached = providers.get(realmDN);\n if (cached != null) {\n return cached;\n }\n return create(request, realmDN);\n}\n"
"private void createNewContactForRawContact(SQLiteDatabase db, long rawContactId) {\n mSelectionArgs1[0] = String.valueOf(rawContactId);\n computeAggregateData(db, mRawContactsQueryByRawContactId, mSelectionArgs1, mContactInsert);\n long contactId = mContactInsert.executeInsert();\n setContactIdAndMarkAggre...
"public void testBisulfite() throws IOException {\n File input = new File(TEST_DATA_DIR, \"String_Node_Str\");\n File reference = new File(TEST_DATA_DIR, \"String_Node_Str\");\n File outfile = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n outfile.deleteOnExit();\n int result = new Coll...
"protected UGIWithPrincipal createUGI(ImpersonationRequest impersonationRequest) throws IOException {\n String configuredPrincipalShortName = new KerberosName(impersonationRequest.getPrincipal()).getShortName();\n if (UserGroupInformation.getCurrentUser().getShortUserName().equals(configuredPrincipalShortName)) {...
"public Set<CustomMapping> getCustomMappings() {\n if (customMappings == null) {\n if (nodeService.exists(CONFIG_NODE_REF)) {\n customMappings = loadConfig();\n } else {\n customMappings = new HashSet<CustomMapping>();\n Map<String, Set<QName>> currentMapping = extracte...
"void processMetaData(File file) {\n metaData = CommandUtil.getPreSelectedServices(file.getAbsolutePath());\n database = \"String_Node_Str\";\n eeTemplate = \"String_Node_Str\";\n loadBalancer = \"String_Node_Str\";\n databasesMetaData.clear();\n eeTemplatesMetaData.clear();\n loadBalancersMetaData...
"public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n list.smoothScrollToPositionFromTop(list.getSelectedItemPosition(), 0);\n}\n"
"private void readValue() {\n if (ignoreTrailingWhitespace) {\n while (length-- > 0 && ch != '\\0') {\n output.appender.appendIgnoringWhitespaceAndPadding(ch);\n ch = input.nextChar();\n }\n } else {\n while (length-- > 0) {\n output.appender.appendIgnoringPad...
"private void finishUpdate(NettyResponseFuture<?> future, ChannelHandlerContext ctx) throws IOException {\n closeChannel(ctx);\n markAsDoneAndCacheConnection(future, ctx.getChannel());\n}\n"
"public synchronized void propertyChange(PropertyChangeEvent evt) {\n Object evtSrc = evt.getSource();\n Vector nodeSources = nodeSupport.getParameterBlock().getSources();\n String propName = evt.getPropertyName().toLowerCase(Locale.ENGLISH);\n if (theImage != null && ((evt instanceof PropertyChangeEventJAI...
"protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n if (Intent.ACTION_MAIN.equals(intent.getAction())) {\n closeSystemDialogs();\n mIsNewIntent = true;\n if (!mWorkspace.isDefaultScreenShowing()) {\n mWorkspace.moveToDefaultScreen(alreadyOnHome && !allAppsVi...
"public TopologyLock getTopologyLockForCluster(String clusterId, boolean forceCreationIfNotFound) {\n TopologyLock topologyLock = clusterIdToTopologyLockMap.get(clusterId);\n if (topologyLock == null && forceCreationIfNotFound) {\n topologyLock = new TopologyLock();\n clusterIdToTopologyLockMap.put(...
"public String executeRequest(Channel responseChannel, String clientId, ConcurrentHashMap<String, String> clientState, String request) throws Exception {\n StringBuffer rsb = new StringBuffer();\n String cmd;\n String[] args;\n if (request.indexOf(GraphServerProtocol.SPACE) != -1) {\n cmd = request.s...
"public void testIsContainsTableConnectionSchemaString() {\n String schemaName = \"String_Node_Str\";\n String tablePattern = null;\n boolean containsTable = false;\n Connection dataProvider = null;\n DatabaseMetaData metaData = null;\n java.sql.Connection sqlConn = null;\n Schema schema = null;\n ...
"public boolean removeMonitoreNotifier(MonitorNotifier notifier) {\n return removeMonitorNotifier(notifier);\n}\n"
"public void run() {\n final Kryo k = kryo.get();\n k.reset();\n final RPCEnvelope envelope = k.readObject(input, RPCEnvelope.class);\n final RPCMessage msg = envelope.getRPCMessage();\n if (fragmentationID != msg.getMessageID()) {\n Log.error(\"String_Node_Str\");\n return;\n }\n if ...
"private void createMenus() {\n addSpacer(5);\n Label label = new Label(Messages.getString(\"String_Node_Str\"));\n label.setStyleName(\"String_Node_Str\");\n add(label);\n add(GLUE);\n Image runImage = new Image(MantleImages.images.run());\n Image runDisabledImage = new Image(MantleImages.images.r...
"public static List<String> getHiveResources(String serviceName, String serviceType, Map<String, String> configs, ResourceLookupContext context) throws Exception {\n String userInput = context.getUserInput();\n String resource = context.getResourceName();\n Map<String, List<String>> resourceMap = context.getRe...
"public void addRecipe(Block previousTier) {\n ShapedOreRecipe recipe = null;\n if (blockLevel == ToolHelper.LEVEL_STONE) {\n recipe = new ShapedOreRecipe(new ItemStack(this), new Object[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 's', Blocks.STONE, 'c', previousTier, 'p', Items.STON...
"public void buildArticleDb(ArticleDao ad) throws IOException, SQLException {\n long time = 0, start, stop;\n RandomHelper rh = new RandomHelper();\n for (int i = 0; i < numArticles; i++) {\n Article a = new Article(i, rh.string(titleLength), rh.ns(), rh.type(), rh.string(textMinLength, textMaxLength));...
"public void handlePremium(DownloadLink downloadLink, Account account) throws Exception {\n requestFileInformation(downloadLink);\n login(account);\n br.getPage(\"String_Node_Str\");\n br.setFollowRedirects(false);\n URLConnectionAdapter con = br.openGetConnection(downloadLink.getDownloadURL());\n br....
"private static final void processItems(Desktop desktop, Map<String, Object> params, Map<String, String> attrs) throws IOException {\n String uuid = attrs.get(\"String_Node_Str\");\n List<Media> meds = (List<Media>) desktop.getAttribute(uuid);\n if (meds == null) {\n meds = new LinkedList<Media>();\n ...
"private void prepLayer(LayerSpecT layer) {\n if (!PlowUtils.isValid(layer.getServ())) {\n logger.info(\"String_Node_Str\", layer.name, Defaults.DEFAULT_SERVICE);\n layer.setServ(Defaults.DEFAULT_SERVICE);\n }\n ServiceFull service = serviceDao.getServiceFull(layer.getServ());\n if (service !=...
"private static boolean in(Object[] resultObj) throws DataException {\n Object target = resultObj[0];\n for (int i = 1; i < resultObj.length; i++) {\n if (resultObj[i] instanceof Object[]) {\n Object[] flatternObj = (Object[]) resultObj[i];\n if (in(target, flatternObj))\n ...
"public void visitInvoke(SSAInvokeInstruction instruction) {\n TypeReference type = instruction.getDeclaredResultType();\n if (type.isReferenceType()) {\n IClass klass = cha.lookupClass(type);\n if (klass == null) {\n result = new DeclaredTypeOperator(BOTTOM);\n } else {\n ...
"private Object initialize(ThriftRow tr, EntityMetadata m, Object entity) throws InstantiationException, IllegalAccessException {\n if (entity == null) {\n entity = m.getEntityClazz().newInstance();\n if (id != null) {\n PropertyAccessorHelper.setId(entity, m, id);\n }\n }\n ret...
"private Graph<DrawnNeuron, DrawnConnection> buildGraph(NEATGenome genome) {\n int inputCount = 1;\n int outputCount = 1;\n int hiddenCount = 1;\n int biasCount = 1;\n List<DrawnNeuron> neurons = new ArrayList<DrawnNeuron>();\n Graph<DrawnNeuron, DrawnConnection> result = new SparseMultigraph<DrawnNeu...
"public void testRead() throws IOException {\n InputStream inputXLS = new BufferedInputStream(getClass().getResourceAsStream(departmentDataXLS));\n POIFSFileSystem fsInput = new POIFSFileSystem(inputXLS);\n HSSFWorkbook hssfInputWorkbook = new HSSFWorkbook(fsInput);\n HSSFSheet sheet = hssfInputWorkbook.get...
"public Set<Integer> keySet() {\n HashSet<Integer> ret = new HashSet<Integer>();\n ret.addAll(super.keySet());\n ret.addAll(buffer.keySet());\n return ret;\n}\n"
"public static void run(InputStream is, boolean isZip) throws Exception {\n init(is, isZip);\n instCount = 0;\n maxInstructions = Long.parseLong(Settings.get(Settings.CORE_MAX_INSTRUCTIONS));\n if (Settings.isSet(Settings.SAVE_PATH)) {\n InputStream saveStream = Util.getStreamFromUrl(Settings.get(Set...
"protected <T> ICompletableFuture<T> invoke(ClientMessage req, Data keyData, boolean completionOperation) {\n Integer completionId = null;\n if (completionOperation) {\n completionId = registerCompletionLatch(1);\n }\n try {\n int partitionId = clientContext.getPartitionService().getPartitionI...
"public void NestedAggregateWithScrambleTableHavingCommonChildrenTest() throws VerdictDBException {\n String sql = \"String_Node_Str\";\n NonValidatingSQLParser sqlToRelation = new NonValidatingSQLParser();\n SelectQuery selectQuery = (SelectQuery) sqlToRelation.toRelation(sql);\n QueryExecutionPlan queryEx...
"public void createSaleOrder(ActionRequest request, ActionResponse response) throws AxelorException {\n BusinessFolder businessFolder = this.find(Long.parseLong(request.getContext().get(\"String_Node_Str\").toString()));\n SaleOrder saleOrder = null;\n if (businessFolder.getTemplateSaleOrder() == null) {\n ...
"protected String getData(Model model) {\n if (model == null || model.getInputConfig() == null || model.getInputConfig().getInput() == null) {\n return \"String_Node_Str\";\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\");\n builder.append(\"String_Node_Str\");\n ...
"private void updateLayout() {\n if (!TextUtils.isEmpty(text)) {\n if (update) {\n int layoutWidth = width - getPaddingLeft() - getPaddingRight();\n if (layoutWidth > 0) {\n FastTextViewItem item = new FastTextViewItem(text, paint, layoutWidth);\n StaticLayo...
"public boolean isShared() {\n return this.isShared;\n}\n"
"public RepeatStatus executeStep(ChunkContext chunkContext, JobExecutionStatusHolder jobExecutionStatusHolder) throws Exception {\n String clusterName = getJobParameters(chunkContext).getString(JobConstants.CLUSTER_NAME_JOB_PARAM);\n List<BaseNode> addedNodes = getFromJobExecutionContext(chunkContext, JobConstant...
"public org.hl7.fhir.dstu2.model.Observation.ObservationComponentComponent convertObservationComponentComponent(org.hl7.fhir.dstu3.model.Observation.ObservationComponentComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Observation.Observatio...
"public boolean destroyGLES(EGLSurface surface, EGLContext context) {\n EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);\n if (surface != null) {\n EGL14.eglDestroySurface(mEGLDisplay, surface);\n }\n if (context != null) {\n EGL14.eglDestroy...
"public void afterCommit() {\n testList.remove(afterCommitOuter);\n}\n"
"private void updateWallpaperLocked(int displayId) {\n mService.getDisplayContentLocked(displayId).resetAnimationBackgroundAnimator();\n final WindowList windows = mService.getWindowListLocked(displayId);\n WindowState detachedWallpaper = null;\n for (int i = windows.size() - 1; i >= 0; i--) {\n fina...
"public Query getSparqlQuery(TestCase testCase) {\n Query query = QueryFactory.create(PrefixNSService.getSparqlPrefixDecl() + \"String_Node_Str\" + testCase.getSparqlWhere());\n if (!query.hasHaving()) {\n return query;\n }\n query = QueryFactory.create(PrefixNSService.getSparqlPrefixDecl() + \"Strin...
"public static Instruction assignOutputFile(Block block, List<Statement> instBuffer, boolean storeOutputMapping, Var file, Var fileVal) {\n Instruction store;\n Arg storeFilename;\n if (storeOutputMapping) {\n Var isMapped = block.declareUnmapped(Types.V_BOOL, block.uniqueVarName(Var.OPT_VAR_PREFIX), Al...
"private RepositoryNode getTestCaseParent(List<IRepositoryNode> rootNodes, String originalID) {\n for (IRepositoryNode node : rootNodes) {\n if (node.getType() == ENodeType.REPOSITORY_ELEMENT) {\n if (node.getId().equals(originalID)) {\n return (RepositoryNode) node;\n }\n...
"private void doWait() {\n if (!requestedWaitInfo.waiting) {\n inputReady = false;\n return;\n }\n synchronized (this) {\n waitInfo.set(requestedWaitInfo);\n }\n final long start = System.currentTimeMillis();\n final BlockingQueue<Runnable> commands = agent.getCommandQueue();\n ...