idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
57,972 | protected void populateBuffer() {<NEW_LINE>if (hasFinished) {<NEW_LINE>Utils.sleep(10);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// initial request<NEW_LINE>if (scrollId == null) {<NEW_LINE>SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();<NEW_LINE>searchSourceBuilder.query(QueryBuilders.matchAllQuery())... | (TimeValue.timeValueMinutes(5L)); |
1,560,490 | private void updatePorts(Instance instance) {<NEW_LINE>final var nrBits = instance.getAttributeValue(StdAttr.WIDTH).getWidth();<NEW_LINE>var nrOfPorts = nrBits;<NEW_LINE>final var dir = instance.getAttributeValue(PioAttributes.PIO_DIRECTION);<NEW_LINE>final var hasIrq = hasIrqPin(instance.getAttributeSet());<NEW_LINE>i... | (S.getter("SocPioResetInput")); |
309,747 | public Map<String, Object> measureUser(Recommender recommender, TestUser testUser) {<NEW_LINE>ItemRecommender irec = recommender.getItemRecommender();<NEW_LINE>if (irec == null) {<NEW_LINE>logger.debug("recommender cannot produce recommendations");<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>LongSet can... | ()).getValues()); |
728,745 | private <T> void bindFinder(Class<T> iface) {<NEW_LINE>if (!isDynamicFinderValid(iface)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InvocationHandler finderInvoker = new InvocationHandler() {<NEW_LINE><NEW_LINE>@Inject<NEW_LINE>JpaFinderProxy finderProxy;<NEW_LINE><NEW_LINE>public Object invoke(final Object thisObject, fin... | ? new Object[0] : args; |
1,775,208 | public void writeSynchronized(final SynchronizedStatement statement) {<NEW_LINE>controller.getAcg().onLineNumber(statement, "visitSynchronizedStatement");<NEW_LINE>writeStatementLabel(statement);<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>CompileStack compileStack = controller.getCompileStack()... | writeExceptionTable(fb, catchAll, null); |
338,168 | protected void logLocations(TraceComponent logger) {<NEW_LINE>String useWARClassesPath = getWARClassesPath();<NEW_LINE>if (useWARClassesPath == null) {<NEW_LINE>useWARClassesPath = getImmediatePath() + "/" + "WEB-INF/classes";<NEW_LINE>}<NEW_LINE>Tr.debug(logger, "Classes path [ " + useWARClassesPath + " ]");<NEW_LINE>... | = getImmediatePath() + "/" + "WEB-INF/lib"; |
490,504 | public static void deviceAlarmUpdateLogic(IDeviceAssignment assignment, IDeviceAlarmCreateRequest request, DeviceAlarm target) throws SiteWhereException {<NEW_LINE>if (assignment != null) {<NEW_LINE>target.setDeviceId(assignment.getDeviceId());<NEW_LINE>target.setDeviceAssignmentId(assignment.getId());<NEW_LINE>target.... | .getMetadata().clear(); |
1,446,852 | public GetDiskSnapshotsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDiskSnapshotsResult getDiskSnapshotsResult = new GetDiskSnapshotsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | int originalDepth = context.getCurrentDepth(); |
1,491,188 | public BindingResult<T> bind(ArgumentConversionContext<T> context, HttpRequest<?> source) {<NEW_LINE>Optional<String> bodyComponent = context.getAnnotationMetadata().stringValue(Body.class);<NEW_LINE>if (bodyComponent.isPresent()) {<NEW_LINE>Optional<ConvertibleValues> body = source.getBody(ConvertibleValues.class);<NE... | values.get(component, context); |
1,017,811 | public ImmutableMarketData marketData(RatesCurveGroupDefinition group, RatesProvider inputProvider, ReferenceData refData) {<NEW_LINE>// Retrieve the set of required indices and the list of required currencies<NEW_LINE>Set<Index> indicesRequired = new HashSet<>();<NEW_LINE>List<Currency> ccyRequired = new ArrayList<>()... | fxId = FxRateId.of(ccyPair); |
961,044 | public void marshall(MetricSetSummary metricSetSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (metricSetSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(metricSetSummary.getMetricSetArn(), ... | metricSetSummary.getCreationTime(), CREATIONTIME_BINDING); |
220,039 | protected RTrees createClassifier() {<NEW_LINE>RTrees trees = RTrees.create();<NEW_LINE>ParameterList params = getParameterList();<NEW_LINE>if (params != null) {<NEW_LINE>int maxDepth = params.getIntParameterValue("maxDepth");<NEW_LINE>int <MASK><NEW_LINE>boolean use1SE = params.getBooleanParameterValue("use1SE");<NEW_... | minSamples = params.getIntParameterValue("minSamples"); |
1,233,938 | protected void generateKeyStore(File keyStore, String keyStoreAlias, String keyStorePassword, String keyPassword, String distinguishedName) throws MojoExecutionException, MojoFailureException {<NEW_LINE>getLog().info("Generating keystore in: " + keyStore);<NEW_LINE>try {<NEW_LINE>// generated folder if it does not exis... | throw new MojoExecutionException("There was an exception while generating keystore.", ex); |
1,084,689 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>buttonGroup1 = new javax.swing.ButtonGroup();<NEW_LINE>panelLaF = new javax.swing.JPanel();<NEW_LINE>checkMaximizeNativeLaF... | , 10, 10, 10)); |
89,883 | // end main()<NEW_LINE>public boolean trainClassifier(String path) throws IOException {<NEW_LINE>// build dataset of training data featurized<NEW_LINE>Pair<GeneralDataset<String, String>, List<String[]>> dataInfo = readAndReturnTrainingExamples(path);<NEW_LINE>GeneralDataset<String, String<MASK><NEW_LINE>List<String[]>... | > train = dataInfo.first(); |
1,552,011 | private void readTargetInfo(int localTargetType, byte[] classFileBytes, IConstantPool constantPool, int localOffset) throws ClassFormatException {<NEW_LINE>switch(localTargetType) {<NEW_LINE>case IExtendedAnnotationConstants.CLASS_TYPE_PARAMETER:<NEW_LINE>case IExtendedAnnotationConstants.METHOD_TYPE_PARAMETER:<NEW_LIN... | classFileBytes, this.readOffset, localOffset); |
143,577 | final GetRepositoryTriggersResult executeGetRepositoryTriggers(GetRepositoryTriggersRequest getRepositoryTriggersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRepositoryTriggersRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
150,158 | public Column unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Column column = new Column();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE>if ... | JsonToken token = context.getCurrentToken(); |
622,015 | void build(SerializableCallGraph scg, DefaultCallGraph cg) {<NEW_LINE>for (SerializableCallGraph.Node serializableNode : scg.nodes) {<NEW_LINE>nodes.add(new DefaultCallGraphNode(cg, serializableNode.method));<NEW_LINE>}<NEW_LINE>for (SerializableCallGraph.CallSite scs : scg.callSites) {<NEW_LINE>DefaultCallSite callSit... | node = nodes.get(index); |
811,902 | private T deserialize(final SecurityContext securityContext, Class<T> type, final PropertyMap attributes) throws FrameworkException {<NEW_LINE>final App app = StructrApp.getInstance(securityContext);<NEW_LINE>if (attributes != null) {<NEW_LINE>final List<T> result = new LinkedList<>();<NEW_LINE>// Check if properties c... | setProperties(securityContext, relatedNode, attributes); |
34,139 | protected SyndEntry createSyndEntry(final Item item, final boolean preserveWireItem) {<NEW_LINE>final SyndEntry syndEntry = <MASK><NEW_LINE>// adding native feed author to DC creators list<NEW_LINE>final String author = item.getAuthor();<NEW_LINE>if (author != null) {<NEW_LINE>final List<String> creators = ((DCModule) ... | super.createSyndEntry(item, preserveWireItem); |
1,650,598 | final DeleteGroupResult executeDeleteGroup(DeleteGroupRequest deleteGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteGroup"); |
1,054,547 | private void rebuildMenu() {<NEW_LINE>List<TrayMenuItem> menu = new ArrayList<>();<NEW_LINE>menu.add(new ActionItem(resourceBundle.getString("traymenu.showMainWindow"), this::showMainWindow));<NEW_LINE>menu.add(new ActionItem(resourceBundle.getString("traymenu.showPreferencesWindow"), this::showPreferencesWindow));<NEW... | "traymenu.quitApplication"), this::quitApplication)); |
962,752 | private String prepare() {<NEW_LINE>String sqlForExecute = sourceSql;<NEW_LINE>if (SqlUtil.isGlobal(indexResiding)) {<NEW_LINE>// generate CREATE INDEX for executing on MySQL<NEW_LINE>SqlPrettyWriter writer = new SqlPrettyWriter(MysqlSqlDialect.DEFAULT);<NEW_LINE>writer.setAlwaysUseParentheses(true);<NEW_LINE>writer.se... | SQLCreateIndexStatement) statementList.get(0); |
108,658 | public UpdateNetworkProfileResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateNetworkProfileResult updateNetworkProfileResult = new UpdateNetworkProfileResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | ().unmarshall(context)); |
375,659 | private void restoreSession(int tabIndex) {<NEW_LINE>String session_str = prefs.getIdeSession();<NEW_LINE>if (session_str == null && loadScripts == null && macOpenFiles == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<File> filesToLoad = new ArrayList<File>();<NEW_LINE>if (macOpenFiles != null) {<NEW_LINE>for (File... | filenames = session_str.split(";"); |
608,595 | public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {<NEW_LINE>com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.<MASK><NEW_LINE>while (true) {<NEW_LINE>int tag = input.... | newBuilder(this.getUnknownFields()); |
1,203,103 | LoadBalancerTransformation computeListenerTransformation(LoadBalancerListener.Listener listener, Ip loadBalancerIp, Set<String> enabledTargetZones, Region region, Warnings warnings) {<NEW_LINE>try {<NEW_LINE>HeaderSpace matchHeaderSpace = listener.getMatchingHeaderSpace();<NEW_LINE>Optional<DefaultAction> forwardingAct... | new MatchHeaderSpace(matchHeaderSpace), transformationStep); |
618,216 | protected void addPropertyFormatter(ActionEvent evt) {<NEW_LINE>TreePath tpath = null;<NEW_LINE>Object path = null;<NEW_LINE>tpath = getTreePath(evt);<NEW_LINE>int parentIndex = -1;<NEW_LINE>if (tpath != null) {<NEW_LINE>for (parentIndex = tpath.getPathCount() - 1; parentIndex >= 0; parentIndex--) {<NEW_LINE>Object p =... | = new Object[parentIndex + 1]; |
1,765,556 | private HttpRequest.Builder testJsonFormDataRequestBuilder(String param, String param2) throws ApiException {<NEW_LINE>// verify the required parameter 'param' is set<NEW_LINE>if (param == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData");<NEW_LINE>}<NE... | .create(memberVarBaseUri + localVarPath)); |
860,725 | private void atForStmnt(Stmnt st) throws CompileError {<NEW_LINE>List<Integer> prevBreakList = breakList;<NEW_LINE>List<Integer> prevContList = continueList;<NEW_LINE>breakList = new ArrayList<Integer>();<NEW_LINE>continueList = new ArrayList<Integer>();<NEW_LINE>Stmnt init = (Stmnt) st.head();<NEW_LINE>ASTList p = st.... | (Stmnt) p.tail(); |
1,101,956 | public boolean levelCheckSubnodes(int iter, LevelNode[] sub) {<NEW_LINE>if (this.levelChecked >= iter)<NEW_LINE>return this.levelCorrect;<NEW_LINE>this.levelChecked = iter;<NEW_LINE>for (int i = 0; i < sub.length; i++) {<NEW_LINE>if (// && (sub[i].getKind() != InstanceKind)<NEW_LINE>(sub[i].getKind() != ModuleKind) && ... | [i].getLevelParams()); |
499,300 | public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>super.onCreateOptionsMenu(menu);<NEW_LINE>menu.add(0, MENU_DELETE, <MASK><NEW_LINE>SubMenu enqueueMenu = menu.addSubMenu(0, MENU_ENQUEUE, 30, R.string.enqueue_current);<NEW_LINE>SubMenu moreMenu = menu.addSubMenu(0, MENU_MORE, 30, R.string.more_from_current);<NEW... | 30, R.string.delete); |
16,796 | private void initializeButtons() {<NEW_LINE>SVGGlyph full = new SVGGlyph(0, "FULLSCREEN", "M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z", Color.WHITE);<NEW_LINE>full.setSize(16, 16);<NEW_LINE>SVGGlyph minus = new SVGGlyph(0, <MA... | "MINUS", "M804.571 420.571v109.714q0 22.857-16 38.857t-38.857 16h-694.857q-22.857 0-38.857-16t-16-38.857v-109.714q0-22.857 16-38.857t38.857-16h694.857q22.857 0 38.857 16t16 38.857z", Color.WHITE); |
1,488,557 | private void checkSourceDownloads() {<NEW_LINE>MavenSettings.DownloadStrategy ds = MavenSettings.getDefault().getSourceDownloadStrategy();<NEW_LINE>if (ds.equals(MavenSettings.DownloadStrategy.NEVER)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>NbMavenProject watcher = proj.getLookup().lookup(NbMavenProject.class);<NEW_LINE... | proj, NbMavenProject.class, false); |
1,566,247 | boolean moveRight(int chars, boolean fromBeginning) {<NEW_LINE>if (fromBeginning) {<NEW_LINE>firstColumnToDisplay = 0;<NEW_LINE>offsetInLine = 0;<NEW_LINE>column = 0;<NEW_LINE>chars = Math.min(chars, length(getLine(line)));<NEW_LINE>}<NEW_LINE>boolean ret = true;<NEW_LINE>while (--chars >= 0) {<NEW_LINE>int len <MASK><... | = length(getLine(line)); |
786,201 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,451,748 | public void layout() {<NEW_LINE>Drawable bg = style.background;<NEW_LINE>BitmapFont font = style.font;<NEW_LINE>if (bg != null) {<NEW_LINE>prefHeight = Math.max(bg.getTopHeight() + bg.getBottomHeight() + font.getCapHeight() - font.getDescent() * 2, bg.getMinHeight());<NEW_LINE>} else<NEW_LINE>prefHeight = font.getCapHe... | ), bg.getMinWidth()); |
1,110,364 | public com.amazonaws.services.databasemigrationservice.model.S3AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.databasemigrationservice.model.S3AccessDeniedException s3AccessDeniedException = new com.amazonaws.services.<MASK><NEW_LINE>int o... | databasemigrationservice.model.S3AccessDeniedException(null); |
1,783,280 | public void open(JMXServiceURL url) throws JmxException {<NEW_LINE>// in case a connection is already open<NEW_LINE>this.close();<NEW_LINE>try {<NEW_LINE>if (LOG.isLoggable(Level.INFO)) {<NEW_LINE>LOG.info("Establishing a JMX conection to URL: " + url);<NEW_LINE>}<NEW_LINE>this.jmxConnector = JMXConnectorFactory.connec... | info("Connection established! ID: " + this.connectionId); |
301,227 | void exportAuthFile(ServicePrincipalImpl servicePrincipal) {<NEW_LINE>if (authFile == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AzureEnvironment environment = AzureEnvironment.AZURE;<NEW_LINE>StringBuilder builder = new StringBuilder("{\n");<NEW_LINE>builder.append(" ").append(String.format("\"clientId\": \"%s\",",... | assignedSubscription)).append("\n"); |
1,576,347 | public Job updateWorkspaceFolders(Collection<IPath> addedRootPaths, Collection<IPath> removedRootPaths) {<NEW_LINE>JavaLanguageServerPlugin.sendStatus(ServiceStatus.Message, "Updating workspace folders: Adding " + addedRootPaths.size() + " folder(s), removing " + removedRootPaths.size() + " folders.");<NEW_LINE>Job[] r... | getName() + "' from workspace.", e); |
1,654,002 | public int compareTo(remove_aggregate_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetMid()).<MASK><NEW_LINE>if (lastCompari... | compareTo(other.isSetMid()); |
283,617 | public UTTimerEvent addPeriodicEvent(long periodic_millis, final UTTimerEventPerformer ext_performer) {<NEW_LINE>if (destroyed) {<NEW_LINE>throw (new RuntimeException("Timer has been destroyed"));<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>TimerEventPerformer performer = new TimerEventPerformer() {<NEW_LINE><NEW_LINE>@Overrid... | final timerEvent res = new timerEvent(); |
1,066,998 | private void safeCopyExternalAssetsToPluginAssetRoot(final String pluginAssetsRoot) {<NEW_LINE>Path externalAssetsPath = Paths.get(systemEnvironment.get(SystemEnvironment.GO_ANALYTICS_PLUGIN_EXTERNAL_ASSETS));<NEW_LINE>if (!Files.exists(externalAssetsPath) || !Files.isDirectory(externalAssetsPath)) {<NEW_LINE>LOGGER.de... | error("Unable to copy analytics plugin external asset ({}) to plugin assets root.", path, e); |
1,444,188 | public static void gameRenderTick() {<NEW_LINE>Minecraft mc = Minecraft.getInstance();<NEW_LINE>BlockPos pos = mc.player.blockPosition();<NEW_LINE>if (!AllBlocks.TURNTABLE.has(mc.level.getBlockState(pos)))<NEW_LINE>return;<NEW_LINE>if (!mc.player.isOnGround())<NEW_LINE>return;<NEW_LINE>if (mc.isPaused())<NEW_LINE>retur... | origin = VecHelper.getCenterOf(pos); |
1,494,259 | public static void main(String[] args) {<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph = new EdgeWeightedDigraph(9);<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge<MASK><NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(0, 2, 2));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(1, 3, 3));<NEW_LINE>e... | (0, 1, 1)); |
413,985 | public Component createComponent() {<NEW_LINE>JScrollPane customizerScrollPane = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);<NEW_LINE>customizerScrollPane.setBorder(BorderFactory.createEmptyBorder());<NEW_LINE>customizerScrollPane.setViewportBorder(BorderFactor... | ppFactories[selectedPPFactoryIndex].getHint(); |
204,091 | private String substituteVars(String expr) {<NEW_LINE>if (expr == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Matcher match = varPat.matcher("");<NEW_LINE>String eval = expr;<NEW_LINE>int MAX_SUBST = 20;<NEW_LINE>for (int s = 0; s < MAX_SUBST; s++) {<NEW_LINE>match.reset(eval);<NEW_LINE>if (!match.find()) {<NEW_L... | var.length() - 1); |
1,066,183 | final GetCloudFormationStackRecordsResult executeGetCloudFormationStackRecords(GetCloudFormationStackRecordsRequest getCloudFormationStackRecordsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCloudFormationStackRecordsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
88,456 | public void execute() throws Exception {<NEW_LINE>File quickstartTmpDir = new File(_dataDir.getAbsolutePath());<NEW_LINE>File dataDir = new File(quickstartTmpDir, "rawdata");<NEW_LINE>if (!dataDir.mkdirs()) {<NEW_LINE>printStatus(Quickstart.Color.YELLOW, "***** Bootstrapping data from existing directory *****");<NEW_LI... | Quickstart.Color.CYAN, "***** Starting Zookeeper, controller, broker and server *****"); |
1,518,822 | public void started(Container moduleContainer) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceDebug("started");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>WebAppConfiguration webConfig = (WebAppConfiguration) moduleContainer.adapt(WebAppConfig.class);<NEW_LINE>String name = webConfig.getModuleName();<N... | c_logger.traceExit(null, "moduleStarted"); |
272,942 | public static Vector<Byte> listCodeTypes(boolean showCursor) {<NEW_LINE>Vector<Byte> v = new Vector<Byte>();<NEW_LINE>v.add(new Byte(DT_INT));<NEW_LINE>v.add(new Byte(DT_LONG));<NEW_LINE>v.add(new Byte(DT_SHORT));<NEW_LINE>v.add(new Byte(DT_BIGINT));<NEW_LINE>v.add(new Byte(DT_FLOAT));<NEW_LINE>v.add(new Byte(DT_DOUBLE... | add(new Byte(DT_AUTOINCREMENT)); |
438,767 | public static void horizontal(Kernel1D_S32 kernel, InterleavedU8 src, InterleavedI8 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final byte[] dataDst = dst.data;<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int offsetL = kernel.getOffset();<NEW_LINE>final int offsetR = kernelWidth - o... | + (width - offsetR) * numBands; |
1,052,069 | private void convertChunkSourcesToModules() {<NEW_LINE>for (JSChunk chunk : compiler.getModuleGraph().getAllChunks()) {<NEW_LINE>if (chunk.getInputs().isEmpty()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>CompilerInput firstInput = null;<NEW_LINE>for (CompilerInput input : chunk.getInputs()) {<NEW_LINE>Node astRoot = inp... | firstInputAstRoot = firstInput.getAstRoot(compiler); |
1,747,432 | public void marshall(InstanceSummary instanceSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (instanceSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(instanceSummary.getId(), ID_BINDING);<N... | instanceSummary.getInstanceAlias(), INSTANCEALIAS_BINDING); |
97,837 | final PutResolverQueryLogConfigPolicyResult executePutResolverQueryLogConfigPolicy(PutResolverQueryLogConfigPolicyRequest putResolverQueryLogConfigPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putResolverQueryLogConfigPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
380,558 | synchronized void keepAlive() {<NEW_LINE>if (!ftpClient.isConnected()) {<NEW_LINE>LOGGER.log(Level.FINE, "Ending keep-alive (NOOP) for {0}, not connected", configuration.getHost());<NEW_LINE>keepAliveTask.cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>LOGGER.log(Level.FINE, <MASK><NEW_LINE>ftpClient.noop... | "Keep-alive (NOOP) for {0}", configuration.getHost()); |
1,281,233 | public static MessageDestination createMessageDestination(String name, MessageDestination.Type type, File resourceDir, String baseName) throws ConfigurationException {<NEW_LINE>SunMessageDestination msgDest;<NEW_LINE>if (!name.startsWith(JMS_PREFIX)) {<NEW_LINE>name = JMS_PREFIX + name;<NEW_LINE>}<NEW_LINE>DuplicateAOF... | File(resourceDir, baseName + ".xml"); |
880,838 | final ListGraphqlApisResult executeListGraphqlApis(ListGraphqlApisRequest listGraphqlApisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGraphqlApisRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
629,607 | private static List<WindowHandler> createWindowHandlers() {<NEW_LINE>List<WindowHandler> windowHandlers = new ArrayList<WindowHandler>();<NEW_LINE>windowHandlers.add(new AcceptIncomingConnectionDialogHandler());<NEW_LINE>windowHandlers.add(new BlindTradingWarningDialogHandler());<NEW_LINE>windowHandlers.add(new ExitSes... | .add(new NewerVersionDialogHandler()); |
438,838 | public BitmapRef renderSimple(final Rect viewbox, final float[] ctm) {<NEW_LINE>TempHolder.lock.lock();<NEW_LINE>try {<NEW_LINE>if (isRecycled()) {<NEW_LINE>throw new RuntimeException("The page has been recycled before: " + this);<NEW_LINE>}<NEW_LINE>final int[] mRect = new int[4];<NEW_LINE>mRect[0] = viewbox.left;<NEW... | mRect[1] = viewbox.top; |
1,323,611 | private static void buildChangelogLatest(String version, String fullVersion, String argIn, String argOut) throws Exception {<NEW_LINE>File in, out;<NEW_LINE>if (argIn == null) {<NEW_LINE>in = new File(".");<NEW_LINE>if (new File(in, "build.xml").isFile() && new File(in, "website").isDirectory())<NEW_LINE>in = new File(... | = new File(in, "output/latestchanges.html"); |
445,601 | public INDArray putSlice(int slice, INDArray put) {<NEW_LINE>Nd4j.<MASK><NEW_LINE>if (isScalar()) {<NEW_LINE>Preconditions.checkState(put.isScalar(), "Invalid dimension. Can only insert a scalar in to another scalar");<NEW_LINE>put(0, put.getScalar(0));<NEW_LINE>return this;<NEW_LINE>} else if (isVector()) {<NEW_LINE>P... | getCompressor().autoDecompress(this); |
1,113,601 | final GetResourceDefinitionResult executeGetResourceDefinition(GetResourceDefinitionRequest getResourceDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourceDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | invoke(request, responseHandler, executionContext); |
399,693 | public Request<DescribeRegionsRequest> marshall(DescribeRegionsRequest describeRegionsRequest) {<NEW_LINE>if (describeRegionsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeRegionsRequest> request = new DefaultRequest<DescribeR... | , StringUtils.fromString(regionNamesListValue)); |
1,418,210 | public void lower(NewArrayNode node, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = node.graph();<NEW_LINE>ResolvedJavaType elementType = node.elementType();<NEW_LINE>HotSpotResolvedObjectType arrayType = (HotSpotResolvedObjectType) elementType.getArrayClass();<NEW_LINE>JavaKind elementKind = elementType.getJava... | providers.getMetaAccess(), graph); |
1,533,557 | synchronized protected void downloadAssetBundle(final AssetBundle assetBundle, HttpUrl baseUrl) {<NEW_LINE>Set<AssetBundle.Asset> missingAssets = new HashSet<AssetBundle.Asset>();<NEW_LINE>for (AssetBundle.Asset asset : assetBundle.getOwnAssets()) {<NEW_LINE>// Create containing directories for the asset if necessary<N... | new IOException("Could not create containing directory: " + containingDirectory)); |
1,369,637 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Spell spell = game.getSpellOrLKIStack(this.getTargetPointer()<MASK><NEW_LINE>if (spell == null) {<NEW_LINE>return false;<... | .getFirst(game, source)); |
1,204,414 | public Map<String, LineChart> buildGraphByDomain(Date start, Date end, String domain) {<NEW_LINE>BusinessReportConfig <MASK><NEW_LINE>HashMap<String, LineChart> result = new LinkedHashMap<String, LineChart>();<NEW_LINE>if (config != null) {<NEW_LINE>Map<String, double[]> datas = prepareBusinessItemDatas(start, end, dom... | config = m_configManager.queryConfigByDomain(domain); |
1,280,555 | private HttpPipeline createHttpPipeline() {<NEW_LINE>Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration;<NEW_LINE>if (httpLogOptions == null) {<NEW_LINE>httpLogOptions = new HttpLogOptions();<NEW_LINE>}<NEW_LINE>if (clientOptions == null) {<NEW_LINE>clien... | properties.getOrDefault(SDK_VERSION, "UnknownVersion"); |
447,793 | // ----- private methods -----<NEW_LINE>private String sendInitialSystemInfoData() {<NEW_LINE>String id = null;<NEW_LINE>try {<NEW_LINE>final URL url = new URL("https://sysinfo.structr.com/structr/rest/SystemInfoData");<NEW_LINE>final Map<String, Object> data = new LinkedHashMap<>();<NEW_LINE>final URLConnection con = ... | result = response.get("result"); |
346,253 | final DeleteConfigurationSetResult executeDeleteConfigurationSet(DeleteConfigurationSetRequest deleteConfigurationSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConfigurationSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,335,600 | public boolean startAll() {<NEW_LINE>log.info("Starting all servers");<NEW_LINE>AdempiereServer[] servers = getInActive();<NEW_LINE>for (int i = 0; i < servers.length; i++) {<NEW_LINE>AdempiereServer server = servers[i];<NEW_LINE>try {<NEW_LINE>if (server.isAlive()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>// Wait unti... | setPriority(Thread.NORM_PRIORITY - 2); |
1,072,146 | public OffsetMap fetchOffset(KafkaConsumer<?, ?> consumer, java.lang.String topic) {<NEW_LINE>OffsetMap offsetMap = new OffsetMap();<NEW_LINE>List<TopicPartition> topicPartitions = new ArrayList<>();<NEW_LINE>List<PartitionInfo> partitionInfos = consumer.partitionsFor(topic);<NEW_LINE>partitionInfos.forEach(item -> top... | item.partition()))); |
1,679,607 | public void executeFix(final String key) throws DotDataException, DotSecurityException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>// Get information from IR.<NEW_LINE>final String getResultsQuery = new StringBuilder("SELECT ").append(getIntegrityType().getFirstDisplayColumnLabel()).append(", local_identifier... | put(oldIdentifier, counter - 1); |
806,848 | public void execute(ObjectAccessor<T> referenceAccessor, ObjectAccessor<T> copyAccessor, FieldAccessor fieldAccessor) {<NEW_LINE>if (isCachedHashCodeField.test(fieldAccessor)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Field field = fieldAccessor.getField();<NEW_LINE>T reference = referenceAccessor.get();<NEW_LINE>T copy =... | hashCodeChanged, reference, changed, fieldName); |
180,017 | private static boolean tryConvertEndOfLineComment(PsiElement commentElement) {<NEW_LINE>Commenter commenter = LanguageCommenters.INSTANCE.<MASK><NEW_LINE>if (commenter instanceof CodeDocumentationAwareCommenter) {<NEW_LINE>CodeDocumentationAwareCommenter docCommenter = (CodeDocumentationAwareCommenter) commenter;<NEW_L... | forLanguage(commentElement.getLanguage()); |
1,054,312 | public static DescribeDBProxyEndpointResponse unmarshall(DescribeDBProxyEndpointResponse describeDBProxyEndpointResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBProxyEndpointResponse.setRequestId(_ctx.stringValue("DescribeDBProxyEndpointResponse.RequestId"));<NEW_LINE>describeDBProxyEndpointResponse.setDBProxyE... | (_ctx.stringValue("DescribeDBProxyEndpointResponse.DbProxyEndpointAliases")); |
1,276,065 | protected void encodeMarkup(FacesContext context, SelectCheckboxMenu menu) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = menu.getClientId(context);<NEW_LINE>List<SelectItem> selectItems = getSelectItems(context, menu);<NEW_LINE>boolean valid = menu.isValid... | writeAttribute("title", title, "title"); |
627,360 | final GetCloudFrontOriginAccessIdentityConfigResult executeGetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCloudFrontOriginAccessIdentityConfigRequest);<NEW_LIN... | endClientExecution(awsRequestMetrics, request, response); |
1,668,082 | public void printExtremeFeatures(PrintWriter out, int num) {<NEW_LINE>Alphabet dict = getAlphabet();<NEW_LINE>LabelAlphabet labelDict = getLabelAlphabet();<NEW_LINE>int numFeatures = dict.size() + 1;<NEW_LINE>int numLabels = labelDict.size();<NEW_LINE>// Include the feature weights according to each label<NEW_LINE>@Var... | * numFeatures + defaultFeatureIndex] + " "); |
458,508 | public final SubQueryExprContext subQueryExpr() throws RecognitionException {<NEW_LINE>SubQueryExprContext _localctx = new SubQueryExprContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 340, RULE_subQueryExpr);<NEW_LINE>paraphrases.push("subquery");<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localct... | _la = _input.LA(1); |
1,826,724 | final BatchCreateTableRowsResult executeBatchCreateTableRows(BatchCreateTableRowsRequest batchCreateTableRowsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchCreateTableRowsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,006,738 | public BoundingBox extendMargin(float margin) {<NEW_LINE>if (margin == 1) {<NEW_LINE>return this;<NEW_LINE>} else if (margin <= 0) {<NEW_LINE>throw new IllegalArgumentException("BoundingBox extend operation does not accept negative or zero values");<NEW_LINE>}<NEW_LINE>double verticalExpansion = (this.getLatitudeSpan()... | 180, this.maxLongitude + horizontalExpansion); |
95,775 | public final MethodModel createAndAdd(MethodModel clientView, boolean isLocal, boolean isComponent) {<NEW_LINE>String home = null;<NEW_LINE>String component = null;<NEW_LINE>if (isLocal) {<NEW_LINE>home = localHome;<NEW_LINE>component = findBusinessInterface(local);<NEW_LINE>} else {<NEW_LINE>home = remoteHome;<NEW_LIN... | RemoteException.class.getName()); |
1,846,258 | public boolean delete(String groupId, String operator) {<NEW_LINE>LOGGER.info("begin to delete inlong group for groupId={} by user={}", groupId, operator);<NEW_LINE>Preconditions.checkNotNull(groupId, ErrorCodeEnum.GROUP_ID_IS_EMPTY.getMessage());<NEW_LINE>InlongGroupEntity entity = groupMapper.selectByGroupId(groupId)... | setIsDeleted(entity.getId()); |
1,486,801 | protected Object resultByBlockNumber(final JsonRpcRequestContext requestContext, final long blockNumber) {<NEW_LINE>final JsonCallParameter callParams = JsonCallParameterUtil.validateAndGetCallParams(requestContext);<NEW_LINE>final TraceTypeParameter traceTypeParameter = requestContext.getRequiredParameter(1, TraceType... | ), tracer.getTraceFrames()); |
558,797 | public FlowInfo addPotentialInitializationsFrom(FlowInfo inits) {<NEW_LINE>if (this == DEAD_END) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (inits == DEAD_END) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>UnconditionalFlowInfo otherInits = inits.unconditionalInits();<NEW_LINE>// union of potentially set ones<NEW_LIN... | growSpace(otherLength, 0, length); |
1,333,183 | public static List<EventSender> build(final Environment environment, final CommonConfiguration<?> config, final MetricRegistry metricRegistry, final String pubsubHealthcheckTopic) {<NEW_LINE>final List<EventSender> senders = new ArrayList<>();<NEW_LINE>final KafkaClientProvider kafkaClientProvider = new KafkaClientProv... | ("pubsub-healthchecker-%d").build()); |
495,546 | public void onClick(View v) {<NEW_LINE>if (position < getCount() - 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (getCount() > alCustomizationSettings.getMaxAttachmentAllowed()) {<NEW_LINE>Toast.makeText(context, R.string.mobicom_max_attachment_warning, <MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ImageVie... | Toast.LENGTH_LONG).show(); |
198,395 | public void deleteById(String id) {<NEW_LINE>String workspaceName = Utils.getValueFromIdByName(id, "workspaces");<NEW_LINE>if (workspaceName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));<NEW... | Utils.getValueFromIdByName(id, "kustoPools"); |
1,834,425 | private static void printClassBinding(PrintStream stream, Map<String, String> javaNamesToDisplayNames, PainlessContextClassBindingInfo classBindingInfo) {<NEW_LINE>stream.print("* " + getType(javaNamesToDisplayNames, classBindingInfo.getRtn()) + " " + <MASK><NEW_LINE>for (int parameterIndex = 0; parameterIndex < classB... | classBindingInfo.getName() + "("); |
823,765 | private void unlinkFreeBlock(int freeBlockChunkNum) {<NEW_LINE>long freeBlockAddress = (long) freeBlockChunkNum * CHUNK_SIZE;<NEW_LINE>int anotherBlockOfSameSize = 0;<NEW_LINE>int nextBlockChunkNum = getInt(freeBlockAddress + LargeBlock.NEXT_BLOCK_OFFSET);<NEW_LINE>int prevBlockChunkNum = <MASK><NEW_LINE>// Relink the ... | getInt(freeBlockAddress + LargeBlock.PREV_BLOCK_OFFSET); |
586,210 | public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>g.setColor(Color.WHITE);<NEW_LINE>g.fillRect(x, y, <MASK><NEW_LINE>g.setColor(new Color(0xb5d5ff));<NEW_LINE>g.drawRect(x, y, getIconWidth(), getIconHeight());<NEW_LINE>float fontSize = getMaxFontSize(g, getIconWidth() - 1, getIconHeight());<NEW_LI... | getIconWidth(), getIconHeight()); |
1,072,069 | private long[] _decode(String hash, String alphabet) {<NEW_LINE>final ArrayList<Long> ret = new ArrayList<Long>();<NEW_LINE>int i = 0;<NEW_LINE>final String regexp = "[" + this.guards + "]";<NEW_LINE>String hashBreakdown = hash.replaceAll(regexp, " ");<NEW_LINE>String[] hashArray = hashBreakdown.split(" ");<NEW_LINE>if... | .unhash(subHash, alphabet)); |
1,678,017 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@name('variables') @public create variable int varhour;\n" + "@public create variable int varmin;\n" + "@public create variable int varsec;\n" + "@public create variable int varmsec;\n";<NEW_LINE>env... | (SupportDateTime.make(startTime)); |
1,521,631 | public void write(Object source, BaseEntity.Builder sink) {<NEW_LINE>DatastorePersistentEntity<?> persistentEntity = this.mappingContext.<MASK><NEW_LINE>String discriminationFieldName = persistentEntity.getDiscriminationFieldName();<NEW_LINE>List<String> discriminationValues = persistentEntity.getCompatibleDiscriminati... | getPersistentEntity(source.getClass()); |
1,361,527 | public String orderLine(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer C_OrderLine_ID = (Integer) value;<NEW_LINE>if (C_OrderLine_ID == null || C_OrderLine_ID.intValue() == 0)<NEW_LINE>return "";<NEW_LINE>// Get Details<NEW_LINE>MOrderLine ol = new MOrderLine(ctx, C_Order... | (ol.getC_Campaign_ID())); |
1,281,094 | public static Range valueOf(String range) {<NEW_LINE>if (range.contains("${")) {<NEW_LINE>// unresolved<NEW_LINE>return new Range(0, 0, false, false, range);<NEW_LINE>}<NEW_LINE>range = range.trim();<NEW_LINE>// || range.endsWith("..");<NEW_LINE>boolean unspecified = range.length() == 0 || range.startsWith("..");<NEW_L... | (0, dots), 0); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.