content
stringlengths
40
137k
"public Module<Tensor> getDl(VarConfig goldConfig, ExpFamFactorsModule effm, Module<Beliefs> inf, int curIter, int maxIter) {\n double temperature = getTemperature(curIter, maxIter);\n TensorIdentity temp = new TensorIdentity(Tensor.getScalarTensor(Algebras.REAL_ALGEBRA, temperature));\n if (annealMse) {\n ...
"private void setupMainMenu() {\n _mainMenu = new UIMainMenu();\n _mainMenu.setVisible(true);\n _selectWorldMenu = new UISelectWorldMenu();\n _selectWorldMenu.setVisible(false);\n _mainMenu.getSinglePlayerButton().addClickListener(new IClickListener() {\n public void clicked(UIDisplayElement eleme...
"public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {\n try {\n return super.onTransact(code, data, reply, flags);\n } catch (RuntimeException e) {\n if (!(e instanceof SecurityException)) {\n Slog.wtf(TAG, \"String_Node_Str\", e);\n }\...
"public static String printFields(Object obj, String separator) {\n String className = obj.getClass().getSimpleName();\n String params = print(select(getFields(obj, String.class), field -> format(\"String_Node_Str\", field.getName(), getValueField(field, obj))), separator, \"String_Node_Str\");\n return format...
"public void showGPlusImage(String imageId) {\n gpac.setCurrentImageId(imageId);\n model.resetModel(NavigationEnum.GPLUS_IMAGE_PREVIEW, getLoggedUser(), null, null, null, null);\n}\n"
"protected Map<String, KmsMediaParam> transformMediaParamsMap(Map<String, MediaParam> params) {\n Map<String, KmsMediaParam> kmsParams = newHashMapWithExpectedSize(params.size());\n for (Entry<String, MediaParam> entry : params.entrySet()) {\n kmsParams.put(entry.getKey(), ((AbstractMediaParam) entry.getVa...
"public List<GraphSourceItem> toSource(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException {\n Set<String> usedNames = new HashSet<>();\n for (VariableActionItem v : variables) {\n usedNames.add(v.getVariableName());\n }\n List<GraphSourceItem> ret = new ArrayLi...
"public int getUnnoted() {\n return (!isNoted() || swapId == -1) ? id : swapId;\n}\n"
"private void writeDocumentProperties(IReportContent reportContent) {\n if (reportContent == null) {\n return;\n }\n ReportDesignHandle reportDesign = reportContent.getDesign().getReportDesign();\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n...
"public boolean isPrimary() {\n return getMonitors().get(0).equals(this);\n}\n"
"public static boolean[] splitBoolean(String str) {\n String[] ss = Strings.splitIgnoreBlank(str);\n if (null == ss)\n return null;\n boolean[] ns = new boolean[ss.length];\n for (int i = 0; i < ns.length; i++) {\n try {\n ns[i] = Regex.match(\"String_Node_Str\", ss[i].toLowerCase()...
"private Expression promoteListExpression(Expression expression, Conversion conversion) {\n if (conversion.getConversion() != null) {\n expression = convertExpression(expression, conversion.getConversion());\n }\n if (expression.getResultType().equals(resolveTypeName(\"String_Node_Str\", \"String_Node_S...
"public void waitForPawn() {\n while (pilot.isMoving() || obstacle) {\n if (pawnButton.isPressed()) {\n stop();\n }\n}\n"
"public BinaryRatingVo rateComment(long commentId, long userId, int value) throws MultipleMessagesException, DuplicityException {\n EntityManager entityManager = null;\n EntityTransaction transaction = null;\n BinaryRatingVo rating = null;\n try {\n entityManager = getEntityManagerFactory().createEnt...
"static DataID parse(char[] buffer, int offset, int length) {\n int ptr = offset + length - 1;\n while (ptr >= offset) {\n if (buffer[ptr] != ':') {\n ptr--;\n } else {\n if (ptr > offset && buffer[ptr - 1] == ':') {\n ptr--;\n ptr--;\n ...
"public StubRequestBuilder withMethodPost() {\n this.methods.add(HttpMethod.POST.name());\n return this;\n}\n"
"public void shouldExecuteReturnAValidSolutionIsWithCorrectParameters() {\n NaryTournamentSelection<BinarySolution> selection = new NaryTournamentSelection<>();\n BinarySolution solution = mock(BinarySolution.class);\n Problem<BinarySolution> problem = mock(Problem.class);\n Mockito.when(problem.createSolut...
"private void renderImageView(ImageView view, Graphics2D canvas) {\n renderView(view, canvas);\n canvas.translate(view.left, view.top);\n final BufferedImage image = view.getImage();\n if (image.getWidth() < view.getWidth() && image.getHeight() < view.getHeight()) {\n int left = (view.getWidth() - im...
"private void addToolBarButton(Skin skin, ImageButton button, String icon, String text, String tooltip) {\n ImageButtonStyle style = new ImageButtonStyle(skin.get(ButtonStyle.class));\n TextureRegion image = Ctx.assetManager.getIcon(icon);\n style.imageUp = new TextureRegionDrawable(image);\n try {\n ...
"public static void buildSize(StringBuffer content, String name, DimensionType value) {\n if (value != null) {\n if (HTMLTags.ATTR_MIN_HEIGHT.equals(name)) {\n addPropName(content, HTMLTags.ATTR_MIN_HEIGHT);\n addPropValue(content, \"String_Node_Str\");\n content.append(';');\...
"public RowReceiver newRowReceiver() {\n remainingUpstreams.incrementAndGet();\n int handleIdx = runningHandles.getAndIncrement();\n BlockingSortingQueuedRowDownstreamHandle handle = new BlockingSortingQueuedRowDownstreamHandle(handleIdx, this, rowSize);\n downstreamHandles.add(handle);\n return handle;\...
"public static void saveChatMessages(Context context, List<QBChatHistoryMessage> messagesList, String dialogId) {\n MessageCache messageCache = null;\n for (QBChatHistoryMessage historyMessage : messagesList) {\n String messageId = historyMessage.getId();\n String message = historyMessage.getBody();...
"private void addParentChildLinksToNodes() {\n checkTree();\n for (int i = 0; i < parents.length; i++) {\n DepTreeNode node = getNodeByPosition(i);\n node.setParent(getNodeByPosition(parents[i]));\n for (int j = 0; j < parents.length; j++) {\n if (parents[j] == i) {\n ...
"protected RestResult handleRequest(RestRequest restRequest) {\n RestResult result = null;\n if (restRequest != null) {\n RestOperation operation = restRequest.getOperation();\n Filter filter = restRequest.getFilter();\n Object item = restRequest.getContent();\n Class<?> itemType = res...
"private List<byte[]> mergeEstimators(List<byte[]> set, HyperLogLogPlus other) {\n List<byte[]> tmp = other.sparseSet;\n List<byte[]> newSet = new ArrayList<byte[]>();\n Map<Integer, Integer> indexMap = new HashMap<Integer, Integer>();\n int seti = 0;\n int tmpi = 0;\n while (seti < set.size() || tmpi...
"private List<Chain> getFirstModelChains() {\n List<Chain> firstModel = new ArrayList<>();\n outer: for (String id : getChainIds()) {\n for (Chain chain : chains) {\n if (chain.getId().equals(id)) {\n firstModel.add(chain);\n break;\n }\n }\n }\...
"private void handleIslEvent(Tuple tuple, IslInfoData discoveredIsl) {\n PathNode node = discoveredIsl.getPath().get(0);\n String switchID = node.getSwitchId();\n String portID = \"String_Node_Str\" + node.getPortNo();\n IslChangeType state = discoveredIsl.getState();\n boolean stateChanged = false;\n ...
"private List<URL> getModuleJarURLs(String installRoot) {\n if (installRoot == null) {\n return new ArrayList();\n }\n JarFile jarfile = null;\n try {\n jarfile = new JarFile(Which.jarFile(getClass()));\n String mainClassName = jarfile.getManifest().getMainAttributes().getValue(\"String...
"private FileWriter getNextWriter() throws IOException {\n currentFileWriter.close();\n File scriptOutputFile_renameFrom = new File(path + File.separator + baseName);\n File scriptOutputFile_renameTo = new File(path + File.separator + baseName + \"String_Node_Str\" + (counter++));\n if (scriptOutputFile_ren...
"public static <K, V> Map<K, V> immutableCopyOf(final Map<K, V> map) {\n return Collections.unmodifiableMap(copyOf(map));\n}\n"
"public static <P> Request<P> convertRequest(Request<? extends Object> request, Class<P> paramsClass) {\n P paramsP = null;\n Object params = request.getParams();\n if (params != null) {\n if (paramsClass.isAssignableFrom(params.getClass())) {\n paramsP = (P) params;\n } else if (param...
"void videoCall(View view) {\n callToUser(QBRTCTypes.QBConferenceType.QB_CONFERENCE_TYPE_VIDEO);\n}\n"
"private void executeRequest(HttpMethod httpMethodProxyRequest, HttpServletRequest httpServletRequest, PluginResponse httpServletResponse, History history) throws Exception {\n int intProxyResponseCode = 999;\n try {\n HttpClient httpClient = new HttpClient();\n httpMethodProxyRequest.setFollowRedir...
"public static void addingAddressPropertyToEndpoint(Element endpointElement, Document doc) {\n NodeList addressProp = endpointElement.getElementsByTagName(Constants.SYNAPSE_API_ELEMENT_PROPERTY);\n Element propertyElement, propertyElementExist;\n boolean exist = false;\n for (int i = 0; i < addressProp.getL...
"public void testRetainAll_nullCollectionReferenceEmptySubject() {\n try {\n collection.retainAll(null);\n } catch (NullPointerException tolerated) {\n }\n}\n"
"public void testPlugin() throws Exception {\n File pluginDir = DirUtils.createTempDir(tmpDir);\n Manifest manifest = createManifest(ManifestFields.EXPORT_PACKAGE, TestPlugin.class.getPackage().getName());\n File jarFile = createPluginJar(TestPlugin.class, new File(tmpDir, \"String_Node_Str\"), manifest);\n ...
"public static DatabaseProduct getProduct(String productName, String productVersion) {\n final String upperProductName = productName.toUpperCase();\n if (productName.equals(\"String_Node_Str\")) {\n return DatabaseProduct.ACCESS;\n } else if (upperProductName.trim().equals(\"String_Node_Str\")) {\n ...
"public Collection<Topic> getTopicsOfType(Topic type) throws TopicMapException {\n Set<Topic> processed = new KeyedHashSet<Topic>(new TopicAndLayerKeyMaker());\n ArrayList<Topic> ret = new ArrayList<Topic>();\n LayeredTopic lt = (LayeredTopic) type;\n for (Layer l : visibleLayers) {\n for (Topic type...
"private static boolean isBecomeAnyoneEnabled() {\n try {\n return Boolean.getBoolean(\"String_Node_Str\");\n } catch (SecurityException se) {\n return false;\n }\n}\n"
"public void map() {\n final RequestDto requestDto = RequestDtoMother.fundRequestArea51();\n final IssueInformationDto issueInformation = requestDto.getIssueInformation();\n final String status = \"String_Node_Str\";\n final GithubResult githubResult = new GithubResult();\n githubResult.setBodyHtml(\"Str...
"public List<IBookmarkInfo> getBookmarkInfos(Locale locale) throws EngineException {\n if (!isComplete()) {\n return null;\n }\n ArrayList<IBookmarkInfo> results = new ArrayList<IBookmarkInfo>();\n loadCoreStreamLazily();\n if (indexReader != null) {\n try {\n List<BookmarkConten...
"public <T> T setupCredentials(final T proxy, final String username, final String password) {\n if (proxy instanceof SpringServiceProxy) {\n SpringServiceProxy service = (SpringServiceProxy) proxy;\n if (username == null && password == null) {\n service.setRestTemplate(getAnonymousRestTempla...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, boolean includeRoot) {\n if (xPathFragment.hasLeafElementType()) {\n marshalRecord.setLeafEleme...
"private void clearUnreadCounters(RoomSummary summary) {\n getLiveState().setHighlightCount(0);\n getLiveState().setNotificationCount(0);\n mStore.storeLiveStateForRoom(getRoomId());\n if (null != summary) {\n summary.setUnreadEventsCount(0);\n mStore.flushSummary(summary);\n }\n mStore....
"public static void main(String[] args) {\n BigInteger number = BigInteger.valueOf(2L);\n number = number.pow(7830457);\n number = number.multiply(BigInteger.valueOf(28433L));\n number = number.add(BigInteger.ONE);\n String result = number.toString();\n System.out.println(result.substring(result.lengt...
"private int handleAppTransitionReadyLocked(WindowList windows) {\n int appsCount = mService.mOpeningApps.size();\n if (!transitionGoodToGo(appsCount)) {\n return 0;\n }\n if (DEBUG_APP_TRANSITIONS)\n Slog.v(TAG, \"String_Node_Str\");\n int transit = mService.mAppTransition.getAppTransition...
"private String getProjectFileValue(String line) {\n String ret;\n int start = line.indexOf(\"String_Node_Str\") + 1;\n int end = line.indexOf(\"String_Node_Str\", start);\n if (end == -1) {\n ret = line.substring(start);\n } else {\n ret = line.substring(start, end);\n }\n ret = ret....
"private boolean canResolveTextAlignment() {\n switch(getRawTextAlignment()) {\n case TEXT_DIRECTION_INHERIT:\n return (mParent != null) && mParent.canResolveTextAlignment();\n default:\n return true;\n }\n}\n"
"public Person getUserData(IUserID userID) throws AuthPelpException {\n assert (userID != null);\n if (userID.equals(getUserID())) {\n return _dummyUsers.get((UserID) userID);\n }\n if (_dummySubjects != null) {\n for (Subject s : _dummySubjects.values()) {\n if ((isRole(UserRoles.M...
"void setLocalTransform(CellTransform localTransform, TransformChangeListener.ChangeSource source) {\n if (this.localTransform != null && this.localTransform.equals(localTransform)) {\n return;\n }\n if (localTransform == null) {\n this.localTransform = null;\n Cell current = getParent();\...
"private static boolean isObjectType(Node n) {\n JSType jsType = n.getJSType();\n if (jsType == null) {\n return false;\n }\n jsType = jsType.restrictByNotNullOrUndefined();\n return !jsType.isUnknownType() && !jsType.isNoType() && !jsType.isAllType() && jsType.isObject();\n}\n"
"public Long getDBValue(Calendar model) {\n return model == null ? null : model.getTimeInMillis();\n}\n"
"public void fillContextMenu(IMenuManager menu) {\n if (!isShowMenu()) {\n return;\n }\n TreeSelection currentSelection = ((TreeSelection) this.getContext().getSelection());\n if (isSelectedColumnLevel(currentSelection)) {\n IMenuManager submenu = new MenuManager(DefaultMessagesImpl.getString(...
"public static List<Action> readActionList(List<DisassemblyListener> listeners, long address, long containerSWFOffset, ReReadableInputStream rri, int version, int ip, int endip, String path) throws IOException {\n List<Action> retdups = new ArrayList<>();\n ConstantPool cpool = new ConstantPool();\n Stack<Grap...
"public void process(byte[] inbuf, int inOfs, byte[] outbuf, int outOfs, int len) throws ESJException {\n int s11 = s[0];\n int s12 = s[1];\n int s13 = s[2];\n int s21 = s[3];\n int s22 = s[4];\n int s23 = s[5];\n int s31 = s[6];\n int s32 = s[7];\n int s33 = s[8];\n int s34 = s[9];\n i...
"public void solve(File lpFile) {\n if (!lpFile.getPath().endsWith(\"String_Node_Str\")) {\n throw new IllegalStateException(\"String_Node_Str\" + lpFile.getPath());\n }\n result = new HashMap<String, Double>();\n try {\n IloCplex cplex = new IloCplex();\n OutputStream out = new Buffere...
"public static void main(String[] args) {\n GMenu menu = new GMenu();\n}\n"
"public static Object readObject(DataInputStream dis, Class fieldType, ClassLoader classLoader, int version) throws IOException, DataException {\n Object obj = null;\n char leadingChar = (char) dis.read();\n if (leadingChar == 0) {\n obj = null;\n return obj;\n }\n if (fieldType.equals(Inte...
"public void consumePacket(ByteBuf data) {\n int cnt = data.readableBytes() / 4;\n dimensions = new int[cnt];\n for (int i = 0; i < cnt; i++) {\n dimensions[i] = data.readInt();\n }\n}\n"
"public void finalizeProperties() {\n ArrayList<JavaClass> jClasses = getTypeInfoClasses();\n for (JavaClass jClass : jClasses) {\n TypeInfo tInfo = getTypeInfo().get(jClass.getQualifiedName());\n if (tInfo.isTransient()) {\n continue;\n }\n if (!jClass.isInterface() && !tIn...
"public void filter(Reader reader, Writer writer, List<Replace> replaces) throws IOException {\n SAXBuilder saxBuilder = new SAXBuilder();\n Document doc = null;\n try {\n doc = saxBuilder.build(reader);\n } catch (JDOMException e) {\n throw new IOException(\"String_Node_Str\", e);\n }\n ...
"public static void createSite(Context context, String siteTitle, String siteTagline, String siteSlug, String siteTheme) {\n Intent intent = new Intent(context, SiteCreationService.class);\n intent.putExtra(ARG_SITE_TITLE, siteTitle);\n intent.putExtra(ARG_SITE_TAGLINE, siteTagline);\n intent.putExtra(ARG_S...
"public void registerQueries(IDataQueryDefinition[] queryDefns) throws DataException {\n ((QueryExecutionHints) queryExecutionHints).populateCachedDataSets(this, queryDefns);\n}\n"
"private void parseQuotedValue(char prev) {\n ch = input.nextChar();\n while (!(prev == quote && (ch <= ' ' || ch == delimiter || ch == newLine))) {\n if (ch != quote && ch != quoteEscape) {\n if (prev == quote) {\n if (parseUnescapedQuotes) {\n output.appender....
"public TableInfo table() {\n throw new UnsupportedOperationException(String.format(Locale.ENGLISH, \"String_Node_Str\", getClass().getSimpleName()));\n}\n"
"public static List<CssDeclaration> parsePropertyDeclarations(String propertiesStr) {\n List<CssDeclaration> declarations = new ArrayList<>();\n int pos = getSemicolonPosition(propertiesStr, 0);\n while (pos != -1) {\n String[] propertySplit = splitCssProperty(propertiesStr.substring(0, pos));\n ...
"private void writeObject(final ObjectOutputStream out) throws IOException {\n out.defaultWriteObject();\n if (obj instanceof Serializable) {\n out.writeObject(obj);\n } else {\n out.writeObject(String.valueOf(obj));\n }\n}\n"
"public static void handleClusterTerminatingEvent(ClusterStatusClusterTerminatingEvent event) {\n TopologyManager.acquireWriteLock();\n try {\n Topology topology = TopologyManager.getTopology();\n Cluster cluster = topology.getService(event.getServiceName()).getCluster(event.getClusterId());\n ...
"public IndexerJobStatus call() {\n indexerJobStatus.setJobStatus(IndexerJobStatusEnum.Started);\n while (!shutdownRequested) {\n try {\n if (Thread.currentThread().isInterrupted()) {\n Thread.currentThread().interrupt();\n throw new InterruptedException(\"String_No...
"public void update() {\n if (powerReceptor == null)\n return;\n if (isActive) {\n tick++;\n if (!singlePulse || !hasPulsed) {\n if (tick % 10 == 0 || !hasPulsed) {\n powerReceptor.getPowerProvider().receiveEnergy(Math.min(1 << (pulseCount - 1), 64), ForgeDirection.W...
"public void onGet(Object item) {\n if (checkValidCache(item)) {\n ArrayList<Event> events = (ArrayList<Event>) item;\n mAdapter.addAll(events);\n setIsLoading(false);\n Snackbar snackbar = Snackbar.make(getView(), R.string.cached_content, Snackbar.LENGTH_SHORT);\n ColoredSnackBar....
"public Object next() throws NoSuchElementException {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n final String result = helpdir + locales[i] + \"String_Node_Str\" + commandName + \"String_Node_Str\" + sections[j++];\n if (j == sections.length) {\n i++;\n if (i < loca...
"public DocumentEntity<String> createDocumentRaw(String database, String collectionName, String rawJsonObjectString, Boolean createCollection, Boolean waitForSync) throws ArangoException {\n return internalCreateDocument(database, collectionName, null, rawJsonObjectString, createCollection, waitForSync, true);\n}\n"...
"public CTFCallsite getCallsite(String eventName, long ip) {\n final TreeSet<CTFCallsite> candidates = callsitesByName.get(eventName);\n final CTFCallsite dummyCs = new CTFCallsite(null, null, ip, null, -1);\n final int pos = Collections.binarySearch(candidates, dummyCs) + 1;\n if (pos >= candidates.size())...
"protected ByteBuffer doRead(URLConnection connection) throws Exception {\n if (connection == null) {\n String msg = Logging.getMessage(\"String_Node_Str\");\n Logging.logger().severe(msg);\n throw new IllegalArgumentException(msg);\n }\n HttpURLConnection htpc = (HttpURLConnection) connec...
"public void mouseMoved(IMouseEvent mouseEvent) {\n Point mousePosition = mouseEvent.getPoint();\n for (PathwayMultiFormInfo info : pathwayInfos) {\n if (setWindowActive(mousePosition, info.window))\n return;\n }\n if (setWindowActive(mousePosition, pathInfo.window))\n return;\n ...
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n Descriptor xmlDescriptor = (Descriptor) xmlCompositeCollectionMapping.getReferenceDescriptor();\n if (xmlDescriptor == null) {\n xmlDescriptor = findReferenceDescriptor(xPa...
"public void testConstructor() {\n final SidelineConsumerConfig config = getDefaultSidelineConsumerConfig(topicName);\n PersistenceManager persistenceManager = new InMemoryPersistenceManager();\n persistenceManager.open(Maps.newHashMap());\n SidelineConsumer sidelineConsumer = new SidelineConsumer(config, p...
"private void unpackAjAttributes(World world) {\n List as = BcelAttributes.readAjAttributes(getDeclaringType().getClassName(), method.getAttributes(), getSourceContext(world), world.getMessageHandler());\n for (Iterator iter = as.iterator(); iter.hasNext(); ) {\n AjAttribute a = (AjAttribute) iter.next();\...
"public Collection<MemberGroup> createMemberGroups(Collection<MemberImpl> members) {\n final Collection<MemberGroup> groups = createHostAwareMemberGroups(members);\n if (groups.size() == 1 && members.size() >= 2) {\n MemberGroup group1 = groups.iterator().next();\n MemberGroup group2 = new DefaultMe...
"String getResponse() throws UnsupportedEncodingException {\n int ntRespLen = ntResp.length;\n int lmRespLen = lmResp.length;\n int domainLen = domainBytes.length;\n int hostLen = hostBytes.length;\n int userLen = userBytes.length;\n int lmRespOffset = 64;\n int ntRespOffset = lmRespOffset + lmResp...
"public boolean playGame() {\n while (!gameOver) {\n System.out.println(board);\n if (playNextTurn() == INVALID_INPUT) {\n if (validatorGame)\n return false;\n else\n System.out.println(\"String_Node_Str\");\n }\n }\n return gameOver;\n}\...
"protected void makeActions() {\n boolean isNewDoubleClickAction = false;\n if (doubleClickAction != null && doubleClickAction.getStructuredViewer() != null) {\n StructuredViewer structuredViewer = doubleClickAction.getStructuredViewer();\n ISelection selection = structuredViewer.getSelection();\n ...
"private void processArgs(String[] args, PrintPreferencesCommand ppc) throws SoarException {\n ppc.setWmeTraceType(WmeTraceType.NONE);\n ppc.setPrintProduction(false);\n ppc.setObject(false);\n final Decider decider = Adaptables.adapt(agent, Decider.class);\n ppc.setId(decider.bottom_goal);\n final Pr...
"public void testUpdate() {\n T r1 = createTestResource();\n r1 = (T) resource().path(getResourcePath()).type(MediaType.APPLICATION_JSON).post(r1.getClass(), r1);\n WebResource wr = resource().path(getResourcePath() + \"String_Node_Str\" + this.getResourceId(r1));\n String response1 = wr.accept(MediaType.AP...
"public Key createEmptyKeyList() {\n return defaultType.createEmptyPassage();\n}\n"
"private void cutStone(ShortPoint2D pos) {\n short x = (short) (pos.x - 1);\n short y = (short) (pos.y + 1);\n AbstractHexMapObject stone = grid.getMapObject(x, y, EMapObjectType.STONE);\n if (stone != null) {\n stone.cutOff();\n if (!stone.canBeCut()) {\n addSelfDeletingMapObject(n...
"private boolean findProxyServiceRegistration(RemoteServiceEndpointDescription sed) {\n for (Iterator i = discoveredRemoteServiceRegistrations.keySet().iterator(); i.hasNext(); ) {\n ID containerID = (ID) i.next();\n RemoteServiceRegistration reg = (RemoteServiceRegistration) discoveredRemoteServiceReg...
"SimpleIterator<RelationshipSpecification> getRelationships(GraphDatabaseService neo, final long nodeId, final Direction direction, String[] relationshipTypeNames) {\n RelationshipType[] types = new RelationshipType[relationshipTypeNames.length];\n for (int i = 0; i < types.length; i++) {\n types[i] = new ...
"private void replaceSkybox() throws IOException {\n Path tfpath = cfg.getTfPath();\n Set<Path> vmtPaths = new LinkedHashSet<>();\n Set<Path> vtfPaths = new LinkedHashSet<>();\n Path skyboxPath = tfpath.resolve(\"String_Node_Str\");\n String skyboxVpk = \"String_Node_Str\";\n String skyboxFilename = c...
"public NodeTemplateInstanceController getInstances(final String nodeTemplateId) {\n if (!this.nodeTemplateService.hasNodeTemplate(csarId, QName.valueOf(serviceTemplateId), QName.valueOf(nodeTemplateId))) {\n logger.info(\"String_Node_Str\" + nodeTemplateId + \"String_Node_Str\");\n throw new NotFoundE...
"public Class getJavaWrapperTypeForSDOType(Type sdoType) {\n return getTypeHelperDelegate().getJavaWrapperTypeForSDOType(sdoType);\n}\n"
"private DownloadLink findStartLink(DownloadLink link) {\n int type = getArchivePartType(link);\n switch(type) {\n case JDUnrarConstants.MULTIPART_START_PART:\n case JDUnrarConstants.MULTIPART_START_PART_V2:\n break;\n case JDUnrarConstants.SINGLE_PART_ARCHIVE:\n return ...
"public void switch2Spectrum() {\n if (showFreqAlongX) {\n } else {\n xShift = 1 - yShift - 1 / yZoom;\n xZoom = yZoom;\n }\n yShift = oldYShift;\n yZoom = oldYZoom;\n showMode = 0;\n computeMatrix();\n}\n"
"protected static String getDataPlaneLocatorTransport(DataPlaneLocator dataPlaneLocator) {\n if (dataPlaneLocator == null || dataPlaneLocator.getTransport() == null) {\n return null;\n }\n String transport = null;\n switch(dataPlaneLocator.getTransport().getSimpleName().toLowerCase()) {\n case...
"protected void triggerAuditEvent(String action) {\n AuditEvent event = new AuditEvent(getPrincipal(), action);\n event.setRemoteIP(getRemoteAddr());\n for (AuditListener listener : auditListeners) {\n listener.auditEvent(event);\n }\n}\n"
"public void addSlider(String name, String label, int defaultValue, int minimum, int maximum) throws IllegalArgumentException {\n JLabel lbl = new JLabel(label + \"String_Node_Str\");\n if (minimum > maximum) {\n int temp = minimum;\n minimum = maximum;\n maximum = temp;\n }\n if ((defa...
"public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case R.id.open_browser_menu_id:\n BrowserLauncher.launchExternalBrowser(this, this.mCurrentImageModel.url.toString());\n break;\n case R.id.save_menu_id:\n new DownloadFileTask(this, U...
"private static Dimension calculateFrameBufferDimension(Dimension mapViewDimension, double overdrawFactor) {\n int width = (int) (mapViewDimension.width * overdrawFactor);\n int height = (int) (mapViewDimension.height * overdrawFactor);\n if (useSquareFrameBuffer) {\n float aspectRatio = ((float) mapVie...
"public void addSignature(XRD xrd) throws Exception {\n Signature signature = (Signature) buildXMLObject(Signature.DEFAULT_ELEMENT_NAME);\n Credential credential = getCredential();\n signature.setSigningCredential(credential);\n signature.setCanonicalizationAlgorithm(SignatureConstants.ALGO_ID_C14N_EXCL_OMI...