content stringlengths 40 137k |
|---|
"public void handleFree(DownloadLink downloadLink) throws Exception, PluginException {\n String freepage = downloadLink.getDownloadURL() + \"String_Node_Str\";\n br.getPage(freepage);\n String captchaid = br.getRegex(\"String_Node_Str\").getMatch(0);\n if (captchaid == null)\n throw new PluginExcepti... |
"public void run() {\n boolean eof = false;\n byte[] buffer = new byte[131072];\n while (!eof && !super.killed()) {\n Byte packetId = UnitByte.getByte(in, ptc, this);\n if (packetId == null) {\n if (!Globals.isQuiet()) {\n ptc.printLogMessage(\"String_Node_Str\");\n ... |
"protected void refreshStep(int index) {\n currentPlugin = index;\n if (index < 0) {\n stepWidget.inputViewer.setInput(new ArrayList<WSTransformerVariablesMapping>());\n stepWidget.outputViewer.setInput(new ArrayList<WSTransformerVariablesMapping>());\n return;\n }\n TransformerMainPage... |
"public void sliderTickResult(int time, int result, float x, float y, HitObject hitObject, int repeat) {\n int hitValue = 0;\n switch(result) {\n case HIT_SLIDER30:\n hitValue = 30;\n changeHealth(1f);\n SoundController.playHitSound(hitObject.getEdgeHitSoundType(repeat), hi... |
"private <Result, Body, DeserializeType> Result sendRequestInternal(final IHttpRequest request, final Class<Result> resultClass, final Body serializable, final IProgressCallback<Result> progress, final IStatefulResponseHandler<Result, DeserializeType> handler) throws ClientException {\n final int defaultBufferSize =... |
"public Object get(ServletContext sc, HttpServletRequest req, HttpServletResponse resp, Object refer) {\n Object obj = mirror.born();\n for (int i = 0; i < injs.length; i++) {\n String[] ss = filterParam(req.getParameterValues(names[i]), i);\n if (null == ss)\n continue;\n injs[i].... |
"public void writeTo(OutputStream outputStream) throws IOException {\n Writer writer = new OutputStreamWriter(outputStream, Charset.forName(\"String_Node_Str\"));\n String message = XmlUtils.sourceToXmlString(source);\n writer.write(message);\n writer.flush();\n writer.close();\n}\n"
|
"public Uid update(final PropagationMode propagationMode, final ObjectClass objectClass, final Uid uid, final Set<Attribute> attrs, final OperationOptions options, final Set<String> propagationAttempted) {\n Uid result = null;\n if (propagationMode == PropagationMode.ONE_PHASE ? capabitilies.contains(ConnectorCap... |
"public String uploadFile(String url, String paramName, File fileToUpload) {\n String response = null;\n try {\n httpClient.getParams().setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);\n HttpPost post = new HttpPost(url);\n MultipartEntity entity = new MultipartEntity(... |
"public static synchronized PluginSettings instance(PlatformConfig config) {\n if (ps == null) {\n ps = new PluginSettings();\n if (config != null) {\n ps.bStandalone = config.getProperty(PROP_STANDALONE) != null;\n loggingDir = (String) config.getProperty(PROP_LOGGING_DIR);\n ... |
"public void render(GLRenderer renderer, int flags) {\n RenderProps props = getRenderProps();\n Material faceMat = props.getFaceMaterial();\n if (isSelected()) {\n faceMat = renderer.getSelectionMaterial();\n }\n GL2 gl = renderer.getGL2();\n gl.glPushMatrix();\n Shading shading = props.getS... |
"public IComplexNDArray broadcast(int[] shape) {\n return (IComplexNDArray) super.broadcast(shape);\n}\n"
|
"public void setUp() throws Exception {\n analysis = AnalysisFactory.eINSTANCE.createAnalysis();\n AnalysisContext context = AnalysisFactory.eINSTANCE.createAnalysisContext();\n analysis.setContext(context);\n Package catalog = orgomg.cwm.resource.relational.RelationalFactory.eINSTANCE.createCatalog();\n ... |
"private void copyFilesToFolder(String srcPath, String srcFilePattern, boolean recurse, IFolder desFolder) throws IOException, CoreException {\n Enumeration patterns = null;\n patterns = CorePlugin.getDefault().getBundle().findEntries(srcPath, srcFilePattern, recurse);\n while (patterns.hasMoreElements()) {\n ... |
"public void writeByte(int address, byte b) {\n int addr = maskAddress(address);\n if (addr <= 0x7f && (superChipMode || superChipAutoDetect)) {\n if (!superChipMode) {\n superChipMode = true;\n extraRAM[addr] = b;\n }\n}\n"
|
"public ReturnCode delete(IFile ifile) throws Exception {\n ReturnCode rc = new ReturnCode();\n Resource resource = getFileResource(ifile);\n List<ModelElement> dependencyClients = EObjectHelper.getDependencyClients(ifile);\n if (!dependencyClients.isEmpty()) {\n rc.setOk(false);\n rc.setMessa... |
"public void enable() throws ServiceRegistrationException {\n if (!State.ENABLED.equals(this.stateMachine.getState())) {\n try {\n final Callable<CheckedListenableFuture<Cluster>> transition = Automata.sequenceTransitions(this, State.PENDING, State.AUTHENTICATING, State.STARTING, State.STARTING_NOT... |
"private ZonedDateTime initDateTime(int years, int monthsOfYear, int dayOfMonth, int hoursOfDay, int minutesOfHour, int secondsOfMinute, ZoneId timeZone, boolean next) throws NoSuchValueException {\n ZonedDateTime date = ZonedDateTime.of(LocalDateTime.of(0, 1, 1, 0, 0, 0), timeZone).plusYears(years).plusMonths(month... |
"public IValue resolve(MarkerList markers, IContext context) {\n this.arguments.resolve(markers, context);\n if (this.type == null || !this.type.isResolved()) {\n return this;\n }\n if (this.type.isArrayType()) {\n int len = this.arguments.size();\n int dims = this.type.getArrayDimensio... |
"public RTree<R> delete(Entry<R> entry) {\n return delete(entry, false);\n}\n"
|
"public static File getFile(String fileName) throws IOException {\n return (CorePlugin.getDefault() == null) ? getFileFromClassLoader(fileName) : getFileFromPlugin(CorePlugin.getDefault(), fileName);\n}\n"
|
"public void cross(final PactRecord record1, final PactRecord record2, final Collector out) {\n this.context.increaseInputCounter();\n this.collector.configure(out, this.context);\n final IJsonNode input1 = this.inputSchema1.recordToJson(record1, this.cachedInput1);\n final IJsonNode input2 = this.inputSche... |
"public static DataEngineContext newInstance(int mode, ScriptContext context, IDocArchiveReader reader, IDocArchiveWriter writer, ClassLoader classLoader) throws BirtException {\n DataEngineContext result = new DataEngineContext(mode, context.getSharedScope(), reader, writer, classLoader, context);\n return resul... |
"static public boolean isEqual(String host1, String host2) {\n List<String> host1_ips = new ArrayList<String>();\n List<String> host2_ips = new ArrayList<String>();\n try {\n if (!StringUtils.ok(host1) && !StringUtils.ok(host2))\n return true;\n if (!StringUtils.ok(host1) || !StringUti... |
"public String getGraph() {\n if (graphLink == null) {\n File graphfile;\n try {\n graphfile = generateGraph(method, key, nodeAnnotations, edgeAnnotations);\n graphLink = graphfile.getName();\n } catch (IOException e) {\n logger.error(\"String_Node_Str\" + method... |
"protected final void disconnect() {\n if (this.connection == null)\n throw (new IllegalStateException(\"String_Node_Str\"));\n this.shouldReconnect = true;\n try {\n try {\n if (this.channel != null)\n this.channel.close();\n } finally {\n this.connect... |
"public List<NodeT> getNodes(NodeFilterT filter) throws PlowException, TException {\n return thriftNodeDao.getNodes(filter);\n}\n"
|
"public Collection<UnorderedPair> getRltRowsForLeq(int startFac1, int endFac1, int startFac2, int endFac2, RowType type) {\n List<Factor> leqFactors = rlt.getLeqFactors();\n Map<Integer, List<Integer>> varConsMap = getVarConsMap(leqFactors);\n Set<UnorderedPair> rltRows = new HashSet<UnorderedPair>();\n for... |
"private ElementDefinition processPaths(String indent, StructureDefinitionSnapshotComponent result, StructureDefinitionSnapshotComponent base, StructureDefinitionDifferentialComponent differential, int baseCursor, int diffCursor, int baseLimit, int diffLimit, String url, String profileName, String contextPathSrc, Strin... |
"private void logOutUser() {\n try {\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n PrefsManager.removeUserEmail(sharedPrefs);\n DbAppUser dbUser = new DbAppUser(this);\n dbUser.deleteAppUserByEmail(AppData.defaultUser.getEmail());\n AppDat... |
"protected EClass eStaticClass() {\n return org.talend.dataquality.properties.PropertiesPackage.Literals.TDQ_SOURCE_FILE_ITEM;\n}\n"
|
"public IType resolveType(ITypeVariable typeVar, IType concrete) {\n if (this.superType != null) {\n IType type = this.superType.resolveType(typeVar);\n if (type != null) {\n return type.getConcreteType(concrete);\n }\n }\n for (int i = 0; i < this.interfaceCount; i++) {\n ... |
"public static void main(String[] args) throws Exception {\n String[][] paths = getMSH3();\n for (String[] arrPaths : paths) {\n for (String arrPath : arrPaths) {\n System.out.println(arrPath);\n }\n }\n HL7Message message = new HL7Message();\n Segment seg = new Segment(\"String_... |
"static Object readValue(int[] constantPool, DataInputStream input, ClassLoader classLoader) throws IOException, ClassNotFoundException {\n byte elementValue_tag = input.readByte();\n Object value;\n switch(elementValue_tag) {\n case 'B':\n {\n Offset offset = VM_Class.getLiter... |
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n Bundle args = getArguments();\n return new MaterialDialog.Builder(getActivity()).title(args.getInt(PARAM_TITLE)).content(SpannedFix.fromHtml(getString(args.getInt(PARAM_ERROR_MESSAGE), StringUtils.defaultString(args.getString(PARAM_ADDITIONAL_MESSAGE)))... |
"public org.hl7.fhir.dstu2.model.Observation convertObservation(org.hl7.fhir.dstu3.model.Observation src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Observation tgt = new org.hl7.fhir.dstu2.model.Observation();\n copyDomainResource(src, tgt);\n ... |
"public PortletDD getPortletDefinition() {\n if (portletDefinition == null) {\n load();\n }\n return dd;\n}\n"
|
"private BoundingVolumeHint getBoundingVolumeHint(BoundingVolume bounds) {\n BoundingVolume hint = bounds;\n if (bounds instanceof BoundingBox) {\n BoundingBox box = (BoundingBox) bounds;\n if (box.xExtent > 20 || box.zExtent > 20) {\n hint = new BoundingBox(Vector3f.ZERO, 1, box.yExtent,... |
"public void generateTransferOutputsCode(IOPort outputPort, StringBuffer code) throws IllegalActionException {\n code.append(CodeStream.indent(getCodeGenerator().comment(\"String_Node_Str\" + \"String_Node_Str\")));\n int rate = DFUtilities.getTokenProductionRate(outputPort);\n boolean targetCpp = ((BooleanTok... |
"public void setAggregation(Query query, SeriesDefinition sd) {\n this.query = query;\n this.fSeriesDefi = sd;\n fGrouping = null;\n if (sd != null && sd.getGrouping() != null && sd.getGrouping().isEnabled()) {\n fGrouping = sd.getGrouping().copyInstance();\n }\n if (query.getGrouping() != null... |
"public Fragment getItem(int position) {\n float scale = (position == mFirstPage) ? CarouselConfig.BIG_SCALE : CarouselConfig.SMALL_SCALE;\n position = position % mPages;\n return PageFragment.newInstance(mItems.get(position), CarouselConfig.SMALL_SCALE);\n}\n"
|
"public String showPost(Long postId, String slug, Model model) {\n model.addAttribute(\"String_Node_Str\", postViewFactory.createPostView(service.getPost(postId)));\n return \"String_Node_Str\";\n}\n"
|
"private String assertEntityIsRegistered(final String typeName, final String property, final String value) throws Exception {\n waitFor(1000, new Predicate() {\n\n public void evaluate() throws Exception {\n Referenceable entity = atlasClient.getEntity(typeName, property, value);\n asser... |
"protected void renderLimitOffset(FunctionRenderContext functionRenderContext) {\n StringBuilder sqlSb = getSql(functionRenderContext);\n if (limitIncludesOffset) {\n String limit = functionRenderContext.getArgument(1);\n String offset = functionRenderContext.getArgument(2);\n if (limit.conta... |
"private void createHUD() {\n HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD(\"String_Node_Str\");\n affordanceHUDPanel = new AffordanceHUDPanel();\n affordanceHUD = mainHUD.createComponent(affordanceHUDPanel);\n affordanceHUD.setPreferredLocation(Layout.SOUTH);\n affordanceHUD.addComponentListen... |
"protected void onDraw(Canvas canvas) {\n int startX = getScrollX() + (iconLeftBitmaps == null ? 0 : (iconOuterWidth + iconPadding));\n int endX = getScrollX() + (iconRightBitmaps == null ? getWidth() : getWidth() - iconOuterWidth - iconPadding);\n int lineStartY = getScrollY() + getHeight() - getPaddingBottom... |
"public Cookie[] createCookie(long userId, String oauthToken) {\n Cookie ck1 = new Cookie(COOKIE_ID, String.valueOf(userId));\n Cookie ck2 = new Cookie(COOKIE_OAUTHTOKEN, oauthToken);\n ck1.setMaxAge(COOKIE_EXPIRE);\n ck2.setMaxAge(COOKIE_EXPIRE);\n ck3.setMaxAge(COOKIE_EXPIRE);\n return new Cookie[] ... |
"public boolean isGhostMode() {\n return isGhostMode;\n}\n"
|
"public void addPrimaryClipChangedListener(OnPrimaryClipChangedListener what) {\n synchronized (mPrimaryClipChangedListeners) {\n if (mPrimaryClipChangedListeners.size() == 0) {\n try {\n getService().addPrimaryClipChangedListener(mPrimaryClipChangedServiceListener, mContext.getOpPac... |
"private void watchCloseConfirmations() {\n final TransactionConfidence confidence = storedChannel.close.getConfidence();\n ListenableFuture<Transaction> future = confidence.getDepthFuture(CONFIRMATIONS_FOR_DELETE, Threading.SAME_THREAD);\n Futures.addCallback(future, new FutureCallback<Transaction>() {\n\n ... |
"public Query<T> queryNonPrimary() {\n readPref = ReadPreference.SECONDARY;\n return this;\n}\n"
|
"public boolean accept(File file) {\n String relativePath = FilePathUtil.relativize(base, file);\n return GoLangFileMatch.match(patterns, relativePath).isEmpty();\n}\n"
|
"public Map<String, Object> query(ServerContext context, String fullId, Map<String, String> params) throws ResourceException {\n String queryId = params.get(\"String_Node_Str\");\n boolean formatted = true;\n String[] split = AuditServiceImpl.splitFirstLevel(fullId);\n String type = split[0];\n try {\n ... |
"public String grafanaEndPoint() {\n ApplicationConfigProvider applicationConfig = ApplicationConfigProvider.getInstance();\n JsonObject jsonResponse = new JsonObject();\n jsonResponse.addProperty(PlatformServiceConstants.STATUS, PlatformServiceConstants.SUCCESS);\n jsonResponse.addProperty(\"String_Node_St... |
"public Database[] getImplementedDatabases() {\n return new Database[] { new OracleDatabase(), new PostgresDatabase(), new MSSQLDatabase(), new MySQLDatabase(), new DerbyDatabase(), new HsqlDatabase(), new DB2Database(), new SybaseDatabase(), new H2Database() };\n}\n"
|
"public VolumeVO allocVolume(CreateVolumeCmd cmd) throws ResourceAllocationException {\n Account account = UserContext.current().getCaller();\n String accountName = cmd.getAccountName();\n Long domainId = cmd.getDomainId();\n Account targetAccount = null;\n if ((account == null) || isAdmin(account.getTyp... |
"public void addUninitializedRelatedForm(String formName, String relationName) {\n uninitializedVisibleChildForms.put(formName, relationName);\n}\n"
|
"public void checkDescriptorScale() {\n for (Class type : imageTypes) {\n ImageSingleBand image = GeneralizedImageOps.createSingleBand(type, width, height);\n GImageMiscOps.fillUniform(image, rand, 0, 200);\n DescribeImageDense alg = createAlg(type);\n alg.configure(1, 8, 9);\n alg... |
"private boolean isPartOfTheJRE(final IPackageFragmentRoot packageFragmentRoot) {\n Optional<IJavaProject> optionalJavaProject = getIJavaProjectForPackageFragmentRoot(packageFragmentRoot);\n if (optionalJavaProject.isPresent()) {\n if (jrePackageFragmentRoots.containsEntry(createDependencyInfoForProject(op... |
"public int getRepr(int elemIndex) {\n int parent = parents.get(elemIndex);\n if (parent == elemIndex)\n return elemIndex;\n while (true) {\n int grandparent = parents[parent];\n if (grandparent == parent)\n return parent;\n parents[elemIndex] = grandparent;\n elem... |
"public static List compileColumnExpression(ExpressionParserUtility util, String expression, boolean rowMode) throws BirtException {\n if (expression == null || expression.trim().length() == 0)\n return new ArrayList();\n if (rowMode)\n util.ROW_INDICATOR = ROW_COLUMN_INDICATOR;\n else\n u... |
"List<String> easybDependencies() throws ArtifactResolutionException, ArtifactNotFoundException {\n List<String> dependencies = new ArrayList<String>();\n for (Object each : resolutionResult.getArtifacts()) {\n Artifact artifact = (Artifact) each;\n getLog().info(\"String_Node_Str\" + artifact);\n ... |
"private void startSubmitting() {\n final Timer timer = new Timer(true);\n timer.scheduleAtFixedRate(new TimerTask() {\n public void run() {\n if (!plugin.isEnabled()) {\n timer.cancel();\n return;\n }\n Bukkit.getScheduler().runTask(plugin, ne... |
"public void addEventListener(final String eventName, final LeoObject function) {\n switch(eventName.toLowerCase()) {\n case \"String_Node_Str\":\n {\n this.dispatcher.addEventListener(BombDisarmedEvent.class, new BombDisarmedListener() {\n public void onBombDisarm... |
"private String getResultsLine(final Measurement m) {\n final Object defaultResult = m.get();\n final Map<String, Object> results = m.getAll();\n final StringBuilder sb = new StringBuilder();\n sb.append(Utils.timeToHMS(measurement.getTime()));\n sb.append(delimiter);\n sb.append(m.getIteration() + 1)... |
"private void _commitSave(boolean isNew) throws Exception {\n _updateDisplayedModel();\n xmlModel = new XMLDBModel(_modelToSave.getName());\n xmlModel.setModel(_modelToSave.exportMoML());\n xmlModel.setIsNew(isNew);\n xmlModel.setModelId(id);\n SaveModelManager saveModelManager = new SaveModelManager(... |
"protected Tuple<InteractionResult, Double> interactWithOtherGroups() {\n double currentFoodReserve = getDataModel().getCurrentReservedFood();\n Tuple<InteractionResult, Double> interactionResult = new Tuple<InteractionResult, Double>();\n System.out.println(\"String_Node_Str\");\n System.out.println(this.g... |
"protected void onPostExecute(Boolean success) {\n pDialog.dismiss();\n RashrApp.TOOLBOX.remount(\"String_Node_Str\", \"String_Node_Str\");\n if (success) {\n if (isJobFlash() || isJobRestore()) {\n if (!Common.getBooleanPref(mContext, Const.PREF_NAME, Const.PREF_KEY_HIDE_REBOOT)) {\n ... |
"private boolean isRequired(XmlElementRef ref) {\n if (!is2_2)\n return true;\n try {\n return ref.required();\n } catch (LinkageError e) {\n is2_2 = false;\n throw new Error();\n }\n}\n"
|
"private void checkIsAssignmentForMethodReturn(final VariableDeclarationFragment fragment) {\n if (isVariableDeclarationOfCurrentVariable(fragment) && !isConstructorCall(fragment.getInitializer())) {\n localVariableKind = Kind.RETURN;\n }\n}\n"
|
"private static Set<Var> addGlobalImports(Block block, HierarchicalSet<Var> visible, boolean updateLists, List<Set<Var>> neededSets) {\n Set<Var> addedGlobals = new HashSet<Var>();\n for (Set<Var> neededSet : neededSets) {\n for (Var var : neededSet) {\n if (visible.contains(var)) {\n ... |
"public void onClick(View view) {\n if (accountCategory.equals(\"String_Node_Str\"))\n accountCategory = tempAccountCategory;\n }\n SharedPreferences.Editor accountInfo = getSharedPreferences(accountCategory, MODE_PRIVATE).edit();\n accountInfo.putString(accountCategory, accountCategory);\n accoun... |
"private void notifyPostedLocked(NotificationRecord n) {\n final StatusBarNotification sbn = n.sbn.clone();\n for (final NotificationListenerInfo info : mListeners) {\n mHandler.post(new Runnable() {\n public void run() {\n info.notifyPostedIfUserMatch(sbn);\n }\n ... |
"public ChannelFuture answer(HttpResponse output, MessageEvent e, final boolean close, final StartStopListenerDelegate startStopListenerDelegate) throws IOException {\n ChannelFuture future = null;\n long CLoverride = -2;\n StringBuilder response = new StringBuilder();\n DLNAResource dlna = null;\n boole... |
"public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n menu.add(0, MENU_OPEN_AUDIO, 0, R.string.open_audio).setIcon(R.drawable.music001a).setShortcut('0', 'o');\n menu.add(0, MENU_OPEN_VIDEO, 0, R.string.open_video).setIcon(R.drawable.video002a).setShortcut('0', 'o');\n Intent... |
"public void test() throws TimeoutException, InterruptedException, IOException {\n ApplicationManager appManager = deployApplication(HelloWorld.class);\n FlowManager flowManager = appManager.getFlowManager(\"String_Node_Str\").start();\n StreamManager streamManager = getStreamManager(\"String_Node_Str\");\n ... |
"public void testAndroidSplitTransitionWithInvalidCpu() throws Exception {\n scratch.file(\"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... |
"public void updateUpgrades() {\n IInventory inv = this.getHost().getInventory();\n this.upgrade_count.clear();\n for (int slot = 0; slot < inv.getSizeInventory(); slot++) {\n if (inv.getStackInSlot(slot) != null && inv.getStackInSlot(slot).getItem() instanceof ITurretUpgrade) {\n final List<... |
"public boolean checkInPasteType() {\n if (WorkbenchClipboard.getWorkbenchClipboard().getConcepts().size() <= 0 && WorkbenchClipboard.getWorkbenchClipboard().getParticles().size() <= 0)\n return false;\n else\n return true;\n}\n"
|
"protected void reduce(IntWritable key, Iterable<BinningInfoWritable> values, Context context) throws IOException, InterruptedException {\n long start = System.currentTimeMillis();\n double sum = 0d;\n double squaredSum = 0d;\n double tripleSum = 0d;\n double quarticSum = 0d;\n long count = 0L, missin... |
"private static void printFinishStatistics(Meter errors, StripedTimeSeries<Long> sts, StripedHistogram sh, String testName) {\n File file = new File(testName + \"String_Node_Str\");\n try (PrintWriter out = new PrintWriter(file)) {\n out.println(\"String_Node_Str\" + errors.getCount());\n long milli... |
"public void SetCMLocationFromPropertyTable(boolean updateView) {\n Vec3 cmLocationToFill = body.getMassCenter();\n myCMSphereSourceVTK.SetCenter(cmLocationToFill.get(0), cmLocationToFill.get(1), cmLocationToFill.get(2));\n if (updateView) {\n super.Modified();\n ViewDB.getInstance().repaintAll()... |
"private void updateAnimation() {\n final long millisSoFar = currentAnimationTimeMillis() - mAnimationStartTime;\n final long millisLeft = mAnimationDuration - millisSoFar;\n final int totalDeltaX = mAnimatingDeltaXStart - mAnimatingDeltaXEnd;\n final boolean goingRight = totalDeltaX < 0;\n if (DBG)\n ... |
"public <T> T execute(Callable<T> c) throws InterruptedException, IOException {\n Backoff backoff = backoffSupplier.get();\n while (true) {\n try {\n return c.call();\n } catch (PassThroughException e) {\n throw (StatusRuntimeException) e.getCause();\n } catch (RetryExce... |
"public Collection<String> getDirectories() throws IOException {\n List<String> results = new ArrayList<String>();\n if (archive != null) {\n for (File f : archive.listFiles()) {\n if (f.isDirectory() && isEntryValid(f)) {\n results.add(f.getName());\n }\n }\n ... |
"private void checkAdd(Attribute newItem, Attribute other, boolean replace) {\n if (newItem.getOwner() != null)\n throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, \"String_Node_Str\" + newItem.toString() + \"String_Node_Str\", getLocator());\n int j = getAttributeIndex(0, newItem.getTagName());\n... |
"public static TransportMessage sendBlocking(TransportMessage message) throws TransportException {\n if (message.isCacheable()) {\n CACHE().cache(message);\n }\n Transporter transporter = message.createTransporter();\n transporter.setMessage(message);\n transporter.send();\n if (message.isCache... |
"public static <T> BooleanBuilder createPredicateByAnd(PathBuilder<T> entity, Map<String, Object> searchArgs) {\n BooleanBuilder predicate = new BooleanBuilder();\n if (searchArgs == null || searchArgs.isEmpty()) {\n return predicate;\n }\n for (Entry<String, Object> entry : searchArgs.entrySet()) {\... |
"protected boolean isSameName(ItemRecord itemRecord, IRepositoryViewObject repObject) {\n final Property property = itemRecord.getProperty();\n if ((property.getLabel() != null && property.getLabel().equalsIgnoreCase(repObject.getLabel()))) {\n return true;\n }\n return false;\n}\n"
|
"public void exportItems(File destination, Collection<Item> items, boolean exportAllVersions, IProgressMonitor progressMonitor) throws Exception {\n if (items == null) {\n items = new ArrayList<Item>();\n }\n Collection<Item> otherVersions = new ArrayList<Item>();\n if (exportAllVersions) {\n ... |
"public VirtualRouter stopRouter(final long routerId, final boolean forced) throws ResourceUnavailableException, ConcurrentOperationException {\n final CallContext context = CallContext.current();\n final Account account = context.getCallingAccount();\n DomainRouterVO router = _routerDao.findById(routerId);\n ... |
"private void handleJobFailed(boolean reportAsJobless) {\n switch(state) {\n case INIT_CARRY_JOB:\n case GOING_TO_OFFER:\n reoffer();\n case TAKING:\n if (targetMovableType != null) {\n workerRequester.workerCreationRequestFailed(targetMovableType, super.getP... |
"public void start() {\n logger.info(\"String_Node_Str\");\n startTime = System.currentTimeMillis();\n fetchedRows = 0;\n currentlyBestAxioms = new ArrayList<EvaluatedAxiom>();\n DataRange existingRange = reasoner.getRange(propertyToDescribe);\n logger.debug(\"String_Node_Str\" + existingRange);\n ... |
"public void onClick(View v) {\n String[] permissions = { Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE };\n new PermissionHandler().checkPermission((Activity) getContext(), permissions, new PermissionHandler.OnPermissionResponse() {\n public void onPermissionGranted... |
"private void initialize() {\n LOGGER.debug(\"String_Node_Str\");\n try {\n tableProfil.setEditable(true);\n colProfilID.setCellValueFactory(new PropertyValueFactory<Profile, Integer>(\"String_Node_Str\"));\n colProfilName.setCellValueFactory(new PropertyValueFactory<Profile, String>(\"String... |
"public Object executeTransform(final Object input) {\n final OrientVertex vertex;\n if (input instanceof OIdentifiable)\n vertex = graph.getVertex(input);\n else if (input instanceof OrientVertex)\n vertex = (OrientVertex) input;\n else\n throw new OTransformException(getName() + \"Str... |
"private void initialiseEditButton() {\n editButton = new Button();\n editButton.setText(EDIT_BTN_TXT);\n WeakReference<CommentCard> selfRef = new WeakReference<CommentCard>(this);\n editButton.setOnMousePressed(e -> {\n selfRef.get().handleEditButtonPressed();\n });\n}\n"
|
"public void prepareAppTransition(int transit) {\n if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, \"String_Node_Str\")) {\n throw new SecurityException(\"String_Node_Str\");\n }\n synchronized (mWindowMap) {\n if (DEBUG_APP_TRANSITIONS)\n Slog.v(TAG, \"Strin... |
"public final ListMultimap<Attribute, Dependency> dependentNodeMap(TargetAndConfiguration node, BuildConfiguration hostConfig, Aspect aspect, Set<ConfigMatchingProvider> configConditions) throws EvalException, InterruptedException {\n Target target = node.getTarget();\n BuildConfiguration config = node.getConfigu... |
"public boolean equals(Object o) {\n if (!(o instanceof Pair)) {\n return false;\n }\n Pair<?, ?> p = (Pair<?, ?>) o;\n return Objects.equals(p.first, first) && Objects.equals(p.second, second);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.