content stringlengths 40 137k |
|---|
"protected void setup(Context context) throws IOException, InterruptedException {\n super.setup(context);\n Path uHatPath = new Path(context.getConfiguration().get(PROP_UHAT_PATH));\n Path sigmaPath = new Path(context.getConfiguration().get(PROP_SIGMA_PATH));\n FileSystem fs = FileSystem.get(uHatPath.toUri(... |
"public int colorMultiplier(IBlockAccess world, BlockPos pos, int renderPass) {\n TileLeaves leaves = getLeafTile(world, pos);\n if (leaves == null) {\n return super.colorMultiplier(world, pos, 0);\n }\n int colour = leaves.getFoliageColour(Proxies.common.getClientInstance().thePlayer);\n if (colo... |
"public void testSystemExitFromClientMainWithNoDD() throws Exception {\n String APP_NAME = \"String_Node_Str\";\n JavaArchive jar = ShrinkHelper.buildJavaArchive(APP_NAME + \"String_Node_Str\", \"String_Node_Str\");\n EnterpriseArchive app = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + \"String_Node_S... |
"private void updateRecentsTasks() {\n RecentsTaskLoader loader = Recents.getTaskLoader();\n RecentsTaskLoadPlan plan = RecentsImpl.consumeInstanceLoadPlan();\n if (plan == null) {\n plan = loader.createLoadPlan(this);\n }\n RecentsConfiguration config = Recents.getConfiguration();\n RecentsAct... |
"public static boolean isPrice(String text) {\n if (NumberUtil.isDouble(text)) {\n return true;\n }\n return text.trim().equalsIgnoreCase(FREE_TEXT);\n}\n"
|
"public void testErmaGradientLinearChainWithLoops() {\n FgAndVars fgv = FactorGraphsForTests.getLinearChainFgWithVars();\n FactorGraph fg = fgv.fg;\n ExplicitFactor loop0 = new ExplicitFactor(new VarSet(fgv.t0, fgv.t2));\n ExplicitFactor loop1 = new ExplicitFactor(new VarSet(fgv.w0, fgv.w2));\n ExplicitF... |
"public void arc(int ca, int cb, double ra, double rb, int da, int db, ArcType type) {\n if (ra <= 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + ra + \"String_Node_Str\");\n }\n if (rb <= 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + rb + \"String_Node_Str\");\... |
"private int getIsolatedUid(int uid) {\n if (PrivacyManager.isIsolated(uid))\n try {\n Class<?> cam;\n Object am;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n cam = mAm.getClass();\n am = mAm;\n } else {\n ... |
"private void jumpToQuestion(FormIndex questionIndex) {\n boolean newRepeat = false;\n if (questionIndex.isInForm() && !model.isIndexRelevant(questionIndex))\n throw new IllegalStateException();\n updatePins(questionIndex);\n IFormElement last = model.getForm().getChild(questionIndex);\n if (last ... |
"public void onClick(DialogInterface dialog, int which) {\n final EntityDelta delta = getSelectedEntityDelta();\n delta.markDeleted();\n bindTabs();\n bindHeader();\n}\n"
|
"public GDo leaveProjection(ScribNode parent, ScribNode child, Projector proj, ScribNode visited) throws ScribbleException {\n GDo gd = (GDo) visited;\n Role popped = proj.popSelf();\n Role self = proj.peekSelf();\n LDo projection = null;\n if (gd.roles.getRoles().contains(self)) {\n RoleArgList r... |
"public static void main(String[] args) {\n Map m = ConnectionDefinitionUtils.getConnectionDefinitionPropertiesAndDefaults(\"String_Node_Str\", \"String_Node_Str\");\n Set<Map.Entry> elements = m.entrySet();\n for (Map.Entry element : elements) {\n System.out.println(element.getKey() + \"String_Node_Str... |
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n Object value = unmarshalRecord.getCharacters().toString();\n boolean isCDATA = unmarshalRecord.isBufferCDATA();\n unmarshalRecord.resetStringBuffer();\n XMLField toWrite = xmlField;\n if (xmlField.isCDATA() != isCDA... |
"private void updateReltable(final Element elem) {\n final String hrefValue = elem.getAttribute(ATTRIBUTE_NAME_HREF);\n if (hrefValue.length() != 0) {\n if (changeTable.containsKey(resolveFile(filePath, hrefValue).getPath())) {\n String resulthrefValue = null;\n final String fragment ... |
"public void startRequest(DIRRequest rq) {\n try {\n final service_registerRequest request = (service_registerRequest) rq.getRequestMessage();\n final ServiceRegistry reg = request.getService();\n byte[] data = database.directLookup(DIRRequestDispatcher.DB_NAME, DIRRequestDispatcher.INDEX_ID_SER... |
"public boolean isDone() {\n return super.isDone();\n}\n"
|
"static void deleteInstances(List<PullRequestData> pullRequestDataList, GHPullRequest pullRequest) {\n Set<PullRequestInstance> prInstances = new HashSet<PullRequestInstance>();\n for (PullRequestData prData : pullRequestDataList) {\n prInstances.addAll(prData.getInstances());\n }\n List<String> term... |
"public String toString() {\n final StringBuffer buf = new StringBuffer(\"String_Node_Str\");\n String tType = \"String_Node_Str\";\n if (transformType == 0) {\n tType = \"String_Node_Str\";\n } else if (transformType == 1) {\n tType = \"String_Node_Str\";\n } else if (transformType == 2) {... |
"public void onListItemClick(ListView l, View v, int position, long id) {\n if (mIsScanRunning) {\n return;\n }\n String url = mNearbyDeviceAdapter.getItem(position);\n String urlToNavigateTo = url;\n if (mUrlToUrlMetadata.get(url) != null) {\n String siteUrl = mUrlToUrlMetadata.get(url).si... |
"public void run() {\n while (true) {\n try {\n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n socket.receive(packet);\n Packet type = Packet.getType(packet.getData());\n switch(type) {\n case S... |
"public void selectionChanged(IWorkbenchPart part, ISelection selection) {\n clearContainer();\n boolean isNeedcreateDefault = true;\n try {\n if (part instanceof DQRespositoryView) {\n if (selection.equals(currentSelection)) {\n return;\n } else {\n c... |
"private void _init() {\n try {\n Scheduler scheduler = new JoglScheduler(workspace());\n setScheduler(scheduler);\n } catch (Exception ex) {\n throw new InternalErrorException(this, ex, \"String_Node_Str\");\n }\n try {\n iterationInterval = new Parameter(this, \"String_Node_Str... |
"public void run() {\n boolean success = false;\n try {\n LoggingContextAccessor.setLoggingContext(context.getLoggingContext());\n LOG.info(\"String_Node_Str\", context.toString(), Arrays.toString(sparkSubmitArgs));\n ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader()... |
"public void renderInfoArea(GL2 gl, Vec3f vecLowerLeft, boolean bFirstTime, float fZValue) {\n String sCurrent;\n float fXLowerLeft = vecLowerLeft.x();\n float fYLowerLeft = vecLowerLeft.y();\n int iCount = 0;\n while (iCount < 2) {\n if (iCount == 0) {\n gl.glColor4fv(InfoAreaRenderSty... |
"public static List<String> prune(List<String> terms, boolean ignoreSymbols, boolean ignoreDigits, boolean lowercase, int minChar, int maxChar, int minTokens, int maxTokens) {\n List<String> result = new ArrayList<>();\n for (String term : terms) {\n if (ignoreDigits)\n term = term.replaceAll(di... |
"private void setFilters(Intent intent) {\n currentDistanceInKilometers = intent.getIntExtra(ActivityFilter.RESULT_DISTANCE, ActivityFilter.DEFAULT_DISTANCE_IN_KILOMETERS);\n state.filters = intent.getStringArrayExtra(ActivityFilter.RESULT_FILTER_ARRAY);\n Log.d(TAG, \"String_Node_Str\" + currentDistanceInKilo... |
"private void refreshLineChart() {\n final LineData data = new LineData(xLineVals1);\n Calendar calendar = Calendar.getInstance();\n mRecordManager.getYearRecordDetail(calendar.get(Calendar.YEAR), new Handler() {\n\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n ... |
"private List<UpdateResult> checkNodePropertiesFromRepository(final Node node, boolean onlySimpleShow) {\n if (node == null) {\n return Collections.emptyList();\n }\n List<UpdateResult> propertiesResults = new ArrayList<UpdateResult>();\n String propertyType = (String) node.getPropertyValue(EParamete... |
"public static <T extends SharedHashMap<Integer, CharSequence>> T newTcpSocketShmIntString(final byte identifier, final int serverPort, final InetSocketAddress... InetSocketAddress) throws IOException {\n final TcpReplicatorBuilder tcpReplicatorBuilder = new TcpReplicatorBuilder(serverPort, InetSocketAddress).heartB... |
"public void setLocation(final Point location) {\n if (location == null || this.location.equals(location)) {\n return;\n }\n this.location = location;\n nodeLabel.setLocation(location);\n nodeError.setLocation(location);\n nodeProgressBar.setLocation(location);\n firePropertyChange(LOCATION,... |
"protected XMLDescriptor findReferenceDescriptor(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, DatabaseMapping mapping, UnmarshalKeepAsElementPolicy policy) {\n XMLDescriptor returnDescriptor = null;\n if (atts != null) {\n XMLContext xmlContext = unmarshalRecord.getUnmarsh... |
"public void createControl(final Composite parent) {\n container = new Composite(parent, SWT.NULL);\n final GridLayout layout = new GridLayout();\n container.setLayout(layout);\n nCols = 2;\n layout.numColumns = nCols;\n final Label label1 = new Label(container, SWT.NULL);\n if (!targetNode.isEdita... |
"public ArrayList<Property> getFieldPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic) {\n ArrayList<Property> properties = new ArrayList<Property>();\n if (cls == null) {\n return properties;\n }\n boolean hasAnyAttribteProperty = false;\n for (Iterator<JavaField> fieldIt = cls.... |
"public void testOpExecutionerTransformOps() throws Exception {\n final DataBuffer.AllocationMode origAlloc = Nd4j.alloc;\n DefaultOpExecutioner opExec = (DefaultOpExecutioner) Nd4j.getExecutioner();\n List<Class<? extends TransformOp>> testClasses = new ArrayList<>();\n testClasses.add(AddOp.class);\n t... |
"public boolean execute() {\n try {\n IProject rootProject = DQStructureManager.getInstance().createNewProject(org.talend.dataquality.PluginConstant.getRootProjectName());\n rootProject.delete(true, true, new NullProgressMonitor());\n rootProject = DQStructureManager.getInstance().createNewProje... |
"public void handleAverageRequestsInFlightEvent(AverageRequestsInFlightEvent averageRequestsInFlightEvent) {\n String networkPartitionId = averageRequestsInFlightEvent.getNetworkPartitionId();\n String clusterId = averageRequestsInFlightEvent.getClusterId();\n String clusterInstanceId = averageRequestsInFlight... |
"public static void setMapSize(int width, int height) {\n PathFinder.width = width;\n PathFinder.size = width * height;\n distance = new int[size];\n goals = new boolean[size];\n queue = new int[size];\n maxVal = new int[size];\n Arrays.fill(maxVal, Integer.MAX_VALUE);\n dir = new int[] { -1, +1... |
"public NutResource get_material(String media_id) {\n String url = String.format(\"String_Node_Str\", getAccessToken());\n Request req = Request.create(url, METHOD.POST);\n NutMap body = new NutMap();\n body.put(\"String_Node_Str\", media_id);\n req.setData(Json.toJson(body));\n final Response resp = ... |
"private void initLayoutCenter() {\n sideArchThickness = viewFrustum.getWidth() * ARCH_STAND_WIDTH_PERCENT;\n archInnerWidth = viewFrustum.getWidth() * (ARCH_STAND_WIDTH_PERCENT + 0.05f);\n archTopY = viewFrustum.getHeight() * ARCH_TOP_PERCENT;\n archBottomY = viewFrustum.getHeight() * ARCH_BOTTOM_PERCENT;\... |
"public synchronized static Map initViewerProps(ServletContext context, Map props) {\n if (props == null)\n props = new HashMap();\n String file = context.getInitParameter(INIT_PARAM_CONFIG_FILE);\n if (file == null || file.trim().length() <= 0)\n file = IBirtConstants.DEFAULT_VIEWER_CONFIG_FILE;... |
"private void testAdapterLifeCycle(String namespaceId, String templateId, String adapterName, AdapterConfig adapterConfig) throws Exception {\n String deleteURL = getVersionedAPIPath(\"String_Node_Str\" + templateId, Constants.Gateway.API_VERSION_3_TOKEN, namespaceId);\n HttpResponse response = createAdapter(name... |
"public void sortLinkList() {\n Collections.sort(linkList, new Comparator() {\n public int compare(Object a, Object b) {\n if (a instanceof DownloadLink && b instanceof DownloadLink) {\n if (((DownloadLink) a).extractFileNameFromURL().compareToIgnoreCase(((DownloadLink) b).extractFil... |
"public void init(String url) {\n initMenuBar();\n setJMenuBar(menuBar);\n bodyPanel = new OTViewContainerPanel(this, null);\n if (showTree) {\n dataTreeModel = new SimpleTreeModel();\n folderTreeModel = new SimpleTreeModel();\n updateTreePane();\n getContentPane().add(splitPane)... |
"public void setUp() throws Exception {\n DataExplorerTestHelper.initDataExplorer();\n patternExplorer = new PatternExplorer();\n PatternMatchingIndicator indicator = mock(PatternMatchingIndicator.class);\n when(indicator.eClass()).thenReturn(null);\n ModelElement element = mock(ModelElement.class);\n ... |
"public void finish(IBinder token) {\n synchronized (this) {\n if (mImpl == null) {\n Slog.w(TAG, \"String_Node_Str\");\n return;\n }\n final int callingPid = Binder.getCallingPid();\n final int callingUid = Binder.getCallingUid();\n final long caller = Binder... |
"private String regQuery(String key, String value, int mode) {\n String result = \"String_Node_Str\";\n try {\n ProcessBuilder pb = new ProcessBuilder(\"String_Node_Str\", \"String_Node_Str\", key, \"String_Node_Str\", value);\n Process pr = pb.start();\n BufferedReader input = new BufferedRe... |
"protected void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_fragment_wrapper);\n if (savedInstanceState == null) {\n ExchangeRatesFragment fragment = new ExchangeRatesFragment();\n fragment.setArguments(getIntent().getExtras... |
"protected void organizeVerticalAlignment() {\n final Style contentStyle = content.getStyle();\n final Style alignerStyle = aligner.getStyle();\n contentStyle.clearDisplay();\n contentStyle.clearProperty(\"String_Node_Str\");\n alignerStyle.setDisplay(Style.Display.NONE);\n switch(verticalAlignment) {... |
"public static void stopDiscovery() throws IOException {\n INSTANCE.doStopDiscovery();\n}\n"
|
"public ConfiguredAspect create(ConfiguredTarget base, RuleContext ruleContext, AspectParameters params) throws InterruptedException {\n ConfiguredAspect.Builder result = new ConfiguredAspect.Builder(this, params, ruleContext);\n Function<Artifact, Artifact> desugaredJars = desugarJarsIfRequested(base, ruleContex... |
"public void addSourceToTargetMap(MappableItem sourceItem, MappableItem targetItem) {\n sourceToCdmMaps.add(new ItemToItemMap(sourceItem, targetItem));\n}\n"
|
"private static Properties loadProperties(String propertiesFile) throws FileNotFoundException {\n try {\n Properties properties = new Properties();\n File propFile = new File(propertiesFile);\n String propFilePath = propFile.getAbsolutePath();\n FileInputStream fis = new FileInputStream(p... |
"public static Index create(InputSplit genericSplit, TaskAttemptContext context) {\n LOG.setLevel(Level.DEBUG);\n Configuration conf = context.getConfiguration();\n Class<?> indexClass = conf.getClass(\"String_Node_Str\", null);\n Class<?> guiceModule = conf.getClass(\"String_Node_Str\", null);\n String ... |
"private void mavenBuildCodeProjectPom(String goals, String module) {\n IFile childModulePomFile;\n if (TalendMavenContants.CURRENT_PATH.equals(module)) {\n childModulePomFile = this.getProject().getFile(MavenConstants.POM_FILE_NAME);\n } else {\n IFolder moduleFolder = this.getProject().getFolde... |
"private synchronized URI getConnectionURI() throws IOException, URISyntaxException {\n if (this.connectionURI != null) {\n return this.connectionURI;\n }\n final OutboundSocketBinding destinationOutboundSocket = this.destinationOutboundSocketBindingInjectedValue.getValue();\n final InetAddress desti... |
"private ParsingProblem buildProgram(DmvTrainCorpus corpus, DmvModel model) throws IloException {\n ParsingProblem pp = new ParsingProblem();\n pp.arcRoot = new IloNumVar[corpus.size()][];\n pp.arcChild = new IloNumVar[corpus.size()][][];\n pp.flowRoot = new IloNumVar[corpus.size()][];\n pp.flowChild = n... |
"public boolean savePost() {\n EditText titleET = (EditText) findViewById(R.id.title);\n String title = titleET.getText().toString();\n WPEditText contentET = (WPEditText) findViewById(R.id.postContent);\n String content = EscapeUtils.unescapeHtml(WPHtml.toHtml(contentET.getText()));\n EditText passwordE... |
"public void run(SolrQueryRequest locReq, BatchHandlerRequestQueue queue) throws Exception {\n SolrParams params = locReq.getParams();\n String jobid = params.get(\"String_Node_Str\");\n String workDir = params.get(\"String_Node_Str\");\n File input = new File(workDir + \"String_Node_Str\" + jobid + \"Strin... |
"private void setupBorders() {\n LinearLayout list = (LinearLayout) findViewById(R.id.listBorders);\n Vector<FilterRepresentation> borders = new Vector<FilterRepresentation>();\n ImageButton borderButton = (ImageButton) findViewById(R.id.borderButton);\n borders.add(new FilterImageBorderRepresentation(0));\... |
"public CacheableLocator createLocator(AnnotatedElement annotatedElement) {\n TimeOutDuration customDuration;\n if (annotatedElement.isAnnotationPresent(WithTimeout.class)) {\n WithTimeout withTimeout = annotatedElement.getAnnotation(WithTimeout.class);\n customDuration = new TimeOutDuration(withTim... |
"public void destroy() {\n try {\n if (!freed.get()) {\n JCuda.cudaFree(pointer);\n freed = true;\n }\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n}\n"
|
"public boolean rollback() throws IOException {\n HttpClient client = new HttpClient();\n client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n HttpMethod method = new DeleteMethod(url + \"String_Node_Str\" + id);\n method.setDoAuthentication(true);\n try... |
"public boolean isIndexColumn() {\n if (this.columnHintHandle != null) {\n return columnHintHandle.isIndexColumn();\n else\n return (Boolean) columnHint.getProperty(null, ColumnHint.INDEX_COLUMN_MEMBER);\n}\n"
|
"public Bytes readBytes() throws IOException {\n long start = delegate.getFilePointer();\n if (start == 226) {\n start = delegate.getFilePointer();\n }\n int size = readInt();\n byte[] b = new byte[size];\n int totalReadSize = 0;\n int readSize = read(b, 0, b.length);\n totalReadSize = re... |
"public void reset() {\n String value = getExternalSetValue();\n if (useHistory)\n historyManager.addHistoryEntry(historyManagerKeyForThisNode, value, new Date());\n if (COMBOBOX_PANEL.equals(renderMode)) {\n fillComboBox();\n }\n setDefaultValue();\n}\n"
|
"public Iterator<T> iterator() {\n return CollectionUtils.safetyIterator(results);\n}\n"
|
"public AFPChain align(Atom[] ca1, Atom[] ca2, Object parameters) throws StructureException {\n if (parameters == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (!(parameters instanceof SmithWaterman3DParameters))\n throw new IllegalArgumentException(\"String_Node_Str... |
"public String toString() {\n getReadWriteLock().readLock().lock();\n try {\n return source.toString();\n } finally {\n getReadWriteLock().readLock().unlock();\n }\n}\n"
|
"public void addRenderEngine(SRenderEnginePluginConfiguration renderEngine) throws ServerException, UserException {\n requireRealUserAuthentication();\n DatabaseSession session = getBimServer().getDatabase().createSession();\n try {\n RenderEnginePluginConfiguration convert = getBimServer().getSConverte... |
"public Response getCellResource(String wfsName, String path) {\n LOGGER.fine(\"String_Node_Str\" + wfsName + \"String_Node_Str\" + path);\n WFS wfs = WFSManager.getWFSManager().getWFS(wfsName);\n if (wfs == null) {\n logger.warning(\"String_Node_Str\" + wfsName);\n ResponseBuilder rb = Response.... |
"private void write(Consumer<BytesChronicleMap> c) {\n final BytesChronicleMap bytesMap = bytesMap(channelId);\n if (bytesMap == null) {\n LOG.error(\"String_Node_Str\" + channelId + \"String_Node_Str\");\n return;\n }\n bytesMap.output = null;\n final Bytes<?> bytes = outWire.bytes();\n ... |
"public NameAndLocation findPreviousTypeNameToken(ISourceBuffer buffer, int start) {\n int current = Math.min(start, buffer.length()) - 1;\n while (current >= 0 && !Character.isWhitespace(buffer.charAt(current)) && Character.isJavaIdentifierPart(buffer.charAt(current))) {\n current--;\n }\n if (curre... |
"public void onAuthenticationChanged(OnAuthenticationChanged event) {\n if (event.isError()) {\n endProgress();\n AppLog.e(T.API, \"String_Node_Str\" + event.error.type + \"String_Node_Str\" + event.error.message);\n mLoginListener.track(AnalyticsTracker.Stat.LOGIN_FAILED, event.getClass().getSi... |
"public void refreshDrawer() {\n Menu menu = navView.getMenu();\n menu.clear();\n actionViewStateManager.deselectCurrentActionView();\n int order = 0;\n ArrayList<String> storageDirectories = mainActivity.getStorageDirectories();\n storage_count = 0;\n for (String file : storageDirectories) {\n ... |
"public void setInputArray(IOPort port, Actor actor) throws IllegalActionException {\n if (!_dynamic && _buffer != null) {\n fillParameters(actor, port);\n }\n}\n"
|
"public void downloadFromExternal(boolean force) throws Exception {\n int oldVersion = Utils.getInternalSettingInt(mContext, Const.CAFETERIA_DB_VERSION, 1);\n if (oldVersion < 2) {\n db.execSQL(\"String_Node_Str\");\n db.execSQL(\"String_Node_Str\");\n Utils.setInternalSetting(mContext, Const... |
"protected String getSchemaURL() {\n return TagNames.JAVAEE_NAMESPACE + \"String_Node_Str\" + getSystemID();\n}\n"
|
"public String getAuthenticityToken() {\n if (!data.containsKey(AUTHENTICITY_KEY)) {\n put(AUTHENTICITY_KEY, UUID.randomUUID().toString());\n }\n return data.get(AUTHENTICITY_KEY);\n}\n"
|
"protected ResponseEntity queryRedirectDomainOrNs(QueryParam queryParam, String paramName) {\n LOGGER.debug(\"String_Node_Str\", queryParam);\n RedirectResponse redirect = redirectService.queryDomain(queryParam);\n String servicePartUri = QueryUri.DOMAIN.getName();\n if (queryParam instanceof NameserverQuer... |
"public int compare(CharSequence s1, CharSequence s2) {\n if (s1 instanceof CompactString && s2 instanceof CompactString) {\n CompactString cs1 = (CompactString) s1;\n CompactString cs2 = (CompactString) s2;\n return cs1.compareTo(cs2);\n }\n int len1 = s1.length();\n int len2 = s2.leng... |
"public static Path[] listOutputFiles(FileSystem fs, Path outpath) throws IOException {\n Collection<Path> outpaths = Lists.newArrayList();\n for (FileStatus s : fs.listStatus(outpath, PathFilters.logsCRCFilter())) {\n if (!s.isDir() && !s.getPath().getName().startsWith(\"String_Node_Str\")) {\n ... |
"private void addIdentity(Identity idt) {\n for (Identity e : walletInMem.getIdentities()) {\n if (e.ontid.equals(idt.ontid)) {\n return;\n }\n }\n wallet.getIdentities().add(idt);\n}\n"
|
"public void testSetScopeToResourceTestCase() throws Exception {\n String APIContext = \"String_Node_Str\";\n String tags = \"String_Node_Str\";\n String url = \"String_Node_Str\";\n String description = \"String_Node_Str\";\n apiPublisher.login(user.getUserName(), user.getPassword());\n APIRequest ap... |
"public GChoice leaveProjection(ScribNode parent, ScribNode child, Projector proj, ScribNode visited) throws ScribbleException {\n GChoice gc = (GChoice) visited;\n List<LProtocolBlock> blocks = gc.getBlocks().stream().map((b) -> (LProtocolBlock) ((ProjectionEnv) b.del().env()).getProjection()).collect(Collectors... |
"private void spawnMob(World world, int x, int y, int z) {\n if (GraveStoneMobSpawn.checkChance(world.rand)) {\n TileEntityGSGraveStone tileEntity = (TileEntityGSGraveStone) world.getBlockTileEntity(x, y, z);\n if (tileEntity != null) {\n Entity mob = GraveStoneMobSpawn.getMobEntity(world, t... |
"public void updateListView() {\n MainActivity activity = (MainActivity) getActivity();\n Radio playingRadio = null;\n if (activity.getCurrentPlayingItem() instanceof Radio)\n playingRadio = (Radio) activity.getCurrentPlayingItem();\n RadioArrayAdapter adapter = new RadioArrayAdapter(this, Radio.getR... |
"public T next() {\n try {\n T t = varList.get(offset);\n offset += varList.entityFactory.getLength(t);\n index++;\n return t;\n } catch (Exception ex) {\n return null;\n }\n}\n"
|
"public int getPhase() {\n return phase;\n}\n"
|
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final Project other = (Project) obj;\n if (this.project == null) {\n if (other.project != ... |
"static Boolean restoreMuteState(Phone phone) {\n Connection c = phone.getForegroundCall().getEarliestConnection();\n if (c != null) {\n Boolean shouldMute;\n if (phone.getPhoneName().equals(\"String_Node_Str\") && PhoneApp.getInstance().cdmaPhoneCallState.getCurrentCallState() == CdmaPhoneCallState... |
"public void initialize() throws IllegalActionException, NameDuplicationException {\n if (_initialized) {\n return;\n }\n if (initialParametersURL == null) {\n throw new IllegalActionException(this, \"String_Node_Str\" + \"String_Node_Str\");\n }\n URL initialParameters = getClass().getClas... |
"public void initialize(FormEditor editor) {\n super.initialize(editor);\n String[] supportTypes = PatternLanguageType.getAllLanguageTypes();\n allDBTypeList = new ArrayList<String>();\n allDBTypeList.addAll(Arrays.asList(supportTypes));\n remainDBTypeList = new ArrayList<String>();\n remainDBTypeList... |
"private Node createExternFunction(Node exportedFunction) {\n Node paramList = NodeUtil.getFunctionParameters(exportedFunction).cloneTree();\n Node param = paramList.getFirstChild();\n while (param != null && param.isName()) {\n String originalName = param.getOriginalName();\n if (originalName !=... |
"public int doStartTag() throws JspException {\n if (null != snip) {\n Map dublinCore = DublinCore.generate(snip);\n try {\n JspWriter out = pageContext.getOut();\n if (\"String_Node_Str\".equals(format)) {\n Iterator iterator = dublinCore.keySet().iterator();\n ... |
"public void testCatchingUp() throws Exception {\n init(true);\n for (int i = 1; i <= 2; i++) as.put(i, i);\n assertSame(as, bs, cs);\n close(true, true, c);\n for (int i = 3; i <= 5; i++) as.put(i, i);\n assertSame(as, bs);\n c = create(\"String_Node_Str\", true);\n cs = new ReplicatedStateMach... |
"public final void setImage_(final File imageFile) {\n Gtk.dispatch(new Runnable() {\n\n public void run() {\n AppIndicator.app_indicator_set_icon(appIndicator, imageFile.getAbsolutePath());\n if (!isActive) {\n isActive = true;\n AppIndicator.app_indicator_... |
"protected void resolveOnce() {\n String[] cmd = new String[] { configuration.getMplayerPath(), \"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_No... |
"public Plan getPlan(String... args) {\n int noSubTasks = (args.length > 0 ? Integer.parseInt(args[0]) : 1);\n String dataInput = (args.length > 1 ? args[1] : \"String_Node_Str\");\n String output = (args.length > 2 ? args[2] : \"String_Node_Str\");\n DataSourceContract<PactNull, PactString> data = new Data... |
"public void addFieldWrite(DynamicComposite composite, Object instance) {\n Object current = null;\n if (instance != null) {\n current = ProxyUtils.getAdded(instance);\n }\n getSerializationStrategy().addToComponent(composite, current);\n}\n"
|
"public void testInOperators() {\n Condition.In in = column(ConditionModel$Table.NAME).in(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n ConditionGroup conditionQueryBuilder = ConditionGroup.clause().and(in);\n assertEquals(\"String_Node_Str\", conditionQueryBuilder.getQuery().trim());\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.