content
stringlengths
40
137k
"private void createSimpleStatistics(final ScrolledForm form, final Composite composite, final ColumnSetMultiValueIndicator columnSetMultiValueIndicator) {\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n dataset.addValue(columnSetMultiValueIndicator.getRowCountIndicator().getCount(), DefaultMes...
"private void addDownloadWithResponses(List responses, HostData data) {\n if (responses == null)\n throw new NullPointerException(\"String_Node_Str\");\n if (data == null)\n throw new NullPointerException(\"String_Node_Str\");\n List downloaders = new ArrayList(active.size() + waiting.size());\n ...
"protected IBaseResultSet doExecuteSubCubeQuery(ICubeResultSet parent, ISubCubeQueryDefinition query) throws BirtException {\n Scriptable scope = context.getSharedScope();\n IBasePreparedQuery pQuery = dteSession.prepare(query, appContext);\n ICubeQueryResults dteResults = (ICubeQueryResults) dteSession.execut...
"public Object buildCollectionAttributeResponse(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object item, UriInfo uriInfo) {\n if (item instanceof Collection) {\n return response(context, (List<Object>) item, uriInfo);\n }\n return item;\n}\n"
"public Object unmarshal(org.xml.sax.XMLReader xmlReader, InputSource inputSource, Class clazz) {\n try {\n XMLContext xmlContext = xmlUnmarshaller.getXMLContext();\n if (xmlContext.hasDocumentPreservation()) {\n SAXDocumentBuilder saxDocumentBuilder = new SAXDocumentBuilder();\n ...
"public boolean apply(Game game, Ability source) {\n if (source.getTargets().size() > 1) {\n for (Target target : source.getTargets()) {\n for (UUID targetId : target.getTargets()) {\n Permanent permanent = game.getPermanent(targetId);\n if (permanent != null) {\n ...
"public static void main(String[] args) {\n PistachiosClient client = null;\n try {\n client = new PistachiosClient();\n } catch (Exception e) {\n logger.info(\"String_Node_Str\", e);\n if (client != null)\n client.close();\n return;\n }\n try {\n String id =...
"public SootField getFieldByNameUnsafe(String name) {\n checkLevel(SIGNATURES);\n SootField foundField = null;\n for (SootField field : fields.getElementsUnsorted()) {\n if (field.getName().equals(name)) {\n if (foundField == null)\n foundField = field;\n else\n ...
"public static TypedReturnCode<Connection> getRefreshedDataProvider(Connection prevDataProvider) {\n TypedReturnCode<Connection> returnProvider = new TypedReturnCode<Connection>();\n boolean mdm = ConnectionUtils.isMdmConnection(prevDataProvider);\n IMetadataConnection metadataConnection = ConvertionHelper.con...
"protected void initializeContent(final JSONObject json) throws JSONException {\n JSONObject headerDataObject = json.getJSONObject(\"String_Node_Str\");\n ZoomLevel zoomLevel = ZoomLevel.valueOf(headerDataObject.getString(\"String_Node_Str\"));\n String dateFromString = headerDataObject.getString(\"String_Node...
"private void initialize() {\n filtermap = new HashMap<>();\n}\n"
"public void update() {\n super.update();\n if (!bg.visible) {\n enable(false);\n if (delay > 0f)\n delay -= Game.elapsed;\n if (delay <= 0f)\n active = false;\n } else {\n delay = 0.5f;\n active = true;\n }\n if (Dungeon.hero.isAlive()) {\n ...
"protected Row createToolBar() {\n System.out.println(this.toString());\n Row toolBar = new ToolBar(\"String_Node_Str\", brick);\n toolBar.setPixelSizeY(0);\n ElementLayout spacingLayoutX = new ElementLayout(\"String_Node_Str\");\n spacingLayoutX.setPixelSizeX(SPACING_PIXELS);\n spacingLayoutX.setRati...
"public static ChartReportItemImpl getChartReportItemFromHandle(ExtendedItemHandle eih) {\n ChartReportItemImpl item = null;\n if (!isChartHandle(eih)) {\n return null;\n }\n try {\n item = (ChartReportItemImpl) eih.getReportItem();\n } catch (ExtendedElementException e) {\n logger.l...
"public boolean isFreeOrUp(int x, int y) {\n if (x < 0 || x >= Constants.WALL_WIDTH || y >= Constants.WALL_HEIGHT) {\n return false;\n }\n if (y < 0) {\n return true;\n }\n return isFreeUnchecked(x, y);\n}\n"
"private void validate() {\n bindCommandProcesor.runCreationListeners(injector);\n stopwatch.resetAndLog(\"String_Node_Str\");\n requestInjectionCommandProcessor.validate(injector);\n stopwatch.resetAndLog(\"String_Node_Str\");\n injector.memberInjector.validateOustandingInjections(errors);\n stopwatc...
"public void configure() {\n for (String pu : persistenceUnits) {\n log.info(\"String_Node_Str\" + pu);\n Map<String, Object> puProperty = KunderaCoreUtils.getExternalProperties(pu, externalPropertyMap, persistenceUnits);\n ClientResolver.getClientFactory(pu, puProperty).load(pu, puProperty);\n ...
"public boolean isResolved() {\n return this.field != null && this.field.getType().isResolved();\n}\n"
"public AtlasEntityHeader.AtlasEntityHeaders searchEntities() throws AtlasBaseException {\n SearchFilter searchFilter = getSearchFilter();\n AtlasEntity.AtlasEntities atlasEntities = entitiesStore.searchEntities(searchFilter);\n AtlasEntityHeader.AtlasEntityHeaders entityHeaders = new AtlasEntityHeader.AtlasEn...
"private void handleTouchEvent(MotionEvent ev) {\n int action = ev.getActionMasked();\n switch(action) {\n case MotionEvent.ACTION_DOWN:\n mDownPos.set((int) ev.getX(), (int) ev.getY());\n break;\n case MotionEvent.ACTION_MOVE:\n {\n float evX = ev.get...
"public ICachedObject createInstance(Object[] fields) {\n GroupBoundaryInfo groupBoundaryInfo = new GroupBoundaryInfo(((Integer) fields[0]).intValue(), ((Integer) fields[1]).intValue());\n Object[] sortKeys = null;\n int sortKeysTotalLength = 1;\n if (fields[2] != null) {\n sortKeys = new Object[((In...
"public String getValidationReport() {\n return Parser.getValidationReport(this.infModel);\n}\n"
"public void onActivate(ActivateEvent event, EntityRef entity) {\n potion = entity.getComponent(PotionComponent.class);\n poisoned = entity.getComponent(PoisonedComponent.class);\n EntityManager entityManager = CoreRegister.get(EntityManager.class);\n HealthComponent health = event.getTarget().getComponent(...
"private void removeLogicalColumn(int index) {\n int baseColumn = logicalToLayoutColumn(index);\n if (index != 0 && gapColumn != null) {\n formLayout.removeColumn(baseColumn + 1);\n }\n for (int c = 0; c < columnSpecs.length; c++) {\n formLayout.removeColumn(baseColumn + 1);\n }\n}\n"
"public boolean removeAll(Collection<?> c) {\n final E[] newData = (E[]) new Object[dataLocator.getCapacity()];\n boolean hasRemovedItem = false;\n int read = this.locator.getReadLocation();\n int write = this.locator.getWriterLocation();\n if (read == write)\n return false;\n int i = 0;\n i...
"private boolean containsUseOrDef(UseDefGraph udg, String symbol, long id, boolean isDef) {\n List<UseOrDefRecord> useOrDefRecords = udg.getUsesAndDefsForSymbol(symbol);\n for (UseOrDefRecord useOrDefRecord : useOrDefRecords) {\n if (useOrDefRecord.getAstNode().getNodeId().equals(id) && useOrDefRecord.isDe...
"public void addChild(Object[] children) {\n for (Object element : children) {\n addChild(element);\n }\n}\n"
"private <T> T execute(TransactionExecutor.Function<Table, T> func) {\n try {\n Table table = tableUtil.getMetaTable();\n if (table instanceof TransactionAware) {\n TransactionExecutor txExecutor = Transactions.createTransactionExecutor(transactionExecutorFactory, (TransactionAware) table);\...
"public void updateRow(RowArea rowArea, int specifiedHeight, boolean finished) {\n hasDropCell = !finished;\n Row lastRow = getPreviousRow();\n if (lastRow == null && existDropCells()) {\n lastRow = unresolvedRow;\n }\n Row row = new Row(rowArea, start, columnNumber, finished);\n int height = s...
"public GlimpseLayout getLayout() throws Exception {\n HeatMapExample example = new HeatMapExample() {\n protected ColorAxisPlot2D newPlot() {\n return new ColorAxisPlot2D() {\n protected GridAxisLabelHandler createLabelHandlerX() {\n return new WrappedLabelHandler...
"private List<SyncopeUser> doSearch(final NodeCond nodeCond) {\n List<SyncopeUser> result;\n List<SyncopeUser> rightResult;\n switch(nodeCond.getType()) {\n case LEAF:\n case NOT_LEAF:\n Criteria criteria = getBaseCriteria().add(getCriterion(nodeCond));\n if (LOG.isDebugEnab...
"private void freeze() {\n if (layer == 0) {\n return;\n } else if (!bPlayer.canBendIgnoreBindsCooldowns(getAbility(\"String_Node_Str\"))) {\n return;\n }\n List<Block> ice = GeneralMethods.getBlocksAroundPoint(location, layer);\n for (Block block : ice) {\n if (isTransparent(player,...
"public void populateItem(final Item<ICellPopulator<UserTO>> cellItem, final String componentId, final IModel<UserTO> rowModel) {\n List<String> values = null;\n switch(schemaType) {\n case schema:\n values = rowModel.getObject().getAttributeMap().get(name).getValues();\n break;\n ...
"public void testOpenInputStream() throws Exception {\n expect(mockConnection.getBlobStore()).andReturn(mockStore).times(3);\n expect(mockConnection.getFileSystem()).andReturn(mockFs).times(2);\n expect(mockStore.getId()).andReturn(blobStoreUri).times(2);\n expect(mockFs.exists((Path) anyObject())).andRetur...
"public void writeSourceFiles() throws Exception {\n if (!this.incompleteBuilders.empty()) {\n LOGGER.error(String.format(\"String_Node_Str\", this.incompleteBuilders.size()));\n throw new IllegalStateException(\"String_Node_Str\");\n }\n CWorkspace cWorkspace = this.workspace.getC();\n CppHea...
"public int getProgress() {\n double result = 0d;\n double perBatch = 100d / (double) classes.length;\n result += (double) progress * perBatch;\n result += (double) builder.getProgress() / 100d * perBatch;\n result = result <= 100d ? result : 100d;\n return (int) result;\n}\n"
"private void onVolumeStateChangedLocked(VolumeInfo vol, int oldState, int newState) {\n if (vol.isMountedReadable() && !TextUtils.isEmpty(vol.fsUuid)) {\n VolumeRecord rec = mRecords.get(vol.fsUuid);\n if (rec == null) {\n rec = new VolumeRecord(vol.type, vol.fsUuid);\n rec.partG...
"public void callWithInProgressAndMissingNodes() throws Exception {\n String jobId = \"String_Node_Str\";\n SaltConnector saltConnector = Mockito.mock(SaltConnector.class);\n SaltJobRunner saltJobRunner = Mockito.mock(BaseSaltJobRunner.class);\n when(saltJobRunner.getJid()).thenReturn(JobId.jobId(jobId));\n...
"public void onCommodityToggledEventCompleted() {\n searchCommodityAdapter.notifyDataSetChanged();\n}\n"
"public View getView(int position, View convertView, ViewGroup parent) {\n String ayah = ayahList.get(position);\n String translatedAya = \"String_Node_Str\";\n if (this.nTranslationVal != 0) {\n translatedAya = translatedAyaList.get(position);\n }\n ViewHolder holder = null;\n LayoutInflater m...
"private MenuItem[] createGroupContextMenu(TurboIssue issue) {\n MenuItem childMenuItem = new MenuItem(\"String_Node_Str\");\n childMenuItem.setOnAction((event) -> {\n TurboIssue childIssue = new TurboIssue(\"String_Node_Str\", \"String_Node_Str\", model);\n childIssue.setParentIssue(issue.getId());...
"public List<String> returnTablesFormConnection(IMetadataConnection metadataConnection, TableInfoParameters tableInfoParameters) {\n getTableTypeMap().clear();\n List<String> itemTablesName = new ArrayList<String>();\n List connList = ExtractMetaDataUtils.getConnection(metadataConnection.getDbType(), metadataC...
"public IaasProvider validate(String partitionId, Properties properties) throws InvalidPartitionException {\n try {\n if (properties.containsKey(Scope.region.toString())) {\n String region = properties.getProperty(Scope.region.toString());\n if (iaasProvider.getImage() != null && !iaasPr...
"public ParsedAnyData[] parsePttDataEvent() {\n pde = new pttDataEvent(new actuatorSpace(new double[2952]), new actuatorSpace(new double[2952]), 25, 32L);\n try {\n se = seCreator.createEvent(pde);\n } catch (AcsJException e) {\n e.printStackTrace();\n fail(\"String_Node_Str\");\n }\n ...
"public void createClient() throws IOException, GeoIp2Exception {\n HttpTransport transport = new TestTransport();\n WebServiceClient client = new WebServiceClient.Builder(42, \"String_Node_Str\").testTransport(transport).build();\n this.omni = client.omni(InetAddress.getByName(\"String_Node_Str\"));\n}\n"
"public void writeStatement(MethodWriter writer) {\n int opcode;\n int args = this.arguments.size();\n if (this.isCustom) {\n opcode = Opcodes.INVOKESTATIC;\n } else {\n opcode = Opcodes.INVOKESPECIAL;\n args++;\n writer.visitTypeInsn(Opcodes.NEW, this.type);\n }\n for (IVa...
"public static String getTagNewestDate(String tagName) {\n if (TextUtils.isEmpty(tagName)) {\n return \"String_Node_Str\";\n return SqlUtils.stringForQuery(ReaderDatabase.getReadableDb(), \"String_Node_Str\", new String[] { tagName });\n}\n"
"private Iterable<File> getAllContainedFiles(File workingDirectory) {\n final Builder<File> builder = ImmutableList.builder();\n File[] listFiles = workingDirectory.listFiles();\n if (listFiles != null) {\n for (File containedFile : listFiles) {\n if (containedFile.isFile()) {\n ...
"public void parseJson(JsonObject data) throws Exception {\n name = data.get(\"String_Node_Str\").getAsString();\n float darken = 0;\n if (data.has(\"String_Node_Str\")) {\n darken = data.get(\"String_Node_Str\").getAsFloat();\n }\n this.internal_scale = 1;\n if (data.has(\"String_Node_Str\")) ...
"private User getUserFromEntry(final Entry entry) throws LdapException {\n final User user = new User(getEntryAttributeAsString(entry, UID));\n user.setFullName(getEntryAttributeAsString(entry, CN));\n user.setActive(\"String_Node_Str\".equalsIgnoreCase(getEntryAttributeAsString(entry, SHADOW_INACTIVE)));\n ...
"protected final static <T extends ModelNode> T visitChildWithClassCheck(ModelNode parent, T child, ModelVisitor nv) throws ScribbleException {\n ModelNode visited = ((ModelNodeBase) parent).visitChild(child, nv);\n if (visited.getClass() != child.getClass()) {\n throw new RuntimeException(nv.getClass() + ...
"public boolean readAndCheck(InputStream in) throws IOException {\n int readCRC = IOUtil.readShort(in) & 0xFFFF;\n return (readCRC == crc16);\n}\n"
"private void printStats(final long startTimeInMillis) {\n long t = System.currentTimeMillis() - startTimeInMillis;\n long s = TimeUnit.MILLISECONDS.toSeconds(t);\n if (t > TimeUnit.MINUTES.toMillis(1)) {\n long m = TimeUnit.MILLISECONDS.toMinutes(t);\n System.err.printf(\"String_Node_Str\", m, s...
"protected Control createDialogArea(Composite parent) {\n parent.getShell().setText(this.title);\n Composite composite = (Composite) super.createDialogArea(parent);\n GridLayout layout = (GridLayout) composite.getLayout();\n layout.numColumns = 2;\n Label idLabel = new Label(composite, SWT.NONE);\n id...
"private void addResourceIfNecessary(UIViewRoot root, FacesContext context, UIOutput output) {\n for (UIComponent c : root.getComponentResources(context, \"String_Node_Str\")) {\n String library = (String) c.getAttributes().get(\"String_Node_Str\");\n String name = (String) c.getAttributes().get(\"Stri...
"public Result requestResetPassword() throws Exception {\n Email email = Email.fromJson(requestToJSON(request()));\n authenticationService.requestResetPassword(email);\n return okResult(\"String_Node_Str\");\n}\n"
"public void refresh() {\n if (selectedNode != null) {\n generatedCode = \"String_Node_Str\";\n boolean isJoblet = AbstractProcessProvider.isExtensionProcessForJoblet(selectedNode.getProcess());\n if (!isJoblet && PluginChecker.isJobLetPluginLoaded()) {\n IJobletProviderService joblet...
"private void loadMediaPackages(HashMap<SdInstallArgs, String> processCids, int[] uidArr, HashSet<String> removeCids) {\n ArrayList<String> pkgList = new ArrayList<String>();\n Set<SdInstallArgs> keys = processCids.keySet();\n boolean doGc = false;\n for (SdInstallArgs args : keys) {\n String codePat...
"public String toString() {\n return \"String_Node_Str\" + company.getName() + \"String_Node_Str\" + from + \"String_Node_Str\" + fromStackPosition + \"String_Node_Str\" + to;\n}\n"
"private void buildAllDirectoriesAndSymlinks() {\n Set<Path> deletedDirectories = new HashSet<>();\n Set<Path> absoluteDirectoriesToMake = directoriesToMake.stream().map(Path::toAbsolutePath).collect(Collectors.toSet());\n for (Path path : existingDirectories) {\n if (!absoluteDirectoriesToMake.contains...
"public void init(FilterConfig filterConfig) throws ServletException {\n log.info(PippoUtils.getPippoLogo());\n String mode = filterConfig.getInitParameter(MODE_PARAM);\n if (!StringUtils.isNullOrEmpty(mode)) {\n System.setProperty(PippoConstants.SYSTEM_PROPERTY_PIPPO_MODE, mode);\n }\n if (applic...
"private String getFunctionString(FunctionSelector selectorFunction) {\n String result = \"String_Node_Str\";\n StringBuffer sb = new StringBuffer();\n switch(selectorFunction.getFunctionName().toUpperCase()) {\n case \"String_Node_Str\":\n result = selectorFunction.getFunctionName() + \"Stri...
"private void update_group(int page_number) {\n save_positions();\n set_refresh(true);\n Intent intent = new Intent(activity_context, service_update.class);\n intent.putExtra(\"String_Node_Str\", page_number);\n intent.putExtra(\"String_Node_Str\", pref.getBoolean(\"String_Node_Str\", false));\n start...
"public SortedMap<byte[], NavigableMap<byte[], NavigableMap<byte[], NavigableMap<Long, byte[]>>>> getRows(byte[] startKey, byte[] stopKey) {\n SortedMap<byte[], NavigableMap<byte[], NavigableMap<byte[], NavigableMap<Long, byte[]>>>> subMap = null;\n if (startKey == null && stopKey == null) {\n return m_tab...
"private void init(String title, String body, ArrayList<String> textArray, final String version) {\n titleTextView.setText(title);\n bodyTextView.setText(body);\n if (textArray != null) {\n StringBuilder strbuilder = new StringBuilder();\n strbuilder.append(\"String_Node_Str\" + \"String_Node_Str...
"public HashMap<Long, List<Slicer>> getSwitches() {\n IFlowSpaceFirewallService iFSFs = (IFlowSpaceFirewallService) getContext().getAttributes().get(IFlowSpaceFirewallService.class.getCanonicalName());\n return iFSFs.getSwitches();\n}\n"
"public void offsetTopAndBottom(int offset) {\n mTop += offset;\n mOffsetTop += offset;\n float offsetTop = mOffsetTop - dp2px(20);\n if (offsetTop <= 0) {\n mAngle = 0;\n return;\n }\n int finalOffset = getRefreshLayout().getFinalOffset() - dp2px(20);\n if (offsetTop > finalOffset) {...
"private Configurable configureComponent(RailsRoot root, Tag componentTag) throws ConfigurationException {\n String name = componentTag.getAttributeAsString(XMLTags.NAME_ATTR);\n if (name == null) {\n throw new ConfigurationException(LocalText.getText(\"String_Node_Str\"));\n }\n String clazz = compo...
"public void showSelection() {\n if (this.sourceFigure == null) {\n this.sourceFigure = getHostFigure();\n this.sourceFigure.addFigureListener(this.figureListener);\n }\n INodeConnector connector = new NodeConnectorTool(nodePart).getConnector();\n if (connector == null) {\n this.setHide...
"private void addProperty() {\n if (selectedNode.getChain() != null) {\n if (actOnNode.isEnabled_AddProperties() && !actOnNode.isInHead())\n actOnNode = createVersionExtension(selectedNode);\n }\n if (actOnNode == null)\n return;\n try {\n NewPropertiesWizard2 w2 = new NewPro...
"public void validateSeriesBindingType(Series series, IDataServiceProvider idsp) throws ChartException {\n ArrayList<Query> al = new ArrayList<Query>();\n al.addAll(series.getDataDefinition());\n for (int i = 0; i < al.size(); i++) {\n Query query = (Query) al.get(i);\n DataType dataType = idsp.g...
"public synchronized void setDestinationPoint(MapMarkerDot destinationPoint) {\n this.destinationPoint.setLat(destinationPoint.getLat());\n this.destinationPoint.setLon(destinationPoint.getLon());\n}\n"
"public com.profiler.common.dto.thrift.SubSpan toThrift(boolean child) {\n com.profiler.common.dto.thrift.SubSpan subSpan = new com.profiler.common.dto.thrift.SubSpan();\n long parentSpanStartTime = parentSpan.getStartTime();\n subSpan.setStartElapsed((int) (startTime - parentSpanStartTime));\n subSpan.setE...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n AppRater.app_launched(this);\n BitmapDrawable bg = (BitmapDrawable) getResources().getDrawable(R.drawable.bg_striped);\n bg.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REP...
"public static void dump(PrettyPrintWriter out, ColumnReadStoreImpl crstore, ColumnDescriptor column, long page, long total, long offset) throws IOException {\n int dmax = column.getMaxDefinitionLevel();\n ColumnReader creader = crstore.getColumnReader(column);\n out.format(\"String_Node_Str\", page, total, of...
"protected TaskUtil getTaskUtil(final TaskTO taskTO) {\n TaskUtil result = (taskTO instanceof PropagationTaskTO) ? TaskUtil.PROPAGATION : (taskTO instanceof SyncTaskTO) ? TaskUtil.SYNC : (taskTO instanceof SchedTaskTO) ? TaskUtil.SCHED : null;\n if (result == null) {\n LOG.error(\"String_Node_Str\" + taskT...
"public void addPages() {\n String winTitle = isMdmFlag() ? DefaultMessagesImpl.getString(\"String_Node_Str\") : DefaultMessagesImpl.getString(\"String_Node_Str\");\n setWindowTitle(winTitle);\n setDefaultPageImageDescriptor(ImageLib.getImageDescriptor(ImageLib.REFRESH_IMAGE));\n propertiesWizardPage = new ...
"public void testAllShortDisplayName() {\n for (final InputMethodSubtype subtype : mSubtypesList) {\n final String subtypeName = SubtypeLocale.getSubtypeDisplayName(subtype);\n final Locale locale = SubtypeLocale.getSubtypeLocale(subtype);\n final String spacebarText = MainKeyboardView.getShortD...
"private void serverFrame(StateMachine<State> sm, TimeStep timeStep) {\n updateConsole(timeStep);\n sm.update(timeStep);\n}\n"
"public void resolveTypes(MarkerList markers, IContext context) {\n super.resolveTypes(markers, this);\n for (int i = 0; i < this.genericCount; i++) {\n this.generics[i].resolveTypes(markers, this);\n }\n for (int i = 0; i < this.parameterCount; i++) {\n this.parameters[i].resolveTypes(markers...
"public boolean apply(Game game, Ability source) {\n for (Permanent permanent : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {\n permanent.destroy(source.getSourceId(), game, noRegen);\n }\n return true;\n}\n"
"public int[] getTransformation() {\n if (resultMetadata == null) {\n return null;\n } else {\n return resultMetadata.transformation;\n }\n}\n"
"private Tuple2<Survey, List> sendSurvey() throws IOException, SurveyException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {\n SurveyPoster.init();\n MturkLibrary.props.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n MturkLibrary.props.setProperty(\"String_Node_Str\", \"S...
"public static String getImageTempFolder(HttpServletRequest request) {\n String tempFolder = imageFolder;\n String sessionId = request.getSession().getId();\n if (sessionId != null)\n tempFolder = tempFolder + File.separator + (PREFIX_SUB_IMAGE_FOLDER + sessionId);\n return tempFolder;\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setFullScreenDialogClose(new View.OnClickListener() {\n public void onClick(View v) {\n setResult(RESULT_CANCELED);\n finish();\n }\n });\n TextView createKeyButton = (TextView) ...
"private String determineURL(IResource resource) {\n String urlToUse = prefs.getString(MXUnitPreferenceConstants.P_FACADEURL);\n String projectFacadeURL = \"String_Node_Str\";\n if (resource != null) {\n projectFacadeURL = props.getURLPropertyValue(resource.getProject());\n } else {\n MXUnitPl...
"public RawPacket reverseTransform(RawPacket pkt) {\n long ssrc = PacketManipulator.GetRTPSSRC(pkt);\n int seqNum = PacketManipulator.GetRTPSequenceNumber(pkt);\n SRTPCryptoContext context = this.contexts.get(ssrc);\n if (context == null) {\n context = this.engine.getDefaultContext().deriveContext(ss...
"public void read(final Kryo kryo, final Input input) {\n this.jobID = kryo.readObject(input, JobID.class);\n this.jobName = input.readString();\n try {\n readRequiredJarFiles(kryo, input);\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n final int numVertices = inp...
"public void log() {\n LogRecord record;\n try {\n record = pendingRecords.take();\n super.publish(record);\n } catch (InterruptedException e) {\n return;\n }\n Vector<LogRecord> v = new Vector<LogRecord>();\n int msgs = pendingRecords.drainTo(v, flushFrequency);\n for (int j =...
"public Mapping union(List<Mapping> members) {\n if (members.size() == 1) {\n logger.warn(\"String_Node_Str\");\n Mapping result = members.get(0);\n }\n Multimap<Var, RestrictedExpr> unionVarDefs = HashMultimap.create();\n List<Map<String, SqlExpr>> unionMemberProjections = new ArrayList<Map<S...
"private void updateDatabase() {\n int hour, min;\n TimePicker inTime = (TimePicker) findViewById(R.id.TimePicker1);\n Spinner taskSpinnerIn = (Spinner) findViewById(R.id.taskSpinnerIn);\n inTime.clearFocus();\n hour = inTime.getCurrentHour();\n min = inTime.getCurrentMinute();\n Task inTask = task...
"protected void customRun() {\n Packet packet;\n try {\n Connection oldConnection = connection;\n connection = client.connectionManager.getConnection();\n if (restoredConnection(oldConnection, connection)) {\n onDisconnect(oldConnection);\n }\n if (connection == null)...
"public int getOrgUnitId() {\n Integer value = (Integer) get(\"String_Node_Str\");\n if (value != null)\n return value.intValue();\n else\n return -1;\n}\n"
"public Long resizeCluster(String clusterName, String nodeGroupName, int instanceNum) throws Exception {\n logger.info(\"String_Node_Str\" + nodeGroupName + \"String_Node_Str\" + clusterName + \"String_Node_Str\" + instanceNum);\n ClusterEntity cluster = clusterEntityMgr.findByName(clusterName);\n if (cluster ...
"public synchronized void connectIfNecessary() throws IOException {\n if (((wsSession == null) || !wsSession.isOpen()) && !clientClose) {\n try {\n if (client == null) {\n client = new WebSocketClient();\n client.setConnectTimeout(this.connectionTimeout);\n ...
"public static BitmapContainer transformToBitmapContainer(ArrayContainer ac) {\n BitmapContainer bc;\n if (Bbuffer.isEmpty())\n bc = new BitmapContainer();\n else {\n bc = Bbuffer.remove(Bbuffer.size() - 1);\n bc.clear();\n }\n bc.loadData(ac);\n putBackInStore(ac);\n return bc...
"public int run() throws Exception {\n log.info(\"String_Node_Str\");\n long start = System.currentTimeMillis();\n try {\n setUp(ModelStep.STATS);\n log.debug(\"String_Node_Str\", this.modelConfig.getStats().getCateMaxNumBin());\n syncDataToHdfs(modelConfig.getDataSet().getSource());\n ...
"private static ParameterDefinition convertScalarParameter(IScalarParameterDefn engineParam, ParameterGroupDefinition group) {\n Object handle = engineParam.getHandle();\n ScalarParameterHandle scalarParamHandle = null;\n if (handle instanceof ScalarParameterHandle)\n scalarParamHandle = (ScalarParamete...
"private int addTable(PrintStream out, int offset, String name, StringBuffer tableContent) {\n int result = 0;\n try {\n int[] tableLocation = getTableLocation(name);\n if (tableLocation != null) {\n byte[] tableMetadata = (byte[]) metadataTables.get(name);\n Util.putInt32(tabl...
"public void handle(IOContext context) throws IOException {\n ExportHandlerContext ctx = localContext.get(context);\n if (ctx == null) {\n localContext.set(context, ctx = new ExportHandlerContext(context.getFd(), context.getServerConfiguration().getDbCyclesBeforeCancel()));\n }\n ChunkedResponse r = ...