idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,516,496 | public Key[] selectVolatileJobs(Connection conn) throws SQLException {<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>ps = conn.prepareStatement(rtp(SELECT_VOLATILE_JOBS.toLowerCase()));<NEW_LINE>setBoolean(ps, 1, true);<NEW_LINE>rs = ps.executeQuery();<NEW_LINE>ArrayList li... | kArr, 0, oArr.length); |
789,209 | public static GcsClient create(GcsConnectionProperties gcsConnectionProperties) throws GeneralSecurityException, IOException {<NEW_LINE>HttpTransport transport = GoogleNetHttpTransport.newTrustedTransport();<NEW_LINE>JsonFactory jsonFactory = new JacksonFactory();<NEW_LINE>Storage.Builder builder = new Storage.Builder(... | setHttpRequestInitializer(new RetryHttpInitializerWrapper(credentialSupplier)); |
452,397 | chameleon.playlist.xspf.Playlist createXsfpPlaylistFromDBId(int id) {<NEW_LINE>chameleon.playlist.xspf.Playlist newPlaylist = new chameleon.playlist.xspf.Playlist();<NEW_LINE>Playlist playlist = playlistDao.getPlaylist(id);<NEW_LINE>newPlaylist.setTitle(playlist.getName());<NEW_LINE>newPlaylist.setCreator("Airsonic use... | ()).toString()); |
293,495 | private void createAndWriteTraceFileHeader(Context context, long utglobaldataAddress, int bufferSize, PrintStream out) throws CorruptDataException, DDRInteractiveCommandException {<NEW_LINE>IProcess process = context.process;<NEW_LINE>boolean isBigEndian = process.getByteOrder().equals(ByteOrder.BIG_ENDIAN);<NEW_LINE>l... | process.getLongAt(utglobaldataAddress + startPlatformOffset); |
1,812,488 | final CreateProjectResult executeCreateProject(CreateProjectRequest createProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,468,224 | public final void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) throws Exception {<NEW_LINE>EnumSet<ResponseActions> value = EnumSet.noneOf(ResponseActions.class);<NEW_LINE>value.add(ResponseActions.None);<NEW_LINE>reader.ensureCurrentNodeIsStartElement(XmlNamespace.Types, this.getXmlEle... | value.add(ResponseActions.Accept); |
1,536,548 | public void sample(int iterations, boolean shouldInitialize, int docCycleCount) throws IOException {<NEW_LINE>for (int iteration = 1; iteration <= iterations; iteration++) {<NEW_LINE>long iterationStart = System.currentTimeMillis();<NEW_LINE>// Loop over every document in the corpus<NEW_LINE>for (int doc = 0; doc < dat... | shouldInitialize && iteration == 1, false); |
1,052,618 | private void measureComponentPaintLayoutTime(com.codename1.ui.Component c, Map<String, Long> paintTimes, Map<String, Long> layoutTimes) {<NEW_LINE>if (c.getName() != null && c.getWidth() > 0 && c.getHeight() > 0) {<NEW_LINE>long t1;<NEW_LINE>if (c instanceof com.codename1.ui.Container) {<NEW_LINE>t1 = System.nanoTime()... | Container) c).revalidate(); |
474,150 | public void transform(PictureHiBD img, PictureHiBD dst) {<NEW_LINE>int[] y = img.getData()[0];<NEW_LINE>int[][] dstData = dst.getData();<NEW_LINE>int off = 0, offSrc = 0;<NEW_LINE>for (int i = 0; i < img.getHeight(); i++) {<NEW_LINE>for (int j = 0; j < img.getWidth() >> 1; j++) {<NEW_LINE>dstData[1][off] = 0;<NEW_LINE>... | off] << upShift) >> downShiftChr; |
42,273 | public void login(@RequestParam(name = "front_back_url", required = false) String frontBackUrl, @RequestParam(name = "back_url", required = false) String backUrl, @RequestParam(name = "backurl", required = false) String backurl, HttpServletResponse response) throws URISyntaxException, IOException {<NEW_LINE>String orig... | "%s/ssoLogin.htm", authProperties.getSsoServerUrl()); |
1,209,869 | public void marshall(LoadBalancerTlsCertificate loadBalancerTlsCertificate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (loadBalancerTlsCertificate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(loadBa... | loadBalancerTlsCertificate.getSupportCode(), SUPPORTCODE_BINDING); |
519,374 | private Mono<ResponseEntity<T>> exchange(RequestEntity<?> requestEntity) {<NEW_LINE>Type type = this.responseType;<NEW_LINE>RequestBodySpec builder = rest.method(requestEntity.getMethod()).uri(requestEntity.getUrl()).headers(headers -> addHeaders(headers, requestEntity.getHeaders()));<NEW_LINE>WebClient.ResponseSpec re... | (ParameterizedTypeReference.forType(type)); |
1,171,473 | private void initLangInfoLink() {<NEW_LINE>if (mLangInfoLink != null) {<NEW_LINE>Spannable link = new SpannableString(getString(R.string.prefs_languages_information_off_link));<NEW_LINE>link.setSpan(new ForegroundColorSpan(ContextCompat.getColor(getContext(), UiUtils.getStyledResourceId(getContext(), R.attr.colorAccent... | link.length(), 0); |
189,842 | private boolean initializeDatabase() {<NEW_LINE>// Start PostgreSQL if requested.<NEW_LINE>if (startPostgresql) {<NEW_LINE>// Complain if the user has also specified either --db_host or --db_port.<NEW_LINE>if (databaseHost != null || databasePort != null) {<NEW_LINE>System.err.println(DB_OPTIONS_CLASH);<NEW_LINE>// TOD... | (DB_USERNAME).withPassword(DB_PASSWORD); |
1,006,442 | public Bundle toBundle() {<NEW_LINE>Bundle bundle = new Bundle();<NEW_LINE>bundle.putString(keyForField(FIELD_ID), id);<NEW_LINE>bundle.putString(keyForField(FIELD_LABEL), label);<NEW_LINE>bundle.putString(keyForField(FIELD_LANGUAGE), language);<NEW_LINE>bundle.putInt(keyForField(FIELD_SELECTION_FLAGS), selectionFlags)... | (keyForField(FIELD_AVERAGE_BITRATE), averageBitrate); |
777,420 | protected void prepare(@NonNull final BaseActivity context, @NonNull final LinearLayout items) {<NEW_LINE>final RedditPost post = <MASK><NEW_LINE>items.addView(propView(context, R.string.props_title, StringEscapeUtils.unescapeHtml4(post.title.trim()), true));<NEW_LINE>items.addView(propView(context, R.string.props_auth... | getArguments().getParcelable("post"); |
1,161,473 | public Cursor handle(RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>if (showProfileSyncActionClass == null) {<NEW_LINE>throw new NotSupportException();<NEW_LINE>}<NEW_LINE>SqlShowProfile sqlShowProfile = (SqlShowProfile) ((LogicalShow) logicalPlan).getNativeSqlNode();<NEW_LINE>SqlNode forQuery = sql... | sqlShowProfile, forQueryId, typeList, executionContext); |
1,297,554 | protected void hookMethod(CtClass ctClass) throws IOException, CannotCompileException, NotFoundException {<NEW_LINE>String src = getInvokeStaticSrc(NioFilesRenameHook.class, "checkFileRename", "$1,$2", Object.class, Object.class);<NEW_LINE>insertBefore(ctClass, "copy", "(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/n... | ctClass, "createLink", "(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;", srcLinkHard); |
905,555 | public Producer buildProducerProperties() {<NEW_LINE>PropertyMapper propertyMapper = PropertyMapper<MASK><NEW_LINE>Producer properties = new Producer();<NEW_LINE>AzurePropertiesUtils.mergeAzureCommonProperties(this, this.producer, properties);<NEW_LINE>propertyMapper.from(this.getDomainName()).to(properties::setDomainN... | .get().alwaysApplyingWhenNonNull(); |
1,672,719 | public boolean isClosure(GraphManager graphMgr, Vertex<?, ?> fromVertex, Vertex<?, ?> toVertex, Traversal.Parameters params, GraphIterator.Scopes.Scoped scoped) {<NEW_LINE>ThingVertex player = fromVertex.asThing();<NEW_LINE>ThingVertex rel = toVertex.asThing();<NEW_LINE>Set<TypeVertex> relationRoleTypes = graphMgr.sche... | > next = closures.first(); |
1,425,772 | public void contextInitialized(ServletContextEvent sce) {<NEW_LINE>final String methodName = "contextInitialized";<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, methodName, new Object[] { sce.getServletContext().getContextPath() });<NEW_LINE>try {<NEW_LINE>CacheService cacheService = getCacheService();<NEW_LI... | ).getClassLoader(), DISTRIBUTED_MAP_PROPERTIES); |
1,539,631 | private // via GridRowInfo and GridColumnInfo. This grid uses the percentages<NEW_LINE>GridPane createGridPanePercentage() {<NEW_LINE>GridPane grid = new GridPane();<NEW_LINE>grid.setPadding(new Insets(8, 8, 8, 8));<NEW_LINE>RowConstraints rowinfo3 = new RowConstraints();<NEW_LINE>rowinfo3.setPercentHeight(50);<NEW_LIN... | setConstraints(button, 2, 1); |
1,678,963 | public void writeToStream(FSDataOutputStream stream) throws IOException {<NEW_LINE><MASK><NEW_LINE>available = false;<NEW_LINE>check = ThreadLocalRandom.current().nextLong();<NEW_LINE>start = stream.getPos();<NEW_LINE>logger.debug("Writing check value {} at position {}", check, start);<NEW_LINE>stream.writeLong(check);... | Stopwatch watch = Stopwatch.createStarted(); |
423,064 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String applicationFlag) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Applicati... | this.list(business, application); |
213,485 | public void marshall(LightsailDistribution lightsailDistribution, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (lightsailDistribution == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>proto... | lightsailDistribution.getName(), NAME_BINDING); |
400,338 | public static void interpolate(float u, float v, List<List<Vector4f>> controlPoints, List<Float>[] knots, int basisUFunctionDegree, int basisVFunctionDegree, Vector3f store) {<NEW_LINE><MASK><NEW_LINE>float delimiter = 0;<NEW_LINE>int vControlPointsAmount = controlPoints.size();<NEW_LINE>int uControlPointsAmount = cont... | store.set(Vector3f.ZERO); |
461,706 | public Bitmap aggregate(Iterable<Bitmap> bitmaps) {<NEW_LINE>PriorityQueue<ImmutableConciseSet> pq = new PriorityQueue<ImmutableConciseSet>(128, new Comparator<ImmutableConciseSet>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(ImmutableConciseSet a, ImmutableConciseSet b) {<NEW_LINE>return a.getLastWordI... | .union(x1, x2)); |
1,720,877 | private Annotation loadOrMakeSerializedSentences(String sentencesPath, GenericDataSetReader reader, File serializedSentences) throws IOException, ClassNotFoundException {<NEW_LINE>Annotation corpusSentences;<NEW_LINE>// if the serialized file exists, just read it. otherwise read the source<NEW_LINE>// and and save the ... | .sentenceCount(corpusSentences) + " sentences."); |
910,272 | private List<int[]> handleCube(int[][] childIndexes) {<NEW_LINE>List<int[]> enumerationSorted = new ArrayList<int[]>();<NEW_LINE>int size = getChildNodes().size();<NEW_LINE>NumberAscCombinationEnumeration e = new NumberAscCombinationEnumeration(size);<NEW_LINE>for (; e.hasMoreElements(); ) {<NEW_LINE>enumerationSorted.... | = new LinkedHashSet<Integer>(); |
1,787,990 | private void updateBranchContextMaps(int branch, double true_distance, double false_distance) {<NEW_LINE>if (!coveredPredicateContext.containsKey(branch)) {<NEW_LINE>coveredPredicateContext.put(branch, new HashMap<>());<NEW_LINE>coveredTrueContext.put(branch, new HashMap<>());<NEW_LINE>coveredFalseContext.put(branch, n... | ).put(context, true_distance); |
241,461 | private PluginOperationResult executeList() throws Exception {<NEW_LINE>final Version applicationVersion = Version.<MASK><NEW_LINE>Map<String, ExtendedPluginInfo> pluginInfos = new TreeMap<String, ExtendedPluginInfo>();<NEW_LINE>// First, list local plugins<NEW_LINE>if (options.getListMode() == PluginListMode.ALL || op... | valueOf(Client.getApplicationVersion()); |
1,841,639 | private List<I_M_HU> splitToOneItemPerHU(final I_PP_Order_Qty finishedGoodsReceiveCandidate) {<NEW_LINE>final ProductId finishedGoodProductId = ProductId.ofRepoId(finishedGoodsReceiveCandidate.getM_Product_ID());<NEW_LINE>final HuId huId = HuId.ofRepoId(finishedGoodsReceiveCandidate.getM_HU_ID());<NEW_LINE>final I_M_HU... | ))).build()); |
406,016 | public void init(final ShenyuRegisterCenterConfig config) {<NEW_LINE>Properties props = config.getProps();<NEW_LINE>int sessionTimeout = Integer.parseInt(props<MASK><NEW_LINE>int connectionTimeout = Integer.parseInt(props.getProperty("connectionTimeout", "3000"));<NEW_LINE>int baseSleepTime = Integer.parseInt(props.get... | .getProperty("sessionTimeout", "3000")); |
902,226 | protected void checkValue(SpecText spec, String objectName, String realText, String checkEntity, Rect area) throws ValidationErrorException {<NEW_LINE>if (spec.getType() == SpecText.Type.IS) {<NEW_LINE>checkIs(objectName, area, realText, spec.getText(), checkEntity);<NEW_LINE>}<NEW_LINE>if (spec.getType() == SpecText.T... | spec.getText(), checkEntity); |
1,398,216 | public Handle open() {<NEW_LINE>try {<NEW_LINE>final long start = System.nanoTime();<NEW_LINE>@SuppressWarnings("PMD.CloseResource")<NEW_LINE>Connection conn = Objects.requireNonNull(connectionFactory.openConnection(), () -> "Connection factory " + connectionFactory + " returned a null connection");<NEW_LINE>final long... | conn = p.customizeConnection(conn); |
293,401 | public static DescribeLayer4RulePolicyResponse unmarshall(DescribeLayer4RulePolicyResponse describeLayer4RulePolicyResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLayer4RulePolicyResponse.setRequestId(_ctx.stringValue("DescribeLayer4RulePolicyResponse.RequestId"));<NEW_LINE>describeLayer4RulePolicyResponse.setIn... | ("DescribeLayer4RulePolicyResponse.PriRealServers[" + i + "].Eip")); |
1,465,392 | public boolean visit(ImportDeclaration node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE>if (node.getAST().apiLevel() >= JLS3_INTERNAL) {<NEW_LINE>RewriteEvent event = getEvent(node, ImportDeclaration.STATIC_PROPERTY);<NEW_LINE>if (event != null && eve... | getTokenEndOffset(TerminalTokens.TokenNamestatic, pos); |
440,477 | public static <T extends ImageGray<T>> PyramidFloat<T> scaleSpacePyramid(double[] scaleSpace, Class<T> imageType) {<NEW_LINE>double[] sigmas = new double[scaleSpace.length];<NEW_LINE>sigmas[0] = scaleSpace[0];<NEW_LINE>for (int i = 1; i < scaleSpace.length; i++) {<NEW_LINE>// the desired amount of blur<NEW_LINE>double ... | b = scaleSpace[i - 1]; |
1,138,229 | private void showBugDialog(final OsmNotesPoint point) {<NEW_LINE>final View view = LayoutInflater.from(getActivity()).inflate(R.layout.open_bug, null);<NEW_LINE>view.findViewById(R.id.user_name_field).setVisibility(View.GONE);<NEW_LINE>view.findViewById(R.id.userNameEditTextLabel).setVisibility(View.GONE);<NEW_LINE>vie... | .create().show(); |
1,418,902 | public static Pair<ProgramRunner, ExecutionEnvironment> createRunner(@Nonnull ExternalSystemTaskExecutionSettings taskSettings, @Nonnull String executorId, @Nonnull Project project, @Nonnull ProjectSystemId externalSystemId) {<NEW_LINE>Executor executor = ExecutorRegistry.getInstance().getExecutorById(executorId);<NEW_... | (taskSettings.getTaskNames())); |
818,715 | public void updateModel(@NonNull Model model) {<NEW_LINE>this.shouldUpdate.set(true);<NEW_LINE>try {<NEW_LINE>modelLock.writeLock().lock();<NEW_LINE>if (replicatedModel instanceof MultiLayerNetwork) {<NEW_LINE>replicatedModel.setParams(model.params().unsafeDuplication(true));<NEW_LINE>Updater updater = ((MultiLayerNetw... | MultiLayerNetwork) replicatedModel, viewD, false); |
320,656 | public NotificationArea createNotificationArea(RESTRequest request, String basePath, NotificationSettings notificationSettings) {<NEW_LINE>// Cleanup old clients<NEW_LINE>cleanUp(request);<NEW_LINE>// Fetch a new ID<NEW_LINE>int clientID = getNewClientID();<NEW_LINE>// Make the new inbox and insert into map<NEW_LINE>Cl... | debug(tc, "Created notification area for client ID " + clientID); |
1,204,400 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>String BASE_URL = request.getParameter("baseurl");<NEW_LINE>if (BASE_URL == null || BASE_URL.equals(""))<NEW_LINE>BASE_URL = "http://localhost:8010";<NEW_LINE>Hello proxy;<NEW_LI... | "javax.xml.ws.service.endpoint.address", BASE_URL + "/WSATAssertionTest/" + endpointAddress); |
213,115 | private static Object readCheckedCollectionFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object collection, boolean ss, boolean list) throws IOException {<NEW_LINE>if (graph) {<NEW_LINE>// update the actual reference.<NEW_LINE>((GraphInput) input).updateLast(collection, owner);<N... | fCheckedSortedSet_ss.set(collection, c); |
1,647,745 | public static void init() {<NEW_LINE>try {<NEW_LINE>MessageManager.getSingleton().registerMessageType(new BTBitfield(null, MESSAGE_VERSION_SUPPORTS_PADDING));<NEW_LINE>MessageManager.getSingleton().registerMessageType(new BTCancel(-1, -1, -1, MESSAGE_VERSION_SUPPORTS_PADDING));<NEW_LINE>MessageManager.getSingleton().re... | registerMessageType(new BTHaveNone(MESSAGE_VERSION_SUPPORTS_PADDING)); |
1,447,858 | private Query createQueryInternal(ConvertingParameterAccessor accessor, boolean isCountQuery) {<NEW_LINE>MongoQueryCreator creator = new MongoQueryCreator(tree, accessor, context, isCountQuery ? false : isGeoNearQuery);<NEW_LINE>Query query = creator.createQuery();<NEW_LINE>if (isCountQuery) {<NEW_LINE>return query;<NE... | withDynamicProjection(accessor).getReturnedType(); |
633,193 | private Mono<PagedResponse<PrivateLinkResourceInner>> listByClusterSinglePageAsync(String resourceGroupName, String clusterName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nul... | error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); |
1,631,155 | protected void updateCellHorizontalSelection(int delta, Runnable defaultAction) {<NEW_LINE>TableViewSpanSelectionModel <MASK><NEW_LINE>if (sm == null || sm.getSelectionMode() == SelectionMode.SINGLE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TableFocusModel fm = getFocusModel();<NEW_LINE>if (fm == null) {<NEW_LINE>return;... | sm = (TableViewSpanSelectionModel) getSelectionModel(); |
464,281 | final PutDestinationPolicyResult executePutDestinationPolicy(PutDestinationPolicyRequest putDestinationPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putDestinationPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutDestinationPolicy"); |
1,790,534 | protected Node createUndecoratedEditor() {<NEW_LINE>final CheckBox cbNull = new CheckBox();<NEW_LINE>final Node wrappedCb = ItemUtil.lockDecorator(cbNull, document, ItemUtil.DATABASE_RELATION_TOOLTIP);<NEW_LINE>final Label label = new Label(IMPLEMENTATION_TITLE);<NEW_LINE>final ChoiceBox<ImplementAs> cbImpl = new Choic... | = new HBox(label, cbImpl); |
1,823,018 | public void removeNode(Long nodeId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'nodeId' is set<NEW_LINE>if (nodeId == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/nodes... | throw new ApiException(400, "Missing the required parameter 'nodeId' when calling removeNode"); |
271,609 | /* (non-Javadoc)<NEW_LINE>* @see org.docx4j.openpackaging.parts.WordprocessingML.AltChunkInterface#addAltChunkOfTypeHTML(java.io.InputStream)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public AlternativeFormatInputPart addAltChunk(AltChunkType type, InputStream is, int index) throws Docx4JException {<NEW_LINE>AlternativeF... | setId(altChunkRel.getId()); |
1,424,212 | public void mapPartition(Iterable<Tuple2<Integer, Integer>> values, Collector<Tuple3<Integer, Integer, Integer>> out) throws Exception {<NEW_LINE>int numPartitions = getRuntimeContext().getNumberOfParallelSubtasks();<NEW_LINE>List<Tuple2<Integer, Integer>> itemCounts = new ArrayList<>();<NEW_LINE>for (Tuple2<Integer, I... | get(i), targetPartition)); |
1,317,854 | void deleteStreams(Transaction t, final Set<Long> streamIds) {<NEW_LINE>if (streamIds.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow> smRows = new HashSet<>();<NEW_LINE>Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, Hotspo... | (t).delete(shToDelete); |
1,850,771 | public static IRubyObject uniq(ThreadContext context, IRubyObject self, final Block block) {<NEW_LINE>final RubyHash hash = new RubyHash(context.runtime, 12, false);<NEW_LINE><MASK><NEW_LINE>if (block.isGiven()) {<NEW_LINE>callEach(context, each, self, Signature.OPTIONAL, new BlockCallback() {<NEW_LINE><NEW_LINE>public... | final CachingCallSite each = eachSite(context); |
1,118,638 | public static void main(String[] args) throws NumericException {<NEW_LINE>Rnd rnd = new Rnd();<NEW_LINE>generateStrings(rnd, auui, 16);<NEW_LINE>generateStrings(rnd, puui, 16);<NEW_LINE>generateStrings(rnd, atuuid, 16);<NEW_LINE>generateStrings(rnd, node_uid, 16);<NEW_LINE><MASK><NEW_LINE>generateStrings(rnd, buuid, 8)... | generateStrings(rnd, rpcm, 8); |
506,974 | protected void handleStMgrRegisterRequest(REQID rid, SocketChannel channel, CheckpointManager.RegisterStMgrRequest request) {<NEW_LINE>LOG.info(String.format("Got a StMgr register request from %s running on host:port %s", request.getStmgrId(), channel.socket().getRemoteSocketAddress()));<NEW_LINE>handlePhysicalPlan(req... | NOTOK).setMessage(errorMessage)); |
297,680 | public void propagateTtl(InstanceState state) {<NEW_LINE>var val = (isAND) ? state.getPortValue(2).and(state.getPortValue(3).and(state.getPortValue(4))) : state.getPortValue(2).or(state.getPortValue(3).or(state.getPortValue(4)));<NEW_LINE>state.setPort(5, inverted ? val.not() : val, 2);<NEW_LINE>val = (isAND) ? state.g... | state.getPortValue(11))); |
1,415,402 | public List<I_M_HU> packToHU(@NonNull final IHUContext huContext, @NonNull final HuId pickFromHUId, @NonNull final PackToInfo packToInfo, @NonNull final ProductId productId, @NonNull final Quantity qtyPicked, @NonNull final TableRecordReference documentRef, boolean checkIfAlreadyPacked) {<NEW_LINE>final I_M_HU <MASK><N... | pickFromHU = handlingUnitsBL.getById(pickFromHUId); |
1,749,569 | protected void init() {<NEW_LINE>TbSqlBlockingQueueParams tsLatestParams = TbSqlBlockingQueueParams.builder().logName("TS Latest").batchSize(tsLatestBatchSize).maxDelay(tsLatestMaxDelay).statsPrintIntervalMs(tsLatestStatsPrintIntervalMs).statsNamePrefix("ts.latest").<MASK><NEW_LINE>java.util.function.Function<TsKvLates... | batchSortEnabled(false).build(); |
504,108 | private Map<String, List<String>> buildELBtoASGMap(String region) {<NEW_LINE>String url = <MASK><NEW_LINE>LOGGER.info(String.format("Getting all ELBs associated with ASGs in region %s", region));<NEW_LINE>JsonNode jsonNode = null;<NEW_LINE>try {<NEW_LINE>jsonNode = eddaClient.getJsonNodeFromUrl(url);<NEW_LINE>} catch (... | eddaClient.getBaseUrl(region) + "/aws/autoScalingGroups;_expand:(autoScalingGroupName,loadBalancerNames)"; |
1,125,523 | protected void findEigenVectors(double[][] imat, double[][] evs, double[] lambda) {<NEW_LINE>final int size = imat.length;<NEW_LINE>Random rnd = random.getSingleThreadedRandom();<NEW_LINE>double[] tmp = new double[size];<NEW_LINE>FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("Learning projections", tdim, L... | multiply(imat, cur, tmp); |
1,493,600 | public com.amazonaws.services.codecommit.model.CommentNotCreatedByCallerException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.CommentNotCreatedByCallerException commentNotCreatedByCallerException = new com.amazonaws.services.<MASK><NEW_LINE>... | codecommit.model.CommentNotCreatedByCallerException(null); |
1,417,887 | private void generate128RoundKeys(final int[] pWork) {<NEW_LINE>for (int i = 0; i < theRounds; ++i) {<NEW_LINE>final int myDelta = rol32(DELTA[i & MASK128], i);<NEW_LINE>int j = 0;<NEW_LINE>pWork[j] = rol32(pWork[j++] + myDelta, ROT1);<NEW_LINE>pWork[j] = rol32(pWork[j] + rol32(myDelta, j++), ROT3);<NEW_LINE>pWork[j] =... | [KEY3] = pWork[KEY1]; |
1,598,390 | public void send(final int iCode, final String iReason, final String iContentType, final Object iContent, final String iHeaders) throws IOException {<NEW_LINE>if (isSendStarted()) {<NEW_LINE>// AVOID TO SEND RESPONSE TWICE<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setSendStarted(true);<NEW_LINE>if (getCallbackFunction() != ... | getOut().write(binaryContent); |
1,217,411 | public void put(byte[] key, byte[] val) {<NEW_LINE>resetDbLock.readLock().lock();<NEW_LINE>try {<NEW_LINE>if (logger.isTraceEnabled())<NEW_LINE>logger.trace("~> RocksDbDataSource.put(): " + name + ", key: " + toHexString(key) + ", " + (val == null ? "null" : val.length));<NEW_LINE>if (val != null) {<NEW_LINE>db.put(key... | ? "null" : val.length)); |
1,678,613 | public static UploadDetails quadsPutPostTxn(HttpAction action, Function<HttpAction, DatasetGraph> decideDataset, boolean replaceOperation) {<NEW_LINE>UploadDetails details = null;<NEW_LINE>action.beginWrite();<NEW_LINE>try {<NEW_LINE>DatasetGraph dsg = decideDataset.apply(action);<NEW_LINE>if (replaceOperation)<NEW_LIN... | errorBadRequest(ex.getMessage()); |
59,942 | private static void vectorAddThreads(int[] array1, int[] array2, int[] result, int threads, Thread[] th) throws InterruptedException {<NEW_LINE>int balk = array1.length / threads;<NEW_LINE>for (int i = 0; i < threads; i++) {<NEW_LINE>final int current = i;<NEW_LINE>int lowBound = current * balk;<NEW_LINE>int upperBound... | th[i].start(); |
618,513 | public static HighwaySection findBestProposals(List<HighwaySection> H, List<HighwaySection> P, int n) {<NEW_LINE>// graph stores the shortest path distances between all pairs of vertices.<NEW_LINE>List<List<Integer>> graph = new ArrayList<>(n);<NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>graph.add(new ArrayList<>(C... | h.x, h.distance); |
606,257 | public void marshall(Hdr10Metadata hdr10Metadata, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (hdr10Metadata == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(h... | hdr10Metadata.getBluePrimaryX(), BLUEPRIMARYX_BINDING); |
1,660,523 | public void run() {<NEW_LINE>final ODocument jsonConfig = new ODocument().fromJSON((String) cfg.field("jsonConfig"), "noMap");<NEW_LINE>int logLevel = cfg.field("logLevel");<NEW_LINE>final String configName = cfg.field("configName");<NEW_LINE>final String outDBName = cfg.field("outDBName");<NEW_LINE>// fetching the ser... | error(this, "Error during execution of job", e); |
1,595,414 | public void doXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject(NAME);<NEW_LINE>builder.field(QUERY_FIELD.getPreferredName(), value);<NEW_LINE>builder.startArray(FIELDS_FIELD.getPreferredName());<NEW_LINE>for (Map.Entry<String, Float> fieldEntry : this.fieldsBoosts.entry... | GENERATE_SYNONYMS_PHRASE_QUERY.getPreferredName(), autoGenerateSynonymsPhraseQuery); |
1,719,247 | public RFuture<Boolean> containsAllAsync(Collection<?> c) {<NEW_LINE>List<Object> args = new ArrayList<Object>(c.size() + 2);<NEW_LINE>args.add(System.currentTimeMillis());<NEW_LINE>args.add(encodeMapKey(key));<NEW_LINE>encodeMapValues(args, c);<NEW_LINE>return commandExecutor.evalReadAsync(getRawName(), codec, RedisCo... | ), args.toArray()); |
1,233,168 | void lookups(Stream<RPCServer> servers) {<NEW_LINE>dhtStarted = true;<NEW_LINE>servers.forEach(srv -> {<NEW_LINE>DHT d = srv.getDHT();<NEW_LINE>PeerLookupTask task = new PeerLookupTask(srv, d.getNode(), hash);<NEW_LINE>synchronized (TorrentFetcher.this) {<NEW_LINE>activeLookups.computeIfAbsent(srv, unused -> new HashSe... | getTaskManager().addTask(task); |
684,994 | public List<AppDeploymentRequest> createTaskDeploymentRequests(String taskName, String dslText) {<NEW_LINE>List<AppDeploymentRequest> appDeploymentRequests = new ArrayList<>();<NEW_LINE>TaskParser taskParser = new TaskParser(taskName, dslText, true, true);<NEW_LINE>TaskNode taskNode = taskParser.parse();<NEW_LINE>if (t... | TaskNode subTaskNode = subTaskParser.parse(); |
1,312,086 | public static void performLikeActionRemote(final ReaderPost post, final boolean isAskingToLike, final long wpComUserId, final ActionListener actionListener) {<NEW_LINE>final String actionName = isAskingToLike ? "like" : "unlike";<NEW_LINE>String path = "sites/" + post.blogId + "/posts/" + post.postId + "/likes/";<NEW_L... | error = VolleyUtils.errStringFromVolleyError(volleyError); |
1,426,565 | public static void main(String[] args) {<NEW_LINE>serverStartTime = System.currentTimeMillis();<NEW_LINE>HealthSupport health = HealthSupport.builder().addLiveness(HealthChecks.healthChecks()).addReadiness(() -> HealthCheckResponse.named("exampleHealthCheck").up().withData("time", System.currentTimeMillis()).build()).a... | ws = WebServer.create(routing); |
355,878 | public void perform(TimerEvent event) {<NEW_LINE>// it has been a minute - turn off logging if it is enabled as this can significantly<NEW_LINE>// slow things down<NEW_LINE>if (System.getProperty(SystemProperties.SYSPROP_LOGGING_DISABLE_STOP_ON_SLOW_CLOSE, "0").equals("0")) {<NEW_LINE>Logger.setClosingTakingTooLong();<... | ).shutdown(PlatformManager.SD_SHUTDOWN); |
160,133 | final AssociateExternalConnectionResult executeAssociateExternalConnection(AssociateExternalConnectionRequest associateExternalConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateExternalConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | (super.beforeMarshalling(associateExternalConnectionRequest)); |
747,784 | public void stopSyncAndJournal(RpcContext rpcContext, AlluxioURI syncPoint) throws InvalidPathException {<NEW_LINE>if (!isSyncPoint(syncPoint)) {<NEW_LINE>throw new InvalidPathException(String.format("%s is not a sync point", syncPoint));<NEW_LINE>}<NEW_LINE>try (LockResource r = new LockResource(mLock)) {<NEW_LINE>Mou... | "stop syncPoint {}", syncPoint.getPath()); |
708,375 | private static void fdctRow(int[] block, int off) {<NEW_LINE>int z0 = block[off + 0] - block[off + 7];<NEW_LINE>int z1 = block[off + 1] - block[off + 6];<NEW_LINE>int z2 = block[off + 2] - block[off + 5];<NEW_LINE>int z3 = block[off + 3] - block[off + 4];<NEW_LINE>int z4 = block[off + 0<MASK><NEW_LINE>int z5 = block[of... | ] + block[off + 7]; |
431,122 | final UpdateSceneResult executeUpdateScene(UpdateSceneRequest updateSceneRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSceneRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | (super.beforeMarshalling(updateSceneRequest)); |
88,928 | public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>EJDB2 db = new EJDB2Builder("example.db").truncate().open();<NEW_LINE>long id = db.put("parrots", "{\"name\":\"Bianca\", \"age\": 4}");<NEW_LINE>System.<MASK><NEW_LINE>id = db.put("parrots", "{\"name\":\"Darko\", \"age\": 8}");<NEW_LINE>System.out.println... | out.println("Bianca record: " + id); |
243,627 | private static boolean broadcastReceiverMatchesIntent(Context broadcastContext, Wrapper wrapper, Intent intent, String receiverPermission) {<NEW_LINE>String intentClass = intent.getComponent() != null ? intent.getComponent().getClassName() : null;<NEW_LINE>boolean matchesIntentClass = intentClass != null && intentClass... | equals(receiverPermission, wrapper.broadcastPermission); |
424,200 | private void deserializePrimitive(Object parent, Map<String, Object> state, String key, Field f, Class ftype) throws IllegalAccessException {<NEW_LINE>Object value = state.get(key);<NEW_LINE>if (ftype == boolean.class)<NEW_LINE>f.set(parent, value);<NEW_LINE>else if (ftype == byte.class)<NEW_LINE>f.set(parent, ((Number... | ) value).floatValue()); |
53,889 | private I_GO_DeliveryOrder toDeliveryOrderPO(@NonNull final DeliveryOrder order) {<NEW_LINE>I_GO_DeliveryOrder orderPO = null;<NEW_LINE>if (order.getId() != null) {<NEW_LINE>orderPO = InterfaceWrapperHelper.load(order.getId(), I_GO_DeliveryOrder.class);<NEW_LINE>}<NEW_LINE>final OrderId orderId = order.getOrderId();<NE... | orderStatus.getCode() : null); |
1,366,225 | public <T extends PO> Iterator<T> iterate() throws DBException {<NEW_LINE>String[] keys = table.getKeyColumns();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < keys.length; i++) {<NEW_LINE>if (i > 0)<NEW_LINE>sqlBuffer.append(", ");<NEW_LINE>sqlBuffer.append(keys[i]);<NEW_LINE>}<NEW_LINE>sqlBuffer.append(" FROM ").append... | StringBuffer sqlBuffer = new StringBuffer(" SELECT "); |
910,916 | public void listHooksWithOptions() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationAsyncClient.listHooks#ListHookOptions<NEW_LINE>ListHookOptions options = new ListHookOptions().setSkip(100).setMaxPageSize(20);<NEW_LINE>int[] pageCount = new int[1];<NEW_LINE>metricsAdvisorAdm... | "Page: %d%n", pageCount[0]++); |
933,252 | public static QueryTaskDetailListResponse unmarshall(QueryTaskDetailListResponse queryTaskDetailListResponse, UnmarshallerContext context) {<NEW_LINE>queryTaskDetailListResponse.setRequestId(context.stringValue("QueryTaskDetailListResponse.RequestId"));<NEW_LINE>queryTaskDetailListResponse.setTotalItemNum(context.integ... | ("QueryTaskDetailListResponse.Data[" + i + "].TaskTypeDescription")); |
521,148 | public boolean apply(Game game, Ability source) {<NEW_LINE>int discardCount = source.isControlledBy(game.getMonarchId()) ? 2 : 1;<NEW_LINE>String message = "Discard " + CardUtil.numberToText(discardCount, "a") + " card" + (discardCount > 1 ? 's' : "") + "? If not you lose " <MASK><NEW_LINE>Map<UUID, Cards> discardMap =... | + (discardCount * 3) + " life"; |
201,046 | protected void renderNodeLabel(Node node, ICircularSeries<?> series, GC gc, IAxis xAxis, IAxis yAxis) {<NEW_LINE>// children drawn first as parent overrides it's section of drawing<NEW_LINE>if (!node.getChildren().isEmpty()) {<NEW_LINE>for (Node childNode : node.getChildren()) {<NEW_LINE>renderNodeLabel(childNode, seri... | .createFont(getDisplay())); |
890,487 | public void marshall(AdvancedFieldSelector advancedFieldSelector, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (advancedFieldSelector == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(advancedFieldSelector... | advancedFieldSelector.getNotEndsWith(), NOTENDSWITH_BINDING); |
748,442 | private int delete(String sql, Delete delete, String index, int maxRequestsPerBulk) throws SQLException {<NEW_LINE>String type = delete.getTable().getName().toString();<NEW_LINE>String select = "SELECT _id FROM " + type;<NEW_LINE>if (delete.getWhere().isPresent()) {<NEW_LINE>select += sql.substring(sql.toLowerCase().in... | this.execute(requests, maxRequestsPerBulk); |
1,342,557 | private ScorePartwise.Part createScorePart(LogicalPart logicalPart) {<NEW_LINE>logger.debug("Creating ScorePartwise.Part for {}", logicalPart);<NEW_LINE>// Scorepart in partList<NEW_LINE>ScorePart pmScorePart = factory.createScorePart();<NEW_LINE>pmScorePart.setId(logicalPart.getPid());<NEW_LINE>PartName partName = fac... | (MidiAbstractions.getProgramName(midiProgram)); |
1,250,509 | private static BakedQuad putQuad(Transformation transform, Direction side, TextureAtlasSprite sprite, int color, int tint, float x1, float y1, float x2, float y2, float z, float u1, float v1, float u2, float v2, int luminosity) {<NEW_LINE>BakedQuadBuilder builder = new BakedQuadBuilder(sprite);<NEW_LINE>builder.setQuad... | builder.setApplyDiffuseLighting(luminosity == 0); |
398,171 | private void flushStripe(FlushReason flushReason) throws IOException {<NEW_LINE>List<OrcDataOutput> outputData = new ArrayList<>();<NEW_LINE>long stripeStartOffset = orcDataSink.size();<NEW_LINE>// add header to first stripe (this is not required but nice to have)<NEW_LINE>if (closedStripes.isEmpty()) {<NEW_LINE>output... | .add(createDataOutput(MAGIC)); |
1,089,783 | private boolean scanImageSection(ImageSection imageSection) {<NEW_LINE>long imageStartAddress = imageSection.getBaseAddress().getAddress();<NEW_LINE>long imageEndAddress = imageStartAddress + imageSection.getSize() - 1;<NEW_LINE>if (findAtt.startAddress < imageStartAddress && findAtt.endAddress < imageStartAddress) {<N... | imageStartAddress, findAtt.endAddress, imageSection); |
688,984 | public static void main(String[] args) throws InterruptedException {<NEW_LINE>// Create Siddhi Manager<NEW_LINE>SiddhiManager siddhiManager = new SiddhiManager();<NEW_LINE>// Siddhi Application<NEW_LINE>String siddhiApp = "" + "define stream StockStream (symbol string, price float,volume int);" + "" + "partition with (... | { "IBM", 90f, 100 }); |
1,553,686 | // Convert the count object into a metrics object so save in a report<NEW_LINE>private MetricsFile<?, Byte> makeMetrics(final Counts result) {<NEW_LINE>// Built the Histograms out of the long[]s<NEW_LINE>final Histogram<Byte> qHisto = new <MASK><NEW_LINE>final Histogram<Byte> oqHisto = new Histogram<>("QUALITY", "COUNT... | Histogram<>("QUALITY", "COUNT_OF_Q"); |
34,235 | protected TreeBuilder createTreeBuilder(Properties properties, Feature... features) {<NEW_LINE>Class<?> clazz = load(TreeBuilder.class, properties);<NEW_LINE>if (clazz == null) {<NEW_LINE>return createDefaultTreeBuilder(features);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (Builder.class.isAssignableFrom(clazz)) {<NEW_LINE>... | newInstance((Object) features)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.