content stringlengths 40 137k |
|---|
"public void testGetHistoric() {\n String playback_id = \"String_Node_Str\";\n String definition_id = \"String_Node_Str\";\n String name = \"String_Node_Str\";\n long start = 1329217703L;\n long end = 1329221303L;\n long created_at = 1334790000L;\n String status = \"String_Node_Str\";\n int prog... |
"public List<byte[]> getKeys(int limit, int offset, ReadPointer readPointer) throws OperationException {\n PreparedStatement ps = null;\n try {\n ps = this.connection.prepareStatement(\"String_Node_Str\" + \"String_Node_Str\" + this.quotedTableName + \"String_Node_Str\" + \"String_Node_Str\");\n Res... |
"public void testTensorDot() {\n INDArray oneThroughSixty = Nd4j.arange(60).reshape(3, 4, 5);\n INDArray oneThroughTwentyFour = Nd4j.arange(24).reshape(4, 3, 2);\n INDArray result = Nd4j.tensorMmul(oneThroughSixty, oneThroughTwentyFour, new int[][] { { 1, 0 }, { 0, 1 } });\n assertArrayEquals(new int[] { 5,... |
"private void setDuplex(String duplex) {\n if (duplex != null && !\"String_Node_Str\".equalsIgnoreCase(duplex)) {\n String duplexValue = duplex;\n if (\"String_Node_Str\".equalsIgnoreCase(duplex)) {\n duplexValue = \"String_Node_Str\";\n } else if (\"String_Node_Str\".equalsIgnoreCase... |
"public void testFacets() {\n int facetCount = bo.getChildren().size();\n bo.addFacet(\"String_Node_Str\", \"String_Node_Str\", TLFacetType.CUSTOM);\n Assert.assertEquals(facetCount, bo.getChildren().size());\n nbo = (BusinessObjectNode) bo.createMinorVersionComponent();\n MinorComplex += 1;\n nbo.isI... |
"public static void setUpClass() throws Exception {\n String url = \"String_Node_Str\";\n String login = \"String_Node_Str\";\n String passwd = \"String_Node_Str\";\n if (!url.startsWith(\"String_Node_Str\")) {\n throw new Exception(\"String_Node_Str\" + url);\n }\n DbConnectionSettings setting... |
"public void cdata(String value) {\n try {\n for (String part : MarshalRecord.splitCData(value)) {\n xmlStreamWriter.writeCData(part);\n }\n } catch (XMLStreamException e) {\n throw XMLMarshalException.marshalException(e);\n }\n}\n"
|
"private int assignAndRequest(HTTPDownloader dloader, int[] refSleepTime, boolean http11) {\n synchronized (stealLock) {\n RemoteFileDesc rfd = dloader.getRemoteFileDesc();\n boolean updateNeeded = true;\n try {\n if (!needed.isEmpty()) {\n assignWhite(dloader, http11);... |
"public String getFileName(Context context) {\n if ((null == mFileName) && (null != getUri())) {\n Uri mediaUri = getUri();\n if (null != mediaUri) {\n try {\n if (mediaUri.toString().startsWith(\"String_Node_Str\")) {\n Cursor cursor = null;\n ... |
"public void writeToNBT(NBTTagCompound nbt) {\n super.writeToNBT(nbt);\n if (node != null && node.host() == this) {\n final NBTTagCompound nodeNbt = new NBTTagCompound();\n node.save(nodeNbt);\n nbt.setTag(\"String_Node_Str\", nodeNbt);\n }\n if (oc_fs != null && oc_fs().node() != null)... |
"boolean checkUnionEquivalenceHelper(UnionType that, EquivalenceMethod eqMethod) {\n Collection<JSType> thatAlternates = that.getAlternates();\n if (eqMethod == EquivalenceMethod.IDENTITY && getAlternates().size() != thatAlternates.size()) {\n return false;\n }\n for (JSType alternate : that.alternat... |
"public void execute(Tuple tuple) {\n if (TupleUtils.isTickTuple(tuple)) {\n LOG.info(\"String_Node_Str\");\n emitCurrentWindowCounts();\n } else {\n countObjAndAck(tuple);\n }\n}\n"
|
"private void destroy(Fragment fragment) {\n if (!fragment.getActivity().isChangingConfigurations()) {\n fragment.getFragmentManager().unregisterFragmentLifecycleCallbacks(this);\n presenter.onDestroy();\n if (listener != null) {\n listener.onDestroy(id);\n }\n presenter... |
"public Result jsonp() {\n contentType = APPLICATION_JSONP;\n return this;\n}\n"
|
"public void predictFunctionTest() throws InterruptedException, URISyntaxException {\n URI resource = new URI(\"String_Node_Str\" + System.getProperty(\"String_Node_Str\") + \"String_Node_Str\");\n String modelStorageLocation = new File(resource).getAbsolutePath();\n SiddhiManager siddhiManager = new SiddhiMan... |
"private TransferEndEvent transferImpl(String targetName, final TransferDefinition definition, final TransferEventProcessor eventProcessor) throws TransferFailureException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + targetName);\n }\n TransferEndEvent endEvent = null;\n Ex... |
"private boolean isMethodApplicable(Method method) {\n Class<?>[] parameters = method.getParameterTypes();\n return method.isAnnotationPresent(PacketHandler.class) && ((parameters.length == 1 && Packet.class.isAssignableFrom(parameters[0])) || (parameters.length == 2 && parameters[0].equals(Connection.class) && P... |
"public static void onChunkNoLongerNeeded(Chunk unneededChunk) {\n if (!WDL.downloading) {\n return;\n }\n if (unneededChunk == null) {\n return;\n }\n if (WDLPluginChannels.canSaveChunk(unneededChunk)) {\n WDLMessages.chatMessageTranslated(WDLMessageTypes.ON_CHUNK_NO_LONGER_NEEDED, ... |
"public boolean equals(final Object obj) {\n if (obj == this) {\n return true;\n }\n if (!(obj instanceof ReturnType)) {\n return false;\n }\n final ReturnType other = (ReturnType) obj;\n if ((this.returnType == null) ? other.returnType != null : this.returnType.equals(other.returnType))... |
"public void updateTick(World world, int x, int y, int z, Random random) {\n super.updateTick(world, x, y, z, random);\n if (world.getBlockLightValue(x, y + 1, z) >= 9) {\n int meta = world.getBlockMetadata(x, y, z);\n if ((meta == 4) || (meta == 5)) {\n return;\n }\n if ((w... |
"public boolean consumesEvent(Event event) {\n Class<Event>[] eventClasses = eventClassesToConsume();\n if (eventClasses == null)\n return false;\n for (Class eventClass : eventClasses) {\n if (!Event.class.isAssignableFrom(eventClass)) {\n logger.warning(\"String_Node_Str\");\n ... |
"private void checkJQueryProperty(ExpressionTree expressionTree, List<String> deprecated, String parentheses) {\n if (expressionTree.is(Tree.Kind.DOT_MEMBER_EXPRESSION)) {\n ExpressionTree object = ((DotMemberExpressionTreeImpl) expressionTree).object();\n ExpressionTree property = ((DotMemberExpressio... |
"private <T extends SkyValue> EvaluationResult<T> doMutatingEvaluation(ImmutableSet<SkyKey> skyKeys) throws InterruptedException, E {\n NodeEntry errorTransienceEntry = Iterables.getOnlyElement(graph.createIfAbsentBatch(null, Reason.PRE_OR_POST_EVALUATION, ImmutableList.of(ErrorTransienceValue.KEY)).values());\n ... |
"public void selectionChanged(SelectionChangedEvent event) {\n IStructuredSelection selection = (IStructuredSelection) event.getSelection();\n TalendPropertyTabDescriptor descriptor = (TalendPropertyTabDescriptor) selection.getFirstElement();\n if (descriptor == null) {\n return;\n }\n if (current... |
"public boolean canChoose(UUID sourceControllerId, Game game) {\n int count = 0;\n for (StackObject stackObject : game.getStack()) {\n if (game.getState().getPlayersInRange(sourceControllerId, game).contains(stackObject.getControllerId()) && Objects.equals(stackObject.getControllerId(), sourceControllerId)... |
"private void freeToExtractList() {\n if (useToextractlist) {\n HashMap<File, String> toExtractlistTemp = new HashMap<File, String>();\n for (Map.Entry<File, String> entry : toExtractlist.entrySet()) {\n File key = entry.getKey();\n if (key.isFile())\n toExtractlist... |
"public boolean launch(UserRequest ureq, WindowControl wControl) {\n BusinessControl bc = wControl.getBusinessControl();\n ContextEntry mainCe = bc.popLauncherContextEntry();\n OLATResourceable ores = mainCe.getOLATResourceable();\n boolean ceConsumed = false;\n RepositoryEntry re = null;\n if (ores.g... |
"public void createFeed(HttpRequest request, HttpResponder responder, String namespaceId, String category, String name) {\n try {\n Id.NotificationFeed combinedFeed;\n try {\n Id.NotificationFeed feed = parseBody(request, Id.NotificationFeed.class);\n combinedFeed = new Id.Notific... |
"static DocumentModel modelFromString(String inString) {\n DocumentModel model = new DocumentModel();\n JsonParser parser = new JsonParser();\n JsonObject topDict = parser.parse(inString).getAsJsonObject();\n if (topDict.getAsJsonArray(\"String_Node_Str\") != null) {\n JsonArray colorArray = topDict.... |
"public static Transaction createFakeTx(NetworkParameters params, BigInteger nanocoins, Address to) {\n Transaction t = new Transaction(params);\n TransactionOutput outputToMe = new TransactionOutput(params, t, nanocoins, to);\n t.addOutput(outputToMe);\n TransactionOutput change = new TransactionOutput(par... |
"public void updateLabel(TurboLabel editedLabel) {\n Label ghLabel = editedLabel.toGhLabel();\n try {\n labelService.editLabel(repoId, ghLabel, labelName);\n } catch (IOException e) {\n e.printStackTrace();\n }\n}\n"
|
"public OpenAPI read(Class<?> cls, String parentPath) {\n List<org.eclipse.microprofile.openapi.annotations.security.SecurityScheme> apiSecurityScheme = ReflectionUtils.getRepeatableAnnotations(cls, org.eclipse.microprofile.openapi.annotations.security.SecurityScheme.class);\n List<org.eclipse.microprofile.openap... |
"public void testQueryMetrics() throws Exception {\n verifyAggregateQueryResult(\"String_Node_Str\" + getContext(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\", 3);\n verifyAggregateQueryResult(\"String_Node_Str\" + getContext(\"String_Node_Str\", \"Strin... |
"private static void jj_la1_0() {\n jj_la1_0 = new int[] { 0x1d180c0, 0x80, 0x40000, 0x1d180c0, 0x40000, 0x1d180c0, 0x1c000c0, 0x2000000, 0x20, 0x1000000, 0x4c00, 0x4c00, 0x4c00 };\n}\n"
|
"private static void lint(Path path, boolean fix) throws IOException {\n SourceFile file = SourceFile.fromFile(path.toString());\n Compiler compiler = new Compiler(System.out);\n CompilerOptions options = new CompilerOptions();\n options.setLanguage(LanguageMode.ECMASCRIPT6_STRICT);\n options.setSkipTran... |
"public boolean isGlobalDecorator() {\n return false;\n}\n"
|
"private static List populateArgument(ComputedColumnHandle modelCmptdColumn) {\n List argument = new ArrayList();\n Iterator it = modelCmptdColumn.argumentsIterator();\n while (it != null && it.hasNext()) {\n AggregationArgumentHandle arg = (AggregationArgumentHandle) it.next();\n argument.add(ne... |
"public synchronized void growJournal(long newSize) throws IOException {\n if (newSize >= journalSize.get()) {\n raf.setLength(newSize);\n journalSize = newSize;\n }\n}\n"
|
"public double[] forward(int[] x, int action) {\n double ans = 0;\n for (int j = 0; j < 100; j++) {\n for (int i = 0; i < 64; i++) sum[0][j] += x[i] * w[0][i][j];\n sum[0][j] = LRelu(sum[0][j] + b[0][j]);\n }\n for (int k = 1; k <= 2; k++) for (int j = 0; j < 100; j++) {\n for (int i = ... |
"private Map<String, Object> readObject() throws ResourceException {\n try {\n Map<String, Object> object = objectSet.read(id);\n Status status = conditions.getStatus(getMethod(), true, getTag(object), null);\n if (status != null && status.isError()) {\n throw new ResourceException(st... |
"public ServerResponse<String> forgetGetQuestion(String username) {\n ServerResponse<String> valid = this.checkValid(username, Const.USERNAME);\n if (valid.isSuccess()) {\n return ServerResponse.createByErrorMessage(\"String_Node_Str\");\n }\n String question = userMapper.selectForgetQuestion(usernam... |
"protected int validateLikeExpression(LikeExpression expression) {\n int result = 0;\n if (expression.hasStringExpression()) {\n Expression stringExpression = expression.getStringExpression();\n StateFieldPathExpression pathExpression = getStateFieldPathExpression(stringExpression);\n if (pat... |
"private final void renderHorizontalText(IChartComputation cComp, GC gc, Label la, double dX, double dY) {\n final FontDefinition fd = la.getCaption().getFont();\n final Color clrText = (Color) _sxs.getColor(la.getCaption().getColor());\n final ITextMetrics itm = cComp.getTextMetrics(_sxs, la, 0);\n final d... |
"public PartRevision updatePartIteration(PartIterationKey pKey, String pIterationNote, Source source, List<PartUsageLink> pUsageLinks, List<InstanceAttribute> pAttributes) throws UserNotFoundException, WorkspaceNotFoundException, AccessRightException, NotAllowedException, PartRevisionNotFoundException {\n User user ... |
"private void writeKeyToDisk(String key, String keyPath) {\n File keyfile = new File(keyPath);\n if (!keyfile.exists()) {\n try {\n keyfile.createNewFile();\n } catch (IOException e) {\n s_logger.warn(\"String_Node_Str\" + e.toString());\n throw new CloudRuntimeExcep... |
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n Permanent target = game.getPermanentOrLKIBattlefield(this.getTargetPointer().getFirst(game, source));\n if (player != null && target != null) {\n player.loseLife(target.getToughness().getValu... |
"private void populateCompleteQueue(final Locus stopBeforeLocus) {\n removeSkippedRegion(stopBeforeLocus);\n if (accumulator.isEmpty()) {\n return;\n }\n final K locusInfo = accumulator.get(0);\n if (locusComparator.compare(stopBeforeLocus, locusInfo) <= 0) {\n return;\n }\n if (emitU... |
"public int setup(MSP430Core cpu, ArrayList<IOUnit> ioUnits) {\n System.out.println(\"String_Node_Str\");\n USART usart0 = new USART(cpu, 0, cpu.memory, 0x70);\n USART usart1 = new USART(cpu, 1, cpu.memory, 0x78);\n for (int i = 0, n = 8; i < n; i++) {\n cpu.memOut[0x70 + i] = usart0;\n cpu.me... |
"public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (type == Types.DOUBLE) {\n return this;\n }\n if (type.isSuperTypeOf(Types.DOUBLE)) {\n return new BoxedValue(this, Types.DOUBLE.boxMethod);\n }\n if (type.getTheClass().getAnnotation(... |
"ComponentName startServiceInnerLocked(ServiceMap smap, Intent service, ServiceRecord r, boolean callerFg, boolean addToStarting) {\n ProcessStats.ServiceState stracker = r.getTracker();\n if (stracker != null) {\n stracker.setStarted(true, mAm.mProcessStats.getMemFactorLocked(), r.lastActivity);\n }\n ... |
"public void updateTicketOwner(Ticket ticket, Locale locale, Event event, UpdateTicketOwnerForm updateTicketOwner, TextTemplateBuilder confirmationTextBuilder, TextTemplateBuilder ownerChangeTextBuilder, PDFTemplateBuilder pdfTemplateBuilder) {\n String newEmail = updateTicketOwner.getEmail().trim();\n String new... |
"public boolean runWithCheckedExceptions() throws IOException, InterruptedException {\n HTable backfilledHTable = null;\n HTable liveCubeHTable = null;\n ResultScanner liveCubeScanner = null;\n try {\n liveCubeHTable = new HTable(conf, liveCubeTableName);\n liveCubeScanner = liveCubeHTable.get... |
"private void subscribe() {\n KafkaConsumer.Preparer preparer = kafkaClient.getConsumer().prepare();\n for (MetricsScope scope : MetricsScope.values()) {\n String topic = topicPrefix + \"String_Node_Str\" + scope.name();\n for (int i = 0; i < partitionSize; i++) {\n long offset = getOffse... |
"public static void addApplication(ApplicationBean appDefinition, ConfigurationContext ctxt, String userName, String tenantDomain) throws RestAPIException {\n try {\n if (AutoscalerServiceClient.getInstance().getApplication(appDefinition.getApplicationId()) != null) {\n String msg = \"String_Node_S... |
"public static Archive<?> createDeployment() {\n return ShrinkWrap.create(WebArchive.class, DefaultExceptionMapperTest.class.getSimpleName() + \"String_Node_Str\").addClasses(SimpleGetApi.class, LowerPriorityTestResponseExceptionMapper.class);\n}\n"
|
"public boolean merge(Data dataKey, EntryView mergingEntry, MapMergePolicy mergePolicy) {\n checkIfLoaded();\n Record record = records.get(dataKey);\n Object newValue = null;\n if (record == null) {\n newValue = mergingEntry.getValue();\n record = mapService.createRecord(name, dataKey, newValu... |
"protected void parseConfigVars(HttpServletRequest request, Collection parameterList) {\n this.configMap = new HashMap();\n if (this.displayTexts == null)\n this.displayTexts = new HashMap();\n String reportConfigName = ParameterAccessor.getConfigFileName(this.reportDesignName);\n if (reportConfigNam... |
"protected Status getMiscStatus(int severity, String message) {\n return new Status(severity, PlatformUI.PLUGIN_ID, severity, message, null);\n}\n"
|
"private <Result, Body, DeserializeType> Result sendRequestInternal(final IHttpRequest request, final Class<Result> resultClass, final Body serializable, final IProgressCallback<Result> progress, final IStatefulResponseHandler<Result, DeserializeType> handler) throws ClientException {\n final int defaultBufferSize =... |
"public void testConverters() {\n TestType testType = new TestType();\n testType.name = \"String_Node_Str\";\n long testTime = System.currentTimeMillis();\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(testTime);\n testType.calendar = calendar;\n Date date = new Date(testT... |
"private List<Map<String, Object>> executeMetricDefsQuery(String tenantId, String name, Map<String, String> dimensions, DateTime startTime, DateTime endTime, String offset, int limit) {\n String namePart = \"String_Node_Str\";\n if (name != null && !name.isEmpty()) {\n namePart = \"String_Node_Str\";\n ... |
"public String format(final int column, final String value) {\n return value.endsWith(\"String_Node_Str\") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;\n}\n"
|
"public double getSquareDistance() {\n return wrappedINNS.getSquareDistance();\n}\n"
|
"public void run() {\n for (IRFunction irFunction : ir.getFuncs().values()) {\n FuncInfo funcInfo = new FuncInfo();\n funcInfoMap.put(irFunction, funcInfo);\n Map<IRRegister, IRRegister> renameMap = new HashMap<>();\n for (BasicBlock bb : irFunction.getReversePostOrder()) {\n f... |
"private IMetadataTable getMetadataTableBySalesforceServerAPI(final String endPoint, final String user, final String pass, final String timeOut, final String moduleName, final String proxy, final String proxyHost, final String proxyPort, final String proxyUsername, final String proxyPassword) {\n IMetadataTable meta... |
"public void addMethod(MethodCoverageData methodData) {\n int firstLineInBody = methodData.getFirstLineInBody();\n firstLineToMethodData.put(firstLineInBody, methodData);\n}\n"
|
"public KeyVersion createKey(String name, byte[] material, Options options) throws IOException {\n KeyVersion version = null;\n return version;\n}\n"
|
"public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if (action.equals(Intent.ACTION_SCREEN_OFF) && mVisible) {\n mFinishLaunchHomeRunnable.run();\n } else if (action.equals(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED)) {\n refreshSearchWidget()... |
"public String getLtoDestination() {\n try {\n if (checkService()) {\n return sService.getLtoDestination();\n }\n } catch (RemoteException e) {\n }\n return null;\n}\n"
|
"public void onSuccess(DiffPatcher result) {\n root = result.createNew(0);\n base.add(root);\n base.add(new HTML(\"String_Node_Str\"));\n diff = new VerticalPanel();\n diff.setStylePrimaryName(\"String_Node_Str\");\n base.add(diff);\n diff.clear();\n diff.add(new HTML(result.toString()));\n r... |
"private void createGreenscreenButton() {\n FileInputStream fips = null;\n try {\n greengrid = new GridPane();\n greengrid.prefWidth(Screen.getPrimary().getBounds().getWidth());\n filterscrollplanel = new ScrollPane();\n greengrid.setStyle(\"String_Node_Str\");\n filterscrollpla... |
"public boolean addChild(K key, Node<K, V> childNode) {\n if (numKeys < keys.length) {\n int sentry = 0;\n while (sentry < numKeys && keys[sentry].compareTo(key) < 0) {\n sentry++;\n }\n if (sentry < numKeysPerNode) {\n int end = numKeys;\n while (end != s... |
"protected void registerChildren() {\n super.registerChildren();\n final JDBCDriverImpl driverImpl = new JDBCDriverImpl(getObjectName(), defaultChildMetadata());\n ObjectName driverON = new ObjectNameBuilder(getMBeanServer(), getObjectName()).buildChildObjectName(J2EETypes.JDBC_DRIVER, getName());\n registe... |
"public boolean existTabItem(String title) {\n CTabItem[] items = tabFolder.getItems();\n for (int i = 0; i < items.length; i++) {\n if (items[i].getText().equals(itemKey))\n return true;\n }\n return false;\n}\n"
|
"private void translateWhenInsideContainerChange(Phantom phantom) {\n Collection<Diff> changes = Collections2.filter(phantom.getDifference().getMatch().getDifferences(), new Predicate<Diff>() {\n public boolean apply(Diff difference) {\n return difference.getKind() == DifferenceKind.MOVE;\n ... |
"public void init() {\n final PropertyChangeEvent evt = new PropertyChangeEvent(this, \"String_Node_Str\", null, null);\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n for (PropertyChangeListener l : listeners) {\n l.propertyChange(evt);\n }\n ... |
"public void openEditor(Item item) {\n AnalysisItemEditorInput analysisEditorInput = new AnalysisItemEditorInput(item);\n DBConnectionRepNode connectionRepNode = getParameter().getConnectionRepNode();\n analysisEditorInput.setConnectionNode(connectionRepNode);\n CorePlugin.getDefault().openEditor(analysisEd... |
"public static void main(String[] args) {\n SortedHashMap m = new SortedHashMap(100, SortedHashMap.OrderingType.HASH);\n List l = new ArrayList();\n l.add(100);\n l.add(101);\n for (int i = 0; i < 10; i++) {\n m.put(i, \"String_Node_Str\" + i);\n }\n m.get(0);\n m.get(4);\n SortedHashM... |
"protected JSONObject getExpectedParameters(int sdlVersion) {\n JSONObject result = new JSONObject();\n try {\n result.put(OnSdlChoiceChosen.KEY_TRIGGER_SOURCE, Test.GENERAL_TRIGGERSOURCE);\n result.put(OnSdlChoiceChosen.KEY_SDL_CHOICE, sdlChoice);\n } catch (JSONException e) {\n fail(Test... |
"public void showChatRoomAutoOpenConfigDialog(ProtocolProviderService pps, String chatRoomId) {\n ChatRoomAutoOpenConfigDialog.showChatRoomAutoOpenConfigDialog(pps, chatRoomId);\n}\n"
|
"protected void handleDestinationBrowseButtonPressed() {\n FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.SAVE);\n if (getCurrentExportType().equals(EXPORTTYPE_WSWAR)) {\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\", \"String_Node_Str\" });\n } else if (getCurrentExp... |
"public boolean shouldExecute() {\n boss = minion.getLord();\n if (boss == null) {\n return false;\n } else {\n double d0 = this.boss.getTheDistanceSquared(minion.getRepresentingEntity());\n return d0 >= MINDIST;\n }\n}\n"
|
"public void testLearnHyphen() {\n System.out.println(\"String_Node_Str\");\n Dataset train = load(\"String_Node_Str\", null);\n Dataset test = load(\"String_Node_Str\", train.attributes);\n CRF.Trainer trainer = new CRF.Trainer(train.attributes, train.k);\n trainer.setLearningRate(1.0);\n trainer.set... |
"public void initialize() {\n if (ctxUtil.getInvocationComponentId() == null) {\n ctxUtil.setInstanceContext();\n }\n if (managedExecutorService == null) {\n try {\n InitialContext ctx = new InitialContext();\n managedExecutorService = (ManagedExecutorService) ctx.lookup(\"S... |
"private List<SequencerRun> findSequencerRuns() throws IOException, JAXBException {\n JaxbObject<SequencerRunList> jaxb = new JaxbObject<SequencerRunList>();\n SequencerRunList list = (SequencerRunList) findObject(\"String_Node_Str\", \"String_Node_Str\", jaxb, new SequencerRunList());\n if (list != null)\n ... |
"private final GoogleCredential getDefaultCredentialUnsynchronized(HttpTransport transport, JsonFactory jsonFactory) throws IOException {\n GoogleCredential credential = null;\n String credentialsPath = getEnv(CREDENTIAL_ENV_VAR);\n if (credentialsPath != null && credentialsPath.length() > 0) {\n InputS... |
"public void onClick(View v) {\n HttpUrl httpUrl = RetrofitUrlManager.getInstance().fetchDomain(DOUBAN_DOMAIN_NAME);\n if (httpUrl == null || !httpUrl.toString().equals(mUrl3.getText().toString())) {\n RetrofitUrlManager.getInstance().putDomain(DOUBAN_DOMAIN_NAME, mUrl3.getText().toString());\n }\n N... |
"public static int o(int oe) {\n int i = oe >> 16;\n return i < 0 ? i + 1 : i;\n}\n"
|
"public void buy(BuyDTO buyDTO) {\n Account account = accountService.getAccount(getUserId());\n Assert.isTrue(encoder.matches(buyDTO.getTransactionPassword(), account.getTransactionPassword()), MessageConstants.TRANSFER_PWD_ERR);\n ProjectVO project = get(buyDTO.getProjectId());\n Assert.notNull(project, Co... |
"protected void applyPullRules(JNode sourceNode, JNode targetNode) {\n try {\n for (JControlModel.PullRule pullRule : getControlModel().getPullRules()) {\n if (pullRule.getSourceGetFeature().getFeatureMethod() != null && pullRule.getSourceGetFeature().getFeatureClass().isInstance(sourceNode) && pul... |
"private int getBackgroundColor() {\n List<? extends ViewType> vt = null;\n if (viewtype instanceof SchoolClass) {\n vt = lesson.getSchoolSubjects();\n } else if (viewtype instanceof SchoolTeacher) {\n vt = lesson.getSchoolSubjects();\n } else if (viewtype instanceof SchoolRoom) {\n vt ... |
"protected void onOK() {\n if (!verifyUserInput()) {\n this.getJDialog().requestFocus();\n } else {\n super.onOK();\n if (!this.operatorIsNew) {\n ToolAdapterActionRegistrar.removeOperatorMenu(oldOperatorDescriptor);\n ToolAdapterIO.removeOperator(oldOperatorDescriptor, ... |
"private void changeTraderStock(Player player, HumanNPC npc, String item, String price, boolean selling) {\n if (item.contains(\"String_Node_Str\")) {\n Material mat = StringUtils.parseMaterial(price);\n if (mat == null) {\n player.sendMessage(ChatColor.RED + \"String_Node_Str\");\n ... |
"public static final Object safeDivide(Object dividend, Object divisor, Object ifZero) throws BirtException {\n try {\n Object ret = divide(dividend, divisor);\n if (ret instanceof Double) {\n Double d = (Double) ret;\n return Double.isNaN(d) || Double.isInfinite(d) ? ifZero : ret... |
"public void run() {\n ((SparqlKnowledgeSource) component).setTriplesThread(this);\n ((SparqlKnowledgeSource) component).setTriplesThreadRunning(true);\n ((SparqlKnowledgeSource) component).calculateTriples(subject);\n ((SparqlKnowledgeSource) component).setTriplesThreadRunning(false);\n}\n"
|
"public Uid create(final ObjectClass objClass, final Set<Attribute> attrs, final OperationOptions options) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\");\n }\n if (objClass == null || (!objClass.equals(ObjectClass.ACCOUNT))) {\n throw new IllegalArgumentException(\"String_Node_... |
"public void handleRequest(final Transaction transaction, final Request<JsonObject> request) throws Exception {\n final AsyncClient client = clientPool.acquireAsync();\n transaction.startAsync();\n if (request.getMethod().equals(\"String_Node_Str\")) {\n request.getParams().addProperty(\"String_Node_Str... |
"public void activate_component_async(int h, long execution_id, String name, String exe, String type, CBComponentInfo callback, CBDescIn desc) {\n CBDescOut descOut = new CBDescOut(0, desc.id_tag);\n try {\n ComponentInfo componentInfo = activate_component(h, execution_id, name, exe, type);\n callba... |
"protected boolean checkSpawnerConditions() {\n int sx = getSpawnerX(), sy = getSpawnerY(), sz = getSpawnerZ();\n return getSpawnerWorld().getEntitiesWithinAABB(EntitySilverfish.class, AxisAlignedBB.getBoundingBox(sx, sy, sz, sx + 1, sy + 1, sz + 1).expand(10D, 10D, 10D)).size() <= 10;\n}\n"
|
"public ObaReportProblemWithStopResponse call() {\n return callPostHack(ObaReportProblemWithStopResponse.class);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.