content
stringlengths
40
137k
"public TypeArgExpression resolveTypeArg(TypeVariableInfo typeVar) {\n for (TypeParamInfo.Method typeParam : typeParams) {\n if (typeParam.getName().equals(typeVar.getName())) {\n for (ParamInfo param : params) {\n if (param.getType().getKind() == ClassKind.CLASS_TYPE && param.getTyp...
"public View getView(final int position, View conView, ViewGroup parent) {\n if (conView == null) {\n conView = View.inflate(ctx, R.layout.conversation_add_members_item, null);\n }\n String userId = datas.get(position);\n LeanchatUser user = CacheService.lookupUser(userId);\n ImageView avatarView ...
"public double getOffset(AnchorPoint anchor) {\n if (corr_.fPoint() == anchor)\n return line_.getCorridorInfo(corr_).offsetFrom_;\n if (corr_.tPoint() == anchor)\n return -line_.getCorridorInfo(corr_).offsetTo_;\n return -1;\n}\n"
"private static void setUpLocalRegistry() {\n System.setProperty(LOCAL_REGISTRY_FILE_KEY, \"String_Node_Str\");\n}\n"
"protected void saveSound(int i, JFileChooser chooser) {\n SoundFromCPPNUtil.saveRemixedFileFromCPPN(scores.get(i).individual.getPhenotype(), WAVDoubleArray, Parameters.parameters.integerParameter(\"String_Node_Str\"), FREQUENCY_DEFAULT, inputMultipliers, chooser.getSelectedFile().getName() + \"String_Node_Str\", fo...
"public void registerHideableHeaderView(View hideableHeaderView) {\n if (mHeaderViewImpl != null) {\n mHeaderViewImpl.registerHideableHeaderView(hideableHeaderView);\n }\n}\n"
"public Result transfer(byte[] from, byte[] to, Na values, String password, String remark) {\n try {\n Result<Account> accountResult = accountService.getAccount(from);\n if (accountResult.isFailed()) {\n return accountResult;\n }\n Account account = accountResult.getData();\n ...
"public JCacheCacheLoader<K, T> create() {\n if (this.instance != null) {\n return (JCacheCacheLoader<K, T>) this.instance;\n } else {\n try {\n this.instance = new JCacheCacheLoader<>(DataStoreFactory.getDataStore(keyClass, persistentClass, new Configuration()));\n } catch (GoraEx...
"public double[] geoFromPixel(final double l, final double p) throws GeoLocationException {\n try {\n double[] results = new double[2];\n double lon = 0;\n double lat = 0;\n double t0 = 0;\n int idxStartT0 = 0;\n if (meta.getType().equalsIgnoreCase(\"String_Node_Str\") && me...
"public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) {\n if (!((Token) offendingSymbol).getText().trim().isEmpty()) {\n errors.add(new Exception(String.format(\"String_Node_Str\", line, charPositionInLine, msg)));\n...
"public void setValueAt(Object editedValue, int row, int column) {\n if (tableFormat instanceof WritableTableFormat) {\n swingThreadSource.getReadWriteLock().writeLock().lock();\n try {\n final WritableTableFormat<E> writableTableFormat = (WritableTableFormat<E>) tableFormat;\n fi...
"public HmDatapointInfo parse(Object[] message) throws IOException {\n String address;\n Integer channel = 0;\n String addressWithChannel = toString(message[1]);\n if (\"String_Node_Str\".equals(addressWithChannel)) {\n address = HmDevice.ADDRESS_GATEWAY_EXTRAS;\n channel = HmChannel.CHANNEL_N...
"public int getContentX() {\n return PropertyUtil.getDimensionValue(style.getProperty(IStyle.STYLE_BORDER_LEFT_WIDTH), width) + PropertyUtil.getDimensionValue(style.getProperty(IStyle.STYLE_PADDING_LEFT), width);\n}\n"
"public final No_brackets_or_semicolonContext no_brackets_or_semicolon() throws RecognitionException {\n No_brackets_or_semicolonContext _localctx = new No_brackets_or_semicolonContext(_ctx, getState());\n enterRule(_localctx, 30, RULE_no_brackets_or_semicolon);\n int _la;\n try {\n enterOuterAlt(_lo...
"protected void insert(Widget w, Element container, int beforeIndex) {\n if (w.getParent() == this) {\n return;\n }\n adopt(w, container);\n getChildren().insert(w, beforeIndex);\n return beforeIndex;\n}\n"
"protected By buildDefaultBy() {\n AnnotatedElement annotatedElement = annotatedElementContainer.getAnnotated();\n By defaultBy = null;\n FindBy findBy = annotatedElement.getAnnotation(FindBy.class);\n if (findBy != null) {\n defaultBy = super.buildByFromFindBy(findBy);\n if (defaultBy == null) {\...
"public byte[] getAvgSpeed() {\n return IKEGetRequest(0x0A, 0xF4);\n}\n"
"public static ComponentAlias ref(Var var, Var ref) {\n return new ComponentAlias(ref, Collections.<Arg>singletonList(null), var);\n}\n"
"public void setUp() throws MojoExecutionException, MojoFailureException {\n processLocales();\n if (sourcePaths == null) {\n List<String> sourceRoots;\n if (project.getExecutionProject() != null) {\n sourceRoots = project.getExecutionProject().getCompileSourceRoots();\n } else {\n...
"public List<? extends FirewallRule> searchStaticNatRules(Long ipId, Long id, Long vmId, Long start, Long size, String accountName, Long domainId, Long projectId, boolean isRecursive, boolean listAll) {\n Account caller = UserContext.current().getCaller();\n List<Long> permittedAccounts = new ArrayList<Long>();\n...
"public String getAtomSequence() {\n String prop = System.getProperty(PDBFileReader.LOAD_CHEM_COMP_PROPERTY);\n if (prop != null && prop.equalsIgnoreCase(\"String_Node_Str\")) {\n List<Group> groups = getAtomGroups();\n StringBuilder sequence = new StringBuilder();\n for (Group g : groups) {\...
"public void refreshUserInfos(boolean skipPendingTest, final ApiCallback<Void> callback) {\n if (!skipPendingTest) {\n boolean isPending;\n synchronized (this) {\n isPending = (null != mRefreshListeners);\n if (null == mRefreshListeners) {\n mRefreshListeners = new ...
"public void testAppendWithoutSync() throws IOException {\n File temp = File.createTempFile(LOGFILE, \"String_Node_Str\");\n SimpleLog log = new SimpleLog(temp);\n log.append(new Transaction(new Zxid(0, 0), ByteBuffer.wrap(\"String_Node_Str\".getBytes())));\n Log.LogIterator iter = log.getIterator(new Zxid(...
"public boolean OnInflateProperty(String nameSpace, String attrName, String attrValue) {\n String value = null;\n if (NAMESPACE_ANDROID.equals(nameSpace)) {\n if (ATTRIBUTE_SRC.equals(attrName)) {\n if (attrValue.startsWith(\"String_Node_Str\")) {\n src = IFlaterTools.getBackgroun...
"private int indexOfDelegatesToTarget(Parameter[] parameters, String target) {\n for (int i = 0, n = parameters.length; i < n; i += 1) {\n List<AnnotationNode> annotations = parameters[i].getAnnotations();\n if (annotations != null && !annotations.isEmpty()) {\n for (AnnotationNode annotatio...
"int adjustWallpaperWindowsLocked() {\n mInnerFields.mWallpaperMayChange = false;\n boolean targetChanged = false;\n final DisplayInfo displayInfo = getDefaultDisplayContentLocked().getDisplayInfo();\n final int dw = displayInfo.appWidth;\n final int dh = displayInfo.appHeight;\n final WindowList wind...
"public void endGameInfo(Match match) {\n if (!killed) {\n User user = UserManager.getInstance().getUser(userId);\n if (user != null) {\n user.fireCallback(new ClientCallback(\"String_Node_Str\", game.getId(), getGameEndView(playerId, table)));\n }\n }\n}\n"
"public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {\n enlistResource();\n return getDelegate().prepareStatement(sql, columnNames);\n}\n"
"public void createMovienameCfgs() throws IOException {\n String[] prefixes = { \"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\", \"String_Node_Str\", \"Stri...
"public void processClass(ClassNode root, ClassNode node) {\n if (node.type == ClassNode.CLASS_LAMBDA && !node.lambda_information.is_method_reference) {\n ClassNode node_content = DecompilerContext.getClassprocessor().getMapRootClasses().get(node.classStruct.qualifiedName);\n if (node_content != null &...
"public void activateRead() {\n if (isHollow) {\n GenericObject go = context.getNode().readGenericObject(def, oid);\n if (go != this) {\n throw DBLogger.newFatalInternal(\"String_Node_Str\");\n }\n }\n}\n"
"public void setSequenceDictionary(final SAMSequenceDictionary dictionary) {\n this.contigMetaData.clear();\n for (final SAMSequenceRecord record : dictionary.getSequences()) {\n contigMetaData.add(new VCFContigHeaderLine(record, record.getAssembly()));\n }\n this.mMetaData.addAll(contigMetaData);\n}...
"public void getTasksForUser(ActionRequest request, ActionResponse response) {\n List<Map<String, String>> dataList = new ArrayList<Map<String, String>>();\n LocalDate todayDate = Beans.get(GeneralService.class).getTodayDate();\n List<ProjectPlanningLine> linesList = Beans.get(ProjectPlanningLineRepository.cla...
"public void createControl(Composite parent) {\n List<MetadataColumn> analysisColumns = this.selectPatternsWizard.getSsIndicator().getAnalyzedColumns();\n GridTableViewer tableView = new GridTableViewer(parent, SWT.NONE);\n this.table = tableView.getGrid();\n table.setHeaderVisible(true);\n table.setLine...
"public void toLevel(int level) {\n EnumFacing side = worldObj.getBlockState(getPos()).getValue(GenericBlock.FACING_HORIZ);\n BlockPos controllerPos = findBottomElevator();\n for (int y = controllerPos.getY(); y < worldObj.getHeight(); y++) {\n BlockPos pos2 = getPosAtY(controllerPos, y);\n if (w...
"public <R> CompletableFuture<R> execute(final ExecutionEnvironment environment, final ExecutionHandler<R> handler) {\n Objects.requireNonNull(environment);\n Objects.requireNonNull(handler);\n class AsyncContext {\n WorkingDirectory workingDir;\n List<CommandExecution> parametersList;\n E...
"IOdaDataSourceDesign newOdaDataSource(OdaDataSourceHandle source) throws BirtException {\n OdaDataSourceDesign dteSource = new OdaDataSourceDesign(source.getQualifiedName());\n IBaseDataSourceEventHandler eventHandler = new DataSourceScriptExecutor(source, context);\n dteSource.setEventHandler(eventHandler);\...
"public Side giveSimpleDirection() {\n if (this.getNetmask() < 8 && (!(this.getStart().empty() ^ this.getEnd().empty())) && !this.isExactSubnet(this.getFirstStationNumber(), this.getNetmask()))\n return Side.RIGHT;\n return Side.LEFT;\n}\n"
"public void testjSLPDefaultsToECF2() {\n String expected = \"String_Node_Str\";\n Namespace namespaceByName = IDFactory.getDefault().getNamespaceByName(namespace);\n IServiceID aServiceID = ServiceIDFactory.getDefault().createServiceID(namespaceByName, DiscoveryTestHelper.SERVICES, DiscoveryTestHelper.PROTOCO...
"public String getRegistrationStatus(String studyOid) {\n String ocUrl = CoreResources.getField(\"String_Node_Str\") + \"String_Node_Str\" + studyOid;\n String pManageUrl = CoreResources.getField(\"String_Node_Str\") + \"String_Node_Str\" + studyOid + \"String_Node_Str\" + ocUrl;\n RestTemplate rest = new Rest...
"public Character getValue(double low, double high, Estimator estimator) {\n if (low > high)\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n return getValue(new Interval<Character>(low, high, false, false), estimator);\n}\n"
"protected Object openDialogBox(Control cellEditorWindow) {\n String schemaToEdit = (String) this.getValue();\n String oldValue = schemaToEdit;\n boolean metaReadonly = false;\n final List<IMetadataTable> metadatas = node.getMetadataList();\n IMetadataTable tableToEdit = null;\n if (schemaToEdit == nu...
"public void multiple_paragraphs_mixed() {\n final String content1 = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n final String content2 = \"String_Node_Str\";\n final String content = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + INPUT + \"String_Node_Str\" + SIGNATURE...
"public String getSequenceNumber(Sequence sequence) {\n SequenceVersion sequenceVersion = getVersion(sequence);\n String seqPrefixe = StringUtils.defaultString(sequence.getPrefixe(), \"String_Node_Str\"), seqSuffixe = StringUtils.defaultString(sequence.getSuffixe(), \"String_Node_Str\"), padLeft = StringUtils.lef...
"private static boolean isNewerTimestamp(long timestamp, long prevTimestamp) {\n if (timestamp - prevTimestamp == 0x80000000L) {\n return timestamp > prevTimestamp;\n }\n return timestamp != prevTimestamp && subtractAsUnsignedInt32(timestamp, prevTimestamp) < 0x80000000L;\n}\n"
"public VoidResult execute(final UpdateMonthlyReports cmd, final UserExecutionContext context) throws CommandException {\n Site site = em().find(Site.class, cmd.getSiteId());\n final Map<Month, ReportingPeriod> periods = new HashMap<>();\n for (ReportingPeriod period : site.getReportingPeriods()) {\n pe...
"public List<Config> parseConfigs(String configsRespStr) throws JSONException {\n List<Config> resultList = null;\n JSONObject configs = new JSONObject(configsRespStr);\n resultList = new ArrayList<Config>();\n Config tempConfig = null;\n JSONArray dishArray = configs.getJSONArray(\"String_Node_Str\");\n...
"private Set<InputKind> assembleInputKindSet(List<String> subPath) {\n Set<InputKind> kinds = new HashSet<InputKind>();\n ResponseMessage response = service.get(this.path + \"String_Node_Str\" + Util.join(\"String_Node_Str\", subPath));\n AtomFeed feed = AtomFeed.parseStream(response.getContent());\n for (A...
"public void showFBAlbum(String albumId) {\n fac.setCurrentAlbumId(albumId);\n model.resetModel(NavigationEnum.FB_ALBUM_PREVIEW, getLoggedUser(), null, null, null, null);\n}\n"
"public void addImageData(IImageContent image, IStyle style, HyperlinkDef link, BookmarkDef bookmark) {\n XlsContainer container = getCurrentContainer();\n ContainerSizeInfo parentSizeInfo = container.getSizeInfo();\n int imageWidthDpi = reportDpi;\n int imageHeightDpi = reportDpi;\n int imageHeight;\n ...
"private ResourceResponse patchResource(Context context, Request request, ResourceResponse resource, String revision, List<PatchOperation> patchOperations) throws ResourceException {\n boolean forceUpdate = (revision == null);\n boolean retry = forceUpdate;\n String rev = revision;\n do {\n logger.de...
"private void onErrorPluginDefect(DownloadLink downloadLink2, PluginForHost currentPlugin2) {\n String rev = downloadLink.getPlugin() == null ? \"String_Node_Str\" : downloadLink.getPlugin().getVersion();\n logger.warning(\"String_Node_Str\" + currentPlugin.getHost() + \"String_Node_Str\" + rev + \"String_Node_St...
"public static AsyncAggScaleExecutionNode create(QueryExecutionPlan plan, AggExecutionNode aggNode) throws VerdictDBException {\n AsyncAggScaleExecutionNode node = new AsyncAggScaleExecutionNode(plan);\n List<SelectItem> newSelectList = aggNode.getSelectQuery().deepcopy().getSelectList();\n for (SelectItem sel...
"private void callFunctionExpression(Context context, SwiftAST tree, List<Var> oList, Map<String, String> renames) throws UserException {\n FunctionCall f = FunctionCall.fromAST(context, tree, true);\n FunctionType concrete = TypeChecker.concretiseFunctionCall(context, f.function(), f.type(), f.args(), oList, fal...
"protected View onCreateView(ViewGroup parent) {\n View layout = super.onCreateView(parent);\n layout.setOnClickListener(this);\n CharSequence title = getTitle();\n if (!TextUtils.isEmpty(title)) {\n TextView cta = (TextView) layout.findViewById(R.id.cta_title);\n cta.setText(title);\n }\n ...
"public static boolean renameAndDelete(File file) {\n String filePath = pathComponent(file.getPath());\n String fileName = getFileName(file.getPath());\n String timeStr = \"String_Node_Str\" + System.currentTimeMillis();\n String renamed = filePath + removeExtension(fileName) + \"String_Node_Str\" + timeStr...
"private DataHandle getData() {\n ModelConfiguration config = model.getOutputConfig();\n if (config == null) {\n config = model.getInputConfig();\n }\n DataHandle data;\n if (target == ModelPart.INPUT) {\n data = config.getInput().getHandle();\n } else {\n data = model.getOutput()...
"public boolean removeRoadSouthEast(PlotArea plotArea, Plot plot) {\n ClassicPlotWorld dpw = (ClassicPlotWorld) plotArea;\n Location location = getPlotTopLocAbs(dpw, plot.getId());\n int sx = location.getX() + 1;\n int ex = sx + dpw.ROAD_WIDTH - 1;\n int sz = location.getZ() + 1;\n int ez = sz + dpw.R...
"private void prepareSheet(Sheet masterSheet, FishLinkSheet metaSheet, Sheet dataSheet, Sheet copySheet) throws XLWrapMapException {\n int lastMetaRow = prepareColumnA(masterSheet, metaSheet, dataSheet);\n int lastColumn = dataSheet.getColumns();\n metaSheet.createFreezePane(\"String_Node_Str\", lastMetaRow + ...
"public void biConsumer() {\n var result = new HashMap<String, String>();\n var biConsumer = new BiConsumer<String, String>() {\n public void accept(String key, String value) {\n result.put(key.toUpperCase(), value.toUpperCase());\n }\n };\n biConsumer.accept(\"String_Node_Str\", \"...
"private void modifyInheritanceHierarchy() {\n IContainer contextContainer = (IContainer) sourceFile.getParent();\n PackageDeclaration contextPackageDeclaration = sourceCompilationUnit.getPackage();\n IContainer rootContainer = contextContainer;\n if (contextPackageDeclaration != null) {\n String pac...
"public void moveTo(Session session, int newPos) throws SQLException {\n PageStore store = index.getPageStore();\n PageBtreeLeaf p2 = new PageBtreeLeaf(index, newPos, store.createData());\n readAllRows();\n p2.rows = rows;\n p2.entryCount = entryCount;\n p2.offsets = offsets;\n p2.onlyPosition = on...
"public void fire() throws CloneNotSupportedException, IllegalActionException {\n if (_firstFiring) {\n _plot.setXRange(getStartTime(), getStopTime());\n _plot.setYRange(getYMin(), getYMax());\n _firstFiring = false;\n }\n int numEmptyChannel = 0;\n int width = input.getWidth();\n fo...
"public boolean LoadHomes() {\n warpString.clear();\n warps.clear();\n File warpFile;\n warpFile = new File(BenCmd.propDir + \"String_Node_Str\");\n String str = \"String_Node_Str\";\n BufferedReader br;\n try {\n br = new BufferedReader(new InputStreamReader(new FileInputStream(warpFile)));...
"public static ReportItemHandle getBindingHolder(DesignElementHandle handle) {\n if (handle instanceof ReportElementHandle) {\n if (handle instanceof ListingHandle) {\n return (ReportItemHandle) handle;\n }\n if (handle instanceof ReportItemHandle) {\n if (((ReportItemHandl...
"public Result stopAgent(StopAgentForm form) throws NulsException, IOException {\n AssertUtil.canNotEmpty(form);\n AssertUtil.canNotEmpty(form.getAddress());\n if (!AddressTool.validAddress(form.getAddress())) {\n throw new NulsRuntimeException(KernelErrorCode.PARAMETER_ERROR);\n }\n Account accou...
"public void setStatus(GroupStatus status) {\n log.info(String.format(\"String_Node_Str\" + \"String_Node_Str\", id, this.status, status));\n this.status = status;\n if (status == GroupStatus.Inactive && !this.hasDependent) {\n log.info(\"String_Node_Str\" + this.id + \"String_Node_Str\" + \"String_Node...
"public boolean getFire() {\n return this.getHandle().isFlammable();\n}\n"
"Task getTask() {\n return mAppToken != null ? mAppToken.mTask : null;\n}\n"
"private void incEdgeCounterIdx(int counters, int scratch, int base, int counterIdx) {\n asm.emitADDI(counters, base << 2, counters);\n asm.emitLIntX(scratch, counterIdx, counters);\n asm.emitADDI(scratch, 1, scratch);\n asm.emitCMPI(scratch, 0);\n VM_ForwardReference fr = asm.emitForwardBC(VM_Assembler....
"protected void init() {\n super.init();\n extractDataFromBundle();\n adapter = new GiftListAdapter(context, galleries);\n mRecyclerView.setAdapter(adapter);\n linearLayoutManager = new LinearLayoutManager(context);\n mRecyclerView.setLayoutManager(linearLayoutManager);\n apiRequest.getGifts(new Ge...
"public boolean isLoggable(LogRecord record) {\n if (record.getMessage() == null && record.getThrown() == null) {\n return false;\n }\n String recordString = \"String_Node_Str\";\n if (record.getMessage() != null) {\n if (!record.getMessage().contains(\"String_Node_Str\")) {\n if (r...
"public boolean hasUser(String userName) {\n if (this.permissions.isConfigurationSection(buildPath(\"String_Node_Str\", userName))) {\n return true;\n }\n ConfigurationSection userSection = this.permissions.getConfigurationSection(\"String_Node_Str\");\n if (userSection != null) {\n for (Strin...
"protected void populateReplacementPatterns(String baseProperty, List<String> regexPatterns) {\n replacementPattern = new LinkedHashMap<String, String>();\n Pattern p = Pattern.compile(\"String_Node_Str\");\n for (String regexPattern : regexPatterns) {\n Matcher m = p.matcher(regexPattern);\n if ...
"public <T> T invokeEffectorMethodSync(final Entity entity, final Effector<T> eff, final Object args) throws ExecutionException {\n try {\n Task<?> current = Tasks.current();\n if (current == null || !entity.equals(BrooklynTasks.getContextEntity(current)) || !isManagedLocally(entity)) {\n ma...
"protected void commitCowMaps() {\n super.commitCowMaps();\n lock.writeLock().lock();\n try {\n if (relationshipMap == null) {\n relationshipMap = new ArrayMap<String, ArrayIntSet>();\n }\n if (cowRelationshipAddMap != null) {\n for (String type : cowRelationshipAddMa...
"public void determineAccessRights(String page, State currentState) {\n if (currentState.getCaseID() == 1) {\n if (currentState.getUserProjectRole() == ProjectRole.Acquisition_Organization_Engineer) {\n currentState.setMode(GwtModesType.ReadOnly);\n } else if (currentState.getUserProjectRole...
"public void saveFinished(IDataSetCacheObject dsco) throws DataException {\n switchCacheMap(dataSetDesign);\n cacheMapManager.saveFinishOnCache(DataSourceAndDataSet.newInstance(this.dataSourceDesign, this.dataSetDesign, this.parameterHints, this.cacheID, this.enableSamplePreview), dsco);\n}\n"
"public static String getSQLSelectString(PoiCategoryFilter filter) {\n return SELECT_STATEMENT + getSQLWhereClauseString(filter) + \"String_Node_Str\";\n}\n"
"public Object visitTupleTypeSpecifier(cqlParser.TupleTypeSpecifierContext ctx) {\n TupleType resultType = new TupleType();\n TupleTypeSpecifier typeSpecifier = of.createTupleTypeSpecifier();\n for (cqlParser.TupleElementDefinitionContext definitionContext : ctx.tupleElementDefinition()) {\n TupleElemen...
"public String toString(List<Object> localData) {\n if (rightSide.precedence >= precedence) {\n String ret = \"String_Node_Str\";\n if (leftSide.precedence > precedence) {\n ret += \"String_Node_Str\" + leftSide.toString(localData) + \"String_Node_Str\";\n } else {\n ret +=...
"public DatabaseCall buildCall(AbstractSession session) {\n SQLCall call = (SQLCall) super.buildCall(session);\n Writer writer = new CharArrayWriter(100);\n try {\n writer.write(call.getSQLString());\n boolean whereWasPrinted = true;\n if (selectCallForExist != null) {\n if (sho...
"protected UrlMapping evalUrlMapping(NutConfig config, Class<?> mainModule, Ioc ioc) throws Exception {\n UrlMapping mapping = createUrlMapping(config);\n if (log.isInfoEnabled())\n log.infof(\"String_Node_Str\", mapping.getClass().getName());\n ViewMaker[] makers = createViewMakers(mainModule, ioc);\n ...
"public void sendEvent(String e) {\n for (String event : myEventQueue.getEventListenerMap().keySet()) {\n if (event.equals(e)) {\n for (EventListener listener : mapEventToEventListnerList.get(event)) {\n listener.actionPerformed(event);\n }\n }\n }\n}\n"
"public void mute() {\n logger.info(\"String_Node_Str\");\n String api_key = HubProperties.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n String app_key = HubProperties.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n String name = HubHost.getLocalName();\n if (\"String_Node_Str\".equal...
"public static EditType getBestValidType(EntityDelta state, DataKind kind, boolean includeSecondary, int exactValue) {\n if (kind.typeColumn == null)\n return null;\n final SparseIntArray typeCount = getTypeFrequencies(state, kind);\n final ArrayList<EditType> validTypes = getValidTypes(state, kind, nul...
"protected Frame getLexicalScope(Frame frame) {\n Object[] args = frame.getArguments();\n if (args.length > 0) {\n return (Frame) frame.getArguments()[0];\n } else {\n return null;\n }\n}\n"
"public static Vector checkAndConvertState(Vector state, InferredPath path) {\n final Vector adjState;\n if (path.isNullPath() && state.getDimensionality() != 4) {\n final double dist = AbstractRoadTrackingFilter.getOr().times(state).getElement(0);\n final PathEdge edge = path.getEdgeForDistance(dis...
"public ExecutionResult execute(Item item) {\n if (GenericWizardServiceFactory.getGenericWizardService().isGenericItem(item)) {\n try {\n GenericConnectionItem connectionItem = (GenericConnectionItem) item;\n GenericConnection connection = (GenericConnection) connectionItem.getConnection...
"public void get_WithNonKeyKey() {\n ArrayList<Integer> key1 = new ArrayList<Integer>();\n key1.add(1);\n key1.add(2);\n LinkedList<Integer> key2 = new LinkedList<Integer>(key1);\n CacheLoader<ArrayList<Integer>, String> loader = new ArrayListCacheLoader();\n Cache<ArrayList<Integer>, String> cache = ...
"private EntityManagerFactoryImpl getEntityManagerFactory(String property) {\n Map<String, Object> props = new HashMap<String, Object>();\n props.put(Constants.PERSISTENCE_UNIT_NAME, pu);\n props.put(PersistenceProperties.KUNDERA_CLIENT_FACTORY, \"String_Node_Str\");\n props.put(PersistenceProperties.KUNDER...
"public void setContainer(Container container) {\n if ((this.container != null) && (this.container instanceof Context))\n ((Context) this.container).removePropertyChangeListener(this);\n Container oldContainer = this.container;\n this.container = container;\n support.firePropertyChange(\"String_Node_...
"public KVDocument build() {\n KVDocument updatedDocument;\n updatedDocument = buildRoot();\n clear();\n return updatedDocument;\n}\n"
"public boolean isConnected() {\n boolean isConnected = false;\n if (mongoClient != null) {\n try {\n mongoClient.getConnectPoint();\n isConnected = true;\n } catch (Exception error) {\n logger.error(\"String_Node_Str\" + error.getMessage(), error);\n }\n }...
"public Move createMove(Invoice invoice) throws AxelorException {\n Move move = null;\n if (invoice != null && invoice.getInvoiceLineList() != null) {\n Journal journal = invoice.getJournal();\n Company company = invoice.getCompany();\n Partner partner = invoice.getPartner();\n Account...
"public IngestFormatOptionProvider getIngestFormatOptionProvider() {\n return new MultiOptionProvider(getIngestFormatOptionProviders().toArray(new IngestFormatOptionProvider[] {}));\n}\n"
"private void timeUpdateDo(long frame) {\n if (!user_drag && PLAYBACK.state.status.get() == PLAYING) {\n long Δt = posLastFrame == 0 ? 0 : (frame - posLastFrame) / 1000000;\n double Δp = Δt / timeTot.get().toMillis();\n posLast += Δp;\n long now = System.currentTimeMillis();\n if (...
"public List<PrimaryKey> getPrimaryKeys(String catalogName, String schemaPattern, String tableName) throws SQLException {\n List<PrimaryKey> pks = new ArrayList<PrimaryKey>();\n ResultSet primaryKeys = null;\n try {\n primaryKeys = ConnectionUtils.getConnectionMetadata(connection).getPrimaryKeys(catalog...
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getType() == GameEvent.EventType.LOST_CONTROL) {\n if (event.getTargetId().equals(source.getSourceId())) {\n this.used = true;\n return false;\n }\n }\n if (event.getType() == GameEvent.EventTy...
"public boolean equals(Object obj) {\n if (!getClass().equals(obj.getClass())) {\n return false;\n } else {\n ClassLoaderReference o = (ClassLoaderReference) obj;\n return name.equals(o.name);\n }\n ClassLoaderReference o = (ClassLoaderReference) obj;\n return name.equals(o.name);\n}...