content stringlengths 40 137k |
|---|
"private static void addParticleAndAttributeInfo(ATreeNode node, XSComplexTypeDecl complexType, ATreeNode complexTypesRoot) {\n XSParticle particle = complexType.getParticle();\n if (particle != null) {\n XSObjectList list = ((XSModelGroupImpl) particle.getTerm()).getParticles();\n for (int j = 0; j... |
"private final void setEnableMGetOp() {\n StringTokenizer tokens = new StringTokenizer(version, \"String_Node_Str\");\n int majorVersion = Integer.parseInt(tokens.nextToken());\n int minorVersion = Integer.parseInt(tokens.nextToken());\n if (version.contains(\"String_Node_Str\")) {\n enabledMGetOp = ... |
"public int run() throws Exception {\n log.info(\"String_Node_Str\");\n long start = System.currentTimeMillis();\n try {\n setUp(ModelStep.NORMALIZE);\n syncDataToHdfs(modelConfig.getDataSet().getSource());\n switch(modelConfig.getBasic().getRunMode()) {\n case DIST:\n ... |
"public void onClick(View v) {\n final String text = editText.getText().toString();\n if (!StringUtils.isEmpty(text)) {\n imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);\n if (!Socialize.getSocialize().isAuthenticated()) {\n Socialize.getSocialize().authenticate(consumerKey, co... |
"private void renderMultiColumnsVertical(StringOutput sb, MultipleSelectionComponent stC, int columns) {\n String columnCss;\n if (columns == 2) {\n columnCss = \"String_Node_Str\";\n } else if (columns == 3) {\n columnCss = \"String_Node_Str\";\n } else {\n columns = 4;\n column... |
"private void moveSelectionUp(TreeItem sel) {\n TreeItem parent = sel.getParentItem();\n if (parent == null) {\n parent = root;\n }\n int idx = parent.getChildIndex(sel);\n if (idx > 0) {\n TreeItem sibling = parent.getChild(idx - 1);\n onSelection(findDeepestOpenChild(sibling), true... |
"public BeansXml getBeansXml() {\n WeldBootstrap wb = context.getTransientAppMetaData(WeldDeployer.WELD_BOOTSTRAP, WeldBootstrap.class);\n return wb.parse(beansXmlUrLs);\n}\n"
|
"protected void compileGraph(ControlFlowGraph graph) throws GraphException {\n ConstantPoolGen cpg = methodInfo.getConstantPoolGen();\n ClassInfo classInfo = methodInfo.getClassInfo();\n BcelGraphCompiler compiler = new BcelGraphCompiler(classInfo, cpg);\n method = compiler.compile(graph, classInfo.getClass... |
"public void lockAccess() throws IOException, AxelorException, JDOMException {\n HttpRequestSender sender;\n SPRRequestElement request;\n SPRResponseElement response;\n int httpCode;\n sender = new HttpRequestSender(session);\n request = new SPRRequestElement(session);\n request.build();\n reque... |
"public static IObjectWriter getRandomWriter(int dataType) {\n switch(dataType) {\n case DataType.BOOLEAN_TYPE:\n return new BooleanRandomWriter();\n case DataType.INTEGER_TYPE:\n return new IntegerRandomWriter();\n case DataType.BYTES_TYPE:\n return new BytesRan... |
"public void batchProcessed(int rowsInThisBatch) {\n List<List<Object>> columnValues = getColumnValuesAsList();\n Map<Integer, List<Object>> columnsByIndex = getColumnValuesAsMapOfIndexes();\n Object[][] expectedValues = getBatchesProcessed() == 0 ? expectedValueOnFirstBatch : expectedValueOnSecondBatch;\n ... |
"private boolean moveValid(Move move) {\n if (move instanceof MovementMove) {\n MovementMove mMove = (MovementMove) move;\n if (!wallIsHere(mMove.from(), mMove.to()) && mMove.from().equals(currentPlayer.getSpace()) && !isOccupied(mMove.to()) && (adjacentSpaces(mMove.from(), mMove.to()) || jumpValid(mMo... |
"private static long registerMethod(Class<?> targetClass, String methodName, Class[] types, int nArgs) {\n String methodIndexName = String.format(\"String_Node_Str\", targetClass.getSimpleName(), methodName, nArgs);\n synchronized (sMethodIndexLock) {\n Long methodId = METHOD_NAME_TO_ID.get(methodIndexName... |
"public boolean unassignInstanceFromJob(final AbstractInstance instance) {\n synchronized (this.assignedInstances) {\n return (this.assignedInstances.remove(instance) != null);\n }\n}\n"
|
"public void testConnection() throws InterruptedException {\n TestPacketListener listener = new TestPacketListener(NetworkConstants.ENetworkKey.TEST_PACKET);\n client1Channel.registerListener(listener);\n TestPacket testPacket = new TestPacket(\"String_Node_Str\", 2324);\n server1Channel.sendPacket(NetworkC... |
"protected Address parseAddress(JsonObject json) {\n JsonArray result = json.getJsonArray(\"String_Node_Str\");\n if (result != null) {\n JsonObject location = result.getJsonObject(0).getJsonObject(\"String_Node_Str\");\n if (location != null) {\n Address address = new Address();\n ... |
"private void makeTopicsPatSet() {\n final Set<Pattern> set = new HashSet<Pattern>();\n for (final TopicConfig topicConfig : this.metaConfig.getTopicConfigMap().values()) {\n if (topicConfig.isStat()) {\n set.add(Pattern.compile(topicConfig.getTopic().replaceAll(\"String_Node_Str\", \"String_Nod... |
"public ArrayList<DownloadLink> decryptIt(CryptedLink parameter, ProgressController progress) throws Exception {\n ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>();\n String fpName = parameter.getStringProperty(\"String_Node_Str\");\n br.setFollowRedirects(true);\n br.getPage(parameter... |
"final private JsonElement JsonValue() throws ParseException {\n JsonElement o = null;\n switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {\n case QUOTE:\n o = JsonString();\n break;\n case DIGITS:\n case 26:\n o = JsonNumber();\n break;\n case 15:... |
"protected static void mergeField(Tokenizer tokenizer, ExtensionRegistry extensionRegistry, Message.Builder builder) throws ParseException {\n FieldDescriptor field;\n Descriptor type = builder.getDescriptorForType();\n ExtensionRegistry.ExtensionInfo extension = null;\n boolean unknown = false;\n String... |
"public void writeInvJump(MethodWriter writer, Label dest, IValue instance, IArguments arguments) {\n if ((this.modifiers & Modifiers.STATIC) != 0) {\n if (instance != null && instance.getValueType() == IValue.CLASS_ACCESS) {\n instance = null;\n }\n if (this.intrinsicOpcodes != null)... |
"protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {\n if (nodeService.exists(actionedUponNodeRef) == true && freezeService.isFrozen(actionedUponNodeRef) == false) {\n if (recordService.isRecord(actionedUponNodeRef)) {\n ChildAssociationRef assocRef = nodeService.getPrimaryPare... |
"public void addSeriesToGanttDataset(TaskSeriesCollection ganttDataset, String keyOfDataset) {\n TaskSeries series = new TaskSeries(keyOfDataset);\n for (MultipleKey key : keyToVal.keySet()) {\n final Date[] date = keyToVal.get(key);\n series.add(new Task(((MultipleKey) key).toString(), new SimpleTi... |
"public void testGetWorkingDurationAcrossDayBoundary() {\n Calendar cal = new Calendar();\n Calendar.WorkingDay monday = new Calendar.WorkingDay();\n monday.setStartHour(9);\n monday.setEndHour(17);\n monday.setEndMinute(30);\n cal.setMonday(monday);\n Calendar.WorkingDay tuesday = new Calendar.Wor... |
"public void run() {\n while (true) {\n this.b();\n }\n}\n"
|
"public void updateProgressBar(int id, int data) {\n if (id == 0) {\n tileEntity.cookTime = data;\n }\n if (id == 1) {\n tileEntity.furnaceBurnTime = data;\n }\n if (id == 2) {\n tileEntity.currentItemBurnTime = data;\n }\n if (id == 3) {\n tileEntity.setPressure((float)... |
"public int nexttoken(boolean resetState) {\n String doctagname = \"String_Node_Str\";\n StringBuilder doctextbuf = null;\n int startofxml = pos();\n StringBuilder blockcommentbuf = null;\n char regexp_flags = 0;\n boolean maybe_reserved = false;\n char c = 0;\n if (resetState) {\n isFirs... |
"public void addToSchemaType(ArrayList<Property> properties, TypeDefParticle compositor, ComplexType type, Schema schema) {\n for (Property next : properties) {\n if (next == null) {\n continue;\n }\n TypeDefParticle parentCompositor = compositor;\n boolean isChoice = (parentCo... |
"public int compareTo(AEItemStack b) {\n int id = compare(def.item.hashCode(), b.def.item.hashCode());\n int dv = compare(def.damageValue, b.def.damageValue);\n int dspv = compare(def.dspDamage, b.def.dspDamage);\n return id == 0 ? (dv == 0 ? (dspv == 0 ? compareNBT(b.def) : dspv) : dv) : id;\n}\n"
|
"public void run() {\n TmfCoreTracer.traceRequest(fRequest, \"String_Node_Str\" + fProvider.getName());\n fRequest.start();\n int nbRequested = fRequest.getNbRequested();\n int nbRead = 0;\n isCompleted = false;\n ITmfContext context = fProvider.armRequest(fRequest);\n if (context == null) {\n ... |
"private net.openhft.lang.io.Bytes toReader(Wire wire, WireKey... args) {\n Bytes<?> bytes1 = wire.bytes();\n final long inSize = bytes1.limit();\n final net.openhft.lang.io.Bytes bytes = DirectStore.allocate(inSize).bytes();\n for (final WireKey field : args) {\n final ValueIn read = wire.read(field... |
"public Set<String> getHadoopLibrariesByType(ECustomVersionType type, String distribution, String version) {\n Set<String> set = new HashSet<String>();\n ClassLoader classLoader = HadoopClassLoaderFactory.getClassLoader(type, distribution, version, false, false);\n if (classLoader instanceof DynamicClassLoader... |
"public void reset() {\n if (!isReset && this.overwriteList != null) {\n for (Iterator iterator = this.iterator(); iterator.hasNext(); ) {\n ElementAdapter adapter = (ElementAdapter) iterator.next();\n if (this.overwriteList.contains(adapter.getId())) {\n iterator.remove()... |
"public boolean onQueryTextChange(String newText) {\n constraint = newText;\n friendsListAdapter.setFilterQueryProvider(this);\n if (state == State.FRIENDS_LIST && isNeedToHideSearchView) {\n friendsListAdapter.getFilter().filter(newText);\n friendsListAdapter.setSearchCharacters(newText);\n }... |
"protected List<DerivedField> createCategoricalDerivedField(ColumnConfig config, double cutoff) {\n Document document = null;\n try {\n document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();\n } catch (ParserConfigurationException e) {\n LOG.error(\"String_Node_Str\",... |
"private void edit(JsonTree item) {\n UITextEntry<JsonTree> inlineEditorEntry = new UITextEntry();\n inlineEditorEntry.bindValue(new Binding<JsonTree>() {\n public JsonTree get() {\n return item;\n }\n public void set(JsonTree value) {\n if (value != null) {\n ... |
"private void updateVolumeAttachments(final List<AttachedVolume> volumes) {\n final EntityTransaction db = Entities.get(VmInstance.class);\n try {\n final VmInstance entity = Entities.merge(this);\n entity.getTransientVolumeState().updateVolumeAttachments(Lists.transform(volumes, VmVolumeAttachment.... |
"public boolean implement(Network guestConfig, NetworkOffering offering, DeployDestination dest, ReservationContext context) throws ResourceUnavailableException, ConcurrentOperationException, InsufficientCapacityException {\n if (!canHandle(guestConfig.getGuestType(), dest.getDataCenter())) {\n return false;\... |
"public void testMemberRemoved() throws Exception {\n HazelcastClient client = mock(HazelcastClient.class);\n InetSocketAddress inetSocketAddress = new InetSocketAddress(\"String_Node_Str\", 5701);\n final Connection connection = mock(Connection.class);\n final List<LifecycleState> lifecycleEvents = new Arr... |
"private ReteTest readTest(DataInputStream dis, List<Symbol> symbolMap, List<AlphaMemory> alphaMemories) throws IOException {\n Symbol sym;\n int type = dis.readInt();\n int right_field_num = dis.readInt();\n ReteTest rt = new ReteTest(type);\n if (rt.test_is_constant_relational_test()) {\n type -... |
"public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) {\n if (isNamePatternStar()) {\n if (annotationPattern == AnnotationTypePattern.ANY) {\n if (dim == 0) {\n return TypePattern.ANY;\n }\n } else {\n ... |
"public void saveOpenid(String openid) {\n if (!applicationFormDAO.queryByOpenid(openid).isPresent()) {\n ApplicationForm applicationForm = new ApplicationForm();\n applicationForm.setOpenid(openid);\n applicationFormDAO.addForm(applicationForm);\n }\n}\n"
|
"public String cachedXPathGetString(String xpath, String prefixMappings) throws Docx4JException {\n if (cachedXPathAPI == null) {\n cachedXPathAPI = new CachedXPathAPI();\n }\n if (cachedPrefixMappings == null && prefixMappings != null) {\n cachedPrefixMappings = prefixMappings;\n getNames... |
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n GTIngredientsAttribute newObject = (GTIngredientsAttribute) super.clone(workspace);\n try {\n newObject._parse();\n } catch (MalformedStringException ex) {\n throw new CloneNotSupportedException(\"String_Node_Str\" + ... |
"private List<String> findFactoryCandidates(BundleContext context) throws IOException {\n Bundle[] bundles = context.getBundles();\n List<String> factoryCandidates = new ArrayList<String>();\n for (Bundle bundle : bundles) {\n if (bundle == null) {\n continue;\n }\n if (\"String... |
"protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {\n setFormDescription(\"String_Node_Str\");\n search = uifactory.addTextElement(\"String_Node_Str\", \"String_Node_Str\", 100, \"String_Node_Str\", formLayout);\n if (isUsedInStepWizzard()) {\n searchLink = ui... |
"public boolean isSelected(Object obj) throws Exception {\n if (selected == null)\n return false;\n return getId(obj).equals(getId(selected));\n}\n"
|
"public void sendProcessableTo(RemotelyProcessable rp, Connection conn) {\n Data value = ThreadContext.get().toData(rp);\n Packet packet = obtainPacket();\n packet.set(\"String_Node_Str\", ClusterOperation.REMOTELY_PROCESS, null, value);\n boolean sent = send(packet, conn);\n if (!sent) {\n packet... |
"protected void setUp() throws Exception {\n Class.forName(\"String_Node_Str\");\n conn = DriverManager.getConnection(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Statement stmt = conn.createStatement();\n stmt.executeUpdate(CREATE_DEPARTMENT_TABLE);\n stmt.executeUpdate(CREATE_EMPLO... |
"public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {\n Util.logging.Info(\"String_Node_Str\" + event.getMessage());\n long start = Util.timeMS();\n String Contrib = event.getMessage();\n Contrib = Contrib.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n if (!ZBukkitContrib.... |
"protected List<VolumeVO> create(Account account, VMInstanceVO vm, VMTemplateVO template, DataCenterVO dc, HostPodVO pod, ServiceOfferingVO offering, DiskOfferingVO diskOffering, List<StoragePoolVO> avoids, long size) {\n ArrayList<VolumeVO> vols = new ArrayList<VolumeVO>(2);\n VolumeVO dataVol = null;\n Volum... |
"protected void setup() {\n random = Config.getInstance().get(RANDOM_SEQUENCE);\n populationSize = Config.getInstance().get(SIZE);\n syntax = Config.getInstance().get(SYNTAX);\n returnType = Config.getInstance().get(RETURN_TYPE);\n allowDuplicates = Config.getInstance().get(ALLOW_DUPLICATES, true);\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.versions);\n bible = Bible.getBible(this);\n String[] from = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n int[] to = { R.id.code, R.id.name, R... |
"static void addToRow(SquareNode n, int corner, int sign, boolean skip, List<SquareNode> row) {\n SquareEdge e;\n while ((e = n.edges[corner]) != null) {\n if (e.a == n) {\n n = e.b;\n corner = e.sideB;\n } else {\n n = e.a;\n corner = e.sideA;\n }\... |
"private void createToolbarItems() {\n this.scrollView.addSubview(this.buttonItemStyleSegControl);\n UIBarButtonItemStyle style = UIBarButtonItemStyle.valueOf(this.buttonItemStyleSegControl.getSelectedSegment());\n UIBarButtonItem systemItem = new UIBarButtonItem(this.currentSystemItem, null, Selector.register... |
"public void signupAccount(String accountName, String password, String email) throws EucalyptusServiceException {\n randomDelay();\n User admin = EuareWebBackend.signupAccount(accountName, password, email);\n if (admin != null) {\n EuareWebBackend.notifyAccountRegistration(admin, accountName, email, Ser... |
"private void readGreenIndicesFromCSV(String csvFile) throws IOException {\n BufferedReader csvBuffer = null;\n try {\n String row;\n csvBuffer = new BufferedReader(new FileReader(csvFile));\n row = csvBuffer.readLine();\n char separator = row.contains(\"String_Node_Str\") ? ';' : ',';... |
"private void copyUnknownBlob() throws IOException {\n byte unknown = in.readByte();\n write(unknown);\n while (unknown != 0x7f) {\n int type = (unknown & 0xE0) >> 5;\n switch(type) {\n case 0:\n write(in.readByte());\n break;\n case 1:\n ... |
"public List<HistoricalQuote> getResult() throws IOException {\n List<HistoricalQuote> result = new ArrayList<HistoricalQuote>();\n if (this.from.after(this.to)) {\n YahooFinance.logger.log(Level.WARNING, \"String_Node_Str\" + \"String_Node_Str\" + this.from.getTime() + \"String_Node_Str\" + this.to.getTim... |
"public void actionPerformed(ActionEvent e) {\n boolean isVisible;\n isVisible = !uiService.isVisible();\n uiService.setVisible(isVisible);\n ConfigurationService configService = SystrayActivator.getConfigurationService();\n configService.setProperty(\"String_Node_Str\", new Boolean(isVisible));\n}\n"
|
"protected void configure() {\n bind(Scheduler.class).annotatedWith(Assisted.class).toInstance(createNoopScheduler());\n}\n"
|
"public boolean addAssignment(String emailDogSitter, Date dateStartAssignment, Date dateEndAssignment, HashSet<Dog> selectedDogs, Address meetingPoint, boolean paymentInCash) {\n DBConnector dbConnector = new DBConnector();\n int code = -1;\n try {\n ResultSet rs = dbConnector.askDB(\"String_Node_Str\")... |
"protected void dropSourceElementHandle(DesignElementHandle handle) throws SemanticException {\n if (handle.getContainer() != null) {\n if (DesignerConstants.TRACING_COMMANDS) {\n System.out.println(\"String_Node_Str\" + DEUtil.getDisplayLabel(handle));\n }\n if (handle instanceof Ext... |
"private static boolean unrollLoops(Logger logger, Program prog, Function f, Block block) {\n boolean unrolled = false;\n ListIterator<Continuation> it = block.continuationIterator();\n while (it.hasNext()) {\n Continuation c = it.next();\n for (Block b : c.getBlocks()) {\n boolean res... |
"private void updateProperty() {\n Object updateObject = result.getUpdateObject();\n if (updateObject == null) {\n return;\n }\n if (updateObject instanceof Node) {\n Node node = (Node) updateObject;\n boolean update = false;\n boolean isXsdPath = false;\n Object parameter... |
"public List<Object[]> executeQuery(DataManager connection, List<ModelElement> analysedElements) {\n dataFromTable.clear();\n try {\n beginQuery();\n } catch (Exception e1) {\n log.error(e1.getMessage(), e1);\n return dataFromTable;\n }\n DelimitedFileConnection delimitedFileconnecti... |
"public void own(DataRecordEntry dataRecordEntry) {\n Record record = storeDataRecordEntry(dataRecordEntry);\n if (record != null) {\n if (record.valueCount() > 0) {\n updateIndexes(record);\n }\n Map<Address, Boolean> keyListeners = dataRecordEntry.getListeners();\n if (key... |
"public boolean doLayout(List<? extends IGLLayoutElement> children, float w, float h, IGLLayoutElement parent, int deltaTimeMs) {\n for (IGLLayoutElement child : children) {\n child.setBounds(defaultValue2(child.getSetX(), 0), defaultValue2(child.getSetY(), 0), defaultValue(child.getSetWidth(), w), defaultVal... |
"public void restart(ExecutionVertexID executionVertexID, Configuration jobConfiguration) {\n Environment ee = this.runningTasks.remove(executionVertexID);\n ee.restartExecution();\n for (int i = 0; i < ee.getNumberOfInputGates(); i++) {\n InputGate<? extends Record> ingate = ee.getInputGate(i);\n ... |
"public boolean hasDrops() {\n return !itemDrops.isEmpty() && !entityDrops.isEmpty();\n}\n"
|
"public void testSematicCheck() throws DesignFileException {\n openDesign(semanticfileName);\n dataSet = designHandle.findJointDataSet(\"String_Node_Str\");\n List errors = design.getErrorList();\n assertEquals(2, errors.size());\n ErrorDetail detail = (ErrorDetail) errors.get(0);\n assertSame(dataSet... |
"public static int resolveType(SourceGeneratorLocalData localData, GraphTargetItem item, ABC abc, List<ABC> allABCs) throws CompilationException {\n int name_index = 0;\n GraphTargetItem typeItem = null;\n if (item instanceof UnresolvedAVM2Item) {\n String fullClass = localData.getFullClass();\n ... |
"public void testDebugLogWithFormat() throws Exception {\n Logger logger = new Logger(true);\n logger.debug(TEST_OWNER, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n List<ShadowLog.LogItem> logs = ShadowLog.getLogs();\n assertThat(logs).hasSize(1);\n assertThat(lo... |
"public static NodeTarget getPositionToInsert(INodePO node, boolean exp) {\n if (Plugin.getDefault().getPreferenceStore().getBoolean(Constants.NODE_INSERT_KEY)) {\n INodePO top = node.getSpecAncestor();\n if (top == null) {\n return null;\n }\n return new NodeTarget(top.getNode... |
"private void updateBinaryClassifiers() {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n List<BinaryTask> binaryTaskList = new ArrayList<>();\n for (int k = 0; k < cbm.numComponents; k++) {\n for (int l = 0; l < cbm.numLabels; l++) {\n binaryTaskList.add... |
"private static Graph createVoronoiGraph(Rect2d bounds, long seed) {\n double density = 256;\n int numSites = DoubleMath.roundToInt(bounds.area() / density, RoundingMode.HALF_UP);\n final Random r = new Random(seed);\n List<Vector2d> points = Lists.newArrayListWithCapacity(numSites);\n for (int i = 0; i ... |
"public void renderSmartConection(int x, int y, int z, IPartRenderHelper rh, RenderBlocks renderer, int channels, ForgeDirection of) {\n TileEntity te = this.tile.worldObj.getBlockTileEntity(x + of.offsetX, y + of.offsetY, z + of.offsetZ);\n IPartHost ccph = te instanceof IPartHost ? (IPartHost) te : null;\n I... |
"public void issueSYNCOPE272() {\n UserTO userTO = UserTestITCase.getUniqueSampleTO(\"String_Node_Str\");\n userTO.addResource(\"String_Node_Str\");\n userTO = createUser(userTO);\n try {\n assertNotNull(userTO);\n assertEquals(1, userTO.getPropagationStatusTOs().size());\n assertTrue(u... |
"public List<Integer> asList(final int[] is) {\n List<Integer> list = new ArrayList<Integer>();\n for (int i : is) {\n list.add(i);\n }\n return list;\n}\n"
|
"public void run(Environment environment) {\n checkArgument(environment != null, \"String_Node_Str\");\n environment.servlets().addServlet(\"String_Node_Str\" + jaxwsEnvironment.getDefaultPath(), jaxwsEnvironment.buildServlet()).addMapping(servletPath);\n environment.lifecycle().addServerLifecycleListener(new ... |
"public void addCpuUtilizationMs(Long cpuUtilizationMs) {\n this.cpuUtilizationMs = plus(this.cpuUtilizationMs, cpuUtilizationMs);\n}\n"
|
"public List<FileInfos> getFileInfos() {\n if (file_infos == null) {\n file_infos = new LinkedList<FileInfo>();\n }\n return file_infos;\n}\n"
|
"String mangleNameForPolyImpl(JMethod x) {\n StringBuffer sb = new StringBuffer();\n if (x.isPrivate() && !x.isStatic()) {\n sb.append(\"String_Node_Str\");\n sb.append(getNameString(x.getEnclosingType()));\n sb.append(\"String_Node_Str\");\n }\n sb.append(getNameString(x));\n sb.app... |
"protected Iterable<Map.Entry<Path, String>> getAllPaths(Optional<Path> workingDir) {\n if (!workingDir.isPresent()) {\n return other.entrySet();\n }\n return Iterables.concat(other.entrySet(), ImmutableList.of(new AbstractMap.SimpleEntry<>(workingDir.get(), fakeCompilationDirectory)));\n}\n"
|
"public void doSave(IProgressMonitor progressMonitor) {\n WSDataModel wsObject = (WSDataModel) (xobject.getWsObject());\n IDocument doc = ((XMLEditorInput) this.getEditorInput()).getDocument();\n String schema = doc.get();\n DataModelMainPage page = (DataModelMainPage) editor.formPages.get(0);\n page.set... |
"public static int getHour(String time) {\n String[] pieces = time.split(\"String_Node_Str\");\n if (pieces.length == 2) {\n return (Integer.parseInt(pieces[0]));\n } else {\n return 0;\n }\n}\n"
|
"public Object getEntity() {\n if (error != null) {\n throw new IllegalStateException(\"String_Node_Str\", error);\n }\n return super.getEntity();\n}\n"
|
"public String getNamespace() {\n String namespace = null;\n if (xmlSchema != null) {\n namespace = xmlSchema.namespace();\n }\n return namespace;\n}\n"
|
"protected void processAndClear(int processIndex, StreamEvent streamEvent) {\n ComplexEventChunk<StateEvent> retEventChunk = new ComplexEventChunk<StateEvent>(false);\n ComplexEventChunk<StreamEvent> currentStreamEventChunk = new ComplexEventChunk<StreamEvent>(streamEvent, streamEvent, false);\n ComplexEventCh... |
"public static Rectangle getNodeBoundsofHeader(Parent table, int column, boolean relative) {\n Class<?> clazz = null;\n try {\n clazz = Class.forName(JAVA8_TABLE_HEADER_ROW);\n } catch (ClassNotFoundException e) {\n try {\n clazz = Class.forName(JAVA9_TABLE_HEADER_ROW);\n } catc... |
"private void initComponents() {\n setLayout(new BorderLayout());\n setOpaque(false);\n scrollPane.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));\n scrollPane.setPreferredSize(new Dimension(120, 120));\n connectionTable.setPopupHandler(new TablePopupHandler() {\n public boolean isPop... |
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n unmarshalRecord.removeNullCapableValue(this);\n XMLDescriptor xmlDescriptor = (XMLDescriptor) xmlCompositeObjectMapping.getReferenceDescriptor();\n if (null == xmlDescriptor) {... |
"public void handleMessage(Message msg) {\n AsyncResult result = (AsyncResult) msg.obj;\n switch(msg.what) {\n case EVENT_VOICEMAIL_CHANGED:\n mVoicemailChangeResult = result;\n if (DBG)\n log(\"String_Node_Str\");\n break;\n case EVENT_FORWARDING_CHAN... |
"private AlertDialog createDialog() {\n mSilentModeToggle = new ToggleAction(R.drawable.ic_lock_silent_mode, R.drawable.ic_lock_silent_mode_off, R.string.global_action_toggle_silent_mode, R.string.global_action_silent_mode_on_status, R.string.global_action_silent_mode_off_status) {\n void onToggle(boolean on)... |
"public static ObjectId getEtagAsObjectId(Object etag) {\n if (etag == null)\n return null;\n if (ObjectId.isValid(\"String_Node_Str\" + etag))\n return new ObjectId(\"String_Node_Str\" + etag);\n else\n return new ObjectId();\n}\n"
|
"private void triggerWDT(long time) {\n if (timerMode) {\n SFR sfr = cpu.getSFR();\n sfr.setBitIFG(0, WATCHDOG_INTERRUPT_VALUE);\n scheduleTimer();\n } else {\n System.out.println(\"String_Node_Str\");\n cpu.generateTrace(System.out);\n cpu.flagInterrupt(RESET_VECTOR, thi... |
"public void toggleRecents(int growTarget) throws RemoteException {\n SomeArgs args = SomeArgs.obtain();\n args.argi1 = growTarget;\n mHandler.sendMessage(mHandler.obtainMessage(MSG_TOGGLE_RECENTS, args));\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n bind = DataBindingUtil.setContentView(this, R.layout.activity_chat);\n chatId = getIntent().getStringExtra(EXTRA_CHAT_ID);\n if (chatId == null)\n finish();\n db = FirebaseDatabase.getInstance();\n aut... |
"public void close(SessionExecutor executor) {\n try {\n executor.noop().get();\n synchronized (this) {\n if (!closed) {\n closeImmediately(executor);\n closed = true;\n }\n }\n } catch (InterruptedException ex) {\n throw new ToroRunt... |
"public void drawValues(Canvas c) {\n PointF center = mChart.getCenterCircleBox();\n float r = mChart.getRadius();\n float rotationAngle = mChart.getRotationAngle();\n float[] drawAngles = mChart.getDrawAngles();\n float[] absoluteAngles = mChart.getAbsoluteAngles();\n float off = r / 3f;\n if (mCh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.