content
stringlengths
40
137k
"public void create(Table table) {\n drawDebug = true;\n shapeRenderer = new ShapeRenderer();\n spriteBatch = new SpriteBatch();\n world = createWorld();\n characters = new Array<Box2dSteeringEntity>();\n proximities = new Array<Box2dRadiusProximity>();\n for (int i = 0; i < 60; i++) {\n fin...
"public void outputCacheData() throws IOException {\n writer.startSheet(engine.getCoordinates(), pageHeader, pageFooter, sheetName);\n sheetName = DEFAULT_SHEET_NAME + sheetIndex;\n Iterator<RowData> it = engine.getIterator();\n while (it.hasNext()) {\n outputRowData(it.next());\n }\n writer.en...
"private void monitorEndpointActivity(Endpoint endpoint) {\n String endpointId = endpoint.getID();\n long lastActivity = 0;\n long mostRecentChannelCreated = 0;\n List<RtpChannel> rtpChannels = endpoint.getChannels(null);\n for (RtpChannel channel : rtpChannels) {\n long channelLastActivity = chan...
"public GregorianCalendar getEnd() {\n return endTime;\n}\n"
"public InputStream getMetadata() throws ODataException {\n if (schemas == null) {\n schemas = edmProvider.getSchemas();\n }\n OutputStreamWriter writer = null;\n CircleStreamBuffer csb = new CircleStreamBuffer();\n try {\n DataServices metadata = new DataServices().setSchemas(schemas).setD...
"private void constrainActivities(DurationCapability source, boolean isStart) {\n int sign = isStart ? 1 : -1;\n long movingEdge = isStart ? source.getStart() : source.getEnd();\n long mostOverlapping = movingEdge;\n DurationCapability durationCapabilityToShift = null;\n for (AbstractComponent child : ge...
"public void testSetHeaderStrictNull() {\n SAMRecord sam = createTestRecordHelper();\n sam.setHeaderStrict(null);\n Assert.assertNull(sam.getHeader());\n Assert.assertNull(sam.mReferenceIndex);\n}\n"
"public IMethod getFunctionalMethod() {\n if ((this.modifiers & Modifiers.ABSTRACT) == 0) {\n return null;\n }\n IMethod m;\n if (this.body != null) {\n IMethod m = this.body.getFunctionalMethod();\n if (m != null) {\n return m;\n }\n }\n return null;\n}\n"
"public Response execute() {\n DatabaseAccessor db = null;\n List<Experiment> searchResult = null;\n System.out.println(annotations);\n if (annotations.equals(\"String_Node_Str\")) {\n return new ErrorResponse(StatusCode.BAD_REQUEST, \"String_Node_Str\");\n }\n try {\n annotations = URLD...
"private String[] getDocumentBookmarks(IReportDocument rdoc) {\n List bookmarks = rdoc.getBookmarks();\n return bookmarks;\n}\n"
"public int execute() throws IOException {\n final Process process = launch(project, getCommandline(), getEnvironment(), workingDirectory, useVMLauncher);\n try {\n streamHandler.setProcessInputStream(process.getOutputStream());\n streamHandler.setProcessOutputStream(process.getInputStream());\n ...
"public void after(Object target, Object[] args, Object result, Throwable throwable) {\n if (isDebug) {\n logger.afterInterceptor(target, args, result, throwable);\n }\n final Trace trace = traceContext.currentRawTraceObject();\n if (trace == null) {\n return;\n }\n if (!trace.canSampled...
"public void before(Object target, Object[] args) {\n if (target instanceof DataSourceMonitorAccessor) {\n final DataSourceMonitorAccessor dataSourceMonitorAccessor = (DataSourceMonitorAccessor) target;\n final DbcpDataSourceMonitor dataSourceMonitor = dataSourceMonitorAccessor._$PINPOINT$_getDataSourc...
"public void importModel(InputStream inputStream, EntityManager em, Authentication authentication) throws ExportException {\n ObjectInputStream objectInputStream;\n em.getTransaction().begin();\n try {\n objectInputStream = new ObjectInputStream(inputStream);\n ProjectModel projectModel = (Projec...
"private void checkWriteAccess(Object obj) throws IllegalAccessException, IllegalArgumentException, ExceptionInInitializerError {\n VM_Class declaringClass = field.getDeclaringClass();\n if (!field.isStatic()) {\n if (obj == null) {\n throw new NullPointerException();\n }\n VM_Type...
"private void addAPI(String apiName, String apiVersion, String apiContext, String description, String endpointURL, String tags, String providerName) throws APIManagerIntegrationTestException, MalformedURLException, XPathExpressionException {\n APIPublisherRestClient apiPublisher = new APIPublisherRestClient(publishe...
"private Element findParent(Element root, Param<?> param, ParamValuePair pair, ParamStore store, IDesignSpace space) throws InPUTException {\n Element resultParent = null;\n if (isStructuralArrayType(param))\n resultParent = findParentForComplex(root, param, pair, store, space);\n else if (hasComplexGra...
"public StreamInfo getStreamInfo(final ConverterData converterData) {\n return new StreamInfo(converterData.jorbisData.info.channels, converterData.pcmData.baos == null ? 0 : (int) (converterData.pcmData.baos.size() * 1.0 * converterData.jorbisData.info.channels / Byte.SIZE), 2, converterData.jorbisData.info.rate, f...
"int offer(Request req) {\n try {\n int addIndex = blCurrentPut.add(req.value);\n long recordId = getRecordId(blCurrentPut.blockId, addIndex);\n req.recordId = recordId;\n doFireEntryEvent(true, req.value);\n sendBackup(true, req.caller, req.value, blCurrentPut.blockId, addIndex);\...
"private void delete() {\n logger.info(\"String_Node_Str\" + group.getName());\n groupInProcess.delete(group.getName());\n lastContentKey.delete(group.getName(), GROUP_LAST_COMPLETED);\n logger.info(\"String_Node_Str\" + group.getName());\n}\n"
"public boolean hasDataLeftToTransmit() throws IOException, InterruptedException {\n if (!this.isReceiverRunning) {\n return true;\n }\n while (!this.queuedOutgoingEnvelopes.isEmpty()) {\n this.outputGateContext.processEnvelope(this, this.queuedOutgoingEnvelopes.poll());\n }\n return false;...
"public void cape() {\n try {\n DevCapes.getInstance().registerConfig(new URL(\"String_Node_Str\"));\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n}\n"
"private static List<Member> createMembers(MemberImpl startAfter, int memberCount, int maxSameHostCount) throws Exception {\n Random rand = new Random();\n final byte[] ip = new byte[] { 10, 10, 0, 0 };\n if (startAfter != null) {\n Address address = startAfter.getAddress();\n byte[] startIp = ad...
"private int seekNextBoundary(ChannelBuffer buffer) {\n int readerIndex = buffer.readerIndex();\n int length = 0;\n String line = \"String_Node_Str\";\n while (buffer.readable()) {\n line = readLine(buffer);\n if (line.isEmpty() && buffer.readable() == false) {\n state = State.READ_...
"public final void finishSubActivity(IBinder token, String resultWho, int requestCode) {\n synchronized (this) {\n int index = indexOfTokenLocked(token);\n if (index < 0) {\n return;\n }\n HistoryRecord self = (HistoryRecord) mHistory.get(index);\n final long origId = Bi...
"protected void changed(StringProperty property, String newValue) {\n if (rules == null)\n return;\n String cleanValue = newValue.trim();\n String existingValue = currentRule.getProperty(property);\n if (StringUtil.areSemanticEquals(existingValue, cleanValue))\n return;\n currentRule.setPro...
"public static List<EntityDrop> parseConfig(ConfigurationSection config) {\n List<EntityDrop> drops = Collections.emptyList();\n if (config != null) {\n drops = new ArrayList<EntityDrop>();\n if (config.getList(\"String_Node_Str\") != null) {\n List<String> dropsList = config.getStringLis...
"public void write(int rowId) {\n try {\n IOUtil.writeInt(rowDos, rowId);\n } catch (IOException e) {\n logger.log(Level.FINE, e.getMessage(), e);\n }\n}\n"
"public void libraryCompilationDatabase() throws InterruptedException, IOException {\n ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, \"String_Node_Str\", tmp);\n workspace.setUp();\n ProjectFilesystem filesystem = new FakeProjectFilesystem();\n BuildTarget target = Buil...
"public Response deleteVariant(String variantId) {\n Variant variant = variantService.findByVariantID(variantId);\n if (variant != null) {\n logger.log(Level.FINEST, \"String_Node_Str\" + variant.getClass().getSimpleName());\n variantService.removeVariant(variant);\n return Response.noContent...
"public void stopGimbalControl(final GimbalOrientationListener listener) {\n if (listener == null)\n throw new NullPointerException(\"String_Node_Str\");\n if (!gimbalListeners.contains(listener)) {\n drone.post(new Runnable() {\n public void run() {\n listener.onGimbalOrie...
"public void removePresenceListener(IPresenceListener listener) {\n synchronized (presenceListeners) {\n presenceListeners.remove(listener);\n }\n}\n"
"public Response create(final WhoisResources resource, final String sourceParam, final HttpServletRequest request, final List<String> passwords, final String crowdTokenKey) {\n if (resource == null) {\n return badRequest(\"String_Node_Str\");\n }\n checkForMainSource(request, sourceParam);\n try {\n ...
"public boolean getFileInformation(DownloadLink downloadLink) {\n try {\n requestInfo = getRequest(new URL(downloadLink.getUrlDownloadDecrypted()), null, null, true);\n if (requestInfo.getHtmlCode().indexOf(\"String_Node_Str\") >= 0) {\n return false;\n } else {\n String fi...
"public void set(SDOProperty property, Object value, boolean updateSequence) throws UnsupportedOperationException, IllegalArgumentException {\n if (null == property) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (property.isReadOnly()) {\n throw new UnsupportedOperationExc...
"public RemoteIdentifier getMyIdentifier() {\n return this.myIdentifier;\n}\n"
"public BasicBlockNode addBasicBlock(int insertBefore, BasicBlock bb) {\n BasicBlockNode n;\n Instruction lastInstr = bb.getLastInstruction().getInstruction();\n InstructionHandle theInvoke = bb.getTheInvokeInstruction();\n if (theInvoke != null) {\n n = new InvokeNode(bb, theInvoke);\n } else if ...
"private void initializeSource(WorkerContext context, ETLStage stage) throws Exception {\n String sourcePluginId = context.getRuntimeArguments().get(Constants.Source.PLUGINID);\n source = context.newPluginInstance(sourcePluginId);\n RealtimeContext sourceContext = new WorkerRealtimeContext(context, metrics, so...
"public void testRtpEndPointSimulatingAndroidSdp() throws KurentoMediaFrameworkException, InterruptedException {\n log.info(\"String_Node_Str\");\n PlayerEndPoint player = mediaPipeline.createPlayerEndPoint(\"String_Node_Str\");\n log.info(\"String_Node_Str\");\n RtpEndPoint rtpEndPoint = mediaPipeline.crea...
"private void changeAvatarInternal(WlAvatarCharacter newAvatar) {\n LoadingInfo.startedLoading(cell.getCellID(), newAvatar.getName());\n Node nameTagNode = getNameTagNode();\n PMatrix currentLocation = null;\n if (avatarCharacter != null) {\n currentLocation = avatarCharacter.getModelInst().getTransf...
"private ArrayList<String[]> findCluster(Cluster cluster, double cutDist, int minPatternPerCls) {\n ArrayList<String[]> clusterTSIdx = new ArrayList<String[]>();\n if (cluster.getDistance() != null) {\n if (cluster.getDistanceValue() > cutDist) {\n if (cluster.getChildren().size() > 0) {\n ...
"protected CheckboxTreeViewer doCreateTreeViewer(Composite parent, int style) {\n RepoCommonViewerProvider provider = RepoCommonViewerProvider.CHECKBOX;\n if (baseViewId != null) {\n provider.setViewId(baseViewId);\n }\n CheckboxTreeViewer viwer = (CheckboxTreeViewer) provider.createViewer(parent);\n...
"public void handle(RpbGetResp resp, String vclock) throws Exception {\n int size = resp.getContentCount();\n if (1 < size) {\n LOG.warn(Markers.BOUNDARY, Messages.SiblingExists, vclock, size);\n }\n RiakObject<byte[]> ro = convert(location, vclock, resp.getContent(0));\n handler.handle(PbcRiakOpe...
"private boolean variableIsPassedAsCommonParameter(VariableDeclaration variableDeclaration1, VariableDeclaration variableDeclaration2) {\n for (VariableBindingKeyPair pair : mapper.getCommonPassedParameters().keySet()) {\n if (pair.getKey1().equals(variableDeclaration.resolveBinding().getKey()) || pair.getKey...
"public ClassName getPropertyClassName() {\n return outputClassName;\n}\n"
"public ResourceAddress getLocalAddress() {\n return (this.redirectlocalAddress != null) ? this.redirectlocalAddress : super.getLocalAddress();\n}\n"
"public ChunkGeneratorManager load(final File file) throws IOException {\n final FileInputStream in = new FileInputStream(file);\n ChunkGeneratorManager chunkGeneratorManager = null;\n if (file.exists()) {\n final FileInputStream in = new FileInputStream(file);\n try {\n in.close();\n ...
"public void setHeadsetMode(HeadsetMode mode) {\n if (this.desiredMode == mode)\n return;\n preferences.setHeadsetMode(mode);\n if (isThreadRunning()) {\n stopThread(true);\n disposeAudioDevices();\n this.mode = mode;\n startThread();\n } else {\n disposeAudioDevice...
"public List<MoveLine> consolidateMoveLines(List<MoveLine> moveLines) {\n Map<List<Object>, MoveLine> map = new HashMap<List<Object>, MoveLine>();\n MoveLine consolidateMoveLine = null;\n List<Object> keys = new ArrayList<Object>();\n for (MoveLine moveLine : moveLines) {\n keys.clear();\n key...
"public void stop() {\n started.set(false);\n try {\n if (requestQueue != null)\n requestQueue.stop();\n } catch (Exception ex) {\n if (debug)\n logger.debug(\"String_Node_Str\", ex);\n }\n try {\n if (responseQueue != null)\n responseQueue.stop();\n ...
"public IValue cleanup(IContext context, IClassCompilableList compilableList) {\n this.value = this.value.cleanup(context, compilableList);\n if (this.capturedFieldCount == 0) {\n if (this.value instanceof AbstractCall && this.value.valueTag() != COMPOUND_CALL) {\n AbstractCall c = (AbstractCall...
"public void expire() {\n synchronized (this) {\n if (expired)\n return false;\n else\n expired = true;\n }\n Content content = getContent();\n Conference conference = content.getConference();\n EventAdmin eventAdmin = conference.getEventAdmin();\n if (eventAdmin !=...
"public void detectAndSendChanges() {\n this.verifyPermissions(SecurityPermissions.BUILD, false);\n if (Platform.isServer()) {\n final IConfigManager cm = this.getUpgradeable().getConfigManager();\n this.loadSettingsFromHost(cm);\n }\n this.checkToolbox();\n for (final Object o : this.inven...
"protected ArrayList<Token> reorder(ArrayList<Token> tokens) {\n ArrayList<Token> result = new ArrayList<>();\n Stack<Token> stack = new Stack<>();\n for (Token t : tokens) {\n switch(t.getType()) {\n case NUMBER:\n stack.push(t);\n break;\n case UNARY...
"public static String generateSignature(String data, String key) {\n try {\n final Mac mac = Mac.getInstance(\"String_Node_Str\");\n final SecretKeySpec keySpec = new SecretKeySpec(key.getBytes(\"String_Node_Str\"), \"String_Node_Str\");\n mac.init(keySpec);\n mac.update(data.getBytes());...
"private void canonicalizeToIndels(List<Variant> canonicalVariantList, int[] alleleLengthDifference, byte[] reference, byte[][] alternativeAlleles, Variant variant, int currentPosition, boolean end) {\n Variant.Builder template = new Variant.Builder().chr(variant.getChr()).isPhased(true).varId(variant.getVariantId()...
"public void testConfigCluster() throws Exception {\n CookieCache.put(\"String_Node_Str\", \"String_Node_Str\");\n ObjectMapper mapper = new ObjectMapper();\n StorageRead sr1 = new StorageRead();\n sr1.setType(\"String_Node_Str\");\n sr1.setSizeGB(100);\n NodeRead nr1 = new NodeRead();\n nr1.setHos...
"public Iterator<QueryableEntry> iterator() {\n if (entries == null) {\n if (!indexedResults.isEmpty()) {\n if (indexedResults.size() == 1) {\n entries = new HashSet<QueryableEntry>(indexedResults.get(0));\n } else {\n entries = new HashSet<QueryableEntry>()...
"private Number number(String op, String value, Class<? extends Number> clazz) {\n final String number;\n number = (operationAtStart) ? value.substring(op.length()).trim() : value.substring(0, value.length() - op.length()).trim();\n if (!number.isEmpty())\n return convertTo(clazz, number);\n throw ne...
"protected void clone(User user) {\n if (user != null) {\n user_id = user.user_id;\n displayname = user.displayname;\n avatar_url = user.avatar_url;\n presence = user.presence;\n currently_active = user.currently_active;\n lastActiveAgo = user.lastActiveAgo;\n statusM...
"private static synchronized DateTimeFormatter offsetFormatter() {\n if (cOffsetFormatter == null) {\n cOffsetFormatter = new DateTimeFormatterBuilder((Chronology) null, null).appendTimeZoneOffset(null, true, 2, 4).toFormatter();\n }\n return cOffsetFormatter;\n}\n"
"public List<String> getUserConfigHelp() {\n List<String> params = super.getUserConfigHelp();\n params.add(\"String_Node_Str\");\n params.add(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n StringBuilder symmTypes = new StringBuilder(\"String_Node_Str\");\n Symme...
"private ArrayList<ExportStudyEventDataBean> setExportStudyEventDataBean(StudySubject ss, List<StudyEvent> sEvents, String formVersionOID) {\n ArrayList<ExportStudyEventDataBean> al = new ArrayList<ExportStudyEventDataBean>();\n SimpleDateFormat sdf = new SimpleDateFormat(\"String_Node_Str\");\n for (StudyEven...
"public void saveResult(DataSetHandle handle) {\n PropertyHandle resultSetPropertyHandle = handle.getPropertyHandle(DataSetHandle.RESULT_SET_HINTS_PROP);\n PropertyHandle columnHintPropertyHandle = handle.getPropertyHandle(DataSetHandle.COLUMN_HINTS_PROP);\n try {\n resultSetPropertyHandle.setStringValu...
"public void onResume() {\n super.onResume();\n ListView listHistory = (ListView) this.getActivity().findViewById(R.id.list_view_history);\n try {\n List<NotificationDateView> rawData = this.getChartData(getResources().getInteger(R.integer.chart_items));\n List<NotificationDateView> finalData = n...
"public void btnSaveSettingsClicked(View view) {\n ip = mIP.getText().toString();\n try {\n port = Integer.parseInt(mPort.getText().toString().trim());\n } catch (NumberFormatException e) {\n }\n mDevModeEnabled = (((CheckBox) findViewById(R.id.checkBoxDevMode)).isChecked());\n SharedPreference...
"public void propertyChanged(Object source, int propId) {\n if (editor != null) {\n if (editor.isDirty() && !EntryComposite.this.entry.getValue().equals(currentSelection)) {\n EntryComposite.this.decoration.show();\n if (messageManager != null) {\n }\n } else if (!edito...
"private RangerPolicyList toRangerPolicyList(List<RangerPolicy> policyList, SearchFilter filter) {\n RangerPolicyList ret = new RangerPolicyList();\n if (CollectionUtils.isNotEmpty(policyList)) {\n int totalCount = policyList.size();\n int startIndex = filter.getStartIndex();\n int pageSize =...
"protected void fillContextMenu(IMenuManager manager, boolean isType) {\n IStructuredSelection selection;\n if (!isType)\n selection = ((IStructuredSelection) viewer.getSelection());\n else\n selection = ((IStructuredSelection) typesViewer.getSelection());\n Object[] selectedObjs = selection.t...
"private List<String> getMessage(ConstraintViolationException e) {\n if (\"String_Node_Str\".equalsIgnoreCase(e.getConstraintName())) {\n return Collections.singletonList(\"String_Node_Str\");\n } else if (\"String_Node_Str\".equals(e.getConstraintName())) {\n return Collections.singletonList(\"Stri...
"private Map<String, String> getBusinessMetadata(Id.NamespacedId targetId, MetadataType metadataType) {\n String targetType = KeyHelper.getTargetType(targetId);\n MDSKey mdsKey = MdsValueKey.getMDSKey(targetId, metadataType, null);\n byte[] startKey = mdsKey.getKey();\n byte[] stopKey = Bytes.stopKeyForPref...
"public static <T> Dominators make(Graph<T> G, T root) {\n if (G instanceof NumberedGraph) {\n return new NumberedDominators((NumberedGraph) G, (INodeWithNumber) root);\n } else {\n return new GenericDominators<T>(G, root);\n }\n}\n"
"private void evaluateValue(BindingColumn bindingColumn, Map valueMap, int exprType) throws DataException {\n Object exprValue = null;\n try {\n if (exprType == MANUAL_BINDING)\n exprValue = ExprEvaluateUtil.evaluateExpression(bindingColumn.baseExpr, odiResult, scope);\n else\n ...
"public int compare(Transform left, Transform right) {\n return ComparisonChain.start().compare(left.getZIndex(), right.getZIndex()).compare(left.getId(), right.getId()).result();\n}\n"
"public boolean isMinor() {\n return getHead().isMinorVersion();\n}\n"
"public boolean emulateOP(long maxCycles) throws EmulationException {\n int pc = readRegister(PC);\n long startCycles = cycles;\n if (cycles >= nextEventCycles) {\n executeEvents();\n }\n if (interruptsEnabled && servicedInterrupt == -1 && interruptMax >= 0) {\n pc = serviceInterrupt(pc);\n...
"public void widgetSelected(SelectionEvent e) {\n if (processContext == null) {\n clearTracePerfBtn.setEnabled(false);\n return;\n }\n if (processContext.isRunning()) {\n if (consoleText != null && !consoleText.isDisposed()) {\n consoleText.setText(\"String_Node_Str\");\n ...
"public void actionOps(final String id, final String path, final HttpMethod verb, final Map<String, String> queryStrings, PrettyOutput... prettyOutput) {\n checkConnection();\n try {\n if (verb == HttpMethod.PUT) {\n ResponseEntity<String> response = restActionOps(path, id, queryStrings);\n ...
"public boolean merge(Data dataKey, EntryView mergingEntry, MapMergePolicy mergePolicy) {\n checkIfLoaded();\n Record record = records.get(dataKey);\n Object newValue = null;\n if (record == null) {\n newValue = mergingEntry.getValue();\n record = mapService.createRecord(name, dataKey, newValu...
"public void paintComponent(Graphics g) {\n super.paintComponent(g);\n Graphics2D g2d = (Graphics2D) g;\n int w = canvasWidth / data.M();\n int h = canvasHeight / data.N();\n Board showBoard = data.getShowBoard();\n for (int i = 0; i < showBoard.N(); i++) for (int j = 0; j < showBoard.M(); j++) {\n ...
"public Point2D getOrigin() {\n if (_centered) {\n Point2D point = super.getOrigin();\n _transform.transform(point, point);\n return point;\n } else {\n Point2D point = new Point2D.Double(0, 0);\n _transform.transform(point, point);\n return point;\n }\n}\n"
"private LSN replayLogs(LSN from) throws BabuDBException {\n try {\n File f = new File(configuration.getDbLogDir());\n File[] logFiles = f.listFiles(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.endsWith(\"String_Node_Str\");\n ...
"public static short readNum(BinaryReader reader) throws IOException, SDKException {\n ScriptOp code = readOpCode(reader);\n if (code == ScriptOp.OP_PUSH0) {\n readOpCode(reader);\n return 0;\n } else {\n int num = (int) code.getByte() - (int) ScriptOp.OP_1.getByte() + 1;\n if (num ...
"protected void groupPrimitive(PrimitiveRenderEvent pre, boolean drawText) {\n if (_iun == null) {\n logger.log(ILogger.WARNING, Messages.getString(\"String_Node_Str\", getULocale()));\n return;\n }\n if (pre.getSource() instanceof StructureSource) {\n StructureSource sourceObject = (Struc...
"private InferredPath copyAStarResults(GraphPath gpath, boolean isReverse) {\n final double direction = isReverse ? -1d : 1d;\n double pathDist = 0d;\n final List<PathEdge> path = Lists.newArrayList();\n final PathEdge startPathEdge = PathEdge.getEdge(this.getInferredEdge(startEdge));\n if (gpath.edges.i...
"private void process(String newLine) {\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + newLine);\n String[] commands = newLine.split(\"String_Node_Str\");\n for (String cmd : commands) {\n try {\n String justCmd = cmd.trim();\n processCommand(justCmd);\n ...
"public boolean evaluate(JSONObject jsonObject) {\n if (type == null) {\n return false;\n }\n if (isDocLibRecord(jsonObject) == true) {\n return false;\n }\n try {\n JSONObject rmNode = getRMNode(jsonObject);\n if (rmNode == null) {\n return false;\n } else {...
"private static List<EntityDrop> parseDrops(List<String> dropsList) {\n List<EntityDrop> drops = new ArrayList<EntityDrop>();\n for (String dropString : dropsList) {\n EntityDrop drop = createEntityDrop(dropString);\n if (drop != null) {\n drops = new ArrayList<EntityDrop>();\n ...
"public boolean equals(final Object other) {\n return this == other || other instanceof LauncherStatus && ((LauncherStatus) other).state == this.state;\n}\n"
"public Status process() throws EventDeliveryException {\n try {\n ArrayList<Event> eventList = new ArrayList<Event>();\n Message message;\n Event event;\n ByteBuffer buffer;\n Map<String, String> headers;\n byte[] bytes;\n for (int i = 0; i < batchSize; i++) {\n ...
"public void testProviderWithSQLLine() throws IOException {\n copyFromLocal(SIMPLE_PRODUCTS_TABLE);\n String classPath = compileFactory(getFactoryPath());\n createProviderJar(TEST_PROPERTIES_FACTORY_LOCATION, classPath);\n initCatalog();\n catalog(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_S...
"public Fraction getExactFraction() {\n int lastIndex = integerList.size() - 1;\n return getFraction(lastIndex, new Fraction((integerList.get(lastIndex)).intValue(), 1));\n}\n"
"public void postTxCommit() {\n getQueue().evict(dequeuedKeys, numGroups);\n}\n"
"public static BufferedImage checkDeclare(int width, int height, BufferedImage image, int type) {\n if (image == null)\n return new BufferedImage(width, height, type);\n if (target.getType() != type)\n return new BufferedImage(width, height, type);\n if (image.getWidth() != width || image.getHeig...
"public CAstNode visitVariableDeclaration(VariableDeclaration node, WalkContext arg) {\n List<VariableInitializer> inits = node.getVariables();\n CAstNode[] children = new CAstNode[inits.size()];\n int i = 0;\n for (VariableInitializer init : inits) {\n arg.addNameDecl(noteSourcePosition(arg, Ast.mak...
"public void renderReport(OutputStream out, HttpServletRequest request, IReportDocument reportDocument, String format, long pageNumber, String pageRange, boolean masterPage, boolean svgFlag, List activeIds, Locale locale, boolean rtl, String iServletPath) throws RemoteException {\n if (reportDocument == null) {\n ...
"public void addStack(String name, String portName, StackConfig config) {\n CommandAcceptor cmdAcceptor = new CommandAcceptor();\n SlaveStackConfig cfg = config.buildConfig();\n IDataObserver obs = dnp.AddSlave(portName, name, FilterLevel.LEV_DEBUG, cmdAcceptor, cfg);\n stackMap.put(name, new StackItems(obs...
"private boolean isBaggingReplacementTrigged(double random) {\n long trainingSize = this.trainingData.getRecordCount();\n long testingSize = this.testingData.getRecordCount();\n long size = trainingSize + testingSize;\n return this.modelConfig.isBaggingWithReplacement() && (testingSize > 0) && (trainingSize...
"protected Status connect(int timeout) throws ConnectorException {\n if (!SkypeFramework.isRunning()) {\n setStatus(Status.NOT_RUNNING);\n return getStatus();\n }\n if (!SkypeFramework.isAvailable()) {\n setStatus(Status.NOT_AVAILABLE);\n return getStatus();\n }\n try {\n ...
"public void testPE1603() throws Throwable {\n assertTimestampValue(2, null);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, 10l);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, null);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, 300000000l);\n c...