content
stringlengths
40
137k
"public void run() {\n findExistingProc();\n}\n"
"public Void visit(FunctionDeclNode node) {\n if (currentSymbolTable.findIn(node.getInstance()) != null) {\n throw new CompileError(stage, \"String_Node_Str\" + StringProcess.getRefString(node.getInstance().getName()) + \"String_Node_Str\", node.location());\n }\n if (node.getInstance().getName().equals...
"private void populateGroupFilteringExpressions(List expressionList, List groupLevels) {\n for (int i = 0; i < this.populator.getQuery().getGrouping().length; i++) {\n List groupFilters = this.populator.getQuery().getGrouping()[i].getFilters();\n if (groupFilters == null)\n continue;\n ...
"protected IQuery createOdiQuery() throws DataException {\n return DataSourceFactory.getFactory().getEmptyDataSource().newCandidateQuery();\n}\n"
"public void prettyPrint(StringBuilder sb, String indent) {\n for (Var v : variables) {\n sb.append(indent);\n sb.append(\"String_Node_Str\" + v.type().typeName() + \"String_Node_Str\" + v.name() + \"String_Node_Str\" + v.storage().toString().toLowerCase() + \"String_Node_Str\");\n if (v.isMappe...
"public <R> Object[] batchCallback(List<? extends Row> actions, Batch.Callback<R> callback) throws IOException, InterruptedException {\n LOG.trace(\"String_Node_Str\");\n Object[] results = new Object[actions.size()];\n batchExecutor.batchCallback(actions, results, callback);\n return results;\n}\n"
"public void handleMouseInput() {\n int x = Mouse.getEventX() * width / mc.displayWidth;\n int y = height - Mouse.getEventY() * height / mc.displayHeight - 1;\n mouseX = x - guiLeft;\n mouseY = y - guiTop;\n int wheelMovement = Mouse.getEventDWheel();\n if (wheelMovement != 0) {\n for (int i = ...
"public void addDropSupportToViewer() {\n Assert.isNotNull(expressionViewer);\n if (dropTarget == null || dropTarget.isDisposed()) {\n final StyledText text = expressionViewer.getTextWidget();\n dropTarget = new DropTarget(text, DND.DROP_COPY | DND.DROP_DEFAULT);\n dropTarget.setTransfer(new ...
"private static String[] getConfigValues(PlacementModel hotspotPlacer, PlacementModel nodePlacer, NodeConnector connector, Partitioner partitioner) {\n return Util.mergeArrays(new String[] { getKey(hotspotPlacer, nodePlacer) }, Util.mergeArrays(partitioner.getConfigValues(), Util.mergeArrays(connector.getConfigValue...
"public void testRelationshipChangeProperty() {\n try {\n Integer int1 = new Integer(1);\n Integer int2 = new Integer(2);\n String string1 = new String(\"String_Node_Str\");\n String string2 = new String(\"String_Node_Str\");\n Node node1 = NodeManager.getManager().createNode();\n ...
"private void checkHasMultiPrejobOrPostJobComponents() {\n if (PluginChecker.isJobLetPluginLoaded()) {\n IJobletProviderService jobletService = (IJobletProviderService) GlobalServiceRegister.getDefault().getService(IJobletProviderService.class);\n if (jobletService != null) {\n if (jobletSer...
"protected String generateConstraintDescriptor(Vars vars, ValidationContext.Accessor context) {\n StringBuilder buffer = new StringBuilder();\n for (ConstraintDescriptor descriptor : context.getConstraintDescriptors()) {\n String name = descriptor.getName();\n String message = vars.messageInterpolat...
"public void run() {\n if (parserLine != null) {\n try {\n InputStream is = p.getInputStream();\n BufferedReader buff = new BufferedReader(new InputStreamReader(is, \"String_Node_Str\"));\n String line = \"String_Node_Str\";\n while ((line = buff.readLine()) != null...
"public IParameterDefn[] getParameterDefn() {\n return new IParameterDefn[] { new ParameterDefn(Constants.EXPRESSION_NAME, Constants.EXPRESSION_DISPLAY_NAME, false, true, SupportedDataTypes.CALCULATABLE, \"String_Node_Str\"), new ParameterDefn(\"String_Node_Str\", Messages.getString(\"String_Node_Str\"), false, fals...
"public String getScope() {\n if (scope != null) {\n return scope;\n } else if (cellDesign != null) {\n return cellDesign.getScope();\n }\n return null;\n}\n"
"public boolean isWeeds(World world, int x, int y, int z) {\n if (!ConfigurationHandler.enableWeeds) {\n return false;\n }\n TileEntity te = world.getTileEntity(x, y, z);\n if (te instanceof TileEntityCrop) {\n TileEntityCrop crop = (TileEntityCrop) te;\n return crop.hasWeed();\n }\n...
"public void metaContactGroupAdded(MetaContactGroupEvent evt) {\n MetaContactGroup sourceGroup = evt.getSourceMetaContactGroup();\n this.groupAdded(sourceGroup);\n this.revalidate();\n}\n"
"private IWorkDefinitionMatch getWorkDefinitionForTask(IAtsTeamWorkflow teamWf, IAtsTask task) throws OseeCoreException {\n IWorkDefinitionMatch match = task == null ? new WorkDefinitionMatch() : getWorkDefinitionFromArtifactsAttributeValue(task);\n if (!match.isMatched() && task != null) {\n match = getWo...
"public static Record convertCrossRefDomToRecord(Element pubArticle) {\n MutableRecord record = new SubmissionLookupPublication(\"String_Node_Str\");\n Map<String, String> mounthToNum = new HashMap<String, String>();\n mounthToNum.put(\"String_Node_Str\", \"String_Node_Str\");\n mounthToNum.put(\"String_Nod...
"public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {\n try {\n Result result = invoker.invoke(invocation);\n if (result.hasException() && GenericService.class != invoker.getInterface()) {\n try {\n Throwable exception = result.getException();\...
"public ImpersonationInfo getImpersonationInfo(NamespacedEntityId entityId) throws IOException {\n entityId = getEffectiveEntity(entityId);\n if (!entityId.getEntityType().equals(EntityType.NAMESPACE)) {\n KerberosPrincipalId effectiveOwner = ownerStore.getOwner(entityId);\n if (effectiveOwner != nu...
"protected void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n if (icicle != null) {\n mDoLaunch = icicle.getBoolean(DO_LAUNCH_ICICLE);\n mTempFile = new File(icicle.getString(TEMP_FILE_PATH_ICICLE));\n }\n}\n"
"public void postInitialize(AbstractSession session) throws DescriptorException {\n if (isInitialized(POST_INITIALIZED) || isInvalid()) {\n return;\n }\n setInitializationStage(POST_INITIALIZED);\n if (hasInheritance()) {\n for (ClassDescriptor child : getInheritancePolicy().getChildDescriptor...
"private void copyFolderTemplate(String path) throws MojoExecutionException {\n File source = new File(path);\n if (!source.isAbsolute()) {\n source = new File(project.getBasedir(), path);\n }\n if (!source.exists() || !source.isDirectory()) {\n throw new MojoExecutionException(\"String_Node_S...
"public Object execImpl() throws Exception {\n if (partNumber == null || revision == null) {\n loadMetadata();\n }\n productS = ScriptingTools.createProductService(getServerURL(), user, password);\n String strRevision = revision == null ? null : revision.toString();\n ConfigSpec cs = null;\n if...
"protected Set<T> realFind(Map fieldsMap) throws IOException {\n Set<T> foundSet = new HashSet<T>();\n if (fieldsMap == null || fieldsMap.isEmpty()) {\n return foundSet;\n }\n for (T record : records.values()) {\n boolean allMatch = true;\n for (Map.Entry<Enum, Object> e : ((Map<Enum, O...
"public static void removeGame(UUID gameId) {\n GAMES.remove(gameId);\n}\n"
"private boolean isServerConnectionLocal() {\n ListPreference serverConnection = getPreference(R.string.preference_key_server_connection);\n return serverConnection.getValue().equals(getString(R.string.preference_key_server_connection_local));\n}\n"
"public float getVarargsTypeMatch(int index, IParameter param) {\n if (index == this.size) {\n return DEFAULT_MATCH;\n }\n if (index > this.size) {\n return 0;\n }\n IValue argument = this.values[index];\n IType type = param.getType();\n float m = argument.getTypeMatch(type);\n if ...
"private void addAll() {\n String[] values = valueList.getItems();\n for (int i = 0; i < values.length; i++) {\n if (selectedList.indexOf(values[i]) == -1) {\n selectedList.add(values[i]);\n }\n }\n filteValues();\n}\n"
"public void testmock_create_withValidInputArguments() throws Exception {\n when(mockResultSet.next()).thenReturn(Boolean.TRUE);\n when(mockResultSet.getInt(1)).thenReturn(id);\n Position returnvalue = mockPositionDAO.create(this.positionB);\n verify(mockPreparedStatement).executeUpdate();\n assertTrue(r...
"public void performUpload() {\n mRequestMethods.uploadPhoto(mItemToBeUploaded.getItemID(), mMediaUri, new RequestMethods.RequestCallback() {\n\n public void onSuccess() {\n Log.d(TAG, \"String_Node_Str\");\n displayUserListItems();\n new Handler().postDelayed(new Runnable() {...
"public void loadInMemoryStorage(final ColumnBinary columnBinary, final IMemoryAllocator allocator) throws IOException {\n ByteBuffer wrapBuffer = ByteBuffer.wrap(columnBinary.binary, columnBinary.binaryStart, columnBinary.binaryLength);\n Double min = Double.valueOf(wrapBuffer.getDouble());\n Double max = Dou...
"public static HyperLogLog mergeEstimators(HyperLogLog... estimators) {\n HyperLogLog merged = null;\n RegisterSet mergedSet = mergeRegisters(estimators);\n if (mergedSet != null)\n merged = new HyperLogLog(estimators[0].log2m, mergedSet);\n return merged;\n}\n"
"private void processTimestamp(FSGID fsgid) {\n if (this.getPrecedingSGID() == null) {\n if (getManager() != null && getManager().getState(this) != null && getManager().getState(this) != CreateUpdateManager.State.NEW_CREATION) {\n fsgid.setBackendTimestamp(new Date(this.getTimestamp().getTime()));\...
"private PriorityQueue createHitQueue(IndexReader reader, QueryRequest req) throws IOException {\n int nDocs = req.startDoc + req.maxDocs;\n if (req.sortMetaFields == null)\n return new HitQueue(nDocs);\n Vector fieldNames = new Vector();\n StringTokenizer st = new StringTokenizer(sortFields, \"Strin...
"public int numFeatures() {\n return worldWidth + (worldWidth - 1) + (CommonConstants.hyperNEAT || CommonConstants.hybrID ? 2 : 3);\n}\n"
"private void createAllClassesFile() throws OutputFormatterException {\n Set<String> set = packageServicesMap.keySet();\n StringBuffer html = new StringBuffer();\n html.append(HtmlUtils.getStartTags(Constants.ALL_CLASSES, null));\n html.append(Constants.HTML_BOLD_START + Constants.ALL_CLASSES + Constants.HT...
"public boolean isSsl(String _baseUrl) {\n return !StringUtils.isEmpty(_baseUrl) && _baseUrl.toLowerCase().startsWith(\"String_Node_Str\");\n}\n"
"private static int getIntIndex(Material m, byte data) {\n switch(data) {\n case 0:\n return m.ordinal();\n default:\n switch(m) {\n case SAPLING:\n if (data < 3)\n return materialSize + (int) data;\n else...
"protected Object getEnabledValueAt(int row, int column) {\n DataTuple tuple = null;\n String seriesName = \"String_Node_Str\";\n boolean graphDataOnly = false;\n if (dataset instanceof DataTupleCategoryDataset) {\n DataTupleCategoryDataset d = (DataTupleCategoryDataset) dataset;\n int columnC...
"public void receive(List<Host> hosts) {\n Component euca = Components.lookup(Eucalyptus.class);\n if (!Bootstrap.isFinished()) {\n return;\n }\n for (final Host host : hosts) {\n Hosts.update(host);\n if (!host.hasBootstrapped() && !host.hasDatabase() && !host.isLocalHost()) {\n ...
"public void node(Node node, NamespaceResolver namespaceResolver) {\n if (node.getNodeType() == Node.ATTRIBUTE_NODE) {\n Attr attr = (Attr) node;\n String resolverPfx = null;\n if (getNamespaceResolver() != null) {\n resolverPfx = this.getNamespaceResolver().resolveNamespaceURI(attr.g...
"private ZooClassDef evolve() {\n ArrayList<Object> fV = new ArrayList<Object>(Arrays.asList(fixedValues));\n ArrayList<Object> vV = new ArrayList<Object>(Arrays.asList(variableValues));\n if (op instanceof SchemaOperation.SchemaFieldDefine) {\n SchemaOperation.SchemaFieldDefine op2 = (SchemaFieldDefine...
"public void setWidgetVisible(Widget child, boolean visible) {\n assertIsChild(child);\n getLayer(child).setVisible(visible);\n child.setVisible(visible);\n animate(0);\n}\n"
"private static void updateNavbarData(Context context, XpNavBarSetting setting) {\n List<ShortCut> shortCutData = setting.getShortCutData();\n int iconScale = setting.getIconSize();\n int homePosition = setting.getHomePointPosition();\n boolean rootDown = setting.isRootDown();\n int clearMemLevel = setti...
"public void setBaseColor(int color) {\n if (baseColor != color) {\n baseColor = color;\n }\n ColorStateList colorStateList = new ColorStateList(new int[][] { new int[] { android.R.attr.state_enabled }, EMPTY_STATE_SET }, new int[] { baseColor & 0x00ffffff | 0xdf000000, baseColor & 0x00ffffff | 0x440000...
"public void writeText(String txt) {\n writer.openTag(\"String_Node_Str\");\n if (d instanceof Data) {\n if (((Data) d).getDatatype().equals(Data.NUMBER)) {\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n } else if (((Data) d).getDatatype().equals(Data.DATE)) {\n ...
"public final Pair<String> pairString() throws RecognitionException {\n Pair<String> pair = null;\n Token i = null;\n Token j = null;\n try {\n {\n {\n match(input, LSQUARE, FOLLOW_LSQUARE_in_pairString1403);\n int alt87 = 2;\n int LA87_0 = inpu...
"public E get() {\n ClientMessage request = AtomicReferenceGetCodec.encodeRequest(name);\n ClientMessage response = invoke(request);\n return toObject(AtomicReferenceGetCodec.decodeResponse(response).response);\n}\n"
"public void noteScreenOnLocked() {\n if (!mScreenOn) {\n mHistoryCur.states |= HistoryItem.STATE_SCREEN_ON_FLAG;\n if (DEBUG_HISTORY)\n Slog.v(TAG, \"String_Node_Str\" + Integer.toHexString(mHistoryCur.states));\n addHistoryRecordLocked(SystemClock.elapsedRealtime());\n mScree...
"public void postAlloc(ObjectReference object, int bytes, boolean straddle) {\n if (VM.VERIFY_ASSERTIONS && TMP_EXACT_ALLOC_TIME_STRADDLE_CHECK) {\n Address start = VM.objectModel.objectStartRef(object);\n Address end = VM.objectModel.getObjectEndAddress(object).minus(1);\n boolean sanityStraddl...
"public boolean addAllCameraViews(boolean reloadImages) {\n try {\n camerasPerRow = recalculateCameraPerRow();\n io.evercam.androidapp.custom.FlowLayout camsLineView = (io.evercam.androidapp.custom.FlowLayout) this.findViewById(R.id.camsLV);\n int screen_width = readScreenWidth(this);\n i...
"public void cooler() {\n colorTemperature = com.cooler(bulb, colorTemperature);\n}\n"
"public void onReceive(Context context, Intent intent) {\n Bundle extras = intent.getExtras();\n String chatRoomString = extras.getString(\"String_Node_Str\");\n if (chatRoomString.equals(\"String_Node_Str\" + currentChatRoom.getId()) && chatHistoryAdapter != null) {\n if (extras.getBoolean(\"String_Nod...
"public static Volume checkVolumeReady(final Volume vol) throws EucalyptusCloudException {\n if (vol.isReady()) {\n return vol;\n } else {\n final ServiceConfiguration sc = Topology.lookup(Storage.class, Partitions.lookupByName(vol.getPartition()));\n final DescribeStorageVolumesType descVols...
"private CacheRow getCacheRow(IRow row) {\n if (cacheMulti.containsKey(row.getIndex()))\n return ((CacheRow) cacheMulti.get(row.getIndex()));\n float[] s = new float[this.size()];\n String[] raws = new String[s.length];\n boolean[] inferred = new boolean[s.length];\n for (int i = 0; i < s.length; ...
"public boolean setWarpType(String warpName, WarpType type, Player requestingPlayer) {\n boolean retVal = false;\n if (warpName != null && type != null && requestingPlayer != null) {\n Warp warp = getWarp(warpName, requestingPlayer);\n if (warp != null) {\n boolean isOwner = warp.getOwner...
"public void modifyText(ModifyEvent e) {\n changeDefaultValue(UIUtil.convertToModelString(defaultValueEditor.getText(), false));\n if (isStatic()) {\n refreshValueTable();\n }\n updateFormatField();\n updateMessageLine();\n}\n"
"public Response intercept(final Chain chain) throws IOException {\n final Response response = chain.proceed(chain.request());\n if (response.isSuccessful()) {\n return response;\n } else {\n try {\n final JsonNode responseBody = mapper.readTree(response.body().string());\n ...
"protected void instrumentAndReplaceBody(MarkupStream markupStream, ComponentTag openTag, CharSequence bodyText) {\n replaceComponentTagBody(markupStream, openTag, instrumentBodyText(bodyText, halign, valign, false, false));\n}\n"
"public ClusterEntity createClusterConfig(ClusterCreate cluster) {\n String name = cluster.getName();\n if (name == null || name.isEmpty()) {\n throw ClusterConfigException.CLUSTER_NAME_MISSING();\n }\n List<String> failedMsgList = new ArrayList<String>();\n List<String> warningMsgList = new Array...
"public DesignerState newOdaDesignerState(OdaDataSourceHandle sourceHandle) {\n OdaDesignerStateHandle designerState = sourceHandle.getDesignerState();\n return DesignerStateAdapter.createOdaDesignState(designerState);\n}\n"
"public void readObject(DataInputStream in) throws IOException {\n int version = IOUtil.readInt(in);\n int filedId = IOUtil.readInt(in);\n while (filedId != FIELD_NONE) {\n readField(version, filedId, in, loader);\n filedId = IOUtil.readInt(in);\n }\n}\n"
"public static int gcd(int a, int b) {\n\treturn b > 0 ? gcd(b, a % b) : a;\n}\n"
"public boolean buyShare(String playerName, Portfolio from, String companyName, int shares) {\n String errMsg = null;\n int price = 0;\n PublicCompanyI company = null;\n currentPlayer = GameManager.getCurrentPlayer();\n while (true) {\n if (!playerName.equals(currentPlayer.getName())) {\n ...
"public void setBaby(boolean flag) {\n if (flag) {\n this.datawatcher.watch(12, new Integer(-24000));\n } else {\n this.datawatcher.watch(12, 0);\n }\n ((MyWolf) myPet).isBaby = flag;\n}\n"
"public void run(ProgressStatus progressStatus) {\n progressStatus.init(\"String_Node_Str\", 6);\n if (SessionManager.getInstance().isSessionCreated(project)) {\n SessionManager.getInstance().closeSession(project);\n }\n Map<String, Pair<ObjectNode, InstanceSpecification>> instanceSpecificationMap = ...
"public void handleBeforeOpen(IDataSourceInstanceHandle dataSource) {\n if (reportContext == null)\n return;\n try {\n if (!this.useBeforeOpenEventHandler) {\n ScriptStatus status = handleJS(dataSource.getScriptScope(), dataSource.getName(), BEFORE_OPEN, dataSourceHandle.getBeforeOpen(), ...
"public void pluginComponentRemoved(PluginComponentEvent event) {\n final PluginComponent pluginComponent = event.getPluginComponent();\n Container containerID = pluginComponent.getContainer();\n if (containerID.equals(Container.CONTAINER_MAIN_WINDOW)) {\n Object constraints = UIServiceImpl.getBorderLay...
"List<SendFileSpec> determineSendFiles(TreeMap<Integer, Snapshot> sourceSnapshots, VersionHistory versionHistory, Set<Integer> targetSnapshotNrs) {\n List<Snapshot> missingSnapshots = calculateMissingSnapshots(sourceSnapshots.values(), targetSnapshotNrs);\n TreeSet<Integer> availableCloneSources = new TreeSet<>()...
"public void update() {\n if (DEBUG)\n Slog.v(TAG, \"String_Node_Str\" + this);\n final long nowUptime = SystemClock.uptimeMillis();\n final long nowRealtime = SystemClock.elapsedRealtime();\n final long[] sysCpu = mSystemCpuData;\n if (Process.readProcFile(\"String_Node_Str\", SYSTEM_CPU_FORMAT, ...
"public void testTemplateWithMultipleAnyMatchWithoutAccount() throws Exception {\n String smsTpl = \"String_Node_Str\";\n String sms = \"String_Node_Str\";\n String[] matches = SmsTransactionProcessor.findTemplateMatches(smsTpl, sms);\n Assert.assertArrayEquals(new String[] { null, null, \"String_Node_Str\"...
"public void setValue(final double VALUE) {\n if (null == value) {\n if (isAnimated()) {\n if (timeline.getCurrentRate() > 0) {\n oldValue = _value;\n _value = VALUE;\n } else {\n oldValue = _value;\n _value = VALUE;\n ...
"public void testRecovery() throws Exception {\n long ts;\n try (JournalWriter<Quote> w = factory.writer(Quote.class)) {\n w.disableCommitOnClose();\n Assert.assertFalse(w.isCommitOnClose());\n TestUtils.generateQuoteData(w, 10000, new Interval(\"String_Node_Str\", \"String_Node_Str\"));\n ...
"private Observable<Response<ArrayList<Repository>>> getObservable(boolean forceNetWork, int page) {\n String loginedUser = AppData.INSTANCE.getLoggedUser().getLogin();\n switch(type) {\n case OWNED:\n return getRepoService().getUserRepos(forceNetWork, user, page);\n case STARRED:\n ...
"private RegistrationContext getRegistrationContext(String id) {\n final String layer = getLayer();\n final String appContext;\n if (id.toLowerCase(Locale.getDefault()).equals(DEFAULT_JAAS_APP_NAME)) {\n appContext = ALL_APPS;\n } else {\n appContext = id;\n }\n return new RegistrationCo...
"private void setupVolumeMessages() throws NoSuchElementException, MetadataException, ExecutionException {\n if (this.allocInfo.getBootSet().getMachine() instanceof BlockStorageImageInfo) {\n List<BlockDeviceMappingItemType> instanceDeviceMappings = new ArrayList<BlockDeviceMappingItemType>(this.allocInfo.get...
"public void onChange(boolean selfChange, Uri uri) {\n String fragment = uri.getFragment();\n String tableName = uri.getAuthority();\n String columnName = null;\n String param = null;\n Set<String> queryNames = uri.getQueryParameterNames();\n SQLCondition[] columnsChanged = new SQLCondition[queryNames...
"public BerkeleyDB<K, V> build() {\n return new BerkeleyDB<>(location, dbName, keyClass, valueClass, allowSortedDuplicates, readOnly, allowCreate);\n}\n"
"public void testWithPrefix$valid() throws Exception {\n final ImmutableNamespaces ns = this.sut.withPrefix(NS1, VALID_NAMESPACE);\n assertThat(ns, not(sameInstance(this.sut)));\n assertThat(ns.getDeclaredPrefixes(), contains(NS1, DEFAULT_PR1, DEFAULT_PR2));\n assertThat(ns.getNamespaceURI(NS1), equalTo(VAL...
"public final byte[][] AARQRequest(GXDLMSTagCollection Tags) {\n java.nio.ByteBuffer buff = java.nio.ByteBuffer.allocate(200);\n m_Base.checkInit();\n GXAPDU aarq = new GXAPDU(Tags);\n aarq.setUseLN(this.getUseLogicalNameReferencing());\n if (this.getUseLogicalNameReferencing()) {\n m_Base.setSNSe...
"public void marshallEntity(Object object, MediaType mediaType, OutputStream output) throws JAXBException {\n Marshaller marshaller = getJAXBContext().createMarshaller();\n marshaller.setProperty(MarshallerProperties.MEDIA_TYPE, mediaType.toString());\n marshaller.setProperty(MarshallerProperties.JSON_INCLUDE_...
"protected void setUp(ModelStep step) throws Exception {\n if (hasInitialized()) {\n return;\n }\n loadModelConfig();\n validateModelConfig(step);\n pathFinder = new PathFinder(modelConfig, this.getOtherConfigs());\n checkAlgorithmParam();\n log.info(String.format(\"String_Node_Str\", modelC...
"public Integer call(Object object) throws Exception {\n DateTime dt = Utils.toDateTimeObject(object);\n if (dt != null) {\n return Integer.parseInt(dt.minuteOfHour().getAsString());\n } else {\n return null;\n }\n}\n"
"public void tstHeaderWithBadEntry() {\n Dictionary headers = new Hashtable();\n headers.put(\"String_Node_Str\", \"String_Node_Str\");\n EntryLookupControllingMockBundle aBundle = new EntryLookupControllingMockBundle(headers);\n aBundle.setEntryReturnOnNextCallToGetEntry(new URL(\"String_Node_Str\"));\n ...
"public void dispatchResized(Rect frame, Rect overscanInsets, Rect contentInsets, Rect visibleInsets, Rect stableInsets, Rect outsets, boolean reportDraw, Configuration newConfig, Rect backDropFrame, boolean forceLayout) {\n if (DEBUG_LAYOUT)\n Log.v(mTag, \"String_Node_Str\" + this + \"String_Node_Str\" + fr...
"public void handleMessage(Message msg) {\n if (Console.Enabled) {\n Console.log(Constants.Log.App.SystemUIHandshake, \"String_Node_Str\", msg);\n }\n Context context = mContext.get();\n if (context == null)\n return;\n if (msg.what == AlternateRecentsComponent.MSG_UPDATE_FOR_CONFIGURATION)...
"protected boolean checkContext(Item item, ProcessType processType) throws Exception {\n boolean modified = false;\n EList contextList = processType.getContext();\n for (Object o : contextList) {\n if (o instanceof ContextType) {\n List<ContextParameterType> paramTypes = ((ContextType) o).get...
"public Collection<String> getPrivateIpAddresses() throws Exception {\n final Map<String, String> result = new DescribeInstances(awsConfig, endpoint).execute();\n return result.keySet();\n}\n"
"public void deleteByColumn(String schemaName, String tableName, String columnName, Object columnValue) {\n CQLTranslator translator = new CQLTranslator();\n try {\n List<ColumnMetadata> primaryKeys = session.getCluster().getMetadata().getKeyspace(schemaName).getTable(tableName).getPrimaryKey();\n r...
"private boolean typeSafeEquals(final SAMBinaryTagAndValue that) {\n if (this.tag != that.tag)\n return false;\n if (this.valueEquals(that)) {\n if (this.next == null)\n return that.next == null;\n else\n return this.next.equals(that.next);\n } else {\n return ...
"public void resolveItem(ResourcesManager manager, ItemRecord itemRecord) {\n if (itemRecord.isResolved()) {\n return;\n }\n InputStream stream = null;\n try {\n final Item item = itemRecord.getItem();\n boolean byteArray = (item instanceof FileItem);\n IPath itemPath = getItemPa...
"public static Connection open() {\n try {\n Class.forName(\"String_Node_Str\").newInstance();\n if (conn == null) {\n conn = DriverManager.getConnection(url, user, password);\n }\n } catch (ClassNotFoundException ex) {\n ErrorHandler.getException(ex, new CurrentClassGetter(...
"public void testFilter2() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.c...
"private boolean areParametersOfSameType(String param1, String param2) {\n if (param1.equals(param2))\n return true;\n int i = -1;\n char c;\n do {\n i++;\n c = param1.charAt(i);\n } while (c == '[');\n if (c != 'T')\n return false;\n String typeVarName1 = param1.substri...
"static public void sendHal(HttpServerExchange exchange, RequestContext context, List<DBObject> embeddedData, long size) throws IllegalQueryParamenterException {\n String requestPath = URLUtilis.removeTrailingSlashes(exchange.getRequestPath());\n String queryString = exchange.getQueryString() == null || exchange....
"private boolean synConfigs() {\n boolean result = true;\n List<Config> configList = serviceHelper.getConfigs();\n if (configList == null) {\n result = false;\n } else {\n for (Config config : configList) {\n dbHelper.addConfig(config);\n }\n }\n return result;\n}\n"
"public void handle_multipart_post_invalid_sso_token() throws Exception {\n final String data = \"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\" + \"String_Node_Str\";\n ...
"public ResolveReport install(ModuleRevisionId mrid, String from, String to, boolean transitive, boolean validate, boolean overwrite, Filter artifactFilter, File cache, String matcherName) throws IOException {\n if (cache == null) {\n cache = settings.getDefaultCache();\n }\n if (artifactFilter == null)...