content
stringlengths
40
137k
"public DTWorkerParams doCompute(WorkerContext<DTMasterParams, DTWorkerParams> context) {\n if (context.isFirstIteration()) {\n return new DTWorkerParams();\n }\n DTMasterParams lastMasterResult = context.getLastMasterResult();\n final List<TreeNode> trees = lastMasterResult.getTrees();\n final Ma...
"public String getGeneologicalRelation() {\n if (pidx == aidx) {\n return \"String_Node_Str\";\n } else if (hasParent(aidx) && pidx == parents[aidx]) {\n return \"String_Node_Str\";\n } else if (pidx == -1) {\n return \"String_Node_Str\";\n } else if (aidx == -1) {\n return \"Str...
"static HdmiCecMessage buildReportPhysicalAddressCommand(int src, int address, int deviceType) {\n byte[] params = new byte[] { (byte) ((address >> 8) & 0xFF), (byte) (address & 0xFF), (byte) (deviceType & 0xFF) };\n return buildCommand(src, Constants.ADDR_BROADCAST, Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS, par...
"public static List connect(String dbType, String url, String username, String pwd, final String driverClassNameArg, final String driverJarPathArg, String dbVersion, String additionalParams) throws Exception {\n Connection connection = null;\n DriverShim wapperDriver = null;\n List conList = new ArrayList();\n...
"public void __process() throws Exception {\n outputFormat = BirtTagUtil.getFormat(viewer.getFormat());\n if (!outputFormat.equalsIgnoreCase(ParameterAccessor.PARAM_FORMAT_HTML) || BirtTagUtil.convertToBoolean(viewer.getForceParameterPrompting()) || viewer.isForceIFrame() || isContextChanged(viewer.getContextRoot...
"protected DataBinding processStandardBindAttributes(Vector usedAtts, Element e) {\n usedAtts.addElement(ID_ATTR);\n usedAtts.addElement(NODESET_ATTR);\n usedAtts.addElement(\"String_Node_Str\");\n usedAtts.addElement(\"String_Node_Str\");\n usedAtts.addElement(\"String_Node_Str\");\n usedAtts.addElem...
"public static StackedRankColumnModel addYear(RankTableModel table, String title, Function<IRow, WorldUniversityYear> year, boolean addStars) {\n final StackedRankColumnModel stacked = new StackedRankColumnModel();\n stacked.setTitle(title);\n table.add(stacked);\n Color[] light = StephenFewColorPalette.get...
"public boolean removeCombinatorialDerivation(CombinatorialDerivation combinatorialDerivation) throws SBOLValidationException {\n if (complete) {\n for (CombinatorialDerivation cd : combinatorialDerivations.values()) {\n for (VariableComponent vc : cd.getVariableComponents()) {\n for...
"private void setData(int count, float range) {\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < count; i++) {\n xVals.add((i) + \"String_Node_Str\");\n }\n ArrayList<Entry> yVals = new ArrayList<Entry>();\n for (int i = 10; i < count - 10; i++) {\n float mult = (r...
"public static List<TermCountMessage> marshal(final List<TermCount> termCountList) {\n final List<TermCountMessage> ret = Lists.newArrayListWithCapacity(termCountList.size());\n for (final TermCount termCount : termCountList) {\n ret.add(TermCountMessage.newBuilder().setTerm(ImhotepClientMarshaller.marshal...
"private static PCollection<Read> getReadsFromBAMFile() throws IOException {\n LOG.info(\"String_Node_Str\");\n final Iterable<Contig> contigs = Contig.parseContigsFromCommandLine(options.getReferences());\n if (options.isShardBAMReading()) {\n LOG.info(\"String_Node_Str\" + options.getBAMFilePath());\n...
"public boolean equals(Object o) {\n if (!this.equalsIgnoringAttributes(o)) {\n return false;\n AbstractGenericSolution<?, ?> that = (AbstractGenericSolution<?, ?>) o;\n if (!attributes.equals(that.attributes))\n return false;\n if (!Arrays.equals(objectives, that.objectives))\n return ...
"public void nestedAggregateWithGroupbyTest() throws VerdictDBException {\n String sql = \"String_Node_Str\";\n NonValidatingSQLParser sqlToRelation = new NonValidatingSQLParser();\n SelectQuery selectQuery = (SelectQuery) sqlToRelation.toRelation(sql);\n QueryExecutionPlan queryExecutionPlan = new QueryExe...
"protected void defaultConfig() throws LifecycleException {\n long t1 = System.currentTimeMillis();\n if (defaultWebXml == null && context instanceof StandardContext) {\n defaultWebXml = ((StandardContext) context).getDefaultWebXml();\n }\n if (defaultWebXml == null)\n getDefaultWebXml();\n ...
"public void load(Element element) throws NCLParsingException {\n String att_name, att_var;\n try {\n att_name = NCLElementAttributes.ALIAS.toString();\n if (!(att_var = element.getAttribute(att_name)).isEmpty())\n setAlias(att_var);\n else\n throw new NCLParsingExceptio...
"public Double getUpperDouble() {\n return (Double) upperNumber;\n}\n"
"private void parseValue() {\n if (ignoreTrailingWhitespace) {\n while (ch != delimiter && ch != newLine) {\n output.appender.appendIgnoringWhitespace(ch);\n ch = input.nextChar();\n }\n } else {\n while (ch != delimiter && ch != newLine && ch != '\\0') {\n ou...
"public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {\n moduleName = in.readUTF();\n wm = WorkManagerFactoryImpl.retrieveWorkManager(moduleName);\n _logger = LogDomains.getLogger(WorkManagerProxy.class, LogDomains.RSR_LOGGER);\n}\n"
"private void initAirlineSpecs() {\n if (packageType == PackageType.COMMAND_LINE) {\n airlineSpec = new DeployableServiceSpec(serviceType, packageType, null, null, AIRLINE_JAR, AIRLINE_PORT, AIRLINE, 1);\n } else {\n airlineSpec = new DeployableServiceSpec(serviceType, packageType, null, null, AIRLI...
"public Semaphore getSemaphore() {\n return mSemaphore;\n}\n"
"public void visit(Node node) {\n logger.log(Level.FINEST, \"String_Node_Str\", node);\n this.nameNodeSet.add(node.getNodeName());\n NodeList children = node.getChildNodes();\n if (children != null) {\n int noOfNodes = children.getLength();\n for (int i = 0; i < noOfNodes; i++) {\n ...
"public void testGetArtifactListFromType() throws OseeCoreException {\n Set<Artifact> searchedArtifacts = new LinkedHashSet<Artifact>();\n List<Branch> branches = BranchManager.getBranches(new BranchFilter(BranchType.BASELINE));\n for (IOseeBranch branch : branches) {\n List<Artifact> results = Artifact...
"public static void setupTests() {\n ModelManager mManager = Factory.getModelManager();\n fSet = mManager.buildFeatureSet().setReference(mManager.buildReference().setName(\"String_Node_Str\").build()).build();\n Set<Feature> testFeatures = new HashSet<Feature>();\n f1 = mManager.buildFeature().setStart(1000...
"public void setFieldBinary(byte[] fieldBinary) {\n realmSetter$fieldBinary(fieldBinary);\n}\n"
"public synchronized TooltipPainter setUnlimitedWidth() {\n this.isFixedWidth = false;\n this.resetTextLayout();\n return this;\n}\n"
"public void testFindWithOutClusterName() {\n final Specification<Job> spec = JobSpecs.find(ID, JOB_NAME, USER_NAME, JobStatus.INIT, TAGS, null, CLUSTER_ID);\n spec.toPredicate(this.root, this.cq, this.cb);\n Mockito.verify(this.cb, Mockito.times(1)).like(this.root.get(Job_.id), ID);\n Mockito.verify(this.c...
"public void testGetPublishingEvent() throws Exception {\n ContentReader reader = mock(ContentReader.class);\n InputStream inputStream = mock(InputStream.class);\n when(reader.getContentInputStream()).thenReturn(inputStream);\n when(contentService.getReader(any(NodeRef.class), any(QName.class))).thenReturn(...
"private void handleRequestError(int responseCode) {\n System.out.println(responseCode);\n repeatRequestOrShowResults(true);\n}\n"
"public static String readFile(File file, boolean useSystemLineSeparator) {\n StringBuffer stringBuffer = new StringBuffer();\n try {\n BufferedReader in = new BufferedReader(new FileReader(file));\n String str = null;\n try {\n while ((str = in.readLine()) != null) {\n ...
"Map<String, PropertyType> getTableFor(SchemaTable schemaTable) {\n Preconditions.checkArgument(schemaTable.getTable().startsWith(VERTEX_PREFIX) || schemaTable.getTable().startsWith(EDGE_PREFIX), \"String_Node_Str\", SchemaManager.VERTEX_PREFIX, SchemaManager.EDGE_PREFIX);\n if (schemaTable.isVertexTable()) {\n ...
"protected DataType<?>[][] getDataTypeArray() {\n DataType<?>[][] dataTypes = new DataType[5][];\n dataTypes[AttributeTypeInternal.INSENSITIVE] = new DataType[inputStatic.getHeader().length];\n dataTypes[AttributeTypeInternal.SENSITIVE] = new DataType[inputAnalyzed.getHeader().length];\n dataTypes[Attribute...
"public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(MessageUtils.mustBeIngameMessage);\n return true;\n }\n Player player = (Player) sender;\n HumanNPC npc = null;\n boolean returnva...
"public void shouldPresent_AnotherError_IntoView() throws Exception {\n Flowable<FactAboutNumber> broken = Flowable.error(new IllegalAccessError(\"String_Node_Str\"));\n when(usecase.fetchTrivia()).thenReturn(broken);\n presenter.fetchRandomFacts();\n BehavioursVerifier.with(view).showLoadingFirstHideLoadin...
"public SortedMap<ArtifactDescriptor, PluginClass> apply(DatasetContext<Table> context) throws Exception {\n Table table = context.get();\n SortedMap<ArtifactDescriptor, PluginClass> result = new TreeMap<>();\n ArtifactCell parentCell = new ArtifactCell(parentArtifactId);\n byte[] parentDataBytes = table.ge...
"protected AbstractVariable processFieldInstruction(SimpleName fieldInstructionName, VariableDeclaration parameterDeclaration, AbstractVariable previousVariable) {\n VariableDeclaration variableDeclaration = null;\n IBinding binding = fieldInstructionName.resolveBinding();\n if (binding.getKind() == IBinding.V...
"public ImagePlus applyClassifierToTestImage(final ImagePlus testImage, final int numThreads) {\n IJ.log(\"String_Node_Str\" + testImage.getTitle() + \"String_Node_Str\" + numThreads + \"String_Node_Str\");\n ArrayList<String> classNames = new ArrayList<String>();\n if (null == loadedClassNames) {\n for...
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute == observationProbabilities) {\n int nStates = ((MatrixToken) observationProbabilities.getToken()).getRowCount();\n int nCat = ((MatrixToken) observationProbabilities.getToken()).getColumnCount();\n ...
"public void formLinkRecordBond(LinkRecord linkRecord) {\n if (linkRecord.getAltLoc1().equals(\"String_Node_Str\") || linkRecord.getAltLoc2().equals(\"String_Node_Str\"))\n return;\n try {\n Map<Integer, Atom> a = getAtomFromRecord(linkRecord.getName1(), linkRecord.getAltLoc1(), linkRecord.getResNam...
"private void sendMessageImmediate(String msgName, GeneratedMessage msg) {\n try {\n sendMessage(msgName, msg, false);\n } catch (IOException e) {\n log.error(this + \"String_Node_Str\", e);\n close();\n }\n}\n"
"public ITmfEventType getType() {\n CtfTmfEventType ctfTmfEventType = CtfTmfEventType.get(eventName);\n if (ctfTmfEventType == null) {\n ctfTmfEventType = new CtfTmfEventType(this.getEventName(), this.getContent());\n }\n return ctfTmfEventType;\n}\n"
"public String load(String key) {\n if (msPerLoad > 0) {\n try {\n Thread.sleep(msPerLoad);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n Thread thread = Thread.currentThread();\n ClassLoader contextClassLoader = thread.getContextClassLoader...
"public static void main(String[] args) {\n CConfiguration cConf = CConfiguration.create();\n Configuration hConf = new Configuration();\n cConf.copyTxProperties(hConf);\n TransactionManagerDebuggerMain instance = new TransactionManagerDebuggerMain(hConf);\n boolean success = instance.execute(args);\n ...
"public void write(ClassWriter writer) {\n int modifiers = this.modifiers & 0xFFFF;\n if (this.value == null) {\n modifiers |= Modifiers.ABSTRACT;\n }\n MethodWriter mw = new MethodWriterImpl(writer, writer.visitMethod(modifiers, this.name.qualified, this.getDescriptor(), this.getSignature(), this.ge...
"public void testMetaCRUD() throws Exception {\n final int sleepTime = 400;\n final MetadataManager metadataManager = MetadataManager.getInstance(configA);\n final MetadataManager metadataManagerB = MetadataManager.getInstance(configB);\n final Broadcaster broadcaster = Broadcaster.getInstance();\n broad...
"public TreeElement deepCopy(boolean includeTemplates) {\n TreeElement newNode = shallowCopy();\n if (children != null) {\n newNode.children = new Vector<TreeElement>();\n for (int i = 0; i < children.size(); i++) {\n TreeElement child = children.elementAt(i);\n if (includeTemp...
"public void readPortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player)) {\n return;\n }\n distance = tag.getByte(\"String_Node_Str\");\n intensity = tag.getByte(\"String_Node_Str\");\n duration = tag.getByte(\"String_Node_Str\");\n markDirty();\n sendUpdatePa...
"public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (type == Types.VOID) {\n this.requiredType = Types.VOID;\n return this;\n }\n if (this.valueCount > 0) {\n IValue v = this.values[this.valueCount - 1].withType(type, typeContext, mark...
"public Status status() {\n StatusCache statusCache = candlepinCache.getStatusCache();\n Status cached = statusCache.getStatus();\n if (cached != null) {\n return cached;\n }\n boolean good = true;\n try {\n rulesCurator.getUpdatedFromDB();\n } catch (Exception e) {\n log.error...
"protected LineItem[] getResults(boolean showResultInfo) {\n Cursor waitCursor = null;\n try {\n Display display = getEditor().getSite().getPage().getWorkbenchWindow().getWorkbench().getDisplay();\n waitCursor = new Cursor(display, SWT.CURSOR_WAIT);\n this.getSite().getShell().setCursor(waitC...
"private void setOptimizedCheckNodes(TreeParent obj) {\n for (TreeObject treeObj : obj.getChildren()) {\n if (treeObj.getName().equals(\"String_Node_Str\")) {\n if (treeObj instanceof TreeParent) {\n for (TreeObject child : ((TreeParent) treeObj).getChildren()) {\n ...
"void start(int position, int boundPosition) {\n if (boundPosition == INVALID_POSITION) {\n start(position);\n return;\n }\n final int firstPos = mFirstPosition;\n final int lastPos = firstPos + getChildCount() - 1;\n int viewTravelCount = 0;\n if (position <= firstPos) {\n final ...
"public static DepTreebank getParses(Model model, SentenceCollection sentences, IlpFormulation formulation, DeltaGenerator deltaGen, double expectedParseWeight) {\n IlpSolverFactory factory = new IlpSolverFactory(IlpSolverId.GUROBI_CL, 2, 128);\n IlpViterbiParserWithDeltas parser = new MockIlpViterbiParserWithDel...
"private void setSteps(final CoordinateOperation[] steps) throws FactoryException {\n final List<CoordinateOperation> flattened = new ArrayList<CoordinateOperation>(steps.length);\n initialize(null, steps, flattened, DefaultFactories.forBuildin(MathTransformFactory.class), (coordinateOperationAccuracy == null), (...
"private void createDynamicComposite(final Composite parent, Element element, EComponentCategory category) {\n getParentMap().put(ComponentSettingsView.PARENT, parent);\n getCategoryMap().put(ComponentSettingsView.CATEGORY, category);\n if (element instanceof Node) {\n IComponent component = ((Node) ele...
"void setDataSet(String datasetName) {\n try {\n boolean isPreviousDataBindingReference = false;\n if (itemHandle.getDataBindingType() == ReportItemHandle.DATABINDING_TYPE_REPORT_ITEM_REF) {\n isPreviousDataBindingReference = true;\n itemHandle.setDataBindingReference(null);\n ...
"public void addData(int col, SheetData data) {\n if (col < getColumnCount()) {\n int rowIndex = data.getRowIndex();\n columns.get(col).add(data);\n maxRowIndex = maxRowIndex > rowIndex ? maxRowIndex : rowIndex;\n BookmarkDef bookmark = data.getBookmark();\n if (bookmark != null) {...
"public Image getImage(Object element) {\n Image image = null;\n if (element instanceof ItemRecord) {\n ItemRecord record = (ItemRecord) element;\n File file = record.getFile();\n String fileName = file.getName();\n if (file.isDirectory()) {\n image = ImageLib.getImage(Image...
"public static void init() {\n injector = Guice.createInjector(new ConfigModule(), new DiscoveryRuntimeModule().getInMemoryModules(), new DataFabricModules().getInMemoryModules(), new LocationRuntimeModule().getInMemoryModules(), new AbstractModule() {\n\n protected void configure() {\n bind(Stream...
"protected long proxyPlainTextRequest(final URL url, String pathInContext, String pathParams, HttpRequest request, final HttpResponse response) throws IOException {\n try {\n String urlStr = url.toString();\n if (urlStr.toLowerCase().startsWith(Constants.ODO_INTERNAL_WEBAPP_URL)) {\n urlStr ...
"private BookData getBookData(String bookInitials, String reference, int maxKeyCount) throws NoSuchKeyException {\n Book book = BookInstaller.getInstalledBook(bookInitials);\n if (book == null || reference == null || maxKeyCount < 1) {\n return null;\n }\n Key key = null;\n if (BookCategory.BIBLE....
"public Object importDataSource(Map<String, Object> map) {\n String sid = (String) map.get(\"String_Node_Str\");\n Subscription subs = getSubscriptionByID(sid);\n if (subs == null) {\n Map sd = (Map) map.get(\"String_Node_Str\");\n if (sd != null) {\n String key = (String) sd.get(\"Str...
"protected Instagram addResource(Type type, String value, float longitude, float lattitude, int distance, boolean exactMatch, String fourSquareLocation) {\n ResourceParams parameterSet = newResourceParams();\n switch(type) {\n case USER:\n if (value == null) {\n throw new IllegalA...
"private boolean checkPermissions() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n FragmentCompat.requestPermissions(this, new String[] { Manifest.permission.WRITE_EXTERNAL_STORAGE }, WRITE_EXTERNAL_PERMISSION);\n...
"public void handleReceived(ClientConnection connection) {\n PacketStatusOutResponse packet = new PacketStatusOutResponse();\n PacketStatusOutResponse.Response response = packet.getResponse();\n response.description.text = TridentServer.getInstance().getConfig().getString(\"String_Node_Str\", \"String_Node_Str...
"public static IconType getIcon(RosterItem item) {\n Show show = item.getShow();\n if (show == Show.dnd) {\n return IconType.buddyDnd;\n } else if (show == Show.xa) {\n return IconType.buddyWait;\n } else if (show == Show.away) {\n return IconType.buddyWait;\n } else if (item.isAvail...
"public static boolean isValidString(String string) {\n return (string != null && string != \"String_Node_Str\" && string.length() != 0);\n}\n"
"private void buildQueryField(int row, Cell cell) throws WingException {\n Request request = ObjectModelHelper.getRequest(objectModel);\n String current = URLDecode(request.getParameter(\"String_Node_Str\" + row));\n Text text = cell.addText(\"String_Node_Str\" + row);\n if (current != null)\n text.s...
"public String execute() throws IOException, InterruptedException {\n Debug.log(\"String_Node_Str\" + outfileName);\n File profileFilesDir = new File(infile1).getParentFile();\n Debug.log(\"String_Node_Str\" + profileFilesDir.getAbsolutePath());\n File workingDir = new File(\"String_Node_Str\" + infile1.rep...
"public Map<String, Object> convertHistoricDetails(List<HistoricDetail> details) {\n Collections.sort(details, new Comparator<HistoricDetail>() {\n public int compare(HistoricDetail o1, HistoricDetail o2) {\n Long id1 = Long.valueOf(o1.getId());\n Long id2 = Long.valueOf(o2.getId());\n ...
"public void startImage(IImageContent image) {\n IStyle style = image.getComputedStyle();\n InlineFlag inlineFlag = getInlineFlag(style);\n String uri = image.getURI();\n String mimeType = image.getMIMEType();\n String extension = image.getExtension();\n String altText = image.getAltText();\n if (F...
"public static Instruction retrieveRef(Var dst, Var src, long acquireRead, long acquireWrite) {\n assert (Types.isRef(src.type()));\n assert (acquireRead >= 0);\n assert (acquireWrite >= 0);\n if (acquireWrite > 0) {\n assert (Types.isAssignableRefTo(src.type(), dst.type(), true));\n } else {\n ...
"public void unlinkToPublishedPort(Pattern pattern, TypedIOPort subscriberPort, boolean global) throws IllegalActionException {\n NamedObj container = getContainer();\n if (!isOpaque() && container instanceof CompositeActor && !((CompositeActor) container).isClassDefinition()) {\n ((CompositeActor) contain...
"public void onEvent(MediaSessionTerminatedEvent event) {\n events.add(event);\n}\n"
"public static HttpServletRequest getRealRequest(HttpServletRequest request) {\n HttpSession session = request.getSession();\n if (session.getAttribute(\"String_Node_Str\") != null) {\n log.info(\"String_Node_Str\");\n RequestInfo requestInfo = (RequestInfo) session.getAttribute(\"String_Node_Str\")...
"public static boolean isUpdated() {\n for (Check c : checks) {\n threadPool.submit(c);\n }\n System.out.println(\"String_Node_Str\");\n threadWait.arriveAndAwaitAdvance();\n System.out.println(\"String_Node_Str\");\n for (Check c : checks) {\n c.updateGUI(status);\n if (c.tickets...
"private void maybeCheckForMultisize(Product product) {\n final Product resampledProduct = MultiSizeIssue.maybeResample(product);\n if (resampledProduct != null) {\n productListModel.setSelectedItem(resampledProduct);\n } else {\n productListModel.setSelectedItem(null);\n for (int i = 0; i...
"public void run() {\n String provider = location.getProvider();\n switch(provider) {\n case LocationManager.GPS_PROVIDER:\n provider = getString(R.string.provider_gps);\n break;\n case LocationManager.NETWORK_PROVIDER:\n provider = getString(R.string.provider_networ...
"private void startTurn() {\n HashMap<String, Object> deviceParameters = device.getParameters();\n String url;\n boolean turnEnabled = false;\n if (deviceParameters.containsKey(RCDevice.ParameterKeys.MEDIA_TURN_ENABLED) && (Boolean) deviceParameters.get(RCDevice.ParameterKeys.MEDIA_TURN_ENABLED)) {\n ...
"public List<FileInfo> list(String path) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n try {\n String s = executeCommand(\"String_Node_Str\" + path);\n String[] entries = s.split(\"String_Node_Str\");\n List<FileInfo> fileInfos = new ArrayList<>();\n ...
"public void windowClosing(WindowEvent e) {\n super.windowClosing(e);\n guiSignUp.getGuiLogin().setEnabled(true);\n}\n"
"private static void loadCubeOperations(DataInputStream dis, ICubeQueryDefinition qd) throws DataException, IOException {\n int size = IOUtil.readInt(dis);\n for (int i = 0; i < size; i++) {\n ICubeOperation co = loadCubeOperation(dis, version);\n qd.addCubeOperation(co);\n }\n}\n"
"public static void saveUserToStorage(Syncano syncano, AbstractUser user) {\n if (syncano.getAndroidContext() == null || !(PlatformType.get() instanceof PlatformType.AndroidPlatform)) {\n return;\n }\n SharedPreferences prefs = syncano.getAndroidContext().getSharedPreferences(Syncano.class.getSimpleName...
"public Widget getWidget() {\n return rosterItemDisplay.asWidget();\n}\n"
"public String url() {\n return join(new Object[] { \"String_Node_Str\", \"String_Node_Str\", FakerIDN.toASCII(faker.name().firstName().toLowerCase().replaceAll(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\" + domainWord()), \"String_Node_Str\", domainSuffix() });\n}\n"
"public V get() throws ONCRPCException, IOException, InterruptedException {\n waitForResult();\n if ((ioError == null) && (remoteEx == null)) {\n V responseObject = decoder.getResult(request.getResponseFragments().get(0));\n return responseObject;\n } else {\n if (ioError != null) {\n ...
"public static boolean isKnownOption(String name) {\n return name != null && Option.valueOf(name) != null;\n}\n"
"private static StringManager getLocalStrings() {\n if (localStrings == null) {\n synchronized (ConnectionManagerImpl.class) {\n if (localStrings == null) {\n localStrings = StringManager.getManager(ConnectionManagerImpl.class);\n }\n }\n }\n return localStrin...
"public void update(final ModelEvent event) {\n if (event.part == ModelPart.RESULT) {\n result = (ARXResult) event.data;\n reset();\n } else if (event.part == ModelPart.SELECTED_NODE) {\n if (event.data == null) {\n reset();\n } else {\n update((ARXNode) event.dat...
"public Method getMethod(String methodName, int parameterCount) {\n java.lang.reflect.Method[] declaredMethods = existing.getDeclaredMethods();\n for (java.lang.reflect.Method method : declaredMethods) {\n Class<?>[] parameterTypes = method.getParameterTypes();\n if (method.getName().equals(methodNa...
"private String decodeUtf8String(int length) throws IOException {\n try {\n final ByteBuffer buffer = mByteBuffer;\n final StringBuilder builder = new StringBuilder(length);\n for (int i = 0; i < length; ++i) {\n final int b1 = buffer.get();\n if ((b1 & 0x80) == 0) {\n ...
"public static void main(String[] args) throws Exception {\n int degreeOfParallelism = 2;\n int numSubTasksPerInstance = degreeOfParallelism;\n String pageWithRankInputPath = \"String_Node_Str\" + PlayConstants.PLAY_DIR + \"String_Node_Str\";\n String transitionMatrixInputPath = \"String_Node_Str\" + PlayCo...
"public static BigDecimal findChasePrice(BigDecimal price, int ticks, BettingAspect aspect) {\n return aspect == BettingAspect.BACK ? PRICE_TICKS.get(PRICE_TICKS.indexOf(price.stripTrailingZeros()) + ticks) : PRICE_TICKS.get(PRICE_TICKS.indexOf(price.stripTrailingZeros()) - ticks);\n}\n"
"public void output(ReportOutputter[] outputters, File cache) {\n for (int i = 0; i < outputters.length; i++) {\n outputters[i].output(this, cacheMgr);\n }\n}\n"
"public boolean removeKubernetesCluster(String kubernetesClusterId) throws NonExistingKubernetesClusterException {\n if (StringUtils.isEmpty(kubernetesClusterId)) {\n throw new NonExistingKubernetesClusterException(\"String_Node_Str\");\n }\n Collection<NetworkPartition> networkPartitions = CloudControl...
"SelectQuery composeQuery(Map<String, Object> metaData) {\n List<UnnamedColumn> tierPredicates = method.getTierExpressions(metaData);\n int tierCount = tierPredicates.size() + 1;\n String tierColumnName = options.get(\"String_Node_Str\");\n String blockColumnName = options.get(\"String_Node_Str\");\n Lis...
"public EntityBean findAnotherBySameLabel(String label, int studyId, int studySubjectId) {\n StudySubjectBean eb = new StudySubjectBean();\n this.setTypesExpected();\n HashMap variables = new HashMap();\n variables.put(new Integer(1), ESAPI.encoder().encodeForHTML(label));\n variables.put(new Integer(2),...
"public void setDisplayZoomControls(boolean enabled) {\n mContentSettings.setDisplayZoomControls(enabled);\n}\n"
"private String odlLogFormat(LogRecord record) {\n try {\n LogEventImpl logEvent = new LogEventImpl();\n String message = getLogMessage(record);\n boolean multiLine = isMultiLine(message);\n StringBuilder recordBuffer = new StringBuilder();\n Date date = new Date();\n Simple...
"public static double absVal(double x) {\n return halfLinear(Math.abs(x));\n}\n"
"private static String createAbsolutePath(String filePath) {\n if (isWorkingFolderAccessOnly || isRelativePath(filePath)) {\n return workingFolder + File.separator + filePath;\n }\n return filePath;\n}\n"