idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,197,771 | public Set<String> prune(BrokerRequest brokerRequest, Set<String> segments) {<NEW_LINE>PinotQuery pinotQuery = brokerRequest.getPinotQuery();<NEW_LINE>if (pinotQuery != null) {<NEW_LINE>// SQL<NEW_LINE>Expression filterExpression = pinotQuery.getFilterExpression();<NEW_LINE>if (filterExpression == null) {<NEW_LINE>retu... | partitionInfo = _partitionInfoMap.get(segment); |
1,774,395 | public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) {<NEW_LINE>if (block.isGiven()) {<NEW_LINE>Object target = unwrapIfJavaProxy(self);<NEW_LINE>RubyProc proc = RubyProc.newProc(context.runtime, block, block.t... | arg0, arg1, arg2, proc); |
1,490,040 | public void install(Addon addon) throws MarketplaceHandlerException {<NEW_LINE>try {<NEW_LINE>String jsonDownloadUrl = (String) addon.getProperties().get(JSON_DOWNLOAD_URL_PROPERTY);<NEW_LINE>String yamlDownloadUrl = (String) addon.getProperties().get(YAML_DOWNLOAD_URL_PROPERTY);<NEW_LINE>String jsonContent = (String) ... | throw new MarketplaceHandlerException("Template is not valid.", e); |
979,693 | protected ExecutableDdlJob doCreate() {<NEW_LINE>ValidateGsiExistenceTask validateTask = new ValidateGsiExistenceTask(schemaName, primaryTableName, indexTableName, null, null);<NEW_LINE>List<DdlTask> taskList = new ArrayList<>();<NEW_LINE>// 1. validate<NEW_LINE>taskList.add(validateTask);<NEW_LINE>// 2. GSI status: pu... | final ExecutableDdlJob4DropGsi executableDdlJob = new ExecutableDdlJob4DropGsi(); |
602,752 | private int hash32(byte[] data) {<NEW_LINE>int n = data.length;<NEW_LINE>// 'm' and 'r' are mixing constants generated offline.<NEW_LINE>// They're not really 'magic', they just happen to work well.<NEW_LINE>int m = 0x5bd1e995;<NEW_LINE>int r = 24;<NEW_LINE>// Initialize the hash to a 'random' value<NEW_LINE>int h = (s... | k = decodeFixed32(data, i); |
1,217,737 | private ImageResource iconForSourceItem(SourceItem sourceItem) {<NEW_LINE>// check for bookdown xref<NEW_LINE>if (sourceItem.hasXRef()) {<NEW_LINE>XRef xref = sourceItem.getXRef();<NEW_LINE>ImageResource icon = iconForXRef(xref);<NEW_LINE>if (icon != null)<NEW_LINE>return icon;<NEW_LINE>}<NEW_LINE>// compute image<NEW_... | StandardIcons.INSTANCE.methodLetter2x()); |
817,123 | public List<StoragePool> select(DiskProfile dskCh, VirtualMachineProfile vmProfile, DeploymentPlan plan, ExcludeList avoid, int returnUpTo, boolean bypassStorageTypeCheck) {<NEW_LINE>List<StoragePool> suitablePools = new ArrayList<StoragePool>();<NEW_LINE><MASK><NEW_LINE>Long podId = plan.getPodId();<NEW_LINE>Long clus... | long dcId = plan.getDataCenterId(); |
556,490 | public void informInsertionStarts(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs) {<NEW_LINE>for (VehicleRoute route : vehicleRoutes) {<NEW_LINE>Break aBreak = route<MASK><NEW_LINE>if (aBreak != null && !route.getTourActivities().servesJob(aBreak)) {<NEW_LINE>if (route.getEnd().getArrTime() > aB... | .getVehicle().getBreak(); |
1,659,015 | synchronized void registerView(View view, Clock clock) {<NEW_LINE>exportedViews = null;<NEW_LINE>View existing = registeredViews.get(view.getName());<NEW_LINE>if (existing != null) {<NEW_LINE>if (existing.equals(view)) {<NEW_LINE>// Ignore views that are already registered.<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>t... | Timestamp now = clock.now(); |
1,393,691 | private static void writeToSigner(Signature signer, VespaUniqueInstanceId providerUniqueId, AthenzService providerService, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType) throws SignatureException {<NEW_LINE>signer.update(providerUniqueId.asDo... | putLong(createdAt.toEpochMilli()); |
568,238 | private ListenableFuture<PageData<AlarmInfo>> fetchAlarmsOriginators(TenantId tenantId, PageData<AlarmInfo> alarms) {<NEW_LINE>List<ListenableFuture<AlarmInfo>> alarmFutures = new ArrayList<>(alarms.getData().size());<NEW_LINE>for (AlarmInfo alarmInfo : alarms.getData()) {<NEW_LINE>alarmFutures.add(Futures.transform(en... | ), MoreExecutors.directExecutor()); |
526,382 | private Map<String, String> createMessageDigests(File targetFile) {<NEW_LINE>if (includeMessageDigests.isEmpty()) {<NEW_LINE>return Collections.<String, String>emptyMap();<NEW_LINE>}<NEW_LINE>Map<String, MessageDigest> digests = new HashMap<<MASK><NEW_LINE>for (String messageDigest : includeMessageDigests) {<NEW_LINE>t... | >(includeMessageDigests.size()); |
585,942 | private void buildQueue() {<NEW_LINE>final StatsDReplicator statsDReplicator = createStatsDReplicator();<NEW_LINE>final <MASK><NEW_LINE>serviceBuilder.getRequestQueueBuilder().setUnableToEnqueueHandler(new UnableToEnqueueHandler() {<NEW_LINE><NEW_LINE>public boolean unableToEnqueue(BlockingQueue<Object> queue, String q... | ServiceBuilder serviceBuilder = this.getServiceBuilder(); |
511,154 | public void uncaughtException(final Thread thread, final Throwable ex) {<NEW_LINE>File file = getAppPath(EXCEPTION_PATH);<NEW_LINE>try {<NEW_LINE>ByteArrayOutputStream out = new ByteArrayOutputStream();<NEW_LINE>PrintStream printStream = new PrintStream(out);<NEW_LINE>ex.printStackTrace(printStream);<NEW_LINE>StringBui... | defaultHandler.uncaughtException(thread, ex); |
720,976 | public JWSHeader convert(JoseHeader headers) {<NEW_LINE>JWSHeader.Builder builder = new JWSHeader.Builder(JWSAlgorithm.parse(headers.getAlgorithm().getName()));<NEW_LINE>if (headers.getJwkSetUrl() != null) {<NEW_LINE>builder.jwkURL(convertAsURI(JoseHeaderNames.JKU, headers.getJwkSetUrl()));<NEW_LINE>}<NEW_LINE>Map<Stri... | .JWK + "' JOSE header"), ex); |
685,041 | public void enterSs_server(A10Parser.Ss_serverContext ctx) {<NEW_LINE>Optional<String> maybeName = toString(ctx, ctx.slb_server_name());<NEW_LINE>if (!maybeName.isPresent()) {<NEW_LINE>// dummy<NEW_LINE>_currentServer = new Server(ctx.slb_server_name().getText(), new ServerTargetAddress(Ip.ZERO));<NEW_LINE>return;<NEW_... | defineStructure(SERVER, name, ctx); |
1,121,204 | private ClientSideSlbConfig createConfig(Clock clock, BuckEventBus eventBus) {<NEW_LINE>ImmutableClientSideSlbConfig.Builder configBuilder = ImmutableClientSideSlbConfig.builder().setServerPoolName("buckconfig_" + parentSection).setClock(clock).setServerPool(getServerPool<MASK><NEW_LINE>if (buckConfig.getValue(parentSe... | ()).setEventBus(eventBus); |
1,262,735 | public void save(@NonNull final SecurPharmProduct product) {<NEW_LINE>I_M_Securpharm_Productdata_Result record = null;<NEW_LINE>if (product.getId() != null) {<NEW_LINE>record = load(product.getId(), I_M_Securpharm_Productdata_Result.class);<NEW_LINE>}<NEW_LINE>if (record == null) {<NEW_LINE>record = newInstance(I_M_Sec... | productDetails.getDecommissionedServerTransactionId() : null); |
66,900 | public static // '#' '{' config_map_assoc_list? '}'<NEW_LINE>boolean config_map_tuple(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "config_map_tuple"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, ERL_RADIX))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<NEW_LINE>Marker m = enter_section_(b, l, _N... | b, 1, ERL_RADIX, ERL_CURLY_LEFT); |
453,875 | public void watch(GameEvent event, Game game) {<NEW_LINE>if (event.getType() == GameEvent.EventType.BEGINNING_PHASE_PRE) {<NEW_LINE>UUID activePlayer = game.getActivePlayerId();<NEW_LINE>if (attackedThisTurnCreatures.containsKey(activePlayer)) {<NEW_LINE>if (attackedThisTurnCreatures.get(activePlayer) != null) {<NEW_LI... | .getCombat().getAttackingPlayerId(); |
545,347 | public CommandRunnerStatus checkCommandRunnerStatus() {<NEW_LINE>if (state.getStatus() == CommandRunnerStatus.DEGRADED) {<NEW_LINE>return CommandRunnerStatus.DEGRADED;<NEW_LINE>}<NEW_LINE>final Pair<QueuedCommand, Instant> currentCommand = currentCommandRef.get();<NEW_LINE>if (currentCommand == null) {<NEW_LINE>state =... | CommandRunnerStatus.ERROR, CommandRunnerDegradedReason.NONE); |
847,070 | public void onUserPressedShortcut(@Nonnull Keymap keymap, @Nonnull String[] actionIds, @Nonnull KeyboardShortcut ksc) {<NEW_LINE>if (actionIds.length == 0)<NEW_LINE>return;<NEW_LINE>KeyStroke ks = ksc.getFirstKeyStroke();<NEW_LINE>AWTKeyStroke <MASK><NEW_LINE>if (sysKs == null && ksc.getSecondKeyStroke() != null)<NEW_L... | sysKs = myKeyStroke2SysShortcut.get(ks); |
176,776 | final CreateImageBuilderResult executeCreateImageBuilder(CreateImageBuilderRequest createImageBuilderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createImageBuilderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new CreateImageBuilderResultJsonUnmarshaller()); |
1,565,752 | public void read(org.apache.thrift.protocol.TProtocol iprot, TColumn struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.... | skip(iprot, schemeField.type); |
410,925 | final SendAutomationSignalResult executeSendAutomationSignal(SendAutomationSignalRequest sendAutomationSignalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendAutomationSignalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | endClientExecution(awsRequestMetrics, request, response); |
180,986 | private List<KeyExtent> assignMapFiles(ClientContext context, HostAndPort location, Map<KeyExtent, List<PathSize>> assignmentsPerTablet) throws AccumuloException, AccumuloSecurityException {<NEW_LINE>try {<NEW_LINE>long timeInMillis = context.getConfiguration().getTimeInMillis(Property.TSERV_BULK_TIMEOUT);<NEW_LINE>Tab... | user, e.code, e); |
1,301,391 | // see VCF spec 4.2 for BND format ALT allele field for SV, in particular the examples shown in Fig.1, Fig.2 and Fig.5 of Section 5.4<NEW_LINE>private static Allele constructAltAllele(final NovelAdjacencyAndAltHaplotype narl, final BasicReference reference, final boolean forUpstreamLoc) {<NEW_LINE>final String refBase ... | novelAdjRefLoc.getEnd() + "["); |
673,428 | public Concrete.DataDefinition data(@NotNull ArendRef ref, @NotNull Collection<? extends ConcreteParameter> parameters, boolean isTruncated, @Nullable ConcreteLevel pLevel, @Nullable ConcreteLevel hLevel, @NotNull Collection<? extends ConcreteConstructorClause> clauses) {<NEW_LINE>if (!(ref instanceof ConcreteLocatedRe... | ((Concrete.ConstructorClause) clause); |
1,285,281 | protected void doPost(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>try {<NEW_LINE>PostParams params = PostParams.getPostParams(request);<NEW_LINE>String input = params.getParams();<NEW_LINE>boolean visible = params.isVisible();<NEW_LINE>if (visible) {<NEW_LINE>JSONObject jsonObject = JSONObject.... | value = jsonObject.getString(VALUE); |
1,094,871 | private boolean buildForEach(char[] condition, int start, int offset, int blockStart, int blockEnd, int fields, ParserContext pCtx) {<NEW_LINE>int end = start + offset;<NEW_LINE>int cursor = nextCondPart(condition, start, end, false);<NEW_LINE>boolean varsEscape = false;<NEW_LINE>try {<NEW_LINE>ParserContext spCtx;<NEW... | fields & COMPILE_IMMEDIATE) != 0)); |
1,277,181 | public RExecutorBatchFuture submitAsync(Callable<?>... tasks) {<NEW_LINE>if (tasks.length == 0) {<NEW_LINE>throw new NullPointerException("Tasks are not defined");<NEW_LINE>}<NEW_LINE>TasksBatchService executorRemoteService = createBatchService();<NEW_LINE>RemoteExecutorServiceAsync asyncService = executorRemoteService... | RejectedExecutionException ex = new RejectedExecutionException("Task rejected. ExecutorService is in shutdown state"); |
1,153,377 | public SearchPlaceIndexForTextResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SearchPlaceIndexForTextResult searchPlaceIndexForTextResult = new SearchPlaceIndexForTextResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren... | )).unmarshall(context)); |
621,530 | protected void doOperationRemotely() {<NEW_LINE>String appUrl = ClientProperties.TARGET_URL.replaceAll("^https?://", "");<NEW_LINE>String appDomain = appUrl.split(":")[0];<NEW_LINE>int appPort = appUrl.contains(":") ? Integer.parseInt(appUrl.split(":")[1]) : 443;<NEW_LINE>System.out.println("--- Starting remote operati... | ).setProjectId(Config.APP_ID); |
1,496,216 | public synchronized void updateLists(TaskLists remoteLists) {<NEW_LINE>readLists();<NEW_LINE>HashSet<Long> previousLists = new HashSet<Long>(lists.length);<NEW_LINE>for (StoreObject list : lists) previousLists.add(list.getId());<NEW_LINE>List<TaskList> items = remoteLists.getItems();<NEW_LINE>StoreObject[] newLists = n... | NAME, remote.getTitle()); |
1,089,167 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "module test;\n" + "@name('event') @public @buseventtype @public create map schema Fubar as (foo string, bar double);\n" + "@name('window') @protected create window Snafu#keepall as Fubar;\n" + "@name('insert') @private insert into Snafu select * from F... | , "bar", 1d), "Fubar"); |
761,373 | private boolean targetOnlyCallsNoReturn(Program cp, Address target, AddressSet noReturnSet) throws CancelledException {<NEW_LINE>SimpleBlockModel model = new SimpleBlockModel(cp);<NEW_LINE>// follow the flow of the instructions<NEW_LINE>// if hit return, then no good<NEW_LINE>// if hit call, check noReturn, if is stop ... | FlowType destFlowType = destRef.getFlowType(); |
904,240 | private void detectLandmarksInImages() {<NEW_LINE>// Remove the previously displayed images<NEW_LINE>SwingUtilities.invokeLater(() -> imageListPanel.clearImages());<NEW_LINE>int numStereoPairs;<NEW_LINE>synchronized (lockInput) {<NEW_LINE>if (inputImages == null)<NEW_LINE>return;<NEW_LINE>numStereoPairs = inputImages.s... | .add(imageName, calibLeft)); |
558,404 | private static void testNativeJsEnum() {<NEW_LINE>NativeEnum v = NativeEnum.OK;<NEW_LINE>switch(v) {<NEW_LINE>case OK:<NEW_LINE>break;<NEW_LINE>case CANCEL:<NEW_LINE>fail();<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>fail();<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>assertThrows(NullPointerException.class, () -> {<NEW_LINE>N... | .equals(NativeEnum.OK)); |
1,808,800 | final DescribeSnapshotScheduleResult executeDescribeSnapshotSchedule(DescribeSnapshotScheduleRequest describeSnapshotScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSnapshotScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | (super.beforeMarshalling(describeSnapshotScheduleRequest)); |
1,689,214 | public ScheduledWindowExecution unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ScheduledWindowExecution scheduledWindowExecution = new ScheduledWindowExecution();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | class).unmarshall(context)); |
809,532 | public final TermContext term() throws RecognitionException {<NEW_LINE>TermContext _localctx = new TermContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 132, RULE_term);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1218);<NEW_LINE>_localctx.factor = factor()... | _la = _input.LA(1); |
543,024 | public DescribeKeyPhrasesDetectionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeKeyPhrasesDetectionJobResult describeKeyPhrasesDetectionJobResult = new DescribeKeyPhrasesDetectionJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen... | JsonToken token = context.getCurrentToken(); |
1,561,340 | private static DiskStats queryReadWriteStats(String index) {<NEW_LINE>// Create object to hold and return results<NEW_LINE>DiskStats stats = new DiskStats();<NEW_LINE>Pair<List<String>, Map<PhysicalDiskProperty, List<Long>>> instanceValuePair = PhysicalDisk.queryDiskCounters();<NEW_LINE>List<String> instances = instanc... | > valueMap = instanceValuePair.getB(); |
1,851,938 | private static void randomize(Context context) {<NEW_LINE>int first = 0;<NEW_LINE>String format = context.getString(R.string.msg_randomizing);<NEW_LINE>List<ApplicationInfo> listApp = context.getPackageManager().getInstalledApplications(0);<NEW_LINE>// Randomize global<NEW_LINE>int userId = Util.getUserId(Process.myUid... | get(i - 1).uid; |
1,659,555 | private static void runEveryDistinctWithinFollowedBy(RegressionEnvironment env, String expression, AtomicInteger milestone) {<NEW_LINE>env.compileDeploy(expression).addListener("s0");<NEW_LINE>env.milestoneInc(milestone);<NEW_LINE>env.sendEventBean(new SupportBean("A1", 1));<NEW_LINE>env.sendEventBean(<MASK><NEW_LINE>e... | new SupportBean("B1", 0)); |
1,328,400 | public void handleInboundDisconnect(@NotNull final ChannelHandlerContext ctx, @NotNull final DISCONNECT disconnect) {<NEW_LINE>final Channel channel = ctx.channel();<NEW_LINE>final ClientConnection clientConnection = channel.attr(ChannelAttributes.CLIENT_CONNECTION).get();<NEW_LINE>final String clientId = clientConnect... | = new ExtensionParameterHolder<>(output); |
1,236,661 | public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent sourcePermanent = source.getSourcePermanentOrLKI(game);<NEW_LINE>if (sourcePermanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent attachedTo = game.getPermanentOrLKIBattlefield(sourcePermanent.getAttachedTo());<NEW_LINE>if (attached... | TargetPermanent target = new TargetPermanent(filter); |
1,537,856 | private void init(Context context) {<NEW_LINE>currentCalender = Calendar.getInstance(timeZone, locale);<NEW_LINE>todayCalender = Calendar.getInstance(timeZone, locale);<NEW_LINE>calendarWithFirstDayOfMonth = Calendar.getInstance(timeZone, locale);<NEW_LINE>eventsCalendar = Calendar.getInstance(timeZone, locale);<NEW_LI... | Calendar.getInstance(timeZone, locale); |
747,974 | private boolean detectKeepAlive(Buf buf, RapidoidHelper helper, Bytes bytes, BufRange protocol, BufRanges headers) {<NEW_LINE>IntWrap result = helper.integers[0];<NEW_LINE>// e.g. HTTP/1.1<NEW_LINE>boolean keepAliveByDefault = protocol.isEmpty() || bytes.get(<MASK><NEW_LINE>// try to detect the opposite of the default<... | protocol.last()) != '0'; |
877,624 | final DescribeSnapshotTierStatusResult executeDescribeSnapshotTierStatus(DescribeSnapshotTierStatusRequest describeSnapshotTierStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSnapshotTierStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,577,626 | public Box find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) {<NEW_LINE>PaintingInfo pI = getPaintingInfo();<NEW_LINE>if (pI != null && !pI.getAggregateBounds().contains(absX, absY)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Box result = null;<NEW_LINE>for (int i = 0; i < getInlineChildCount(); i++) ... | ), getAbsY(), cssCtx); |
697,544 | private static TsMethodModel createDeserializationGenericFunctionConstructor(SymbolTable symbolTable, TsModel tsModel, TsBeanModel bean) {<NEW_LINE>final Symbol beanIdentifier = symbolTable.getSymbol(bean.getOrigin());<NEW_LINE>List<TsType.GenericVariableType> typeParameters = getTypeParameters(bean.getOrigin());<NEW_L... | add(new TsIdentifierReference("data")); |
1,714,870 | protected boolean compareAndAdjustFulfillmentGroupOffers(PromotableOrder order, boolean fgOfferApplied) {<NEW_LINE>Money regularOrderDiscountShippingTotal = BroadleafCurrencyUtils.getMoney(BigDecimal.ZERO, order.getOrderCurrency());<NEW_LINE>regularOrderDiscountShippingTotal = regularOrderDiscountShippingTotal.add(orde... | add(fg.getFinalizedPriceWithAdjustments()); |
1,346,394 | private void evaluate(Line.Part part) {<NEW_LINE>Line line = part.getLine();<NEW_LINE>if (line == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DataObject dataObject = DataEditorSupport.findDataObject(line);<NEW_LINE>if (!isPhpDataObject(dataObject)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EditorCookie editorCookie = (Ed... | )) + part.getColumn(); |
1,653,210 | public static void invokeConfigMethods(ObjectDef bean, Object instance, ExecutionContext context) throws InvocationTargetException, IllegalAccessException {<NEW_LINE>List<ConfigMethodDef> methodDefs = bean.getConfigMethods();<NEW_LINE>if (methodDefs == null || methodDefs.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_L... | args, method.getParameterTypes()); |
1,371,821 | protected TableColumnDescriptor<VTMatch> createTableColumnDescriptor() {<NEW_LINE>TableColumnDescriptor<VTMatch> descriptor = new TableColumnDescriptor<>();<NEW_LINE>descriptor.addHiddenColumn(new SessionNumberTableColumn());<NEW_LINE>descriptor.addVisibleColumn(new StatusTableColumn(), 1, true);<NEW_LINE>descriptor.ad... | .addVisibleColumn(new ImpliedMatchCountColumn()); |
731,094 | public WasmExpression apply(InvocationExpr invocation, WasmIntrinsicManager manager) {<NEW_LINE>switch(invocation.getMethod().getName()) {<NEW_LINE>case "fill":<NEW_LINE>case "fillZero":<NEW_LINE>case "moveMemoryBlock":<NEW_LINE>{<NEW_LINE>MethodReference delegateMethod = new MethodReference(WasmRuntime.class.getName()... | getMethod().getDescriptor()); |
1,595,268 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.eclipse.text.edits.TextEditVisitor#visit(org.eclipse.text.edits.<NEW_LINE>* CopyTargetEdit)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public boolean visit(CopyTargetEdit edit) {<NEW_LINE>try {<NEW_LINE>if (edit.getSourceEdit() != null) {<NEW_LINE>org.eclipse.lsp4... | .eclipse.lsp4j.TextEdit(); |
311,614 | public void execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder target, ArgumentList args, String label, CommandPermission permission) throws CommandException {<NEW_LINE>if (ArgumentPermissions.checkModifyPerms(plugin, sender, permission, target)) {<NEW_LINE>Message.COMMAND_NO_PERMISSION.send(sender);<NEW_L... | DataType.NORMAL, node, modifier); |
954,739 | private ShardingRuleConfiguration createShardingRuleConfiguration() {<NEW_LINE>ShardingRuleConfiguration result = new ShardingRuleConfiguration();<NEW_LINE>result.getTables().add(getOrderTableRuleConfiguration());<NEW_LINE>result.getTables().add(getOrderItemTableRuleConfiguration());<NEW_LINE>result.getBindingTableGrou... | new StandardShardingStrategyConfiguration("order_id", "standard_test_tbl")); |
822,603 | private int createProgram(String vertexSource, String fragmentSource) {<NEW_LINE>mVShaderHandle = loadShader(GLES20.GL_VERTEX_SHADER, vertexSource);<NEW_LINE>if (mVShaderHandle == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>mFShaderHandle = <MASK><NEW_LINE>if (mFShaderHandle == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LI... | loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentSource); |
746,830 | protected void doExecute() throws Exception {<NEW_LINE>getLogger().debug("[doExecute] start build DcMeta");<NEW_LINE>SequenceCommandChain sequenceCommandChain = new SequenceCommandChain(false);<NEW_LINE>ParallelCommandChain parallelCommandChain <MASK><NEW_LINE>parallelCommandChain.add(retry3TimesUntilSuccess(new GetAll... | = new ParallelCommandChain(executors, false); |
289,194 | public static GetInstanceInspectionsResponse unmarshall(GetInstanceInspectionsResponse getInstanceInspectionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>getInstanceInspectionsResponse.setRequestId(_ctx.stringValue("GetInstanceInspectionsResponse.RequestId"));<NEW_LINE>getInstanceInspectionsResponse.setMessage(_ctx.s... | = new ArrayList<BaseInspection>(); |
1,227,158 | public Node visit(final MethodCallExpr n, final A arg) {<NEW_LINE>if (n.getScope() != null) {<NEW_LINE>n.setScope((Expression) n.getScope().accept(this, arg));<NEW_LINE>}<NEW_LINE>final List<Type> typeArgs = n.getTypeArgs();<NEW_LINE>if (typeArgs != null) {<NEW_LINE>for (int i = 0; i < typeArgs.size(); i++) {<NEW_LINE>... | .accept(this, arg)); |
452,322 | public void onClick(View v) {<NEW_LINE>// Utils.platformLog("#$#$#$#$#$#$#$#$#$", "onClick( "+String.valueOf((int)x)+" , "+String.valueOf((int)y)+" )");<NEW_LINE>// found child item<NEW_LINE>for (int i = 0; i < tabHost.getTabWidget().getChildCount(); i++) {<NEW_LINE>int curIndex = i;<NEW_LINE>int left = tabHost.getTabW... | getChildAt(curIndex).getHeight(); |
588,526 | public static NeuralNetwork assembleNeuralNetwork() {<NEW_LINE>Layer inputLayer = new Layer();<NEW_LINE>inputLayer.addNeuron(new Neuron());<NEW_LINE>inputLayer.addNeuron(new Neuron());<NEW_LINE>Layer hiddenLayerOne = new Layer();<NEW_LINE>hiddenLayerOne.addNeuron(new Neuron());<NEW_LINE>hiddenLayerOne.addNeuron(new Neu... | () - 1), false); |
1,472,728 | public void testCompletionStageRxInvoker_get4WithExecutorService(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Execu... | CompletionStageRxInvoker completionStageRxInvoker = builder.rx(); |
172,402 | private Setup[] computeSetups(final File[] files, final int displayStatus, final int setupType) {<NEW_LINE>final List<Setup> newSetups = new ArrayList<Setup>(files.length);<NEW_LINE>final int <MASK><NEW_LINE>final boolean[] canceled = new boolean[1];<NEW_LINE>SvnUtils.runWithInfoCache(new Runnable() {<NEW_LINE><NEW_LIN... | statusWithoutProperties = displayStatus & ~FileInformation.STATUS_VERSIONED_MODIFIEDLOCALLY_PROPERTY; |
689,416 | public static <T extends @Nullable Object> Stream<T> concat(Stream<? extends T>... streams) {<NEW_LINE>// TODO(lowasser): consider an implementation that can support SUBSIZED<NEW_LINE>boolean isParallel = false;<NEW_LINE>int characteristics = Spliterator.ORDERED | Spliterator.SIZED | Spliterator.NONNULL;<NEW_LINE>long ... | > splitr = stream.spliterator(); |
625,798 | public static Bitmap updateWithBackground_customBG(Bitmap bitmap, int alpha, Bitmap bgBitmap) {<NEW_LINE>Paint p = new Paint();<NEW_LINE>p.setAlpha(255 - alpha);<NEW_LINE>float k1 = (float) bitmap.getHeight() / bitmap.getWidth();<NEW_LINE>float k2 = (float) Dips.screenHeight() / Dips.screenWidth();<NEW_LINE>float k = M... | bitmap.getHeight()) / 2; |
478,533 | private List<String> toFilterList(Resource list) {<NEW_LINE>List<String> result = new ArrayList<>();<NEW_LINE>Resource current = list;<NEW_LINE>while (current != null && !current.equals(RDF.nil)) {<NEW_LINE>Statement stmt = current.getProperty(RDF.first);<NEW_LINE>if (stmt == null) {<NEW_LINE>throw new TextIndexExcepti... | asResource().getURI()); |
775,323 | // canceling request and sending mail to applicant<NEW_LINE>public void cancel(ActionRequest request, ActionResponse response) throws AxelorException {<NEW_LINE>try {<NEW_LINE>ExtraHours extraHours = request.getContext().asType(ExtraHours.class);<NEW_LINE>extraHours = Beans.get(ExtraHoursRepository.class).find(extraHou... | .class).cancel(extraHours); |
1,180,026 | public void read(org.apache.thrift.protocol.TProtocol iprot, getManagerStats_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type =... | struct.tinfo.read(iprot); |
1,212,552 | public EventBean[] snapshotUpdate(QueryGraph filterQueryGraph, ExprEvaluator optionalWhereClause, EventBeanUpdateHelperWCopy updateHelper, Annotation[] annotations) {<NEW_LINE>agentInstanceContext.getEpStatementAgentInstanceHandle()<MASK><NEW_LINE>try {<NEW_LINE>Collection<EventBean> events = snapshotNoLockWithFilter(f... | .getStatementAgentInstanceLock().acquireReadLock(); |
1,140,209 | public void updateRule(String domain, String key, String configsStr, String type) {<NEW_LINE>try {<NEW_LINE>Rule rule = new Rule(generateRuleId(key, type));<NEW_LINE>List<Config> configs = DefaultJsonParser.parseArray(Config.class, configsStr);<NEW_LINE>for (Config config : configs) {<NEW_LINE>rule.addConfig(config);<N... | setContent(domainRule.toString()); |
749,191 | protected List<Element> expandDateMDY(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>Matcher reMatcher = reMonthDayYear.matcher(s);<NEW_LINE>boolean found = reMatcher.find();<NEW_LINE>// month == (0)1, (0)2, ... , 12<NEW_LINE>int monthType = 1;<NEW_LINE>if (!found) {<NEW_... | (makeNewTokens(doc, expandedMonth)); |
1,478,740 | private void updateDescription() {<NEW_LINE>String description = null;<NEW_LINE>if (selectedType.isDefault()) {<NEW_LINE>String pattern = app.getString(R.string.route_line_use_map_style_color);<NEW_LINE>description = String.format(pattern, app.getRendererRegistry().getSelectedRendererName());<NEW_LINE>} else if (select... | AndroidUtils.getStringRouteInfoPropertyDescription(app, key); |
1,478,437 | public void cancelTransference(OCFile file) {<NEW_LINE>User currentUser = fileActivity.getUser().orElseThrow(IllegalStateException::new);<NEW_LINE>if (file.isFolder()) {<NEW_LINE>OperationsService.OperationsServiceBinder opsBinder = fileActivity.getOperationsServiceBinder();<NEW_LINE>if (opsBinder != null) {<NEW_LINE>o... | FileUploaderBinder uploaderBinder = fileActivity.getFileUploaderBinder(); |
46,609 | public static ListRecordingOfDualTrackResponse unmarshall(ListRecordingOfDualTrackResponse listRecordingOfDualTrackResponse, UnmarshallerContext context) {<NEW_LINE>listRecordingOfDualTrackResponse.setRequestId(context.stringValue("ListRecordingOfDualTrackResponse.RequestId"));<NEW_LINE>listRecordingOfDualTrackResponse... | (context.stringValue("ListRecordingOfDualTrackResponse.Message")); |
1,361,556 | public Sequence<T> applySubsampling(@NonNull Sequence<T> sequence, @NonNull AtomicLong nextRandom) {<NEW_LINE>Sequence<T> result = new Sequence<>();<NEW_LINE>// subsampling implementation, if subsampling threshold met, just continue to next element<NEW_LINE>if (sampling > 0) {<NEW_LINE>result.setSequenceId(sequence.get... | double numWords = vocabCache.totalWordOccurrences(); |
869,078 | private void doProcess(ReadableArchive archive, ApplicationClientDescriptor desc, ClassLoader classLoader) throws IOException {<NEW_LINE>if (AnnotationUtils.getLogger().isLoggable(Level.FINE)) {<NEW_LINE>AnnotationUtils.getLogger().fine("archiveFile is " + archive.getURI().toASCIIString());<NEW_LINE>AnnotationUtils.get... | String mainClassName = desc.getMainClassName(); |
101,238 | private static Object[] createParameters(ConstructorOrMethod m, MethodParameters params, IAnnotationFinder finder, XmlSuite xmlSuite, String atName) {<NEW_LINE>List<Object> result = Lists.newArrayList();<NEW_LINE>String[] <MASK><NEW_LINE>Object[] extraParameters;<NEW_LINE>//<NEW_LINE>// Try to find an @Parameters annot... | extraOptionalValues = extractOptionalValues(finder, m); |
606,205 | public SampleResult sample(Entry e) {<NEW_LINE>SampleResult res = new SampleResult();<NEW_LINE>boolean isSuccessful = false;<NEW_LINE>res.setSampleLabel(getName());<NEW_LINE>// TODO improve this<NEW_LINE>res.setSamplerData(getPropertyAsString(TEST));<NEW_LINE>LdapClient ldap = new LdapClient();<NEW_LINE>try {<NEW_LINE>... | res.setResponseData("successful - no results", null); |
1,789,118 | public void collectObjectsFromPoint(PointF point, RotatedTileBox tileBox, List<Object> o, boolean unknownLocation) {<NEW_LINE>if (tileBox.getZoom() >= START_ZOOM) {<NEW_LINE>int ex = (int) point.x;<NEW_LINE>int ey = (int) point.y;<NEW_LINE>int compare = getScaledTouchRadius(getApplication(), getRadiusPoi(tileBox));<NEW... | ), location.getLongitude()); |
1,280,322 | protected Object doQuery(Object[] objs) {<NEW_LINE>List<String> result = null;<NEW_LINE>try {<NEW_LINE>if (objs == null || objs.length != 1) {<NEW_LINE>throw new Exception("chardet paramSize error!");<NEW_LINE>}<NEW_LINE>// check encoding for string<NEW_LINE>if (option != null && option.contains("v")) {<NEW_LINE>CharEn... | File file = new File(sTmp); |
644,120 | public void init() {<NEW_LINE>if (isInEditMode())<NEW_LINE>return;<NEW_LINE>LayoutInflater layoutInflater = LayoutInflater.from(getContext());<NEW_LINE>_drawerMode = Setup<MASK><NEW_LINE>setVisibility(GONE);<NEW_LINE>setBackgroundColor(Setup.appSettings().getDrawerBackgroundColor());<NEW_LINE>switch(_drawerMode) {<NEW_... | .appSettings().getDrawerStyle(); |
85,625 | final GetTranscriptionJobResult executeGetTranscriptionJob(GetTranscriptionJobRequest getTranscriptionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTranscriptionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | endClientExecution(awsRequestMetrics, request, response); |
569,761 | private IntegrationContextImpl buildFromExecution(DelegateExecution execution) {<NEW_LINE>IntegrationContextImpl integrationContext = new IntegrationContextImpl();<NEW_LINE>integrationContext.setRootProcessInstanceId(execution.getRootProcessInstanceId());<NEW_LINE>integrationContext.setProcessInstanceId(execution.getPr... | setExecutionId(execution.getId()); |
1,427,509 | public void spawnTracks() {<NEW_LINE>// If there are no tracks then associate is not called. Reset() could have been called at associate is<NEW_LINE>// in an undefined state<NEW_LINE>if (tracksAll.size == 0) {<NEW_LINE>for (int i = 0; i < dstDesc.size; i++) {<NEW_LINE>Point2D_F64 loc = dstPixels.get(i);<NEW_LINE>addNew... | , dstDesc.get(indexDst)); |
266,854 | protected Dimension calculateDimensions(final int originWidth, final int originHeight, final Dimension max) {<NEW_LINE>int resultWidth;<NEW_LINE>int resultHeight;<NEW_LINE>if (max.width < originWidth || max.height < originHeight) {<NEW_LINE>// scale image<NEW_LINE>final double hs = (originWidth <= max.width) ? 1.0 : ((... | return new Dimension(resultWidth, resultHeight); |
1,580,288 | public static String[] createHashTable(String[] values) {<NEW_LINE><MASK><NEW_LINE>int maxTableSize = Math.min(values.length * 5 / 2, tableSize + 10);<NEW_LINE>String[] bestTable = null;<NEW_LINE>int bestCollisionRatio = 0;<NEW_LINE>while (tableSize <= maxTableSize) {<NEW_LINE>String[] table = new String[tableSize];<NE... | int tableSize = values.length * 2; |
1,394,473 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.lt_change_location_activity);<NEW_LINE>_mbwManager = MbwManager.getInstance(this);<NEW_LINE>LocalTraderManager ltManager = _mbwManager.getLocalTraderManager();<NEW_LINE>_btUse = findViewById(R... | GpsLocationEx) savedInstanceState.getSerializable("location"); |
1,648,299 | static ServerSocketChannel createServerSocketChannel(ILogger logger, EndpointConfig endpointConfig, InetAddress bindAddress, int port, int portCount, boolean isPortAutoIncrement, boolean isReuseAddress, boolean bindAny) {<NEW_LINE><MASK><NEW_LINE>if (port == 0) {<NEW_LINE>logger.info("No explicit port is given, system ... | logger.finest("inet reuseAddress:" + isReuseAddress); |
994,445 | public Object list(DataCommandsParam dataCommandsParam) {<NEW_LINE>String command = dataCommandsParam.getCommand();<NEW_LINE>String[] <MASK><NEW_LINE>String cmd = command.toUpperCase();<NEW_LINE>String key = list[1];<NEW_LINE>String[] items = removeCommandAndKey(list);<NEW_LINE>Object result = null;<NEW_LINE>if (cmd.st... | list = SignUtil.splitBySpace(command); |
1,152,379 | public void decode(byte[] a) {<NEW_LINE>ByteBuffer byteBuffer = ByteBuffer.wrap(a);<NEW_LINE>this.transactionId = byteBuffer.getLong();<NEW_LINE>this.branchId = byteBuffer.getLong();<NEW_LINE>int resourceLen = byteBuffer.getInt();<NEW_LINE>if (resourceLen > 0) {<NEW_LINE>byte[] byResource = new byte[resourceLen];<NEW_L... | int branchTypeId = byteBuffer.get(); |
203,829 | private void showSubject(SslCertificate.DName subject, View dialogView) {<NEW_LINE>TextView cnView = dialogView.findViewById(R.id.value_subject_CN);<NEW_LINE>cnView.setText(subject.getCName());<NEW_LINE>cnView.setVisibility(View.VISIBLE);<NEW_LINE>TextView oView = dialogView.findViewById(R.id.value_subject_O);<NEW_LINE... | setText(subject.getUName()); |
248,411 | public static File downloadURLUsingProxyAndSave(URL downloadURL, Proxy proxy, File saveFile) throws IOException {<NEW_LINE>IOException expn = null;<NEW_LINE>URLConnection ucn = null;<NEW_LINE>if (Thread.currentThread().isInterrupted())<NEW_LINE>return null;<NEW_LINE>if (proxy != null)<NEW_LINE>ucn = downloadURL.openCon... | write(buffer, 0, len); |
1,234,297 | void draw(Graphics g) {<NEW_LINE>int segments = 16;<NEW_LINE>int i;<NEW_LINE>int ox = 0;<NEW_LINE>// int hs = sim.euroResistorCheckItem.getState() ? 6 : 8;<NEW_LINE>int hs = 6;<NEW_LINE>double v1 = volts[0];<NEW_LINE>double v2 = volts[1];<NEW_LINE>setBbox(point1, point2, hs);<NEW_LINE>draw2Leads(g);<NEW_LINE>// double ... | len = distance(lead1, lead2); |
1,279,705 | protected void encodeQ(CameraState camera, double infx, double infy, double infz, DMatrixRMaj Q) {<NEW_LINE>// plane at infinity<NEW_LINE>p.data[0] = infx;<NEW_LINE><MASK><NEW_LINE>p.data[2] = infz;<NEW_LINE>encodeKK(camera, w);<NEW_LINE>CommonOps_DDRM.insert(w, Q, 0, 0);<NEW_LINE>CommonOps_DDRM.multTransA(p, w, pw);<N... | p.data[1] = infy; |
1,712,322 | protected void entryPoint(String[] args) throws Exception {<NEW_LINE>JCommanderUtils.parseArgs(this, args);<NEW_LINE>SparkConf conf = new SparkConf();<NEW_LINE>conf.setAppName("DL4JTinyImageNetSparkPreproc");<NEW_LINE>JavaSparkContext sc = new JavaSparkContext(conf);<NEW_LINE>// Create training set<NEW_LINE>JavaRDD<Str... | filePathsTrain, saveDir, batchSize, sc); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.