content stringlengths 40 137k |
|---|
"public long countDeleteChunks(List<String> chunkIds, long maxLastModifiedTime) throws Exception {\n long count = 0;\n for (List<String> chunk : Lists.partition(chunkIds, RDBJDBCTools.MAX_IN_CLAUSE)) {\n Connection con = this.ch.getRWConnection();\n PreparedStatement prepMeta = null;\n Prepar... |
"static ObjectType join(ObjectType obj1, ObjectType obj2) {\n NominalType nom1 = obj1.nominalType;\n NominalType nom2 = obj2.nominalType;\n Preconditions.checkState(areRelatedClasses(nom1, nom2));\n if (obj1.equals(obj2)) {\n return obj1;\n }\n boolean isLoose = obj1.isLoose || obj2.isLoose;\n ... |
"public void validate(Object target, Errors errors) {\n UserUpdateForm form = (UserUpdateForm) target;\n int authenticatorCount = 0;\n if (form.getNewAuthenticators() != null) {\n authenticatorCount += form.getNewAuthenticators().stream().filter(item -> !item.getDelete()).count();\n }\n if (form.g... |
"public void stopCapture() {\n if (!mIsCaptureStarted) {\n return;\n }\n mIsLoopExit = true;\n try {\n mCaptureThread.interrupt();\n mCaptureThread.join(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n if (mAudioRecord.getRecordingState() == Audio... |
"public void waitForEmptyQueue() {\n TmfEvent ev = new EmptyEvent();\n try {\n eventsQueue.put(ev);\n while (!eventsQueue.isEmpty()) {\n Thread.sleep(100);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n}\n"
|
"public static String getIndicatorValue(Indicator indicator) {\n IndicatorsSwitch<String> mySwitch = new IndicatorsSwitch<String>() {\n public String caseAverageLengthIndicator(AverageLengthIndicator object) {\n return createStandardNumber(object.getAverageLength());\n }\n public Stri... |
"protected BatchNode constructFloor() {\n BatchNode root = new BatchNode();\n String modelName = roomInstance.getRoom().getCompleteResource().getName();\n for (Point p : roomInstance.getCoordinates()) {\n boolean N = roomInstance.hasCoordinate(new Point(p.x, p.y - 1));\n boolean NE = roomInstance... |
"private void refresh() {\n boolean isBuildInType = Util.isBuildInType(xsdSimpleType);\n txtName.setEnabled(!isBuildInType);\n radCustomTypes.setEnabled(!isBuildInType);\n radBuildInTypes.setEnabled(!isBuildInType);\n compProperty.setEnabled(!isBuildInType);\n comboCustomTypes.getCombo().setEnabled(ra... |
"public static float length(Quaternion a) {\n return (float) Math.sqrt(lengthSquared(a));\n}\n"
|
"public final boolean visit(JStatement x, Context ctx) {\n if (ctx.canInsert() && !banList.contains(x)) {\n insertionStack.push(ctx);\n }\n return super.visit(x, ctx);\n}\n"
|
"protected <K, V> CacheConfig<K, V> getCacheConfigFromPartition(String cacheName) {\n ClientRequest request = new CacheGetConfigRequest(cacheName);\n try {\n final Future future = clientContext.getInvocationService().invokeOnKeyOwner(request, cacheName);\n return clientContext.getSerializationServic... |
"private static IDiskArray getDiskArrayFromAggregationResultSet(IAggregationResultSet base) throws IOException {\n IDiskArray diskArray = new BufferedStructureArray(AggregationResultRow.getCreator(), 4096);\n for (int j = 0; j < base.length(); j++) {\n base.seek(j);\n IAggregationResultRow temp = ba... |
"public static int strlen(ByteBuffer pos) {\n pos.mark();\n int len = 0;\n int n = buf.capacity() - base;\n while (len < n) {\n if (buf.get(base + len) == 0) {\n return len;\n }\n len++;\n }\n pos.reset();\n return len;\n}\n"
|
"private final int jjMoveStringLiteralDfa4_0(long old0, long active0) {\n if (((active0 &= old0)) == 0L)\n return jjStartNfa_0(2, old0);\n try {\n curChar = input_stream.readChar();\n } catch (java.io.IOException e) {\n jjStopStringLiteralDfa_0(3, active0);\n return 4;\n }\n s... |
"public FgModel train(FgModel model, FgExampleList data) {\n ExampleObjective exObj;\n boolean isMinimize;\n if (prm.trainer == Trainer.ERMA) {\n exObj = new ErmaObjective(data, prm.infFactory, prm.dlFactory);\n isMinimize = true;\n } else {\n exObj = new CrfObjective(data, prm.infFacto... |
"public void resolveTypes(List<Marker> markers, IContext context) {\n if (this.superType != null) {\n if (this.superType.isName(\"String_Node_Str\")) {\n this.superType = null;\n } else {\n this.superType = this.superType.resolve(context);\n }\n }\n for (ListIterator<... |
"public void widgetDefaultSelected(SelectionEvent e) {\n verify();\n}\n"
|
"private String getCurrentPageSource() {\n return StringEscapeUtils.escapeHtml4((String) driver.executeScript(\"String_Node_Str\"));\n}\n"
|
"private void testDimensionCreateAndFind(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n Dimension dimension = createDimension(documentManager);\n ILevel[] level = dimension.getHierarchy().getLevels();\n IDiskArray indexKeys = dimension.find((Level) level[0], new Object[]... |
"public PathSourcePath getPathSourcePath(Path path) {\n if (path == null) {\n return null;\n }\n if (path.isAbsolute()) {\n return PathSourcePath.of(projectFilesystem, path);\n }\n return PathSourcePath.of(projectFilesystem, checkPathExists(path.toString(), \"String_Node_Str\"));\n}\n"
|
"public static ListBoxModel listResourceGroupItems(String credentialsId) throws IOException {\n ListBoxModel model = new ListBoxModel();\n model.add(\"String_Node_Str\", \"String_Node_Str\");\n if (StringUtils.isBlank(credentialsId)) {\n return model;\n }\n try {\n final Azure azureClient =... |
"public void setPermissions(String[] permissions, String world) {\n if (world == null) {\n world = \"String_Node_Str\";\n }\n this.db.updateQuery(\"String_Node_Str\", this.getName(), this.type.ordinal(), world);\n for (int i = permissions.length - 1; i >= 0; i--) {\n this.db.updateQuery(\"Stri... |
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n s = getArguments().getString(\"String_Node_Str\");\n f = new File(s);\n listView.setVisibility(View.VISIBLE);\n Sp = PreferenceManager.getDefaultSharedPreferences(getActivity());\n uimode = Int... |
"private double max(String key, DBObject query) {\n double result = 0;\n BuguAggregation agg = this.aggregate();\n agg.match(query);\n String json = \"String_Node_Str\" + key + \"String_Node_Str\";\n agg.group(json);\n Iterator it = agg.results().iterator();\n if (it.hasNext()) {\n DBObject ... |
"private StanzaHandler getHandlerForElement(Stanza stanza, XMLElement xmlElement) {\n String namespace = xmlElement.getNamespaceURI();\n NamespaceHandlerDictionary namespaceHandlerDictionary = dictionaries.get(namespace);\n if (namespaceHandlerDictionary == null) {\n namespace = xmlElement.getNamespaceP... |
"public void testUniformShortestPathSearch() {\n Vertex origin = graph.query().has(\"String_Node_Str\", \"String_Node_Str\").vertices().iterator().next();\n Vertex dest = graph.query().has(\"String_Node_Str\", \"String_Node_Str\").vertices().iterator().next();\n HipsterDirectedGraph<Vertex, Edge> adaptedGraph ... |
"protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse response) throws Exception {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(\"String_Node_Str\", this.myPluginDescriptor.getPluginResourcesPath());\n if (request.getParameter(\"String_Node_Str\") !=... |
"public byte[] generateSignedData(final P7ContentSignerParameters parameters, final boolean omitContent, final String policyIdentifier, final String policyQualifier, final boolean signingCertificateV2, final PrivateKeyEntry keyEntry, byte[] messageDigest) throws NoSuchAlgorithmException, CertificateException, IOExcepti... |
"public void onPlayerTick(TickEvent.PlayerTickEvent event) {\n if (event.phase == TickEvent.Phase.START && event.side == Side.SERVER) {\n if (!event.player.capabilities.isCreativeMode) {\n for (int i = 0; i < event.player.inventory.getSizeInventory(); i++) {\n ItemStack stack = event... |
"public Object createPrimaryKeyInstance(Object object, AbstractSession session) {\n KeyElementAccessor[] pkElementArray = this.getKeyClassFields();\n ObjectBuilder builder = getDescriptor().getObjectBuilder();\n if (pkElementArray.length == 1 && pkElementArray[0] instanceof KeyIsElementAccessor) {\n Dat... |
"public EnhanceEntity findById(String primaryKey, EntityMetadata m, List<String> relationNames, Client client) {\n Set<String> keys = new HashSet<String>(1);\n keys.add(primaryKey);\n String query = getSqlQueryFromJPA(m, relationNames, keys);\n List<EnhanceEntity> results = populateEnhanceEntities(m, relati... |
"public static boolean canConvert(Exp fromExp, int to, int[] conversionCount) {\n int from = fromExp.getCategory();\n if (from == to) {\n return true;\n }\n switch(from) {\n case Category.Array:\n return false;\n case Category.Dimension:\n switch(to) {\n ... |
"static Double getNumberValue(Node n) {\n switch(n.getType()) {\n case Token.TRUE:\n return 1.0;\n case Token.FALSE:\n case Token.NULL:\n return 0.0;\n case Token.NUMBER:\n return n.getDouble();\n case Token.VOID:\n if (mayHaveSideEffects... |
"public static TsoGeneratorSpeedAutomaton fromXml(String contingencyId, XMLStreamReader xmlsr) throws XMLStreamException {\n LimitsXmlParsingState state = null;\n String text = null;\n List<String> onUnderSpeedDiconnectedGenerators = new ArrayList<>();\n List<String> onOverSpeedDiconnectedGenerators = new A... |
"private void handleDebugEvent(DebugEvent debugEvent, IDebugSession debugSession, IDebugAdapterContext context) {\n Event event = debugEvent.event;\n boolean isImportantEvent = true;\n if (event instanceof VMStartEvent) {\n if (context.isVmStopOnEntry()) {\n DebugUtility.stopOnEntry(debugSess... |
"public static void proc(final String inputSuffix, final String outputFilename, String root, String currentDir) throws Exception {\n if (File.separator.equals(\"String_Node_Str\")) {\n currentDir = currentDir.replace('\\\\', '/');\n }\n File dir = new File(currentDir);\n FileFilter filterForDirs = ne... |
"public int indexOf(XYSeries series) {\n ParamChecks.nullNotPermitted(series, \"String_Node_Str\");\n return this.data.indexOf(series);\n}\n"
|
"public void run() {\n try {\n player.quit(game);\n } catch (Exception ex) {\n if (ex != null) {\n logger.fatal(\"String_Node_Str\" + (ex.getMessage() == null ? \"String_Node_Str\" : ex.getMessage()));\n if (ex.getCause() != null) {\n logger.debug(\"String_Node_S... |
"private ArrayDefinition createCharArray() {\n IntegerDeclaration decl = new IntegerDeclaration(8, false, 10, ByteOrder.BIG_ENDIAN, Encoding.UTF8, \"String_Node_Str\", 8);\n IntegerDefinition[] defs = createIntDefs(4, 8);\n ArrayDefinition temp = setUpDeclaration(decl, defs);\n return temp;\n}\n"
|
"public CalculationResultMap evaluate(Collection<Integer> cohort, Map<String, Object> parameterValues, PatientCalculationContext context) {\n Boolean missingPyridoxine = false;\n Program tbProgram = MetadataUtils.existing(Program.class, TbMetadata._Program.TB);\n Set<Integer> alive = Filters.alive(cohort, cont... |
"static void saveGroupDefn(OutputStream outputStream, List groupList, int version) throws DataException {\n DataOutputStream dos = new DataOutputStream(outputStream);\n int size = groupList == null ? 0 : groupList.size();\n try {\n IOUtil.writeInt(dos, size);\n for (int i = 0; i < size; i++) {\n ... |
"public void testMustMatchCronEvenIfNanoSecondsVaries() {\n final CronDefinition cronDefinition = CronDefinitionBuilder.instanceDefinitionFor(QUARTZ);\n final CronParser parser = new CronParser(cronDefinition);\n final Cron quartzCron = parser.parse(\"String_Node_Str\");\n quartzCron.validate();\n ZonedD... |
"public void testIndexes() {\n MappedClass mc = this.morphia.getMapper().addMappedClass(Ad2.class);\n assertFalse(hasNamedIndex(\"String_Node_Str\", db.getCollection(mc.getCollectionName()).getIndexInfo()));\n ds.ensureIndexes(Ad2.class);\n assertTrue(hasNamedIndex(\"String_Node_Str\", db.getCollection(mc.g... |
"public void sessionConnectionGone(VoiceInteractionSessionConnection connection) {\n synchronized (mLock) {\n finishLocked(connection.mToken);\n }\n}\n"
|
"public void transferBalance(Transaction transaction) {\n try {\n EthGetBalance result = web3j.ethGetBalance(transaction.getToAddress(), DefaultBlockParameterName.LATEST).send();\n BigInteger needBalance = TransactionService.DEFAULT_GAS_LIMIT.multiply(TransactionService.DEFAULT_GAS_PRICE);\n Big... |
"public void removeRider(Player player) {\n Entity entity = player.getVehicle();\n if (entity instanceof LivingEntity) {\n LivingEntity target = (LivingEntity) entity;\n player.eject();\n if (DependencyUtils.hasPermission(player, \"String_Node_Str\")) {\n scheduleSpawnEgg(target);\... |
"public void testDefaultConnectOptions() throws Exception {\n final String sslCipherValue = \"String_Node_Str\";\n GatewayConfiguration gc = new GatewayConfigurationBuilder().serviceDefaults().connectOption(\"String_Node_Str\", sslCipherValue).connectOption(\"String_Node_Str\", \"String_Node_Str\").connectOption(... |
"public static LdapClient authenticateClient(LdapIntegrationConfiguration lic) throws LdapException {\n LdapContext context = LdapAuthenticatorFactory.getLdapAuthenticator(lic.getAuthMethod()).authenticate(lic.getServerUrl(), lic.getAuthMethod(), lic.isUseSsl(), lic.isIgnoreSslCertValidation(), lic.getAuthPrincipal(... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_listview_chart);\n ListView lv = (ListView) findViewById(R.id.listVie... |
"protected ActionResult execute() throws EntityDoesNotExistException {\n String courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID);\n String feedbackSessionName = getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);\n Assumption.assertNotNull(courseId);\n Assumption.assertNotNull(feedbac... |
"public static void main(String[] args) throws IOException {\n System.out.println(Arrays.toString(args));\n final JEEventScheduler scheduler = new JEEventScheduler();\n String traceFile = args[0];\n String placement_police = args[1];\n String num_machines = args[2];\n String homeless = args[3];\n S... |
"public void testGetCourseDetailsListForStudent() throws Exception {\n ______TS(\"String_Node_Str\");\n restoreTypicalDataInDatastore();\n String methodName = \"String_Node_Str\";\n Class<?>[] paramTypes = new Class<?>[] { String.class };\n Object[] params = new Object[] { \"String_Node_Str\" };\n ver... |
"public void parse(Node node, FilePath path) {\n Element element = (Element) node;\n firstGID = Integer.parseInt(element.getAttribute(\"String_Node_Str\"));\n try {\n if (element.hasAttribute(\"String_Node_Str\")) {\n path = path.getParent().getChild(element.getAttribute(\"String_Node_Str\"))... |
"public IResultSet executeQuery() throws OdaException {\n logger.logp(java.util.logging.Level.FINE, CallStatement.class.getName(), \"String_Node_Str\", \"String_Node_Str\");\n try {\n if (!maxRowsUpToDate) {\n try {\n assertNotNull(callStat);\n callStat.setMaxRows(m... |
"public static void main(String[] args) throws Exception {\n final Config config = new Config();\n JCommander jCommander = new JCommander(config, args);\n if (config.help()) {\n jCommander.usage();\n System.exit(0);\n }\n File toroPass = new File(System.getProperty(\"String_Node_Str\") + \"... |
"private static boolean readActionListAtPos(List<DisassemblyListener> listeners, List<GraphTargetItem> output, HashMap<Long, List<GraphSourceItemContainer>> containers, long address, long containerSWFOffset, boolean notCompileTime, boolean enableVariables, List<Object> localData, Stack<GraphTargetItem> stack, ConstantP... |
"private void cacheNoFarChildren() {\n this.noFarChildren = new ArrayList<Integer>();\n for (int i = 0; i < children.size(); i++) {\n int child = children.get(i);\n if (child < idx && i == 0) {\n continue;\n } else if (child > idx && i == children.size() - 1) {\n continu... |
"public Class<?> loadClass(String className) throws ClassNotFoundException {\n if (packageNameToCertificateMap.isEmpty())\n return null;\n if (hasBeenWipedOut)\n return null;\n String packageName = className.substring(0, className.lastIndexOf('.'));\n String containerPath;\n synchronized (p... |
"private void setupOfflineMapOverlay() {\n clearTileCache();\n GoogleMap mMap = getMap();\n mMap.setMapType(GoogleMap.MAP_TYPE_NONE);\n TileOverlay tileOverlay = mMap.addTileOverlay(new TileOverlayOptions().tileProvider(new LocalMapTileProvider()));\n tileOverlay.setZIndex(-1);\n tileOverlay.clearTile... |
"public V getAndPut(K key, V value, ExpiryPolicy expiryPolicy) {\n final ICompletableFuture<V> f = putAsyncInternal(key, value, expiryPolicy, true, true);\n try {\n return f.get();\n } catch (Throwable e) {\n throw ExceptionUtil.rethrowAllowedTypeFirst(e, CacheException.class);\n }\n}\n"
|
"protected void onScreenStateChanged() {\n updateColorTemperature();\n}\n"
|
"public void getPatternes(IFolder folder, List<Pattern> allPattern) {\n try {\n for (IResource resource : folder.members()) {\n if (resource.getType() == IResource.FOLDER) {\n getPatternes(folder.getFolder(resource.getName()), allPattern);\n continue;\n }\n ... |
"public List<SimpleName> getStaticFields() {\n ArrayList<SimpleName> staticFields = new ArrayList<SimpleName>();\n for (Expression expression : typeCheckMap.keySet()) {\n SimpleName simpleName = staticFieldMap.get(expression);\n staticFields.add(simpleName);\n }\n return staticFields;\n}\n"
|
"public void initSave(Long saveFileVersionID, String gameName, Map<String, String> gameOptions, List<String> playerNames) {\n gameData.meta.version = RailsRoot.getFullVersion() + \"String_Node_Str\" + BuildInfo.buildDate;\n gameData.meta.date = new SimpleDateFormat(\"String_Node_Str\").format(new Date());\n ga... |
"public void onCreate() {\n super.onCreate();\n if ((boolean) SPUtils.get(this, true, Constant.SP_ALARM_EVERY_DAY, false))\n AlarmUtil.createAlarm(this);\n}\n"
|
"public void teleport(Entity entity, V10Location locTo, Vector vector) {\n if (entity == null || entity.isDead() || blockedEntities.contains(entity))\n return null;\n Region regionTo = plugin.regionManager.getRegion(locTo);\n Portal portal = plugin.portalManager.insideBlocks.get(locTo);\n if (portal ... |
"public boolean isErrorRule() {\n return ruleIsMandatory() || ((ruleIsOptional() || ruleisGuideline()) && isError == true);\n}\n"
|
"public boolean apply(Game game, Ability source) {\n int tappedAmount = 0;\n Player you = game.getPlayer(source.getControllerId());\n TargetCreaturePermanent target = new TargetCreaturePermanent(0, Integer.MAX_VALUE, filter, true);\n if (target.canChoose(source.getControllerId(), game) && target.choose(Outc... |
"private String getContent(HttpServletRequest request) throws IOException {\n int contentLength = request.getContentLength();\n byte[] contentBytes = new byte[contentLength];\n BufferedInputStream bis = new BufferedInputStream(request.getInputStream());\n try {\n int readBytes = 0;\n while (bi... |
"private void setAttributeValue(Object object, UnmarshalRecord unmarshalRecord) {\n object = xmlCompositeObjectMapping.convertDataValueToObjectValue(object, unmarshalRecord.getSession(), unmarshalRecord.getUnmarshaller());\n unmarshalRecord.setAttributeValue(object, xmlCompositeObjectMapping);\n InverseReferen... |
"IdBlock copy() {\n IdBlock copy = new IdBlock(highBits);\n copy.ids = new int[ids.length];\n System.arraycopy(ids, 0, copy.ids, 0, length);\n copy.length = length;\n return copy;\n}\n"
|
"public <T> OQuery<T> getEntities(Class<T> entityType, String entitySetName) {\n FeedCustomizationMapping mapping = getFeedCustomizationMapping(entitySetName);\n return new OQueryImpl<T, Feed<Entry>, Entry>(client, entityType, serviceRootUri, getMetadata(), entitySetName, mapping);\n}\n"
|
"public Collection getSelectionListForCascadingGroup(String parameterGroupName, Object[] groupKeyValues) {\n CascadingParameterGroupHandle parameterGroup = getCascadingParameterGroup(parameterGroupName);\n if (parameterGroup == null) {\n executionContext.addException(new EngineException(MessageConstants.PA... |
"public void setPosition(Vector2 position) {\n this.position.set(position);\n polygon.setPosition(position);\n getLocalTransform().reset().translate(getPosition().subtract(getCenter())).rotate(Vector3.AXIS_Z, polygon.getRotation()).translate(getCenter());\n}\n"
|
"protected String getCommonSuperClass(String type1, String type2) {\n String common = this.commonTypes.get(type1.concat(type2));\n return common == null ? \"String_Node_Str\" : common;\n}\n"
|
"public Object get(String name, Scriptable start) {\n if (ScriptConstants.OUTER_RESULT_KEYWORD.equalsIgnoreCase(name)) {\n if (this.helper.getParent() != null)\n return helper.getParent().getScriptable();\n else\n throw Context.reportRuntimeError(DataResourceHandle.getInstance().g... |
"public WsebSession call() throws Exception {\n WsebSession wsebSession = new WsebSession(httpSession.getIoLayer(), httpSession.getIoThread(), httpSession.getIoExecutor(), WsebConnector.this, getProcessor(), connectAddressNext, connectAddressNext, allocator, null, 0, connectAddressNext.getOption(INACTIVITY_TIMEOUT),... |
"private VolumeDeathHandler getDeathHandler(IBinder cb, boolean state) {\n synchronized (mDeathHandlers) {\n VolumeDeathHandler handler;\n int size = mDeathHandlers.size();\n for (int i = 0; i < size; i++) {\n handler = mDeathHandlers.get(i);\n if (cb == handler.mICallback)... |
"public String getDisplayName() {\n if (isResolved) {\n String name = null;\n RosterEntry entry = ssclCallback.getRosterEntry(jid);\n if (entry != null)\n name = entry.getName();\n if ((name != null) && (name.trim().length() != 0))\n return name;\n }\n return g... |
"public static Bitmap generateMask(Context context, Bitmap mask, Bitmap original) {\n int width = SizeUtility.dipToPixels(context, Consts.CHAT_ATTACH_WIDTH);\n int height = SizeUtility.dipToPixels(context, Consts.CHAT_ATTACH_HEIGHT);\n original = ImageHelper.getScaledBitmap(original, original.getWidth(), origi... |
"private IndexedValue<V> value(IndexQuery<V> vanillaIndexQuery, ExcerptTailer tailer, Iterator<IndexedValue<V>> iterator, final long from) {\n if (iterator.hasNext()) {\n IndexedValue<V> indexedValue = iterator.next();\n indexedValue.timePublished(System.currentTimeMillis());\n indexedValue.maxI... |
"public void checkMemberAccess(Class<?> clazz, int which) {\n if (clazz == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n if (which != Member.PUBLIC) {\n Class<?>[] stack = getClassContext();\n if ((stack.length < 4) || (stack[3].getClassLoader() != clazz.getClassLoad... |
"public void managerStateChanged(Manager manager) {\n Manager.State newState = manager.getState();\n if (newState != _previousState) {\n String statusMessage = manager.getStatusMessage();\n if (statusMessage.equals(_previousStatusMessage)) {\n _previousStatusMessage = statusMessage;\n ... |
"public void saveGame() {\n String fileName = JOptionPane.showInputDialog(Driver.getInstance(), Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"), JOptionPane.PLAIN_MESSAGE);\n if (fileName == null)\n return;\n getGame().saveGame(fileName, false, true);\n}\n"
|
"private void checkUniqueVarNames(Logger logger, Program program, Function fn, Block block, Set<String> usedNames) {\n for (Var v : block.getVariables()) {\n checkVarUnique(logger, program, fn, usedNames, v);\n }\n if (checkCleanups)\n checkCleanups(fn, block);\n for (Continuation c : block.ge... |
"private void loadProxy() throws OperationFailedException {\n String globalProxyType = JabberActivator.getConfigurationService().getString(ProxyInfo.CONNECTION_PROXY_TYPE_PROPERTY_NAME);\n if (globalProxyType == null || globalProxyType.equals(ProxyInfo.ProxyType.NONE.name())) {\n proxy = org.jivesoftware.s... |
"public void testRetrieveOriginal() throws Exception {\n URLTranslator urlTranslator = new URLTranslator();\n urlTranslator.translate(ORIGINAL_URL);\n assertEquals(ORIGINAL_URL, urlTranslator.getOriginal(urlTranslator.getTranslation(ORIGINAL_URL)));\n}\n"
|
"public HeadsetMode getHeadsetMode() {\n return desiredMode;\n}\n"
|
"public void put(String name, SqlBackendConfig config) {\n nameToConfig.put(name.toLowerCase(), config);\n}\n"
|
"protected int executeCommand() throws CommandException, CommandValidationException {\n int exitCode = -1;\n if (node == null) {\n if (nodeDirChild == null)\n throw new CommandException(Strings.get(\"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\"));\n _node = nodeDirChild.ge... |
"private String getCurrentDisplay() {\n return Localization.get(\"String_Node_Str\", new String[] { String.valueOf(currentid + 1), String.valueOf(ids.size()), String.valueOf(currentid), String.valueOf(ids.size()) });\n}\n"
|
"public void onMouseUp(Widget sender, int x, int y) {\n dragging = false;\n DOM.releaseCapture(getElement());\n}\n"
|
"public View getView(int position, View view, ViewGroup parent) {\n Log.d(getClass().getName(), \"String_Node_Str\");\n final ChooseSyncModelContainer<SyncedMonsterModel> item = super.getItem(position);\n if (view == null) {\n final LayoutInflater inflater = (LayoutInflater) getContext().getSystemServic... |
"private static void introduceCopyOperation(JsonNode source, JsonNode target, List<Diff> diffs) {\n Map<JsonNode, List<Object>> unchangedValues = getUnchangedPart(source, target);\n for (int i = 0; i < diffs.size(); i++) {\n Diff diff = diffs.get(i);\n if (Operation.ADD.equals(diff.getOperation())) ... |
"public boolean setParameters(Request request) {\n boolean contextUpdated = false;\n String newContext = \"String_Node_Str\";\n List<String> query = request.getOptions().getUriQuery();\n for (String q : query) {\n KeyValuePair kvp = KeyValuePair.parse(q);\n if (LinkFormat.END_POINT_TYPE.equals... |
"public void update(int timeout) throws IOException {\n updateThread = Thread.currentThread();\n synchronized (updateLock) {\n }\n if (timeout > 0) {\n selector.select(timeout);\n } else {\n selector.selectNow();\n }\n Set<SelectionKey> keys = selector.selectedKeys();\n outer: for ... |
"private void lockSnapshotLock() {\n int delay = 500;\n int threshold = 50;\n long startTime = System.currentTimeMillis();\n boolean success = false;\n while (!success) {\n success = snapshotLock.writeLock(delay);\n if (!success) {\n delay *= 1.5;\n List<Plugin> violat... |
"public void onCheckCompleted(UploadItem uploadItem, CheckResponse checkResponse) {\n MFConfiguration.getStaticMFLogger().logMessage(TAG, \"String_Node_Str\");\n if (uploadItem.getUploadAttemptCount() > MAX_UPLOAD_ATTEMPTS || uploadItem.isCancelled()) {\n notifyUploadListenerCancelled(uploadItem);\n ... |
"public static void applyValidLabels(Element root, String nodeType, String attrType, Map<String, String> validLabels, Document doc) throws IllegalArgumentException {\n assert (root != null);\n assert (nodeType != null);\n assert (attrType != null);\n assert (nodeType.length() > 0);\n assert (attrType.len... |
"public String getTicketPath() {\n return (ticket == null) ? \"String_Node_Str\" : ticket.getTicketPath();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.