content
stringlengths
40
137k
"private void importProfile() {\n String directory = Config.get(\"String_Node_Str\");\n JFileChooser fc = new JFileChooser(directory);\n fc.setFileFilter(new FileFilter() {\n public boolean accept(File f) {\n return f.isDirectory() || f.getName().toLowerCase().endsWith(CONFIG_EXTENSION) || f....
"public void setContactPicture(Bitmap contactPicture) {\n Pair<Integer, Integer> size = getSmallSize(contactPicture);\n this.contactPicture = Bitmap.createScaledBitmap(contactPicture, size.first, size.second, true);\n}\n"
"public void testEscapeWriting(String input) {\n System.out.println(\"String_Node_Str\" + input + \"String_Node_Str\");\n int i = 0;\n for (char escape : new char[] { '\\'', '|' }) {\n CsvWriterSettings settings = new CsvWriterSettings();\n settings.setQuoteAllFields(true);\n settings.getF...
"public DTWorkerParams doCompute(WorkerContext<DTMasterParams, DTWorkerParams> context) {\n if (context.isFirstIteration()) {\n return new DTWorkerParams();\n }\n DTMasterParams lastMasterResult = context.getLastMasterResult();\n final List<TreeNode> trees = lastMasterResult.getTrees();\n final Ma...
"protected CountedDataDistribution<VehicleStateDistribution<O>> internalPriorPrediction(VehicleStateDistribution<O> predictedState, O obs) {\n final CountedDataDistribution<VehicleStateDistribution<O>> childDist = new CountedDataDistribution<VehicleStateDistribution<O>>(true);\n final PathStateMixtureDensityModel...
"public void actionPerformed(ActionEvent e) {\n dialog.dispose();\n File oldSaveFile = overwriteFile;\n File oldSaveFileParent = overwriteFile.getParentFile() != null ? overwriteFile.getParentFile() : overwriteFile;\n File newSaveParent = FileChooser.getInputDirectory(GuiUtils.getMainFrame(), I18n.tr(\"Stri...
"protected void onHandleIntent(Intent intent) {\n ArrayList<ChatMessage> unsentMsg = ChatMessageManager.getAllUnsentUpdated(this);\n if (unsentMsg.size() == 0)\n return;\n RSASigner signer = new RSASigner(getPrivateKeyFromSharedPrefs());\n int numberOfAttempts = 0;\n while (numberOfAttempts < 5) {...
"private final int startActivityLocked(IApplicationThread caller, Intent intent, String resolvedType, Uri[] grantedUriPermissions, int grantedMode, ActivityInfo aInfo, IBinder resultTo, String resultWho, int requestCode, int callingPid, int callingUid, boolean onlyIfNeeded, boolean componentSpecified) {\n Log.i(TAG,...
"public void execute() throws ResourceAllocationException {\n try {\n VirtualMachineTemplate template = _templateService.registerTemplate(this);\n if (template != null) {\n ListResponse<TemplateResponse> response = new ListResponse<TemplateResponse>();\n List<TemplateResponse> tem...
"public AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws AuthException {\n AuthStatus status = AuthStatus.SEND_FAILURE;\n try {\n HttpAuthenticationMechanism authMech = getModulePropertiesUtils().getHttpAuthenticationMechanism();\n HttpMessage...
"private void checkInitialization(Object proxy) {\n if (proxy instanceof MProxy) {\n MProxy mProxy = (MProxy) proxy;\n CMap cmap = node.concurrentMapManager.getMap(mProxy.getLongName());\n if (!cmap.isMapForQueue() && !cmap.initialized) {\n synchronized (cmap.getInitLock()) {\n ...
"public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n if (!isAdded()) {\n return;\n }\n if (!mUserLearnedDrawer) {\n mUserLearnedDrawer = true;\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getActivity());\n sp.edit().putBoo...
"public void read(String expectedRootTag, String path) throws GeneralException {\n try {\n StreamSource src = new StreamSource(new File(path));\n NodeInfo doc = null;\n try {\n doc = TinyBuilder.build(src, new AllElementStripper(), config);\n } catch (XPathException e) {\n ...
"public void intercept(RequestFacade request) {\n request.addHeader(\"String_Node_Str\", \"String_Node_Str\");\n request.addHeader(\"String_Node_Str\", \"String_Node_Str\");\n request.addHeader(\"String_Node_Str\", \"String_Node_Str\");\n SharedPreferences pref = PreferenceManager.getDefaultSharedPreference...
"public List<Study> getStudies() {\n return studyDao.getStudies();\n}\n"
"public Path generateRootPath() {\n final org.kie.commons.java.nio.file.Path _path = fs.getPath(\"String_Node_Str\");\n return paths.convert(_path, false);\n}\n"
"protected Descriptor buildDescriptor(PersistenceContext app, String persistenceUnit, ClassDescriptor descriptor, String baseUri, String version) {\n Descriptor returnDescriptor = new Descriptor();\n String name = descriptor.getAlias();\n returnDescriptor.setName(name);\n String version = app.getVersion();\...
"private void loadConnections(ProcessType process, Hashtable<String, Node> nodesHashtable) {\n EList listParamType;\n EList connecList;\n ConnectionType cType;\n connecList = process.getConnection();\n Connection connec;\n Node source, target;\n List<String> connectionsProblems = new ArrayList<Stri...
"private static Date toDate(String source) throws BirtException {\n try {\n return toDateISO8601(source, null);\n } catch (BirtException e) {\n try {\n return toDate(source, JRE_DEFAULT_LOCALE);\n } catch (BirtException use) {\n return toDate(source, DEFAULT_LOCALE);\n ...
"public static Object invokeOmpSsMethod(String ompssBinary, Object target, Object[] values, Stream[] streams, String[] prefixes, File taskSandboxWorkingDir) {\n Object retValue = null;\n try {\n retValue = GenericInvoker.invokeOmpSsMethod(ompssBinary, values, streams, prefixes, taskSandboxWorkingDir, Syste...
"private void __renderReport(OutputStream out) throws Exception {\n HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();\n Locale locale = (Locale) this.options.getOption(InputOptions.OPT_LOCALE);\n Boolean isMasterPageContent = (Boolean) this.options.getOption(InputOptions.OPT_IS_MASTER...
"public int rendezvous(int where) {\n return Rendezvous.rendezvous(where);\n}\n"
"public void checkScrollProcotol() {\n WaitUtil.implicitlyWait(5);\n LogUtil.printCurrentMethodName();\n mDriver.findElement(By.className(\"String_Node_Str\"));\n By by = By.className(\"String_Node_Str\");\n ElementUtil.swipeControl(by, com.cmic.GoAppiumTest.helper.Heading.DOWN);\n}\n"
"protected void reduceProblematicPoints(DataView view, short[] bankMap) {\n int width = view.getWidth();\n int height = view.getHeight();\n for (int localY = 0; localY < height; localY++) {\n for (int localX = 0; localX < width; localX++) {\n int index = localX + localY * width;\n ...
"public final byte[][] serverReportError(Command cmd, int serviceErrorCode) {\n java.nio.ByteBuffer buff = java.nio.ByteBuffer.allocate(4);\n switch(cmd) {\n case ReadRequest:\n cmd = Command.ReadResponse;\n break;\n case WriteRequest:\n cmd = Command.WriteResponse;\...
"public static Card getCommanderCard(String commanderName, UUID ownerId) {\n Card commander = null;\n if (commanderName != null) {\n switch(commanderName) {\n case \"String_Node_Str\":\n commander = new DefaultCommander(ownerId, commanderName, \"String_Node_Str\");\n ...
"public void makeNegativeExamplesFromNearbyClasses(SortedSet<String> positiveSet, int sparqlResultLimit) {\n SortedSet<String> classes = new TreeSet<String>();\n Iterator<String> instanceIter = positiveSet.iterator();\n while (classes.isEmpty() && instanceIter.hasNext()) {\n classes.addAll(sparqltasks.g...
"public void update(AbstractArea area) throws BirtException {\n area.setAllocatedPosition(currentIP, currentBP);\n currentIP += aWidth;\n if (currentIP > maxAvaWidth) {\n setWidth(currentIP);\n }\n int height = area.getAllocatedHeight();\n if (height > getHeight()) {\n this.height = heig...
"public void postConstruct() {\n for (Config config : configs.getConfig()) {\n currentConfig = config;\n try {\n final NetworkConfig networkConfig = currentConfig.getNetworkConfig();\n if (networkConfig == null) {\n createFromScratch();\n }\n n...
"static boolean isFinished(String harvestName, TestEnvironmentController testEnvironmentController) {\n try {\n String output = testEnvironmentController.runCommand(TestEnvironment.JOB_ADMIN_SERVER, \"String_Node_Str\" + testEnvironmentController.ENV.getTESTX() + \"String_Node_Str\", new int[] { 0, 1 });\n ...
"private boolean allParentTerminated(List<ApplicationContext> parentContexts) {\n boolean parentsTerminated = false;\n for (ApplicationContext context1 : parentContexts) {\n if (this.inactiveMonitorsList.contains(context1.getId())) {\n log.info(\"String_Node_Str\" + context1.getId() + \"String_N...
"public void execute(CommandSender sender, String[] args) {\n MessagesConfig messages = Messages.getInstance();\n PluginConfig config = Settings.getConfig();\n Player player = (Player) sender;\n if (args.length < 1) {\n player.sendMessage(messages.generalNoTagGiven);\n return;\n }\n Guil...
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n DBObject content = context.getContent();\n if (content == null) {\n content = new BasicDBObject();\n }\n if (content instanceof BasicDBList) {\n ResponseHelper.endExchangeWithMessage(exchange, ...
"public void setActiveEditor(IAction action, IEditorPart targetEditor) {\n if (targetEditor != null) {\n this.editor = targetEditor;\n }\n}\n"
"public void updatePowerState(DisplayManagerInternal.DisplayPowerRequest request) {\n if (setScreenAutoBrightnessAdjustment(request.screenAutoBrightnessAdjustment) | setLightSensorEnabled(request.wantLightSensorEnabled())) {\n updateAutoBrightness(false);\n }\n}\n"
"private void trackUploadAnalytics() {\n Map<String, Object> properties = new HashMap<>();\n properties.put(\"String_Node_Str\", AnalyticsUtils.getWordCount(mPost.getContent()));\n if (hasGallery()) {\n properties.put(\"String_Node_Str\", true);\n }\n if (mHasImage) {\n properties.put(\"Str...
"private static ComponentDefinition parseComponentDefinitions(SBOLDocument SBOLDoc, TopLevelDocument<QName> topLevel, Map<URI, NestedDocument<QName>> nested) {\n String displayId = null;\n String name = null;\n String description = null;\n URI persistentIdentity = null;\n URI structure = null;\n Strin...
"protected String printString(Object value) {\n if ((value == null) || (value == Helper.getNullWrapper())) {\n return \"String_Node_Str\";\n }\n if (value instanceof String) {\n return \"String_Node_Str\" + value + \"String_Node_Str\";\n }\n if (value instanceof Character) {\n return...
"private void drawXLabels() {\n if (!mDrawXLabels)\n return;\n mXLabelPaint.setTypeface(mXLabels.getTypeface());\n mXLabelPaint.setTextSize(mXLabels.getTextSize());\n mXLabelPaint.setColor(mXLabels.getTextColor());\n float sliceangle = getSliceAngle();\n float factor = getFactor();\n PointF ...
"public byte obtainPayloadTypeNumber(MediaFormat format) throws IllegalStateException {\n MediaType mediaType = format.getMediaType();\n String encoding = format.getEncoding();\n double clockRate = format.getClockRate();\n int channels = MediaType.AUDIO.equals(mediaType) ? ((AudioMediaFormat) format).getCha...
"public boolean execute(ExecutionContext executionContext) throws ProcessExecutionException, InterruptedException {\n try {\n SingleMassArgs args = (SingleMassArgs) this.getProcessArgs();\n log.info(\"String_Node_Str\" + args.getConfig().getAbsolutePath());\n log.debug(\"String_Node_Str\");\n ...
"private void moveEdgesToLeader(Node leader, List<Node> clique, Transaction tx) {\n for (Node n : clique) {\n logger.fine(\"String_Node_Str\" + n.getProperty(NodeProperties.IRI));\n int edgesMoved = 0;\n Iterable<Relationship> rels = n.getRelationships();\n for (Relationship rel : rels) {...
"public void mouseEntered0(E event) {\n if (event == null)\n return;\n List<GlimpseTargetStack> oldHovered = clearHovered();\n getContainingTargets(event);\n Set<GlimpseTargetStack> newHovered = getHovered();\n notifyMouseEnteredExited(event, oldHovered, newHovered);\n}\n"
"private void inplaceRound(MathContext mc) {\n int mcPrecision = mc.getPrecision();\n if (approxPrecision() - mcPrecision < 0 || mcPrecision == 0) {\n return;\n }\n int discardedPrecision = precision() - mcPrecision;\n if ((discardedPrecision <= 0)) {\n return;\n }\n if (this.bitLengt...
"void removeConnectionLocked(ConnectionRecord c, ProcessRecord skipApp, ActivityRecord skipAct) {\n IBinder binder = c.conn.asBinder();\n AppBindRecord b = c.binding;\n ServiceRecord s = b.service;\n ArrayList<ConnectionRecord> clist = s.connections.get(binder);\n if (clist != null) {\n clist.remo...
"protected boolean isAccessWith(Connection dp) {\n if (dataprovider == null) {\n dataprovider = dp;\n return true;\n }\n if (ProxyRepositoryViewObject.areSame(dataprovider, dp)) {\n return true;\n }\n return false;\n}\n"
"private void load() {\n lastUpdate = System.currentTimeMillis();\n setProgressBarIndeterminateVisibility(true);\n if (realtimeProvider != null)\n realtimeProvider.Stop();\n if (deviProvider != null)\n deviProvider.Stop();\n realtimeList.clear();\n realtimeList.notifyDataSetChanged();\n ...
"public void fire() throws IllegalActionException {\n super.fire();\n Director director = getDirector();\n if (director == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n try {\n for (TypedIOPort port : inputPortList()) {\n _inputTokens.put(port.getNa...
"public String getContext() {\n return Converters.getElementToIdConverter().apply(context);\n}\n"
"public static void main(String[] args) throws IOException, StructureException {\n String pdbID = \"String_Node_Str\";\n FileParsingParameters params = new FileParsingParameters();\n params.setParseSecStruc(true);\n AtomCache cache = new AtomCache();\n cache.setFileParsingParams(params);\n cache.setUs...
"protected void writeMap(DataOutputStream out, MapDesign map) throws IOException {\n int ruleCount = map.getRuleCount();\n IOUtil.writeInt(out, ruleCount);\n for (int i = 0; i < ruleCount; i++) {\n MapRuleDesign rule = map.getRule(i);\n IOUtil.writeString(out, rule.getTestExpression());\n ...
"public static byte[] encodeBytesToBytes(byte[] source, int off, int len, int options) throws java.io.IOException {\n if (source == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (off < 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + off);\n }\n if (...
"protected boolean handleMove() {\n if (isCreating || SessionHandleAdapter.getInstance().getReportDesignHandle() instanceof LibraryHandle) {\n return true;\n }\n boolean validateTrue = false;\n updateTargetUnderMouse();\n if (getTargetEditPart() != null) {\n validateTrue = handleValidatePal...
"private void showAlert() {\n int[] pickIds = { R.id.attach, R.id.cancel };\n int[] normalIds = { R.id.gallery, R.id.share, R.id.discard };\n int[] alwaysOnIds = { R.id.play };\n int[] hideIds = pickIds;\n int[] connectIds = normalIds;\n if (mIsVideoCaptureIntent) {\n hideIds = normalIds;\n ...
"private SuggestedWordInfo createWordInfo(final String s) {\n return new SuggestedWordInfo(s, 100, SuggestedWordInfo.KIND_TYPED, null, SuggestedWordInfo.NOT_AN_INDEX, new Random().nextInt(1000000));\n}\n"
"public static byte[] getMapBytes(Object val) {\n ScriptBuilder sb = null;\n try {\n sb = new ScriptBuilder();\n Map<String, Object> map = (Map) val;\n sb.add(Type.MapType.getValue());\n sb.add(Helper.BigIntToNeoBytes(BigInteger.valueOf(map.size())));\n for (Map.Entry e : map.en...
"private JScrollPane initializePanel() {\n JPanel mainPanel = new JPanel();\n JPanel leftText = new JPanel();\n JPanel rightInput = new JPanel();\n int size = Array.getLength(array);\n mainPanel.setLayout(new BorderLayout(15, 15));\n leftText.setLayout(new GridLayout(size, 1));\n rightInput.setLayo...
"public void T_filter_4() throws IOException {\n byte[] data = new byte[10];\n for (int i = 0; i < 10; i++) {\n data[i] = (byte) (i % 2);\n }\n SequentialBooleanCellIndex index = new SequentialBooleanCellIndex(data);\n boolean[] result = index.filter(new NullFilter(ColumnType.BOOLEAN), new boolean...
"private void findCycleFree(MultiMap<String, String> candidates, Set<String> visited, Set<String> toRemove, MultiMap<String, String> newCandidates, Deque<String> callStack, String curr) {\n List<String> callers = candidates.get(curr);\n if (callers == null || callers.size() == 0) {\n return;\n }\n if...
"private void parseInputParameters(final AbstractPipelineInput input) throws IOException {\n ditaDir = new File(input.getAttribute(ANT_INVOKER_EXT_PARAM_DITADIR));\n if (input.getAttribute(ANT_INVOKER_PARAM_DITAVAL) != null) {\n ditavalFile = new File(input.getAttribute(ANT_INVOKER_PARAM_DITAVAL));\n }\...
"private void init() {\n lblKeys = new javax.swing.JLabel();\n scrollPane1 = new javax.swing.JScrollPane();\n txtKeys = new javax.swing.JTextArea();\n lblRecur = new javax.swing.JLabel();\n sliRecur = new javax.swing.JSlider();\n lblKeyserver = new javax.swing.JLabel();\n txtKeyserver = new javax.s...
"public void onTransportDisconnected(String info) {\n for (SdlSession session : listenerList) {\n session.onTransportDisconnected(info);\n }\n if (cachedMultiConfig != null) {\n if (cachedMultiConfig.getService() != null) {\n synchronized (TRANSPORT_REFERENCE_LOCK) {\n i...
"public int[] getFieldIndexes(String[] headers) {\n if (headers == null) {\n return null;\n }\n headers = ArgumentUtils.normalize(headers);\n List<String> selection = this.get();\n ArgumentUtils.normalize(selection);\n String[] chosenFields = selection.toArray(new String[selection.size()]);\n ...
"private PackageParser.Package scanPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode) {\n File scanFile = new File(pkg.mScanPath);\n if (scanFile == null || pkg.applicationInfo.sourceDir == null || pkg.applicationInfo.publicSourceDir == null) {\n Slog.w(TAG, \"String_Node_Str\");\n m...
"private boolean generateSimulatedImage(final int x0, final int y0, final int w, final int h, final OverlapPercentage tileOverlapPercentage, final double[][] gamma0ReferenceArea, final double[][] sigma0ReferenceArea) {\n try {\n final int ymin = Math.max(y0 - (int) (h * tileOverlapPercentage.tileOverlapUp), 0...
"public void copyReferences() {\n final Set<Map.Entry<EObject, EObject>> entrySetCopy = new HashSet<Map.Entry<EObject, EObject>>(entrySet());\n for (final Map.Entry<EObject, EObject> entry : entrySetCopy) {\n final EObject eObject = entry.getKey();\n final EObject copyEObject = entry.getValue();\n ...
"private void tieValue(ELContext elCtx, Object base, Object propName, Object value, boolean allownotify, ReferenceBinding refBinding) {\n final BindELContext ctx = (BindELContext) ((EvaluationContext) elCtx).getELContext();\n if (ctx.ignoreTracker())\n return;\n final Binding binding = ctx.getBinding();...
"public boolean apply(Game game, Ability source) {\n for (Permanent permanent : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {\n permanent.moveToZone(Zone.HAND, source.getSourceId(), game, true);\n }\n for (UUID playerId : game.getState().getPl...
"public void setRiderThreshold(final String identifier, final int thresholdPower) {\n synchronized (_riders) {\n Rider rider = getRider(identifier);\n rider.setThresholdPower(thresholdPower);\n reapplyRiderLoad(identifier);\n _workoutPublisher.publishEvent(new IEvent<IWorkoutListener>() {...
"protected static boolean next(HRegion region, final ThemisServerScanner s, List<Result> results, int limit) throws IOException {\n List<KeyValue> values = new ArrayList<KeyValue>();\n for (int i = 0; i < limit; ) {\n try {\n boolean moreRows = s.next(values, SchemaMetrics.METRIC_NEXTSIZE);\n ...
"public void setPrefix(String prefix, String worldName) {\n this.node.set(formatPath(worldName, \"String_Node_Str\"), prefix);\n this.save();\n}\n"
"void reserve(int minBuffer) throws SQLException {\n if (reserved < minBuffer) {\n int pageSize = store.getPageSize();\n int capacityPerPage = PageStreamData.getCapacity(pageSize);\n int pages = PageStreamTrunk.getPagesAddressed(pageSize);\n int pagesToAllocate = pages;\n int total...
"public boolean performAccessibilityAction(int accessibilityWindowId, long accessibilityNodeId, int action, Bundle arguments, int interactionId, IAccessibilityInteractionConnectionCallback callback, long interrogatingTid) throws RemoteException {\n final int resolvedWindowId;\n IAccessibilityInteractionConnection...
"protected URL proxyHttpURL(String scheme, String serverName, int serverPort, String uri) throws MalformedURLException {\n HttpServletRequest request = threadLocal.get();\n return getForwardingUrl(scheme, serverName, serverPort, uri, request.getHeader(\"String_Node_Str\"));\n}\n"
"private void unread(int c) throws IOException {\n if (c == '\\t') {\n _column -= _lastTab;\n } else if (c == '\\n') {\n } else\n _column--;\n _reader.unread(c);\n}\n"
"protected IStatus run(IProgressMonitor monitor) {\n TacitFormComposite.setConsoleViewInFocus();\n List<File> selectedFiles = new ArrayList<File>();\n TacitFormComposite.updateStatusMessage(getViewSite(), null, null, form);\n monitor.beginTask(\"String_Node_Str\", inputFiles.size() + 20);\n try {\n ...
"public static boolean isServerAlive(String host, int port) {\n Socket socket = null;\n int i = 0;\n while (i++ < RETRY_COUNT) {\n try {\n socket = new Socket(host, port);\n break;\n } catch (IOException e) {\n try {\n Thread.sleep(1000);\n ...
"public void testDecode() throws Exception {\n TaipProtocolDecoder decoder = new TaipProtocolDecoder(new TaipProtocol());\n verifyPosition(decoder, text(\"String_Node_Str\"));\n verifyPosition(decoder, text(\"String_Node_Str\"));\n verifyPosition(decoder, text(\"String_Node_Str\"));\n verifyPosition(deco...
"public void resetForTest() {\n dataSourceDesign = null;\n dataSetDesign = null;\n cacheOption = DataEngineContext.CACHE_USE_DEFAULT;\n alwaysCacheRowCount = 0;\n if (this.cacheMapManager != null) {\n this.cacheMapManager.resetForTest();\n }\n}\n"
"public void initialize() throws IllegalActionException {\n super.initialize();\n Runnable doDisplay = new Runnable() {\n public void run() {\n _createOrShowWindow();\n }\n }\n if (_frame != null) {\n _frame.setVisible(true);\n _frame.toFront();\n }\n}\n"
"public void disconnect(IProgressMonitor monitor) throws CoreException {\n CloudFoundryPlugin.getCallback().disconnecting(getCloudFoundryServer());\n Server server = (Server) getServer();\n server.setServerState(IServer.STATE_STOPPING);\n stopRefreshModules();\n CloudFoundryServer cloudServer = getCloudF...
"public void run(final SystemOutputStore systemAnswerStore, final AnnotationStore goldAnswerStore, final Set<Symbol> documentsToScore, final ScoringConfiguration scoringConfiguration, final File baseOutputDir) throws IOException {\n final Map<KBPScoringObserver<TypeRoleFillerRealis>, File> scorerToOutputDir = makeSc...
"public Bundle installBundle(String location) throws BundleException {\n synchronized (this.updateMonitor) {\n return null;\n }\n}\n"
"protected void decorate() {\n for (int i = WIDTH + 1; i < LENGTH - WIDTH - 1; i++) {\n if (map[i] == Terrain.EMPTY) {\n float c = 0.05f;\n if (map[i + 1] == Terrain.WALL && map[i + WIDTH] == Terrain.WALL) {\n c += 0.2f;\n }\n if (map[i - 1] == Terrai...
"private boolean equalsIgnoreOrder(ConstructorDef<?> def) {\n if (getArgs().length != def.getArgs().length) {\n return false;\n }\n for (int i = 0; i < getArgs().length; i++) {\n boolean found = false;\n for (int j = 0; j < def.getArgs().length; j++) {\n if (getArgs()[i].getName...
"public void update() {\n _defaultTexture.setSize(getSize());\n Vector2f mousePos = new Vector2f(Mouse.getX(), Display.getHeight() - Mouse.getY());\n if (intersects(mousePos)) {\n if (!_clickSoundPlayed) {\n AudioManager.getInstance().getAudio(\"String_Node_Str\").playAsSoundEffect(1.0f, 0.5f...
"protected void throwIfThisIsNotNew() {\n if (!this.isNew()) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n }\n}\n"
"public static void main(String[] args) {\n Config.overwrite(\"String_Node_Str\", \"String_Node_Str\");\n Config.overwrite(\"String_Node_Str\", \"String_Node_Str\");\n int times = 1;\n Metric greedy = new Routing(new Greedy());\n Metric lookahead = new Routing(new LookaheadSimple());\n Metric[] metric...
"private List<Issue> getIssuesV104(String projectKey, String queryId) throws IOException, AuthenticationException {\n WebConnector c = new WebConnector();\n List<Issue> allTasks = new ArrayList<Issue>();\n final int FIRST_REDMINE_PAGE = 1;\n int pageNum = FIRST_REDMINE_PAGE;\n StringBuffer firstPage = nu...
"public static int getVisibleFrameHeight(Activity activity) {\n Rect rect = new Rect();\n Window window = activity.getWindow();\n window.getDecorView().getWindowVisibleDisplayFrame(rect);\n return rect.bottom;\n}\n"
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(source.getSourceId());\n if (permanent != null) {\n if (notCondition) {\n return !permanent.isTransformed();\n } else {\n return permanent.isTransformed();\n }\n }\n return...
"public Control newEditorOn(Composite parent, final PropertyDescriptor<?> desc, final Rule rule, final ValueChangeListener listener, SizeChangeListener sizeListener) {\n final Button butt = new Button(parent, SWT.CHECK);\n butt.setText(\"String_Node_Str\");\n final BooleanProperty bp = booleanPropertyFrom(desc...
"private static void checkForMisplacedBindingAnnotations(Member member, Errors errors) {\n Annotation misplacedBindingAnnotation = Annotations.findBindingAnnotation(errors, member, ((AnnotatedElement) member).getAnnotations());\n if (misplacedBindingAnnotation == null) {\n return;\n }\n}\n"
"protected GraphPart trav_loops_DFS(BaseLocalData localData, List<GraphPart> loopHeaders, GraphPart b0, int DFSP_pos) {\n List<GraphPart> folParts = new ArrayList<>(b0.nextParts);\n folParts.addAll(b0.throwParts);\n b0.traversed = true;\n b0.DFSP_pos = DFSP_pos;\n for (GraphPart b : folParts) {\n ...
"private PledgingWallet roundtripWallet(PledgingWallet wallet) throws UnreadableWalletException {\n return PledgingWallet.deserialize(wallet.serialize());\n}\n"
"protected Control createDialogArea(Composite parent) {\n UIUtil.bindHelp(parent, IHelpContextIds.LEVEL_PROPERTY_DIALOG);\n getShell().setText(Messages.getString(\"String_Node_Str\"));\n if (isNew)\n this.setTitle(Messages.getString(\"String_Node_Str\"));\n else\n this.setTitle(Messages.getStr...
"public List<MapNode> getAlternativePlans(CostEstimator estimator) {\n if (cachedPlans != null) {\n return cachedPlans;\n }\n List<? extends OptimizerNode> inPlans = input.getSourcePact().getAlternativePlans(estimator);\n List<MapNode> outputPlans = new ArrayList<MapNode>();\n for (OptimizerNode p...
"public void writeExternal(DataOutputStream out) throws IOException {\n ExtUtil.write(out, new ExtWrapNullable(frameId));\n ExtUtil.write(out, new ExtWrapList(steps));\n ExtUtil.write(out, new ExtWrapList(snapshot));\n ExtUtil.writeBool(out, dead);\n}\n"
"protected Control createDialogArea(Composite parent) {\n composite = (Composite) super.createDialogArea(parent);\n GridLayout layout = (GridLayout) composite.getLayout();\n layout.makeColumnsEqualWidth = false;\n layout.numColumns = 2;\n if (message != null) {\n label = new Label(composite, SWT.N...
"private Object createProxy(byte[] rowKey, Row row) {\n Object newproxy = null;\n try {\n newproxy = classMeta.getMetaClass().newInstance();\n } catch (InstantiationException e) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n } catch (IllegalAccessException e) {\n th...