content stringlengths 40 137k |
|---|
"public final void render(IDeviceRenderer idr, GeneratedChartState gcs) throws ChartException {\n final Chart cm = gcs.getChartModel();\n idr.getDisplayServer().setResourceFinder(gcs.getRunTimeContext().getResourceFinder());\n ScriptHandler.callFunction(gcs.getRunTimeContext().getScriptHandler(), ScriptHandler... |
"public static void openURL(String url) throws IOException {\n if (!loadedWithoutErrors) {\n throw new IOException(\"String_Node_Str\" + errorMessage);\n }\n if (!url.startsWith(\"String_Node_Str\")) {\n File urlFile = null;\n try {\n urlFile = new File(url);\n } catch (E... |
"public Object visitQuery(cqlParser.QueryContext ctx) {\n QueryContext queryContext = new QueryContext();\n queries.push(queryContext);\n try {\n List<AliasedQuerySource> sources;\n queryContext.enterSourceClause();\n try {\n sources = (List<AliasedQuerySource>) visit(ctx.source... |
"public int getSourceObjectZoneChangeCounter() {\n return ability.getSourceObjectZoneChangeCounter();\n}\n"
|
"public Object executeTransform(final Object input) {\n if (graph == null) {\n graph = pipeline.getGraphDatabase();\n final OClass cls = graph.getEdgeType(edgeClass);\n if (cls == null)\n graph.createEdgeType(edgeClass);\n }\n Object joinValue;\n final OrientVertex vertex;\n ... |
"public static CharGroup findWordInTree(Node node, final String s) {\n int index = 0;\n final StringBuilder checker = DBG ? new StringBuilder() : null;\n CharGroup currentGroup;\n do {\n int indexOfGroup = findIndexOfChar(node, s.codePointAt(index));\n if (CHARACTER_NOT_FOUND == indexOfGroup)\... |
"void gui() {\n robotTimer += Gdx.graphics.getDeltaTime();\n if (robotTimer > 60) {\n robotResources += 1;\n robotTimer = 0;\n }\n amountOfStoneString = Integer.toString(robotResources);\n if (bot.closeEnough() && Gdx.input.isKeyPressed(Keys.L)) {\n menuOpen = true;\n }\n if (m... |
"public static List<Restaurant> searchRestaurant(String search) {\n return restService.searchRestaurant(search, getLat(), getLong());\n}\n"
|
"public void onIncreaseViewDistance(IncreaseViewDistanceButton button, EntityRef entity) {\n int viewDistance = config.getRendering().getViewDistance().getIndex();\n int maxViewDistance = ViewDistance.values().length - 1;\n if (viewDistance != maxViewDistance) {\n config.getRendering().setViewDistance(V... |
"public void updateTags(String playername, String originalPlayerName) {\n PlayerCombatClass PCCPlr1 = getPCC(playername);\n if (PCCPlr1.isTagged()) {\n logit(PCCPlr1.getPlayerName() + \"String_Node_Str\");\n if (PCCPlr1.tagExpired()) {\n logit(\"String_Node_Str\");\n if (!(PCCP... |
"public List<Container> listContainers(final ListContainersParam... params) throws DockerException, InterruptedException {\n WebTarget resource = resource().path(\"String_Node_Str\").path(\"String_Node_Str\");\n final Map<String, List<String>> filters = newHashMap();\n for (final ListContainersParam param : pa... |
"public static String getCurrentVersion(boolean normalize) {\n String version = VersionUtils.getVersion();\n if (normalize) {\n version = normalizeVersion(version);\n }\n return version;\n}\n"
|
"public String getInstantiationSourceCode(Configuration config, ClassMeta classMeta, ConstructorMeta constructorMeta) {\n StringBuilder buf = new StringBuilder();\n if (constructorMeta == null) {\n appendTabs(buf, 2);\n buf.append(classMeta.name);\n buf.append(\"String_Node_Str\");\n b... |
"private boolean loadDrafts() {\n List<Map<String, Object>> loadedPosts;\n if (isPage) {\n loadedPosts = WordPress.wpDB.loadDrafts(WordPress.currentBlog.getId(), true);\n } else {\n loadedPosts = WordPress.wpDB.loadDrafts(WordPress.currentBlog.getId(), false);\n }\n if (loadedPosts != null)... |
"public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\").append(this.currentEpoch).append(\"String_Node_Str\").append(Bootstrap.isCloudController() ? \"String_Node_Str\" : \"String_Node_Str\");\n return builder.toString();\n}\n"
|
"public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions) {\n GraphTargetItem value = stack.pop();\n GraphTargetItem name = stack.pop();\n SetVariableTre... |
"private void setupDayOneEntry(List<CalendarEvent> eventList, CalendarEvent event) {\n if (isEqualOrAfterStartOfPeriod(event.getStartDate())) {\n if (event.daysSpanned() > 1) {\n CalendarEvent clone = event.clone();\n clone.setEndDate(event.getStartDay().plusDays(1));\n clone.... |
"private void convertModels(String dungeonKeeperFolder, String destination, AssetManager assetManager) {\n if (!ConvertProcess.MODELS.isOutdated()) {\n return;\n }\n LOGGER.log(Level.INFO, \"String_Node_Str\", destination);\n updateStatus(null, null, ConvertProcess.MODELS);\n AssetUtils.deleteFold... |
"void materializeCube(CubeHandle cubeHandle, Map appContext, boolean isTransient) throws BirtException {\n int mode = this.sessionContext.getDataEngineContext().getMode();\n try {\n if (appContext == null)\n appContext = sessionContext.getAppContext();\n String memoryUsage = (String) (app... |
"public void doReportGraphs(StaplerRequest req, StaplerResponse rsp) throws IOException {\n PRQANotifier notifier = (PRQANotifier) getPublisher();\n HashMap<StatusCategory, Boolean> drawMatrix = _doDrawThresholds(req, rsp);\n if (notifier != null) {\n String className = req.getParameter(\"String_Node_St... |
"private static void insertSubreddit(ArrayList<Subreddit> subreddits, String name) {\n int count = subreddits.size();\n for (int i = 0; i < count; i++) {\n String subreddit = subreddits.get(i).name;\n if (name.equalsIgnoreCase(subreddit)) {\n return false;\n }\n }\n subreddit... |
"public void modifyText(ModifyEvent e) {\n markDirtyWithoutCommit();\n}\n"
|
"public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {\n return supportsMediaType(mediaType);\n}\n"
|
"public Object datapack(MuleMessage message, String outputEncoding) throws TransformerException {\n this.generateHeadersIfNecessary(message);\n StringBuilder output = new StringBuilder();\n for (int i = 0; i < columns.size(); i++) {\n Column column = columns.get(i);\n String value = this.evaluate... |
"public void processImage(int sourceID, long frameID, final BufferedImage buffered, ImageBase input) {\n System.out.flush();\n original = ConvertBufferedImage.checkCopy(buffered, original);\n work = ConvertBufferedImage.checkDeclare(buffered, work);\n final double timeInSeconds;\n synchronized (lockProce... |
"public <T> T get(String key) {\n return (T) extractResult(key, getEntry(key), \"String_Node_Str\");\n}\n"
|
"public static void main(String[] args) {\n List<String> cleanedArgsList = new ArrayList<String>();\n for (int i = 0; i < args.length; i++) {\n if (args[i].startsWith(\"String_Node_Str\")) {\n String keyValue = args[i].substring(2, args[i].length());\n int index = keyValue.indexOf(\"S... |
"private void addConfigParamsFromConfig(final OkHttpClient.Builder builder, final GenieNetworkConfiguration genieNetworkConfiguration) {\n if (genieNetworkConfiguration.getConnectTimeout() != GenieNetworkConfiguration.DEFAULT_TIMEOUT) {\n builder.connectTimeout(genieNetworkConfiguration.getConnectTimeout(), T... |
"public boolean applies(Permanent permanent, Ability source, Game game) {\n return permanent.canBlock(source.getFirstTarget(), game);\n}\n"
|
"default <T> T methodWriter(Class<T> tClass, Class... additional) {\n return queue().methodWriter(tClass, additional);\n}\n"
|
"public ReportArtEntity generateReportArt(final ReportArtEntity report) {\n log.debug(\"String_Node_Str\");\n final Map<String, VolumeArtEntity> volumeEntities = new HashMap<String, VolumeArtEntity>();\n foreachReportingVolumeCreateEvent(report.getEndMs(), new Predicate<ReportingVolumeCreateEvent>() {\n ... |
"private void addNavigatorFields(Composite parent) {\n Group naviGroup = Form.createGroup(parent, 1, Messages.getString(\"String_Node_Str\"), 110);\n naviGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n Composite naviPartComposite = new Composite(naviGroup, SWT.NULL);\n GridLayout authPartLayo... |
"public String transformText(Chunk chunk, String text, String[] args) {\n String templateName;\n if (args != null && args.length > 0) {\n templateName = args[0];\n if (chunk != null) {\n templateName = BlockTag.qualifyTemplateRef(chunk.getTemplateOrigin(), templateName);\n }\n }... |
"public void performTest(Database database) throws JDBCException {\n if (!database.supportsTablespaces()) {\n return;\n }\n CreateTableStatement statement = new CreateTableStatement(TABLE_NAME).addPrimaryKeyColumn(\"String_Node_Str\", \"String_Node_Str\").addColumn(\"String_Node_Str\", \"String_Node_Str... |
"public void testDefaultConstructor() {\n Assert.assertNull(this.a.getCommands());\n Assert.assertNull(this.a.getConfigs());\n Assert.assertNull(this.a.getEnvPropFile());\n Assert.assertNull(this.a.getStatus());\n Assert.assertNull(this.a.getJars());\n Assert.assertNull(this.a.getName());\n Assert.... |
"void iter() {\n Ary<Node> funs = new Ary<>(new Node[1], 0);\n BitSet fun_bits = new BitSet();\n boolean work;\n while ((work = _work._len > 0) || funs._len > 0) {\n Node n = (work ? _work : funs).pop();\n (work ? _wrk_bits : fun_bits).clear(n._uid);\n if (n.is_dead())\n cont... |
"public static void main(String[] args) {\n log.debug(\"String_Node_Str\");\n a.uploadFile(\"String_Node_Str\");\n log.debug(\"String_Node_Str\");\n new S3Service().downloadFile(\"String_Node_Str\", \"String_Node_Str\");\n log.debug(\"String_Node_Str\");\n}\n"
|
"public void run() {\n if (SchematicCmd.this.counter >= SchematicCmd.this.plots.length) {\n PlotSquared.log(\"String_Node_Str\");\n SchematicCmd.this.running = false;\n PlotSquared.TASK.cancelTask(SchematicCmd.this.task);\n return;\n }\n final Plot plot = SchematicCmd.this.plots[Sch... |
"public void handleExceptionWith(ExceptionHandler<Object> exceptionHandler) {\n executionPlanContext.setDisruptorExceptionHandler(exceptionHandler);\n}\n"
|
"public void updateStatus(CourseEditorTreeModel cetm, StatusDescription[] courseStatus) {\n main.contextRemove(\"String_Node_Str\");\n main.contextRemove(\"String_Node_Str\");\n main.contextRemove(\"String_Node_Str\");\n main.contextRemove(\"String_Node_Str\");\n main.contextRemove(\"String_Node_Str\");\... |
"public void initialize() throws BirtException {\n if (content == null) {\n this.maxAvaWidth = width;\n return;\n }\n IStyle style = content.getStyle();\n calculateSpecifiedWidth(content);\n calculateSpecifiedHeight(content);\n if (style == null || style.isEmpty()) {\n hasStyle = ... |
"public boolean continueDispatching() {\n if (procs.size() >= maxProcs) {\n return false;\n }\n if (cores >= maxCores) {\n logger.info(\"String_Node_Str\", cores, maxCores);\n }\n if (procs.size() >= DispatchConfig.MAX_PROCS_PER_JOB) {\n return false;\n }\n if (resource.getIdle... |
"public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {\n LttngProcessState process = traceSt.getRunning_process().get(trcEvent.getCpuId());\n if (process != null) {\n TimeRangeEventProcess localProcess = procContainer.findProcess(process.getPid(), process.getCpu(), traceSt.getTraceId(), pr... |
"public boolean equals(Object o) {\n return _scope.getAttributes().equals(o instanceof DeferredAttributes ? ((DeferredAttributes) o)._scope.getAttributes() : o);\n}\n"
|
"public void mouseMoved(MouseEvent evt) {\n if (model == null) {\n return;\n }\n currentMousePositionX = evt.getX();\n int x = currentMousePositionX;\n float w = getWidth();\n int r = settings.selection.visibleHookWidth;\n HighlightedComponent old = highlightedComponent;\n Cursor newCurso... |
"protected IFile getPomFile() {\n if (isStandardJob()) {\n String pomFileName = TalendMavenConstants.POM_FILE_NAME;\n if (this.getTalendJavaProject() == null) {\n try {\n return TalendJavaProjectManager.getItemPomFolder(property).getFile(pomFileName);\n } catch (Exc... |
"protected void handleECFEndpointRemoved(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription) {\n trace(\"String_Node_Str\", \"String_Node_Str\" + endpointDescription);\n RemoteServiceAdmin rsa = (RemoteServiceAdmin) getRemoteServiceAdmin();\n if (rsa != null) {\n List<RemoteServ... |
"public DecompilationResult decompileArchive(File archive, File outputDir) throws DecompilationException {\n if (archive == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n if (!archive.exists())\n throw new IllegalArgumentException(\"String_Node_Str\" + archive.getPath());\n if... |
"public Object decode(Class targetClass, Object val, MappedField optionalExtraInfo) throws MappingException {\n if (val == null)\n return null;\n if (val instanceof Double)\n return (Double) val;\n }\n if (val instanceof Number) {\n return ((Number) val).doubleValue();\n }\n Strin... |
"public void execute(ISchedulingService service) throws CloneNotSupportedException {\n List<String> list = getBroadcastStreamNames(scopeex);\n for (String name : list) {\n System.out.println(name);\n }\n}\n"
|
"void syncForDead(MemberImpl deadMember, Block block) {\n Address deadAddress = deadMember.getAddress();\n if (deadAddress.equals(block.getOwner())) {\n MemberImpl member = concurrentMapManager.getNextMemberBeforeSync(deadAddress, true, 1);\n if (member == null) {\n if (!concurrentMapMana... |
"public static List<String> normalizePattern(List<String> tokens) {\n if (tokens.size() == 1 && !tokens.get(0).contains(\"String_Node_Str\")) {\n tokens.add(0, \"String_Node_Str\");\n }\n if (tokens.size() == 0 || !tokens.get(0).equals(\"String_Node_Str\")) {\n tokens.add(0, \"String_Node_Str\");... |
"public void loadWorkbenchData(String dirName) {\n try {\n IPath path = WorkbenchPlugin.getDefault().getDataLocation();\n path = path.append(ProjectSaver.WORKBENCH_MEMENTO_FILE);\n FileOperations.deleteDirectory(path.toOSString());\n File workbenchFile = new File(dirName + ProjectSaver.WO... |
"public void onPause() {\n super.onPause();\n this.setPreference();\n}\n"
|
"private <T> T deserializeObject(final VPackSlice parent, final VPackSlice vpack, final Type type, final FieldInfo fieldInfo) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, VPackException {\n final T entity;\n final VPackDeserializer<?> deserializer = getD... |
"public boolean incrementToken() throws IOException {\n if (!emitSingleTokens && unusedTokens.size() > 0) {\n Log.debug(\"String_Node_Str\");\n Token aToken = unusedTokens.remove(0);\n emit(aToken);\n return true;\n }\n if (lastToken != null) {\n emit(lastToken);\n las... |
"protected void calcMinMax(int start, int end) {\n final int yValCount = mYVals.size();\n if (yValCount == 0)\n return;\n int endValue;\n if (end == 0)\n endValue = mYVals.size() - 1;\n else\n endValue = end;\n mLastStart = start;\n mLastEnd = endValue;\n mYMin = Float.MAX_V... |
"private Interval<T> getIntervalUpperSnap(IndexNode index, DataTypeWithRatioScale<T> type, T tValue) {\n int shift = (int) Math.floor(type.ratio(type.subtract(tValue, index.min), type.subtract(index.max, index.min)));\n T offset = type.multiply(type.subtract(index.max, index.min), shift);\n T value = type.subt... |
"private static FileDesc[] createFileDescs() {\n File path = CommonUtils.getResourceFile(FILE_PATH);\n File[] files = path.listFiles(new FileFilter() {\n public boolean accept(File file) {\n return !file.isDirectory();\n }\n });\n FileDesc[] fileDescs = new FileDesc[files.length];\n... |
"public Vector getValues() {\n int length = getDOM().getChildNodes().getLength();\n Node nextNode = null;\n if (length > 0) {\n nextNode = getDOM().getFirstChild();\n }\n Vector values = new Vector(length);\n while (nextNode != null) {\n values.add(nextNode);\n nextNode = nextNode... |
"public static int[] getTotalSlots() {\n int[] counts = new int[CoreManager.getCoreCount()];\n if (CoreManager.getCoreCount() > 0) {\n int[] cloudCount = cloudManager.getPendingCoreCounts();\n synchronized (pool) {\n for (int i = 0; i < counts.length; i++) {\n if (i < cloud... |
"public void operationComplete(ChannelFuture future) throws Exception {\n if (name == null) {\n sink.register(future.channel());\n } else {\n sink.register(name, future.channel());\n }\n}\n"
|
"public void updateWebXmlFile() {\n LogicalPath webappPath = WebProjectUtils.getWebappPath(projectOperations);\n String webXmlPath = projectOperations.getPathResolver().getIdentifier(webappPath, \"String_Node_Str\");\n Validate.isTrue(fileManager.exists(webXmlPath), \"String_Node_Str\");\n MutableFile webXm... |
"public boolean isAdjacent(final Node<V1> interval) {\n return mStart == interval.getEnd() + 1 || mEnd + 1 == interval.getStart();\n}\n"
|
"protected AbstractGroup[][] prepareGroups() {\n String valid = isValid();\n if (valid != null) {\n throw new IllegalArgumentException(valid);\n }\n Range<T> tempLower = new Range<T>(null, null, null);\n Range<T> tempUpper = new Range<T>(null, null, null);\n if (lowerRange.getRepeatBound() != n... |
"protected void writeValue(String value, boolean isAttribute, Writer writer) {\n CharacterEscapeHandler escapeHandler = null;\n if (marshaller != null) {\n escapeHandler = marshaller.getCharacterEscapeHandler();\n }\n if (escapeHandler != null) {\n try {\n escapeHandler.escape(value... |
"protected void onPersist(EntityMetadata metadata, Object entity, Object id, List<RelationHolder> rlHolders) {\n if (!isOpen()) {\n throw new PersistenceException(\"String_Node_Str\");\n }\n if (isUpdate && metadata.isCounterColumnType()) {\n throw new UnsupportedOperationException(\"String_Node_... |
"protected void parseConfigVars(HttpServletRequest request, Collection parameterList) {\n this.configMap = new HashMap();\n if (this.displayTexts == null)\n this.displayTexts = new HashMap();\n String reportConfigName = ParameterAccessor.getConfigFileName(this.reportDesignName);\n if (reportConfigNam... |
"static void readAndHandleBinderCallViolations(Parcel p) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new FastPrintWriter(sw, false, 256);\n new LogStackTrace().printStackTrace(pw);\n pw.flush();\n String ourStack = sw.toString();\n int policyMask = getThreadPolicyMask();\n boolean ... |
"private void setUpSecondServer() throws Exception {\n server2 = new Server();\n port2 = findFreePort();\n SelectChannelConnector connector = new SelectChannelConnector();\n connector.setHost(\"String_Node_Str\");\n connector.setPort(port2);\n server2.addConnector(connector);\n LoginService loginSe... |
"private void fireNodeDiscoveredEvent(NodeDiscoveryResult discoveryResult) {\n if (nodeDiscoveryListeners != null)\n for (NodeDiscoveryListener nodeDiscoveryListener : nodeDiscoveryListeners) {\n nodeDiscoveryListener.nodeDiscovered(discoveryResult);\n }\n}\n"
|
"public IValue withType(IType arrayType, ITypeContext typeContext, MarkerList markers, IContext context) {\n IType elementType;\n if (!arrayType.isArrayType()) {\n IClass iclass = arrayType.getTheClass();\n IAnnotation annotation;\n if ((annotation = iclass.getAnnotation(Types.ARRAY_CONVERTIB... |
"public void testOpenAPIValidator() {\n OpenAPIValidator validator = OpenAPIValidator.getInstance();\n TestValidationHelper vh = new TestValidationHelper();\n OpenAPIImpl openapi = new OpenAPIImpl();\n openapi.setOpenapi(null);\n validator.validate(vh, context, openapi);\n Assert.assertEquals(3, vh.ge... |
"public static String processWorkingFolder(ServletContext context, String path) {\n path = convertSystemPath(DataUtil.trimString(path));\n String realPath = null;\n if (isRelativePath(path)) {\n realPath = getRealPath(path, context);\n makeDir(realPath);\n return trimSep(path);\n } else... |
"public void testGetDeclaration() {\n charArrayFixture.setDefinitions(new Definition[] {});\n ArrayDeclaration result = charArrayFixture.getDeclaration();\n assertNotNull(result);\n}\n"
|
"private LValueResultFwd analyzePropLValFwd(Node obj, QualifiedName pname, TypeEnv inEnv, JSType type, boolean insideQualifiedName) {\n Preconditions.checkArgument(pname.isIdentifier());\n String pnameAsString = pname.getLeftmostName();\n JSType reqObjType = pickReqObjType(obj.getParent()).withLoose().withProp... |
"private String generateUniqueName(String baseName) {\n File tmpFile = null;\n while (tmpFile == null || tmpFile.exists()) {\n tmpFile = new File(storeDir, baseName + \"String_Node_Str\" + System.currentTimeMillis());\n }\n return tmpName;\n}\n"
|
"public void publish(AdvertisedService published) {\n Assert.isNotNull(published);\n String serviceid = published.getServiceID().getServiceTypeID().getInternal();\n if (getNodeWriters().containsKey(serviceid))\n return;\n try {\n while (!writeRootLock.isOpen()) Thread.sleep(300);\n } catch ... |
"public void receive(Event[] events) {\n EventPrinter.print(events);\n for (Event event : events) {\n switch(count.incrementAndGet()) {\n case 1:\n Assert.assertEquals(55.6f, event.getData(1));\n break;\n case 2:\n junit.framework.Assert.as... |
"public static Map<Statement, OrdinalSet<Statement>> computeReachingDefs(CGNode node, IR ir, PointerAnalysis pa, Map<CGNode, OrdinalSet<PointerKey>> mod, Collection<Statement> statements, HeapExclusions exclusions) {\n if (statements == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }... |
"public boolean isStrictAssociated() {\n return strictAssociated == null ? false : strictAssociated;\n}\n"
|
"public void run() {\n openBtn = (XulToolbarbutton) document.getElementById(\"String_Node_Str\");\n saveBtn = (XulToolbarbutton) document.getElementById(\"String_Node_Str\");\n saveAsBtn = (XulToolbarbutton) document.getElementById(\"String_Node_Str\");\n newAnalysisBtn = (XulToolbarbutton) document.getElem... |
"private byte[] bigIntToBytes(BigInteger r) {\n byte[] tmp = r.toByteArray();\n if (tmp.length == expectedLength) {\n return tmp;\n }\n return tmp;\n}\n"
|
"public void onBucketFill(PlayerBucketFillEvent e) {\n if (e.getPlayer().getWorld().getName().equalsIgnoreCase(Settings.worldName)) {\n if (Settings.acidDamage > 0D) {\n ItemStack item = e.getItemStack();\n if (item.getType().equals(Material.WATER_BUCKET) || item.getType().equals(Materia... |
"public void last(Container parent) {\n synchronized (parent.getTreeLock()) {\n checkLayout(parent);\n show(parent, componentList.size() - 1, true);\n }\n}\n"
|
"protected void fillRequestPipeline(final ClientWrapper clientWrapper) {\n if (clientWrapper.shouldStopSending()) {\n return;\n }\n try {\n while (!shutdownRequested) {\n if (clientWrapper.hasError()) {\n throw clientWrapper.getError();\n }\n long p... |
"public ContactGroup getGroup(String groupName) {\n Iterator<ContactGroup> subgroups = subgroups();\n while (subgroups.hasNext()) {\n ContactGroupIcqImpl grp = subgroups.next();\n if (grp.getGroupName().equals(groupName))\n return grp;\n }\n return null;\n}\n"
|
"public void updateEntryList(ArrayList<EventEntry> eventList) {\n if (!eventList.isEmpty()) {\n EventEntry entry = eventList.get(0);\n DayHeader curDayBucket = new DayHeader(DateUtil.getStartDateInUTC(entry));\n eventEntries.add(curDayBucket);\n for (EventEntry event : eventList) {\n ... |
"private void doEncodeData(IoSession session, RtmpDataMessage message, ProtocolEncoderOutput out) {\n switch(message.getDataKind()) {\n case BINARY:\n {\n RtmpBinaryDataMessage binaryMessage = (RtmpBinaryDataMessage) message;\n IoBufferEx buf = binaryMessage.getBytes()... |
"public boolean luaStackCall(VM vm) {\n switch(id) {\n case 0:\n {\n install();\n vm.pushnil();\n break;\n }\n case 1:\n {\n Closure c = (Closure) vm.topointer(2);\n vm.pushlvalue(new LThread(c))... |
"public void startRender(int callbackI) {\n LotInfoGen li = tweed.frame.getGenOf(LotInfoGen.class);\n GISGen gis = tweed.frame.getGenOf(GISGen.class);\n AtomicInteger count = new AtomicInteger(0);\n Random randy = new Random();\n WorkFactory<LoopL<Point3d>> b = findBlocks(callbackI, count, randy);\n F... |
"public void tickRegen(long ticks) {\n if (!this.isVampire())\n return;\n Player me = this.getPlayer();\n if (me == null)\n return;\n Conf conf = Conf.get(me);\n if (me.getGameMode() == GameMode.CREATIVE)\n return;\n if (me.isDead())\n return;\n if (me.getHealth() >= 20)... |
"private void startListeningAfterInitialization(FieldContext context) {\n Intent intent = makeIntent();\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"String_Node_Str\");\n intent.putExtra(EXTRA_RECOGNITION_CONTEXT, context.getBundle());\n intent.putExtra(EXTRA_CALLING_PACKAGE, \"String_Node_Str... |
"public static void normalizeAllNodeTemplateName(Topology topology, ParsingResult<ArchiveRoot> parsedArchive) {\n if (topology.getNodeTemplates() != null && !topology.getNodeTemplates().isEmpty()) {\n Map<String, NodeTemplate> nodeTemplates = Maps.newHashMap(topology.getNodeTemplates());\n for (Map.Ent... |
"protected <T> T readObject(JsonReaderI<T> mapper) throws ParseException, IOException {\n if (c != '{')\n throw new RuntimeException(\"String_Node_Str\");\n Object current = mapper.createObject();\n boolean needData = false;\n boolean acceptData = true;\n for (; ; ) {\n read();\n swi... |
"public EveObject getField(String name) {\n EveObject eo = typePool.get(name);\n if (eo != null) {\n return eo;\n } else {\n return super.getField(name);\n }\n}\n"
|
"public void disable() {\n translationModuleService.removeTranslationModule(basenames);\n}\n"
|
"public void createCluster(final String name, final String type, final String distro, final String specFilePath, final String rpNames, final String dsNames, final String networkName, final String topology, final boolean resume, final boolean skipConfigValidation, final boolean alwaysAnswerYes) {\n if (name.indexOf(\... |
"public void step() {\n if (currentDate != worldObj.getWorldTime()) {\n currentDate = worldObj.getWorldTime();\n powerQuery = nextPowerQuery;\n nextPowerQuery = new int[] { 0, 0, 0, 0, 0, 0 };\n double[] next = Arrays.copyOf(internalPower, 6);\n internalPower = internalNextPower;\n... |
"public FormRecord process(FormRecord record) throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException {\n String form = record.getPath(c);\n final File f = new File(form);\n final Cipher decrypter = FormUploadUtil.getDecryptCipher((new SecretKeySpec(record.getAe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.