idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,152,810 | public void insert(final SpanBo span) {<NEW_LINE>Objects.requireNonNull(span, "span");<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// Assert agentId<NEW_LINE>CollectorUtils.checkAgentId(span.getAgentId());<NEW_LINE>// Assert applicationName<NEW_LINE>CollectorUtils.checkApplicationName(sp... | logger.debug("insert ApplicationTraceIndex: {}", span); |
1,663,305 | public static void readReferenceList(ArrayList<String> v_value, ArrayList<String> v_name, ArrayList<String> v_description) {<NEW_LINE>if (v_value == null)<NEW_LINE>throw new IllegalArgumentException("v_value parameter is null");<NEW_LINE>if (v_name == null)<NEW_LINE>throw new IllegalArgumentException("v_name parameter ... | Level.SEVERE, sql, e); |
359,486 | private String constructImportStatement(Map.Entry<String, BImport> importEntry) {<NEW_LINE>String orgName = importEntry.getValue().getResolvedSymbol().id().orgName();<NEW_LINE>// If the import belongs to a module inside the current package, replace the original org name name with<NEW_LINE>// temporary evaluation projec... | EVALUATION_IMPORT_TEMPLATE, orgName, moduleName, alias); |
1,239,241 | final DescribeReplicationTaskIndividualAssessmentsResult executeDescribeReplicationTaskIndividualAssessments(DescribeReplicationTaskIndividualAssessmentsRequest describeReplicationTaskIndividualAssessmentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReplicationTaskIndividualAss... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,000,330 | private static Object fixLogArg(Object arg) {<NEW_LINE>if (arg instanceof String) {<NEW_LINE>return "'" + arg + "'";<NEW_LINE>}<NEW_LINE>if (arg instanceof Buffer) {<NEW_LINE>Buffer b = (Buffer) arg;<NEW_LINE>return "Buffer{" + asString(b.data, 0, (int) b.length) + "}";<NEW_LINE>}<NEW_LINE>if (arg instanceof Timeval) {... | bytes = (byte[]) arg; |
399,246 | public <T extends JpaObject, W extends Object> List<T> listEqualAndInAndNotEqual(Class<T> cls, String firstAttribute, Object firstValue, String secondAttribute, Collection<W> secondValues, String thirdAttribute, Object thirdValue) throws Exception {<NEW_LINE>EntityManager em = this.get(cls);<NEW_LINE>CriteriaBuilder cb... | = new ArrayList<>(os); |
1,125,685 | private static int computeMaximumRevenueForRange(List<Integer> coins, int a, int b, int[][] maximumRevenueForRange) {<NEW_LINE>if (a > b) {<NEW_LINE>// No coins left.<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (maximumRevenueForRange[a][b] == 0) {<NEW_LINE>int maximumRevenueA = coins.get(a) + Math.min(computeMaximumReve... | , b - 1, maximumRevenueForRange)); |
534,074 | /* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.MessageEventListener#messageEventOccurred(int, com.ibm.ws.sib.processor.impl.interfaces.SIMPMessage, com.ibm.ws.sib.msgstore.Transaction)<NEW_LINE>*/<NEW_LINE>public void messageEventOccurred(int event, SIMPMessage msg, TransactionCommon tran) th... | "com.ibm.ws.sib.processor.impl.PtoPOutputHandler", "1:1275:1.241" }, null)); |
529,098 | public void run(String command, String[] args, IContext context, PrintStream out) throws CommandException {<NEW_LINE>if (initCommand(command, args, context, out)) {<NEW_LINE>// processing already handled by super class<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Long currentMemAddress = (Long) ctx.getProperties().get(Utils.CU... | ).get(Utils.CURRENT_NUM_BYTES_TO_PRINT); |
365,162 | public Operand buildYield(YieldNode node, Variable result) {<NEW_LINE>if (scope instanceof IRScriptBody || scope instanceof IRModuleBody)<NEW_LINE>throwSyntaxError(node, "Invalid yield");<NEW_LINE>boolean unwrap = true;<NEW_LINE>Node argNode = node.getArgsNode();<NEW_LINE>// FIXME: This is likely wrong. single argnode ... | ArrayNode) argNode).getLast(); |
449,245 | public void internalReceiveCommand(String itemName, Command command) {<NEW_LINE>for (PifaceBindingProvider provider : getProvidersForItemName(itemName)) {<NEW_LINE>PifaceBindingConfig <MASK><NEW_LINE>if (pin == null) {<NEW_LINE>logger.warn("No Piface pin configuration exists for '" + itemName + "'");<NEW_LINE>continue;... | pin = provider.getPifaceBindingConfig(itemName); |
983,403 | private smile.data.vector.BaseVector readDateField(FieldVector fieldVector) {<NEW_LINE>int count = fieldVector.getValueCount();<NEW_LINE>LocalDate[] a = new LocalDate[count];<NEW_LINE>ZoneOffset zone = OffsetDateTime<MASK><NEW_LINE>if (fieldVector instanceof DateDayVector) {<NEW_LINE>DateDayVector vector = (DateDayVect... | .now().getOffset(); |
741,502 | public com.atlassian.jira.rpc.soap.beans.RemoteVersion addVersion(java.lang.String in0, java.lang.String in1, com.atlassian.jira.rpc.soap.beans.RemoteVersion in2) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemoteException {<NEW_LINE>if (super.cachedEndpoint == null) {<NEW_LINE>throw new org.apach... | .soap.beans.RemoteVersion) _resp; |
1,236,531 | public List<String> parseOutputParameter(String outputParams) {<NEW_LINE>// may also need to know about the parsing result<NEW_LINE>if (StringUtils.isEmpty(outputParams)) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final List<String> result = new LinkedList<String>();<NEW_LINE>StringBuilder params = ... | stateCh = outputParams.charAt(index); |
1,084,100 | /*<NEW_LINE>void basicExample_ExcecuteCompletionStage() {<NEW_LINE>TimeLimiterConfig config = TimeLimiterConfig.custom()<NEW_LINE>.timeoutDuration(Duration.ofMillis(500))<NEW_LINE>.build();<NEW_LINE><NEW_LINE>TimeLimiterRegistry registry = TimeLimiterRegistry.of(config);<NEW_LINE>TimeLimiter limiter = registry.timeLimi... | get(3000, TimeUnit.MILLISECONDS); |
774,890 | public List<SHERPAResponse> searchRelatedJournals(Context context, Item item) {<NEW_LINE>Set<String> issns = getISSNs(context, item);<NEW_LINE>if (issns == null || issns.size() == 0) {<NEW_LINE>return null;<NEW_LINE>} else {<NEW_LINE>// SHERPA v2 API no longer supports "OR'd" ISSN search, perform individual searches in... | response = sherpaService.searchByJournalISSN(issn); |
2,000 | // ===========================================================<NEW_LINE>// Methods for/from SuperClass/Interfaces<NEW_LINE>// ===========================================================<NEW_LINE>@Override<NEW_LINE>public void onSensorChanged(final SensorEvent sensorEvent) {<NEW_LINE>int type = sensorEvent.sensor.getTyp... | (sensorEvent.values[1]); |
833,912 | public Status read(String table, String key, Set<String> fields, Map<String, ByteIterator> result) {<NEW_LINE>try {<NEW_LINE>BinaryObject po = cache.get(key);<NEW_LINE>if (po == null) {<NEW_LINE>return Status.NOT_FOUND;<NEW_LINE>}<NEW_LINE>if (binType == null) {<NEW_LINE>binType = po.type();<NEW_LINE>}<NEW_LINE>for (St... | fieldsCache.put(s, bfld); |
655,272 | private static void addRepositoriesAtStart(ClassLoader appClassLoader, URL[] newRepositories, boolean watchResources) {<NEW_LINE>String[] currentRepositories = (String[]) ReflectionHelper.get(appClassLoader, "repositories");<NEW_LINE>String[] repositories = new String[currentRepositories.length + newRepositories.length... | getInstance().getWatcher()); |
1,119,067 | public static Map<String, String> parseStyle(String style) {<NEW_LINE>if (style.length() == 0) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>Map<String, String> cacheResult = STYLE_CACHE.get(style);<NEW_LINE>if (cacheResult != null) {<NEW_LINE>return cacheResult;<NEW_LINE>}<NEW_LINE>String[] styleArr = ... | [i].split(":"); |
1,014,206 | public void storeJars(File base) throws Exception {<NEW_LINE>File dir = new File(base, "store/jars");<NEW_LINE>if ((!dir.exists()) || (!dir.isDirectory())) {<NEW_LINE>throw new Exception("error");<NEW_LINE>}<NEW_LINE>List<String> names = new ArrayList<>();<NEW_LINE>for (File o : dir.listFiles()) {<NEW_LINE>if ((!String... | = new File(dir, "manifest.cfg"); |
1,713,902 | protected void copy(CacheEntry cacheEntry, ServletOutputStream ostream, Iterator<Range> ranges, String contentType) throws IOException {<NEW_LINE>IOException exception = null;<NEW_LINE>while ((exception == null) && (ranges.hasNext())) {<NEW_LINE>InputStream resourceInputStream = cacheEntry.resource.streamContent();<NEW... | end + "/" + currentRange.length); |
830,976 | public void marshall(CreateLaunchProfileRequest createLaunchProfileRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLaunchProfileRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK>... | createLaunchProfileRequest.getClientToken(), CLIENTTOKEN_BINDING); |
144,160 | public LithoLayoutResult calculateLayout(final RenderState.LayoutContext<LithoRenderContext> c, final int widthSpec, final int heightSpec) {<NEW_LINE>if (c.getRenderContext().mLayoutStateContext.getLayoutState() == null) {<NEW_LINE>throw new IllegalStateException("Cannot calculate a layout without a layout state.");<NE... | root.calculateLayout(width, height); |
129,226 | public byte[] encode(byte[] sig) {<NEW_LINE>// sig is in ASN.1<NEW_LINE>// SEQUENCE::={ r INTEGER, s INTEGER }<NEW_LINE>int rIndex = 3;<NEW_LINE>int rLen = sig[rIndex++] & 0xff;<NEW_LINE>byte[] r = new byte[rLen];<NEW_LINE>System.arraycopy(sig, rIndex, r, 0, r.length);<NEW_LINE>int sIndex = rIndex + rLen + 1;<NEW_LINE>... | min(s.length, 20); |
490,736 | private boolean canTrace(final ContainerRequest request, final Traced tracedAnnotation) {<NEW_LINE>// we cannot trace if we don't have enough information.<NEW_LINE>// this can occur on early request processing stages<NEW_LINE>if (request == null || resourceInfo.getResourceClass() == null || resourceInfo.getResourceMeth... | getOptionalValue("mp.opentracing.server.skip-pattern", String.class); |
1,725,111 | private // previous time<NEW_LINE>void rerank() {<NEW_LINE>if (queues.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<QueueCount> sorted = new ArrayList<>();<NEW_LINE>// populate a sorted set with key - queues<NEW_LINE>Iterator<Entry<String, Queue<URLMetadata>>> i = queues.entrySet().iterator();<NEW_LINE>while (... | put(q.name, queue); |
1,393,103 | final StopWorkflowRunResult executeStopWorkflowRun(StopWorkflowRunRequest stopWorkflowRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopWorkflowRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<StopWo... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,601,339 | protected AutoScaleVmProfileVO checkValidityAndPersist(AutoScaleVmProfileVO vmProfile) {<NEW_LINE>long templateId = vmProfile.getTemplateId();<NEW_LINE>long autoscaleUserId = vmProfile.getAutoScaleUserId();<NEW_LINE>int destroyVmGraceperiod = vmProfile.getDestroyVmGraceperiod();<NEW_LINE>VirtualMachineTemplate template... | user = _userDao.findById(autoscaleUserId); |
132,166 | private static int finishBigInteger(String sql, int tokenStart, int end, int i, int start, boolean asBigint, int radix, ArrayList<Token> tokens) {<NEW_LINE>int endIndex = i;<NEW_LINE>if (asBigint) {<NEW_LINE>i++;<NEW_LINE>}<NEW_LINE>if (radix == 16 && i <= end && Character.isJavaIdentifierPart(sql.codePointAt(i))) {<NE... | , ValueNumeric.get(bigInteger)); |
649,357 | private Function<Artifact, Artifact> desugarJarsIfRequested(ConfiguredTarget base, RuleContext ruleContext, ConfiguredAspect.Builder result, Iterable<Artifact> extraToolchainJars) {<NEW_LINE>if (!getAndroidConfig(ruleContext).desugarJava8()) {<NEW_LINE>return Functions.identity();<NEW_LINE>}<NEW_LINE>Map<Artifact, Arti... | (ruleContext, AndroidRuntimeJarProvider.class)); |
967,601 | public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.println("Syntax: <in.mov> <out.mov>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SeekableByteChannel input = readableChannel(new File(args[0]));<NEW_LINE>MP4Demuxer demuxer = MP4Demuxer.createMP4Demuxer(input);<NEW_... | cur - from)) + " fps"); |
1,020,351 | private void drawPathRelativeTicks(Canvas canvas, float x, float y) {<NEW_LINE>float x1 = mPoints[0];<NEW_LINE>float y1 = mPoints[1];<NEW_LINE>float x2 = mPoints[mPoints.length - 2];<NEW_LINE>float y2 = mPoints[mPoints.length - 1];<NEW_LINE>float dist = (float) Math.hypot(x1 - x2, y1 - y2);<NEW_LINE>float t = ((x - x1)... | xp - x, yp - y); |
308,806 | public IStatus run(final IProgressMonitor monitor) {<NEW_LINE>try {<NEW_LINE>if (GroovyDSLCoreActivator.getDefault().isDSLDDisabled()) {<NEW_LINE>if (GroovyLogManager.manager.hasLoggers()) {<NEW_LINE>GroovyLogManager.manager.log(TraceCategory.DSL, "DSLD support is currently disabled, so not refreshing DSLDs.");<NEW_LIN... | submon = SubMonitor.convert(monitor); |
1,413,252 | public void marshall(ConfigRuleEvaluationStatus configRuleEvaluationStatus, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (configRuleEvaluationStatus == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(config... | configRuleEvaluationStatus.getLastErrorMessage(), LASTERRORMESSAGE_BINDING); |
1,524,863 | static Hashtable addKeyShareToClientHello(TlsClientContext clientContext, TlsClient client, Hashtable clientExtensions) throws IOException {<NEW_LINE>if (!isTLSv13(clientContext.getClientVersion()) || !clientExtensions.containsKey(TlsExtensionsUtils.EXT_supported_groups)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int... | TlsExtensionsUtils.addKeyShareClientHello(clientExtensions, clientShares); |
1,795,995 | public void marshall(OidcIdentityProviderConfigRequest oidcIdentityProviderConfigRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (oidcIdentityProviderConfigRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | oidcIdentityProviderConfigRequest.getIdentityProviderConfigName(), IDENTITYPROVIDERCONFIGNAME_BINDING); |
1,804,049 | private DatabaseConnection findDatabaseConnection(final SchemaElement elem) {<NEW_LINE>DatabaseConnection[] dbconns = ConnectionManager.getDefault().getConnections();<NEW_LINE>// Trim off connection properties, as in some cases, what dbmd.getUrl()<NEW_LINE>// returns is not the same as what is set in the DB Explorer, a... | trimUrl(elem.getUrl()); |
464,734 | public static void vertical3(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3... | .startIndex + y * dst.stride; |
1,666,006 | public static void convertActivityToTranslucent(Activity activity) {<NEW_LINE>try {<NEW_LINE>@SuppressLint({ "PrivateApi", "DiscouragedPrivateApi" })<NEW_LINE>Method getActivityOptions = Activity.class.getDeclaredMethod("getActivityOptions");<NEW_LINE>getActivityOptions.setAccessible(true);<NEW_LINE>Object options = ge... | = Activity.class.getDeclaredClasses(); |
237,906 | public com.amazonaws.services.lexruntime.model.UnsupportedMediaTypeException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lexruntime.model.UnsupportedMediaTypeException unsupportedMediaTypeException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDep... | lexruntime.model.UnsupportedMediaTypeException(null); |
1,197,511 | public String absoluteStringValue() {<NEW_LINE>readLock.lock();<NEW_LINE>StringJoiner sj = new StringJoiner(", ", "{", "}");<NEW_LINE>try {<NEW_LINE>switch(type.getTag()) {<NEW_LINE>case TypeTags.OBJECT_TYPE_TAG:<NEW_LINE>((BStructureType) this.type).getFields().forEach((fieldName, field) -> {<NEW_LINE>V fieldVal = get... | ":" + getStringValue(fieldVal))); |
1,667,958 | public static Builder fromEnv() throws DockerCertificateException {<NEW_LINE>final String endpoint = DockerHost.endpointFromEnv();<NEW_LINE>final Path dockerCertPath = Paths.get(Iterables.find(Arrays.asList(DockerHost.certPathFromEnv(), DockerHost.configPathFromEnv(), DockerHost.defaultCertPath()), Predicates.notNull()... | ? DockerHost.defaultAddress() : hostText; |
459,526 | final RestartSimulationJobResult executeRestartSimulationJob(RestartSimulationJobRequest restartSimulationJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restartSimulationJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
733,374 | /* Build call for applicationsApplicationIdDelete */<NEW_LINE>private com.squareup.okhttp.Call applicationsApplicationIdDeleteCall(String applicationId, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressReque... | localVarHeaderParams.put("Content-Type", localVarContentType); |
1,477,310 | private void generateParam(Param paramConfig, RestParamProperty param) {<NEW_LINE>paramConfig.setName(param.getName());<NEW_LINE>if (StringUtils.hasContent(param.getDefaultValue())) {<NEW_LINE>paramConfig.setDefault(param.getDefaultValue());<NEW_LINE>}<NEW_LINE>paramConfig.setType(param.getType());<NEW_LINE>paramConfig... | ParamStyle.Enum style = ParamStyle.QUERY; |
551,632 | static void dissectCatalogResize(final MutableDirectBuffer buffer, final int offset, final StringBuilder builder) {<NEW_LINE>int absoluteOffset = offset;<NEW_LINE>absoluteOffset += dissectLogHeader(CONTEXT, CATALOG_RESIZE, buffer, absoluteOffset, builder);<NEW_LINE>final int maxEntries = buffer.getInt(absoluteOffset, L... | (": ").append(maxEntries); |
52,226 | public void render(PoseStack poseStack, Rectangle rectangle, int mouseX, int mouseY, float delta) {<NEW_LINE>var blockRenderer = Minecraft.getInstance().getBlockRenderer();<NEW_LINE>var renderType = ItemBlockRenderTypes.getRenderLayer(waterBlock.getFluidState());<NEW_LINE>renderType.setupRenderState();<NEW_LINE>RenderS... | width, rectangle.height, 1); |
828,623 | public Object call(ExecutionContext context) {<NEW_LINE>Object self = context.getThisBinding();<NEW_LINE>Arguments argsObj = (Arguments) context.resolve("arguments").getValue(context);<NEW_LINE>int numArgs = (int) argsObj.get(context, "length");<NEW_LINE>int paramsLen = getFormalParameters().length;<NEW_LINE>Object[] a... | call(context, self, args); |
417,789 | private static List<AmazonInstance> load() {<NEW_LINE>List<AmazonInstance> result = new ArrayList<AmazonInstance>();<NEW_LINE>for (InstanceProperties props : InstancePropertiesManager.getInstance().getProperties(AMAZON_IP_NAMESPACE)) {<NEW_LINE>// NOI18N<NEW_LINE>String name = props.getString("name", null);<NEW_LINE>as... | String keyId = new String(ch); |
874,348 | public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>String project = commandLine.getValue(Options.PROJECT_OPTION);<NEW_LINE>String file = commandLine.getValue(Options.FILE_OPTION);<NEW_LINE>String propertiesOption = commandLine.getValue(Options.PROPERTIES_OPTION);<NEW_LINE>int offset = getOffset(... | propertiesOption, String[].class); |
860,565 | public static void init(Connection conn) throws SQLException {<NEW_LINE>try (Statement stat = conn.createStatement()) {<NEW_LINE>stat.execute("CREATE SCHEMA IF NOT EXISTS " + SCHEMA);<NEW_LINE>stat.execute("CREATE TABLE IF NOT EXISTS " + SCHEMA + ".INDEXES(SCHEMA VARCHAR, `TABLE` VARCHAR, " + "COLUMNS VARCHAR, PRIMARY ... | execute("CREATE ALIAS IF NOT EXISTS FTL_SEARCH FOR '" + className + ".search'"); |
231,425 | private void createPolygons() {<NEW_LINE>// create input polygon 1<NEW_LINE>PointCollection pointsPoly = new PointCollection(SpatialReferences.getWebMercator());<NEW_LINE>pointsPoly.add(new Point(-13160, 6710100));<NEW_LINE>pointsPoly.add(new Point(-13300, 6710500));<NEW_LINE>pointsPoly.add(new Point(-13760, 6710730));... | Point(-12450, 6710660)); |
1,285,510 | private void displayVerificationWarningDialog(final Contact contact, final Invite invite) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle(R.string.verify_omemo_keys);<NEW_LINE>View view = getLayoutInflater().inflate(R.layout.dialog_verify_fingerprints, null);<NEW_LINE>f... | findViewById(R.id.trusted_source); |
1,501,143 | public final void multicatch_types() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST multicatch_types_AST = null;<NEW_LINE>Token first = LT(1);<NEW_LINE>nls();<NEW_LINE>classOrInterfaceType(false);<NEW_LINE><MASK><NEW_LINE>{<NEW_LI... | astFactory.addASTChild(currentAST, returnAST); |
1,407,942 | private void moveUp(Node[] nodes) {<NEW_LINE>assert nodes != null : "Nodes to moveUp cannot be null.";<NEW_LINE>assert nodes.length == 1 : <MASK><NEW_LINE>assert nodes[0].isLeaf() : "Only leaf node can be moveUp, not " + nodes[0];<NEW_LINE>Node n = nodes[0];<NEW_LINE>Index supp = getIndexSupport(n);<NEW_LINE>int origPo... | "Only one node can be moveUp, not " + Arrays.asList(nodes); |
143,054 | public String generateSQLQuery(SimpleMapAppContext replacements) {<NEW_LINE>if (replacements.doNothingOnConflict()) {<NEW_LINE>return String.format(MSSQL_UPSERT_QUERY_DO_NOTHING_ON_CONFLICT, replacements.getAttribute(QueryReplacements.TABLE), replacements.getAttribute(QueryReplacements.CONDITIONAL_VALUE), replacements.... | replacements), getInsertValuesString(replacements)); |
77,085 | List<IScanIssue> doScan(IHttpRequestResponse baseRequestResponse, IScannerInsertionPoint insertionPoint) {<NEW_LINE>// don't scan POST<NEW_LINE>if (baseRequestResponse.getRequest()[0] == 'P') {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IHttpService service = baseRequestResponse.getHttpService();<NEW_LINE>// set value t... | + canary).getBytes()); |
810,098 | public BehaviorModelTrainingSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>BehaviorModelTrainingSummary behaviorModelTrainingSummary =... | ().unmarshall(context)); |
310,443 | private Expression partitionAndSortExpression(String partitionKey, String sortKey, AttributeValue partitionValue, AttributeValue sortKeyValue) {<NEW_LINE>// When a sort key is explicitly provided as null treat as partition only expression<NEW_LINE>if (isNullAttributeValue(sortKeyValue)) {<NEW_LINE>return partitionOnlyE... | expressionAttributeNames.put(sortKeyToken, sortKey); |
1,204,964 | public void prepare(LayoutAnimations LayoutAnimations) {<NEW_LINE>if (Utils.isChromeDebugger) {<NEW_LINE>Log.w("[REANIMATED]", "You can not use LayoutAnimation with enabled Chrome Debugger");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mNodesManager = mContext.get().getNativeModule(ReanimatedModule.class).getNodesManager();<N... | LayoutAnimations LayoutAnimations = weakLayoutAnimations.get(); |
93,317 | public static ListTablesResponse unmarshall(ListTablesResponse listTablesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTablesResponse.setRequestId(_ctx.stringValue("ListTablesResponse.RequestId"));<NEW_LINE>listTablesResponse.setTotalCount(_ctx.longValue("ListTablesResponse.TotalCount"));<NEW_LINE>listTablesRespon... | ("ListTablesResponse.TableList[" + i + "].TableGuid")); |
753,955 | protected SdkFileEntry generateModelHeaderFile(ServiceModel serviceModel, Map.Entry<String, Shape> shapeEntry) throws Exception {<NEW_LINE>Shape shape = shapeEntry.getValue();<NEW_LINE>if (!(shape.isRequest() || shape.isEnum() || shape.hasEventPayloadMembers() && shape.hasBlobMembers())) {<NEW_LINE>return null;<NEW_LIN... | context.put("operationName", key); |
115,353 | public void run(RegressionEnvironment env) {<NEW_LINE>SupportQueryPlanIndexHook.reset();<NEW_LINE>String epl = "@name('s0') " <MASK><NEW_LINE>String[] fields = "s0.id,s1.id".split(",");<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertThat(() -> {<NEW_LINE>Map<TableLookupIndexReqKey, QueryPlanIndex... | + IndexBackingTableInfo.INDEX_CALLBACK_HOOK + "select * from SupportBean_S0 as s0 unidirectional, SupportBean_S1#keepall as s1 " + "where p10 in ('a', 'b')"; |
703,242 | protected Frag build() {<NEW_LINE>ConjStartState conjStart = new ConjStartState(patterns.size());<NEW_LINE>Frag frag = new Frag();<NEW_LINE>frag.start = conjStart;<NEW_LINE>// Create NFA fragment that<NEW_LINE>// have one starting state that branches out to NFAs created by the children expressions<NEW_LINE>// AND START... | new ConjEndState(conjStart, i)); |
1,129,691 | protected void processRequest(HttpServletRequest req, HttpServletResponse res) throws IOException {<NEW_LINE>// Default value is no compression<NEW_LINE>boolean compress = false;<NEW_LINE>// Default value is to block on the response<NEW_LINE>boolean block = true;<NEW_LINE>String file = DEFAULT_FILE;<NEW_LINE>boolean ha... | = new BasicSnapshotFactory(file, compress); |
1,551,614 | public void visitCompositeElement(@NotNull GoCompositeElement o) {<NEW_LINE>if (!(o instanceof GoNamedElement) || !((GoNamedElement) o).isPublic()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<PsiComment> comments = GoDocumentationProvider.getCommentsForElement(o);<NEW_LINE>String commentText = GoDocumentationProvider.g... | "Comment should start with '" + elementName + "'", holder); |
969,263 | protected CompiledST load(String name) {<NEW_LINE>if (verbose)<NEW_LINE>System.out.println("STGroupDir.load(" + name + ")");<NEW_LINE>// must have parent; it's fully-qualified<NEW_LINE>String parent = Misc.getParent(name);<NEW_LINE>String prefix = Misc.getPrefix(name);<NEW_LINE>// if (parent.isEmpty()) {<NEW_LINE>// //... | root + parent + GROUP_FILE_EXTENSION, e); |
1,570,970 | public Iterator<Edge> scanEdge(Set<String> labelList) {<NEW_LINE>Pair<GraphSchema, Long<MASK><NEW_LINE>Set<Integer> labelIdList = Sets.newHashSet();<NEW_LINE>if (null == labelList || labelList.isEmpty()) {<NEW_LINE>labelIdList.add(0);<NEW_LINE>} else {<NEW_LINE>for (String label : labelList) {<NEW_LINE>try {<NEW_LINE>l... | > pair = schemaFetcher.getSchemaSnapshotPair(); |
231,873 | protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParametersAsArray();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>String name = para[i].getParameterName();<NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("C_DocTypeTarget_ID"))<NEW_LINE>p_C_DocTypeT... | para[i].getParameter(); |
1,602,173 | public static void print(WebSiteBase resource) {<NEW_LINE>StringBuilder builder = new StringBuilder().append("Web app: ").append(resource.id()).append("\n\tName: ").append(resource.name()).append("\n\tState: ").append(resource.state()).append("\n\tResource group: ").append(resource.resourceGroupName()).append("\n\tRegi... | println(builder.toString()); |
1,262,055 | private void extractTargetPidsFromIdParams(HashSet<Long> theTargetPids) {<NEW_LINE>// get all the IQueryParameterType objects<NEW_LINE>// for _id -> these should all be StringParam values<NEW_LINE>HashSet<String> ids = new HashSet<>();<NEW_LINE>List<List<IQueryParameterType>> params = myParams.get(IAnyResource.SP_RES_I... | ) param).getValue()); |
1,774,813 | public static void plus(IntIterableRangeSet setr, IntIterableRangeSet set1, int l, int u) {<NEW_LINE>setr.clear();<NEW_LINE>int s1 = set1.SIZE >> 1;<NEW_LINE>if (s1 > 0 && l <= u) {<NEW_LINE>int k = 0;<NEW_LINE><MASK><NEW_LINE>int lb = set1.ELEMENTS[0] + l;<NEW_LINE>int ub = set1.ELEMENTS[1] + u;<NEW_LINE>for (; k < s1... | setr.grow(set1.SIZE); |
313,222 | private HttpResponse testConfig(ApplicationId id, JobType type) {<NEW_LINE>Application application = controller.applications().requireApplication(TenantAndApplicationId.from(id));<NEW_LINE>ApplicationId prodInstanceId = application.deploymentSpec().instance(id.instance()).isPresent() ? id : TenantAndApplicationId.from(... | .toCollection(HashSet::new)); |
1,503,092 | public RetryOptions unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RetryOptions retryOptions = new RetryOptions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
1,330,233 | private void addToSummary(DatasetField dsfo, DatasetField dsfn) {<NEW_LINE>if (dsfo == null) {<NEW_LINE>dsfo = new DatasetField();<NEW_LINE>dsfo.setDatasetFieldType(dsfn.getDatasetFieldType());<NEW_LINE>}<NEW_LINE>if (dsfn == null) {<NEW_LINE>dsfn = new DatasetField();<NEW_LINE>dsfn.setDatasetFieldType(dsfo.getDatasetF... | newList = new ArrayList<>(); |
1,552,178 | void check() {<NEW_LINE>final EventProcessor.Process process = processRef.get();<NEW_LINE>final ThreadUnsafeGaStack<Integer> stack = (ThreadUnsafeGaStack<Integer>) process.stack;<NEW_LINE>if (!process.isEmptyStack()) {<NEW_LINE>throw new IllegalStateException(String.format("process-stack is not empty! listener=%s;\n%s"... | listenerId, toString(stack))); |
1,333,267 | public static TaobaoFilmGetSchedulesResponse unmarshall(TaobaoFilmGetSchedulesResponse taobaoFilmGetSchedulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>taobaoFilmGetSchedulesResponse.setRequestId(_ctx.stringValue("TaobaoFilmGetSchedulesResponse.RequestId"));<NEW_LINE>taobaoFilmGetSchedulesResponse.setErrorCode(_ctx... | (_ctx.stringValue("TaobaoFilmGetSchedulesResponse.LogsId")); |
1,292,689 | public static SQLQueryAdapter create(PostgresGlobalState globalState) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("TRUNCATE");<NEW_LINE>if (Randomly.getBoolean()) {<NEW_LINE>sb.append(" TABLE");<NEW_LINE>}<NEW_LINE>// TODO partitions<NEW_LINE>// if (Randomly.getBoolean()) {<NEW_LINE>// sb.appe... | Collectors.joining(", "))); |
1,576,696 | public void exitStandard_access_list_tail(Standard_access_list_tailContext ctx) {<NEW_LINE>LineAction action = toLineAction(ctx.ala);<NEW_LINE>AccessListAddressSpecifier srcAddressSpecifier = toAccessListAddressSpecifier(ctx.ipr);<NEW_LINE>StandardAccessListServiceSpecifier serviceSpecifer = computeStandardAccessListSe... | defineSingleLineStructure(IPV4_ACCESS_LIST_STANDARD_LINE, structName, cfgLine); |
622,651 | private void openDialog(Section section, KeyBind name) {<NEW_LINE>rebindDialog = new Dialog(rebindAxis ? bundle.get("keybind.press.axis", "Press an axis or key...") : bundle.get("keybind.press", "Press a key..."));<NEW_LINE>rebindKey = name;<NEW_LINE>rebindDialog.titleTable.getCells().first().pad(4);<NEW_LINE>if (secti... | section, name, KeyCode.scroll); |
898,921 | public static <T extends ImageBase<T>> void boundImage(T input, double min, double max) {<NEW_LINE>if (input instanceof ImageGray) {<NEW_LINE>if (GrayU8.class == input.getClass()) {<NEW_LINE>PixelMath.boundImage((GrayU8) input, (int) min, (int) max);<NEW_LINE>} else if (GrayS8.class == input.getClass()) {<NEW_LINE>Pixe... | ) min, (int) max); |
1,355,967 | private void processEntryForLogSegmentBucket(ScanResults results, IndexEntry indexEntry, Map<StoreKey, IndexFinalState> keyFinalStates) {<NEW_LINE>IndexValue indexValue = indexEntry.getValue();<NEW_LINE>results.updateLogSegmentBaseBucket(indexValue.getOffset().getName(), indexValue.getSize());<NEW_LINE>if (indexValue.i... | get(indexEntry.getKey()); |
194,010 | protected void savePicture() {<NEW_LINE>if (isSavingPicture) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>isSavingPicture = true;<NEW_LINE>int position = getCurPosition();<NEW_LINE>if (position == -1) {<NEW_LINE>position = mLayoutManager.findFirstVisibleItemPosition();<NEW_LINE>}<NEW_LINE>ImageUrl imageUrl = mReaderAdapter.g... | ), url, title, progress); |
1,683,766 | private void logGlobalBuildInfo() {<NEW_LINE>final String osName = System.getProperty("os.name");<NEW_LINE>final String osVersion = System.getProperty("os.version");<NEW_LINE>final String osArch = System.getProperty("os.arch");<NEW_LINE>final Jvm gradleJvm = Jvm.current();<NEW_LINE>JvmInstallationMetadata gradleJvmMeta... | current().getVersion()); |
1,150,279 | protected static void renderTemplate(String templateName, Map<String, Object> args) {<NEW_LINE>// Template datas<NEW_LINE>Scope.RenderArgs templateBinding <MASK><NEW_LINE>templateBinding.data.putAll(args);<NEW_LINE>templateBinding.put("session", Scope.Session.current());<NEW_LINE>templateBinding.put("request", Http.Req... | = Scope.RenderArgs.current(); |
332,161 | protected NormalIpRangeVO scripts() {<NEW_LINE>NormalIpRangeVO vo = new NormalIpRangeVO();<NEW_LINE>vo.setUuid(ipr.getUuid() == null ? Platform.getUuid(<MASK><NEW_LINE>vo.setDescription(ipr.getDescription());<NEW_LINE>vo.setEndIp(ipr.getEndIp());<NEW_LINE>vo.setGateway(ipr.getGateway());<NEW_LINE>vo.setL3NetworkUuid(ip... | ) : ipr.getUuid()); |
753,089 | public StockMove createStockMove(SaleOrder saleOrder, Company company, LocalDate estimatedDeliveryDate) throws AxelorException {<NEW_LINE>StockLocation toStockLocation = saleOrder.getToStockLocation();<NEW_LINE>if (toStockLocation == null) {<NEW_LINE>toStockLocation = partnerStockSettingsService.getDefaultExternalStock... | setPickingOrderComments(saleOrder.getPickingOrderComments()); |
1,502,427 | private static void checkPermutation(int[] permutation) throws IllegalArgumentException {<NEW_LINE>int max = permutation.length;<NEW_LINE>int[] check = new int[max];<NEW_LINE>for (int i = 0; i < max; i++) {<NEW_LINE>int p = permutation[i];<NEW_LINE>if (p >= max) {<NEW_LINE>throw new IllegalArgumentException("Permutatio... | ) + " is not a valid permutation, it contains element " + p + ", which is negative."); |
1,138,614 | protected void insertPK(final String columnName, final String columnValue, final byte[] pk) {<NEW_LINE>Map<String, byte[]> valueIdxMap;<NEW_LINE>Collection<byte[]> PKset;<NEW_LINE>final byte[] column = Word.word2hash(columnName);<NEW_LINE>try {<NEW_LINE>valueIdxMap = this.index.get(column);<NEW_LINE>if (valueIdxMap != ... | String, byte[]>(); |
586,553 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>String type = sentence.substring(5, 8);<NEW_LINE>Pattern pattern;<NEW_LINE>if (type.equals("MIF")) {<NEW_LINE>pattern = PATTERN_MIF;<NEW_LINE>} else {<NEW_LINE>pattern =... | (Parser.CoordinateFormat.DEG_HEM)); |
1,447,096 | public synchronized void removeVariableIfFound(String deploymentId, String variableName) {<NEW_LINE>VariableDeployment entry = deploymentsWithVariables.get(deploymentId);<NEW_LINE>if (entry == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Variable variable = entry.getVariable(variableName);<NEW_LINE>if (variable == null... | changeCallbacksPerCP.set(number, null); |
317,989 | public void deleteEntityRelations(TenantId tenantId, EntityId entityId) {<NEW_LINE><MASK><NEW_LINE>validate(entityId);<NEW_LINE>final Cache cache = cacheManager.getCache(RELATIONS_CACHE);<NEW_LINE>List<EntityRelation> inboundRelations = new ArrayList<>();<NEW_LINE>for (RelationTypeGroup typeGroup : RelationTypeGroup.va... | log.trace("Executing deleteEntityRelations [{}]", entityId); |
1,092,719 | public static StringBuilder describeParameterizable(StringBuilder buf, Class<?> pcls, int width) throws ClassInstantiationException {<NEW_LINE>println(buf, width, <MASK><NEW_LINE>Title title = pcls.getAnnotation(Title.class);<NEW_LINE>if (title != null && title.value() != null && !title.value().isEmpty()) {<NEW_LINE>pr... | "Description for class " + pcls.getName()); |
488,054 | public final boolean translate(KeyEvent event) {<NEW_LINE>Map<Integer<MASK><NEW_LINE>Integer newKeyCode = null;<NEW_LINE>boolean handled = false;<NEW_LINE>if (keyMapping != null) {<NEW_LINE>newKeyCode = keyMapping.get(event.getKeyCode());<NEW_LINE>}<NEW_LINE>Map<Integer, Runnable> actionMapping = getActionMapping();<NE... | , Integer> keyMapping = getKeyMapping(); |
279,307 | public CommandResult process(CommandSource source, String arguments) {<NEW_LINE><MASK><NEW_LINE>GeyserSession session = getGeyserSession(commandSender);<NEW_LINE>String[] args = arguments.split(" ");<NEW_LINE>if (args.length > 0) {<NEW_LINE>GeyserCommand command = getCommand(args[0]);<NEW_LINE>if (command != null) {<NE... | CommandSender commandSender = new SpongeCommandSender(source); |
609,437 | public static Object convertWriteAttributes(String type, Object value, DefaultLwM2mUplinkMsgHandler serviceImpl, String target) {<NEW_LINE>switch(type) {<NEW_LINE>case DIMENSION:<NEW_LINE>Long dim = (Long) serviceImpl.converter.convertValue(value, equalsResourceTypeGetSimpleName(value), INTEGER, new LwM2mPath(target));... | .valueOf((String) value); |
895,846 | public final ConstantContext constant() throws RecognitionException {<NEW_LINE>ConstantContext _localctx = new ConstantContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 540, RULE_constant);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>setState(5527);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(getInterpreter()... | _errHandler.recover(this, re); |
357,047 | public File download(Driver driver, String relativeOrAbsoluteUrl, long timeout, FileFilter fileFilter) throws IOException {<NEW_LINE>String url = makeAbsoluteUrl(<MASK><NEW_LINE>CloseableHttpResponse response = executeHttpRequest(driver, url, timeout);<NEW_LINE>if (response.getCode() >= 500) {<NEW_LINE>throw new Runtim... | driver.config(), relativeOrAbsoluteUrl); |
461,895 | public void onWebSocketText(String message) {<NEW_LINE>System.out.println("DEBUG: Got Message" + message);<NEW_LINE>// FIXME: need to test this is valid<NEW_LINE>try {<NEW_LINE>JsonObject json = JSONMacroFunctions.getInstance().asJsonElement(message).getAsJsonObject();<NEW_LINE>String messageType = json.get("messageTyp... | get("messageId").getAsString(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.