content
stringlengths
40
137k
"public OSchemaHelper linkedClass(String className) {\n checkOProperty();\n OClass linkedToClass = schema.getClass(className);\n if (linkedToClass == null)\n throw new IllegalArgumentException(\"String_Node_Str\" + className + \"String_Node_Str\");\n if (!Objects.equal(linkedToClass, lastProperty.get...
"private CoordinateOperation search(final CoordinateReferenceSystem sourceCRS, final CoordinateReferenceSystem targetCRS) throws IllegalArgumentException, ConversionException, FactoryException {\n final String sourceID = findCode(sourceCRS);\n if (sourceID == null) {\n return null;\n }\n final String...
"public void dispose() {\n if (!isLock) {\n unlockObject();\n }\n super.dispose();\n}\n"
"public void setUp() {\n owner1 = TestUtil.createOwner();\n owner2 = TestUtil.createOwner();\n ownerCurator.create(owner1);\n ownerCurator.create(owner2);\n product1 = new Product(PRODUCT_CPULIMITED, PRODUCT_CPULIMITED);\n product2 = TestUtil.createProduct();\n productCurator.create(product1);\n ...
"public void testDependencyTraversalNoSuchPackageException() throws Exception {\n createFooWithDependencyOnMissingBarPackage();\n ImmutableList<String> patternSequence = ImmutableList.of(\"String_Node_Str\");\n WalkableGraph walkableGraph = getGraphFromPatternsEvaluation(patternSequence);\n assertValidValue...
"public void close() {\n if (helper != null) {\n helper.close();\n }\n}\n"
"private void createQuery(RepositoryNode queriesConnectionNode, IRepositoryViewObject repObj, QueriesConnection queriesConnection) {\n displayQueries.clear();\n for (Object element : queriesConnection.getQuery()) {\n Query query = (Query) element;\n boolean isDelete = SubItemHelper.isDeleted(query);...
"public CompletableFuture<InMemorySession> save(InMemorySession session) {\n if (session == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n String id = session.getId();\n session.setNew(false);\n InMemorySession existing = sessions.getIfPresent(id);\n if (session != existing) ...
"private static ReaderPost getPostFromCursor(Cursor c) {\n if (c == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n ReaderPost post = new ReaderPost();\n int idxText = c.getColumnIndex(\"String_Node_Str\");\n if (idxText > -1) {\n post.setText(c.getString(idxText));...
"protected void runAnimations() {\n startTransition();\n for (int i = 0; i < mPlayStartValuesList.size(); ++i) {\n TransitionValues start = mPlayStartValuesList.get(i);\n TransitionValues end = mPlayEndValuesList.get(i);\n startTransition();\n runAnimator(anim);\n }\n mPlayStartV...
"public String getValue() {\n String value;\n if (this.hash != null)\n value = this.hash;\n else\n value = 0;\n reset();\n return value;\n}\n"
"public void test1() throws SoundTransformException {\n final int value = 200;\n final int twopercents = (int) (value * 2.0 / 100 - 1);\n final List<String> messages = new LinkedList<String>();\n final int[] t = new int[2000];\n for (int i = 200; i < 600; i++) {\n t[i] = (int) (value + Math.random...
"public IAEItemStack getLow(FuzzyMode fuzzy, boolean ignoreMeta) {\n AEItemStack bottom = new AEItemStack(this);\n AEItemDef newDef = bottom.def = bottom.def.copy();\n if (ignoreMeta) {\n newDef.dspDamage = newDef.damageValue = 0;\n newDef.reHash();\n return bottom;\n }\n if (newDef....
"protected void createView() {\n ((List) screen).deleteAll();\n indexHash = new SortedIntSet();\n for (int i = 0; i < model.getNumQuestions(); i++) {\n if (model.isRelevant(i)) {\n String stringVal;\n IAnswerData val = model.getForm().getValue(model.getQuestion(i));\n if...
"public ReplSetHeartbeatReplyBuilder setSetName(Optional<String> setName) {\n this.setName = setName.orElse(null);\n return this;\n}\n"
"private void handleConflict() {\n PageEditorInput input = (PageEditorInput) getEditorInput();\n XWikiEclipsePage currentPage = input.getPage();\n DataManager dataManager = currentPage.getDataManager();\n String pageId = StorageUtils.getExtendedPageId(currentPage.getId(), currentPage.getLanguage());\n if...
"public void run() {\n result.set(FocusJOptionPane.showConfirmDialog(GuiUtils.getMainFrame(), label, title, JOptionPane.YES_NO_OPTION));\n}\n"
"public void update(org.jivesoftware.smack.packet.Presence presence) {\n rwLock.writeLock().lock();\n try {\n this.type = Type.valueOf(presence.getType().toString());\n this.status = presence.getStatus();\n this.priority = presence.getPriority();\n this.mode = presence.getMode() != nul...
"public static ArgumentInstantiationList parseArgumentInstantiationList(ScribbleParser parser, CommonTree ct) {\n List<ArgumentInstantiation> as = new LinkedList<>();\n for (CommonTree a : getArgumentChildren(ct)) {\n AntlrNodeType type = Util.getAntlrNodeType(a);\n if (type == AntlrNodeType.MESSAGE...
"public void writeTestResultSummariesToFile(FileWriterWithEncoding fWriter) throws IOException, PMException, OperationCanceledException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.setSerializationInclusion(Include.NON_NULL);\n fWriter.append(StringConstants.LEFT_BRACKET);\n float size = TestResul...
"private void butterflyStage(Complex[] from, Complex[] to, int NPoint, int currentDistance) {\n int ndx1From;\n int ndx2From;\n int ndx1To;\n int ndx2To;\n int ndxWk;\n Complex wkTimesF2 = new Complex();\n if (currentDistance > 0) {\n for (int s = 0; s < currentDistance; s++) {\n ...
"public void setComponentValue(Connection connection, INode node, String repositoryValue) {\n if (node != null && canHandle(connection)) {\n setHCatalogRepositoryValue((HCatalogConnection) connection, node, param);\n }\n}\n"
"public List<EnhanceEntity> populateRelation(EntityMetadata m, List<String> relationNames, boolean isParent, Client client) {\n List<EnhanceEntity> ls = null;\n if (!isParent) {\n String sqlQuery = null;\n if (MetadataUtils.useSecondryIndex(client.getPersistenceUnit())) {\n sqlQuery = get...
"public void buildClientWithProxy() throws Exception {\n jenkins.getInstance().proxy = new ProxyConfiguration(\"String_Node_Str\", 8080, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n GitLabClientBuilder clientBuilder = new ResteasyGitLabClientBuilder(\"String_Node_Str\", 0, V3GitLabApiProxy.cl...
"public long toAddress(long offset) {\n return pages.get((int) (offset >>> bits)) + (offset & mask);\n}\n"
"public void keyPressed(KeyEvent e) {\n String text = KeyEvent.getKeyText(e.getKeyCode());\n if (text == null || text.length() != 1) {\n switch(e.getKeyCode()) {\n case KeyEvent.VK_LEFT:\n text = \"String_Node_Str\";\n break;\n case KeyEvent.VK_RIGHT:\n ...
"public static Channel createChannel(final String ip, final int port, ChannelInitializer channelInitializer) {\n ChannelFuture channelFuture = null;\n try {\n channelFuture = bootstrap.handler(channelInitializer).connect(ip, port);\n if (channelFuture.await(200, TimeUnit.MILLISECONDS)) {\n ...
"public void getAllFilenames(GetAllFilenamesMessage msg) throws NotImplementedException, ArgumentNotValid {\n ArgumentNotValid.checkNotNull(msg, \"String_Node_Str\");\n jmsCon.resend(msg, theBamon);\n log.debug(\"String_Node_Str\" + msg.toString() + \"String_Node_Str\");\n}\n"
"public final void postCopy(ObjectReference object, ObjectReference typeRef, int bytes, int allocator) throws InlinePragma {\n GenMS.msSpace.postCopy(object, allocator == GenMS.ALLOC_MATURE_MAJORGC);\n}\n"
"public Object run(List<Object> param) {\n Object obj = fetchVar();\n Mirror<?> me = null;\n me = Mirror.me(obj);\n if (param.isEmpty()) {\n return me.invoke(obj, right.toString());\n }\n return me.invoke(obj, right.toString(), param.toArray());\n}\n"
"public void execute() throws ServletException, IOException, ActionException {\n if (name == null) {\n throw new ActionException(\"String_Node_Str\");\n }\n Simon simon = getContext().getManager().getSimon(name);\n if (simon == null) {\n throw new ActionException(\"String_Node_Str\" + name + \...
"public boolean visit(WhileStatement node) {\n _output(_indent);\n _output(\"String_Node_Str\");\n Type bound = node.getBound();\n if (bound != null) {\n if (node.isUpperBound()) {\n _output(\"String_Node_Str\");\n } else {\n _output(\"String_Node_Str\");\n }\n ...
"public Command getCommandToMoveBendpointsAfterTargetHasMoved(OPPStructuralLinkPart link, Rectangle rect, IFigure translator) {\n if (link.getTarget() instanceof OPPStructuralLinkAggregator)\n return getCommandToMoveBendpointsAfterTargetAggregatorHasMoved(link, rect, translator);\n else\n return get...
"protected AbstractGroup[][] prepareGroups() {\n String valid = isValid();\n if (valid != null) {\n throw new IllegalArgumentException(valid);\n }\n Range<T> tempLower = new Range<T>(null, null, null);\n Range<T> tempUpper = new Range<T>(null, null, null);\n if (lowerRange.getRepeatBound() != n...
"private void testRegularText() {\n if (isJavaEngine) {\n String regexStr = regularText.getText();\n if (regexStr.length() >= 2) {\n regexStr = regexStr.substring(1, regexStr.length() - 1);\n }\n boolean flag = java.util.regex.Pattern.compile(regexStr).matcher(testText.getText(...
"private boolean executeConnectsTo(final TemplatePlanContext templateContext, final AbstractNodeTemplate connectToNode, final AbstractNodeTemplate parametersRootNode) {\n AbstractInterface connectsToIface = null;\n AbstractOperation connectsToOp = null;\n for (final AbstractInterface iface : connectToNode.getT...
"public static BufferedImage getRendererIcon(String icon) {\n BufferedImage bi = null;\n if (icon != null) {\n if (icon.matches(\"String_Node_Str\")) {\n try {\n bi = ImageIO.read(new URL(icon));\n } catch (IOException e) {\n LOGGER.debug(\"String_Node_St...
"public void toggleFollowMeState() {\n final State droneState = drone.getState();\n if (droneState == null) {\n state = FollowStates.FOLLOW_INVALID_STATE;\n return;\n }\n if (isEnabled()) {\n disableFollowMe();\n } else {\n if (drone.getMavClient().isConnected()) {\n ...
"private boolean saveTmpImage(byte[] outdata) {\n File path = getExternalFilesDirEclair(null);\n File file = new File(path, \"String_Node_Str\");\n try {\n path.mkdirs();\n InputStream is = new ByteArrayInputStream(outdata);\n OutputStream os = new FileOutputStream(file);\n byte[] d...
"public boolean successful() {\n return code == 200;\n}\n"
"protected String getTypeDescription() {\n return TYPE_DESCRIPTION;\n}\n"
"public UserVm deployVirtualMachine(DeployVMCmd cmd) throws ResourceAllocationException, InsufficientStorageCapacityException, ExecutionException, StorageUnavailableException, ConcurrentOperationException {\n Account ctxAccount = UserContext.current().getAccount();\n Long userId = UserContext.current().getUserId(...
"public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n if (mCheckedItems != null) {\n boolean isItemChecked = mCheckedItems[position];\n if (isItemChecked) {\n listView.setItemChecked(position + listView.getHe...
"private Function<By, WebElement> getWaitForTheRootElementFunction() {\n WebDriver driver = functionalPart.getWrappedDriver();\n return input -> {\n try {\n return functionalPart.getWrappedDriver().findElement(by);\n } catch (StaleElementReferenceException | NoSuchElementException ignored...
"private Object[] getAccumulatorParameter(Row4Aggregation row, int funcIndex) {\n Object[] parameters = null;\n if (parameterColIndex[funcIndex] == -1) {\n parameters = new Object[1];\n if (measureIndex[funcIndex] < 0) {\n parameters[0] = null;\n } else {\n parameters[0]...
"public void brandingDidntChange() {\n Subscription s = TestUtil.createSubscription(owner, TestUtil.createProduct(owner));\n Branding b1 = new Branding(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Branding b2 = new Branding(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n ...
"public int getCount() {\n return (gift.giftImages != null ? gift.giftImages.size() : 0);\n}\n"
"boolean isConnectionHealthy(long elapsed) {\n if (elapsed >= heartBeatInterval) {\n if (sendConnection != null) {\n return sendConnection.isAlive() && sendConnection.isHeartBeating();\n } else {\n return true;\n }\n }\n return true;\n}\n"
"public void testMulGradient() {\n INDArray arr1 = Nd4j.linspace(1, 4, 4).reshape(2, 2);\n INDArray arr2 = Nd4j.linspace(1, 4, 4).reshape(2, 2);\n INDArray gradAssertion = Nd4j.ones(arr1.shape());\n INDArray scalar = Nd4j.scalar(1.0);\n INDArray aGradAssertion = Nd4j.create(new double[][] { { 1, 4 }, { 9...
"public void writeProperties() {\n FileOutputStream ostream = null;\n try {\n ostream = new FileOutputStream(PROPS_FILE);\n PROPS.save(ostream, \"String_Node_Str\");\n ostream.close();\n } catch (Throwable e) {\n showInternalError(e);\n } finally {\n try {\n if ...
"public void onHideRecents(boolean triggeredFromAltTab, boolean triggeredFromHomeKey) {\n if (mBootCompleted) {\n if (isRecentsTopMost(getTopMostTask(), null)) {\n Intent intent = new Intent(ACTION_HIDE_RECENTS_ACTIVITY);\n intent.setPackage(mContext.getPackageName());\n inten...
"public static Sign getSignFromArena(JavaPlugin plugin, String arena) {\n PluginInstance pli = MinigamesAPI.getAPI().pinstances.get(plugin);\n if (!pli.getArenasConfig().getConfig().isSet(\"String_Node_Str\" + arena + \"String_Node_Str\")) {\n return null;\n }\n Location b_ = new Location(Bukkit.getS...
"public JWildcardType getWildcardType(com.google.gwt.core.ext.typeinfo.JWildcardType.BoundType boundType, com.google.gwt.core.ext.typeinfo.JClassType extTypeBound) {\n JClassType typeBound = (JClassType) extTypeBound;\n if (typeBound == getJavaLangObject() && (boundType == BoundType.UNBOUND || boundType == BoundT...
"public boolean func_102008_b(int i, ItemStack itemstack, int j) {\n return true;\n}\n"
"public void newProperties(PropertySheet ps) throws PropertyException {\n super.newProperties(ps);\n outPattern = ps.getString(WavWriter.PROP_OUT_FILE_NAME_PATTERN, null);\n bitsPerSample = ps.getInt(PROP_BITS_PER_SAMPLE, bitsPerSample);\n if (bitsPerSample % 8 != 0) {\n throw new Error(\"String_Node...
"public void testCreateHDAddress() {\n try {\n ConnectHttps.trustAllCerts();\n TestImplAbstractApp appAndroid = new TestImplAbstractApp();\n appAndroid.construct();\n ECKey ecKey = new DumpedPrivateKey(\"String_Node_Str\").getKey();\n String address = ecKey.toAddress();\n Ge...
"private void generateConceptMapV2(BindingSpecification cd, String filename, String src, String srcCS) throws Exception {\n ConceptMap cm = new ConceptMap();\n cm.setIdentifier(\"String_Node_Str\" + Utilities.fileTitle(filename));\n cm.setName(\"String_Node_Str\" + cd.getName());\n cm.setPublisher(\"String_...
"public static INDArray gemm(INDArray A, INDArray B, INDArray C, float alpha, float beta) {\n DataTypeValidation.assertFloat(A, B, C);\n Pointer cAPointer = getPointer(A);\n Pointer cBPointer = getPointer(B);\n Pointer cCPointer = getPointer(C);\n JCublas.cublasSgemm('n', 'n', C.rows(), C.columns(), A.co...
"public Data getData() throws DataProcessingException {\n Data d = getPredecessor().getData();\n if (isRecognizing && (d instanceof FloatData || d instanceof DoubleData || d instanceof SpeechEndSignal)) {\n result = decode(null);\n if (result != null && result.isFinal()) {\n fireResultLis...
"private void cleanupDraw() {\n if (mAttachInfo != null) {\n if (mDisplayList != null) {\n mDisplayList.markDirty();\n mAttachInfo.mViewRootImpl.enqueueDisplayList(mDisplayList);\n }\n mAttachInfo.mViewRootImpl.cancelInvalidate(this);\n } else {\n resetDisplayList...
"public void load(File PLpath, String fileName) throws IOException {\n int i = 0;\n PLfile = new File(PLpath, fileName);\n if (!PLfile.getParentFile().exists()) {\n logger.info(\"String_Node_Str\" + PLpath.getAbsolutePath());\n PLpath.mkdirs();\n }\n if (!PLfile.exists()) {\n logger....
"public AtlasGlossaryCategory updateCategory(AtlasGlossaryCategory glossaryCategory) throws AtlasBaseException {\n if (DEBUG_ENABLED) {\n LOG.debug(\"String_Node_Str\", glossaryCategory);\n }\n if (Objects.isNull(glossaryCategory)) {\n throw new AtlasBaseException(AtlasErrorCode.BAD_REQUEST, \"St...
"public QueryPlan explain(String query, Configuration conf) throws GrillException {\n QueryContext ctx = createQueryContext(query, conf);\n Configuration explainConf = new Configuration(conf);\n explainConf.setBoolean(GRILL_PERSISTENT_RESULT_SET, false);\n String explainQuery = \"String_Node_Str\" + ctx.hiv...
"public static StackInsertionFunction getDefaultInserter() {\n return getInsertionFunction(Integer.MAX_VALUE);\n}\n"
"public void characters(char[] ch, int start, int length) throws SAXException {\n String temp = new String(ch, start, length).trim();\n boolean withSpace = (ch[start] == '\\n' || temp.startsWith(Constants.LINE_SEPARATOR));\n if (temp.length() == 0) {\n return;\n }\n if (!insideSortingAs && !termSt...
"public void openFile(String aFile) {\n application.getHostServices().showDocument(aFile);\n}\n"
"public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n int erAP = 0;\n SharedPreferences ConnectActionPrefs;\n WifiConfiguration wc;\n if ((requestCode == 0) && ((resultCode == RESULT_OK))) {\n qrcontents = new String(intent.getStringExtra(\"String_Node_Str\"));\n qr...
"public double dotProduct(CompoundVector vec) {\n double result = 0.0;\n result = this.getXYbaseMatrix().dotProduct(vec.getXYbaseMatrix());\n result += this.getcovbaseMatrix().getRowVector(0).dotProduct(vec.getcovbaseMatrix().getRowVector(0));\n result += this.getcovbaseMatrix().getRowVector(1).dotProduct(v...
"private static void time(final ProceedingJoinPoint pjp, final PerfTimed timed) throws Throwable {\n Assert.notNull(pjp);\n Assert.notNull(timed);\n final Signature signature = pjp.getSignature();\n final String longString = \"String_Node_Str\" + signature.toLongString() + \"String_Node_Str\";\n System.o...
"public void testBugMondrian747() {\n switch(TestContext.instance().getDialect().getDatabaseProduct()) {\n case ORACLE:\n break;\n default:\n return;\n }\n final TestContext testContext = TestContext.instance().withSchema(\"String_Node_Str\" + \"String_Node_Str\" + \"String_...
"public DFProgressObject deploy(Target[] targets, URI source, URI deploymentPlan, Map deploymentOptions) {\n ensureConnected();\n targets = prepareTargets(targets);\n ProgressObjectImpl po = new ProgressObjectImpl(targets);\n if (deploymentOptions.get(DFDeploymentProperties.DEFAULT_REDEPLOY).equals(\"String...
"private void processBytecodesWithShrikeBT(BytecodeInfo info) throws InvalidClassFileException {\n info.decoder = makeDecoder();\n if (Assertions.verifyAssertions) {\n if (!isAbstract() && info.decoder == null) {\n Assertions.UNREACHABLE(\"String_Node_Str\" + getReference());\n }\n }\n...
"public void initParameters() {\n if (sourceProducts != null && sourceProducts.length > 0) {\n final MetadataElement absRoot = AbstractMetadata.getAbstractedMetadata(sourceProducts[0]);\n OperatorUIUtils.initParamList(polList, Sentinel1Utils.getProductPolarizations(absRoot), (String[]) paramMap.get(\"S...
"private void evaluateXPathExpressionAndNotify(final DOMObserverListener listener) {\n String xPathExpression = listener.getXPathExpression();\n QName qName = listener.getQName();\n DOMTuple scopedChanges;\n try {\n scopedChanges = getScopedChangesInternal(xPathExpression, qName);\n } catch (XPath...
"private File createImage(ApplicationGroup appgroup) throws IOException {\n Map<String, Double> costs = Maps.newHashMap();\n DateTime end = new DateTime(DateTimeZone.UTC).withDayOfWeek(1).withMillisOfDay(0);\n Interval interval = new Interval(end.minusWeeks(numWeeks), end);\n for (Product product : products...
"public boolean isNameAccepted(String name) {\n if (null == nameFilter)\n return true;\n if (Strings.isBlank(name))\n return true;\n return Pattern.matches(nameFilter, name.toLowerCase());\n}\n"
"public void setAlpha(float alpha) {\n if (alpha < 0.0f || alpha > 1.0f) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n this.alpha = alpha;\n notifyListeners(new MarkerChangeEvent(this));\n}\n"
"public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) {\n return createContainerEntityManagerFactoryImpl(info, properties, true);\n}\n"
"private void updateTiers() throws APIMigrationException {\n log.info(\"String_Node_Str\");\n for (Tenant tenant : getTenantsArray()) {\n log.info(\"String_Node_Str\" + tenant.getId() + '(' + tenant.getDomain() + ')');\n try {\n registryService.startTenantFlow(tenant);\n if (!r...
"public Object validateValue(Module module, PropertyDefn defn, Object value) throws PropertyValueException {\n if (value == null)\n return null;\n int trimOption = defn.getTrimOption();\n if (value instanceof Expression) {\n String expr = ((Expression) value).getStringExpression();\n Strin...
"private CT nextCT() {\n TK prevTK = currentCT.kind;\n while (true) {\n db(\"String_Node_Str\");\n CT ct;\n switch(current.kind) {\n case EOF:\n db(\"String_Node_Str\");\n if (stack.isEmpty()) {\n ct = new CT(EOF, current);\n ...
"private static Object getDatabaseValue(DatabaseConnection connection, String value) {\n String databaseType = connection.getDatabaseType();\n if (value.equals(\"String_Node_Str\")) {\n String typeByProduct = getStandardDbTypeFromConnection(databaseType);\n if (databaseType.equals(EDatabaseTypeName....
"public void testSearch() throws Exception {\n SecurityRequestContext.setUserId(ALICE.getName());\n authorizer.grant(NamespaceId.DEFAULT, ALICE, Collections.singleton(Action.WRITE));\n AppFabricTestHelper.deployApplication(Id.Namespace.DEFAULT, AllProgramsApp.class, \"String_Node_Str\", cConf);\n EnumSet<Me...
"public void setDynamicPayload(byte[] payload) {\n IaasProvider iaasInfo = getIaasProvider();\n if (iaasInfo.getTemplate() == null || payload == null) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\");\n }\n return;\n }\n String payloadStr = new String(payload)...
"public void compensateWhenRetryReachesMaximum() throws InterruptedException {\n ResponseEntity<String> entity = restTemplate.getForEntity(\"String_Node_Str\", String.class, TRESPASSER, 5);\n assertThat(entity.getStatusCode(), is(INTERNAL_SERVER_ERROR));\n await().atMost(5, SECONDS).until(() -> eventRepo.count...
"public void toBytes(ByteBuf buf) {\n buf.writeInt(dimensions.size());\n for (Map.Entry<Integer, DimensionDescriptor> me : dimensions.entrySet()) {\n buf.writeInt(me.getKey());\n NBTTagCompound tagCompound = new NBTTagCompound();\n me.getValue().writeToNBT(tagCompound);\n PacketBuffer ...
"public void visitArgumentlistExpression(ArgumentListExpression node) {\n VariableScope.CallAndType callAndType = scopes.getLast().getEnclosingMethodCallExpression();\n boolean closureFound = false;\n if (callAndType != null && callAndType.declaration instanceof MethodNode) {\n Map<ClosureExpression, Cl...
"private Response query(String sql) {\n Cursor cursor;\n try {\n cursor = mDatabase.rawQuery(sql, null);\n } catch (Exception e) {\n e.printStackTrace();\n Response msg = new Response();\n msg.isSuccessful = false;\n msg.error = e.getMessage();\n return msg;\n }\n ...
"public static void main(String[] args) {\n if (args == null || args.length != 1) {\n System.exit(1);\n }\n}\n"
"public synchronized String getOrg(long ipnum) {\n int seek_org;\n int record_pointer;\n int str_length = 0;\n byte[] buf = new byte[MAX_ORG_RECORD_LENGTH];\n String org_buf;\n try {\n seek_org = seekCountry(ipnum);\n if (seek_org == databaseSegments[0]) {\n return null;\n ...
"private void addReplyToTicketWithAttachment(final String cancelTag, final HSTicket ticket, final HSUser user, final String message, HSUploadAttachment[] attachments, final RequestQueue queue, final OnFetchedSuccessListener successListener, final ErrorListener errorListener) {\n Uri.Builder builder = new Uri.Builder...
"public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceDocumentComponent convertConformanceDocumentComponent(org.hl7.fhir.dstu3.model.Conformance.ConformanceDocumentComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Confor...
"private void sendSurvey() {\n final Survey survey;\n final Thread runner, writer, notifier;\n try {\n if (Experiment.csvLabel != null) {\n String csv = (String) Experiment.csvLabel.getSelectedItem();\n if (cachedSurveys.containsKey(csv))\n survey = cachedSurveys.get...
"private void performCopytoTask() {\n final Map<File, File> copytoMap = new HashMap<File, File>();\n for (final Map.Entry<URI, URI> e : job.getCopytoMap().entrySet()) {\n copytoMap.put(toFile(e.getKey()), toFile(e.getValue()));\n }\n if (forceUniqueFilter != null) {\n for (final Map.Entry<URI,...
"public int getRecommendedPollingInterval() throws IOException {\n return this.jobSubmitClient.getRecommendedPollingInterval();\n}\n"
"private void parseImportsUsagesFromMethodInfo(ABC abc, int method_index, List<DottedChain> imports, List<String> uses, String ignorePackage, List<String> fullyQualifiedNames, List<Integer> visitedMethods) {\n if ((method_index < 0) || (method_index >= abc.method_info.size())) {\n return;\n }\n visitedM...
"private String convertToStandardFormat(String string) {\n if (string != null && DesignChoiceConstants.PARAM_TYPE_DATETIME.equals(getSelectedDataType())) {\n try {\n string = new DateFormatter(STANDARD_DATE_TIME_PATTERN, ULocale.US).format(DataTypeUtil.toDate(string, ULocale.US));\n } catch ...
"protected double[] _newtonStep(final double[] x, final double[] g) throws IllegalActionException {\n final int n = x.length;\n double[] xNew = new double[n];\n double[] fNew = new double[n];\n System.arraycopy(x, 0, xNew, 0, n);\n double[][] J = new double[n][n];\n for (int i = 0; i < n; i++) {\n ...
"public void testIgnorePathsWithAbsoluteCacheDir() throws IOException {\n ProjectFilesystem filesystem = EasyMock.createMock(ProjectFilesystem.class);\n BuildTargetParser parser = EasyMock.createMock(BuildTargetParser.class);\n EasyMock.replay(filesystem, parser);\n Reader reader = new StringReader(Joiner.o...
"public MondrianDatasource get(String id) throws GenericDatasourceServiceException, PentahoAccessControlException {\n helper.checkAdministratorAccess();\n MondrianCatalog mondrianCatalog = mondrianCatalogService.getCatalog(id, PentahoSessionHolder.getSession());\n return new MondrianDatasource(mondrianCatalog,...