content
stringlengths
40
137k
"void addTick(int x, int bin) {\n if (bin != mLastBin && mNumTicks < mTicks.length) {\n mTicks[mNumTicks] = x | bin << CHART_DATA_BIN_SHIFT;\n mNumTicks++;\n mLastBin = bin;\n }\n}\n"
"public void testAddListenerAfterFailureDoesntCauseDeadlock() throws InterruptedException {\n final StartThrowingService service = new StartThrowingService();\n service.start();\n assertEquals(State.FAILED, service.state());\n service.addListener(new RecordingListener(service), MoreExecutors.sameThreadExecu...
"private static Multimap<Long, RecommendedItem> readDataFile(File dataDir, double evaluationPercentage, RescorerProvider provider) throws IOException {\n int perMillion = (int) (1000000 * FastMath.sqrt(evaluationPercentage));\n Multimap<Long, RecommendedItem> data = ArrayListMultimap.create();\n for (File data...
"public Bitmap getScaleOneImageForPreset(ImageShow caller, ImagePreset imagePreset, Rect bounds, Rect destination, boolean force) {\n mLoadingLock.lock();\n Bitmap bmp = mZoomCache.getImage(imagePreset, bounds);\n if (force || bmp == null) {\n BitmapFactory.Options options = null;\n if (destinati...
"public void createControl(Composite parent) {\n cmpContent = new Composite(parent, SWT.NONE);\n {\n GridLayout glContent = new GridLayout(2, false);\n cmpContent.setLayout(glContent);\n GridData gd = new GridData(GridData.FILL_BOTH);\n cmpContent.setLayoutData(gd);\n }\n Composi...
"private boolean forwardDataflow(Logger logger, Program program, Function f, ExecContext execCx, Block block, ValueTracker cv, HierarchicalMap<Var, Arg> replaceInputs, HierarchicalMap<Var, Arg> replaceAll) throws InvalidOptionException, InvalidWriteException {\n if (block.getType() == BlockType.MAIN_BLOCK) {\n ...
"public static ecoRewardManager getRewardManager(Entity entity) {\n ecoRewardManager rewardManager = rewardManagers.get(entity.getWorld().getName());\n if (rewardManager == null) {\n rewardManager = globalRewardManager.get(ecoConfigManager.DEFAULT_WORLD);\n }\n return rewardManager;\n}\n"
"public long getValue() {\n try {\n long used = (Long) ((CompositeDataSupport) mbeanServer.getAttribute(memoryName, \"String_Node_Str\")).get(\"String_Node_Str\");\n long max = (Long) ((CompositeDataSupport) mbeanServer.getAttribute(memoryName, \"String_Node_Str\")).get(\"String_Node_Str\");\n r...
"public void run() {\n Looper.prepare();\n while (isRunning()) {\n compute();\n if (getPeriodTime() > 1) {\n try {\n Thread.sleep(getPeriodTime());\n }\n } catch (Exception e) {\n Log.e(TAG, \"String_Node_Str\" + e);\n }\n }\n}\n"
"public List<Plugin> getManagedPlugins(final ModelBase base) {\n if (base instanceof Model) {\n build = ((Model) base).getBuild();\n } else {\n build = ((Profile) base).getBuild();\n }\n return Collections.emptyList();\n}\n"
"public void updateMobileRadioStateLocked(final long elapsedRealtimeMs, final ModemActivityInfo activityInfo) {\n if (DEBUG_ENERGY) {\n Slog.d(TAG, \"String_Node_Str\" + activityInfo);\n }\n NetworkStats delta = null;\n try {\n if (!ArrayUtils.isEmpty(mMobileIfaces)) {\n delta = get...
"public synchronized ResultSet getTables(String c, String s, String t, String[] types) throws SQLException {\n checkOpen();\n tblNamePattern = (tblNamePattern == null || \"String_Node_Str\".equals(tblNamePattern)) ? \"String_Node_Str\" : escape(tblNamePattern);\n StringBuilder sql = new StringBuilder();\n s...
"public void mustProperlyCreatePacket() throws Exception {\n ExternalAddressNatPmpResponse resp = new ExternalAddressNatPmpResponse(1, 0xFFFFFFFFL, TEST_ADDRESS);\n assertEquals(128, resp.getOp());\n assertEquals(1, resp.getResultCode());\n assertEquals(0xFFFFFFFFL, resp.getSecondsSinceStartOfEpoch());\n ...
"private void executeActions(int classIndex, boolean isStatic, MethodBody body, int scriptIndex, ABC abc, AVM2Code code, int idx, int endIdx, ExecutionResult result) {\n List<GraphTargetItem> output = new ArrayList<>();\n AVM2LocalData localData = newLocalData(scriptIndex, abc, abc.constants, body, isStatic, clas...
"private void sendLocalFileSkinToClient(SkinRequestMessage requestMessage) {\n Skin skin = cacheLocalFile.get(requestMessage, true);\n if (skin != null) {\n sendSkinToClient(skin, requestMessage);\n } else {\n synchronized (messageWaitQueueLock) {\n messageWaitQueue.add(requestMessage)...
"private void collectStartVertices(final ManagementStage stage) {\n for (int i = 0; i < stage.getNumberOfGroupVertices(); i++) {\n final ManagementGroupVertex groupVertex = stage.getGroupVertex(i);\n if (this.forward) {\n if ((groupVertex.getNumberOfBackwardEdges() == 0) || ((this.stage >= 0...
"protected HazelcastInstance getHazelcastInstance() {\n if (hazelcastInstance == null) {\n synchronized (this) {\n if (hazelcastInstance == null) {\n hazelcastInstance = initHazelcast();\n }\n }\n }\n return hazelcastInstance;\n}\n"
"public int getVersionDifference(Object currentValue, Object domainObject, Vector primaryKeys, AbstractSession session) {\n return 0;\n}\n"
"public void doLayout() {\n TableColumn resizingColumn = getResizingColumn();\n boolean resizingColumnMet = false;\n int leftWidth = 0;\n List<TableColumn> rightColumns = new ArrayList<>();\n for (int i = 0; i < getColumnModel().getColumnCount(); i++) {\n if (resizingColumn == null || resizingColu...
"private List<AndroidString> filterAndroidString(List<AndroidString> origin, SupportedLanguages language, boolean override) {\n List<AndroidString> result = new ArrayList<AndroidString>();\n VirtualFile targetStringFile = LocalFileSystem.getInstance().findFileByPath(getValueResourcePath(language));\n List<Andr...
"public void addGrailsTestCompilerCustomizers(CompilationUnit groovyCompilationUnit) {\n String groovyVersion = GroovySystem.getVersion();\n if (groovyVersion.startsWith(\"String_Node_Str\") || groovyVersion.startsWith(\"String_Node_Str\")) {\n ImportCustomizer importCustomizer = new ImportCustomizer() {\n...
"public static HashMap<String, Object> createParameters(SharedPreferences prefs, Context context) {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, context, CallActivity.class));\n params...
"public void toggleSelection() {\n if (controller.countInstances() > 0) {\n controller.getCurrentDataSet().toggleSelection();\n controller.getCurrent().updateSelection();\n }\n}\n"
"private String[] splitOnBreaks(String s, double maxSize) {\n List<String> al = new ArrayList<String>();\n int i = 0, j;\n do {\n j = s.indexOf('\\n', i);\n if (j == -1) {\n j = s.length();\n }\n String ss = s.substring(i, j);\n if (ss != null && ss.length() > 0) {...
"public String toSource(String path, boolean isStatic, int classIndex, ABC abc, ConstantPool constants, MethodInfo[] method_info, MethodBody body, boolean hilighted, HashMap<Integer, String> localRegNames, Stack<GraphTargetItem> scopeStack, boolean isStaticInitializer, List<String> fullyQualifiedNames, Traits initTrait...
"private List<AppTransitionAnimationSpec> composeAnimationSpecs(final Task task, final TaskStackView stackView, final int destinationStack) {\n final int targetStackId = destinationStack != INVALID_STACK_ID ? destinationStack : task.key.stackId;\n if (!StackId.useAnimationSpecForAppTransition(targetStackId)) {\n ...
"void lateInitialize() {\n try {\n for (InitializedLater object : toBeInitializedLater) {\n object.later();\n }\n } finally {\n if (!lookupExtensionInBeanManager) {\n try {\n InitialContext ic = InitialContextHelper.getInitialContext();\n if...
"protected Object getConstraintFor(ChangeBoundsRequest request, GraphicalEditPart child) {\n IFigure figure = child.getFigure();\n Rectangle rect = new PrecisionRectangle(figure.getBounds());\n figure.translateToAbsolute(rect);\n rect = request.getTransformedRectangle(rect);\n rect.translate(getLayoutOri...
"public static Planar<GrayU8> yuvToPlanarYuvU8(Image yuv, Planar<GrayU8> output, byte[] work) {\n int width = yuv.getWidth();\n int height = yuv.getHeight();\n if (output != null) {\n output.reshape(width, height, 3);\n } else {\n output = new Planar(GrayU8.class, width, height, 3);\n }\n ...
"protected AbstractPushBufferStream createStream(int streamIndex, FormatControl formatControl) {\n DirectShowStream stream = new DirectShowStream(formatControl);\n grabber = stream.grabber;\n return stream;\n}\n"
"private List<SourceFile> createExternInputs(List<String> files) throws FlagUsageException, IOException {\n if (files.isEmpty()) {\n return ImmutableList.of(SourceFile.fromCode(\"String_Node_Str\", \"String_Node_Str\"));\n }\n List<FlagEntry<JsSourceType>> externFiles = new ArrayList<>();\n for (Stri...
"public static String getProviderName(Record rec) {\n return SubmissionLookupUtils.getFirstValue(rec, SubmissionLookupService.PROVIDER_NAME_FIELD);\n}\n"
"private void setUpLocalPlayer(Context context) {\n LocalPlayer localPlayer = new LocalPlayer();\n localPlayer.setRecordAndReplayClasses(new EntityIdMap(), new DirectionAndOriginPosRecorderList());\n clientEntity = mock(EntityRef.class);\n ClientComponent clientComponent = new ClientComponent();\n charac...
"protected String exec(AppCommandParser parser, Session session, Output out) throws ShellException, RemoteException {\n IndexProvider indexes = indexes();\n boolean doCd = parser.options().containsKey(\"String_Node_Str\");\n boolean doLs = parser.options().containsKey(\"String_Node_Str\");\n boolean query =...
"public void guiceJobFactory() throws Exception {\n Config conf = ConfigFactory.empty().withValue(\"String_Node_Str\", ConfigValueFactory.fromAnyRef(\"String_Node_Str\"));\n Properties props = new Properties();\n props.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n Job job = ctx -> {\n };\n ...
"private void removeDeclaration(Reference decl) {\n Node varNode = decl.getParent();\n Node grandparent = decl.getGrandparent();\n compiler.reportChangeToEnclosingScope(decl.getNode());\n varNode.removeChild(decl.getNode());\n if (!varNode.hasChildren()) {\n Preconditions.checkState(varNode.isVar(...
"private void onValidateTables(List<TableInfo> tableInfos, KsDef ksDef) throws Exception {\n cassandra_client.set_keyspace(ksDef.getName());\n for (TableInfo tableInfo : tableInfos) {\n if (isCql3Enabled(tableInfo) && !tableInfo.getType().equals(Type.SUPER_COLUMN_FAMILY.name())) {\n CqlMetadata ...
"public void saveState(IMemento memento) {\n for (SearchOption option : optionsMap.keySet()) {\n memento.putString(OPTIONS_KEY_ID + option.name(), optionsMap.get(option).toString());\n }\n for (Entry<String, IOptionConfigurationHandler<?>> entry : configurableOptionSet.entrySet()) {\n IOptionConf...
"protected Map<Entity, Throwable> waitForTasksOnEntityStart(Map<Entity, Task<?>> tasks) {\n Map<Entity, Throwable> errors = Maps.newLinkedHashMap();\n for (Map.Entry<Entity, Task<?>> entry : tasks.entrySet()) {\n Entity entity = entry.getKey();\n Task<?> task = entry.getValue();\n try {\n ...
"private void reloadHeaderBarLayout(boolean tryAndBindSearchWidget, TaskStack stack) {\n RecentsConfiguration config = Recents.getConfiguration();\n SystemServicesProxy ssp = Recents.getSystemServices();\n Rect windowRect = ssp.getWindowRect();\n config.update(windowRect);\n if (RecentsDebugFlags.Static....
"public void handle(Message<JsonObject> r) {\n JsonArray res = r.body().getArray(\"String_Node_Str\");\n if (\"String_Node_Str\".equals(r.body().getString(\"String_Node_Str\")) && res != null && res.size() == 1) {\n String profile = ((JsonObject) res.get(0)).getString(\"String_Node_Str\");\n Validat...
"private void restorePlayerState() {\n logger.debug(\"String_Node_Str\");\n squeezeBoxServerHandler.playPlaylistItem(mac, playerState.getPlaylistIndex());\n squeezeBoxServerHandler.setPlayingTime(mac, playerState.getPlayingTime());\n switch(playerState.getPlayState()) {\n case PLAY:\n logg...
"public void compile() throws ProcedureException {\n JsErrorHandler errorHandler = new JsErrorHandler();\n Context cx;\n String[] lines;\n String str;\n StringBuffer code = new StringBuffer();\n int idx;\n cx = Context.enter();\n try {\n cx.setLanguageVersion(Context.VERSION_ES6);\n ...
"public void onResults(Bundle resultsBundle) {\n List<String> results = resultsBundle.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);\n mState = DEFAULT;\n final Map<String, List<CharSequence>> alternatives = new HashMap<String, List<CharSequence>>();\n if (results.size() >= 2 && ENABLE_WORD_CORRE...
"public IArboristTracker getBreedingTracker(World world, GameProfile player) {\n String filename = \"String_Node_Str\" + (player == null ? \"String_Node_Str\" : player.getId());\n ArboristTracker tracker = (ArboristTracker) world.loadItemData(ArboristTracker.class, filename);\n if (tracker == null) {\n ...
"public void test10_DuplicateColName() throws Exception {\n String testSQL = \"String_Node_Str\" + getTestTableName();\n ((OdaDataSetDesign) this.dataSet).setQueryText(testSQL);\n String[] bindingNameRow = new String[2];\n bindingNameRow[0] = \"String_Node_Str\";\n bindingNameRow[1] = \"String_Node_Str\"...
"public boolean isNewerVersion(AbstractRecord databaseRow, Object domainObject, java.util.Vector primaryKey, AbstractSession session) {\n Number writeLockFieldValue;\n Number newWriteLockFieldValue = (Number) databaseRow.get(getWriteLockField());\n if (isStoredInCache()) {\n writeLockFieldValue = (Numbe...
"public void testBinarySearchInBetweenSameTimestamp() {\n int checkpointNum = 0;\n for (; checkpointNum < 100; checkpointNum++) {\n TmfCheckpoint checkpoint = new TmfCheckpoint(new TmfTimestamp(0), new TmfLongLocation(checkpointNum), checkpointNum);\n fCheckpointCollection.insert(checkpoint);\n }...
"public void renderSeries(IPrimitiveRenderer ipr, Plot p, ISeriesRenderingHints isrh) throws ChartException {\n final ChartWithAxes cwa = (ChartWithAxes) getModel();\n if (cwa.getDimension() != ChartDimension.TWO_DIMENSIONAL_LITERAL) {\n throw new ChartException(ChartEngineExtensionPlugin.ID, ChartExceptio...
"public boolean process(EllipseRotated_F64 ellipse) {\n if (numContourPoints <= 0) {\n score = 0;\n return true;\n }\n double cphi = Math.cos(ellipse.phi);\n double sphi = Math.sin(ellipse.phi);\n averageInside = 0;\n averageOutside = 0;\n int total = 0;\n for (int contourIndex = 0...
"public void setContainersVisible(boolean visible) {\n for (GroupMemberContainerManager gcm : builders.values()) {\n gcm.setVisible(visible);\n }\n}\n"
"public static void main(String[] args) {\n OCache oc = new OCache();\n OCache oc2 = new OCache();\n int i, j;\n com.jopdesign.io.SysDevice sys = com.jopdesign.io.IOFactory.getFactory().getSysDevice();\n sys.wd = 1;\n Basic btest = new Basic();\n sys.wd = 0;\n oc2.a = 3;\n i = oc.a;\n i = ...
"public boolean addCounters(Counter counter, Ability source, Game game, List<UUID> appliedEffects, boolean isEffect) {\n boolean returnCode = true;\n UUID sourceId = getId();\n if (source != null) {\n MageObject object = game.getObject(source.getId());\n if (object instanceof StackObject) {\n ...
"public void testRecordTypeLeastSuperType3() {\n RecordTypeBuilder builder = new RecordTypeBuilder(registry);\n builder.addProperty(\"String_Node_Str\", NUMBER_TYPE, null);\n builder.addProperty(\"String_Node_Str\", STRING_TYPE, null);\n builder.addProperty(\"String_Node_Str\", STRING_TYPE, null);\n JSTy...
"private void readPackageLPw(XmlPullParser parser) throws XmlPullParserException, IOException {\n String name = null;\n String realName = null;\n String idStr = null;\n String sharedIdStr = null;\n String codePathStr = null;\n String resourcePathStr = null;\n String nativeLibraryPathStr = null;\n ...
"public void handleDiscovered(String switchId, String portId) {\n Node node = new Node(switchId, portId);\n List<DiscoveryNode> subjectList = filterQueue(node);\n if (subjectList.size() == 0) {\n logger.warn(\"String_Node_Str\", node);\n } else {\n DiscoveryNode subject = subjectList.get(0);\n...
"public void render(Component comp, Writer out) throws IOException {\n final SmartWriter wh = new SmartWriter(out);\n final Flash self = (Flash) comp;\n final String uuid = self.getUuid();\n final String encsrc = self.getEncodedSrc(), bgcolor = self.getBgcolor();\n wh.write(\"String_Node_Str\").write(uui...
"public long open(DataSpec dataSpec) throws IOException {\n try {\n uri = dataSpec.uri;\n flags = dataSpec.flags;\n key = CacheUtil.getKey(dataSpec);\n readPosition = dataSpec.position;\n currentRequestIgnoresCache = (ignoreCacheOnError && seenCacheError) || (dataSpec.length == C.L...
"public void resolveTypes(MarkerList markers, IContext context) {\n if (this.type == null) {\n this.type = Types.UNKNOWN;\n markers.add(this.position, \"String_Node_Str\");\n return;\n }\n this.type = this.type.resolve(markers, context, TypePosition.TYPE);\n GenericType generic = new Ge...
"public void open() {\n for (Output output : outputs) {\n copyHeaders(output);\n output.setStatus(getStatusCode(), getStatusMessage());\n output.setCharsetName(getCharsetName());\n output.open();\n }\n output = ChainedOutputStream.createChain(outputs);\n}\n"
"public void run() {\n latch.countDown();\n map.putIfAbsent(\"String_Node_Str\", \"String_Node_Str\");\n latch.countDown();\n}\n"
"public void actionPerformed(ActionEvent e) {\n boolean strError = false;\n String error = \"String_Node_Str\";\n String reply = textReply.getText();\n if (reply.equals(\"String_Node_Str\")) {\n strError = true;\n error = \"String_Node_Str\";\n }\n if (reply.contains(\"String_Node_Str\")...
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (super.applies(event, source, game) && event instanceof DamageEvent) {\n Permanent targetPermanent = game.getPermanent(this.getTargetPointer().getFirst(game, source));\n if (targetPermanent != null && (event.getSourceId().equals...
"protected AbstractParseState generalJumpTo() {\n IPropertyDefn jmpDefn = null;\n if (struct != null)\n jmpDefn = struct.getDefn().getMember(name);\n else\n jmpDefn = element.getPropertyDefn(name);\n if (jmpDefn != null && ((PropertyDefn) jmpDefn).isElementType()) {\n ElementPropertySta...
"private Date getModifiedDateRecursive(String fileName) throws FileException {\n FileConnection file = null;\n System.out.println(\"String_Node_Str\" + fileName);\n if (!fileName.endsWith(\"String_Node_Str\")) {\n fileName += \"String_Node_Str\";\n }\n try {\n file = (FileConnection) Connec...
"void addMember(Member member) {\n members.add(member);\n final Class[] paramTypes = MethodUtilities.getParameterTypes(member);\n final int paramCount = paramTypes.length;\n signatures.put(member, paramTypes.clone());\n beforeWideningUnwrappingHints(member, paramTypes);\n if (unwrappingHintsByParamCou...
"public Portal getPortalAt(Location loc) {\n loc = Portal.getHandleBlock(loc);\n for (int i = 0; i < portals.size(); i++) {\n Location key = (Location) portals.keySet().toArray()[i];\n if (key.getBlockX() == loc.getBlockX() && key.getBlockY() == loc.getBlockY() && key.getBlockZ() == loc.getBlockZ() ...
"public boolean generate(World world, Random random, int x, int y, int z) {\n int type = 1;\n int height = random.nextInt(4) + 1;\n boolean flag = true;\n if (y >= 1 && y + height + 1 < 256) {\n int blockID;\n int posY;\n int range;\n int posX = 0;\n for (blockID = y; bloc...
"public IParameterDefn[] getParameterDefn() {\n IParameterDefn[] paramDefn = new IParameterDefn[] { new ParameterDefn(Constants.EXPRESSION_NAME, Constants.EXPRESSION_DISPLAY_NAME, false, true, SupportedDataTypes.ANY, Messages.getString(\"String_Node_Str\")), new ParameterDefn(Constants.SEPARATOR_NAME, Constants.SEPA...
"private boolean isDeletable(Account account, Status status) {\n boolean deletable;\n if (!status.isRetweet()) {\n deletable = status.getUser().getId() == account.userID;\n } else {\n deletable = status.getRetweetedStatus().getUser().getId() == account.userID;\n }\n return deletable;\n}\n"
"public void loadCastle(float X, float Y) {\n GestureDefence.this.sCastle.setPosition(X, Y);\n GestureDefence.this.sm.GameScreen.getChild(2).attachChild(sCastle);\n}\n"
"public void testHandle() {\n InputStream in = this.getClass().getClassLoader().getResourceAsStream(\"String_Node_Str\");\n BufferedReader inBuffReader = new BufferedReader(new InputStreamReader(in));\n String start = \"String_Node_Str\";\n String end = \"String_Node_Str\";\n String line = null;\n try...
"public boolean onPreDraw() {\n searchPanel.getViewTreeObserver().removeOnPreDrawListener(this);\n final ViewGroup searchPanelParent = (ViewGroup) searchPanel.getParent();\n final int revealRadius = (int) Math.hypot(searchPanelParent.getWidth(), searchPanelParent.getHeight());\n Animator show = ViewAnimatio...
"public List<String> getAllEiids() {\n List<String> eiids = new ArrayList<String>();\n if (this.eiid != null)\n eiids.add(this.eiid);\n if (this.eiids != null)\n for (String eiid : this.eiids) eiids.add(eiid);\n return eiids;\n}\n"
"public boolean chooseNewTargets(Game game, UUID playerId, boolean forceChange, boolean onlyOneTarget) {\n Player player = game.getPlayer(playerId);\n if (player != null) {\n for (SpellAbility spellAbility : spellAbilities) {\n for (UUID modeId : spellAbility.getModes().getSelectedModes()) {\n ...
"public ArrayList getJavaLinks(int lnNum) {\n Iterator it = getAttrList().iterator();\n ArrayList list = new ArrayList();\n while (it.hasNext()) {\n SootAttribute sa = (SootAttribute) it.next();\n System.out.println(\"String_Node_Str\" + lnNum);\n if (sa.attrForJavaLn(lnNum)) {\n ...
"private long getStartTimestamp(AgentStatBo agentStatBo) {\n List<CpuLoadBo> cpuLoadBos = agentStatBo.getCpuLoadBos();\n if (CollectionUtils.isEmpty(cpuLoadBos)) {\n CpuLoadBo cpuLoadBo = cpuLoadBos.get(0);\n if (cpuLoadBo != null) {\n return cpuLoadBo.getStartTimestamp();\n }\n ...
"double roundValue(double value) {\n if (roundPrecision >= 0) {\n BigDecimal bd = BigDecimal.valueOf(value);\n int scale = bd.scale();\n if (scale > roundPrecision) {\n bd = bd.setScale(roundPrecision, roundingMode);\n return bd.doubleValue();\n }\n }\n return ...
"public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n String handle = parameters.getParameter(\"String_Node_Str\", null);\n Division main = body.addDivision(\"String_Node_Str\");\n main.setHead(T_main_head.parameterize(handle));\n ...
"public IDType getLeaveIDType() {\n return leafIDType;\n}\n"
"public void getMethodMatches(List<MethodMatch> list, IValue instance, Name name, IArguments arguments) {\n if (this.upperBound != null) {\n this.upperBound.getMethodMatches(list, instance, name, arguments);\n }\n}\n"
"public void execute() {\n checkExecution();\n}\n"
"public Element exportObject(OTDataObject dataObj, OTDataObject parent, String parentResourceName) throws Exception {\n OTID id = dataObj.getGlobalId();\n if (shouldWriteReference(dataObj, parent, parentResourceName)) {\n return exportObjectReference(id);\n }\n writtenIds.add(id);\n String objectF...
"public void unindex(EntityMetadata metadata, String id) {\n log.debug(\"String_Node_Str\");\n}\n"
"public void run() {\n final Iterator<ExecutionVertexID> it = threadSafeList.iterator();\n while (it.hasNext()) {\n final ExecutionVertexID vertexID = it.next();\n EnvelopeConsumptionLog.removeLog(vertexID);\n CheckpointUtils.removeCheckpoint(vertexID);\n }\n}\n"
"public void reset() {\n corners = null;\n touch = null;\n center.set(-1, -1);\n largestSide = 0;\n for (int i = 0; i < 4; i++) {\n if (edges[i] != null)\n throw new RuntimeException(\"String_Node_Str\");\n sideLengths[i] = 0;\n }\n}\n"
"public void closeAllCacheManagers() throws Exception {\n ClassLoader contextLoader = Thread.currentThread().getContextClassLoader();\n CachingProvider provider = Caching.getCachingProvider(contextLoader);\n URI uri = provider.getDefaultURI();\n ClassLoader loader1 = new MyClassLoader(contextLoader);\n C...
"public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {\n return super.scheduleAtFixedRate(WrappedRunnable.wrap(LOG, command), initialDelay, period, unit);\n}\n"
"protected void setOCItemDataDNs(OdmClinicalDataBean data, String idataIds, HashMap<Integer, String> idataOidPoses) {\n this.setOCItemDataDNsTypesExpected();\n HashMap<String, ArrayList<ChildNoteBean>> pDNs = new HashMap<String, ArrayList<ChildNoteBean>>();\n HashMap<String, ArrayList<DiscrepancyNoteBean>> sDN...
"public void allocatedResourceDied(final JobID jobID, final AllocatedResource allocatedResource) {\n LOG.info(\"String_Node_Str\" + allocatedResource.getInstance().getName() + \"String_Node_Str\" + jobID + \"String_Node_Str\");\n ExecutionGraph job = this.jobQueue.getFirst();\n Iterator<ExecutionGraph> iterato...
"protected OperationFactory createOperationFactory() {\n return new MultiMapOperationFactory(name, MultiMapOperationFactory.OperationFactoryType.CONTAINS, null, value);\n}\n"
"private int walk(CompactHashSet<Object> sets, CompactHashSet<E> members, Object[] children, int pos) {\n for (Object child : children) {\n if ((pos >> 3) >= memo.length) {\n memo = Arrays.copyOf(memo, memo.length * 2);\n }\n if (child instanceof Object[]) {\n if (sets.add(...
"public void should_start_and_linked_containers_with_run_params_if_specified() {\n DockerImageBuildConfiguration dockerImageBuildConfiguration = new DockerImageBuildConfiguration(of(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", asList(of(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\",...
"public int read(int address, boolean word) {\n int val = 0;\n if (address < 0x1ff && memIn[address] != null) {\n val = memIn[address].read(address, word, cycles);\n } else {\n address &= 0xffff;\n val = memory[address] & 0xff;\n if (word) {\n val |= (memory[(address + 1)...
"public void onClick(View v) {\n BalancingRobotFullSizeActivity activity = (BalancingRobotFullSizeActivity) getActivity();\n if (activity == null || activity.mChatService == null) {\n if (D)\n Log.e(TAG, \"String_Node_Str\");\n return;\n }\n if (activity.mChatService.getState() == B...
"private void destroy(V view) {\n final Activity activity = getActivity((View) view);\n if (!activity.isChangingConfigurations()) {\n if (!hasOnViewDownCalled)\n onDetach(view);\n presenter.onDestroy();\n if (listener != null) {\n listener.onDestroy(id);\n }\n ...
"public String getExtensiveReport() {\n String detailedReport = \"String_Node_Str\";\n long compCount = 1;\n for (Set<Resource> component : connectedSets) {\n detailedReport += \"String_Node_Str\" + compCount + \"String_Node_Str\" + component.size() + \"String_Node_Str\" + component.toString() + \"Strin...
"public long syncDb(long id, long folderId, String rssurl) throws Exception {\n mId = id;\n mFolderId = folderId;\n mRssUrl = rssurl;\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n reader.setCon...
"public boolean appliesTo(Event event) {\n return event.widget instanceof Button && (((Button) event.widget).getStyle() & SWT.CHECK) != 0 && event.type == SWT.Selection;\n}\n"
"private void writePackageTree(WSDLDocInterface wsdlDoc) throws OutputFormatterException {\n Node root = getTypesInTree(wsdlDoc);\n StringBuffer html = new StringBuffer();\n html.append(HtmlUtils.getAnchorTag(null, \"String_Node_Str\", null, \"String_Node_Str\") + Constants.NBSP_TWICE);\n html.append(HtmlUt...