idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
760,807 | public static ScanHeader read(ByteBuffer bb) {<NEW_LINE>ScanHeader scan = new ScanHeader();<NEW_LINE>scan.ls = bb.getShort() & 0xffff;<NEW_LINE>scan.ns = bb.get() & 0xff;<NEW_LINE>scan.components = new Component[scan.ns];<NEW_LINE>for (int i = 0; i < scan.components.length; i++) {<NEW_LINE>Component c = scan.components... | = bb.get() & 0xff; |
1,321,343 | private Trace readRequestTrace(Object target, Object[] args) {<NEW_LINE>final Invoker invoker = (Invoker) target;<NEW_LINE>// Ignore monitor service.<NEW_LINE>if (DubboConstants.MONITOR_SERVICE_FQCN.equals(invoker.getInterface().getName())) {<NEW_LINE>return traceContext.disableSampling();<NEW_LINE>}<NEW_LINE>final Rpc... | .META_PARENT_SPAN_ID), SpanId.NULL); |
1,413,238 | protected int pselect6(Emulator<?> emulator) {<NEW_LINE>Arm32RegisterContext context = emulator.getContext();<NEW_LINE>int nfds = context.getIntArg(0);<NEW_LINE>Pointer readfds = context.getPointerArg(1);<NEW_LINE>Pointer writefds = context.getPointerArg(2);<NEW_LINE>Pointer exceptfds = context.getPointerArg(3);<NEW_LI... | ", LR=" + context.getLRPointer()); |
1,137,090 | public static SQLException toSQLException(ResourceException resX) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.<MASK><NEW_LINE>SQLException sqlX;<NEW_LINE>Exception linkedX = resX.getLinkedException();<NEW_LINE>// if the linked exception is a SQL Exception, just use that one<NEW_LINE>if (linkedX instanceof SQLExcept... | entry(tc, "toSQLException", resX); |
140,986 | final DeregisterTaskDefinitionResult executeDeregisterTaskDefinition(DeregisterTaskDefinitionRequest deregisterTaskDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterTaskDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,120,689 | public static boolean isValidScope(String scopes, AuthorizationRequestContext authorizationRequestContext, ClientModel client) {<NEW_LINE>if (scopes == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (authorizationRequestContext.getAuthorizationDetailEntries() == null || authorizationRequestContext.getAuthorizatio... | .join(" ", rarScopes)); |
227,877 | private void init() {<NEW_LINE>mPaint = new Paint();<NEW_LINE>mPaint.setAntiAlias(true);<NEW_LINE>mPaint.setColor(mFrameColor);<NEW_LINE>mPaint.setStrokeWidth(mFrameWidth);<NEW_LINE>mPaint.setStyle(Paint.Style.STROKE);<NEW_LINE>mTextPaint.setAntiAlias(true);<NEW_LINE>mTextPaint.setStyle(Paint.Style.FILL);<NEW_LINE>mTex... | getDrawable(R.drawable.ic_edit); |
89,114 | public InAppMessageButton unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InAppMessageButton inAppMessageButton = new InAppMessageButton();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get... | String currentParentElement = context.getCurrentParentElement(); |
1,513,671 | final DeleteVoiceConnectorTerminationResult executeDeleteVoiceConnectorTermination(DeleteVoiceConnectorTerminationRequest deleteVoiceConnectorTerminationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceConnectorTerminationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteVoiceConnectorTermination"); |
466,009 | public void moveObject(String repositoryId, final Holder<String> objectId, final String targetFolderId, final String sourceFolderId, final ExtensionsData extension) {<NEW_LINE>if (sourceFolderId != null && targetFolderId != null) {<NEW_LINE>if (sourceFolderId.equals(targetFolderId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LI... | getValue() + " is not filed in folder with ID " + sourceFolderId); |
739,659 | protected void featuresCpCp2Cp3C(PaddedList<IN> cInfo, int loc, FeatureCollector out) {<NEW_LINE>out.setSuffix("CpCp2Cp3C");<NEW_LINE>CoreLabel p = cInfo.get(loc - 1);<NEW_LINE>if (flags.useTaggySequences) {<NEW_LINE>CoreLabel <MASK><NEW_LINE>CoreLabel p2 = cInfo.get(loc - 2);<NEW_LINE>CoreLabel p3 = cInfo.get(loc - 3)... | c = cInfo.get(loc); |
1,473,997 | protected Reply createReply(Values ret, String serviceName, Trace trace) {<NEW_LINE>Version version = new Version(ret.get(0).asUtf8Array());<NEW_LINE>double retryDelay = ret.get(1).asDouble();<NEW_LINE>int[] errorCodes = ret.get(2).asInt32Array();<NEW_LINE>String[] errorMessages = ret.get(3).asStringArray();<NEW_LINE>S... | errorServices[i] : serviceName)); |
377,717 | public void deleteTaxClass(Long id, MerchantStore store, Language language) {<NEW_LINE>Validate.notNull(id, "TaxClass id cannot be null");<NEW_LINE><MASK><NEW_LINE>Validate.notNull(store.getCode(), "MerchantStore code cannot be null");<NEW_LINE>try {<NEW_LINE>TaxClass model = taxClassService.getById(id);<NEW_LINE>if (m... | Validate.notNull(store, "MerchantStore cannot be null"); |
1,235,315 | private static void encodeQueryData(Query query, int code, EncodedData ed) {<NEW_LINE>ByteBuffer <MASK><NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>switch(code) {<NEW_LINE>case 0:<NEW_LINE>ed.setReturned(query.getModel().getQueryTree().getRoot().encode(buf));<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>ed.setReturned... | buf = ByteBuffer.allocate(1024); |
714,134 | public static synchronized void prepareRuntimeEnv(MLContext mlContext) {<NEW_LINE>prepareStartupScript(mlContext);<NEW_LINE>String workDir = mlContext<MASK><NEW_LINE>// create virtual env<NEW_LINE>try {<NEW_LINE>PythonUtil.setupVirtualEnv(mlContext);<NEW_LINE>} catch (IOException e) {<NEW_LINE>e.printStackTrace();<NEW_... | .getWorkDir().getAbsolutePath(); |
1,774,718 | public void decodeFile(String _data) throws IOException {<NEW_LINE>_data = Base64Decoder.decodeData(_data);<NEW_LINE>data = _data;<NEW_LINE>try {<NEW_LINE>if (SupportedFileTypes.RASP_FORMAT.equals(filetype)) {<NEW_LINE>RASPMotorLoader loader = new RASPMotorLoader();<NEW_LINE>List<ThrustCurveMotor.Builder> motors = load... | thrustCurveMotor = motors.get(0); |
1,380,844 | // ===================================================================================<NEW_LINE>// Source<NEW_LINE>// ======<NEW_LINE>@Override<NEW_LINE>public Map<String, Object> toSource() {<NEW_LINE>Map<String, Object> sourceMap = new HashMap<>();<NEW_LINE>if (createdBy != null) {<NEW_LINE>addFieldToSource(sourceMap... | addFieldToSource(sourceMap, "password", password); |
284,025 | public void showInfo(CounterInfo info) {<NEW_LINE><MASK><NEW_LINE>setTotalCost(info.totalCost);<NEW_LINE>if (info.type == CounterInfo.TYPE_ACTIVITY) {<NEW_LINE>tvPause.setVisibility(View.VISIBLE);<NEW_LINE>tvLaunch.setVisibility(View.VISIBLE);<NEW_LINE>tvRender.setVisibility(View.VISIBLE);<NEW_LINE>tvOther.setVisibilit... | tvTitle.setText(info.title); |
571,500 | public boolean apply(Game game, Ability source) {<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (sourceObject != null) {<NEW_LINE>Permanent sourcePermanent = source.getSourcePermanentIfItStillExists(game);<NEW_LINE>Permanent creature1 = game.getPermanent(getTargetPointer().getFirst(game, ... | source, game, false, true); |
358,122 | protected Widget createMainWidget() {<NEW_LINE>progress_ = addProgressIndicator();<NEW_LINE>VerticalPanel panel = new VerticalPanel();<NEW_LINE>HorizontalPanel horizontalPanel = new HorizontalPanel();<NEW_LINE>horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);<NEW_LINE>// add image<NEW_LINE>MessageDi... | CheckBox(constants_.includeHiddenObjects()); |
1,718,857 | private void loadNode556() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditEventType_ServerId, new QualifiedName(0, "ServerId"), new LocalizedText("en", "ServerId"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identifiers.... | .expanded(), true)); |
1,271,842 | public void updateBrokerRequest(BrokerRequest brokerRequest) {<NEW_LINE>for (AstNode astNode : getChildren()) {<NEW_LINE>if (astNode instanceof FunctionCallAstNode) {<NEW_LINE>String functionName = ((FunctionCallAstNode) astNode).getName();<NEW_LINE>if (AggregationFunctionType.isAggregationFunction(functionName)) {<NEW... | ) astNode).getExpression()); |
1,645,223 | private void post0(final boolean force, final boolean repost) {<NEW_LINE>//<NEW_LINE>// Validate document's DocStatus<NEW_LINE>if (m_DocStatus == null) {<NEW_LINE>// This is a valid case (e.g. M_MatchInv, M_MatchPO)<NEW_LINE>} else if (m_DocStatus.equals(IDocument.STATUS_Completed) || m_DocStatus.equals(IDocument.STATU... | setPreserveDocumentPostedStatus().setDetailMessage("@AlreadyPosted@"); |
1,626,755 | public static QueryEndPointListResponse unmarshall(QueryEndPointListResponse queryEndPointListResponse, UnmarshallerContext context) {<NEW_LINE>queryEndPointListResponse.setRequestId(context.stringValue("QueryEndPointListResponse.RequestId"));<NEW_LINE>queryEndPointListResponse.setRegionId(context.stringValue("QueryEnd... | ("QueryEndPointListResponse.EndPointList[" + i + "].endPointID")); |
1,208,828 | public void resizeRecordsMap(Map<Key, Record> recordsMap, int size) {<NEW_LINE>int numRecordsToEvict = recordsMap.size() - size;<NEW_LINE>if (numRecordsToEvict <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (numRecordsToEvict <= size) {<NEW_LINE>// Fewer records to evict than retain, make a heap of records to evict<NE... | size, _intermediateRecordComparator.reversed()); |
1,334,188 | private void buildPartitionsSequentially(long dbId, OlapTable table, List<Partition> partitions, int numReplicas, int numBackends) throws DdlException {<NEW_LINE>// Try to bundle at least 200 CreateReplicaTask's in a single AgentBatchTask.<NEW_LINE>// The number 200 is just an experiment value that seems to work withou... | .max(1, avgReplicasPerPartition)); |
1,017,131 | public static <T> Managed<T> of(IO<T> acquire, Consumer<T> cleanup) {<NEW_LINE>return new FutureStreamManaged<T>() {<NEW_LINE><NEW_LINE>public <R> IO<R> apply(Function<? super T, ? extends IO<R>> fn) {<NEW_LINE>IO<R> y = IO.Comprehensions.forEach(acquire, t1 -> {<NEW_LINE>IO<? extends Try<? extends IO<R>, Throwable>> r... | Future.ofError(e))); |
1,413,143 | public PipelineState pipelineStateFor(String pipelineName) {<NEW_LINE>String cacheKey = pipelineLockStateCacheKey(pipelineName);<NEW_LINE>PipelineState pipelineState = (PipelineState) goCache.get(cacheKey);<NEW_LINE>if (pipelineState != null) {<NEW_LINE>return pipelineState.equals(PipelineState.NOT_LOCKED) ? null : pip... | null ? PipelineState.NOT_LOCKED : pipelineState); |
843,293 | public double[][][] estimateXi(final MLDataSet sequence, final ForwardBackwardCalculator fbc, final HiddenMarkovModel hmm) {<NEW_LINE>if (sequence.size() <= 1) {<NEW_LINE>throw new IllegalArgumentException("Must have more than one observation");<NEW_LINE>}<NEW_LINE>final double[][][] xi = new double[sequence.size() - 1... | ][hmm.getStateCount()]; |
1,670,728 | public ExtendedIterator<OntClass> listHierarchyRootClasses() {<NEW_LINE>// look for the shortcut of using direct subClass on :Thing<NEW_LINE>if (getReasoner() != null) {<NEW_LINE>Model conf = getReasoner().getReasonerCapabilities();<NEW_LINE>if (conf != null && conf.contains(null, ReasonerVocabulary.supportsP, Reasoner... | .as(OntClass.class)); |
567,179 | public XmlObject generateWadl() {<NEW_LINE>ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();<NEW_LINE>Application application = applicationDocument.addNewApplication();<NEW_LINE>createDoc(application.addNewDoc(), restService);<NEW_LINE>Resources resources = application.addNewResources... | applicationDocument.xmlText(), options); |
1,438,325 | public Document loadDocumentAsLimitedStream(final DigestURL location, final CacheStrategy cachePolicy, final BlacklistType blacklistType, final ClientIdentification.Agent agent, final int maxLinks, final long maxBytes) throws IOException {<NEW_LINE>// load resource<NEW_LINE>Request request = request(location, true, fal... | response.getMimeType(), documents); |
278,583 | public boolean fillTemplate(IFilledTemplate filledTemplate, IStatementParameter[] params) {<NEW_LINE>int maxX = filledTemplate.getMax().getX();<NEW_LINE>int maxY = filledTemplate.getMax().getY();<NEW_LINE>int maxZ = filledTemplate.getMax().getZ();<NEW_LINE>filledTemplate.setLineX(0, maxX, 0, 0, true);<NEW_LINE>filledTe... | 0, maxY, 0, true); |
1,850,901 | public void run(RegressionEnvironment env) {<NEW_LINE>setupInfra(env, namedWindow);<NEW_LINE>EPCompiled insertA = compileRuntimePath(env, "A", "insert into MyInfra(c0, c1) values ('A1', 10)");<NEW_LINE>EPCompiled insertB = <MASK><NEW_LINE>env.runtime().getFireAndForgetService().executeQuery(insertA);<NEW_LINE>env.runti... | compileRuntimePath(env, "B", "insert into MyInfra(c2, c3) values (20, 'B1')"); |
330,659 | protected void initClient(AbstractClient client, Endpoint ep, boolean addHeaders) {<NEW_LINE>super.initClient(client, ep, addHeaders);<NEW_LINE>TLSClientParameters tlsParams = secConfig.getTlsClientParams();<NEW_LINE>if (tlsParams.getSSLSocketFactory() != null || tlsParams.getTrustManagers() != null || tlsParams.getHos... | getClient().setProxyServerPort(proxyPort); |
963,259 | public static boolean forLoop(HandlerContext handlerCtx) {<NEW_LINE>String startInt = (<MASK><NEW_LINE>int start = (startInt == null) ? 0 : Integer.parseInt(startInt);<NEW_LINE>int end = ((Integer) handlerCtx.getInputValue("end"));<NEW_LINE>String varName = ((String) handlerCtx.getInputValue("varName"));<NEW_LINE>List<... | String) handlerCtx.getInputValue("start"); |
828,132 | private boolean checkBmp() throws IOException {<NEW_LINE>byte[] a = new byte[44];<NEW_LINE>if (read(a) != a.length)<NEW_LINE>return false;<NEW_LINE>width = getIntLittleEndian(a, 16);<NEW_LINE>height = getIntLittleEndian(a, 20);<NEW_LINE>if (width < 1 || height < 1)<NEW_LINE>return false;<NEW_LINE><MASK><NEW_LINE>if (bi... | bitsPerPixel = getShortLittleEndian(a, 26); |
1,066,436 | protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>monitor.beginTask("Find " + Hexa32.toString32(gxid), IProgressMonitor.UNKNOWN);<NEW_LINE>final LongKeyLinkedMap<Object> xlogMap <MASK><NEW_LINE>Iterator<Integer> itr = ServerManager.getInstance().getOpenServerList().iterator();<NEW_LINE>while (itr.hasNext()) {<... | = new LongKeyLinkedMap<Object>(); |
1,552,412 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String virtualHubName, String connectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and canno... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,177,539 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent enchantment = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && enchantment != null) {<NEW_LINE>Card cardInGraveyard = game.getCard(enchantment.getAttache... | Target target = new TargetCreaturePermanent(filter); |
358,620 | ImmutableList<CToolchain.Builder> createCrosstools() {<NEW_LINE>// clang<NEW_LINE>CToolchain.Builder x86Clang = // Workaround for https://code.google.com/p/android/issues/detail?id=220159.<NEW_LINE>createBaseX86ClangToolchain("x86", "i686", "i686-linux-android").addCompilerFlag("-mstackrealign").setToolchainIdentifier(... | stlImpl.addStlImpl(x86Clang, "4.9"); |
1,213,564 | private String searchPathRoleInChildren(Node current, String[] urlPac, int currentFlow, String method) {<NEW_LINE>if (current == null || urlPac == null || currentFlow >= urlPac.length - 1 || currentFlow < -1 || method == null || "".equals(method)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String matchRole = null;<NEW... | getChildren().get(MATCH_ONE_PATH); |
49,533 | private static void generatePyramid(int height, Position3D startPos, GameArea<Tile, Block<Tile>> gameArea) {<NEW_LINE>double percent = 1.0 / (height + 1);<NEW_LINE>Tile wall = Tile.newBuilder().withCharacter(Symbols.BLOCK_SOLID).build();<NEW_LINE>AtomicInteger currLevel = new AtomicInteger(startPos.getZ());<NEW_LINE>fi... | toPosition3D(currLevel.get()); |
1,051,887 | final DescribeReservedNodeOfferingsResult executeDescribeReservedNodeOfferings(DescribeReservedNodeOfferingsRequest describeReservedNodeOfferingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedNodeOfferingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | (super.beforeMarshalling(describeReservedNodeOfferingsRequest)); |
263,317 | static void compileProfile(Properties props, String profile, CachingProtoLoader loader, Properties globalOptions, String[] rootProfileOptions, final int nestCount) throws Exception {<NEW_LINE>String moduleString = props.getProperty(profile);<NEW_LINE>if (moduleString == null || moduleString.length() == 0) {<NEW_LINE>th... | == 0 ? profileOptions : rootProfileOptions)); |
711,789 | private static void transform(CFGModel model, Map<String, Object> bindings, ModelChecker.Witness witness, Set<StateElementPair> done) {<NEW_LINE>if (witness.binding instanceof List<?>) {<NEW_LINE>// we're at at a leaf of the witness trees<NEW_LINE>// The witness binding is a list of operations, apply them<NEW_LINE>List... | ).findNodeById(witness.state); |
1,459,599 | private static Converter<Collation, Document> toMongoDocumentConverter() {<NEW_LINE>return source -> {<NEW_LINE>Document document = new Document();<NEW_LINE>document.append("locale", source.locale.asString());<NEW_LINE>source.strength.ifPresent(strength -> {<NEW_LINE>document.append("strength", strength.getLevel());<NE... | .append("version", it)); |
1,431,048 | public boolean bodyCall(Node[] args, int length, RuleContext context) {<NEW_LINE>if (length < 2)<NEW_LINE>throw new BuiltinException(this, context, "Must have at least 2 arguments to " + getName());<NEW_LINE>String text = getString(getArg(0, args, context), context);<NEW_LINE>String pattern = getString(getArg(1, args, ... | (pattern).matcher(text); |
31,228 | public ReceiptFilter unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ReceiptFilter receiptFilter = new ReceiptFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_L... | ().unmarshall(context)); |
783,987 | static CodeBlock generateStateUpdateDelegatingCall(SpecModel specModel, int methodIndex, SpecMethodModel<UpdateStateMethod, Void> updateStateMethod, boolean withTransition) {<NEW_LINE>final CodeBlock.Builder codeBlock = CodeBlock.builder();<NEW_LINE>codeBlock.add("case $L:\n$>", methodIndex);<NEW_LINE>final StringBuild... | args.add(GeneratorConstants.STATE_TRANSITION_FIELD_NAME); |
157,826 | public void execute(DiagramHandler handler) {<NEW_LINE>super.execute(handler);<NEW_LINE>GridElement gridElement = Main.getInstance().getEditedGridElement();<NEW_LINE>// select grid element if nothing is selected<NEW_LINE>if (gridElement == null) {<NEW_LINE>SelectorOld selector = CurrentGui.getInstance().getGui().getCur... | getSelectedElements().get(0); |
1,794,192 | private void checkGeoPartitioningParameters(Customer customer, UniverseDefinitionTaskParams taskParams, OpType op) {<NEW_LINE>UUID <MASK><NEW_LINE>if (defaultRegionUUID != null) {<NEW_LINE>UserIntent intent = taskParams.getPrimaryCluster().userIntent;<NEW_LINE>Region defaultRegion = Region.getOrBadRequest(customer.getU... | defaultRegionUUID = PlacementInfoUtil.getDefaultRegion(taskParams); |
1,400,092 | public CompareSameNameAnswerElement answer(NetworkSnapshot snapshot) {<NEW_LINE><MASK><NEW_LINE>_configurations = _batfish.loadConfigurations(snapshot);<NEW_LINE>_csnQuestion = (CompareSameNameQuestion) _question;<NEW_LINE>_nodes = _csnQuestion.getNodeRegex().getMatchingNodes(_batfish, snapshot);<NEW_LINE>_answerElemen... | _assumeAllUnique = _batfish.debugFlagEnabled(DEBUG_FLAG_ASSUME_ALL_UNIQUE); |
390,994 | public void emit(StringBuilder builder) {<NEW_LINE>builder.append(getSymbolTypeName());<NEW_LINE>builder.append(":\n Language: ");<NEW_LINE>builder.append(language.toString());<NEW_LINE>builder.append("\n Target Processor: ");<NEW_LINE>builder.append(processor.toString());<NEW_LINE>builder.append("\n Compiled for... | (microsoftIntermediateLanguageNetModule ? "yes" : "no")); |
1,047,477 | private void nOutReplaceBuild(int layerNum, int nOut, IWeightInit scheme, IWeightInit schemeNext) {<NEW_LINE>Preconditions.checkArgument(layerNum >= 0 && layerNum < editedConfs.size(), "Invalid layer index: must be 0 to " + "numLayers-1 = %s includive, got %s", editedConfs.size(), layerNum);<NEW_LINE>NeuralNetConfigura... | layerNum, someLayer.params()); |
635,617 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl;<NEW_LINE>// invalid incompatible params<NEW_LINE>epl = "select contained.set('hour', 1) from SupportBean_ST0_Container";<NEW_LINE>env.tryInvalidCompile(epl, "Failed to validate select-clause expression 'contained.set(\"hour\",1)': Date-time enumeration m... | env.tryInvalidCompile(epl, "Failed to validate select-clause expression 'utildate.set(1)': Parameters mismatch for date-time method 'set', the method requires an expression providing a string-type calendar field name and an expression providing an integer-type value"); |
250,879 | public ListMonitoringExecutionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListMonitoringExecutionsResult listMonitoringExecutionsResult = new ListMonitoringExecutionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu... | class).unmarshall(context)); |
527,815 | private void handleErrorState(File report, String firstLine, Deque<String> queue) {<NEW_LINE>System.err.println(firstLine);<NEW_LINE>String remainder = firstLine.substring(LINE_START.length());<NEW_LINE>Matcher m = Pattern.compile("([^(]*).*").matcher(remainder);<NEW_LINE>if (!m.find()) {<NEW_LINE>return;<NEW_LINE>}<NE... | fullName.substring(index + 1); |
250,498 | public IHarvestResult harvestBlock(@Nonnull IFarmer farm, @Nonnull final BlockPos pos, @Nonnull IBlockState state) {<NEW_LINE>if (!canHarvest(farm, pos, state) || !farm.checkAction(FarmingAction.HARVEST, getHarvestTool())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!farm.hasTool(getHarvestTool())) {<NEW_LINE>farm.... | World world = farm.getWorld(); |
19,803 | final GenerateRandomResult executeGenerateRandom(GenerateRandomRequest generateRandomRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(generateRandomRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GenerateRan... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,784,462 | /* (non-Javadoc)<NEW_LINE>* @see com.ibm.jvm.dtfjview.spi.ISession#execute(java.lang.String)<NEW_LINE>*/<NEW_LINE>public void execute(String line) {<NEW_LINE>String trimmedInput = line.trim();<NEW_LINE>if (!trimmedInput.equals("")) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>String cmd = parser.getCommand();<NEW_LINE>// ... | CommandParser parser = new CommandParser(line); |
245,851 | public void mergeDexArchives(Iterable<Path> inputs, Path outputDir, Path mainDexClasses, DexingType dexingType) throws DexArchiveMergerException {<NEW_LINE>if (Iterables.isEmpty(inputs)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// sort paths so we produce deterministic output<NEW_LINE>List<Path> inputPaths = Ordering.nat... | checkState(mainDexClasses == null, "Main dex list cannot be set for monodex."); |
1,259,138 | public com.amazonaws.services.cognitosync.model.AlreadyStreamedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitosync.model.AlreadyStreamedException alreadyStreamedException = new com.amazonaws.services.cognitosync.model.AlreadyStreamedException(n... | JsonToken token = context.getCurrentToken(); |
819,869 | private void initTableFunction() {<NEW_LINE>List<Function> explodeSplits = Lists.newArrayList();<NEW_LINE>explodeSplits.add(ScalarFunction.createBuiltin(EXPLODE_SPLIT, Type.VARCHAR, Function.NullableMode.DEPEND_ON_ARGUMENT, Lists.newArrayList(Type.VARCHAR, Type.VARCHAR), false, "_ZN5doris19DummyTableFunctions13explode_... | tableFunctions.put(EXPLODE_NUMBERS, explodeNumbers); |
482,017 | default void printFeatures() {<NEW_LINE>ref().getMeasures().setReadingTimeCount(System.nanoTime() - ref().getModel().getCreationTime());<NEW_LINE>ref().log().printf("- Model[%s] features:\n", ref().<MASK><NEW_LINE>ref().log().printf("\tVariables : %d\n", ref().getModel().getNbVars());<NEW_LINE>ref().log().printf("\tCon... | getModel().getName()); |
311,761 | public Row<K, C> next() {<NEW_LINE>// if (!hasNext()) {<NEW_LINE>// throw new IllegalStateException();<NEW_LINE>// }<NEW_LINE>if (isClusteringKey) {<NEW_LINE>// Keep reading rows till we find a new rowKey, and then return the prefecthed list as a single row<NEW_LINE>while (rsIter.hasNext()) {<NEW_LINE>com.datastax.driv... | rsRow, keySerializer, 0, cf); |
1,207,954 | private static void printEnclosedStackTrace(Throwable self, PrintWriter s, StackTraceElement[] enclosingTrace, String caption, String prefix, Set<Throwable> dejaVu) {<NEW_LINE>if (dejaVu.contains(self)) {<NEW_LINE>s.println(prefix + <MASK><NEW_LINE>} else {<NEW_LINE>dejaVu.add(self);<NEW_LINE>// Compute number of frame... | caption + "[CIRCULAR REFERENCE: " + self + "]"); |
1,726,581 | public void enter(VirtualFrame frame) {<NEW_LINE>// TODO: assert PythonLanguage.getContext().ownsGil() :<NEW_LINE>// PythonContext.dumpStackOnAssertionHelper("callee w/o GIL");<NEW_LINE>// tfel: Create our frame reference here and store it so that<NEW_LINE>// there's no reference to it from the caller side.<NEW_LINE>PF... | (PArguments.getCallerFrameInfo(frame)); |
209,232 | private void refineEq(Node left, AnnotationMirror leftAnno, Node right, AnnotationMirror rightAnno, CFStore store) {<NEW_LINE>UBQualifier leftQualifier = UBQualifier.createUBQualifier(leftAnno, (UpperBoundChecker) atypeFactory.getChecker());<NEW_LINE>UBQualifier rightQualifier = UBQualifier.createUBQualifier(rightAnno,... | store.insertValue(rightJe, glbAnno); |
877,307 | final GetVpnConnectionDeviceTypesResult executeGetVpnConnectionDeviceTypes(GetVpnConnectionDeviceTypesRequest getVpnConnectionDeviceTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVpnConnectionDeviceTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
491,745 | public void reload() {<NEW_LINE>try {<NEW_LINE>SortTaskConfig newSortTaskConfig = SortClusterConfigHolder.getTaskConfig(taskName);<NEW_LINE>LOG.info("start to get SortTaskConfig:taskName:{}:config:{}", taskName, JSON.toJSONString(newSortTaskConfig));<NEW_LINE>if (this.sortTaskConfig != null && this.sortTaskConfig.equal... | InlongId.generateUid(inlongGroupId, inlongStreamId); |
1,229,648 | final DeleteRegistryResult executeDeleteRegistry(DeleteRegistryRequest deleteRegistryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRegistryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | false), new DeleteRegistryResultJsonUnmarshaller()); |
344,015 | public Void execute(CommandContext commandContext) {<NEW_LINE>CommandConfig commandConfig = commandExecutor.getDefaultConfig().transactionRequiresNew();<NEW_LINE>FailedJobCommandFactory failedJobCommandFactory = commandContext.getFailedJobCommandFactory();<NEW_LINE>Command<Object> cmd = failedJobCommandFactory.getComma... | ), cmd.getClass()); |
278,221 | private void addExternalJson(List<File> files, Manager<S> manager, Map<String, S> externalResources) {<NEW_LINE>String plural = files.size() > 1 ? "s" : "";<NEW_LINE>Set<String> currentNames = new HashSet<>();<NEW_LINE>boolean addToManager = false;<NEW_LINE>if (manager != null) {<NEW_LINE>try {<NEW_LINE>currentNames.ad... | readFromPath(file.toPath()); |
559,745 | public void populateOnGround(World world, Random random, Chunk chunk) {<NEW_LINE>int sourceX = chunk.getX() << 4;<NEW_LINE>int sourceZ = chunk.getZ() << 4;<NEW_LINE>int flowerAmount = 15;<NEW_LINE>int tallGrassAmount = 5;<NEW_LINE>if (noiseGen.noise(sourceX + 8, sourceZ + 8, 0.5D, 2.0D) >= -0.8D) {<NEW_LINE>flowerAmoun... | populateOnGround(world, random, chunk); |
1,133,075 | private ValidationResult validateAggregatePropertyClasses(final SchemaElementDefinition elementDef, final AggregatePair pair) {<NEW_LINE>final ValidationResult result = new ValidationResult();<NEW_LINE>if (null != elementDef) {<NEW_LINE>final ElementAggregator aggregator = pair.getElementAggregator();<NEW_LINE>if (null... | getInputSignature(component.getBinaryOperator()); |
813,584 | public void buildBridgeIfNeeded(String appContext, AuthConfigFactory providerFactory) {<NEW_LINE>if (!getModulePropertiesUtils().isHttpAuthenticationMechanism()) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "HttpAuthenticationMechanism bean is not identified. JSR375 BridgeProvider is not enabled.");<NEW_... | = new AuthProvider(props, providerFactory); |
87,958 | protected void updateUI() {<NEW_LINE>super.updateUI();<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(getContext());<NEW_LINE>// Inflate this data binding layout<NEW_LINE>mBinding = DataBindingUtil.inflate(inflater, R.layout.options_developer, this, true);<NEW_LINE>mScrollbar = mBinding.scrollbar;<NEW_LINE>// H... | ).isDebugLoggingEnabled(), false); |
755,374 | private static Object abs(Object operand, QueryDataType operandType, QueryDataType resultType) {<NEW_LINE>Converter operandConverter = operandType.getConverter();<NEW_LINE>switch(resultType.getTypeFamily()) {<NEW_LINE>case TINYINT:<NEW_LINE>return (byte) Math.abs<MASK><NEW_LINE>case SMALLINT:<NEW_LINE>return (short) Ma... | (operandConverter.asTinyint(operand)); |
1,569,578 | public void open(Map<String, Object> stormConf, TopologyContext context, SpoutOutputCollector collector) {<NEW_LINE>super.open(stormConf, context, collector);<NEW_LINE>// This implementation works only where there is a single instance<NEW_LINE>// of the spout. Having more than one instance means that they would run<NEW... | getInt(stormConf, SolrDiversityBucketParam, 5); |
1,104,897 | public CreateBlobResult createBlockBlob(String container, String blob, InputStream contentStream, CreateBlobOptions options) throws ServiceException {<NEW_LINE>String path = createPathFromContainer(container);<NEW_LINE>WebResource webResource = getResource(options).path(path).path(blob);<NEW_LINE>Builder builder = webR... | builder = addPutBlobHeaders(options, builder); |
778,211 | final DescribeBackupPolicyResult executeDescribeBackupPolicy(DescribeBackupPolicyRequest describeBackupPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeBackupPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
256,772 | protected void resizeNodeVolume(final UserVm vm) throws ManagementServerException {<NEW_LINE>try {<NEW_LINE>if (vm.getHypervisorType() == Hypervisor.HypervisorType.VMware && templateDao.findById(vm.getTemplateId()).isDeployAsIs()) {<NEW_LINE>List<VolumeVO> vmVols = volumeDao.findByInstance(vm.getId());<NEW_LINE>for (Vo... | .getName()), e); |
1,821,004 | final DeleteAttributesResult executeDeleteAttributes(DeleteAttributesRequest deleteAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
556,196 | public void addRegisteredExtensionRPCs(Isolate isolate, boolean attach) {<NEW_LINE>// If attach was called, there is a risk we may never receive a<NEW_LINE>// Flutter.Frame or Flutter.FirstFrame event so we need to query the<NEW_LINE>// framework to determine if a frame has already been rendered.<NEW_LINE>// This check... | EvalOnDartLibrary(bindingLibraryNames, vmService, this); |
90,990 | private static BundleEntryComponent device(RandomNumberGenerator rand, BundleEntryComponent personEntry, Bundle bundle, HealthRecord.Device device) {<NEW_LINE>Device deviceResource = new Device();<NEW_LINE>Device.DeviceUdiComponent udi = new Device.DeviceUdiComponent().setDeviceIdentifier(device.deviceIdentifier).setCa... | newEntry(rand, bundle, deviceResource); |
1,333,118 | private DataSource createDruidDataSource(Config config) {<NEW_LINE>DruidDataSource dataSource = new DruidDataSource();<NEW_LINE>Class<MASK><NEW_LINE>for (Map.Entry<String, Class<?>> entry : FIELDS.entrySet()) {<NEW_LINE>String field = entry.getKey();<NEW_LINE>String value = config.getParameter("druid." + field);<NEW_LI... | <DruidDataSource> clazz = DruidDataSource.class; |
1,512,132 | public PluginContext loadPlugin(PluginBundle pluginBundle, Class<? extends Plugin> interfaceClass, URI location, String classLocation, Plugin plugin, ClassLoader classLoader, PluginSourceType pluginType, AbstractPlugin pluginImplementation, Set<org.bimserver.plugins.Dependency> dependencies, String identifier) throws P... | >) implementations.get(interfaceClass); |
495,398 | /*<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>@Override<NEW_LINE>public void resolve(DeserializationContext ctxt) throws JsonMappingException {<NEW_LINE>JavaType obType = ctxt.constructType(Object.class);<NEW_LINE>JavaType stringType = ctxt.constructType(String.class);<NEW_LINE>TypeFactory tf = ctxt.getTypeFactor... | List.class, obType))); |
1,550,242 | public ParsedDeployment build() {<NEW_LINE>List<EventDefinitionEntity> eventDefinitions = new ArrayList<>();<NEW_LINE>List<ChannelDefinitionEntity> <MASK><NEW_LINE>Map<EventDefinitionEntity, EventDefinitionParse> eventDefinitionToParseMap = new LinkedHashMap<>();<NEW_LINE>Map<EventDefinitionEntity, EventResourceEntity>... | channelDefinitions = new ArrayList<>(); |
1,403,961 | public void describe(com.ibm.ws.javaee.ddmodel.DDParser.Diagnostics diag) {<NEW_LINE>if (xmi) {<NEW_LINE>diag.describeIfSet("enterpriseBean", enterpriseBean);<NEW_LINE>} else {<NEW_LINE>diag.describeIfSet("name", name);<NEW_LINE>}<NEW_LINE>diag.describeIfSet(xmi ? "beanCache" : "bean-cache", bean_cache);<NEW_LINE>diag.... | xmi ? "runAsSettings" : "run-as-mode", run_as_mode); |
59,194 | public void extFromString() {<NEW_LINE>JSONObject microServiceExtJson = JSON.parseObject(microServiceExt);<NEW_LINE>if (Objects.isNull(microServiceExtJson)) {<NEW_LINE>microServiceExtJson = new JSONObject();<NEW_LINE>}<NEW_LINE>kind = microServiceExtJson.getString("kind");<NEW_LINE>String envListString = microServiceEx... | buildObjectListString = microServiceExtJson.getString("containerObjectList"); |
758,333 | String model(CalciteConnectionImpl connection) {<NEW_LINE>String model = connection.config().model();<NEW_LINE>if (model != null) {<NEW_LINE>return model;<NEW_LINE>}<NEW_LINE>SchemaFactory schemaFactory = connection.config().schemaFactory(SchemaFactory.class, null);<NEW_LINE>final Properties info = connection.getProper... | schema.put("type", "custom"); |
114,324 | public List<RemoteInstance> queryRemoteNodes() {<NEW_LINE>List<RemoteInstance> remoteInstances = new ArrayList<>(20);<NEW_LINE>try {<NEW_LINE>initHealthChecker();<NEW_LINE>List<ServiceInstance<RemoteInstance>> serviceInstances = serviceCache.getInstances();<NEW_LINE>serviceInstances.forEach(serviceInstance -> {<NEW_LIN... | this.healthChecker.unHealth(e); |
832,985 | protected void removeByC_U(String companyId, String userId) throws NoSuchUserException, SystemException {<NEW_LINE>Session session = null;<NEW_LINE>User systemUser = null;<NEW_LINE>try {<NEW_LINE>systemUser = APILocator.getUserAPI().getSystemUser();<NEW_LINE>} catch (DotDataException e) {<NEW_LINE>// TODO Auto-generate... | .setString(queryPos++, userId); |
868,983 | public boolean resetRelationalFields(List<FileTab> fileTabList) throws ClassNotFoundException {<NEW_LINE>boolean isResetValue = false;<NEW_LINE>for (FileTab fileTab : fileTabList) {<NEW_LINE>Map<String, Object> jsonContextMap = dataImportService.createJsonContext(fileTab);<NEW_LINE>JsonContext jsonContext = (JsonContex... | this.resetSubPropertyValue(modelKlass, jsonContext); |
1,331,414 | private void writeCaches() throws IOException {<NEW_LINE>int i = 0;<NEW_LINE>for (final JavaInformations javaInformations : javaInformationsList) {<NEW_LINE>if (!javaInformations.isCacheEnabled()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>final List<CacheInformations> cacheInformationsList = javaInformations.getCacheInf... | , javaInformations.getHost())); |
605,704 | public void draw(@NonNull Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, @NonNull Paint paint) {<NEW_LINE>paint.setTextSize(mTextSize);<NEW_LINE>float textSize = paint.measureText(text, start, end);<NEW_LINE>final float bgLeft = x;<NEW_LINE>final float bgRight = bgLeft + text... | mTmpRect, cornerRadius, cornerRadius, paint); |
214,966 | public static List<TableInfo> analyse(Connection connection) throws SQLException {<NEW_LINE>List<TableInfo> tableInfos = new ArrayList<>();<NEW_LINE>String catalog = connection.getCatalog();<NEW_LINE>DatabaseMetaData databaseMetaData = connection.getMetaData();<NEW_LINE>ResultSet schemas = databaseMetaData.getTables(ca... | "YES".equalsIgnoreCase(isAutoincrement))); |
509,103 | public void read(org.apache.thrift.protocol.TProtocol prot, mutate_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(4);<NEW_LINE>if (incoming.get(0)) {<N... | struct.check_value.read(iprot); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.