idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,761,307 | SmartLifecycle functionArchiveUnDeployer(FunctionDeployerProperties functionProperties, FunctionRegistry functionRegistry, ApplicationArguments arguments, @Nullable MavenProperties mavenProperties, ApplicationContext applicationContext) {<NEW_LINE>ApplicationArguments updatedArguments = this.updateArguments(arguments);... | "Deploying archive: " + functionProperties.getLocation()); |
514,230 | private Mono<PagedResponse<DetectorDefinitionInner>> listSiteDetectorsSlotNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() == null) {<N... | )).readOnly())); |
242,722 | final DeleteConnectionResult executeDeleteConnection(DeleteConnectionRequest deleteConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
349,017 | private ClassInformationType scanTargetArchive() throws ClassScannerException {<NEW_LINE>final HashSet<ClassInfoType> citSet = new HashSet<ClassInfoType>();<NEW_LINE>final String urlProtocol = targetArchive.getProtocol();<NEW_LINE>if ("file".equalsIgnoreCase(urlProtocol)) {<NEW_LINE>// Protocol is "file", which either ... | .addAll(processJarFormatInputStreamURL(targetArchive)); |
709,059 | protected void configure() {<NEW_LINE>bind(Project.class).toInstance(project);<NEW_LINE>bind(ServiceRegistry.class).toInstance(serviceRegistry);<NEW_LINE>bind(NotationParser.class).to(DefaultNotationParser.class);<NEW_LINE>bind(BuildManager.class).to(DefaultBuildManager.class);<NEW_LINE>bind(GoBinaryManager.class<MASK>... | ).to(DefaultGoBinaryManager.class); |
797,045 | public void publish(LogRecord rec) {<NEW_LINE>String message = rec.getMessage();<NEW_LINE>if (rec.getResourceBundle() != null) {<NEW_LINE>try {<NEW_LINE>message = rec.getResourceBundle().getString(rec.getMessage());<NEW_LINE>if (rec.getParameters() != null) {<NEW_LINE>message = MessageFormat.format(message, rec.getPara... | , message, args[0]); |
952,142 | public void after(Object target, Object[] args, Object result, Throwable throwable) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.afterInterceptor(target, args, result, throwable);<NEW_LINE>}<NEW_LINE>final Trace trace = traceContext.currentTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_L... | SpanEventRecorder recorder = trace.currentSpanEventRecorder(); |
1,638,478 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>JtdsConfig config = new JtdsConfig(instrumentor.getProfilerConfig());<NEW_LINE>InstrumentClass targe... | extends Interceptor> preparedStatementInterceptor = PreparedStatementExecuteQueryInterceptor.class; |
1,552,939 | private void printStats(CombinedStatistics combinedStatistics) {<NEW_LINE>MutationStatistics stats = combinedStatistics.getMutationStatistics();<NEW_LINE>final PrintStream ps = System.out;<NEW_LINE>ps.println(StringUtil.separatorLine('='));<NEW_LINE>ps.println("- Mutators");<NEW_LINE>ps.println(StringUtil.separatorLine... | , coverage.getCoverage())); |
1,775,370 | public DeclarationSubject declares(String name) {<NEW_LINE>AbstractVar<?, ?> var = getVar(name);<NEW_LINE>if (var == null) {<NEW_LINE>ImmutableList<AbstractVar<?, ?>> declared = ImmutableList.copyOf(actual.getAllAccessibleVariables());<NEW_LINE>ImmutableList<String> names = declared.stream().map(AbstractVar::getName).c... | isEqualTo(var.getScope()); |
189,198 | private void handleNeo4jError(Status status, Throwable cause) {<NEW_LINE>if (cause instanceof FabricException) {<NEW_LINE>// unwrap FabricException where possible.<NEW_LINE>var rootCause = ((FabricException) cause).status();<NEW_LINE>if (cause.getCause() != null && cause.getCause().getMessage().equals("A query with 'PE... | Status.Request.Invalid, "Routing of PERIODIC COMMIT is not currently supported. Please retry your request against the cluster leader"); |
1,634,131 | // ///////////////////////////////////////////////////<NEW_LINE>// ///////////////// API Implementation //////////////<NEW_LINE>// ///////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public void execute() {<NEW_LINE>ProjectRole projectRole = projRoleService.findProjectRole(getProjectRoleId()... | ServerApiException(ApiErrorCode.PARAM_ERROR, "Parameters permission and ruleid must be mutually exclusive with ruleorder"); |
234,707 | public void afterExecute(final Runnable runnable, final Throwable throwable) {<NEW_LINE>super.afterExecute(runnable, throwable);<NEW_LINE>if (throwable != null) {<NEW_LINE>// Wrap the throwable in an ExecutionException (execute() does not do this)<NEW_LINE>interruptionChecker.setExecutionException(new ExecutionExceptio... | >) runnable).get(); |
31,562 | private void updateQuota(long quota) {<NEW_LINE>long storedQuota = getDBLong("quotaPoints", 0L);<NEW_LINE>String storedDate = getDBString("quotaDate", "01-01-2000");<NEW_LINE><MASK><NEW_LINE>datefmt.setTimeZone(TimeZone.getTimeZone("America/Los_Angeles"));<NEW_LINE>String currentDate = datefmt.format(new Date());<NEW_L... | SimpleDateFormat datefmt = new SimpleDateFormat("dd-MM-yyyy"); |
1,741,856 | public Pair<List<QuotaSummaryResponse>, Integer> createQuotaSummaryResponse(Boolean listAll, final String keyword, final Long startIndex, final Long pageSize) {<NEW_LINE>List<QuotaSummaryResponse> result <MASK><NEW_LINE>Integer count = 0;<NEW_LINE>if (listAll) {<NEW_LINE>Filter filter = new Filter(AccountVO.class, "acc... | = new ArrayList<QuotaSummaryResponse>(); |
86,335 | public static void main(String[] args) {<NEW_LINE>// snippet-start:[ec2.java1.running_instances.main]<NEW_LINE>AmazonEC2 ec2 = AmazonEC2ClientBuilder.defaultClient();<NEW_LINE>try {<NEW_LINE>// Create the Filter to use to find running instances<NEW_LINE>Filter filter = new Filter("instance-state-name");<NEW_LINE>filter... | System.out.print("Done"); |
369,530 | public MethodInvocation parseAndApplyInvocation(JsonArray rpcCall, ApplicationConnection connection) {<NEW_LINE>ConnectorMap connectorMap = ConnectorMap.get(connection);<NEW_LINE>String connectorId = rpcCall.getString(0);<NEW_LINE>String interfaceName = rpcCall.getString(1);<NEW_LINE>String methodName = rpcCall.getStri... | ).info("Server to client RPC call: " + invocation); |
44,561 | private ImmutableMap<String, BuildOptions> handleFatApkCpus(BuildOptionsView buildOptions, AndroidConfiguration.Options androidOptions) {<NEW_LINE>ImmutableMap.Builder<String, BuildOptions> result = ImmutableMap.builder();<NEW_LINE>for (String cpu : ImmutableSortedSet.copyOf(androidOptions.fatApkCpus)) {<NEW_LINE>Build... | .platforms = ImmutableList.of(); |
677,626 | protected MetadataFieldRest put(Context context, HttpServletRequest request, String apiCategory, String model, Integer id, JsonNode jsonNode) throws SQLException, AuthorizeException {<NEW_LINE>MetadataFieldRest metadataFieldRest = new Gson().fromJson(jsonNode.toString(), MetadataFieldRest.class);<NEW_LINE>if (isBlank(m... | () : "") + " already exists"); |
550,131 | public void onClick(DialogInterface dialog, int item) {<NEW_LINE>if (items.get(item).value.startsWith("KP2ASPECIAL")) {<NEW_LINE>// change entry<NEW_LINE>String packageName <MASK><NEW_LINE>Intent startKp2aIntent = getPackageManager().getLaunchIntentForPackage(packageName);<NEW_LINE>if (startKp2aIntent != null) {<NEW_LI... | = getApplicationContext().getPackageName(); |
399,241 | protected BiMap<TableReference, TableReference> readTableMap() {<NEW_LINE>// TODO (jkong) Remove after PDS-117310 is resolved.<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("Attempting to read the table mapping from the namespace table.", new SafeRuntimeException("I exist to show you the stack trace"));<NEW_L... | getTableRefFromBytes(row.getRowName()); |
1,606,811 | void paint() {<NEW_LINE>// loadContentIcon may return a null image<NEW_LINE>if (image != null) {<NEW_LINE>image.paintIcon(comp, graphics, 0, 0);<NEW_LINE>}<NEW_LINE>// turn anti-aliasing on for the splash text<NEW_LINE>graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_O... | bar.y + bar.height); |
1,477,076 | private File createSiteArchive() throws ClientException {<NEW_LINE>File siteArchiveFile;<NEW_LINE>try {<NEW_LINE>siteArchiveFile = File.createTempFile("drill-site-", ".tar.gz");<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new ClientException("Failed to create site archive temp file", e);<NEW_LINE>}<NEW_LINE>Strin... | throw new ClientException("Tar of site directory failed: " + msg); |
4,605 | private static void solve() {<NEW_LINE>Solver solver = new Solver("Map");<NEW_LINE>//<NEW_LINE>// data<NEW_LINE>//<NEW_LINE>int Belgium = 0;<NEW_LINE>int Denmark = 1;<NEW_LINE>int France = 2;<NEW_LINE>int Germany = 3;<NEW_LINE>int Netherlands = 4;<NEW_LINE>int Luxembourg = 5;<NEW_LINE>int n = 6;<NEW_LINE>int max_num_co... | ], color[Netherlands])); |
1,487,243 | private static void blitBitmap(Graphics g, Icon icon, int x, int y, int w, int h) {<NEW_LINE>// Store the current clip to reset it after<NEW_LINE>Shape clip = g.getClip();<NEW_LINE>if (clip == null) {<NEW_LINE>// Limit it to the space we're requested to paint<NEW_LINE>g.setClip(x, y, w, h);<NEW_LINE>} else {<NEW_LINE>/... | Area area = new Area(clip); |
1,646,543 | public static void vertical11(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output, int skip) {<NEW_LINE>final float[] dataSrc = input.data;<NEW_LINE>final float[] dataDst = output.data;<NEW_LINE>final float k1 = kernel.data[0];<NEW_LINE>final float <MASK><NEW_LINE>final float k3 = kernel.data[2];<NEW_LINE>final float k4... | k2 = kernel.data[1]; |
1,456,840 | protected QuicSession createSession(SocketAddress remoteAddress, ByteBuffer cipherBuffer) throws IOException {<NEW_LINE>ByteBufferPool byteBufferPool = getByteBufferPool();<NEW_LINE>// TODO make the token validator configurable<NEW_LINE>QuicheConnection quicheConnection = QuicheConnection.tryAccept(connector.newQuicheC... | BufferUtil.flipToFlush(negotiationBuffer, pos); |
1,199,569 | protected java.lang.Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException {<NEW_LINE>_Fields setField = _Fields.findByThriftId(field.id);<NEW_LINE>if (setField != null) {<NEW_LINE>switch(setField) {<NEW_LINE>case PREFIX_DE... | java.lang.IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); |
506,811 | protected void run() {<NEW_LINE>@SuppressWarnings({ "unchecked", "rawtypes" })<NEW_LINE>ArrayList<Integer>[] spaceTmp = new ArrayList[layers.length];<NEW_LINE>space = spaceTmp;<NEW_LINE>@SuppressWarnings({ "unchecked", "rawtypes" })<NEW_LINE>ArrayList<LayoutNode>[] downProcessingOrderTmp <MASK><NEW_LINE>downProcessingO... | = new ArrayList[layers.length]; |
3,454 | public static void logVersion(List<String> extraLines) {<NEW_LINE>String[] lines = { "For more information: " + URL, COPYRIGHT + " - " + LICENSE };<NEW_LINE>String version = getVersion();<NEW_LINE>int width = version.length();<NEW_LINE>for (String line : lines) {<NEW_LINE>width = Math.max(width, line.length());<NEW_LIN... | LOG.info("+-{}-+", padding); |
1,769,809 | protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String fullUrl = removeAssetPrefix(request.getRequestURI());<NEW_LINE>// Static Assets don't typically go through the Spring Security pipeline but they may need access<NEW_LINE>// to the si... | response.setStatus(HttpServletResponse.SC_NOT_FOUND); |
472,463 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>com.google... | writeString(output, 2, namespace_); |
880,920 | void writeUserOrgChartDetailToCsv(final CSVPrinter csvPrinter, final UserIdentity userIdentity, final int depth) {<NEW_LINE>final <MASK><NEW_LINE>LOGGER.trace(pwmRequest, () -> "beginning csv export starting with user " + userIdentity.toDisplayString() + " and depth of " + depth);<NEW_LINE>final ThreadPoolExecutor exec... | Instant startTime = Instant.now(); |
233,745 | public ReserveContactResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ReserveContactResult reserveContactResult = new ReserveContactResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | int originalDepth = context.getCurrentDepth(); |
1,189,701 | void handleMouseEvent(int eventType, int modifierFlags, int buttonNumber, int clickCount, int x, int y, int absX, int absY) {<NEW_LINE>final SunToolkit tk = (SunToolkit) Toolkit.getDefaultToolkit();<NEW_LINE>if ((buttonNumber > 2 && !tk.areExtraMouseButtonsEnabled()) || buttonNumber > tk.getNumberOfButtons() - 1) {<NEW... | boolean dragged = jeventType == MouseEvent.MOUSE_DRAGGED; |
1,384,883 | public okhttp3.Call readPodSecurityPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies/{name}".replaceAll("\\{" + "name" + "\\... | = new ArrayList<Pair>(); |
1,760,515 | @SuppressWarnings("unchecked")<NEW_LINE>void build(SmallRyeHealthRecorder recorder, BuildProducer<FeatureBuildItem> feature, BuildProducer<AdditionalBeanBuildItem> additionalBean, BuildProducer<BeanDefiningAnnotationBuildItem> beanDefiningAnnotation) throws IOException, ClassNotFoundException {<NEW_LINE>feature.produce... | produce(new BeanDefiningAnnotationBuildItem(LIVENESS)); |
915,742 | private void writeGloballyTrustedKeys(DependencyVerificationConfiguration configuration) throws IOException {<NEW_LINE>final List<DependencyVerificationConfiguration.TrustedKey<MASK><NEW_LINE>if (keys.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writer.startElement(TRUSTED_KEYS);<NEW_LINE>Map<String, List<Dependen... | > keys = configuration.getTrustedKeys(); |
14,412 | public static P<Object> parsePredicate(String predicate) {<NEW_LINE>Pattern pattern = Pattern.compile("^P\\.([a-z]+)\\(([\\S ]*)\\)$");<NEW_LINE>Matcher matcher = pattern.matcher(predicate);<NEW_LINE>if (!matcher.find()) {<NEW_LINE>throw new HugeException("Invalid predicate: %s", predicate);<NEW_LINE>}<NEW_LINE>String ... | .eq(predicateNumber(value)); |
172,073 | final UpdateContactAttributesResult executeUpdateContactAttributes(UpdateContactAttributesRequest updateContactAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,055,896 | public static DescribeBackupPolicyResponse unmarshall(DescribeBackupPolicyResponse describeBackupPolicyResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupPolicyResponse.setRequestId<MASK><NEW_LINE>describeBackupPolicyResponse.setMessage(_ctx.stringValue("DescribeBackupPolicyResponse.Message"));<NEW_LINE>descr... | (_ctx.stringValue("DescribeBackupPolicyResponse.RequestId")); |
329,632 | private DetectionReport buildDetectionReport(TargetInfo targetInfo, NetworkService vulnerableNetworkService) {<NEW_LINE>TextData details = TextData.newBuilder().setText(String.format("The Kubernetes API endpoint at %s is exposed.", NetworkServiceUtils.buildWebApplicationRootUrl(vulnerableNetworkService) <MASK><NEW_LINE... | + "api/v1/pods")).build(); |
949,146 | void genInvokeStatic(JavaMethod target) {<NEW_LINE>if (callTargetIsResolved(target)) {<NEW_LINE>ResolvedJavaMethod resolvedTarget = (ResolvedJavaMethod) target;<NEW_LINE>ResolvedJavaType holder = resolvedTarget.getDeclaringClass();<NEW_LINE>if (!holder.isInitialized() && ResolveClassBeforeStaticInvoke.getValue(options)... | handleUnresolvedInvoke(target, InvokeKind.Static); |
1,035,218 | public void updateUI() {<NEW_LINE>Clipboard clipboard = new Clipboard(Display.getDefault());<NEW_LINE>String sClipText = (String) clipboard.<MASK><NEW_LINE>if (sClipText != null) {<NEW_LINE>if (lastCopiedFromClip != null && sClipText.equals(lastCopiedFromClip)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean bTorrentInC... | getContents(TextTransfer.getInstance()); |
1,283,404 | public void verifySignature(PublicKey serverPublicKey, Random clientRandom, Random serverRandom) throws HandshakeException {<NEW_LINE>if (signatureEncoded == null) {<NEW_LINE>String message = "The server's ECDHE key exchange message has no signature.";<NEW_LINE>AlertMessage alert = new AlertMessage(<MASK><NEW_LINE>thro... | AlertLevel.FATAL, AlertDescription.DECRYPT_ERROR); |
1,794,944 | private List<PluginHandleVO> buildPluginHandleVO(final List<PluginHandleDO> pluginHandleDOList) {<NEW_LINE>List<String> fieldList = pluginHandleDOList.stream().filter(pluginHandleDO -> pluginHandleDO.getDataType() == SELECT_BOX_DATA_TYPE).map(PluginHandleDO::getField).distinct().collect(Collectors.toList());<NEW_LINE>M... | PluginHandleVO.buildPluginHandleVO(pluginHandleDO, dictOptions); |
224,050 | private void applyDexHeader(Program program, OatDexFile oatDexFileHeader, Symbol oatDataSymbol, int index) throws Exception {<NEW_LINE>Address address = oatDataSymbol.getAddress().add(oatDexFileHeader.getDexFileOffset());<NEW_LINE>DexHeader dexHeader = oatDexFileHeader.getDexHeader();<NEW_LINE>if (dexHeader == null) {<... | createData(program, address, paddingDataType); |
953,218 | private String extractText(@NonNull final JavaVMOption<?> option, final int column) {<NEW_LINE>final OptionValue<?> ov = option.getValue();<NEW_LINE>if (option instanceof UserPropertyNode) {<NEW_LINE>Map.Entry<String, String> entry = (ov != null ? ((OptionValue.StringPair) ov).getValue() : null);<NEW_LINE>if (entry == ... | String rawName = option.getName(); |
1,589,687 | private void addFunction(QueryColumn qc, QueryModel validatingModel, QueryModel translatingModel, QueryModel innerModel, QueryModel analyticModel, QueryModel groupByModel, QueryModel outerModel, QueryModel distinctModel) throws SqlException {<NEW_LINE>// there were no aggregation functions emitted therefore<NEW_LINE>//... | nextColumn(qc.getAlias()); |
1,068,193 | private void createObjectsTable(Composite parent) {<NEW_LINE>Composite placeholder = UIUtils.createComposite(parent, 1);<NEW_LINE>placeholder.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>Group tableGroup = UIUtils.createControlGroup(placeholder, UINavigatorMessages.confirm_deleting_multiple_objects_table_g... | TableItem(objectsTable, SWT.NONE); |
1,636,072 | public void createEntries() {<NEW_LINE>calendar.setStyle(Calendar.Style.getStyle(style++));<NEW_LINE>calendar.clear();<NEW_LINE>LocalTime dailyStartTime = LocalTime.of(8, 0);<NEW_LINE>LocalTime dailyEndTime = LocalTime.of(20, 0);<NEW_LINE>LocalDate entryDate = LocalDate.now();<NEW_LINE>LocalTime entryTime = dailyStartT... | entryDate = entryDate.plusDays(1); |
1,435,361 | private String generatePageTab() {<NEW_LINE>Collections.sort(playerData);<NEW_LINE>StringBuilder tabBuilder = new StringBuilder();<NEW_LINE>for (ExtensionData datum : playerData) {<NEW_LINE>ExtensionInformation extensionInformation = datum.getExtensionInformation();<NEW_LINE>boolean onlyGeneric = datum.hasOnlyGenericTa... | getTabs().get(0); |
70,947 | private void convertIdentifier(Blackboard bb, SqlIdentifier id, SqlNodeList extendedColumns, SqlNode indexNode, SqlNode partitions) {<NEW_LINE>final SqlValidatorNamespace fromNamespace = validator.getNamespace(id).resolve();<NEW_LINE>if (fromNamespace.getNode() != null) {<NEW_LINE>convertFrom(bb, fromNamespace.getNode(... | bb.setRoot(tableRel, true); |
13,466 | /*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.DeviceManagementGrpc.DeviceManagementImplBase#<NEW_LINE>* createCustomerType(com.sitewhere.grpc.service.GCreateCustomerTypeRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void createCustomerType(GCreateCustomerTypeR... | handleServerMethodExit(DeviceManagementGrpc.getCreateCustomerTypeMethod()); |
1,106,073 | // rb_econv_prepare_options<NEW_LINE>public static int econvPrepareOptions(ThreadContext context, IRubyObject opthash, IRubyObject[] opts, int ecflags) {<NEW_LINE>IRubyObject newhash = context.nil;<NEW_LINE>IRubyObject v;<NEW_LINE>if (opthash.isNil()) {<NEW_LINE>opts[0] = context.nil;<NEW_LINE>return ecflags;<NEW_LINE>... | econvOpts(context, opthash, ecflags); |
738,304 | public static IRubyObject filter_map(ThreadContext context, IRubyObject self, Block block) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>if (block.isGiven()) {<NEW_LINE>RubyArray result = runtime.newArray();<NEW_LINE>eachSite(context).call(context, self, self, CallBlock19.newCallClosure(self, runtime.getEnumerabl... | newArrayMayCopy(ctx.runtime, largs); |
1,671,850 | public long next(long instant, int standardOffset, int saveMillis, GregorianCalendar calendar) {<NEW_LINE>int offset;<NEW_LINE>if (iMode == 'w') {<NEW_LINE>offset = standardOffset + saveMillis;<NEW_LINE>} else if (iMode == 's') {<NEW_LINE>offset = standardOffset;<NEW_LINE>} else {<NEW_LINE>offset = 0;<NEW_LINE>}<NEW_LI... | add(Calendar.YEAR, 1); |
1,117,264 | public int compare(ProgramLocation loc1, ProgramLocation loc2) {<NEW_LINE>int result;<NEW_LINE>// Try to make a sensible comparison of programs before just using identity hashes<NEW_LINE><MASK><NEW_LINE>Program program2 = loc2.getProgram();<NEW_LINE>result = program1.getName().compareTo(program2.getName());<NEW_LINE>if... | Program program1 = loc1.getProgram(); |
1,562,611 | public void processRequiredCreateParams(Map<String, String> params, ApiErrors errors) {<NEW_LINE>// Do we have a checksum? If not, complain.<NEW_LINE>if (StringUtils.isEmpty(params.get(ApiParams.CHECKSUM))) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// Do we have a meeting id? If not, complain.<NEW_LINE>if (!StringUtils.isE... | errors.missingParamError(ApiParams.CHECKSUM); |
1,224,853 | public UploadResult call() throws Exception {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (isMultipartUpload()) {<NEW_LINE>publishProgress(listener, ProgressEventType.TRANSFER_STARTED_EVENT);<NEW_LINE>return uploadInParts();<NEW_LINE>} else {<NEW_LINE>return uploadInOneChunk();<NEW_LINE>}<NEW_LINE>} finally {<NEW_LINE>/... | upload.setState(TransferState.InProgress); |
363,731 | static private String buildQuery(List<DataSource> dataSources, boolean showAll, int cntDaysFromRecent, boolean noTimeStamp) {<NEW_LINE>String mostRecentQuery = "";<NEW_LINE>if (!showAll && cntDaysFromRecent > 0) {<NEW_LINE>// MOST_RECENT_TIME<NEW_LINE>// SELECT MAX(value_int64) - (%d * 86400)<NEW_LINE>// FROM blackboar... | , buildQueryForWaypointsWOTimeStamps(dataSources), query); |
263,699 | private GTable createAlignmentTable(List<Long> startingAddresses, int numFuncs) {<NEW_LINE>List<ModulusInfo> data = LazyList.lazyList(new ArrayList<>(), () -> new ModulusInfo());<NEW_LINE>if (startingAddresses != null) {<NEW_LINE>for (int i = 0; i < modulus; i++) {<NEW_LINE>data.get(0).modulus = Long.toString(i);<NEW_L... | (Math.round(percent)); |
541,586 | private static Object resolve(final String key, final ResourceBundle resource, final Map<String, String> map) {<NEW_LINE>Object result = resource.getObject(key);<NEW_LINE>if (result instanceof String) {<NEW_LINE>final String value = (String) result;<NEW_LINE>final Matcher matcher = VARIABLE.matcher(value);<NEW_LINE>int... | startIndex, matcher.start()); |
980,605 | public Void exec() throws NotFoundException {<NEW_LINE>if (StringUtils.isNotEmpty(this.hostResource)) {<NEW_LINE>// User set host resource and not directly a stream<NEW_LINE>if (this.tarInputStream != null) {<NEW_LINE>throw new DockerClientException("Only one of host resource or tar input stream should be defined to pe... | "Unable to perform tar on host resource " + this.hostResource, createFileIOException); |
1,345,726 | protected void runAsynchronously(ManagedBeanOperation operation, Object[] paramValues, Long timeout) {<NEW_LINE>BackgroundTask<Long, Object> task = new BackgroundTask<Long, Object>(timeout, TimeUnit.MILLISECONDS, this) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object run(TaskLifeCycle<Long> taskLifeCycle) {<NEW_LI... | operation.getName(), ex); |
1,678,618 | private void handleRow(final Cdcpb.Event.Row row) {<NEW_LINE>if (!TableKeyRangeUtils.isRecordKey(row.getKey().toByteArray())) {<NEW_LINE>// Don't handle index key for now<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.debug("binlog record, type: {}, data: {}", row.getType(), row);<NEW_LINE>switch(row.getType()) {<NEW_LINE>ca... | "Unsupported row type:" + row.getType()); |
1,010,784 | final CreateGameSessionQueueResult executeCreateGameSessionQueue(CreateGameSessionQueueRequest createGameSessionQueueRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createGameSessionQueueRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,597,635 | public static GetDBTopologyResponse unmarshall(GetDBTopologyResponse getDBTopologyResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDBTopologyResponse.setRequestId(_ctx.stringValue("GetDBTopologyResponse.RequestId"));<NEW_LINE>getDBTopologyResponse.setSuccess(_ctx.booleanValue("GetDBTopologyResponse.Success"));<NEW_LIN... | ("GetDBTopologyResponse.DBTopology.DBTopologyInfoList[" + i + "].EnvType")); |
386,013 | protected void drawFilter() {<NEW_LINE>GLES20.glUseProgram(program);<NEW_LINE>squareVertex.position(SQUARE_VERTEX_DATA_POS_OFFSET);<NEW_LINE>GLES20.glVertexAttribPointer(aPositionHandle, 3, GLES20.GL_FLOAT, false, SQUARE_VERTEX_DATA_STRIDE_BYTES, squareVertex);<NEW_LINE>GLES20.glEnableVertexAttribArray(aPositionHandle)... | 1, false, STMatrix, 0); |
374,346 | private void buildUI() {<NEW_LINE><MASK><NEW_LINE>splitPane.setLeftComponent(buildConditionList());<NEW_LINE>splitPane.setRightComponent(buildExpressionArea());<NEW_LINE>splitPane.setResizeWeight(0.1);<NEW_LINE>splitPane.setDividerLocation(120);<NEW_LINE>inspectorPanel = JInspectorPanelFactory.build(splitPane);<NEW_LIN... | JSplitPane splitPane = UISupport.createHorizontalSplit(); |
512,781 | protected void interpolateFlowScale(GrayF32 prev, GrayF32 curr) {<NEW_LINE>interp.setImage(prev);<NEW_LINE>float scaleX = (float) prev.width / (float) curr.width;<NEW_LINE>float scaleY = (float) prev.<MASK><NEW_LINE>float scale = (float) prev.width / (float) curr.width;<NEW_LINE>int indexCurr = 0;<NEW_LINE>for (int y =... | height / (float) curr.height; |
944,372 | static ArgGroupSpec extractArgGroupSpec(IAnnotatedElement member, IFactory factory, CommandSpec commandSpec, boolean annotationsAreMandatory) throws Exception {<NEW_LINE>Object instance = null;<NEW_LINE>try {<NEW_LINE>instance = member.getter().get();<NEW_LINE>} catch (Exception ignored) {<NEW_LINE>}<NEW_LINE>Class<?> ... | commandSpec, builder, factory, null); |
1,206,738 | public static ListDataSourcesResponse unmarshall(ListDataSourcesResponse listDataSourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataSourcesResponse.setRequestId(_ctx.stringValue("ListDataSourcesResponse.RequestId"));<NEW_LINE>listDataSourcesResponse.setSuccess(_ctx.booleanValue("ListDataSourcesResponse.Succe... | ("ListDataSourcesResponse.DataSources[" + i + "].GmtCreate")); |
961,990 | protected void executeImpl() throws MojoExecutionException, MojoFailureException {<NEW_LINE>String iconPath = properties.getProperty("codename1.icon");<NEW_LINE>File iconFile = new File(iconPath);<NEW_LINE>if (!iconFile.isAbsolute()) {<NEW_LINE>iconFile = new File(getCN1ProjectDir(), iconFile.getPath());<NEW_LINE>}<NEW... | throw new MojoExecutionException("Failed to generate icons", ex); |
619,070 | public List<ReplicaTokenInfo> deserializeTokens(InputStream inputStream) throws IOException, ReplicationException {<NEW_LINE>CrcInputStream crcStream = new CrcInputStream(inputStream);<NEW_LINE>DataInputStream stream = new DataInputStream(crcStream);<NEW_LINE>List<ReplicaTokenInfo> tokenInfoList = new ArrayList<>();<NE... | token = findTokenFactory.getFindToken(stream); |
1,201,004 | private static void reflectiveMethodInvokeHook(Method method) {<NEW_LINE>serialClientOperationsLock.beginTrans(true);<NEW_LINE>try {<NEW_LINE>if (reflectMethods.containsKey(method)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ProfilerRuntimeCPU.suspendCurrentThreadTimer();<NEW_LINE>reflectMethods.put(method, null);<NEW_LINE... | String methodName = method.getName(); |
931,167 | public void triggerListeners(final int eventType, final Object params) {<NEW_LINE>if (SWTSkin.DEBUG_VISIBILITIES) {<NEW_LINE>if (eventType == SWTSkinObjectListener.EVENT_SHOW) {<NEW_LINE>System.out.println(this + " Show " + this + " via " + Debug.getCompressedStackTrace());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// delay show ... | setSkinView(cla.newInstance()); |
1,070,815 | public void initialize(boolean parsingCompilationUnit) {<NEW_LINE>// positioning the parser for a new compilation unit<NEW_LINE>// avoiding stack reallocation and all that....<NEW_LINE>this.javadoc = null;<NEW_LINE>this.astPtr = -1;<NEW_LINE>this.astLengthPtr = -1;<NEW_LINE>this.patternPtr = -1;<NEW_LINE>this.patternLe... | variablesCounter[this.nestedType] = 0; |
398,312 | public boolean mouseDragged(Point pt) {<NEW_LINE>if (dragState == DragState.NONE)<NEW_LINE>return false;<NEW_LINE><MASK><NEW_LINE>double y = pt.getY();<NEW_LINE>double dx = x - px;<NEW_LINE>double dy = y - py;<NEW_LINE>// The delta value is multiplied by 2 to create the float effect of moving<NEW_LINE>// the top left c... | double x = pt.getX(); |
1,137,625 | public void afterPropertiesSet() throws Exception {<NEW_LINE>// Check the signing and verification keys match<NEW_LINE>if (signer instanceof RsaSigner) {<NEW_LINE>RsaVerifier verifier;<NEW_LINE>try {<NEW_LINE>verifier = new RsaVerifier(verifierKey);<NEW_LINE>} catch (Exception e) {<NEW_LINE>logger.warn("Unable to creat... | SignatureVerifier verifier = new MacSigner(verifierKey); |
569,039 | public int exactDivide(Frequency other) {<NEW_LINE>ArgChecker.notNull(other, "other");<NEW_LINE>if (isMonthBased() && other.isMonthBased()) {<NEW_LINE>long paymentMonths = getPeriod().toTotalMonths();<NEW_LINE>long accrualMonths = other.getPeriod().toTotalMonths();<NEW_LINE>if ((paymentMonths % accrualMonths) == 0) {<N... | .getPeriod().getDays(); |
979,150 | public File runFilter(final File file, final Map<String, String[]> parameters) {<NEW_LINE>final int qualityParam = parameters.get(getPrefix() + "q") != null ? Integer.parseInt(parameters.get(getPrefix() + "q")[0]) : 85;<NEW_LINE>Float quality = new Float(qualityParam);<NEW_LINE>quality = quality / 100;<NEW_LINE>final F... | writeParam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT); |
1,360,631 | public static InstanceExchangeFilterFunction rewriteEndpointUrl() {<NEW_LINE>return (instance, request, next) -> {<NEW_LINE>if (request.url().isAbsolute()) {<NEW_LINE>log.trace("Absolute URL '{}' for instance {} not rewritten", request.url(<MASK><NEW_LINE>if (request.url().toString().equals(instance.getRegistration().g... | ), instance.getId()); |
1,785,981 | public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespac... | localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
192,492 | public void onClick(View v) {<NEW_LINE>handler.removeCallbacks(ask2);<NEW_LINE>synchronized (AppState.get().tabsOrder7) {<NEW_LINE>AppState.get().tabsOrder7 = "";<NEW_LINE>for (int i = 0; i < dragLinearLayout.getChildCount(); i++) {<NEW_LINE>View child = dragLinearLayout.getChildAt(i);<NEW_LINE>boolean isVisible = ((Ch... | AppState.get().tabsOrder7); |
1,623,999 | int runCmd(CommandLine cmdLine) throws Exception {<NEW_LINE>UpdateBookieInLedgerCommand cmd = new UpdateBookieInLedgerCommand();<NEW_LINE>UpdateBookieInLedgerCommand.UpdateBookieInLedgerFlags flags = new UpdateBookieInLedgerCommand.UpdateBookieInLedgerFlags();<NEW_LINE>final String srcBookie = cmdLine.getOptionValue("s... | cmdLine, "limit", Integer.MIN_VALUE); |
634,341 | public final void printHelp(final PrintStream out) {<NEW_LINE>final <MASK><NEW_LINE>final String commandName = "RolloutMigrate";<NEW_LINE>final String header = "Util to apply metasfresh migration scripts to a POstgresSQL database. The database settings are read from a settings (properties) file.\n" + "The tool will by ... | PrintWriter writer = new PrintWriter(out); |
1,333,575 | public void process(@Nonnull DiffFragment fragment, @Nonnull FragmentsCollector collector) throws FilesTooBigForDiffException {<NEW_LINE>DiffString text1 = fragment.getText1();<NEW_LINE>DiffString text2 = fragment.getText2();<NEW_LINE>if (!fragment.isEqual()) {<NEW_LINE>if (myComparisonPolicy.isEqual(fragment))<NEW_LIN... | ] lines1 = text1.tokenize(); |
1,682,140 | public void emitCode(CompilationResultBuilder crb, AArch64MacroAssembler masm) {<NEW_LINE>Register byteArrayLength = asRegister(temp1);<NEW_LINE>try (ScratchRegister sc1 = masm.getScratchRegister();<NEW_LINE>ScratchRegister sc2 = masm.getScratchRegister()) {<NEW_LINE>Label breakLabel = new Label();<NEW_LINE>Label scala... | Register scratch = sc2.getRegister(); |
328,747 | private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Ingress body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException {<NEW_LINE>// verify the required parameter 'name' is set<NEW_LINE>if (name == ... | dryRun, fieldManager, fieldValidation, _callback); |
1,842,801 | public void playTTSN() {<NEW_LINE>if (contentList.size() < 1) {<NEW_LINE>RxBus.get().post(RxBusTag.ALOUD_STATE, Status.NEXT);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (ttsInitSuccess && !speak && requestFocus()) {<NEW_LINE>speak = !speak;<NEW_LINE>RxBus.get().post(RxBusTag.ALOUD_STATE, Status.PLAY);<NEW_LINE>updateNotif... | TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "content"); |
1,848,869 | private void verifySelection() {<NEW_LINE>logger.debug("--- Verifying selection ---");<NEW_LINE>OWLSelectionModel selectionModel = getOWLSelectionModel();<NEW_LINE>OWLClass lastSelectedClass = selectionModel.getLastSelectedClass();<NEW_LINE><MASK><NEW_LINE>OWLObjectProperty lastSelectedObjectProperty = selectionModel.g... | logger.debug("Last selected class: {}", lastSelectedClass); |
96,702 | final CreatePartnerEventSourceResult executeCreatePartnerEventSource(CreatePartnerEventSourceRequest createPartnerEventSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPartnerEventSourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | (super.beforeMarshalling(createPartnerEventSourceRequest)); |
199,429 | 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... | add(new AddHeadersPolicy(headers)); |
559,590 | private ResponseSpec testJsonFormDataRequestCreation(String param, String param2) throws WebClientResponseException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'param' is set<NEW_LINE>if (param == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'par... | localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); |
935,818 | private ITranslatableString buildInstanceAttributeDescription(@NonNull final I_M_AttributeInstance ai) {<NEW_LINE>final AttributeId attributeId = AttributeId.ofRepoId(ai.getM_Attribute_ID());<NEW_LINE>final I_M_Attribute attribute = attributesRepo.getAttributeById(attributeId);<NEW_LINE>final IStringExpression descript... | evaluate(ctx, OnVariableNotFound.Preserve); |
1,787,843 | public void addToMap(RCTMGLMapView mapView) {<NEW_LINE>mMapView = mapView;<NEW_LINE>mMap = mapView.getMapboxMap();<NEW_LINE>T existingSource = mMap.<T>getSourceAs(mID);<NEW_LINE>if (existingSource != null) {<NEW_LINE>mSource = existingSource;<NEW_LINE>} else {<NEW_LINE>mSource = makeSource();<NEW_LINE>mMap.addSource(mS... | .get(i), i); |
623,904 | BarEntry createEntry(ReadableArray values, int index) {<NEW_LINE>BarEntry entry;<NEW_LINE>float x = index;<NEW_LINE>if (ReadableType.Map.equals(values.getType(index))) {<NEW_LINE>ReadableMap map = values.getMap(index);<NEW_LINE>if (map.hasKey("x")) {<NEW_LINE>x = (float) map.getDouble("x");<NEW_LINE>}<NEW_LINE>if (Read... | + values.getType(index)); |
653,016 | public void run() {<NEW_LINE>// set current threads classloader to the webapp classloader<NEW_LINE>Thread.currentThread().setContextClassLoader(webClassLoader);<NEW_LINE>// create a spring web application context<NEW_LINE>XmlWebApplicationContext appctx = new XmlWebApplicationContext();<NEW_LINE>appctx.setClassLoader(w... | parentAppCtx = contextLoader.getContext(defaultParentContextKey); |
117,506 | private void executeScript(DBRProgressMonitor monitor, Connection connection, Reader ddlStream, boolean logQueries) throws SQLException, IOException, DBException {<NEW_LINE>// Read DDL script<NEW_LINE>String ddlText = IOUtils.readToString(ddlStream);<NEW_LINE>// Translate script to target dialect<NEW_LINE>DBPPreference... | ddl = ddlText.split(";"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.