content
stringlengths
40
137k
"private void evalLocalization(NutConfig config, Class<?> mainModule) {\n Localization lc = mainModule.getAnnotation(Localization.class);\n if (null != lc) {\n if (log.isDebugEnabled())\n log.debugf(\"String_Node_Str\", lc.value());\n Map<String, Map<String, Object>> msgss = Mirror.me(lc....
"private int assignAndRequest(HTTPDownloader dloader, int[] refQueueInfo, boolean http11) {\n synchronized (stealLock) {\n RemoteFileDesc rfd = dloader.getRemoteFileDesc();\n boolean updateNeeded = true;\n try {\n if (shouldAssignWhite) {\n assignWhite(dloader, http11);...
"public float[] getInnerObjectFromLocation(Location location) {\n PMatrix3D m = new PMatrix3D();\n Coordinate coord = provider.locationCoordinate(location).zoomTo(0);\n return new float[] { coord.column * TILE_WIDTH, coord.row * TILE_HEIGHT, 0 };\n}\n"
"protected WebModuleConfig findWebModuleInJ2eeApp(Applications appsBean, String id, ApplicationRegistry appRegistry) {\n WebModuleConfig wmInfo = null;\n int separatorIndex = id.indexOf(Constants.NAME_SEPARATOR);\n if (separatorIndex == -1) {\n separatorIndex = id.indexOf('#');\n }\n if (separator...
"public void onPlayerInteract(PlayerInteractEvent event) {\n Player player = event.getPlayer();\n User user = UserManager.getUser(player);\n if (player.getItemInHand().getTypeId() == Config.PortalTool && (event.getAction() == Action.RIGHT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_AIR || event.getA...
"public void stop() {\n for (Process p : processes) {\n if (p.isRunning()) {\n p.stop();\n }\n }\n if (robot != null) {\n robot.allStop();\n }\n while (this.running) {\n sleep(50);\n }\n}\n"
"public DateTime getMOT() {\n if (MOT != null) {\n return MOT;\n } else {\n return new DateTime(1900, 1, 1, 1, 1);\n }\n}\n"
"public void startRequest(MRCRequest rq) {\n try {\n final renameRequest rqArgs = (renameRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n final Path sp = n...
"public static Intent parseUri(String uri, int flags) throws URISyntaxException {\n int i = 0;\n try {\n final boolean androidApp = uri.startsWith(\"String_Node_Str\");\n if ((flags & (URI_INTENT_SCHEME | URI_ANDROID_APP_SCHEME)) != 0) {\n if (!uri.startsWith(\"String_Node_Str\") && !andr...
"protected IStatus run(IProgressMonitor monitor) {\n try {\n if (startAfterOtherJob != null)\n startAfterOtherJob.join();\n Map<InvestmentPlan, List<PortfolioTransaction>> tx = new HashMap<>();\n CurrencyConverterImpl converter = new CurrencyConverterImpl(factory, getClient().getBaseC...
"public boolean onTouchEvent(MotionEvent ev) {\n initVelocityTrackerIfNotExists();\n MotionEvent vtev = MotionEvent.obtain(ev);\n final int action = ev.getAction();\n switch(action & MotionEvent.ACTION_MASK) {\n case MotionEvent.ACTION_DOWN:\n {\n if (getChildCount() == 0) {...
"public void test_text_link() {\n ZBlock p = P(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", p.ele(0).getText());\n assertEquals(\"String_Node_Str\", p.ele(0).getHref().getValue());\n}\n"
"private TableViewer createSectionPart(Composite parentComp, final List<Column> columnList, String title, String hyperlinkText) {\n Section columnSetElementSection = masterPage.createSection(form, parentComp, title, true, null);\n Composite sectionComp = toolkit.createComposite(columnSetElementSection);\n sect...
"private void runAsynchronous(final ExecutionCallback<V> callback, final Executor executor) {\n try {\n final Object result = this.result;\n executor.execute(new Runnable() {\n\n public void run() {\n try {\n if (result instanceof Throwable) {\n callb...
"public static List<RawTextSlice> find(Iterable<? extends SlicedRawTextNode> slicedTextNodes, Predicate<? super Context> prevContextPredicate, Predicate<? super Context> sliceContextPredicate, Predicate<? super Context> nextContextPredicate) {\n if (prevContextPredicate == null) {\n prevContextPredicate = Pre...
"protected void createTopTable(Composite parent) {\n Composite container = new Composite(parent, SWT.NONE);\n TableColumnLayout layout = new TableColumnLayout();\n container.setLayout(layout);\n plans = new TableViewer(container, SWT.FULL_SELECTION);\n ColumnEditingSupport.prepare(plans);\n planColumn...
"public void sendMessage(String message) {\n for (final String line : TextWrapper.wrapText(message)) {\n entity.a.b(new Packet3Chat(line));\n }\n}\n"
"private static void _addDerivedUnit(Map<BaseDimensionRepresentativeConcept, List<BaseUnitConcept>[]> baseUnitsMap, Map<BaseDimensionRepresentativeConcept, List<BaseUnitConcept>[]> baseUnitsMapFromDerivedUnit) {\n for (Map.Entry<BaseDimensionRepresentativeConcept, List<BaseUnitConcept>[]> baseUnitsMapEntry : baseUni...
"private void createAnonClassDecl(polyglot.ast.New aNew) {\n SootClass outerClass = ((soot.RefType) Util.getSootType(aNew.anonType().outer())).getSootClass();\n if (innerClassInfoMap == null) {\n innerClassInfoMap = new HashMap();\n }\n innerClassInfoMap.put(sootClass, new InnerClassInfo(outerClass, ...
"public FlowDetails createClassifierOutFlow(String nodeId, String flowKey, Match match, SfcRspInfo sfcRspInfo) {\n Preconditions.checkNotNull(flowKey, \"String_Node_Str\");\n Preconditions.checkNotNull(sfcRspInfo, \"String_Node_Str\");\n Preconditions.checkNotNull(nodeId, \"String_Node_Str\");\n List<Action...
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + actualSegments() + \"String_Node_Str\" + minSegments() + \"String_Node_Str\" + actualEntriesPerSegment() + \"String_Node_Str\" + entrySize() + \"String_Node_Str\" + entryAndValueAlignment() + \"String_Node_Str\" + entries() + \"String_N...
"public static void generateComponent(String sourcePath, String componentName, String outputFile) {\n Element root = new Element(\"String_Node_Str\");\n root.setAttribute(\"String_Node_Str\", componentName);\n root.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n Element source = new Element(\"Stri...
"private void updateSchema() {\n Object updateObject = result.getUpdateObject();\n if (updateObject == null) {\n return;\n }\n if (updateObject instanceof Node) {\n Node node = (Node) updateObject;\n boolean builtIn = true;\n final IExternalNode externalNode = node.getExternalNod...
"public void multiply(double amount) {\n double balance = this.getBalance();\n double ending = balance * amount;\n math(amount, balance, ending);\n}\n"
"public void serveDescription(RestServiceRequest rsr) {\n rsr.startDoc();\n if (rsr.getResponseContentType() == ResponseType.HTML)\n rsr.write(\"String_Node_Str\").write(getName()).write(\"String_Node_Str\");\n rsr.datawriter.object().key(\"String_Node_Str\").value(getName()).key(\"String_Node_Str\").va...
"public void onBlockDestroyedByPlayer(World world, BlockPos pos, IBlockState state) {\n if (!world.isRemote) {\n TorchSection section = state.getValue(SECTION);\n if (section == TorchSection.LOWER) {\n dropBlockAsItem(world, pos, state, 0);\n if (world.getBlockState(pos.up()).getB...
"public void addJarFile(File inFile, File outDir) throws IOException {\n needToReweaveWorld = true;\n ZipInputStream inStream = new ZipInputStream(new FileInputStream(inFile));\n while (true) {\n ZipEntry entry = inStream.getNextEntry();\n if (entry == null)\n break;\n if (entry...
"public static void main(String[] args) {\n String[] imageNames = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n for (String s : imageNames) {\n BufferedImage image = UtilImageIO.loadImage(\"String_Node_Str\" + s);\n BenchmarkInterestStability_...
"protected void performDefaults() {\n execCombo.deselectAll();\n InstanceScope.INSTANCE.getNode(CorePlugin.PLUGIN_ID).put(PluginConstant.LANGUAGE_SELECTOR, LocalToLanguageEnum.ENGLISH.getShortOfLocale());\n execCombo.setText(LocalToLanguageEnum.ENGLISH.getLocale());\n super.performDefaults();\n}\n"
"private void setNewValues() {\n proxy.updateName(textName.getText());\n textName.setEditable(true);\n labelName.setLabelFor(textName);\n proxy.updateSurname(textSurname.getText());\n textSurname.setEditable(true);\n labelSurname.setLabelFor(textSurname);\n Date dateOfBirth = new Date();\n Simpl...
"public void save() {\n clear();\n for (Entry<String, String> entry : tree.getTree().entrySet()) {\n if (entry.getValue() != null && !entry.getValue().isEmpty() && !StringUtils.isNumber(entry.getKey())) {\n this.config.setProperty(entry.getKey(), entry.getValue());\n }\n }\n this.co...
"public void insert(boolean async) {\n SqlUtils.save(mManager, this, async, SqlUtils.SAVE_MODE_INSERT, false);\n}\n"
"private void _addObjectsWithCreationAttributes(NamedObj pattern) throws TransformationException {\n Collection<?> children = GTTools.getChildren(pattern, false, true, true, true);\n for (Object childObject : children) {\n NamedObj child = (NamedObj) childObject;\n if (_isToBeCreated(child)) {\n ...
"public void crossOver() {\n boolean change = false;\n ItemSeeds result = null;\n int resultMeta = 0;\n int mutationId = 0;\n Block req = null;\n int reqMeta = 0;\n double chance = 0;\n TileEntityCrop[] neighbours = this.findNeighbours();\n if (Math.random() > ConfigurationHandler.mutationCha...
"private void updateConnectivity(Intent intent) {\n NetworkInfo info = (NetworkInfo) (intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO));\n int connectionStatus = intent.getIntExtra(ConnectivityManager.EXTRA_INET_CONDITION, 0);\n Slog.d(TAG, \"String_Node_Str\" + info + \"String_Node_Str\" + co...
"private boolean connectNetwork(CallbackContext callbackContext, JSONArray data) {\n Log.d(TAG, \"String_Node_Str\");\n if (!validateData(data)) {\n callbackContext.error(\"String_Node_Str\");\n Log.d(TAG, \"String_Node_Str\");\n return false;\n }\n String ssidToConnect = \"String_Node_...
"public static final void authenticateWithCredentials(String username, String password, SessionListener sessionListener) {\n networkDelegate.setSessionListener(sessionListener);\n SessionProvider provider = new SessionProvider();\n provider.setRestClient(client);\n provider.setProviderListener(providerListe...
"public void checkTypes(MarkerList markers, IContext context) {\n super.checkTypes(markers, context);\n for (int i = 0; i < this.parameterCount; i++) {\n this.parameters[i].checkTypes(markers, context);\n }\n if (this.value != null) {\n if (this.isConstructor) {\n IValue value1 = th...
"public List<Tuple<String, String>> GetTags(String fqname) {\n logger.trace_function();\n logger.debug(fqname);\n String cmd = \"String_Node_Str\" + __TAG_NAME + \"String_Node_Str\" + fqname;\n CmdResult res = null;\n try {\n res = Cleartool.run(cmd);\n } catch (AbnormalProcessTerminationExcept...
"public static Pair<Matrix, Vector> loadModel(Configuration conf, Path... modelPaths) throws IOException {\n int numTopics = -1;\n int numTerms = -1;\n List<Pair<Integer, Vector>> rows = Lists.newArrayList();\n for (Path modelPath : modelPaths) {\n for (Pair<IntWritable, VectorWritable> row : new Seq...
"private void generateConditionalCallForMockedConstructor() {\n generateCallToMockMethod();\n int jumpInsnOpcode;\n if (shouldUseMockingBridge()) {\n mw.visitLdcInsn(VOID_TYPE);\n jumpInsnOpcode = IF_ACMPEQ;\n } else {\n jumpInsnOpcode = mockMethod.hasInvocationParameter ? IFNE : IFEQ;\...
"private InputStream getStream(String URL, Boolean CheckPNG) {\n try {\n URL U = new URL(URL);\n C = (HttpURLConnection) U.openConnection();\n C.setDoInput(true);\n C.setDoOutput(false);\n C.connect();\n int respcode = C.getResponseCode() / 100;\n if (respcode != 4 &&...
"public SimplePromise<Patient> syncPatient(final Patient patient, final DefaultResponseCallbackListener callbackListener) {\n final SimpleDeferredObject<Patient> deferred = new SimpleDeferredObject<>();\n final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(OpenMRS.getInstance());\n Bo...
"public static InputStream getStream(URL url) throws TCTokenException, MalformedURLException, KeyStoreException, IOException, GeneralSecurityException, HttpException, URISyntaxException {\n HttpEntity entity = null;\n boolean finished = false;\n while (!finished) {\n logger.info(\"String_Node_Str\", url...
"public void onPlayerMove(PlayerMoveEvent event) {\n if (event.isCancelled())\n return;\n Player player = event.getPlayer();\n Vector vector = player.getVelocity();\n Block loc = event.getTo().getBlock();\n Region regionTo = RegionManager.getRegion(event.getTo());\n Region regionFrom = RegionMa...
"public String getCurrentToken() {\n return Utils.getInternalSettingString(this.mContext, Const.GCM_TOKEN_ID, \"String_Node_Str\");\n}\n"
"private void createReadersAndWriters(int size) {\n if (fieldWriters == null && fieldReaders == null) {\n fieldWriters = new ObjectWriter[size];\n fieldReaders = new ObjectReader[size];\n for (int i = 0; i < size; i++) {\n fieldWriters[i] = new ObjectWriter();\n fieldReader...
"private static PreferenceManager createPreferenceManager(ReportElementHandle handle) {\n PreferenceManager preferenceManager = new PreferenceManager('/');\n List pageContributions = new ArrayList();\n pageContributions.add(new PreferenceNode(\"String_Node_Str\", new GeneralPreferencePage(handle, theme)));\n ...
"public void run() {\n if ((tsfviewer != null) && (!tsfviewer.getControl().isDisposed())) {\n tsfviewer.setTimeBounds(range.getStartTime().getValue(), range.getEndTime().getValue());\n }\n}\n"
"private static TypeSpec buildNativeComponent(final ComponentDescriptor descriptor) {\n final TypeSpec.Builder builder = TypeSpec.classBuilder(\"String_Node_Str\");\n builder.addModifiers(Modifier.FINAL);\n builder.addModifiers(Modifier.STATIC);\n builder.addModifiers(Modifier.PRIVATE);\n final TypeName ...
"public final ChromatticSessionImpl login() {\n ChromatticSessionImpl session = (ChromatticSessionImpl) chromattic.openSession();\n sessions.add(session);\n return session;\n}\n"
"private LFgExample getExample(AnnoSentence sent, AnnoSentence gold, boolean labeledExample) {\n ObsFeatureExtractor srlFe = new SrlFeatureExtractor(prm.fePrm.srlFePrm, sent, cs);\n srlFe = new ObsFeatureCache(srlFe);\n FeatureExtractor dpFe = prm.fePrm.dpFePrm.onlyFast ? new FastDepParseFeatureExtractor(sent,...
"public void display(List<Diagnostic> diagnostics) {\n this.view = (DiagnosticContract.View) adapter.getExistingFragment(1);\n if (view != null) {\n view.setPresenter(this);\n view.display(diagnostics);\n }\n}\n"
"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...
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String requestType = request.getHeader(ParameterAccessor.HEADER_REQUEST_TYPE);\n if (ParameterAccessor.HEADER_REQUEST_TYPE_SOAP.equalsIgnoreCase(requestType)) {\n ReportEngineService.getIn...
"public Collection<ParameterEnum<?>> getParameters() {\n final Set<ParameterEnum<?>> params = new HashSet<ParameterEnum<?>>();\n params.addAll(super.getParameters());\n params.addAll(Arrays.asList(new ParameterEnum<?>[] { StoreParameters.StoreParam.INPUT_STORE, GlobalParameters.Global.BATCH_ID }));\n params...
"private void dispatchOnDownloadProgress(IMXMediaDownloadListener.DownloadStats stats) {\n for (IMXMediaDownloadListener callback : mDownloadListeners) {\n try {\n callback.onDownloadProgress(mDownloadId, stats);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + e.g...
"public boolean canContract() {\n GraphModel graphModel = graphController.getModel();\n if (graphModel == null) {\n return false;\n }\n this.graph = graphController.getModel().getHierarchicalGraphVisible();\n ModelImpl[] selectedNodeModels = engine.getSelectedObjects(AbstractEngine.CLASS_NODE);\n ...
"public void renderContent(GL2 gl) {\n if (resolvedRowID == null)\n return;\n List<SelectionType> geneSelectionTypes = geneSelectionManager.getSelectionTypes(davidID);\n List<List<SelectionType>> selectionLists = new ArrayList<List<SelectionType>>();\n selectionLists.add(geneSelectionTypes);\n for...
"public Resource convert(Object source) {\n if (null == repositoryMetadata || null == source) {\n return new Resource<Object>(source);\n }\n Serializable id = (Serializable) repositoryMetadata.entityMetadata().idAttribute().get(source);\n URI selfUri = buildUri(config.getBaseUri(), repositoryMetadata...
"public void onPluginDirectorySearched(PluginStore.OnPluginDirectorySearched event) {\n if (event.isError()) {\n AppLog.e(AppLog.T.PLUGINS, \"String_Node_Str\");\n mSearchPluginsListStatus.setValue(PluginListStatus.ERROR);\n return;\n }\n mSearchResults.setValue(event.plugins);\n mSearc...
"public OfflineUser getOfflineUser() {\n return new OfflineUser(name);\n}\n"
"private void updatePackage(IMetadataConnection metadataConnection) {\n if (metadataConnection == null) {\n return;\n }\n Driver derbyDriver = null;\n Connection sqlConn = null;\n ExtractMetaDataUtils extractMeta = ExtractMetaDataUtils.getInstance();\n String dbType = metadataconnection.getDbTy...
"public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {\n super.readExternal(in, pf);\n hiddenQueryValues = (Hashtable<String, XPathExpression>) ExtUtil.read(in, new ExtWrapMapPoly(String.class), pf);\n userQueryPrompts = (Hashtable<String, DisplayUnit>...
"public void listPrivileges(HttpRequest httpRequest, HttpResponder httpResponder, String principalType, String principalName) throws Exception {\n ensureSecurityEnabled();\n Principal principal = new Principal(principalName, Principal.PrincipalType.valueOf(principalType.toUpperCase()));\n httpResponder.sendJso...
"public String actionSearch(HttpServletRequest theReq, HomeRequest theRequest, BindingResult theBindingResult, ModelMap theModel) throws IOException {\n addCommonParams(theReq, theRequest, theModel);\n StringWriter clientCodeJsonStringWriter = new StringWriter();\n JsonWriter clientCodeJsonWriter = new JsonWri...
"public void testToString() throws Exception {\n Packet packet = Packet.newRequest(peers, 0, 123, new ReadWriteRequest(1000, 2000, new byte[] { 1, 2, 3, 4, 5 }, 123));\n String expected = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String actua...
"public void renderItem(ItemRenderType type, ItemStack item, Object... data) {\n String texture = ConstantValue.DECOMPOSER_MODEL_ON;\n GL11.glPushMatrix();\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));\n if (type == ItemRenderType.ENTITY)...
"public String format(BigDecimal posixSeconds) {\n double elapsedTime_SU = Math.abs(posixSeconds.doubleValue() - referenceTime.toPosixSeconds());\n double elapsedTime_DAYS = Time.toDays(elapsedTime_SU);\n int elapsedTime_DAYS_WHOLE = (int) Math.floor(elapsedTime_DAYS);\n double elapsedTime_HOURS = (elapsedT...
"private CSVDataExtractionImpl createExtraction(OutputStream out, IDataExtractionOption option) throws BirtException {\n CSVDataExtractionImpl extract = new CSVDataExtractionImpl();\n Map allOptions = new HashMap();\n allOptions.putAll(option.getOptions());\n DataExtractionOption deOptions = new DataExtract...
"public TsSegment fetchTsSegmentByIndex(long index) {\n if (index < 0)\n return null;\n TsSegment tsSegment = null;\n if (index < 4) {\n String type = \"String_Node_Str\";\n switch(streamType) {\n case HlsLiveStreamType.YUV:\n case HlsLiveStreamType.H264:\n ...
"private <T> HashSet<Watcher<?>> getWatchers(Class<T> clazz) {\n HashSet<Watcher<?>> watchers = new HashSet<Watcher<?>>();\n for (Entry<Class<?>, List<Watcher<?>>> entry : maps.entrySet()) {\n Class<?> oClazz = entry.getKey();\n if (oClazz.isAssignableFrom(clazz)) {\n currentWatchers.addA...
"private GoogleKeyPair setupSshKeys(ComputeEngineComputer computer) throws Exception {\n ComputeEngineCloud cloud = computer.getCloud();\n ComputeClient client = cloud.client;\n ComputeEngineInstance instance = computer.getNode();\n GoogleKeyPair kp = GoogleKeyPair.generate();\n List<Metadata.Items> item...
"private int compareParameterTypesSpecificity(Class[] paramTypes1, Class[] paramTypes2, boolean varArg) {\n boolean paramTypes1HasAMoreSpecific = false;\n boolean paramTypes2HasAMoreSpecific = false;\n final int paramTypes1Len = paramTypes1.length;\n final int paramTypes2Len = paramTypes2.length;\n if (b...
"public static ClassLoader createClassLoader(File[] unpacked, File[] packed, URL[] urls, ClassLoader parent) throws Exception {\n if (log.isLoggable(Level.FINE))\n log.fine(\"String_Node_Str\");\n Set<URL> set = new LinkedHashSet<URL>();\n if (unpacked != null) {\n for (int i = 0; i < unpacked.le...
"public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n res.setContentType(\"String_Node_Str\");\n res.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n PrintWriter out = res.getWriter();\n String requestURL = req.getRequestURL().toString();\n ou...
"public void setStatus(ApplicationStatus status, String instanceId) {\n ApplicationInstance applicationInstance = (ApplicationInstance) this.instanceIdToInstanceMap.get(instanceId);\n if (applicationInstance == null) {\n log.warn(\"String_Node_Str\" + instanceId + \"String_Node_Str\");\n } else {\n ...
"public void showClearPinDialog(final Activity activity, final Optional<Runnable> afterDialogClosed) {\n this.runPinProtectedFunction(activity, new ClearPinDialog(activity, true), new Runnable() {\n\n public void run() {\n MbwManager.this.savePin(Pin.CLEAR_PIN);\n Toast.makeText(_applica...
"protected void drawRoundedSlices(Canvas c) {\n if (!mChart.isDrawRoundedSlicesEnabled())\n return;\n IPieDataSet dataSet = mChart.getData().getDataSet();\n if (!dataSet.isVisible())\n return;\n PointF center = mChart.getCenterCircleBox();\n float r = mChart.getRadius();\n float circleRa...
"public boolean verifySignature(byte[] message, BigInteger r, BigInteger s) {\n BigInteger n = ecParams.getN();\n if (r.compareTo(ONE) < 0 || r.compareTo(n) >= 0) {\n return false;\n }\n if (s.compareTo(ONE) < 0 || s.compareTo(n) > 0) {\n return false;\n }\n ECPoint q = ((ECPublicKeyPara...
"private void initViewModel() {\n VpnListViewModelFactory aFactory = InjectorModule.provideVpnListViewModelFactory();\n mViewModel = ViewModelProviders.of(this, aFactory).get(VpnListViewModel.class);\n mViewModel.getVpnListLiveData().observe(this, vpnResource -> {\n if (vpnResource != null) {\n ...
"public void run() {\n try {\n this.loader.setStatus(this);\n if (performImport)\n this.loader.external2Binary(binaryFile);\n else\n this.loader.binary2External(binaryFile);\n dispose();\n EncogWorkBench.displayMessage(\"String_Node_Str\", \"String_Node_Str\")...
"public void configure() {\n setName(\"String_Node_Str\");\n setDescription(\"String_Node_Str\");\n createDataset(INPUT, \"String_Node_Str\");\n createDataset(OUTPUT, \"String_Node_Str\");\n Class<? extends InputFormat> inputFormatClass = getConfig().isUseCombineFileInputFormat() ? CombineTextInputFormat...
"public static List<Slot> getSlots(Element elem) {\n List<Slot> slots = new ArrayList<Slot>();\n InstanceSpecification localInstanceSpecification = elem.getAppliedStereotypeInstance();\n if (localInstanceSpecification != null) {\n slots.addAll(localInstanceSpecification.getSlot());\n }\n return sl...
"private Object getArray() {\n List<Map<String, String>> map = new ArrayList<Map<String, String>>();\n MetadataTable table = (MetadataTable) this.getMetadataList().get(0);\n for (IMetadataColumn col : table.getListColumns()) {\n VirtualMetadataColumn ext = (VirtualMetadataColumn) col;\n Map<Strin...
"private ArrayList createSchemaList(ResultSet schemaRs) {\n if (schemaRs == null) {\n return null;\n }\n ArrayList schemas = new ArrayList();\n try {\n ResultSet rs = null;\n while (schemaRs.next()) {\n allSchemas.add(schemaRs.getString(\"String_Node_Str\"));\n }\n ...
"public void testMemberInfo() {\n MemberInfo memberInfo = MemberInfo.create(\"String_Node_Str\", \"String_Node_Str\");\n assertThat(memberInfo.memberName()).isEqualTo(\"String_Node_Str\");\n assertThat(memberInfo.descriptor()).isEqualTo(\"String_Node_Str\");\n assertThat(memberInfo).isEqualTo(MemberInfo.cre...
"public void setEnabled(final boolean setEnabled) {\n if (OS.isMacOsX()) {\n if (keepAliveThread != null) {\n synchronized (keepAliveLock) {\n keepAliveLock.notifyAll();\n }\n }\n keepAliveThread = null;\n if (visible && !setEnabled) {\n kee...
"public void scrollRectToVisible(Rectangle aRect) {\n if (!isScrollingAllowed()) {\n return;\n }\n super.scrollRectToVisible(contentRect);\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n EventBus.getDefault().register(this);\n try {\n ConnectionUtil.initialize(this);\n } catch (Exception e) {\n Toast.makeText(MainActivity.this, R.string.sslFailed, Toast.LENGTH_LONG).show();\n }\n ...
"protected void createBottomPart(Composite parent) {\n convertBtn = new Button(parent, SWT.PUSH);\n convertBtn.setText(Messages.getString(\"String_Node_Str\"));\n GridDataFactory.swtDefaults().span(2, 1).align(SWT.CENTER, SWT.CENTER).grab(false, false).applyTo(convertBtn);\n convertBtn.setEnabled(!isReadOnl...
"public Path executePlugin(Path uriPath, String fileFormat) {\n try {\n return GeneralCommandConvertPluginUtils.executeGeneralCommand(inputPath, outputPath, commandArguments);\n } catch (IOException | CommandException e) {\n return null;\n }\n}\n"
"public void mongodb_should_start_mongodb_instance_in_Mac() throws Throwable {\n MongoDbLowLevelOps mongoDbChecker = mock(MongoDbLowLevelOps.class);\n when(mongoDbChecker.assertThatConnectionIsPossible(anyString(), anyInt())).thenReturn(true);\n when(operatingSystemResolver.currentOperatingSystem()).thenReturn...
"public void setDefaultEnvironment(String environmentName, File sourceConfigXML) throws PhrescoException {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n docFactory.setNamespaceAware(false);\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n ...
"protected void drawSlot(int index, int var2, int var3, int var4, Tessellator tessellator) {\n Update update = UpdateHandler.getElement(index);\n if (update != null) {\n this.parent.getFontRenderer().drawString(this.parent.getFontRenderer().trimStringToWidth(update.displayName, listWidth - 10), this.left +...
"public void onClickNext(View next) {\n if (userMajorSpinner.getSelectedItemPosition() == 0) {\n Toast.makeText(getApplicationContext(), \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n return;\n }\n lrzId = editTxtLrzId.getText().toString();\n Editor editor = sharedPrefs.edit();\n editor...
"private void player(Player player, String[] args) {\n if (args.length == 2) {\n LineTracer tracer = new LineTracer(player);\n Block b = tracer.getTargetBlock();\n if (b != null) {\n b.setY(b.getY() + 1);\n try {\n Entity mob = Canary.factory().getEntityFacto...
"public void testComputation2() throws ExecutionException, InterruptedException, TimeoutException {\n ValidityRegionsComputation computation = new ValidityRegionsComputation(createOdeSystem(), createPrecisionConfiguration(), createSimulationSpace(), createInitialSpace(), createFutureFormula(2), 0);\n ComputationC...
"private static boolean evaluateSimpleExpression(String simpleExpression, List<? extends IElementParameter> listParam, ElementParameter currentParam) {\n boolean showParameter = false;\n String test = null;\n if (simpleExpression.contains(EQUALS)) {\n test = EQUALS;\n } else if (simpleExpression.cont...
"public void release() {\n LOCK.lock();\n try {\n --count;\n if (count <= 0) {\n map.remove(name);\n LOGGER.debug(\"String_Node_Str\", this.getClass().getSimpleName(), getName());\n releaseSub();\n }\n } finally {\n lock.unlock();\n }\n}\n"