content
stringlengths
40
137k
"public void testOverrideMasterSpreadObjects() throws Exception {\n Spread newSpread;\n String masterSpreadName = \"String_Node_Str\";\n newSpread = cloned.newSpread(masterSpreadName);\n newSpread.setTransformationMatrix(0);\n MasterSpread master = cloned.getMasterSpread(masterSpreadName);\n assertNot...
"private void checkCallParamTypes(CallNode call, TemplateNode callee) {\n TemplateParamTypes calleeParamTypes = getTemplateParamTypes(callee);\n Set<String> explicitParams = Sets.newHashSet();\n for (CallParamNode callerParam : call.getChildren()) {\n SoyType argType = null;\n if (callerParam.get...
"boolean applyOptions() {\n BittorrentSettings.UPLOAD_TORRENTS_FOREVER.setValue(uploadTorrentsForeverButton.isSelected());\n if (!uploadTorrentsForeverButton.isSelected()) {\n BittorrentSettings.LIBTORRENT_SEED_RATIO_LIMIT.setValue(seedRatioModel.getNumber().floatValue());\n BittorrentSettings.LIBTO...
"public void show() {\n shell.open();\n while (!shell.isDisposed()) {\n try {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n } catch (final Exception e) {\n controller.actionShowErrorDialog(Resources.getMessage(\"String_Node_Str\"), Resou...
"static Throwable recursiveGetThrowable(ErrorTrace et) {\n String classname = ErrorTraceManipulator.getProperty(et, PROPERTY_JAVAEXCEPTION_CLASS);\n String message = ErrorTraceManipulator.getProperty(et, PROPERTY_JAVAEXCEPTION_MESSAGE);\n if (message == null) {\n message = \"String_Node_Str\";\n }\n ...
"public void testNewRuleInLatestGroovy() {\n if (GroovyUtils.GROOVY_LEVEL < 18) {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\"...
"private boolean includeRCSAForDescription(IContainer container, IRemoteServiceContainerAdapter adapter, ID endpointID, ServiceEndpointDescription description) {\n if (endpointID.equals(container.getID()))\n return false;\n String connectNamespaceName = (String) description.getProperty(ECFServicePublicatio...
"private boolean chunkLoaded() {\n return this.bukkitEntity.getWorld().isChunkLoaded(this.npc.getChunkX(), this.npc.getChunkZ());\n}\n"
"private double evaluateConsistencyMultiThread(final int intervals, double[] grad) {\n double f_direct = 0.0;\n double f_inverse = 0.0;\n final int nproc = Runtime.getRuntime().availableProcessors();\n int block_height_target = this.targetCurrentHeight / nproc;\n if (this.targetCurrentHeight % 2 != 0)\n ...
"public static boolean isSupernodeOS() {\n if (_isWindows98 || _isWindows95 || _isMacClassic) {\n return false;\n }\n return true;\n}\n"
"protected void configure() {\n bind(FileManager.class).to(FileManagerStub.class);\n}\n"
"public void testSetTimeout_noTimeout() {\n delayTestFinish(TEST_FINISH_DELAY);\n try {\n RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, getTestBaseURL() + \"String_Node_Str\");\n builder.setTimeoutMillis(10000);\n builder.sendRequest(null, new RequestCallback() {\n ...
"public IssueRelation createRelation(String projectKey, Integer issueId, Integer issueToId, String type) throws IOException, AuthenticationException, NotFoundException, RedmineException {\n URI uri = createURI(\"String_Node_Str\" + issueId + \"String_Node_Str\");\n HttpPost http = new HttpPost(uri);\n IssueRel...
"public boolean contains(Object o) {\n return set.contains(o);\n}\n"
"public void update(SshMachineLocation machine) {\n synchronized (mutex) {\n String[] templateList = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n for (String fileName : templateList) {\n String contents = ((BindDnsServerSshDriver) getDriver()).processTemplate(\"String_Node_St...
"public boolean onScaleBegin(ScaleGestureDetector detector) {\n if (scaleDetectorActive) {\n isScaled = true;\n scale = 1.0f;\n mEdgeGlowLeft.onRelease();\n mEdgeGlowRight.onRelease();\n mEdgeGlowTop.onRelease();\n mEdgeGlowBottom.onRelease();\n } else {\n isScaled...
"public void flushCache() throws CacheFileManagerException {\n try {\n flushCache(file_position, length, false, -1, 0, -1);\n file.flush();\n } catch (FMFileManagerException e) {\n manager.rethrow(this, e);\n }\n}\n"
"public IMethod getCalleeTarget(CGNode N, CallSiteReference site, IClass receiver) {\n MethodReference m = site.getDeclaredTarget();\n if (isEJBSuperInterface(m.getDeclaringClass())) {\n IClass inferred = getReceiverClassFromTypeInference(N, site);\n if (inferred != null) {\n receiver = i...
"protected Rectangle forwardMapRect(Rectangle sourceRect, int sourceIndex) {\n if (sourceRect == null) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n } else if (sourceIndex != 0) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n }...
"private void preRenderSetupSceneReflectiveRefractive(boolean isHeadUnderWater) {\n sceneReflectiveRefractive = frameBuffersManager.getFBO(\"String_Node_Str\");\n sceneReflectiveRefractive.bind();\n if (isHeadUnderWater) {\n GL11.glDisable(GL11.GL_CULL_FACE);\n }\n}\n"
"public static void main(final String[] args) {\n if ((args == null) || (args.length == 0)) {\n log.error(\"String_Node_Str\");\n System.exit(1);\n }\n final SimpleIngestIndexWriter si = new SimpleIngestIndexWriter();\n DataStore geowaveDataStore = null;\n String namespace = null;\n Stri...
"public long lastModified() {\n long lastModified = 0;\n for (File xmlFile : gwtXmlFiles) {\n if (xmlFile.exists()) {\n lastModified = Math.min(lastModified, xmlFile.lastModified());\n }\n }\n return lastModified;\n}\n"
"private int getPosition(Object target) {\n this.newTarget = target;\n int position = DNDUtil.calculateNextPosition(target, canContain);\n if (position > -1) {\n if (DNDUtil.getDesignElementHandle(target).getContainerSlotHandle() != null) {\n this.newTarget = DNDUtil.getDesignElementHandle(ta...
"private boolean isOwnColumnBinding(int pos) {\n List<ComputedColumnHandle> bindings = getBindingList(inputElement);\n return pos < 0 ? false : bindings.get(pos).getElementHandle() == inputElement;\n}\n"
"public void render() {\n GL10 gl = Gdx.graphics.getGL10();\n gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\n camera.update();\n camera.apply(gl);\n if (Gdx.input.justTouched()) {\n wp = new WayPoint(spawn, target, false);\n wp.CalculateNextPossibleWayPoints();\n }\n meshObj.render(gl);\n ...
"public void onReceive(Context context, Intent intent) {\n final String action = intent.getAction();\n if (SettingsFragment.ACTION_UPDATED_STATUS_PERIOD.equals(action)) {\n scheduleWatchdog();\n }\n}\n"
"public void moveChange(long segmentIndex, long oldPos, long newPos) {\n for (long next = modIterSet.nextSetBit(0L); next > 0L; next = modIterSet.nextSetBit(next + 1L)) {\n try {\n ModificationIterator modificationIterator = acquireModificationIterator((byte) next);\n if (modificationIte...
"public void testResultingMarginalsProb() {\n boolean logDomain = false;\n testResultMarginalsHelper(logDomain, false);\n testResultMarginalsHelper(logDomain, true);\n}\n"
"private void generateProxyMethod(SourceWriter w, SerializableTypeOracle serializableTypeOracle, JMethod syncMethod, JMethod asyncMethod) {\n w.println();\n JType asyncReturnType = asyncMethod.getReturnType().getErasedType();\n w.print(\"String_Node_Str\");\n w.print(asyncReturnType.getQualifiedSourceName()...
"StockholmStructure parse(Scanner scanner) throws ParserException, IOException {\n if (scanner == null) {\n if (internalScanner != null) {\n scanner = internalScanner;\n } else {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n }\n this.stockholmStruct...
"public void onRequest(InfoData info, GitHubData request) {\n if (!requests.contains(request)) {\n requests.add(request);\n else {\n int i = requests.indexOf(request);\n GitHubData activeRequest = requests.get(i);\n if (activeRequest.isInitialized()) {\n info.onInit(activeRe...
"Object getParameterValue(int idx) {\n if (idx == 0) {\n return name;\n } else {\n final int argDescsEnd = paramNames.length * 2 + 1;\n if (idx < argDescsEnd) {\n String paramName = paramNames[(idx - 1) / 2];\n if (idx % 2 != 0) {\n return paramName;\n ...
"public void apply() {\n System.out.println(\"String_Node_Str\" + this.varplaceholder.getInvocation().getExecutable().getSimpleName() + \"String_Node_Str\" + this.selectedExecutableTarget.getSimpleName());\n this.previousElementName = this.varplaceholder.getInvocation().getExecutable().getSimpleName();\n this....
"public void calculateBuffer() {\n if (adderUGen == null) {\n for (int j = 0; j < outs; j++) {\n float[] bi = bufIn[j];\n float[] bo = bufOut[j];\n for (int i = 0; i < bufferSize; i++) {\n bo[i] = bi[i] + adder;\n }\n }\n } else {\n a...
"public boolean onBreak(Player p, Block b, SlimefunItem item, UnregisterReason reason) {\n me.mrCookieSlime.Slimefun.holograms.XPCollector.getArmorStand(b).remove();\n for (int slot : getOutputSlots()) {\n if (BlockStorage.getInventory(b).getItemInSlot(slot) != null) {\n b.getWorld().dropItemNat...
"public void updateData(List<ListGroup> data) {\n if (data == null || expandableListView == null) {\n if (!isDataBound()) {\n setDataBound(false);\n }\n return;\n }\n if (data.isEmpty()) {\n Log.d(Constants.LOG_TAG, \"String_Node_Str\");\n if (!isDataBound()) {\n ...
"public void testLaunchCliAppLaunchError() throws Throwable {\n final String app = \"String_Node_Str\";\n final Process brooklyn = startBrooklyn(\"String_Node_Str\", \"String_Node_Str\", app, \"String_Node_Str\", \"String_Node_Str\");\n BrooklynCliTest test = new BrooklynCliTest(brooklyn) {\n public voi...
"public void testLeaveGroup() {\n mockServer.expect(requestTo(\"String_Node_Str\")).andExpect(method(DELETE)).andRespond(withSuccess(\"String_Node_Str\", MediaType.TEXT_PLAIN));\n yammerTemplate.groupOperations().leaveGroup(1234L);\n}\n"
"public void PreCacheFavIcon(Feed feed) {\n if (feed.getFaviconUrl() == null) {\n Log.v(TAG, \"String_Node_Str\" + feed.getFeedTitle());\n return;\n }\n new GetImageThreaded(feed.getFaviconUrl(), favIconDownloadFinished, feed.getId()).start();\n}\n"
"protected void onResume() {\n super.onResume();\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n if ((!firstTime) && (CategoryList.isSignedIn() == false)) {\n Intent frontdoor = new Intent(this, FrontDoor.class);\n startActivity(frontdoor);\n finish();\n }\n}\n"
"private boolean connectLow(String dbUrl, String driverClassName, Properties props) throws SQLException {\n boolean ok = true;\n try {\n driver = ConnectionUtils.getClassDriver(driverClassName);\n connection = driver.connect(dbUrl, props);\n this.providerConnection = DatabaseContentRetriever....
"private void populateNodeRelEvent(PrimitiveElement element, TransactionDataImpl result) {\n for (int nodeId : element.nodes.keySet()) {\n CowNodeElement nodeElement = element.nodes.get(nodeId);\n NodeProxy node = new NodeProxy(nodeId, nodeManager);\n NodeImpl nodeImpl = nodeManager.getNodeForPr...
"public void startRequest(MRCRequest rq) {\n try {\n final readdirRequest rqArgs = (readdirRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n Path p = new Pa...
"public void setMold(String mold) {\n if (mold != null && (DEFAULT.equals(mold) || mold.length() == 0))\n mold = null;\n if (!Objects.equals(_auxinf != null ? _auxinf.mold : DEFAULT, mold)) {\n if (!_def.hasMold(mold != null ? mold : DEFAULT))\n throw new UiException(\"String_Node_Str\" +...
"private void fullRefresh() throws IOException {\n resolutionsByResource = Maps.newIdentityHashMap();\n childPathsByParentPath = ArrayListMultimap.create();\n maybeInitializeWatchService();\n onNewDirectory(rootDirectory);\n}\n"
"boolean isPrototype(StringBuffer source) {\n String s = source.toString();\n if (s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\...
"public void setUp() throws SDKException {\n String restUrl = OntSdkTest.URL;\n ontSdk = OntSdk.getInstance();\n ontSdk.setRestful(restUrl);\n ontSdk.setDefaultConnect(ontSdk.getRestful());\n ontSdk.openWalletFile(walletFile);\n}\n"
"private void updateColumnsOfDataSetHandle() {\n DataSetHandle dataSet = ((DataSetEditor) getContainer()).getHandle();\n DataSetViewData[] items;\n try {\n items = DataSetProvider.getCurrentInstance().getColumns(dataSet, false, true);\n int inexistence = 0;\n for (int i = 0; i < items.leng...
"public static boolean isArgComplex(ArgumentType argument) {\n return isTypeComplex(argument.getEnclosedType());\n}\n"
"public static List<String> varNameList(List<Arg> inputs) {\n ArrayList<String> result = new ArrayList<String>();\n collectVarNames(result, inputs, false);\n return result;\n}\n"
"public static void init() {\n blockCrop = new BlockCrop();\n RegisterHelper.registerBlock(blockCrop, Names.Objects.crops);\n seedAnalyzer = new BlockSeedAnalyzer();\n RegisterHelper.registerBlock(seedAnalyzer, Names.Objects.seedAnalyzer);\n if (!ConfigurationHandler.disableIrrigation) {\n blockWa...
"public static Integer toInteger(Object source) throws BirtException {\n if (source == null)\n return null;\n if (source instanceof Integer) {\n return (Integer) source;\n } else if (source instanceof Number) {\n int intValue = ((Number) source).intValue();\n return new Integer(intV...
"public Query<T> order(String condition) {\n if (snapshotted)\n throw new QueryException(\"String_Node_Str\");\n sort = parseFieldsString(condition, clazz, this.ds.getMapper(), this.validateName);\n return this;\n}\n"
"private void updateSearchGroupList() {\n List<BusinessGroup> groups;\n if (searchController.isEmpty()) {\n groups = Collections.emptyList();\n } else {\n Long id = searchController.getId();\n String name = searchController.getName();\n String description = searchController.getDescr...
"public void testTxnReplace() throws TransactionException {\n Config config = new Config();\n final TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);\n final HazelcastInstance h1 = factory.newHazelcastInstance(config);\n final HazelcastInstance h2 = factory.newHazelcastInstance(confi...
"public void run() {\n ServerUpdate update;\n while (true) {\n synchronized (updates) {\n while ((update = updates.poll()) == null) {\n try {\n updates.wait();\n } catch (InterruptedException e) {\n }\n }\n upd...
"public void acquire() {\n int ticket = VM_Synchronization.fetchAndAdd(this, dispenserFieldOffset, 1);\n int retryCountdown = TIMEOUT_CHECK_FREQ;\n long localStart = 0;\n long lastSlowReport = 0;\n while (ticket != serving) {\n if (localStart == 0)\n lastSlowReport = localStart = VM_Tim...
"public void handleFree(DownloadLink link) throws Exception {\n requestFileInformation(link);\n dl = jd.plugins.BrowserAdapter.openDownload(this.br, link, DLLINK, true, 0);\n if (!dl.getConnection().isContentDisposition() && !dl.getConnection().getContentType().startsWith(\"String_Node_Str\")) {\n this....
"public void writeTo(StreamOutput out) throws IOException {\n super.writeTo(out);\n try {\n out.writeLong(contextId.getMostSignificantBits());\n out.writeLong(contextId.getLeastSignificantBits());\n out.writeBoolean(failed);\n if (!failed) {\n groupByResult.writeTo(out);\n ...
"private void generateIOStateInterfacesFirstPass(Set<EndpointState> visited, EndpointState s) {\n if (visited.contains(s) || s.isTerminal()) {\n return;\n }\n String key = IOStateInterfaceGenerator.getIOStateInterfaceName(getSelf(), s);\n if (!this.iostates.containsKey(key)) {\n IOStateInterfa...
"public void registrationStateChanged(RegistrationStateChangeEvent evt) {\n if (evt.getNewState().equals(RegistrationState.UNREGISTERING)) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n cancelTimer();\n ssContactList.destroy();\n try {\n ...
"private void recordVariationQualitiesAndClear(Alignments.AlignmentEntry.Builder result, List<Alignments.SequenceVariation> sequenceVariationsList) {\n int index = 0;\n for (final Alignments.SequenceVariation seqVar : sequenceVariationsList) {\n final String from = seqVar.getFrom();\n final ByteStri...
"private ServiceGroup getServiceGroup(String serviceGroupName) throws ApplicationDefinitionException {\n try {\n return RegistryManager.getInstance().getServiceGroup(serviceGroupUuid);\n } catch (Exception e) {\n String errorMsg = \"String_Node_Str\" + serviceGroupName;\n log.error(errorMsg, ...
"public void queryBySku() {\n final String sku = \"String_Node_Str\";\n final ProductVariantDraft masterVariant = ProductVariantDraftBuilder.of().sku(sku).attributes(Sizes.ATTRIBUTE.draftOf(Sizes.S), Colors.ATTRIBUTE.draftOf(Colors.GREEN)).build();\n final ProductDraft productDraft = ProductDraftBuilder.of(pro...
"private void mergeBuckets() {\n List<KeyIterable<Integer, Row>> buckets = new ArrayList<>(numBuckets);\n synchronized (lock) {\n for (Map.Entry<Integer, Bucket> entry : bucketsByIdx.entrySet()) {\n buckets.add(new KeyIterable<>(entry.getKey(), entry.getValue()));\n }\n }\n for (Int...
"public boolean execute(ExecutionContext executionContext) throws ProcessExecutionException, InterruptedException {\n try {\n SingleMassArgs args = (SingleMassArgs) this.getProcessArgs();\n log.info(\"String_Node_Str\" + args.getConfig().getAbsolutePath());\n log.debug(\"String_Node_Str\");\n ...
"protected void init(RepositoryNode node) {\n ERepositoryObjectType nodeType = (ERepositoryObjectType) node.getProperties(EProperties.CONTENT_TYPE);\n if (ERepositoryObjectType.METADATA_FILE_FTP != null && !ERepositoryObjectType.METADATA_FILE_FTP.equals(nodeType)) {\n setEnabled(false);\n return;\n ...
"private static boolean testAndMark(VM_Address ref, int value) throws VM_PragmaInline {\n int oldValue;\n do {\n oldValue = VM_Interface.prepareAvailableBits(ref);\n VM_Word markBit = oldValue.and(GC_MARK_BIT_MASK);\n if (markBit.EQ(value))\n return false;\n } while (!VM_Interfa...
"public Set<DistributionModuleGroup> getModuleGroups(ComponentType componentType, String componentName) {\n return getNodeModuleGroupsMap().get(new NodeComponentTypeBean(componentType, componentName));\n}\n"
"public synchronized void mergeTable(AttributeTable table) {\n for (AttributeColumn column : table.getColumns()) {\n AttributeColumn existingCol = getColumn(column);\n if (existingCol == null) {\n addColumn(column.getId(), column.getTitle(), column.getType(), column.getOrigin(), column.getDe...
"private URI replaceHREF(final String attName, final Attributes atts) {\n URI attValue = toURI(atts.getValue(attName));\n if (attValue != null) {\n final String fragment = attValue.getFragment();\n if (fragment != null) {\n attValue = stripFragment(attValue);\n }\n if (attVa...
"public List<String> getPopulateStatements(String table) {\n List<String> statements = new ArrayList<>();\n if (table.equals(\"String_Node_Str\")) {\n statements = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n } else if (table.equals(\"String_Node_S...
"protected PlayersClient get_player_client() {\n if (mPlayersClient == null) {\n GoogleAuthentication googleAuthentication = GoogleAuthentication.getInstance(activity);\n mPlayersClient = Games.getPlayersClient(activity, googleAuthentication.get_account());\n }\n return mPlayersClient;\n}\n"
"public MigrationResult migrateFromFiles(String settingsFile, String databaseFile, boolean doMigrateDatabase) {\n logger.info(\"String_Node_Str\", settingsFile, databaseFile);\n Map<String, String> migrationData = new HashMap<>();\n migrationData.put(\"String_Node_Str\", databaseFile);\n migrationData.put(\...
"public static boolean isSchemaFromSidOrDatabase(EDatabaseTypeName inType) {\n if (EDatabaseTypeName.TERADATA.equals(inType) || EDatabaseTypeName.IMPALA.equals(inType) || EDatabaseTypeName.AS400.equals(inType) || EDatabaseTypeName.EXASOL.equals(inType) || EDatabaseTypeName.HIVE.equals(inType)) {\n return true...
"public void damage(int dmg, Object src) {\n if (dmg >= HP) {\n ((PrisonBossLevel) Dungeon.level).progress();\n return;\n }\n int beforeHitHP = HP;\n super.damage(dmg, src);\n if (beforeHitHP > HT / 2 && HP <= HT / 2) {\n HP = HT / 2;\n yell(\"String_Node_Str\");\n ((Pr...
"private int getNextId() {\n try {\n wbLock.lock();\n maxId++;\n return maxId * 1000 + SysConfig.serverId;\n } finally {\n idLock.unlock();\n }\n}\n"
"protected Boolean doInBackground(Post... posts) {\n post = posts[0];\n nm = (NotificationManager) context.getSystemService(\"String_Node_Str\");\n String postOrPage = (String) (post.isPage() ? context.getResources().getText(R.string.page_id) : context.getResources().getText(R.string.post_id));\n String mes...
"private void emitColumnAssignment(JavaWriter javaWriter, String valueStatement) throws IOException {\n boolean isContainerFieldDefinition = accessModel.isModelContainerAdapter;\n boolean fieldIsAModelContainer = accessModel.fieldIsAModelContainer;\n boolean isNull = valueStatement.equals(\"String_Node_Str\");...
"public int parseInto(DateTimeParserBucket bucket, String text, int position) {\n DateTimeParser[] parsers = iParsers;\n int length = parsers.length;\n final Object originalState = bucket.saveState();\n boolean isOptional = false;\n int bestValidPos = position;\n int bestValidParser = 0;\n for (int...
"public StreamConnector getStreamConnector(Channel channel) {\n if (!getChannels().contains(channel)) {\n return null;\n MultiplexingDatagramSocket rtpSocket = iceStream.getComponent(Component.RTP).getSocket();\n MultiplexingDatagramSocket rtcpSocket;\n if (numComponents > 1 && !rtcpmux) {\n r...
"protected static double computeLoudestFreq(FrequenciesState fs) {\n double max = 0;\n double freq = 0;\n for (int i = 0; i < fs.getMaxfrequency() / 2; i++) {\n double val = Math.pow(fs.getState()[i].abs(), 2);\n freq = (max < val ? i : freq);\n max = (max < val ? val : max);\n }\n r...
"public void testOpenCaseOld() {\n SymmetryAxes axes = new SymmetryAxes();\n Matrix4d t10 = new Matrix4d();\n t10.set(1, new Vector3d(1, 0, 0));\n List<Integer> repeats = Arrays.asList(0, 0, 1, 1, 2, 2, 3, 3);\n List<List<Integer>> superposition = Arrays.asList(Arrays.asList(0, 1, 2, 3, 4, 5), Arrays.asL...
"protected void handleSelectionButtonEnablement(List<Object> selectedObjects) {\n if (projects == null || projects.isEmpty()) {\n selectionButtons.get(ButtonTypes.ADD).setEnabled(false);\n selectionButtons.get(ButtonTypes.EDIT).setEnabled(false);\n selectionButtons.get(ButtonTypes.REMOVE).setEna...
"public Word next() {\n Position currentPos = mPositions.getLast();\n mCurrentString.setLength(currentPos.length);\n do {\n if (currentPos.pos.hasNext()) {\n final CharGroup currentGroup = currentPos.pos.next();\n currentPos.length = mCurrentString.length();\n for (int i...
"public PgpEditKeyResult modifySecretKeyRing(CanonicalizedSecretKeyRing wsKR, CryptoInputParcel cryptoInput, SaveKeyringParcel saveParcel, OperationLog log) {\n int indent = 0;\n log.add(LogType.MSG_MF, indent, KeyFormattingUtils.convertKeyIdToHex(wsKR.getMasterKeyId()));\n indent += 1;\n progress(R.string....
"public boolean syncDeleteVMs(List<BaseNode> badNodes, StatusUpdater statusUpdator, boolean ignoreUnavailableNodes) {\n logger.info(\"String_Node_Str\");\n List<Callable<Void>> storeProcedures = new ArrayList<Callable<Void>>();\n for (int i = 0; i < badNodes.size(); i++) {\n BaseNode node = badNodes.get...
"public static SortedMap<String, Object> rhombusMapFromJsonMap(Map<String, Object> jsonMap, CDefinition definition) {\n SortedMap<String, Object> rhombusMap = Maps.newTreeMap();\n for (CField field : definition.getFields().values()) {\n if (jsonMap.containsKey(field.getName())) {\n rhombusMap.pu...
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n DatasetId instance = cliConfig.getCurrentNamespace().dataset(arguments.get(ArgumentName.DATASET.toString()));\n Map<String, String> properties = datasetClient.getProperties(instance);\n output.printf(GSON.toJson(properties));\n}...
"public void run(Context context) throws IOException, InterruptedException {\n String userReducer = context.getConfiguration().get(ATTR_REDUCER_CLASS);\n Reducer delegate = createReducerInstance(context, userReducer);\n MapReduceContextProvider mrContextProvider = new MapReduceContextProvider(context);\n Ba...
"private void retrieveAIPPreservationInformation(StoragePath storagePath, List<String> representationIds, final Map<String, List<String>> preservationRepresentationObjects, final Map<String, List<String>> preservationFileObjects, final Map<String, List<String>> preservationEvents) {\n for (String representationID : ...
"protected CtElement getFixIngredient(Gen gen, CtElement targetStmt, String type, GenProgMutationOperation operationType) {\n CtElement fix = null;\n int attempts = 0;\n boolean continueSearching = true;\n int elementsFromFixSpace = 0;\n List<?> ingredients = null;\n if (type == null) {\n ingre...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = source.getSourceObject(game);\n if (controller != null && sourceObject != null) {\n Cards topLib = new CardsImpl();\n topLib.addAll(controller.getLibrary(...
"private void handleColor(ChannelUID channelUID, HSBType command) throws IOException {\n if (CHANNEL_COLOR.equals(channelUID.getId())) {\n handleBrightness(command.getBrightness());\n connection.sendCommand(commands.color(new HSBType(command.getHue(), command.getSaturation(), PercentType.HUNDRED)));\n ...
"public void context_popup(EMouseClick event) {\n class ActionDrop extends BaseItemAction {\n BaseItem item;\n public ActionDrop(BaseItem item) {\n this.item = item;\n this.name = \"String_Node_Str\";\n }\n public void execute() {\n System.out.println(\"St...
"public void encodeBegin(FacesContext context) throws IOException {\n ResponseWriter writer = context.getResponseWriter();\n Map<String, Object> attributes = getAttributes();\n String clientId = getClientId(context);\n writer.startElement(\"String_Node_Str\", this);\n writer.writeAttribute(\"String_Node_...
"public void render(SafeHtmlBuilder sb, List<C> values, int start, SelectionModel<? super C> selectionModel) {\n CellTree.Style style = nodeView.tree.getStyle();\n String itemValueStyle = style.cellTreeItemValue();\n String selectedStyle = \"String_Node_Str\" + style.cellTreeSelectedItem();\n String itemSty...
"public RecordType getRecordTypeById(Context context, long id) {\n RecordTypeDao recordTypeDao = getDaoSession(context).getRecordTypeDao();\n RecordType recordType = getSingleData(recordTypeDao.queryBuilder().where(RecordTypeDao.Properties.RecordTypeID.eq(id)).build().list());\n if (recordType == null)\n ...
"protected List<Object> recursivelyPopulateEntities(EntityMetadata m, Client client) {\n List<Object> entities = new ArrayList<Object>();\n ApplicationMetadata appMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata();\n String query = appMetadata.getQuery(getJPAQuery());\n boolean isNative = kunderaQ...
"public SSHClientOutput execCommand(String command, int timeoutSeconds) throws Exception {\n try {\n System.out.println(\"String_Node_Str\" + username + \"String_Node_Str\" + hostname + \"String_Node_Str\" + command);\n StringBuffer text = new StringBuffer();\n int exitCode = -1;\n Sessio...