content
stringlengths
40
137k
"public Iterable<Relationship> getRelationships(RelationshipType type, Direction dir) {\n boolean checkCow = false;\n if (cowTxId == nodeManager.getTransaction()) {\n checkCow = true;\n }\n ArrayMap<String, ArrayIntSet> mapToCheck = null;\n if (cowRelationshipMap != null && cowTxId == nodeManager....
"public static void writeIntArray(int[] array, ByteBuffer out) {\n if (array == null) {\n writeVInt(-1, out);\n return;\n }\n writeVInt(array.length, out);\n for (int i = 0; i < array.length; ++i) {\n writeVInt(array[i], out);\n }\n}\n"
"void write(String filePath) throws XLWrapMapException {\n FileOutputStream fileOut;\n try {\n fileOut = new FileOutputStream(filePath);\n } catch (IOException ex) {\n throw new XLWrapMapException(\"String_Node_Str\" + filePath, ex);\n }\n try {\n poiWorkbook.write(fileOut);\n } c...
"protected void closeComplex() throws IOException {\n writer.write(Helper.cr());\n for (int x = 0; x < numberOfTabs; x++) {\n writeValue(tab(), false);\n }\n writer.write('}');\n}\n"
"protected void configure() {\n bind(ConnectionManager.class).to(TestConnectionManager.class);\n bind(QRPUpdater.class).to(TestQRPUpdater.class);\n}\n"
"public boolean doAction(ProgressHandler handler) {\n handler.setProgress(\"String_Node_Str\" + container.m.getFullName(container.file.getName()) + \"String_Node_Str\" + container.m.description + \"String_Node_Str\");\n if (container.getType() == Container.Type.ZIP) {\n if (format == FormatOptions.ZIP) {\n...
"public static TestProcess launchProcess(String optionsAsString, Class<?> mainClass, String[] arguments) {\n String FS = File.separator;\n String jvm = System.getProperty(\"String_Node_Str\") + FS + \"String_Node_Str\" + FS + \"String_Node_Str\";\n String cp = System.getProperty(\"String_Node_Str\");\n Stri...
"public void applyTransitionIndexToSymbolMapReaders(long pTransitionIndex) {\n final int columnCount = Unsafe.getUnsafe().getInt(pTransitionIndex + 4);\n final long index = pTransitionIndex + 8;\n final long stateAddress = index + columnCount * 8;\n if (columnCount > this.columnCount) {\n symbolMapRe...
"public void loadResultSet(ResultSet resultSet) throws SQLException {\n ResultSetMetaData resultSetMetaData = resultSet.getMetaData();\n for (int i = 1; i <= resultSetMetaData.getColumnCount(); i++) {\n String columnName = resultSetMetaData.getColumnLabel(i);\n Object o = resultSet.getObject(columnN...
"public void changeInput(String name, int index) {\n stopWorker();\n processedInputImage = false;\n String videoName = inputRefs.get(index).getPath();\n String path = videoName.substring(0, videoName.lastIndexOf('/'));\n ConfigThreshold configThreshold = ConfigThreshold.local(ThresholdType.LOCAL_SQUARE, ...
"public MetaField processEmbedded(DboTableMeta t, Field field) {\n NoSqlEmbedded embedded = field.getAnnotation(NoSqlEmbedded.class);\n Class<?> type = field.getType();\n Class<?> valType = null;\n if (type.equals(List.class) || type.equals(Set.class)) {\n ParameterizedType genType = (ParameterizedTy...
"protected void paintColorScale(GlimpseContext context) {\n if (colorTexture != null) {\n GlimpseBounds bounds = getBounds(context);\n GL3 gl = context.getGL().getGL3();\n int height = bounds.getHeight();\n int width = bounds.getWidth();\n float x1 = getColorBarMinX(width);\n ...
"public String getAsPropertyValue(UIComponent component) {\n Object value = getAttributeValue(component);\n if (null == value) {\n if (null != component.getAttributes().get(\"String_Node_Str\") || ((UICommand) component).getActionListeners().length > 0) {\n return Helper.quote(\"String_Node_Str\...
"public void onRemove0(K key, V value, boolean replicationEven) {\n if (subscriptions.hasSubscribers())\n subscriptions.notifyEvent(RemovedEvent.of(assetFullName, key, value, replicationEven));\n}\n"
"private String getStringConnection() {\n String s = null;\n String versionStr = dbVersionCombo.getText();\n if (isContextMode()) {\n s = DBConnectionContextUtils.getUrlConnectionString(connectionItem, true);\n } else {\n if (EDatabaseTypeName.HIVE.getDisplayName().equals(dbTypeCombo.getText()...
"private void sendGlobalDatabaseSkinToClient(SkinRequestMessage requestMessage) {\n Skin skin = cacheGlobal.get(requestMessage, true);\n if (skin != null) {\n sendSkinToClient(skin, requestMessage);\n } else {\n synchronized (messageWaitQueueLock) {\n messageWaitQueue.add(requestMessag...
"public static DataSet dataSetFromFile(String path) {\n File sdcard = Environment.getExternalStorageDirectory();\n File file = new File(sdcard, path);\n ArrayList<Entry> entries = new ArrayList<Entry>();\n String label = \"String_Node_Str\";\n try {\n BufferedReader br = new BufferedReader(new Fil...
"void initRemoveDependencies() {\n initSegment();\n initLocks();\n updateLockIfNeeded();\n}\n"
"private void save_download_manager(FileDownloader fd) {\n int obj_id = fd.get_obj_id();\n FileDownloader download_store = get_download_store(obj_id);\n if (download_store == null) {\n Log.i(\"String_Node_Str\", \"String_Node_Str\");\n download_store_list.add(fd);\n } else {\n download_...
"public boolean allowsCountDistinct() {\n return true;\n}\n"
"private CounterMetric makeCounter(final String counterName) {\n final CounterMetric counter = Metrics.newCounter(BackgroundDBChunkWriter.class, counterName);\n backgroundWriteCounters.put(counterName, counter);\n return counter;\n}\n"
"public String buildProcedureCallString(StoredProcedureCall call, AbstractSession session) {\n StringWriter writer = new StringWriter();\n writer.write(call.getCallHeader(this));\n writer.write(call.getProcedureName());\n if (requiresProcedureCallBrackets()) {\n writer.write(\"String_Node_Str\");\n ...
"public void testSetValuePredicate() {\n FormParseInit fpi = new FormParseInit(\"String_Node_Str\");\n FormEntryController fec = initFormEntry(fpi);\n boolean testPassed = false;\n do {\n if (fec.getModel().getEvent() != FormEntryController.EVENT_QUESTION) {\n continue;\n }\n ...
"public String getInnerHTML() {\n final Node clonedNode = getElement().cloneNode(true);\n NodeUtil.walk(clonedNode, new NodeUtil.NodeVisitor() {\n public void visit(final Node node) {\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element el = node.cast();\n if ...
"public static void profileForFoliageShader() {\n World world = Minecraft.getMinecraft().world;\n Entity entityIn = Minecraft.getMinecraft().player;\n BlockPos pos = entityIn.getPosition();\n boolean add = true;\n boolean trim = true;\n int radialRange = FoliageRenderer.radialRange;\n int xzRange =...
"public void removeAllListeners() {\n listeners.removeAll();\n}\n"
"protected boolean isCompatibleCategoryMethod(MethodNode method, ClassNode firstArgumentType) {\n if (method.isStatic()) {\n Parameter[] paramters = method.getParameters();\n if (paramters != null && paramters.length > 0) {\n ClassNode parameterType = paramters[0].getType();\n if ...
"public void setChatSession(ChatSession chatSession) {\n this.chatSession = chatSession;\n if (chatSession instanceof MetaContactChatSession) {\n if (subjectPanel != null) {\n this.remove(subjectPanel);\n this.revalidate();\n this.repaint();\n }\n if (topSplit...
"public void start() throws Exception {\n Dictionary modProperties = getCommonProperties();\n modProperties.put(\"String_Node_Str\", suspended ? \"String_Node_Str\" : \"String_Node_Str\");\n moduleRef = context.registerService(IModuleControl.class.getName(), this, modProperties);\n registerService(IModuleLE...
"public void update(boolean updateDate) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n Utils utils = Utils.getInstance(context);\n utils.changeAppLanguage(context);\n if (firstTime) {\n utils.loadLanguageResource();\n firstTime = false;\n }\n Calendar calendar = utils.makeCalenda...
"void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {\n PermissionContainer container = stack.peek();\n Block block = new Block(attributes.getValue(\"String_Node_Str\"));\n block.place = new Permission(attributes.getValue(\"String_Node_Str\"), attributes.getValue(\"String...
"public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face) {\n TileEntityDrawers tile = getTileEntity(world, pos);\n if (tile != null && tile.getEffectiveMaterialSide().isEmpty())\n return false;\n return super.doesSideBlockRendering(state, world, pos, f...
"public Iterator<DRow> getRowsAllColumns(Tenant tenant, String storeName, Collection<String> rowKeys) {\n checkState();\n String keyspace = storeToCQLName(tenant.getKeyspace());\n String tableName = storeToCQLName(storeName);\n return new CQLRowIterator(executeQuery(Query.SELECT_ROW_SET_ALL_COLUMNS, keyspac...
"public static QueryException expressionDoesNotSupportPartialAttributeReading(Expression expression) {\n Object[] args = { expression };\n QueryException queryException = new QueryException(ExceptionMessageGenerator.buildMessage(QueryException.class, EXPRESSION_DOES_NOT_SUPPORT_PARTIAL_ATTRIBUTE_READING, args));\...
"public void onClick(View v) {\n BalancingRobotFullSizeActivity activity = (BalancingRobotFullSizeActivity) getActivity();\n if (activity == null || activity.mChatService == null) {\n if (D)\n Log.e(TAG, \"String_Node_Str\");\n return;\n }\n if (activity.mChatService.getState() == B...
"public Condition isNull() {\n mOperation = String.format(\"String_Node_Str\", Operation.IS_NULL);\n return this;\n}\n"
"public long savePost(Context ctx, Post post, String blogID) {\n long returnValue = -1;\n if (post != null) {\n db = ctx.openOrCreateDatabase(DATABASE_NAME, 0, null);\n ContentValues values = new ContentValues();\n values.put(\"String_Node_Str\", blogID);\n values.put(\"String_Node_Str...
"public static final int[][] bitwiseXor(final int[][] matrix1, final int[][] matrix2) {\n int rows = _rows(matrix1);\n int columns = _columns(matrix1);\n _checkSameDimension(\"String_Node_Str\", matrix1, matrix2);\n int[][] returnValue = new int[rows][columns];\n for (int i = 0; i < rows; i++) {\n ...
"private JavascriptContext createJsContext(ScriptContext context) {\n ScriptContext parent = context.getParent();\n Scriptable parentJsScope = global;\n if (parent != null) {\n JavascriptContext parentJsContext = (JavascriptContext) parent.getScriptContext(JavascriptEngineFactory.SCRIPT_JAVASCRIPT);\n ...
"void log(final Object obj) {\n Level level = Level.FINEST;\n if (debug) {\n level = Level.INFO;\n }\n}\n"
"private void upgradeFilesetTable(TableInfo tableInfo) throws Exception {\n String dsName = tableInfo.getParameters().get(Constants.Explore.CDAP_NAME);\n dsName = dsName.substring(\"String_Node_Str\".length(), dsName.length());\n Id.DatasetInstance datasetID = Id.DatasetInstance.from(Constants.DEFAULT_NAMESPAC...
"private void setupKeyboardShortcuts() {\n filterTextField.addEventHandler(KeyEvent.KEY_RELEASED, event -> {\n if (keyCombBoxToList.match(event)) {\n event.consume();\n listView.selectFirstItem();\n }\n if (event.getCode() == KeyCode.SPACE) {\n event.consume();\n...
"public void onGuildVoiceMove(GuildVoiceMoveEvent event) {\n Guild guild = event.getGuild();\n TextChannel tc = ldm.getServerlogChannel(guild);\n TextChannel channel = FinderUtil.getDefaultChannel(event.getGuild());\n VoiceChannel vcold = event.getChannelLeft();\n VoiceChannel vcnew = event.getChannelJoi...
"protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {\n String handle = null;\n String extraPathInfo = null;\n DSpaceObject dso = null;\n String path = request.getPathInfo();\n if (path !...
"private synchronized boolean findSubgraph() throws CDKException {\n boolean isSubgraph;\n if ((getTarget() == null) || (getQuery() == null)) {\n throw new CDKException(\"String_Node_Str\");\n }\n if (getQuery().getAtomCount() == 1 || getTarget().getAtomCount() == 1) {\n singleMapping(isMatchB...
"protected String getFormatName(Object data) {\n String monthStr = DateFormatUtils.format((Date) data, monthSign);\n int month = Integer.parseInt(monthStr);\n int quotient = month / 3;\n int remainder = month % 3;\n int quarter = remainder == 0 ? quotient : quotient + 1;\n return DateFormatUtils.forma...
"private void createCoGroupAlternative(List<CoGroupNode> target, OptimizerNode pred1, OptimizerNode pred2, ShipStrategy ss1, ShipStrategy ss2, CostEstimator estimator) {\n GlobalProperties gp1 = PactConnection.getGlobalPropertiesAfterConnection(pred1, this, ss1);\n LocalProperties lp1 = PactConnection.getLocalPro...
"protected void okPressed() {\n try {\n validateValue(defaultValue);\n } catch (BirtException e1) {\n ExceptionHandler.handle(e1);\n return;\n }\n try {\n inputParameter.setName(nameEditor.getText());\n inputParameter.setPromptText(UIUtil.convertToModelString(promptTextEdi...
"public void onConnect() {\n registerChannelLogger();\n new Thread(new Runnable() {\n public void run() {\n for (String channel : getConfig().getChannels()) {\n if (getChannel(channel) == null) {\n sendIRC().joinChannel(channel);\n }\n ...
"public void startPrefixMapping(String prefix, String uri) throws SAXException {\n if (null == namespaceMap) {\n namespaceMap = new HashMap();\n }\n namespaceMap.put(prefix, uri);\n if (uriToPrefixMap == null) {\n uriToPrefixMap = new HashMap();\n }\n Stack uriStack = (Stack) namespaceMa...
"private Operand getParamForMem(Operand x, String name) {\n if (x instanceof Var || x instanceof Literal)\n return x;\n Var tmp = Var.tmpBuilder(name);\n currentBasicBlock.pushBack(new MoveInst(tmp, x), valTag);\n return tmp;\n}\n"
"private ResultSet selectUserByName(String name) throws SQLException {\n HashMap<String, Object> map = new HashMap<String, Object>();\n map.put(ATTR_LOGIN, escapeString(name));\n String sql = StringUtils.replaceString(selectUserStmt, map);\n LOG.info(sql);\n Statement stmt = null;\n try {\n stm...
"protected static CQLStatement makeCQLforDeleteUUIDFromStaticTable(CDefinition def, UUID uuid, Long timestamp) {\n Object[] values = { uuid };\n return CQLStatement.make(String.format(TEMPLATE_DELETE, makeTableName(def, null), timestamp, \"String_Node_Str\"), values);\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());\n Spell spell = (Spell) game.getStack().getStackObject(targetPointer.getFirst(game, source));\n if (source...
"public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {\n if (KEY_BT_SCAN.equals(preference.getKey())) {\n mLocalManager.startScanning(true);\n return true;\n }\n if (preference instanceof BluetoothDevicePreference) {\n BluetoothDevicePreference bt...
"protected void setUp() throws Exception {\n super.setUp();\n action = new DeleteManagedRepositoryAction();\n archivaConfigurationControl = MockControl.createControl(ArchivaConfiguration.class);\n archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();\n action.setArchivaConf...
"public void modifyText(ModifyEvent e) {\n if (!isContextMode()) {\n boolean noError = checkFieldsValue();\n getConnection().setWSDL(wsdlText.getText());\n if (methodText.getText() != null && !methodText.getText().equals(\"String_Node_Str\")) {\n updateStatus(IStatus.OK, null);\n ...
"private static ResourceIdentifiers createResourceIdentifiers(ModuleHandle handle) {\n if (handle == null)\n return null;\n try {\n ResourceIdentifiers identifiers = new ResourceIdentifiers();\n if (handle.getSystemId() != null) {\n identifiers.setDesignResourceBaseURI(handle.getSy...
"public org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent convertCarePlanActivityComponent(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt =...
"public void onEvent(Event event) throws Exception {\n final Component comp = event.getTarget();\n comp.removeEventListener(BinderImpl.ON_BIND_INIT, this);\n if (comp.getPage() == null && !(comp instanceof ShadowElement)) {\n return;\n }\n final Binder innerBinder = BinderUtil.getBinder(comp);\n ...
"protected void pathRequestFailed() {\n super.setAction(EAction.NO_ACTION, -1);\n this.path = null;\n if (currentJob != null)\n jobFailed();\n}\n"
"public int getTag() {\n return 2009120235;\n}\n"
"private void initGuiComponents() throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {\n setTitle(AppConstants.APP_NAME);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setSize(685, 450);\n setLayout(new FlowLayout());\n setResizable(true);...
"public boolean evaluate(Graph graph, Edge edge) {\n Object value = edge.getEdgeData().getAttributes().getValue(partition.getColumn().getIndex());\n int size = parts.size();\n for (int i = 0; i < size; i++) {\n Object obj = parts.get(i).getValue();\n if (obj == null && value == null) {\n ...
"public void executeTask(final Map<String, Object> context) throws GenieException {\n log.debug(\"String_Node_Str\");\n super.executeTask(context);\n final Writer writer = Utils.getWriter(runScript);\n createEntityInstanceDirectory(this.jobExecEnv.getCommand().getId(), Constants.AdminResources.COMMAND);\n ...
"public void storeAgent(UUID siteId, UUID agentId, CertificatePair pair) {\n synchronized (this) {\n try {\n SerialNum serial = SerialNum.fromBigInt(pair.getCertificate().getSerialNumber());\n File crtFile = this.agentCrtFile(siteId, serial);\n crtFile.getParentFile().mkdirs()...
"void initialiseViews() {\n appBarLayout = getAppbar().getAppbarLayout();\n mScreenLayout = findViewById(R.id.main_frame);\n buttonBarFrame = findViewById(R.id.buttonbarframe);\n drawerHeaderLayout = getLayoutInflater().inflate(R.layout.drawerheader, null);\n drawerHeaderParent = (RelativeLayout) drawerH...
"public void testScaleMultiLevelImageWithDifferentLevelCounts() {\n MultiLevelImage masterImage = createNewMultiLevelMasterImage(levelCount, 200, 200);\n targetBand.setSourceImage(masterImage);\n MultiLevelImage sourceImage = createSourceImage(sourceLevelCount, 100, 100);\n float[] scalings = new float[] { ...
"public void testRequestWithRCWithFailingFormat() throws Exception {\n task.run();\n k3po.finish();\n checkLogMessageRule.setExpectedPatterns(new ArrayList<>(Arrays.asList(new String[] { \"String_Node_Str\" })));\n}\n"
"public void testGoogIsPredicatesNoSpecializedContext() {\n typeCheck(CLOSURE_BASE + \"String_Node_Str\", NewTypeInference.WRONG_ARGUMENT_COUNT);\n typeCheck(CLOSURE_BASE + \"String_Node_Str\", NewTypeInference.WRONG_ARGUMENT_COUNT, NewTypeInference.INVALID_OPERAND_TYPE);\n typeCheck(LINE_JOINER.join(CLOSURE_B...
"public void addParameter(IParameter param) {\n param.setMethod(this);\n param.setIndex(index);\n if (index >= this.parameters.length) {\n MethodParameter[] temp = new MethodParameter[this.parameterCount];\n System.arraycopy(this.parameters, 0, temp, 0, index);\n this.parameters = temp;\n ...
"public FutureData<Stream> compile(String csdl) {\n FutureData<Stream> future = new FutureData<Stream>();\n URI uri = newParams().forURL(config.newAPIEndpointURI(COMPILE));\n POST request = config.http().POST(uri, new PageReader(newRequestCallback(future, new Stream(), config))).form(\"String_Node_Str\", csdl)...
"private void loadTx() {\n if (!isTxDetail) {\n txt_date_title.setVisibility(View.GONE);\n txt_date.setVisibility(View.GONE);\n container_confirmations.setVisibility(View.GONE);\n txt_confirmations.setVisibility(View.GONE);\n } else {\n SimpleDateFormat simpleDateFormat = new Si...
"protected Query getQuery(DatabaseQuery query, PersistenceContext app) {\n String method = query.isReadQuery() ? \"String_Node_Str\" : \"String_Node_Str\";\n String jpql = query.getJPQLString() == null ? \"String_Node_Str\" : query.getJPQLString();\n StringBuffer parameterString = new StringBuffer();\n Iter...
"public void run() {\n if (mPhone.getPhoneName().equals(\"String_Node_Str\")) {\n if (!mPhone.isOtaSpNumber(eNumber) && !PhoneNumberUtils.isEmergencyNumber(eNumber)) {\n Calls.addCall(ci, mApplication, number, presentation, callLogType, date, (int) duration / 1000);\n }\n } else {\n ...
"public void incrementNumRulesCompleted(BuildRuleEvent.Finished finished) {\n if (finished.getStatus() != BuildRuleStatus.CANCELED) {\n numRulesCompleted.getAndIncrement();\n }\n}\n"
"public E deserializeData(byte[] data) throws DeserializeException {\n checkIfBuildCalled();\n try {\n return (E) gson.fromJson(new String(data), Data.class);\n } catch (JsonParseException e) {\n throw new DeserializeException(e);\n }\n}\n"
"public void setSvgElement(OMSVGSVGElement svgElement) {\n this.svgElement = (OMSVGSVGElement) svgElement.cloneNode(true);\n Node firstChild = div.getFirstChild();\n Element svg = this.svgElement.getElement();\n if (firstChild == null) {\n div.appendChild(svg);\n } else if (firstChild != svg) {\n ...
"private static void examineAsBrowser(final UserAgent.Builder builder, final Data data) {\n Matcher matcher;\n VersionNumber version = VersionNumber.UNKNOWN;\n for (final Entry<BrowserPattern, Browser> entry : data.getPatternBrowserMap().entrySet()) {\n matcher = entry.getKey().getPattern().matcher(buil...
"public void run(Context context) throws IOException, InterruptedException {\n MapReduceClassLoader classLoader = MapReduceClassLoader.getFromConfiguration(context.getConfiguration());\n BasicMapReduceTaskContext basicMapReduceContext = classLoader.getTaskContextProvider().get(context);\n WrappedMapper.Context...
"public void execute(Shell shell, final IWorkbench workbench, final EPartService partService) {\n try {\n new ProgressMonitorDialog(shell).run(true, true, monitor -> {\n try {\n UpdateHelper updateHelper = new UpdateHelper(workbench, partService);\n updateHelper.runUpd...
"public void refresh(Collection<Refreshable> alreadyRefreshed) {\n if (!refreshLock.isLocked()) {\n refreshLock.lock();\n try {\n alreadyRefreshed = RefreshHelper.buildRefreshed(alreadyRefreshed);\n for (Refreshable dependency : dependencies) {\n RefreshHelper.maybe...
"protected Document requestAnnotations(Document document) throws GerbilException {\n Document resultDoc = new DocumentImpl(document.getText(), document.getDocumentURI());\n HttpEntity entity = new StringEntity(new JSONObject().put(\"String_Node_Str\", document.getText()).put(\"String_Node_Str\", \"String_Node_Str...
"public static DateTime offsiteWeek(Date date, int offsite) {\n return offsiteDate(date, Calendar.WEEK_OF_YEAR, offsite);\n}\n"
"public static void setupPrototypeFactory() {\n LivePrototypeFactory prototypeFactory = new LivePrototypeFactory();\n PrototypeFactory.setStaticHasher(prototypeFactory.getLiveHasher());\n DbUtil.setDBUtilsPrototypeFactory(prototypeFactory);\n}\n"
"public void testNonProj() {\n SentenceCollection sentences = new SentenceCollection();\n sentences.add(getSentenceFromString(\"String_Node_Str\"));\n ModelFactory modelFactory = new DmvModelFactory(new RandomWeightGenerator(lambda));\n Model model = modelFactory.getInstance(sentences);\n DepTreebank flo...
"protected IStatus run(IProgressMonitor monitor) {\n try {\n final Set<Artifact> arts = new HashSet<Artifact>();\n for (Artifact art : artifacts) {\n if (art.isOfType(AtsArtifactTypes.Action)) {\n for (TeamWorkFlowArtifact team : ActionManager.getTeams(art)) {\n ...
"public String extractRegularExpressionFunction(Expression expression, String regexp) {\n String functionName = null;\n try {\n String tempString = splictExpression(expression);\n functionName = tempString.split(\"String_Node_Str\").length > 1 ? tempString.split(\"String_Node_Str\")[0] : PluginConst...
"private Class<?> getBootStrapClass() {\n try {\n return this.classLoader.loadClass(bootClass);\n } catch (ClassNotFoundException e) {\n throw new BootStrapException(\"String_Node_Str\" + bootClass + \"String_Node_Str\" + e.getMessage(), e);\n }\n}\n"
"public static void initBotaniaCrops() {\n if (ModIntegration.LoadedMods.botania && ConfigurationHandler.integration_Botania) {\n botaniaWhite = new BlockModPlant(ModItems.petal, 0, 3, 1);\n botaniaOrange = new BlockModPlant(ModItems.petal, 1, 3, 1);\n botaniaMagenta = new BlockModPlant(ModItems...
"protected static List<String> exec(int numLines, ProcessBuilder pb) throws IOException {\n final List<String> lines = new ArrayList<>();\n final Process p = pb.start();\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(p.getErrorStream(), Charset.defaultCharset()))) {\n for (int i...
"public Object addingService(ServiceReference arg0) {\n sc++;\n Object svc = bc.getService(arg0);\n String key = ((String[]) arg0.getProperty(Constants.OBJECTCLASS))[0];\n serviceMap.put(key, svc);\n if (thread == null && sc == services.length && !(runnable instanceof UnmanagedRunnable)) {\n if (r...
"static int getSecurity(ScanResult result) {\n if (result.capabilities.contains(\"String_Node_Str\"))\n return SECURITY_WEP;\n else if (result.capabilities.contains(SECURITY_WPA))\n return SECURITY_WPA;\n else if (result.capabilities.contains(SECURITY_WPA2))\n return SECURITY_WPA2;\n el...
"protected void setOCSubjectDataDNs(OdmClinicalDataBean data, String studySubjectOids, HashMap<String, String> subOidPoses) {\n this.setOCSubjectDataDNsTypesExpected();\n HashMap<String, ArrayList<ChildNoteBean>> pDNs = new HashMap<String, ArrayList<ChildNoteBean>>();\n HashMap<String, ArrayList<DiscrepancyNot...
"public static TextureRegion subImage(TextureRegion image, int x, int y, int width, int height) {\n return new TextureRegion(image.getTexture(), x, y, width, height);\n}\n"
"public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case android.R.id.home:\n if (isNavigatingMain()) {\n mDrawerLayout.openDrawer(GravityCompat.START);\n } else {\n super.onBackPressed();\n }\n return ...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller == null) {\n return false;\n }\n if (condition.apply(game, source)) {\n effect.setTargetPointer(this.targetPointer);\n } else if (otherwiseEffect != null) {\n ...
"public UriResourceTypedImpl readResourcePathSegment(final PathSegmentContext ctx) {\n final boolean checkFirst = context.contextUriInfo.getLastResourcePart() == null || context.contextUriInfo.getLastResourcePart() instanceof UriResourceRootImpl;\n String odi = ctx.vODI.getText();\n boolean searchInContainer =...
"public ActionInvoker getInvoker() {\n return pathInfo.getObj();\n}\n"
"public void group() {\n this.graph = graphController.getModel().getHierarchicalGraphVisible();\n ModelImpl[] selectedNodeModels = engine.getSelectedObjects(AbstractEngine.CLASS_NODE);\n final List<Node> newGroup = new ArrayList<Node>();\n for (int i = 0; i < selectedNodeModels.length; i++) {\n newGr...