content
stringlengths
40
137k
"private int[] readColors(String string) {\n int[] colors = new int[0];\n StringTokenizer tokenizer = new StringTokenizer(string, COLOR_DELIMITER);\n int index = 0;\n while (tokenizer.hasMoreTokens()) {\n colors = Arrays.copyOf(colors, colors.length + 1);\n colors[index] = Integer.parseInt(tok...
"public Type sub(final MethodVisitor method, final int programPoint) {\n if (programPoint == INVALID_PROGRAM_POINT) {\n method.visitInsn(ISUB);\n } else {\n ldc(method, programPoint);\n JSType.SUB_EXACT.invoke(method);\n }\n return INT;\n}\n"
"default ProductVariant getVariantOrMaster(final int variantId) {\n return ProductsPackage.getVariantOrMaster(variantId, this);\n}\n"
"public static List getDataSources() {\n return SessionHandleAdapter.getInstance().getReportDesignHandle().getVisibleDataSources();\n}\n"
"public void collectFields() throws ValidationException {\n switch(list.getSelectedIndex()) {\n case 0:\n this.theType = NeuralNetworkType.EncogFactoryCode;\n break;\n case 1:\n this.theType = NeuralNetworkType.Automatic;\n break;\n case 2:\n ...
"public Content next() {\n Optional<Content> optional = channelUtils.getContent(channelUrl, current);\n if (!optional.isPresent()) {\n logger.warn(\"String_Node_Str\" + channelUrl + \"String_Node_Str\" + current);\n current++;\n optional = channelUtils.getContent(channelUrl, current);\n }\...
"public static MonetaryAmount calculate(MonetaryAmount amount, Rate rate, int periods, int timesCompounded) {\n BigDecimal part2 = rate.get().divide(BigDecimal.valueOf(timesCompounded), mathContext());\n BigDecimal base = one().add(part2);\n BigDecimal multiplicator = base.pow(periods * timesCompounded, mathCo...
"protected void create(List<TableInfo> tableInfos) {\n for (TableInfo tableInfo : tableInfos) {\n if (tableInfo != null && tableInfo.getTableName() != null) {\n try {\n admin.getTableDescriptor(tableInfo.getTableName().getBytes());\n admin.disableTable(tableInfo.getTab...
"public void writeGet(MethodVisitor visitor) {\n visitor.visitVarInsn(this.type.getLoadOpcode(), this.index);\n}\n"
"public boolean shouldBackup() {\n return true;\n}\n"
"public <T> T populatePojo(T pojo, Type... genericTypeArgs) {\n ManufacturingContext manufacturingCtx = new ManufacturingContext();\n manufacturingCtx.getPojos().put(pojo.getClass(), 1);\n final Map<String, Type> typeArgsMap = new HashMap<String, Type>();\n Type[] genericTypeArgsExtra = TypeManufacturerUtil...
"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 || f...
"void updateReportedVisibilityLocked() {\n if (appToken == null) {\n return;\n }\n int numInteresting = 0;\n int numVisible = 0;\n boolean nowGone = true;\n if (DEBUG_VISIBILITY)\n Log.v(TAG, \"String_Node_Str\" + this);\n final int N = allAppWindows.size();\n for (int i = 0; i < N...
"private Object getValue(Properties attributes, String attributeName) {\n final String type = getType(attributeName);\n final String value = (String) attributes.get(attributeName);\n if (type != null && type.equals(\"String_Node_Str\") && !value.isEmpty()) {\n return new Integer(value);\n } else {\n ...
"public void setRecipe(SynthesisRecipe recipe) {\n clearRecipeMatrix();\n if (recipe != null) {\n ItemStack[] ingredients = MinechemUtil.convertChemicalArrayIntoItemStackArray(recipe.isShaped() ? recipe.getShapedRecipe() : recipe.getShapelessRecipe());\n for (int i = 0; i < Math.min(kRecipe.length, ...
"public void onCreate() {\n if (Config.LOGV)\n Log.v(LOG_TAG, \"String_Node_Str\");\n ContentResolver resolver = getContentResolver();\n if (phone == null) {\n PhoneFactory.makeDefaultPhones(this);\n phone = PhoneFactory.getDefaultPhone();\n NotificationMgr.init(this);\n phon...
"public void addListener(String name, Object listener, Object key, boolean includeValue, Instance.InstanceType instanceType) {\n boolean remotelyRegister = true;\n for (ListenerItem listenerItem : listeners) {\n if (!remotelyRegister) {\n break;\n }\n if (!listenerItem.localListene...
"protected void onFileSelected(Uri originalUri) {\n try {\n ParcelFileDescriptor descriptor = getContentResolver().openFileDescriptor(originalUri, \"String_Node_Str\");\n Bitmap bitmap = BitmapFactory.decodeFileDescriptor(descriptor.getFileDescriptor(), null, bitmapOptions);\n new ReceiveImageFi...
"public void operationComplete(final ChannelFuture future) throws Exception {\n Callable<Void> c = new Callable<Void>() {\n public Void call() throws Exception {\n inOperationComplete = true;\n try {\n ResponseWriterListener.this.future = future;\n ResponseW...
"public static boolean validateTool(String key, int type, boolean sneaking) {\n String[] items = UtilityProperties.getSettings().getString(key).split(\"String_Node_Str\");\n List<String> item = Arrays.asList(items);\n if (item.contains(\"String_Node_Str\")) {\n return true;\n }\n boolean isShift;\...
"public void testCopyToBlobId() throws Exception {\n BlobId targetId = BlobId.of(\"String_Node_Str\", \"String_Node_Str\");\n CopyWriter copyWriter = createMock(CopyWriter.class);\n BlobInfo target = BlobInfo.builder(targetId).build();\n Capture<CopyRequest> capturedCopyRequest = Capture.newInstance();\n ...
"public int compare(Object o1, Object o2) {\n Object3D obj1 = getObjectFromEvent(o1, true);\n Object3D obj2 = getObjectFromEvent(o2, true);\n if (obj1.getZMax() > obj2.getZMax()) {\n return -1;\n } else if (obj1.getZMax() < obj2.getZMax()) {\n return 1;\n } else {\n return 0;\n }\...
"public boolean canBlockSkip(final IFilter filter) {\n switch(filter.getFilterType()) {\n case NUMBER:\n NumberFilter numberFilter = (NumberFilter) filter;\n short setNumber;\n try {\n setNumber = numberFilter.getNumberObject().getShort();\n } catch (...
"public K classify(Collection<T> features) {\n SortedSet<Classification<T, K>> probabilites = this.categoryProbabilities(features);\n System.out.println(\"String_Node_Str\");\n for (Classification<T, K> prob : probabilites) System.out.println(prob);\n if (probabilites.size() > 0) {\n System.out.print...
"private void promotion(final String type) {\n final JFrame popup = new JFrame(\"String_Node_Str\");\n popup.setSize(500, 300);\n popup.setLocationRelativeTo(null);\n popup.setLayout(new GridBagLayout());\n popup.setResizable(false);\n final DefaultListModel emptyList = new DefaultListModel();\n fi...
"private void genHasGapRs() throws BirtException {\n Context context = Context.enter();\n Scriptable scope = context.initStandardObjects();\n Context.exit();\n QueryDefinition qd = newReportQuery();\n prepareExprNameAndQuery(qd);\n IQueryResults qr = myGenDataEngine.prepare(qd).execute(scope);\n qu...
"public MetaClientConfig getMetaClientConfig() {\n return this.metaClientConfig;\n}\n"
"private void multiBlockerDamage(boolean first, Game game) {\n Permanent attacker = game.getPermanent(attackers.get(0));\n if (attacker == null) {\n return;\n }\n Player player = game.getPlayer(attacker.getControllerId());\n int damage = getDamageValueFromPermanent(attacker, game);\n if (canDam...
"public void doExplode() {\n if (!this.world().isRemote) {\n if (this.callCount > 100 / this.proceduralInterval() && this.thread.isComplete) {\n this.controller.endExplosion();\n }\n if (this.canFocusBeam(this.world(), position)) {\n Vector3 currentPos;\n Block b...
"public void deployBlueprint(World world, BlockPos pos, EnumFacing dir, Blueprint bpt) {\n bpt.id = new LibraryId();\n bpt.id.extension = \"String_Node_Str\";\n BptContext context = bpt.getContext(world, bpt.getBoxForPos(pos));\n if (bpt.rotate) {\n if (dir == EnumFacing.EAST) {\n } else if (d...
"public static byte[] execute(final RedisRequest request, RedisFrontConnection frontCon) {\n int numArgs = request.getNumArgs();\n if (numArgs != 2 && numArgs != 3 && numArgs != 4) {\n return \"String_Node_Str\".getBytes();\n }\n byte[] arg1 = request.getArgs()[0];\n String arg2 = new String(reque...
"protected void okPressed() {\n if (page.isFormatModified()) {\n setResult(new String[] { page.getCategory(), page.getPattern() });\n super.okPressed();\n } else {\n cancelPressed();\n }\n}\n"
"private void restartSuggestionsOnWordTouchedByCursor() {\n if (mAppWorkAroundsUtils.isBrokenByRecorrection())\n return;\n if (mLastSelectionStart != mLastSelectionEnd)\n return;\n if (mLastSelectionStart < 0)\n return;\n final SettingsValues currentSettings = mSettings.getCurrent();\n ...
"public boolean flushEntity(UpdateContext context, E entity, Object view, V value, Runnable postReplaceListener) {\n if (flushOperation != null) {\n replaceWithRecordingCollection(context, view, value, collectionActions);\n invokeFlushOperation(context, view, entity, value);\n return true;\n ...
"public double call(double v) {\n x.v++;\n return x.v;\n}\n"
"public void terminate() {\n topologyReceiver.terminate();\n statisticsNotifier.terminate();\n terminated = true;\n}\n"
"private ArrayDefinition createLongArray() {\n IntegerDeclaration decl = new IntegerDeclaration(32, false, 10, ByteOrder.BIG_ENDIAN, Encoding.NONE, \"String_Node_Str\", 8);\n IntegerDefinition[] defs = createIntDefs(10, 32);\n ArrayDefinition temp = setUpDeclaration(decl, defs);\n return temp;\n}\n"
"public String toString() {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n if (type == (IndexType.FULL_TEXT)) {\n options = generateLuceneOptions();\n sb.append(\"String_Node_Str\");\n }\n sb.append(\"String_Node_Str\");\n if (createIfNotExists) {\n sb.append(\"String...
"protected void renderPoints(int start, int stop) {\n gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n gl.glEnableClientState(GL10.GL_COLOR_ARRAY);\n if (vertexBuffer.capacity() / 3 < 3 * (stop - start)) {\n expandBuffers();\n }\n vertexBuffer.rewind();\n colorBuffer.rewind();\n float sw = ve...
"public void visitTextDataItem(TextDataHandle handle) {\n DynamicTextItemDesign dynamicTextItem = new DynamicTextItemDesign();\n setupReportItem(dynamicTextItem, handle);\n String valueExpr = handle.getValueExpr();\n String contentType = handle.getContentType();\n dynamicTextItem.setContent(createExpress...
"public void initCodePath(IContext c) throws ProcessorException {\n if (buildChildrenJobs != null) {\n buildChildrenJobs.clear();\n }\n ITalendProcessJavaProject tProcessJavaProject = getTalendJavaProject();\n if (tProcessJavaProject == null) {\n throw new ProcessorException(Messages.getString...
"protected void setTaskService(TaskService taskService) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\");\n }\n ServiceReferenceHolder.getInstance().setTaskService(taskService);\n}\n"
"public NamingEnumeration listBindings(String name) throws NamingException {\n ArrayList list = listNames(name);\n return new BindingsIterator<Binding>(this, list.iterator(), false);\n}\n"
"public void collectRequiredInstanceTypes(final InstanceRequestMap instanceRequestMap, final ExecutionState executionState) {\n final Set<AbstractInstance> collectedInstances = new HashSet<AbstractInstance>();\n final ExecutionGroupVertexIterator groupIt = new ExecutionGroupVertexIterator(this.getExecutionGraph()...
"private List<UpdateResult> checkNodePropertiesFromRepository(final Node node, boolean onlySimpleShow) {\n if (node == null) {\n return Collections.emptyList();\n }\n List<UpdateResult> propertiesResults = new ArrayList<UpdateResult>();\n for (IElementParameter curPropertyParam : node.getElementParam...
"public void write(final URI currentFile) throws DITAOTException {\n this.currentFile = currentFile;\n final URI hrefValue = toURI(getValue(rootTopicref, ATTRIBUTE_NAME_HREF));\n final URI copytoValue = toURI(getValue(rootTopicref, ATTRIBUTE_NAME_COPY_TO));\n final String scopeValue = getCascadeValue(rootTo...
"public void select(FileComponent cc) {\n int byteOffset = cc.getOffset();\n int rowIndex = byteOffset / BYTES_PER_ROW;\n int rows = textArea3.getText().length() / (BYTES_PER_ROW + 1);\n textArea2.positionCaret(calcBytesTextPosition(cc.getOffset()));\n textArea2.selectPositionCaret(calcBytesTextPosition(...
"public void preinitialize() throws IllegalActionException {\n if (_fmiModelDescription == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n super.preinitialize();\n if (_debugging) {\n _debugToStdOut(\"String_Node_Str\");\n }\n try {\n _nativeLibrary = ...
"private static int getPacketCount(byte[] buf, int off) {\n int chunkType = (buf[off] & 0x80) >> 7;\n if (chunkType == CHUNK_TYPE_VECTOR) {\n int symbolType = buf[off] & 0x40 >> 6;\n return symbolType == SYMBOL_TYPE_SHORT ? 14 : 7;\n } else if (chunkType == CHUNK_TYPE_RLE) {\n return ((buf...
"public static String convert(String underscore) {\n if (underscore == null || underscore.isEmpty())\n return underscore;\n if (FeatureDetector.isCacheUnderscoreToCamelcaseEnabled() && cache.containsKey(underscore))\n return cache.get(underscore);\n String[] stringTokens = underscore.split(\"Stri...
"public void delete(Map<String, String> tenantId, String type, Object id) {\n EntityManager em = getEmf().createEntityManager(tenantId);\n try {\n transaction.beginTransaction(em);\n Object entity = em.find(getClass(type), id);\n if (entity != null) {\n em.remove(entity);\n ...
"public boolean isAborted() {\n return !isAlive();\n}\n"
"public boolean onInterceptTouchEvent(MotionEvent ev) {\n if (mIsScrollableViewHandlingTouch || !isTouchEnabled()) {\n mDragHelper.abort();\n return false;\n }\n final int action = MotionEventCompat.getActionMasked(ev);\n final float x = ev.getX();\n final float y = ev.getY();\n final fl...
"protected void pageChange(int newPageIndex) {\n super.pageChange(newPageIndex);\n if (isRefreshResultPage && columnResultPage != null && newPageIndex == columnResultPage.getIndex()) {\n ((ColumnAnalysisResultPage) columnResultPage).refresh((ColumnMasterDetailsPage) getMasterPage());\n }\n}\n"
"public DBObject getFieldsObject() {\n if (fields == null || fields.length == 0)\n return null;\n Map<String, Integer> fieldsFilter = new HashMap<String, Integer>();\n for (String field : this.fields) {\n StringBuffer sb = new StringBuffer(field);\n Mapper.validate(clazz, ds.getMapper(), s...
"public Container add(final short i) {\n final int x = Util.toIntUnsigned(i);\n final long previous = bitmap[x / 64];\n bitmap[x / 64] |= (1l << x);\n cardinality += (previous ^ bitmap[x / 64]) >>> x;\n return this;\n}\n"
"public void test8bits() {\n try {\n new TransformSound(new PrintlnTransformObserver()).transformWav(input, output, new EightBitsSoundTransformation(25));\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n}\n"
"public double getValue() {\n if (!cacheStale) {\n return cachedValue;\n }\n if (objWeight == 0) {\n return 0.0;\n }\n for (MaxEntGEConstraint constraint : constraints) {\n constraint.zeroExpectations();\n }\n Arrays.fill(cachedGradient, 0);\n int numFeatures = trainingList....
"private static <T> T getProperty(CacheService cache, Object entity, String... propertyPath) {\n if (null == entity) {\n return null;\n }\n int len = propertyPath.length;\n E.illegalArgumentIf(len < 1);\n Object lastEntity = null;\n for (int i = 0; i < len; ++i) {\n String prop = propert...
"public void getSparkByApp(HttpRequest request, HttpResponder responder, String appId) {\n programLifecycleHttpHandler.getSparkByApp(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE, appId);\n}\n"
"public Mono<ListProcessesResponse> retrieveProcesses(String orgId, String spaceId, String appId) {\n if (orgId.equals(ORG_UUID) && spaceId.equals(SPACE_UUID)) {\n List<ProcessResource> list = new LinkedList<>();\n Data data = Data.builder().timeout(100).build();\n HealthCheck hc = HealthCheck.b...
"public float getHeight() {\n if (bounds != null && bounds.getHeight() > 0)\n return bounds.getHeight();\n return 200;\n}\n"
"public void startRequest(MRCRequest rq) {\n try {\n final chownRequest rqArgs = (chownRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n Path p = new Path(r...
"private void loadComponentsFromFolder(String pathSource, AbstractComponentsProvider provider) {\n boolean isCustom = false;\n if (\"String_Node_Str\".equals(provider.getId()) || \"String_Node_Str\".equals(provider.getId())) {\n isCustom = true;\n }\n File source;\n try {\n source = provide...
"private void showAddUserPanel(boolean showPanel, boolean showPrivacy) {\n if (addPhoneUserPanel != null) {\n addPhoneUserPanel.setVisible(false);\n }\n if (addUserPanel == null) {\n addUserPanel = new AddUserPanel(client, session, myPresenceInfo, caller, group, Mode.ADD);\n addUserPanel.a...
"public void testJsOnlyEx2() {\n List<VjoSemanticProblem> problems = getVjoSemanticProblem(VjoValidationBaseTester.VJLIB_FOLDER, \"String_Node_Str\", \"String_Node_Str\", this.getClass(), \"String_Node_Str\", false);\n assertProblemEquals(expectProblems, problems);\n}\n"
"public void testInterceptContinueFormDefault() throws Exception {\n isInterceptedMethod = true;\n ltci.setMPP(mpp);\n Properties props = new Properties();\n props.put(JavaEESecConstants.LOGIN_TO_CONTINUE_LOGINPAGE, LOGIN_PAGE);\n props.put(JavaEESecConstants.LOGIN_TO_CONTINUE_ERRORPAGE, ERROR_PAGE);\n ...
"public void ensureCapacity(int index) {\n if ((index / 8 + 1) >= bytes.length) {\n extend(index);\n }\n}\n"
"protected Bitmap doInBackground(String... params) {\n path = params[0];\n BitmapFactory.Options bfo = new BitmapFactory.Options();\n bfo.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, bfo);\n bfo.inSampleSize = calculateInSampleSize(bfo, targetWidth, targetHeight);\n bfo.inJustDecodeBoun...
"private ODMcomplexTypeDefinitionFormData getFormDataPerCrf(CRFVersionBean crfVersion, StudyEventBean nextEvent, List<EventCRFBean> eventCrfs, CRFDAO crfDAO, String formUrl) {\n EventCRFBean selectedEventCRFBean = null;\n CRFBean crfBean = (CRFBean) crfDAO.findByVersionId(crfVersion.getId());\n for (EventCRFBe...
"public void onAutomatedTransferStatusChecked(OnAutomatedTransferStatusChecked event) {\n if (isFinishing()) {\n return;\n }\n if (event.isError()) {\n handleAutomatedTransferFailed(event.error.message);\n } else {\n if (event.isCompleted) {\n cancelAutomatedTransferDialog();...
"public ProjectBuildingResult getProjectBuildingResult() {\n if (this.buildingResult == null) {\n ProjectBuildingRequest request = null;\n File pomFile = getPOMFile().getUnderlyingResourceObject();\n try {\n request = container.getRequest();\n buildingResult = container.get...
"private void pickupSeasonalHolidays(final LocalDate month, final Map<LocalDate, Holiday> holidays) {\n final List<SeasonalHoliday> seasonalHolidays = seasonalHolidaysMapping.get(month);\n if (seasonalHolidays == null) {\n return;\n }\n for (final SeasonalHoliday seasonalHoliday : seasonalHolidays) {...
"public ObjectEntity transitionObjectToState(final ObjectEntity entity, ObjectState destState) throws IllegalResourceStateException, MetadataOperationFailureException {\n Function<ObjectEntity, ObjectEntity> transitionFunction;\n switch(destState) {\n case creating:\n transitionFunction = Object...
"private void handleRenderable(Renderable renderable, Context context, Result result) {\n try {\n renderable.render(context, result);\n } catch (Exception e) {\n logger.log(Level.SEVERE, \"String_Node_Str\", e);\n }\n}\n"
"protected ItemStack distributeItemToPipes(int fromSlot, ItemStack itemToDistribute) {\n if (itemToDistribute == null) {\n return null;\n }\n ForgeDirection[] dirsToCheck = { ForgeDirection.NORTH, ForgeDirection.SOUTH, ForgeDirection.EAST, ForgeDirection.WEST, ForgeDirection.UP, ForgeDirection.DOWN };\n...
"public void checkErrors(DownloadLink theLink) throws NumberFormatException, PluginException {\n if (br.containsHTML(\"String_Node_Str\"))\n throw new PluginException(LinkStatus.ERROR_TEMPORARILY_UNAVAILABLE, \"String_Node_Str\", 10 * 60 * 1000l);\n}\n"
"public static double length(Vector3 a) {\n return Math.sqrt(lengthSquared(a));\n}\n"
"public RealmResultsQueryStep add(WeakReference<RealmResults<?>> weakReference, long handoverQueryPointer, ArgumentsHolder queryArguments) {\n if (this.realmResultsEntries == null) {\n this.realmResultsEntries = new ArrayList<QueryEntry>(1);\n }\n this.realmResultsEntries.add(new QueryEntry<RealmResults...
"protected Control createDialogArea(Composite parent) {\n parent.getShell().setText(\"String_Node_Str\");\n Composite composite = (Composite) super.createDialogArea(parent);\n composite.setBackground(composite.getDisplay().getSystemColor(SWT.COLOR_WHITE));\n GridLayout layout = (GridLayout) composite.getLay...
"public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {\n JobDataMap dataMap = jobExecutionContext.getJobDetail().getJobDataMap();\n CronEventTrigger cronEventTrigger = (CronEventTrigger) dataMap.get(\"String_Node_Str\");\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"S...
"public void undoPortRedirect(int from, int to) {\n Log.d(TAG, \"String_Node_Str\");\n try {\n super.run(\"String_Node_Str\" + from + \"String_Node_Str\" + System.getNetwork().getLocalAddressAsString() + \"String_Node_Str\" + to);\n super.run(\"String_Node_Str\");\n } catch (Exception e) {\n ...
"private void prepareMeasure(TabularCubeHandle cubeHandle, QueryDefinition query, List resultMetaList) {\n List measureGroups = cubeHandle.getContents(CubeHandle.MEASURE_GROUPS_PROP);\n for (int i = 0; i < measureGroups.size(); i++) {\n MeasureGroupHandle mgh = (MeasureGroupHandle) measureGroups.get(i);\n ...
"HttpLoggingInterceptor provideHttpLoggingInterceptor() {\n return new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY);\n}\n"
"public byte[] modify(ClassLoader classLoader, String javassistClassName, ProtectionDomain protectedDomain, byte[] classFileBuffer) {\n if (logger.isInfoEnabled()) {\n logger.info(\"String_Node_Str\", javassistClassName);\n }\n try {\n InstrumentClass myBatisClientImpl = byteCodeInstrumentor.getC...
"public ActionResult<ItemStack> onItemRightClick(ItemStack itemStack, World world, EntityPlayer player, EnumHand hand) {\n if (hand == EnumHand.OFF_HAND) {\n return new ActionResult(EnumActionResult.FAIL, itemStack);\n }\n PSDFluidStorage tank = (PSDFluidStorage) itemStack.getCapability(CapabilityFluidH...
"public static <T> T executeUnderKerberos(String userName, String password, PrivilegedAction<T> action) throws IOException {\n final String errMsg = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n class MySecureClientLoginConfiguration extends javax.security.auth.login.Configuration {\n ...
"private void calcDistances(MetricsBag bag) {\n inDegreesDist = inDegrees.emdDistance(bag.inDegrees);\n outDegreesDist = outDegrees.emdDistance(bag.outDegrees);\n inPageRanksDist = inPageRanks.emdDistance(bag.inPageRanks);\n outPageRanksDist = outPageRanks.emdDistance(bag.outPageRanks);\n triadicProfileD...
"private void createEdge(List<ODocument> documents, OClass edgeClass) {\n OrientGraph tx = orientGraphProvider.get();\n for (ODocument createTo : documents) {\n tx.addEdge(null, tx.getVertex(documentModel.getObject().getIdentity()), tx.getVertex(createTo.getIdentity()), edgeClass.getName());\n }\n}\n"
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n resp.setContentType(\"String_Node_Str\");\n resp.getWriter().println(\"String_Node_Str\");\n GcsService gcsService = GcsServiceFactory.createGcsService();\n GcsFilename filename = new GcsFilename(BUCKETNAME, FILENAME...
"public void close() {\n if (clientState.compareAndSet(true, false)) {\n if (zookeeper != null) {\n try {\n zookeeper.close();\n } catch (InterruptedException ignore) {\n logger.info(\"String_Node_Str\" + ignore.getMessage(), ignore);\n Thread...
"private IterCalc createCalc(Exp arg, ExpCompiler compiler, List<ResultStyle> resultStyles) {\n final Type type = arg.getType();\n if (type instanceof SetType) {\n final Calc calc = compiler.compileAs(arg, null, resultStyles);\n final Type elementType = ((SetType) type).getElementType();\n if...
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n if (XMLConstants.XOP_URL.equals(namespaceURI) && (INCLUDE_ELEMENT_NAME.equals(localName) || INCLUDE_ELEMENT_NAME.equals(qName))) {\n this.c_id = atts.getValue(\"String_Node_Str\", HREF_ATTRI...
"public void outputContextTest() {\n final AIConfiguration config = new AIConfiguration(getAccessToken(), getSubscriptionKey(), AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System);\n updateConfig(config);\n final AIDataService aiDataService = new AIDataService(Robolectric.appl...
"private void tryAddRendererToVideoTrack() {\n if (videoRenderer == null && videoTrack != null && ViewCompat.isAttachedToWindow(this)) {\n EglBase.Context sharedContext = EglUtils.getRootEglBaseContext();\n if (sharedContext == null) {\n Log.e(LOG_TAG, \"String_Node_Str\");\n retu...
"public boolean equals(Object obj) {\n if (!(obj instanceof ConstrainedColumn)) {\n return false;\n }\n return ((SegmentHeader) obj).getUniqueID() == this.getUniqueID();\n}\n"
"private boolean colliding(int checkX, int checkY, int checkOrientation) {\n int[][] thePiece = POSSIBLE_BLOCKS.get(currentBlockId).getShape(checkOrientation);\n try {\n for (int y = 0; y < thePiece[0].length; ++y) {\n for (int x = 0; x < thePiece.length; ++x) {\n if (thePiece[x][...
"protected void _checkSensorActuatorNetworkConsistency() throws IllegalActionException {\n if (getContainer() instanceof TypedCompositeActor) {\n for (TypedIOPort port : (List<TypedIOPort>) (((TypedCompositeActor) getContainer()).inputPortList())) {\n for (TypedIOPort sinkPort : (List<TypedIOPort>)...
"public void initializeNamespaceMaps() {\n Stack records = new Stack();\n UnmarshalRecord next = owningRecord;\n while (next != null) {\n records.push(next);\n next = next.getParentRecord();\n }\n for (int i = 0; i < records.size(); i++) {\n next = (UnmarshalRecord) records.pop();\n ...
"public ResourceTO update(final HttpServletResponse response, final ResourceTO resourceTO) throws SyncopeClientCompositeErrorException, NotFoundException {\n LOG.debug(\"String_Node_Str\", resourceTO);\n TargetResource resource = null;\n if (resourceTO != null && resourceTO.getName() != null) {\n resour...