idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
179,637 | public FileActionEntity copy(CopyPathBody body, String path) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling copy");<NEW_LINE>}<NEW... | localVarAuthNames = new String[] {}; |
5,826 | public static void cleanupSchemaMeta(String schemaName, Connection metaDbConn) {<NEW_LINE>TableInfoManager tableInfoManager = new TableInfoManager();<NEW_LINE>SchemaInfoCleaner schemaInfoCleaner = new SchemaInfoCleaner();<NEW_LINE>DdlPlanAccessor ddlPlanAccessor = new DdlPlanAccessor();<NEW_LINE>try {<NEW_LINE>assert m... | PolarDbXSystemTableView.deleteAll(schemaName, metaDbConn); |
130,282 | public String generateItemsAndGroups() throws IOException, OmniNotConnectedException, OmniInvalidResponseException, OmniUnknownMessageTypeException {<NEW_LINE>groups = new StringBuilder();<NEW_LINE>items = new StringBuilder();<NEW_LINE>rooms = new LinkedHashMap<String, LinkedList<SiteItem>>();<NEW_LINE>lights = new Lin... | = new LinkedList<SiteItem>(); |
297,953 | private void regenerate() {<NEW_LINE>cmf = new CreatedModifiedFiles(getProject());<NEW_LINE>boolean osgi = false;<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>osgi = getProject().getLookup().lookup(NbModuleProvider.class).hasDependency("org.netbeans.libs.osgi");<NEW_LINE>} catch (IOException ex) {<NEW_LINE>Exceptions.pri... | template = CreatedModifiedFiles.getTemplate("moduleActivator.java"); |
77,153 | private void readAllFields(PageCursor cursor) throws IOException {<NEW_LINE>do {<NEW_LINE>creationTimeField = getRecordValue(cursor, Position.TIME);<NEW_LINE>randomNumberField = getRecordValue(cursor, Position.RANDOM_NUMBER);<NEW_LINE>versionField = getRecordValue(cursor, Position.LOG_VERSION);<NEW_LINE>long lastCommit... | getRecordValue(cursor, Position.FIRST_GRAPH_PROPERTY); |
226,970 | private Mono<PagedResponse<ConfigurationProfileInner>> listChildResourcesSinglePageAsync(String configurationProfileName, String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,478,315 | public boolean apply(Game game, Ability source) {<NEW_LINE>Spell spell = game.getStack().getSpell(getTargetPointer().getFirst(game, source));<NEW_LINE>if (spell != null) {<NEW_LINE>Player controller = game.getPlayer(spell.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>int count = 0;<NEW_LINE>String nam... | player = game.getPlayer(playerId); |
1,062,408 | public void onPlayerInteract(final PlayerInteractEvent event) {<NEW_LINE>// Do not return if cancelled, because the interact event has 2 cancelled states.<NEW_LINE>final User user = ess.getUser(event.getPlayer());<NEW_LINE>final ItemStack item = event.getItem();<NEW_LINE>if (item != null && prot.checkProtectionItems(An... | ().toString())); |
235,054 | void handleDnsResponse(IpPacket requestPacket, byte[] responsePayload) {<NEW_LINE>UdpPacket udpOutPacket = (UdpPacket) requestPacket.getPayload();<NEW_LINE>UdpPacket.Builder payLoadBuilder = new UdpPacket.Builder(udpOutPacket).srcPort(udpOutPacket.getHeader().getDstPort()).dstPort(udpOutPacket.getHeader().getSrcPort())... | payloadBuilder(payLoadBuilder).build(); |
1,107,884 | private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void onPaymentReceived() {<NEW_LINE>// The confirmPaymentReceived call will trigger the trade protocol to do the payout tx. We want to be sure that we<NEW_LINE>// are well connected to the Bitcoin network befor... | "portfolio.pending.step3_seller.onPaymentReceived.name", optionalHolderName.get()); |
1,608,890 | final UpdateWorkGroupResult executeUpdateWorkGroup(UpdateWorkGroupRequest updateWorkGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateWorkGroupRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateWorkGroupRequest> reques... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,756,841 | protected Subtitle decode(byte[] bytes, int length, boolean reset) throws SubtitleDecoderException {<NEW_LINE>parsableByteArray.reset(bytes, length);<NEW_LINE>String cueTextString = readSubtitleText(parsableByteArray);<NEW_LINE>if (cueTextString.isEmpty()) {<NEW_LINE>return Tx3gSubtitle.EMPTY;<NEW_LINE>}<NEW_LINE>// At... | int styleRecordCount = parsableByteArray.readUnsignedShort(); |
651,317 | public void moveChild(String name, int index) throws NotFoundException {<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>checkDeleted();<NEW_LINE>int currentIndex = 0;<NEW_LINE>boolean foundName = false;<NEW_LINE>Group group = null;<NEW_LINE>// TODO: this could be slow and may need monitor<NEW_LINE>List<DBRecord> list... | group = moduleMgr.getFragmentDB(childRec); |
1,291,137 | public Matrix3f normalize(Matrix3f store) {<NEW_LINE>if (store == null) {<NEW_LINE>store = new Matrix3f();<NEW_LINE>}<NEW_LINE>float mag = 1.0f / FastMath.sqrt(m00 * m00 + m10 * m10 + m20 * m20);<NEW_LINE>store.m00 = m00 * mag;<NEW_LINE>store.m10 = m10 * mag;<NEW_LINE>store.m20 = m20 * mag;<NEW_LINE>mag = 1.0f / FastMa... | m11 * m11 + m21 * m21); |
1,378,092 | public void marshall(Meeting meeting, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (meeting == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(meeting.getMeetingId(), MEETINGID_BINDING);<NEW_LINE>protocolMa... | meeting.getMediaPlacement(), MEDIAPLACEMENT_BINDING); |
1,295,718 | public void write(MySQLResponseService service) {<NEW_LINE>ByteBuffer buffer = service.allocate();<NEW_LINE>BufferUtil.writeUB3(buffer, calcPacketSize());<NEW_LINE>buffer.put(packetId);<NEW_LINE>// capability flags<NEW_LINE>BufferUtil.writeUB4(buffer, clientFlags);<NEW_LINE>// max-packet size<NEW_LINE>BufferUtil.writeU... | databaseData.length + 1, true); |
51,042 | public void rollback(boolean recovering) throws StoreAccessException, IllegalStateException {<NEW_LINE>boolean inDoubt = journal.isInDoubt(transactionId);<NEW_LINE>if (inDoubt) {<NEW_LINE>// phase 2 rollback<NEW_LINE>Collection<K> keys = journal.getInDoubtKeys(transactionId);<NEW_LINE>for (K key : keys) {<NEW_LINE>Soft... | removed = removeFromUnderlyingStore(key, preparedSoftLock); |
1,476,238 | final public void put(int key, int value) {<NEW_LINE>int hash = key & 0x7FFFFFFF;<NEW_LINE>if ((key == 0 && value == 0) || value == Integer.MIN_VALUE) {<NEW_LINE>throw new RuntimeException("key value pair not supported " + key + " " + value);<NEW_LINE>}<NEW_LINE>// putHash(key, value, hash); inline ..<NEW_LINE>if (mNum... | final int mKey = mKeys[idx]; |
106,037 | private RValueInfo inferTypeForDestructuredTarget(DestructuredTarget target, Supplier<RValueInfo> patternTypeSupplier) {<NEW_LINE>// Currently we only do type inference for string key nodes in object patterns here, to<NEW_LINE>// handle aliasing types. e.g<NEW_LINE>// const {Foo} = ns;<NEW_LINE>// TypeInference takes c... | type = patternType.findPropertyType(propertyName); |
108,545 | private void commitModel(final ModuleModelImpl moduleModel, final Runnable runnable) {<NEW_LINE>myModuleModel.myModulesCache = null;<NEW_LINE>myModificationCount++;<NEW_LINE>ApplicationManager.getApplication().assertWriteAccessAllowed();<NEW_LINE>final Collection<Module> oldModules = myModuleModel.myModules;<NEW_LINE>f... | moduleModel.myModules.remove(moduleToBeRenamed); |
1,010,267 | public Request<CreateCustomAvailabilityZoneRequest> marshall(CreateCustomAvailabilityZoneRequest createCustomAvailabilityZoneRequest) {<NEW_LINE>if (createCustomAvailabilityZoneRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateCustomA... | request.addParameter("Version", "2014-10-31"); |
930,284 | public Response info() {<NEW_LINE>ResourceBundle configBundle = ConfigUtil.getConfigBundle();<NEW_LINE>String currentVersion = configBundle.getString("api.current_version");<NEW_LINE>String minVersion = configBundle.getString("api.min_version");<NEW_LINE>Boolean guestLogin = <MASK><NEW_LINE>String defaultLanguage = Con... | ConfigUtil.getConfigBooleanValue(ConfigType.GUEST_LOGIN); |
1,286,163 | private void paintMe(Graphics g) {<NEW_LINE>Font f = g.getFont();<NEW_LINE>g.setFont(getBoldFont());<NEW_LINE>FontMetrics fontMetrics = g.getFontMetrics(g.getFont());<NEW_LINE>int type = this.node.getType();<NEW_LINE>Color color;<NEW_LINE>switch(type) {<NEW_LINE>case PertChartAbstraction.Type.NORMAL:<NEW_LINE>color = N... | String name = node.getName(); |
1,310,120 | /*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.commands.spi.ICommandExecutionEncoder#encodeSystemCommand(com.<NEW_LINE>* sitewhere.spi.device.command.ISystemCommand,<NEW_LINE>* com.sitewhere.spi.device.IDeviceNestingContext, java.util.List)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public byte[] encodeSystemCommand(ISystemC... | encodeRegistrationAck(builder.build()); |
708,346 | public PolicyExecutor maxConcurrency(int max) {<NEW_LINE>if (max == -1)<NEW_LINE>max = Integer.MAX_VALUE;<NEW_LINE>else if (max < 1)<NEW_LINE>throw new IllegalArgumentException(Integer.toString(max));<NEW_LINE>synchronized (configLock) {<NEW_LINE>if (max < expedite)<NEW_LINE>throw new IllegalArgumentException(<MASK><NE... | "maxConcurrency: " + max + " < expedite: " + expedite); |
60,870 | protected void doExecute(Task task, final MultiGetRequest request, final ActionListener<MultiGetResponse> listener) {<NEW_LINE>ClusterState clusterState = clusterService.state();<NEW_LINE>clusterState.blocks().globalBlockedRaiseException(ClusterBlockLevel.READ);<NEW_LINE>final AtomicArray<MultiGetItemResponse> response... | ), shardId.getId()); |
734,120 | public AuthenticationStatus validateRequest(HttpServletRequest request, HttpServletResponse response, HttpMessageContext httpMessageContext) throws AuthenticationException {<NEW_LINE>logger.entering(sourceClass, "validateRequest", new Object[] <MASK><NEW_LINE>AuthenticationStatus status = AuthenticationStatus.SEND_FAIL... | { request, response, httpMessageContext }); |
330,911 | public static Properties parseGrpcUrl(String url) {<NEW_LINE>if (isNullOrEmpty(url)) {<NEW_LINE>throw new RuntimeException("URL cannot be null or empty");<NEW_LINE>}<NEW_LINE>Properties props = new Properties();<NEW_LINE>Pattern p = Pattern.compile("([^:]+)[:]//([^:]+)[:]([0-9]+)", Pattern.CASE_INSENSITIVE);<NEW_LINE>M... | protocol = props.getProperty("protocol"); |
202,486 | void connectTypeHierarchy() {<NEW_LINE>SourceTypeBinding sourceType = this.referenceContext.binding;<NEW_LINE>CompilationUnitScope compilationUnitScope = compilationUnitScope();<NEW_LINE>boolean wasAlreadyConnecting = compilationUnitScope.connectingHierarchy;<NEW_LINE>compilationUnitScope.connectingHierarchy = true;<NE... | problemReporter().hierarchyHasProblems(sourceType); |
276,051 | protected void perform(@Nonnull XDebugSession session, DataContext dataContext) {<NEW_LINE>Editor editor = dataContext.getData(CommonDataKeys.EDITOR);<NEW_LINE>if (editor == null || !(editor instanceof EditorEx)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int selectionStart = editor.getSelectionModel().getSelectionStart();... | .getSelectionModel().getSelectionEnd(); |
1,617,120 | private static void removeCustomLaunches(Document document, ManifestOptions manifestOptions) {<NEW_LINE>if (null == manifestOptions) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get the root node<NEW_LINE>Element root = document.getRootElement();<NEW_LINE>// Update launch information<NEW_LINE>if (manifestOptions.getRetain... | .getParent().getParent(); |
437,232 | public void putLong(long t, long v) {<NEW_LINE>if (writeCurArrayIndex == -1) {<NEW_LINE>if (capacity >= CAPACITY_THRESHOLD) {<NEW_LINE>((LinkedList<long[]>) timeRet).addFirst(new long[capacity]);<NEW_LINE>((LinkedList<long[]>) longRet).addFirst(new long[capacity]);<NEW_LINE>writeCurListIndex++;<NEW_LINE>writeCurArrayIn... | timeRet.set(0, newTimeData); |
356,466 | public boolean requestAudFocus(Context context, ApplicationMode applicationMode, int streamType) {<NEW_LINE>AudioManager mAudioManager = (AudioManager) <MASK><NEW_LINE>routingHelper = ((OsmandApplication) context.getApplicationContext()).getRoutingHelper();<NEW_LINE>if (android.os.Build.VERSION.SDK_INT < 26) {<NEW_LINE... | context.getSystemService(Context.AUDIO_SERVICE); |
134,964 | void morphologicalFeatures(String word, String featurePrefix, List<String> features) {<NEW_LINE>if (word == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>WordAnalysis analyses = morphology.analyze(word);<NEW_LINE>SingleAnalysis longest = analyses.analysisCount() > 0 ? analyses.getAnalysisResults().get(analyses.analysisC... | add(featurePrefix + "Ending:" + ending); |
1,398,801 | public static void broadcastCommandMessage(CommandSender source, String message, boolean sendToSource) {<NEW_LINE>Set<Permissible> users = source.getServer().getPluginManager().getPermissionSubscriptions(Server.BROADCAST_CHANNEL_ADMINISTRATIVE);<NEW_LINE>TranslationContainer result = new TranslationContainer("chat.type... | source.getName(), message); |
1,211,192 | public Schema transform(Schema inputSchema) {<NEW_LINE>for (String s : newOrder) {<NEW_LINE>if (!inputSchema.hasColumn(s)) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (inputSchema.numColumns() < newOrder.size())<NEW_LINE>throw new IllegalArgumentException("Schema has " + inputSchema.numColumns() + " c... | IllegalStateException("Input schema does not contain column with name \"" + s + "\""); |
62,241 | public Request<ModifyClusterIamRolesRequest> marshall(ModifyClusterIamRolesRequest modifyClusterIamRolesRequest) {<NEW_LINE>if (modifyClusterIamRolesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyClusterIamRolesRequest> request = n... | String>) modifyClusterIamRolesRequest.getAddIamRoles(); |
1,115,029 | public boolean intersects(MappeableRunContainer x) {<NEW_LINE>int rlepos = 0;<NEW_LINE>int xrlepos = 0;<NEW_LINE>int start = (this.getValue(rlepos));<NEW_LINE>int end = start + (this.getLength(rlepos)) + 1;<NEW_LINE>int xstart = (x.getValue(xrlepos));<NEW_LINE>int xend = xstart + (x.getLength(xrlepos)) + 1;<NEW_LINE>wh... | .getLength(rlepos)) + 1; |
1,062,882 | public WeightedPath findSinglePath(Node start, Node end) {<NEW_LINE>lastMetadata = new Metadata();<NEW_LINE>AStarIterator iterator = new AStarIterator(start, end);<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Node node = iterator.next();<NEW_LINE>if (node.equals(end)) {<NEW_LINE>// Hit, return path<NEW_LINE>double we... | var transaction = context.transaction(); |
665,704 | final ListMobileDeviceAccessRulesResult executeListMobileDeviceAccessRules(ListMobileDeviceAccessRulesRequest listMobileDeviceAccessRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMobileDeviceAccessRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | invoke(request, responseHandler, executionContext); |
1,452,052 | private void doAddToPalette(final TextImporterUI panel) {<NEW_LINE>// store new item<NEW_LINE>// NOI18N //NOI18N<NEW_LINE>final String fileName = FileUtil.findFreeFileName(categoryFolder, "ccc", "xml");<NEW_LINE>try {<NEW_LINE>categoryFolder.getFileSystem().runAtomicAction(new AtomicAction() {<NEW_LINE><NEW_LINE>public... | reorder(fileName, categoryFolder, dropIndex); |
880,927 | protected ActionCallback _execute(PlaybackContext context) {<NEW_LINE>String[] args = getText().substring(PREFIX.length()).trim().split(" ");<NEW_LINE>String syntaxText = "Syntax error, expected: " + PREFIX + " " + ON + "|" + OFF + " actionName";<NEW_LINE>if (args.length != 2) {<NEW_LINE>context.error(syntaxText, getLi... | "Unknown action id=" + actionId, getLine()); |
1,577,819 | private void createOrUpdateSchedule(User user, long projectCode, long processDefinitionCode, String schedule, String workerGroup) {<NEW_LINE>Schedule scheduleObj = scheduleMapper.queryByProcessDefinitionCode(processDefinitionCode);<NEW_LINE>// create or update schedule<NEW_LINE>int scheduleId;<NEW_LINE>if (scheduleObj ... | int) result.get("scheduleId"); |
1,120,593 | public void completeMerge(long targetStreamSegmentId, long sourceStreamSegmentId) throws StreamSegmentNotExistsException {<NEW_LINE>Exceptions.checkNotClosed(this.<MASK><NEW_LINE>log.debug("{}: completeMerge (TargetId = {}, SourceId = {}.", this.traceObjectId, targetStreamSegmentId, sourceStreamSegmentId);<NEW_LINE>Seg... | closed.get(), this); |
1,253,910 | private static Map<String, Double> parseEncounterAdjustmentFactors(String resource) {<NEW_LINE>try {<NEW_LINE>String rawData = Utilities.readResource(resource);<NEW_LINE>List<LinkedHashMap<String, String>> lines = SimpleCSV.parse(rawData);<NEW_LINE>Map<String, Double> costMap = new HashMap<>();<NEW_LINE>for (Map<String... | RuntimeException("Invalid cost adjustment factor: " + factorStr, nfe); |
232,302 | final GetLoadBalancerTlsCertificatesResult executeGetLoadBalancerTlsCertificates(GetLoadBalancerTlsCertificatesRequest getLoadBalancerTlsCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLoadBalancerTlsCertificatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | (super.beforeMarshalling(getLoadBalancerTlsCertificatesRequest)); |
1,708,312 | public void testTransactionTimeout(HttpServletRequest request, PrintWriter out) throws Exception {<NEW_LINE>TenSecondTask task = new TenSecondTask();<NEW_LINE>task.getExecutionProperties().put(AutoPurge.PROPERTY_NAME, AutoPurge.NEVER.name());<NEW_LINE>task.getExecutionProperties().put(ManagedTask.IDENTITY_NAME, "testTr... | status = scheduler.submit(task); |
1,388,960 | public DescribeScheduledInstancesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeScheduledInstancesResult describeScheduledInstancesResult = new DescribeScheduledInstancesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1... | ().unmarshall(context)); |
1,436,971 | public static ListSecretsResponse unmarshall(ListSecretsResponse listSecretsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSecretsResponse.setRequestId(_ctx.stringValue("ListSecretsResponse.RequestId"));<NEW_LINE>listSecretsResponse.setPageNumber(_ctx.integerValue("ListSecretsResponse.PageNumber"));<NEW_LINE>listSe... | ("ListSecretsResponse.SecretList[" + i + "].SecretName")); |
414,551 | final GetDeploymentsResult executeGetDeployments(GetDeploymentsRequest getDeploymentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeploymentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,092,858 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) != 0)) {<NEW_LINE>output.writeUInt32(1, sentenceIndex_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) != 0)) {<NEW_LINE>output.writeUInt32(2, tokenStartInSentenceInclusive_);<NEW_... | writeMessage(7, getTimex()); |
132,267 | public boolean compatibleVersion(String acceptableVersionRange, String actualVersion) {<NEW_LINE>V pluginVersion = parseVersion(actualVersion);<NEW_LINE>// Treat a single version "1.4" as a left bound, equivalent to "[1.4,)"<NEW_LINE>if (acceptableVersionRange.matches(VERSION_REGEX)) {<NEW_LINE>return ge(pluginVersion,... | matcher.matches(), "invalid version range"); |
1,054,109 | public static IRubyObject inject(ThreadContext context, IRubyObject self, IRubyObject init, IRubyObject method, final Block block) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>if (block.isGiven())<NEW_LINE>runtime.getWarnings().warn(ID.BLOCK_UNUSED, "given block not used");<NEW_LINE>final String methodId =... | (ctx, largs), blk); |
1,068,966 | private void renameKilledApps(FileStatus[] intermediateDir) throws IOException, YarnException {<NEW_LINE>List<FileStatus> killedAppDirectories = new ArrayList<>();<NEW_LINE>List<String> killedAppIds = killedAppIds();<NEW_LINE>for (String killedAppId : killedAppIds) {<NEW_LINE>for (FileStatus jobDirFilePath : intermedia... | LOG.error("Failed to rename KILLED apps", e); |
801,794 | public Object doQuery(Object[] objs) {<NEW_LINE>try {<NEW_LINE>if (objs.length < 1) {<NEW_LINE>throw new RQException("elastic function.paramTypeError");<NEW_LINE>}<NEW_LINE>// check param: cursor<NEW_LINE>boolean bCursor = false;<NEW_LINE>if (option != null) {<NEW_LINE>if (option.indexOf("c") != -1) {<NEW_LINE>bCursor ... | subModel = getSubModel(method, endpoint); |
1,129,833 | public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>MapActivity mapActivity = requireMapActivity();<NEW_LINE>nightMode = mapActivity.getMyApplication().getDaynightHelper().isNightModeForMapControls();<NEW_LINE>View view = UiUtilities.getInflater(mapActiv... | MapContextMenu contextMenu = mapActivity.getContextMenu(); |
356,288 | protected void addBlockSimulations(List<Permanent> blockers, TreeNode<CombatSimulator> node, Game game) {<NEW_LINE>int numGroups = node.getData<MASK><NEW_LINE>Copier<CombatSimulator> copier = new Copier<>();<NEW_LINE>for (Permanent blocker : blockers) {<NEW_LINE>List<Permanent> subList = remove(blockers, blocker);<NEW_... | ().groups.size(); |
1,630,203 | private CtBehavior compileMethod(Parser p, MethodDecl md) throws CompileError {<NEW_LINE>int mod = MemberResolver.<MASK><NEW_LINE>CtClass[] plist = gen.makeParamList(md);<NEW_LINE>CtClass[] tlist = gen.makeThrowsList(md);<NEW_LINE>recordParams(plist, Modifier.isStatic(mod));<NEW_LINE>md = p.parseMethod2(stable, md);<NE... | getModifiers(md.getModifiers()); |
990,147 | protected final PathFragment appendSegment(PathFragment dir, String child, int maxLinks) throws IOException {<NEW_LINE>PathFragment naive = dir.getChild(child);<NEW_LINE>PathFragment linkTarget = resolveOneLink(naive);<NEW_LINE>if (linkTarget == null) {<NEW_LINE>// regular file or directory<NEW_LINE>return naive;<NEW_L... | PathFragment parent = dir.getParentDirectory(); |
683,369 | public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>sportsSpinner = getView().findViewById(R.id.customtargeting_spn_sport);<NEW_LINE>loadButton = getView().findViewById(R.id.customtargeting_btn_loadad);<NEW_LINE>adView = getView().findViewById(R.id.c... | android.R.layout.simple_spinner_item); |
266,862 | public WorldSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>WorldSummary worldSummary = new WorldSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | JsonToken token = context.getCurrentToken(); |
1,046,429 | public Builder mergeFrom(com.alibaba.alink.operator.batch.dl.ctr.protos.Dbmtl.DBMTL other) {<NEW_LINE>if (other == com.alibaba.alink.operator.batch.dl.ctr.protos.Dbmtl.DBMTL.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasBottomDnn()) {<NEW_LINE>mergeBottomDnn(other.getBottomDnn());<NEW_LINE>}<NEW_LIN... | taskTowersBuilder_.addAllMessages(other.taskTowers_); |
1,700,761 | public BotExportSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BotExportSpecification botExportSpecification = new BotExportSpecification();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | int originalDepth = context.getCurrentDepth(); |
651,404 | protected B deepMerge(MergingKey key, MergeableNode node) {<NEW_LINE>// compotes id from current key<NEW_LINE>ID id = id(key);<NEW_LINE>if (key.isLeaf()) {<NEW_LINE>// merges leaf nodes<NEW_LINE>merge(id, node);<NEW_LINE>} else {<NEW_LINE>// get current member associated with id<NEW_LINE>MergeableNode member = member(i... | member, key, node, id); |
1,474,402 | public static void percentiles(long[] counts, double[] pcts, double[] results) {<NEW_LINE>Preconditions.checkArg(counts.length == BUCKET_VALUES.length, "counts is not the same size as buckets array");<NEW_LINE>Preconditions.checkArg(pcts.length > 0, "pct array cannot be empty");<NEW_LINE>Preconditions.checkArg(pcts.len... | double nextP = 100.0 * next / total; |
538,818 | final UpdateWorkspaceResult executeUpdateWorkspace(UpdateWorkspaceRequest updateWorkspaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateWorkspaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | responseHandler, executionContext, null, endpointTraitHost); |
232,070 | public void read(org.apache.thrift.protocol.TProtocol iprot, ByteArray 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.apach... | .length = iprot.readI64(); |
863,914 | public void addSegment(String title) {<NEW_LINE>final Context context = getContext();<NEW_LINE>final LayoutInflater inflater = LayoutInflater.from(context);<NEW_LINE>if (mDividerDrawable != null && getSegmentCount() > 0) {<NEW_LINE>ImageView divider = new ImageView(context);<NEW_LINE>final int width = (mDividerWidth > ... | layout.gd_segment, this, false); |
491,339 | public ClientVpnAuthentication unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ClientVpnAuthentication clientVpnAuthentication = new ClientVpnAuthentication();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocu... | ().unmarshall(context)); |
1,646,704 | public static DescribeVpcsResponse unmarshall(DescribeVpcsResponse describeVpcsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVpcsResponse.setRequestId(_ctx.stringValue("DescribeVpcsResponse.RequestId"));<NEW_LINE>describeVpcsResponse.setPageSize(_ctx.integerValue("DescribeVpcsResponse.PageSize"));<NEW_LINE>des... | ("DescribeVpcsResponse.Vpcs[" + i + "].CidrBlock")); |
651,608 | public static void fireEvent(String eventType) {<NEW_LINE>BeanManager beanManager = null;<NEW_LINE>try {<NEW_LINE>beanManager = CDI.current().getBeanManager();<NEW_LINE>} catch (Exception e) {<NEW_LINE>log("Can't get instance of BeanManager to process TransactionScoped CDI Event!");<NEW_LINE>}<NEW_LINE>if (beanManager ... | beanManager.getBeans(TransactionScopedCDIEventHelperImpl.class); |
1,472,932 | private boolean stepBackAndFindPrevPointInRoute(GpxRouteApproximation gctx, List<GpxPoint> gpxPoints, GpxPoint start, GpxPoint next) throws IOException {<NEW_LINE>// step back to find to be sure<NEW_LINE>// 1) route point is behind GpxPoint - minPointApproximation (end route point could slightly ahead)<NEW_LINE>// 2) w... | , rr.getEndPointIndex())); |
1,653,116 | protected void overrideClass(Class clazz) throws Exception {<NEW_LINE>if (null == getClassReloadingStrategy()) {<NEW_LINE>Logger.error(this, "bytebuddy ClassReloadingStrategy not set [java agent not set?]");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!clazz.getClassLoader().equals(getBundleClassloader())) {<NEW_LINE>Logg... | ) + " into classloader: " + getWebAppClassloader()); |
614,817 | private Builder addPutBlobHeaders(CreateBlobOptions options, Builder builder) {<NEW_LINE>builder = addOptionalHeader(builder, "Content-Type", options.getContentType());<NEW_LINE>if (options.getContentType() == null) {<NEW_LINE>// Note: Add content type here to enable proper HMAC signing<NEW_LINE>builder = builder.type(... | "Content-Encoding", options.getContentEncoding()); |
1,478,243 | public static void putInt64Uncheck(byte[] dest, int start, long l) {<NEW_LINE>if (ByteOrder.BIG_ENDIAN == PLATFORM_ENDIAN) {<NEW_LINE>dest[start + 7] = (byte) (l & 0xff);<NEW_LINE>dest[start + 6] = (byte) (l >> 8 & 0xff);<NEW_LINE>dest[start + 5] = (byte) (l >> 16 & 0xff);<NEW_LINE>dest[start + 4] = (byte) (l >> 24 & 0... | (byte) (l & 0xff); |
1,187,868 | private void handle(final ChangeHostStateMsg msg) {<NEW_LINE>ChangeHostStateReply reply = new ChangeHostStateReply();<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return String.format("change-host-state-%s", self.getUuid());<NEW_LINE>}<... | bus.reply(msg, reply); |
429,252 | private void scanInjectableFields(Class<?> beanClazz) {<NEW_LINE>InjectableFields fieldDecls = new InjectableFields();<NEW_LINE>List<Field> fieldsToScan = new ArrayList<>(Arrays.asList(beanClazz.getDeclaredFields()));<NEW_LINE>Class<?> superclazz = beanClazz.getSuperclass();<NEW_LINE>while (superclazz != Object.class) ... | field.getAnnotation(Named.class); |
207,312 | protected void drawSplitHalfFrame(Graphics2D g, CardPanelAttributes attribs, HalfCardProps half, int typeLineY) {<NEW_LINE>// Get the border paint<NEW_LINE>Color boxColor = getBoxColor(half.color, cardView.getCardTypes(), attribs.isTransformed);<NEW_LINE>Paint textboxPaint = getTextboxPaint(half.color, cardView.getCard... | half.ch - typeLineY - 1); |
1,267,012 | private static Map.Entry<Long, Integer> parseConcat(String concat) {<NEW_LINE>int <MASK><NEW_LINE>Preconditions.checkArgument(pos > 0 && pos < concat.length() - 1, "%s value '%s' is invalid.", KEY_CONCAT, concat);<NEW_LINE>String count = concat.substring(0, pos);<NEW_LINE>String offset = concat.substring(pos + CONCAT_S... | pos = concat.indexOf(CONCAT_SEPARATOR); |
1,321,034 | public static void init(ThreadContext context, IRubyObject self, IRubyObject[] args) {<NEW_LINE>int count = Arity.checkArgumentCount(context.getRuntime(), args, 1, 4);<NEW_LINE>if (count == 4) {<NEW_LINE>PApplet parent = (PApplet) args[0].toJava(PApplet.class);<NEW_LINE>double cx = (double) args[1].toJava(Double.class)... | ].toJava(PApplet.class); |
1,357,113 | static public AuthChallenge parse(String authHeaderStr) {<NEW_LINE>Map<String, String> authHeader = null;<NEW_LINE>try {<NEW_LINE>authHeader = AuthStringTokenizer.parse(authHeaderStr);<NEW_LINE>} catch (Throwable ex) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (!authHeader.containsKey(SCHEME))<NEW_LIN... | (authHeader.get(SCHEME)); |
1,319,080 | private void ReadDocumentStreamed(XmlPullParser xpp) throws XmlPullParserException, IOException, InvalidDBException {<NEW_LINE>ctxGroups.clear();<NEW_LINE>KdbContext ctx = KdbContext.Null;<NEW_LINE>readNextNode = true;<NEW_LINE>while (true) {<NEW_LINE>if (readNextNode) {<NEW_LINE>if (xpp.next() == XmlPullParser.END_DOC... | ).length() == 0); |
741,120 | public void start() {<NEW_LINE>if (hasRedissonInstance) {<NEW_LINE>redisson = Redisson.create(config);<NEW_LINE>}<NEW_LINE>retrieveAddresses();<NEW_LINE>if (config.getRedissonNodeInitializer() != null) {<NEW_LINE>config.<MASK><NEW_LINE>}<NEW_LINE>int mapReduceWorkers = config.getMapReduceWorkers();<NEW_LINE>if (mapRedu... | getRedissonNodeInitializer().onStartup(this); |
1,514,945 | public Conformity check(Cluster cluster) {<NEW_LINE>List<String> asgNames = Lists.newArrayList();<NEW_LINE>for (AutoScalingGroup asg : cluster.getAutoScalingGroups()) {<NEW_LINE>asgNames.add(asg.getName());<NEW_LINE>}<NEW_LINE>Collection<String> failedComponents = Lists.newArrayList();<NEW_LINE>for (AutoScalingGroup as... | cluster.getRegion(), lbName); |
1,045,801 | public static void serialize(final LocalDate value, final JsonWriter sw) {<NEW_LINE>final int year = value.getYear();<NEW_LINE>if (year < 0) {<NEW_LINE>throw new SerializationException("Negative dates are not supported.");<NEW_LINE>} else if (year > 9999) {<NEW_LINE>sw.writeByte(JsonWriter.QUOTE);<NEW_LINE>NumberConver... | .writeByte((byte) '-'); |
676,914 | protected FGPrimaryViewer createPrimaryGraphViewer(VisualGraphLayout<FGVertex, FGEdge> layout, Dimension viewerSize) {<NEW_LINE>FGPrimaryViewer viewer = new FGPrimaryViewer(this, layout, viewerSize);<NEW_LINE>RenderContext<FGVertex, FGEdge> renderContext = viewer.getRenderContext();<NEW_LINE>FGEdgePaintTransformer edge... | = e -> e.getLabel(); |
1,577,253 | private void insertTimerScheduler(HttpServletRequest request, TimerSchedulerEntity timerSchedulerEntity) throws GovernanceException {<NEW_LINE>try {<NEW_LINE>if (!this.checkProcessorExist(request)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.setRuleDataBaseUrl(timerSchedulerEntity);<NEW_LINE>String url = new StringBuff... | log.error("processor insert timerScheduler fail", e); |
1,246,363 | private void onQueueComplete(long handle) {<NEW_LINE>logDebug("onQueueComplete");<NEW_LINE>if ((lock != null) && (lock.isHeld()))<NEW_LINE>try {<NEW_LINE>lock.release();<NEW_LINE>} catch (Exception ex) {<NEW_LINE>}<NEW_LINE>if ((wl != null) && (wl.isHeld()))<NEW_LINE>try {<NEW_LINE>wl.release();<NEW_LINE>} catch (Excep... | , autoPlayInfo.getLocalPath())); |
986,659 | final DeleteProjectVersionResult executeDeleteProjectVersion(DeleteProjectVersionRequest deleteProjectVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProjectVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | endClientExecution(awsRequestMetrics, request, response); |
34,218 | public void UIInputReceiverClosed(UIInputReceiver receiver) {<NEW_LINE>if (!receiver.hasSubmittedInput()) {<NEW_LINE>l.manualSpeedValueResult(-1);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sReturn = receiver.getSubmittedInput();<NEW_LINE>if (sReturn == null) {<NEW_LINE>l.manualSpeedValueResult(-1);<NEW_LINE>return;<N... | SWT.ICON_ERROR | SWT.OK); |
186,381 | public String toJson() throws JsonProcessingException {<NEW_LINE>JsonObject retVal = new JsonObject();<NEW_LINE>ObjectMapper mapper = mapper();<NEW_LINE>Iterator<T> iter = vocabulary.values().iterator();<NEW_LINE>Class clazz = null;<NEW_LINE>if (iter.hasNext())<NEW_LINE>clazz = iter.next().getClass();<NEW_LINE>else<NEW... | , mapper.writeValueAsString(stopWords)); |
1,414,956 | private boolean splitFreeNode(Rect freeNode, Rect usedNode) {<NEW_LINE>// Test with SAT if the rectangles even intersect.<NEW_LINE>if (usedNode.x >= freeNode.x + freeNode.width || usedNode.x + usedNode.width <= freeNode.x || usedNode.y >= freeNode.y + freeNode.height || usedNode.y + usedNode.height <= freeNode.y)<NEW_L... | usedNode.x + usedNode.width); |
1,838,839 | private Mono<Void> executeInternal(URI url, HttpHeaders headers, WebSocketHandler handler) {<NEW_LINE>Sinks.Empty<Void> completion = Sinks.empty();<NEW_LINE>return Mono.deferContextual(contextView -> {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Connecting to " + url);<NEW_LINE>}<NEW_LINE>List<String... | ), completion, negotiation, channel); |
350,126 | public StartPosition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartPosition startPosition = new StartPosition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
639,118 | public List<RexNode> forMoveAround(Join join, PredicateType type) {<NEW_LINE><MASK><NEW_LINE>if (join instanceof SemiJoin && joinType == JoinRelType.LEFT) {<NEW_LINE>joinType = JoinRelType.LEFT_SEMI;<NEW_LINE>}<NEW_LINE>final List<RexNode> result = new ArrayList<>();<NEW_LINE>switch(joinType) {<NEW_LINE>case INNER:<NEW... | JoinRelType joinType = join.getJoinType(); |
1,827,175 | public PlanFragment visitPhysicalHiveScan(OptExpression optExpression, ExecPlan context) {<NEW_LINE>PhysicalHiveScanOperator node = (PhysicalHiveScanOperator) optExpression.getOp();<NEW_LINE>ScanOperatorPredicates predicates = node.getScanOperatorPredicates();<NEW_LINE>Table referenceTable = node.getTable();<NEW_LINE>c... | getFragments().add(fragment); |
1,604,068 | public static void main(String[] args) throws Exception {<NEW_LINE>dataLocalPath = DownloaderUtility.NLPDATA.Download();<NEW_LINE>File resource = new File(dataLocalPath, "paravec/simple.pv");<NEW_LINE>TokenizerFactory t = new DefaultTokenizerFactory();<NEW_LINE>t.setTokenPreProcessor(new CommonPreprocessor());<NEW_LINE... | vectors = WordVectorSerializer.readParagraphVectors(resource); |
1,535,661 | final CreateTransitVirtualInterfaceResult executeCreateTransitVirtualInterface(CreateTransitVirtualInterfaceRequest createTransitVirtualInterfaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTransitVirtualInterfaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | invoke(request, responseHandler, executionContext); |
379,662 | public void onClick(DialogInterface dialogInterface, int which) {<NEW_LINE>switch(which) {<NEW_LINE>case 1:<NEW_LINE><MASK><NEW_LINE>ContentValues values = new ContentValues(1);<NEW_LINE>values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg");<NEW_LINE>mPath = getContentResolver().insert(MediaStore.Images.Media.EXT... | Intent getImageByCamera = new Intent("android.media.action.IMAGE_CAPTURE"); |
1,457,285 | public DescribeAuditSuppressionResult describeAuditSuppression(DescribeAuditSuppressionRequest describeAuditSuppressionRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAuditSuppressionRequest);<NEW_LINE>AWSRequestMetrics awsReque... | new JsonResponseHandler<DescribeAuditSuppressionResult>(unmarshaller); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.