content
stringlengths
40
137k
"public void start(AcceptsOneWidget container, EventBus eventBus) {\n this.container = container;\n this.clientFactory.getShellView().hideDetail();\n this.clientFactory.getShellView().getDetailView().setPresenter(this);\n this.clientFactory.getShellView().getContentView().setContentTitle(getTitle());\n L...
"public User getUser(String userid) throws WeixinException {\n String user_get_uri = getRequestUri(\"String_Node_Str\");\n Token token = tokenHolder.getToken();\n WeixinResponse response = weixinExecutor.get(String.format(user_get_uri, token.getAccessToken(), userid));\n JSONObject obj = response.getAsJson(...
"private short getNextId() {\n if (nextId.get() > MAX_ID) {\n return UNKNOWN_ID;\n }\n return (short) nextId++;\n}\n"
"private int createValueListComposite(Composite parent) {\n if (valueListComposite != null && !valueListComposite.isDisposed()) {\n return 0;\n }\n disposeComposites();\n valueListComposite = new Composite(parent, SWT.NONE);\n GridData gdata = new GridData(GridData.FILL_HORIZONTAL);\n gdata.hor...
"protected WireStore newStore(final long cycle) {\n try {\n final String cycleFormat = this.dateCache.formatFor(cycle);\n final File cycleFile = new File(this.builder.path(), cycleFormat + \"String_Node_Str\");\n File parentFile = cycleFile.getParentFile();\n if (parentFile != null & !par...
"protected void appendToCurrentLine(Character currentChar) {\n if (currentChar == null) {\n } else if (CARRIAGE_RETURN.equals(currentChar))\n currentLine.append(NEWLINE);\n else if (CARRIAGE_RETURN.equals(previousChar) && NEWLINE.equals(currentChar)) {\n } else\n currentLine.append(currentChar...
"public void onConfirm(String username, int type) {\n PlayerController.setName(MainActivity.this, username);\n Fragment fragment;\n if (type == -1) {\n fragment = ProfileFragment.newInstance(username);\n } else {\n fragment = ShotsFragment.newInstance(type);\n }\n getSupportFragmentManag...
"public void encodeBegin(FacesContext context, UIComponent component) throws IOException {\n if (!component.isRendered()) {\n return;\n }\n Message message = (Message) component;\n String forValue = message.getFor();\n if (null == forValue || forValue.length() == 0)\n forValue = \"String_No...
"public void codeGenerated(Path binaryPath) {\n if (DockerDataHolder.getInstance().isCanProcess()) {\n String filePath = binaryPath.toAbsolutePath().toString();\n String userDir = new File(filePath).getParentFile().getAbsolutePath();\n DockerAnnotationProcessor dockerAnnotationProcessor = new Do...
"public boolean canEvaluate(Template template) {\n if (!template.getContextTypeId().equals(JavaStatementPostfixContext.CONTEXT_TYPE_ID))\n return false;\n if (fForceEvaluation)\n return true;\n if (selectedNode == null)\n return false;\n if (template.getName().toLowerCase().startsWith(g...
"public void setUpGlobal() throws Exception {\n server = new Server();\n Logger root = Logger.getRootLogger();\n root.setLevel(Level.DEBUG);\n root.addAppender(new ConsoleAppender(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN)));\n port1 = findFreePort();\n Connector listener = new SelectCha...
"public List<Identity> getIdentitys() {\n return walletInMem.getIdentities();\n}\n"
"private static void replyToPing(Connection c, boolean ultrapeer) throws IOException, BadPacketException {\n Message m = null;\n byte[] guid;\n try {\n while (!(m instanceof PingRequest)) {\n m = c.receive(500);\n }\n guid = ((PingRequest) m).getGUID();\n } catch (Interrupted...
"public void testKepler() throws DimensionMismatchException, NumberIsTooSmallException, MaxCountExceededException, NoBracketingException {\n doTestKepler(Decimal64Field.getInstance(), 2.18e-7, 4.0e-10);\n}\n"
"public AssetURI unmarshal(String uri) throws Exception {\n AssetURI assetURI = new AssetURI(uri);\n if (uri != null) {\n String moduleName = assetURI.getModuleName();\n String rawPath = assetURI.getRawPath();\n assetURI = new AssetURI(moduleName, rawPath, serverName);\n }\n return asse...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (xPathFragment.hasLeafElementType()) {\n marshalRecord.setLeafElementType(xPathFra...
"public static void validator(final String[] args) throws IllegalArgumentException {\n if (args.length == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n } else if (!\"String_Node_Str\".equalsIgnoreCase(args[0])) {\n final File configFile = new File(InstallConfigFileTemplate.FILE_P...
"public static List<ModelElement> getDependencyClients(ModelElement modelElement) {\n if (modelElement == null) {\n return new ArrayList<ModelElement>();\n }\n EList<Dependency> clientDependencys = modelElement.getSupplierDependency();\n List<ModelElement> supplierList = new ArrayList<ModelElement>()...
"public void testCreateDelete() throws Exception {\n final String uid = \"String_Node_Str\";\n final List<String> gids = createGIDs(\"String_Node_Str\");\n final String volumeName = \"String_Node_Str\";\n final UserCredentials uc = MRCClient.getCredentials(uid, gids);\n invokeSync(client.mkvol(mrcAddress...
"private void performOperation(Callable<Call> operation) {\n showProgressBar();\n try {\n return operation.call();\n } catch (Exception e) {\n onOperationFailed();\n }\n}\n"
"public static String collectDeviceData(BraintreeFragment fragment, String merchantId, String collectorUrl) {\n JSONObject deviceData = new JSONObject();\n try {\n DeviceCollector deviceCollector = new DeviceCollector(fragment.getActivity());\n sDeviceCollector = deviceCollector;\n deviceColl...
"public void resolveBorderConflict(CellArea cellArea, boolean isFirst) {\n IContent cellContent = cellArea.getContent();\n int columnID = cellArea.getColumnID();\n int colSpan = cellArea.getColSpan();\n IRowContent row = (IRowContent) cellContent.getParent();\n IStyle cellContentStyle = cellContent.getCo...
"public String getMessage() {\n Optional<JsonError> body = getResponse().getBody(JsonError.class);\n if (body.isPresent() && body.get().getMessage() != null) {\n return body.get().getMessage();\n } else {\n return super.getMessage();\n }\n}\n"
"public void changeWorld() {\n Se2_F32 oldToNew = new Se2_F32(1, 2, 0);\n Se2_F32 model = new Se2_F32();\n ImageMotionPointKey<ImageUInt8, Se2_F32> alg = new ImageMotionPointKey<ImageUInt8, Se2_F32>(null, null, null, model, 1000);\n alg.changeWorld(oldToNew);\n Se2_F32 worldToCurr = alg.getWorldToCurr();...
"public void logLogout(SSOToken ssot) {\n try {\n String logLogout = bundle.getString(\"String_Node_Str\");\n List<String> dataList = new ArrayList<String>();\n dataList.add(logLogout);\n StringBuilder messageId = new StringBuilder();\n messageId.append(\"String_Node_Str\");\n ...
"public final List<List<IGraphItem>> getSearchResultDepthOrdered() {\n List<List<IGraphItem>> resultList = createDepthSortedList(depthSortedList.size());\n Iterator<List<IGraphItem>> iterRawDataTopLevel = depthSortedList.iterator();\n int index = 0;\n while (iterRawDataTopLevel.hasNext()) {\n List<IG...
"public static void setupTMap(Node node) {\n if (!GlobalServiceRegister.getDefault().isServiceRegistered(IDesignerMapperService.class)) {\n return;\n }\n IDesignerMapperService service = (IDesignerMapperService) GlobalServiceRegister.getDefault().getService(IDesignerMapperService.class);\n IConnectio...
"public Integer call() throws Exception {\n Payload message = PayloadService.instance.findLatest(product.getId(), userId);\n if (message == null) {\n return 0;\n }\n if (message.getClients() != null) {\n SentProgress progress = new SentProgress(message.getClients().size());\n for (Strin...
"public void run() {\n TreeNodeEditPart nodePart = (TreeNodeEditPart) getSelectedObjects().get(0);\n TreeNode model = (TreeNode) nodePart.getModel();\n AbstractInOutTree abstractTree = null;\n TreeNode docRoot = null;\n boolean isLookup = false;\n if (model instanceof OutputTreeNode) {\n Output...
"public void testPadBytes() throws Exception {\n int TOTAL_LENGTH = 20;\n int TEST_SIZE = 10;\n int PAD_SIZE = TOTAL_LENGTH - TEST_SIZE;\n Buffer buffer = new AutomaticBuffer(10);\n byte[] test = new byte[10];\n random.nextBytes(test);\n buffer.putPadBytes(test, TOTAL_LENGTH);\n byte[] result = ...
"static public void createPath(String path) {\n try {\n File file = new File(path);\n String parent = file.getParent();\n if (parent != null) {\n File unit = new File(parent);\n if (!unit.exists())\n unit.mkdirs();\n }\n } catch (SecurityException s...
"protected void afterRun() {\n this.recycleBitmaps();\n}\n"
"private List<IndexClause> prepareIndexClause() {\n List<IndexClause> clauses = new ArrayList<IndexClause>();\n List<IndexExpression> expr = new ArrayList<IndexExpression>();\n for (Object o : getKunderaQuery().getFilterClauseQueue()) {\n if (o instanceof FilterClause) {\n FilterClause clause...
"public org.hl7.fhir.dstu2.model.Group convertGroup(org.hl7.fhir.dstu3.model.Group src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Group tgt = new org.hl7.fhir.dstu2.model.Group();\n copyDomainResource(src, tgt);\n for (org.hl7.fhir.dstu3.mode...
"public boolean nextKeyValue() throws IOException {\n if (key == null) {\n key = new LongWritable();\n }\n key.set(pos);\n if (value == null) {\n value = new Text();\n }\n int newSize = 0;\n while (getFilePosition() <= end || in.needAdditionalRecordAfterSplit()) {\n if (pos == ...
"protected Dimension getIntrinsicDimension(IImageContent content) throws BadElementException, MalformedURLException, IOException {\n Image image = null;\n switch(content.getImageSource()) {\n case IImageContent.IMAGE_FILE:\n URL url = new URL(content.getURI());\n InputStream in = url....
"public ProjectBuildingResult getProjectBuildingResult() {\n bootstrapMaven();\n try {\n if (this.buildingResult == null) {\n buildingResult = builder.build(getPOMFile(), request);\n }\n return buildingResult;\n } catch (ProjectBuildingException e) {\n throw new ProjectMo...
"public void destroyContainerServices(ContainerServices cs) throws ContainerException {\n try {\n ContainerServicesImpl csImpl = (ContainerServicesImpl) cs;\n AcsManagerProxy acsManagerProxy = additionalContainerServices.get(cs);\n acsManagerProxy.shutdownNotify();\n csImpl.releaseAllComp...
"public boolean finish() {\n boolean failed = false;\n finishBound();\n if (hasReturnType) {\n failed |= (returnType[0] == null);\n ((JMethod) method).setReturnType(returnType[0]);\n }\n List<CollectAnnotationData>[] argAnnotations = methodData.getArgAnnotations();\n if (argTypes.length ...
"public void addProperty(String key, String value) {\n if (value == null) {\n StringBuilder txt = new StringBuilder(128);\n txt.append(\"String_Node_Str\").append(key);\n LOG.warn(txt.toString());\n } else if (!key.matches(VALID_HEADER_CHARS)) {\n StringBuilder txt = new StringBuilder(...
"private void appendGenericFields() {\n Iterator it = otherSimpleFields.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry) it.next();\n String tag = entry.getKey().toString();\n if (\"String_Node_Str\".equals(tag))\n continue;\n appendTag(tag, (S...
"public void executeInitSql(Properties dbProps, String sqlFile) {\n try {\n System.out.println(\"String_Node_Str\" + sqlFile);\n Project project = new Project();\n project.init();\n SQLExec task = new SQLExec();\n SQLExec.OnError error = new SQLExec.OnError();\n error.setVal...
"public void testStreamConversion() throws Exception {\n ApplicationManager appManager = deployApplication(StreamConversionApp.class);\n WorkflowManager workflowManager = appManager.startWorkflow(\"String_Node_Str\", RuntimeArguments.NO_ARGUMENTS);\n workflowManager.getSchedule(\"String_Node_Str\").suspend();\...
"public void updateFrequency(int y) {\n controller.changeFrequency(y);\n if (display != null)\n display.updatePitchKnob(y);\n}\n"
"public int getInt(int col) {\n long index = getIndex(col);\n if (index < 0) {\n return Numbers.INT_NaN;\n }\n return colA(col).getInt(index * 4);\n}\n"
"public void apply(XSSchemaSet schema, ErrorReceiver errorReceiver) {\n if (topLevel != null) {\n this.errorReceiver = errorReceiver;\n UnmarshallerImpl u = BindInfo.getJAXBContext().createUnmarshaller();\n this.unmarshaller = u.getUnmarshallerHandler();\n ValidatorHandler v = BindInfo.bi...
"private boolean isSameInstance(Object view) {\n final int id = getId(view);\n return id == this.id;\n}\n"
"public double invokeNativeDouble(String name, Object jthis, Class<?>[] types, Object[] args) throws Throwable {\n JsValue result = invokeNative(name, jthis, types, args);\n String msgPrefix = composeResultErrorMsgPrefix(name, \"String_Node_Str\");\n Double value = JsValueGlue.get(result, null, Double.TYPE, ms...
"public static String getMyPetBuild() {\n if (!updated) {\n getManifestVersion();\n updated = true;\n }\n return myPetBuild;\n}\n"
"private void sendProgress(Queue<Pair<Object, MPISendMessage>> pendingSendMessages, int sendId) {\n boolean canProgress = true;\n while (pendingSendMessages.size() > 0 && canProgress) {\n Pair<Object, MPISendMessage> pair = pendingSendMessages.peek();\n MPISendMessage mpiSendMessage = pair.getValue(...
"public boolean hasPower(ItemStack me, int powerNeeded) {\n if (this.slot == 1) {\n if (!me.hasTagCompound()) {\n me.setTagCompound(new NBTTagCompound());\n }\n if (!me.stackTagCompound.hasKey(\"String_Node_Str\")) {\n me.stackTagCompound.setInteger(\"String_Node_Str\", 0);...
"public short getStillNeededIfNoOthersHandleIt(EMaterialType materialType) {\n Set<MultiRequestStack> stacksHandlingThisMaterial = handlingStacks[materialType.ordinal];\n for (MultiRequestStack stack : stacksHandlingThisMaterial) {\n if (stack.canAcceptMoreDeliveriesOf(materialType)) {\n return ...
"public synchronized void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, final IProgressMonitor monitor) throws CoreException {\n try {\n setProcessFinished(false);\n m_projectName = configuration.getAttribute(projectNameCfgAttribute, \"String_Node_Str\");\n m_platformNa...
"protected List<Pair<Long, String>> load() {\n List<GroupTO> groupTOs = groupRestClient.list(\"String_Node_Str\", -1, -1, new SortParam<>(\"String_Node_Str\", true), null);\n final Map<Long, String> result = new HashMap<>(groupTOs.size());\n for (GroupTO group : groupTOs) {\n result.add(Pair.of(group.ge...
"public int peel(byte[] buffer, int start, int bytes_available) {\n RBPair rbp = RBSerial.peel(buffer, start, bytes_available);\n int bytes_read = rbp.getNumberOfBytesRead();\n RBSerialMessage message = rbp.getMessage();\n byte b = message.getHeaderByte();\n if (b == RBSerialMessage.BRAKE) {\n } else ...
"public boolean apply(Game game, Ability source) {\n Permanent sourcePermanent = game.getPermanent(source.getSourceId());\n if (sourcePermanent != null) {\n int amount = sourcePermanent.getCounters().getCount(CounterType.P1P1);\n if (amount > 0) {\n sourcePermanent.addCounters(CounterType...
"protected void onResume() {\n super.onResume();\n BusProvider.get().register(this);\n if (restaurant == null) {\n progressDialog = new ProgressDialog(this);\n progressDialog.setTitle(\"String_Node_Str\");\n progressDialog.setMessage(\"String_Node_Str\");\n progressDialog.show();\n ...
"private boolean bindOnLongClickListener(Method method, OnLongClick onLongClick, Set<View> modifiedViews, Finder finder) {\n boolean invokeWithView = checkInvokeWithView(method, new Class[] { View.class });\n method.setAccessible(true);\n InjectedOnLongClickListener listener = new InjectedOnLongClickListener(t...
"private HearthTreeNode<BoardState> doBuffs(int targetMinionPlayerIndex, int targetMinionIndex, HearthTreeNode<BoardState> boardState, Deck deck) {\n if (targetMinionPlayerIndex == 1)\n return boardState;\n Minion minion = boardState.data_.getMinion(thisMinionPlayerIndex, targetMinionIndex - 1);\n if (m...
"private static void writeApiOnly(BufferedWriter w) throws IOException {\n writeIniFileLine(ApiOnlyTrueSetting, w);\n}\n"
"public IValue applyState(CompilerState state, IContext context) {\n int len = this.values.size();\n if (state == CompilerState.FOLD_CONSTANTS) {\n if (len == 1) {\n return this.values.get(0);\n }\n } else if (state == CompilerState.RESOLVE) {\n IVariableList variableList = cont...
"public static String getFolderName(String filePath) {\n if (isFileExist(filePath)) {\n return filePath;\n }\n int filePosi = filePath.lastIndexOf(File.separator);\n return (filePosi == -1) ? \"String_Node_Str\" : filePath.substring(0, filePosi);\n}\n"
"public void doDisplay(GLAutoDrawable drawable, int flags) {\n GL2 gl = drawable.getGL().getGL2();\n if (resetViewVolume && resizeEnabled) {\n resetViewVolume(gl);\n resetViewVolume = false;\n }\n if (isSelecting()) {\n invalidateProjectionMatrix();\n }\n gl.glPushMatrix();\n i...
"public void close(VirtualConnection inVC, Exception e) {\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {\n Tr.debug(tc, \"String_Node_Str\" + this + \"String_Node_Str\" + inVC);\n }\n if (streamID == 0 || streamID % 2 == 1) {\n if (e == null || e instanceof Http2Exception) {...
"private void decOpenCountLocked() {\n mOpenCount--;\n if (mOpenCount == 0) {\n nativeDestroy(mNative);\n if (mAssets != null) {\n mAssets.xmlBlockGone(hashCode());\n }\n }\n}\n"
"private static void filterSamples(final File srcDesignFile, final File destDesignFile, final double threshold) throws IOException, EoulsanIOException {\n if (srcDesignFile == null)\n throw new NullPointerException(\"String_Node_Str\");\n if (destDesignFile == null)\n throw new NullPointerException(...
"private Node createFilterBox() {\n filterTextField = new FilterTextField(Parser::check).setOnCancel(this::requestFocus).setOnShowDocs(ui.getBrowserComponent()::showFilterDocs).setOnConfirm((text) -> {\n Platform.runLater(() -> ui.triggerEvent(new ApplyingFilterEvent(this)));\n applyStringFilter(text);...
"public RequestParameter isValidSingleParam(String value) {\n try {\n Number number = parseNumber.apply(value);\n checkMaximum(number);\n checkMinimum(number);\n checkMultipleOf(number);\n return RequestParameter.create(number);\n } catch (NumberFormatException e) {\n thr...
"public void handleEvent(Event event) {\n if (event.widget.equals(txtTitle)) {\n getChart().getTitle().getLabel().getCaption().setValue(txtTitle.getText());\n } else if (event.widget.equals(fdcFont)) {\n if (event.type == FontDefinitionComposite.FONT_CHANTED_EVENT) {\n getChart().getTitle...
"public void onPostDownloaded(final RedditPreparedPost post) {\n postAddedHandler.sendMessage(General.handlerMessage(0, post));\n}\n"
"public Object getAdater(Object adaptableObject) {\n if (this.adapter != null && this.isSingleton) {\n return this.adapter;\n }\n if (this.adapterInstance != null) {\n return this.adapterInstance;\n }\n if (this.factory != null) {\n this.adapter = this.factory.getAdapter(adaptableObj...
"public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {\n return Item.getItemFromBlock(NContent.floraSapling);\n}\n"
"private int stormpathUserConsent(Study study) {\n int count = 0;\n Application application = StormpathFactory.createStormpathApplication(stormpathClient);\n AccountList accounts = application.getAccounts();\n for (Account account : accounts) {\n final CustomData customData = account.getCustomData();...
"protected void logProblem(String type, Object val) {\n if (lastWasProblem && currentProblemLoggedAsWarning) {\n if (log.isTraceEnabled())\n log.trace(\"String_Node_Str\", new Object[] { type, this, getBriefDescription(), val });\n } else {\n long nowTime = System.currentTimeMillis();\n ...
"public void runBeforeEachTest() throws LibrarySaveException, RepositoryException {\n xsdStringNode = NodeFinders.findNodeByName(\"String_Node_Str\", Node.XSD_NAMESPACE);\n ProjectNode uploadProject = createProject(\"String_Node_Str\", getRepositoryForTest(), \"String_Node_Str\");\n majorLibrary = LibraryNodeB...
"private void setBackground(LinearLayout topPanel, LinearLayout contentPanel, View customPanel, boolean hasButtons, TypedArray a, boolean hasTitle, View buttonPanel) {\n int fullDark = a.getResourceId(R.styleable.AlertDialog_fullDark, R.drawable.popup_full_dark);\n int topDark = a.getResourceId(R.styleable.AlertD...
"public void controlResized(ControlEvent e) {\n Rectangle r = scrolledComposite.getClientArea();\n if (getConnection().getDatabaseType() != null && getConnection().getDatabaseType().equals(EDatabaseConnTemplate.HIVE.getDBDisplayName())) {\n if (Platform.getOS().equals(Platform.OS_LINUX)) {\n scr...
"public void findConversationsByConversationIds(List<String> ids, AVIMConversationQueryCallback callback) {\n AVIMConversationQuery conversationQuery = ChatManager.getInstance().getQuery();\n if (ids.size() > 0 && null != conversationQuery) {\n conversationQuery.whereContainsIn(Constant.OBJECT_ID, ids);\n ...
"public static synchronized NavigableMap<byte[], NavigableMap<Long, byte[]>> get(String tableName, byte[] row, Long version) {\n ConcurrentNavigableMap<byte[], NavigableMap<byte[], NavigableMap<Long, Update>>> table = tables.get(tableName);\n Preconditions.checkArgument(table != null, \"String_Node_Str\" + tableN...
"private static boolean isStillAValidSource(BlockSourceInformation info, double range, ClickType clickType) {\n if (info == null || info.getBlock() == null) {\n return false;\n } else if (info.getClickType() != clickType) {\n return false;\n } else if (!info.getPlayer().getWorld().equals(info.get...
"public void compute(float x, float y, Point3D_F32 out) {\n p2.x = x;\n p2.y = y;\n GeometryMath_F32.mult(K_inv, p2, p2);\n removeRadial(p2.x, p2.y, distortion.radial, distortion.t1, distortion.t2, p2, tol);\n float u = p2.x;\n float v = p2.y;\n float a;\n float xi = mirrorOffset;\n float c0 ...
"public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n String label = \"String_Node_Str\";\n String detail = null;\n IMessage.Kind kind = IMessage.ERROR;\n if (value instanceof IMessage) {\n IMessage cm = (IMessage) value;\n ...
"private void deleteEntry(SessionContext context, DeleteParams args) throws SVNException, IOException {\n final EntryUpdater parent = getParent(args.parentToken);\n final int rev = args.rev.length > 0 ? args.rev[0] : -1;\n log.info(\"String_Node_Str\", args.name, rev);\n final VcsFile entry = parent.getEntr...
"public Element createUnownedElement(Node parent, XMLField xmlField) {\n XPathFragment lastFragment = xmlField.getXPathFragment();\n while (lastFragment.getNextFragment() != null) {\n lastFragment = lastFragment.getNextFragment();\n }\n String nodeName = lastFragment.getShortName();\n String names...
"public void readFromNBT(NBTTagCompound nbt, MappingRegistry registry) {\n block = registry.getBlockForId(nbt.getInteger(\"String_Node_Str\"));\n meta = nbt.getInteger(\"String_Node_Str\");\n if (nbt.hasKey(\"String_Node_Str\")) {\n NBTTagList rq = nbt.getTagList(\"String_Node_Str\", Constants.NBT.TAG_C...
"private void enteringServletContainer(Request req, Response res) {\n if (interceptors == null)\n return;\n for (ServletContainerInterceptor interceptor : interceptors) {\n try {\n interceptor.preInvoke(req, res);\n } catch (Throwable th) {\n log.log(Level.SEVERE, INTERN...
"public static void handleJSONException(JSONException e) throws ApiException {\n if (App.DEBUG) {\n Log.e(TAG, e.getMessage());\n }\n throw new ApiException(ERROR_JSON_EXCEPTION, e.getMessage(), e.getCause());\n}\n"
"public void info(Object arg0, Throwable arg1) {\n if (logLevel <= LOG_INFO)\n log.info(prefix + arg0, arg1);\n}\n"
"public boolean checkFlight(Player player, Distance distance) {\n if (distance.getYDifference() > 400) {\n return false;\n }\n double y1 = distance.fromY();\n double y2 = distance.toY();\n Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);\n if (y1 == y2 && !isMovingExem...
"public void visitNode(Tree tree) {\n if (tree.is(Kind.SCRIPT)) {\n checks.forEach(seCheck -> seCheck.cleanupAndStartFileAnalysis((ScriptTree) tree));\n return;\n }\n FunctionTree functionTree = (FunctionTree) tree;\n if (functionTree.body().is(Kind.BLOCK)) {\n ControlFlowGraph cfg = Co...
"public void onStop() {\n for (Thread t : _threadList) {\n if (t.isAlive())\n t.interrupt();\n }\n}\n"
"public static Rectangle2D bounds(Rectangle2D... rs) {\n Rectangle2D bounds = rs[0].getBounds2D();\n for (Rectangle2D r : rs) {\n if (r != null) {\n add(bounds, r);\n }\n }\n return bounds;\n}\n"
"public static int getTableVersion(String tablename) throws IOFailure {\n Connection c = DBConnect.getDBConnection();\n PreparedStatement s = null;\n int version = 0;\n try {\n s = c.prepareStatement(\"String_Node_Str\" + \"String_Node_Str\");\n s.setString(1, tablename);\n ResultSet re...
"private boolean sameDriverForJDBC(Node node, Connection repositoryConnection, List<Map<String, Object>> oldList, Object objectValue) {\n boolean sameValues = true;\n List objectList = (List) objectValue;\n if (oldList.size() != objectList.size()) {\n sameValues = false;\n } else {\n if (isOld...
"public void setShowPastItems(boolean enable) {\n PickerSpinnerAdapter adapter = (PickerSpinnerAdapter) getAdapter();\n if (enable && !showPastItems) {\n final Resources res = getResources();\n final Calendar date = Calendar.getInstance();\n date.add(Calendar.DAY_OF_YEAR, -1);\n insert...
"public boolean isInFactory() {\n return factoryMode;\n}\n"
"public void run() {\n try {\n if (sApplication != null) {\n return;\n }\n sApplication = getSystemApp();\n } catch (Throwable e) {\n e.printStackTrace();\n } finally {\n synchronized (LOCK) {\n LOCK.notifyAll();\n }\n }\n}\n"
"private void learnPosOnly() {\n resultQueries.clear();\n resultTrees.clear();\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n Monitor monitor = MonitorFactory.getTimeMonitor(\"String_Node_Str\");\n monitor.start();\n lgg = lggGenerator.getLGG(posQueryTrees);\n ...
"private static List<FnMatch> concretiseInputs(Context context, FunctionCall fc, boolean resolveOverload) throws UserException {\n List<Type> argTypes = new ArrayList<Type>(fc.args().size());\n for (SwiftAST arg : fc.args()) {\n argTypes.add(TypeChecker.findExprType(context, arg));\n }\n FnCallInfo i...
"private boolean createInstanceAndStartDependency(Application application) throws TopologyInConsistentException, PolicyValidationException {\n boolean initialStartup = true;\n List<String> instanceIds = new ArrayList<String>();\n String instanceId;\n ApplicationPolicy applicationPolicy = PolicyManager.getIn...