content stringlengths 40 137k |
|---|
"public void handleFree(DownloadLink downloadLink) throws Exception, PluginException {\n requestFileInformation(downloadLink);\n doFree2(downloadLink);\n}\n"
|
"public boolean applyFirewallRules(Network network, List<? extends FirewallRule> rules) throws ResourceUnavailableException {\n DomainRouterVO router = _routerDao.findByNetwork(network.getId());\n if (router == null) {\n s_logger.warn(\"String_Node_Str\" + network.getId());\n throw new ResourceUnava... |
"public static QBChatMessage createMessageToPrivateChatAboutCreatingGroupChat(QBDialog dialog, String body) {\n String occupantsIds = ChatUtils.getOccupantsIdsStringFromList(dialog.getOccupants());\n QBChatMessage chatMessage = new QBChatMessage();\n chatMessage.setBody(body);\n chatMessage.setProperty(PROP... |
"private void useCascadedMock(TestOnlyPhase phase, Object cascadedMock) {\n if (cascadedMock != null) {\n if (phase != null && !TestRun.getExecutingTest().isRegularMockedInstance(cascadedMock)) {\n phase.setNextInstanceToMatch(cascadedMock);\n }\n defaultReturnValue = cascadedMock;\n ... |
"public static List<Identity> retrieveParticipantsFromAreas(List<Long> areaKeys, CourseGroupManager cgm) {\n return cgm.getParticipantsFromAreas(areaKeys);\n}\n"
|
"public void test() throws IOException {\n RegularTimeSeriesIndex index = RegularTimeSeriesIndex.create(Interval.parse(\"String_Node_Str\"), Duration.ofMinutes(15));\n TimeSeriesMetadata metadata = new TimeSeriesMetadata(\"String_Node_Str\", TimeSeriesDataType.STRING, Collections.emptyMap(), index);\n Uncompre... |
"public void shouldReturnEmptyLabResultsWhenVisitHasNoLabResults() throws Exception {\n ClinicVisit visit = new ClinicVisit(\"String_Node_Str\", new Visit());\n assertNotNull(visit.getLabResultIds());\n}\n"
|
"public String link(Location loc, short code) {\n if (loc.world != world()) {\n return \"String_Node_Str\";\n }\n if (!loc.isAboveBedrock()) {\n return \"String_Node_Str\";\n }\n if (distance(pos) > MAX_LINK_DISTANCE) {\n return \"String_Node_Str\";\n }\n TileEntity tile = pos.... |
"public void rotateLeft(IBuilderContext context) {\n final int xPos = 2;\n final int xNeg = 1;\n final int zPos = 4;\n final int zNeg = 3;\n switch(meta & 7) {\n case xPos:\n meta = zPos;\n break;\n case zNeg:\n meta = xPos;\n break;\n case... |
"public String toString(int level) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\" + Integer.toHexString(System.identityHashCode(this)));\n if (level < MAX_RECURSIVE_LEVEL) {\n sb.append(\"String_Node_Str\" + initialized() + \"String_Node_Str\" + qualifiedProtoTypicalTypeName... |
"public void setWidth(String width) {\n String unit = content.getReportContent().getDesign().getReportDesign().getDefaultUnits();\n content.setWidth(DimensionType.parserUnit(width, unit));\n}\n"
|
"public int generateClass(int namespace, ClassInfo ci, InstanceInfo ii, int initScope, String pkg, SourceGeneratorLocalData localData, AVM2Item cls) throws AVM2ParseException, CompilationException {\n if (cls instanceof ClassAVM2Item) {\n ClassAVM2Item cai = (ClassAVM2Item) cls;\n generateClass(cai.imp... |
"public void testRemoveSubscriptionByAppId() throws Exception {\n defaultAppListIndex = numberOfApis - 2;\n HttpResponse getAllAppResponse = apiStore.getAllApplications();\n assertEquals(getAllAppResponse.getResponseCode(), Response.Status.OK.getStatusCode(), \"String_Node_Str\");\n JSONObject getAllAppJson... |
"public void russianFallback() throws IOException, GeoIp2Exception {\n WebServiceClient client = new WebServiceClient.Builder(42, \"String_Node_Str\").testTransport(this.transport).locales(Arrays.asList(\"String_Node_Str\", \"String_Node_Str\")).build();\n CityIspOrgResponse cio = client.cityIspOrg(InetAddress.ge... |
"public String toString() {\n DecimalFormat df = new DecimalFormat(\"String_Node_Str\");\n return candidateURI.replace(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\" + String.valueOf(df.format(activation)) + \"String_Node_Str\" + String.valueOf(df.format(hubWeight)) + \"String_Node_Str\" + String... |
"public void save(boolean async) {\n SqlUtils.save(mManager, this, async, SqlUtils.SAVE_MODE_DEFAULT, false);\n}\n"
|
"public void toString(String prefix, StringBuilder buffer) {\n if (this.parameterCount == 1) {\n IParameter param = this.parameters[0];\n if (param.getType() != Types.UNKNOWN) {\n buffer.append('(');\n param.toString(prefix, buffer);\n buffer.append(')');\n } els... |
"public int hashCode() {\n if (name != null)\n return (name + \"String_Node_Str\" + type).hashCode();\n else\n return type.hashCode();\n}\n"
|
"public void endDraw() {\n if (bitmap == null)\n return;\n if (primaryGraphics) {\n SurfaceHolder holder = parent.getSurfaceHolder();\n if (holder != null) {\n Canvas screen = null;\n try {\n screen = holder.lockCanvas(null);\n if (screen !=... |
"protected void createJmxRemotePasswordFile(File directory) {\n ArgumentNotValid.checkNotNull(directory, \"String_Node_Str\");\n File jmxFile = new File(directory, Constants.JMX_FILE_NAME);\n try {\n PrintWriter jw = new PrintWriter(jmxFile);\n try {\n jw.println(\"String_Node_Str\" + ... |
"public void drawValues(Canvas c) {\n if (passesCheck()) {\n ArrayList<BarDataSet> dataSets = mChart.getBarData().getDataSets();\n float posOffset = 0f;\n float negOffset = 0f;\n boolean drawValueAboveBar = mChart.isDrawValueAboveBarEnabled();\n posOffset = (drawValueAboveBar ? -Ut... |
"private QueryDefinition newGenIVReportQuery() {\n QueryDefinition qd = newReportQuery();\n IBaseExpression[] rowBeArray = getRowExpr();\n IBaseExpression[] totalBeArray = getAggrExpr();\n for (int i = 0; i < rowBeArray.length; i++) qd.addResultSetExpression(this.rowExprName[i], rowBeArray[i]);\n if (thi... |
"public static void onBalanceCheck(CurrencyAmountEvent event) {\n UUID target = event.getAccount();\n if (!NameManager.isAdminShop(target) || NameManager.isServerEconomyAccount(target)) {\n return;\n }\n Account account = NameManager.getServerEconomyAccount();\n target = account != null ? account.... |
"private static <T extends BaseEntity> T deserializeBaseParameter(JsonObject obj, T entity) {\n if (obj.has(\"String_Node_Str\")) {\n entity.error = obj.getAsJsonPrimitive(\"String_Node_Str\").getAsBoolean();\n }\n if (obj.has(\"String_Node_Str\") && obj.getAsJsonPrimitive(\"String_Node_Str\").isNumber(... |
"public void doGroup(String[] inputRow) throws IOException, InterruptedException {\n extSize = isOutputDistDetails ? 5 : 4;\n extSize = isSeperateOutput ? extSize + 1 : extSize;\n if (isLinkToPrevious && !inputRow[inputRow.length - extSize + 2].equalsIgnoreCase(\"String_Node_Str\")) {\n outputRow(String... |
"public static PayloadData createPayload(String appId, String groupName, CartridgeInfo cartridgeInfo, String subscriptionKey, int tenantId, String clusterId, String hostName, String repoUrl, String alias, Map<String, String> customPayloadEntries, String[] dependencyAliases, org.apache.stratos.common.Properties properti... |
"public void reset() {\n getTypeHelperDelegate().reset();\n}\n"
|
"private void processPerms(Player player, Location loc) {\n if (DEBUG)\n plugin.getLogger().info(\"String_Node_Str\" + loc);\n if (plugin.getGrid().locationIsOnIsland(player, loc)) {\n if (DEBUG)\n plugin.getLogger().info(\"String_Node_Str\" + player.getName());\n if (VaultHelper.c... |
"public boolean shouldSaveType(EClass objectType, EClass featureType, EStructuralFeature feature) {\n return objectType != featureType && featureType.isAbstract();\n}\n"
|
"public void beforeInvocation(IInvokedMethod method, ITestResult testResult) {\n logger.entering(new Object[] { method, testResult });\n try {\n if (ListenerManager.isCurrentMethodSkipped(this)) {\n logger.exiting(ListenerManager.THREAD_EXCLUSION_MSG);\n return;\n }\n if... |
"public boolean validate() {\n cleanWarnings();\n cleanErrors();\n boolean valid = true;\n if (getId() == null) {\n addError(\"String_Node_Str\");\n valid = false;\n }\n if (getRefer() != null && (getRefer().compareTo(this) == 0 || findContext(nodes) != null)) {\n addError(\"Strin... |
"public List<EncryptedEntry> getAllEntries() throws GeneralSecurityException, IOException {\n List<EncryptedEntry> entryList = new ArrayList<EncryptedEntry>();\n String query = \"String_Node_Str\" + TABLE_ENCRYPTED;\n SQLiteDatabase sqLiteDatabase = getReadableDatabase();\n Cursor cursor = null;\n try {\... |
"private void insertData() throws FileNotFoundException, SQLException {\n try {\n String insertPath = this.getClass().getResource(\"String_Node_Str\").getPath();\n ResultSet rs = RunScript.execute(connection, new FileReader(insertPath));\n if (rs != null)\n rs.close();\n } catch (F... |
"protected void sendEventAsyncWithoutLock(final WireKey eventId, final Consumer<ValueOut> consumer) {\n writeAsyncMetaData(Time.currentTimeMillis());\n hub.outWire().writeDocument(false, wireOut -> {\n final ValueOut valueOut = wireOut.writeEventName(eventId);\n if (consumer == null)\n va... |
"public void compute(Vertex<LongWritable, VertexValue, NullWritable> vertex, Iterable<Message> messages) throws IOException {\n int phase = (int) (getSuperstep() % 4);\n switch(phase) {\n case 0:\n if (isLeft(vertex)) {\n if (isNotMatchedYet(vertex)) {\n sendMes... |
"private boolean mergeNode(Topology topology, FlowExecutionContext context, String nodeTemplateId, NodePropsOverride nodePropsOverride) {\n if (nodePropsOverride == null) {\n return false;\n }\n final ConfigChanged configChanged = new ConfigChanged();\n NodeTemplate nodeTemplate = topology.getNodeTem... |
"private boolean audioDecodeStep(ByteBuffer buffer) {\n boolean isTimeEnd = false;\n buffer.clear();\n synchronized (Extractor_LOCK) {\n mExtractor.selectTrack(mAudioDecoderTrack);\n int length = mExtractor.readSampleData(buffer, 0);\n if (length != -1) {\n int flags = mExtracto... |
"public boolean showSessionFromSession(IBinder token, Bundle sessionArgs, int flags) {\n synchronized (this) {\n if (mImpl == null) {\n Slog.w(TAG, \"String_Node_Str\");\n return false;\n }\n final int callingPid = Binder.getCallingPid();\n final int callingUid = Bin... |
"public void write(IPath resPath, IPath desPath) throws IOException, CoreException {\n File file = getBasePath().toFile();\n if (!file.exists()) {\n file.createNewFile();\n }\n tempMap.put(resPath.toFile(), desPath.toPortableString());\n}\n"
|
"public boolean requiresPassword(IConnectionProfile connectionProfile) {\n Properties props = connectionProfile.getBaseProperties();\n String contextFactory = props.getProperty(ICredentialsCommon.SECURITY_TYPE_ID);\n if (contextFactory != null & !contextFactory.isEmpty() && !contextFactory.equalsIgnoreCase(IWS... |
"public void run(NatTable natTable, MouseEvent event) {\n int rowIndex = natTable.getRowIndexByPosition(natTable.getRowPositionByY(event.y));\n if (rowIndex != -1 && rowIndex < getRowCount() - 1) {\n swapRows(rowIndex, rowIndex + 1);\n update();\n selectRow(rowIndex + 1);\n }\n}\n"
|
"protected boolean visit(IResourceDelta delta, Collection<Runnable> runnables) {\n VisitResourceHelper visitHelper = new VisitResourceHelper(delta);\n boolean merged = ProjectRepositoryNode.getInstance().getMergeRefProject();\n Set<RepositoryNode> topLevelNodes = getTopLevelNodes();\n for (final RepositoryN... |
"public TaskWrapper[] getInProgressTasksForGivenUser(String workspaceId, String userLogin) throws UserNotFoundException, UserNotActiveException, WorkspaceNotFoundException, WorkspaceNotEnabledException {\n User user = userManager.checkWorkspaceReadAccess(workspaceId);\n TaskDAO taskDAO = new TaskDAO(new Locale(us... |
"public void testJFile() throws Exception {\n File javaArgsFile = new File(testSelfrun.getParentFile(), \"String_Node_Str\");\n FileSystem fs = FileSystems.getDefault();\n Files.write(fs.getPath(javaArgsFile.getAbsolutePath()), \"String_Node_Str\".getBytes(Charset.defaultCharset()), StandardOpenOption.CREATE);... |
"public static Collection<Object[]> checkTestDirProperty(boolean isBadTest, String root) {\n String dir = System.getProperty(Harness.TEST_DIR_FLAG);\n if (dir == null) {\n dir = ClassLoader.getSystemResource(root).getFile();\n }\n return makeTests(isBadTest, dir);\n}\n"
|
"private void initRecordDialog() {\n if (null == recordIndicator) {\n recordIndicator = new Dialog(getContext(), R.style.chat_record_button_toast_dialog_style);\n view = inflate(getContext(), R.layout.chat_record_layout, null);\n imageView = (ImageView) view.findViewById(R.id.imageView);\n ... |
"private static double _getNetworkDelay(IOPort port) throws IllegalActionException {\n Parameter parameter = (Parameter) ((NamedObj) port).getAttribute(\"String_Node_Str\");\n if (parameter != null) {\n return Double.valueOf(((DoubleToken) parameter.getToken()).doubleValue());\n }\n return 0.0;\n}\n"... |
"public String NIFType(String text, NEDAlgo_HITS agdistis) throws IOException {\n org.aksw.gerbil.transfer.nif.Document document = null;\n String nifDocument = \"String_Node_Str\";\n NIFParser nifParser = new NIFParser();\n String textWithMentions = \"String_Node_Str\";\n List<MeaningSpan> annotations = ... |
"default boolean mapEquals(Object o) {\n if (o == this)\n return true;\n if (!(o instanceof Map))\n return false;\n Map<?, ?> m = (Map<?, ?>) o;\n if ((m instanceof ChronicleMap ? ((ChronicleMap) m).longSize() : m.size()) != longSize())\n return false;\n try {\n return forEach... |
"private void dumpMessage(MessageTrace message, PrintWriter out) throws Exception {\n ByteArrayInputStream bais = new ByteArrayInputStream(message.getMessage(true).getBytes());\n StreamSource ss = new StreamSource(bais);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n StreamResult sr = new Str... |
"public static void main(String[] args) {\n int repeats = 1;\n int warmups = 0;\n int extraCycles = 2048;\n NAR n = new DefaultNARBuilder().build();\n Collection c = NALTest.params();\n while (true) {\n for (Object o : c) {\n String examplePath = (String) ((Object[]) o)[0];\n ... |
"private void createGettersAndSetters(MethodAttribute<?, ?> attribute, Class<?> clazz, CtClass cc, Method getter, Method setter, CtField initialStateField, CtField dirtyStateField, int initialStateIndex, int dirtyStateIndex, CtField attributeField) throws CannotCompileException, NotFoundException {\n SignatureAttrib... |
"public void refreshFigure() {\n int color = getBackgroundColor((MasterPageHandle) getModel());\n getFigure().setBackgroundColor(getBackGroundColor(color));\n Dimension size = getMasterPageSize((MasterPageHandle) getModel());\n Rectangle bounds = new Rectangle(0, 0, size.width - 1, size.height - 1);\n ((... |
"private boolean checkPermissions() {\n if (ActivityCompat.checkSelfPermission(this.getContext(), Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n FragmentCompat.requestPermissions(fragment, new String[] { Manifest.permission.WRITE_EXTERNAL_STORAGE }, WRITE_EXTERNAL_PERMIS... |
"public RPCResponse<Boolean> internal_cleanup_is_running(InetSocketAddress server, String password) {\n xtreemfs_cleanup_is_runningRequest rq = new xtreemfs_cleanup_is_runningRequest();\n UserCredentials creds = new UserCredentials(\"String_Node_Str\", new StringSet(new String[] { \"String_Node_Str\" }), password... |
"public IMetadataTable getMetadataTable() {\n if (source != null && this.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {\n INodeConnector sourceNodeConnector = getSourceNodeConnector();\n if (sourceNodeConnector != null) {\n if (sourceNodeConnector.isMultiSchema()) {\n ... |
"protected boolean localize(QrCode.Alignment pattern, float guessX, float guessY) {\n for (int i = 0; i < arrayY.length; i++) {\n float x = guessX - 1.5f + i * 3f / 12.0f;\n float y = guessY - 1.5f + i * 3f / 12.0f;\n gridToImage.compute(x, guessY, pixel);\n arrayX[i] = interpolate.get(pi... |
"public int getInvokeOpcode() {\n if ((modifiers & Modifiers.STATIC) != 0) {\n return Opcodes.INVOKESTATIC;\n }\n if ((modifiers & Modifiers.PRIVATE) == Modifiers.PRIVATE) {\n return Opcodes.INVOKESPECIAL;\n }\n if (this.theClass.isInterface()) {\n return Opcodes.INVOKEINTERFACE;\n ... |
"public String generateVariableDeclaration() throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n CompositeActor container = (CompositeActor) _director.getContainer();\n GenericCodeGenerator codeGenerator = getCodeGenerator();\n {\n CodeGeneratorAdapter adapterObject = codeGene... |
"public void open(Map stormConfig) {\n if (stormConfig.containsKey(SidelineSpoutConfig.FAILED_MSG_RETRY_MANAGER_MAX_RETRIES)) {\n maxRetries = ((Number) stormConfig.get(SidelineSpoutConfig.FAILED_MSG_RETRY_MANAGER_MAX_RETRIES)).intValue();\n }\n if (spoutConfig.containsKey(SidelineSpoutConfig.FAILED_MSG... |
"public void moveLeft(float percent) {\n releaseEdgeEffects();\n computeScrollSurfaceSize(mSurfaceSizeBuffer);\n mScrollerStartViewport.set(mCurrentViewport);\n float moveDistance = mContentRect.width() * percent;\n int startX = (int) (mSurfaceSizeBuffer.x * (mScrollerStartViewport.left - Viewport.AXIS_X... |
"private Draft getDraft(String protocol, CallbackContext callbackContext) {\n Draft draft = new Draft_10();\n if (protocol != \"String_Node_Str\") {\n String draftName = draftMap.get(protocol);\n if (draftName != null) {\n try {\n Class<?> clazz = Class.forName(draftName);\... |
"public void removeVertex(Vertex vertex) {\n vertex.remove();\n}\n"
|
"public long getSUID() {\n try {\n Field[] fields = getFields();\n Method[] methods = getMethods();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n DataOutputStream dos = new DataOutputStream(baos);\n dos.writeUTF(getClassName());\n int classmods = 0;\n ... |
"public void performAction(Action action) throws RemoteException {\n if (action == null)\n return;\n final String type = action.getType();\n if (type == null)\n return;\n Bundle data = action.getData();\n switch(type) {\n case MissionActions.ACTION_GENERATE_DRONIE:\n final... |
"private static Method findMethod(Class<?> realClass, String methodName, String methodDesc) throws NoSuchMethodException {\n Class<?>[] parameterTypes = TypeDescriptor.getParameterTypes(methodDesc);\n Class<?> ownerClass = realClass;\n while (true) {\n try {\n Method method = ownerClass.getDe... |
"public void to(URL url) {\n ((BrowserWindow) handle).to(url);\n}\n"
|
"public void doSave(IProgressMonitor monitor) {\n super.doSave(monitor);\n if (!PluginChecker.isTIS()) {\n return;\n }\n NexusServerBean nexusServerBean = TalendLibsServerManager.getInstance().getCustomNexusServer();\n if (nexusServerBean == null) {\n return;\n }\n if (GlobalServiceRe... |
"public void testSelectOverloadUnion1() throws TypeMismatchException {\n FunctionType intFn = makeSimpleFT(Types.F_INT);\n FunctionType floatFn = makeSimpleFT(Types.F_FLOAT);\n FnID intFnID = new FnID(\"String_Node_Str\", \"String_Node_Str\");\n FnID floatFnID = new FnID(\"String_Node_Str\", \"String_Node_S... |
"public void run() {\n for (IRFunction irFunction : ir.getFuncs().values()) {\n List<BasicBlock> reversePreOrder = irFunction.getReversePreOrder();\n for (BasicBlock bb : reversePreOrder) {\n for (IRInstruction inst = bb.getFirstInst(); inst != null; inst = inst.getNextInst()) {\n ... |
"public VolumeVO allocVolume(CreateVolumeCmd cmd) throws InvalidParameterValueException, PermissionDeniedException, ResourceAllocationException {\n Account account = UserContext.current().getAccount();\n String accountName = cmd.getAccountName();\n Long domainId = cmd.getDomainId();\n Account targetAccount ... |
"public HitInfo getIndex(double x, double y) {\n final double leftWidth = leftPane == null ? 0.0 : snapSizeX(leftPane.prefWidth(getSkinnable().getHeight()));\n return super.getIndex(x - leftWidth, y);\n}\n"
|
"public void run() {\n try {\n for (ThreadConfinedMethods method : ThreadConfinedMethods.values()) {\n try {\n callThreadConfinedMethod(query, method);\n fail(\"String_Node_Str\");\n } catch (IllegalStateException e) {\n assertEquals(expectedM... |
"public static String getPointsList(List<SubmissionAttributes> subs, final boolean normalized) {\n String result = \"String_Node_Str\";\n Collections.sort(subs, new Comparator<SubmissionAttributes>() {\n public int compare(SubmissionAttributes s1, SubmissionAttributes s2) {\n if (normalized)\n ... |
"public Node<TYPE> buildFullNodeTree(int depth) {\n Node<TYPE> root;\n if (depth == 0) {\n int randomIndex = (int) Math.floor(Math.random() * model.getTerminals().size());\n root = (Node<TYPE>) model.getTerminals().get(randomIndex).clone();\n } else {\n int randomIndex = (int) Math.floor(M... |
"public boolean initApp(AppProperties props) {\n m_props = props;\n applyComponentOrientation(ComponentOrientation.getOrientation(Locale.getDefault()));\n try {\n session = AppViewConnection.createSession(m_props);\n } catch (BasicException e) {\n JMessageDialog.showMessage(this, new MessageIn... |
"public void addPort(String name) throws PtalonRuntimeException {\n String uniqueName = _actor.uniqueName(name);\n try {\n TypedIOPort port = new TypedIOPort(_actor, uniqueName);\n port.setInput(true);\n port.setOutput(true);\n if (_currentIfTree.getType(name).equals(\"String_Node_Str\... |
"public void selectionChanged(SelectionChangedEvent event) {\n if (dialogType != SUGGEST_TYPE) {\n IStructuredSelection selection = (IStructuredSelection) event.getSelection();\n Object[] array = selection.toArray();\n if (array.length == 1) {\n if (array[0] != null) {\n ... |
"private boolean fillBuffer(final int minSize) throws IOException {\n final int finalPos = this.pos + minSize;\n if (finalPos < this.buffer.length)\n return false;\n if (this.endStream)\n return true;\n this.sb.setLength(0);\n this.sb.append(new String(this.buffer, this.pos, this.buffer.len... |
"public final boolean isUnresolvedOrResolvedUnknown() {\n return isNoResolvedType() || (isNamedType() && isUnknownType());\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n LOG.info(\"String_Node_Str\");\n final NoteFinder noteFinder = Lookup.getDefault().lookup(NoteFinder.class);\n final List<Cancellable> link = new ArrayList<Cancellable>();\n final ProgressHandle myProgressHandle = ProgressHandleFactory.createHandle(\"String_No... |
"public void doWork(XMLHttpRequest aResponse) throws Exception {\n String responseType = aResponse.getResponseHeader(\"String_Node_Str\");\n if (responseType != null) {\n responseType = responseType.toLowerCase();\n if (responseType.contains(\"String_Node_Str\") || responseType.contains(\"String_Nod... |
"public void map(Chunk[] chks, NewChunk[] ncs) {\n int chunkSize = chks[0].len();\n Vec[] B_vecs = B.vecs();\n long start = chks[0].start();\n for (int c = 0; c < chks.length; c++) {\n for (int r = 0; r < chunkSize; r++) {\n ncs[c].addNum(opfn(op, chks[c].atd(r), B_vecs[c].at(start + r)));... |
"private MappedClass addMappedClass(final MappedClass mc, final boolean validate) {\n if (validate) {\n mc.validate();\n }\n final List<Annotation> convertersList = mc.getAnnotations(Converters.class);\n if (convertersList != null) {\n for (Annotation a : convertersList) {\n final C... |
"public void fillArc(ArcRenderEvent are) throws ChartException {\n if (iv != null) {\n iv.modifyEvent(are);\n }\n final Fill flBackground = validateMultipleFill(are.getBackground());\n if (isFullTransparent(flBackground)) {\n return;\n }\n if (flBackground instanceof ColorDefinition) {\n... |
"public static INDArray repeat(INDArray n, int num) {\n List<INDArray> list = new ArrayList<>();\n for (int i = 0; i < num; i++) list.add(n.dup());\n int[] nShape = n.shape();\n int[] shape = n.isColumnVector() ? new int[] { n.shape()[0] } : nShape;\n int[] retShape = Ints.concat(new int[] { num }, shape... |
"private TextView getTextView(final MarkdownList pMarkDownList, final CharSequence pText, final int pIndex) {\n final TextView textView = new TextView(mContext, null, R.attr.MarkdownListStyle);\n textView.setMovementMethod(LinkMovementMethod.getInstance());\n if (pMarkdownList.isOrdered()) {\n textView.... |
"public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n try {\n monitor.beginTask(\"String_Node_Str\", toAddViewableList.size());\n for (Iterator<String> iter = toAddViewableList.iterator(); iter.hasNext(); ) {\n String[] keyPath = new String[] {... |
"private void findText() {\n final int length = getText().length();\n if (length < 2) {\n return;\n }\n if (timer != null) {\n timer.stop();\n timer = null;\n }\n timer = new Timer(100, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Appli... |
"public void run(final Config conf) throws Exception {\n File spriteElementPath = resolve(get(\"String_Node_Str\").toString());\n if (!spriteElementPath.exists()) {\n throw new FileNotFoundException(spriteElementPath.toString());\n }\n File workdir = new File(Try.of(() -> conf.getString(\"String_Node... |
"public SopremoModule asElementaryOperators() {\n final SopremoModule sopremoModule = new SopremoModule(this.getName(), 2, 1);\n JsonStream input = sopremoModule.getInput(0);\n JsonStream nullInput = sopremoModule.getInput(1);\n int n = 3;\n Partitioning partitioning = new Partitioning().withInputs(input... |
"private void apiState(String id, HttpServletRequest req, HttpServletResponse resp) throws IOException {\n if (!req.getMethod().equals(METHOD_PUT)) {\n apiServerError(req, resp, HueErrorResponse.METHOD_NOT_AVAILABLE, \"String_Node_Str\");\n return;\n }\n try {\n Item item = itemRegistry.ge... |
"public void testHttpUrnRequest() {\n for (int i = 0; i < _fileManager.getNumFiles(); i++) {\n try {\n FileDesc fd = _fileManager.get(i);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n baos.write(\"String_Node_Str\".getBytes());\n baos.write(fd.getSHA... |
"public final void compact() {\n resize(size);\n}\n"
|
"public void concurrentUpdateAppConfig() throws Exception {\n final VisibleAppConfig visibleAppConfig = new VisibleAppConfig();\n final InvisibleAppConfig invisibleAppConfig = new InvisibleAppConfig();\n int concurrent = 100;\n int loop = 10000;\n logger.log(Level.WARNING, \"String_Node_Str\", new Object... |
"private static boolean openLog(String logPath) {\n boolean result = false;\n String logName;\n CoordinatorLogStateHolder logStateHolder = getStateHolder(logPath);\n if (logStateHolder.log == null) {\n logStateHolder.log = new Log(logPath);\n if (!logStateHolder.log.initialise()) {\n ... |
"public void clientRequestEquipmentData(ISkinIdentifier skinIdentifier, EntityPlayerMP player) {\n SkinRequestMessage queueMessage = new SkinRequestMessage(skinIdentifier, player);\n synchronized (messageQueueLock) {\n messageQueue.add(queueMessage);\n }\n}\n"
|
"private void createPhaseButton(String name) {\n if (hoverButtons == null) {\n hoverButtons = new LinkedHashMap<>();\n }\n Rectangle rect = new Rectangle(36, 36);\n HoverButton button = new HoverButton(\"String_Node_Str\", ImageManagerImpl.getInstance().getPhaseImage(name), rect);\n button.setTool... |
"public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {\n final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();\n final ServiceModuleLoader deploymentModuleLoader = deploymentUnit.getAttachment(Attachments.SERVICE_MODULE_LOADER);\n final List<... |
"private boolean isInstalled(Driver driver) {\n Path path = Paths.get(installationDirectory.getPath(), driver.getFileName());\n return path.toFile().exists();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.