idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
108,832 | private double evaluateConstrainedQuadraticFunction1D(double a, double b, double c, double lowerBound, double upperBound, double[] result, double resultValue) {<NEW_LINE>// has max if a < 0<NEW_LINE>boolean hasMax = a < 0.0;<NEW_LINE>double argmax = Double.NaN;<NEW_LINE>double max = Double.NEGATIVE_INFINITY;<NEW_LINE>i... | * lowerBound + b * lowerBound + c; |
1,424,670 | public void marshall(SendEmailRequest sendEmailRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sendEmailRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sendEmailRequest.getFromEmailAddress... | sendEmailRequest.getConfigurationSetName(), CONFIGURATIONSETNAME_BINDING); |
223,906 | public Object execute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>final Module m = getModuleFromContext((IEvaluationContext) event.getApplicationContext());<NEW_LINE>final Job j = new ToolboxJob("Removing module...") {<NEW_LINE><NEW_LINE>protected IStatus run(final IProgressMonitor monitor) {<NEW_LINE>tr... | page.closeEditor(editor, true); |
616,233 | private static void createEndpoints(CoapServer server, int unicastPort, int multicastPort, Configuration config) {<NEW_LINE>// UDPConnector udpConnector = new UDPConnector(new<NEW_LINE>// InetSocketAddress(unicastPort));<NEW_LINE>// udpConnector.setReuseAddress(true);<NEW_LINE>// CoapEndpoint coapEndpoint = new<NEW_LIN... | setConnector(udpConnector).build(); |
426,091 | private void testRE2C(int t, String re, String text, String exp) {<NEW_LINE>showTest(t);<NEW_LINE>String actual = "";<NEW_LINE>long reg = RE2C.regcomp(re, this.re2c_nfa, this.re2c_regless, false, false, false);<NEW_LINE>if (reg == 0) {<NEW_LINE>System.out.printf("regcomp failed on RE %s\n", re);<NEW_LINE>}<NEW_LINE>int... | RE2C.getEndOffset(reg, i); |
1,355,008 | public static void importAllBookmarksFromJson(final FragmentActivity a, final Runnable onSuccess) {<NEW_LINE>if (PrefDialogs.isBookSeriviceIsRunning(a)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sampleName = "Bookmarks-All-" + ExportSettingsManager.getSampleJsonConfigName(a, ".JSON.txt");<NEW_LINE>ChooserDialogFrag... | Toast.LENGTH_LONG).show(); |
1,213,597 | private static MemoryIO convertToStringMemoryIO(IRubyObject parameter, ThreadContext context, CachingCallSite callSite, boolean isDirect, boolean checkStringSafety) {<NEW_LINE>DynamicMethod conversionMethod;<NEW_LINE>if (parameter instanceof RubyString) {<NEW_LINE>return StringParameterStrategy.getMemoryIO((RubyString)... | getMethodName(), Block.NULL_BLOCK); |
1,411,209 | public void start(Monkey monkey, Runnable command) {<NEW_LINE>long cycle = TimeUnit.MILLISECONDS.convert(frequency(), frequencyUnit());<NEW_LINE>// go back 1 cycle to see if we have any events<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>cal.add(Calendar.MILLISECOND, (int<MASK><NEW_LINE>Date then = cal.getT... | ) (-1 * cycle)); |
1,811,391 | private void verifyJdk(File jdkExtractDirectory, Jdk jdk) throws MojoExecutionException {<NEW_LINE>String algo = Algorithm.SHA_256.formatted();<NEW_LINE>String checksum = jdk.getChecksum();<NEW_LINE>if (checksum.contains("/")) {<NEW_LINE>String[] parts = checksum.split("/");<NEW_LINE>algo = parts[0];<NEW_LINE>checksum ... | jdkExtractDirectory, filename).toPath(); |
1,141,318 | static Stream<RetrieveResult> retrieve(String graphToken, Kernel kernel, long numSilentQueryDrops) throws TransactionFailureException {<NEW_LINE>Map<String, Object> systemData = new HashMap<>();<NEW_LINE>systemData.put("jvmMemoryFree", Runtime.getRuntime().freeMemory());<NEW_LINE>systemData.put("jvmMemoryTotal", Runtim... | "availableProcessors", os.getAvailableProcessors()); |
666,874 | final GetNetworkProfileResult executeGetNetworkProfile(GetNetworkProfileRequest getNetworkProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getNetworkProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
65,013 | public void write(DataOutput out) throws IOException {<NEW_LINE>super.write(out);<NEW_LINE>Map<String, String> serializeMap = Maps.newHashMap();<NEW_LINE>serializeMap.put(ODBC_CATALOG_RESOURCE, odbcCatalogResourceName);<NEW_LINE>serializeMap.put(ODBC_HOST, host);<NEW_LINE><MASK><NEW_LINE>serializeMap.put(ODBC_USER, use... | serializeMap.put(ODBC_PORT, port); |
702,957 | // helper routine to print out usage<NEW_LINE>public void usage() {<NEW_LINE>System.out.println("Usage: " + myName() + " [option]*");<NEW_LINE>System.out.println(" where [option] can be:");<NEW_LINE>System.out.println(" -help | -? Action: show this help");<NEW_LINE>System.out.println(" -Xrealtim... | System.out.println(" -[no]aot also perform AOT compilation on methods after storing classes into cache (default is aot)"); |
233,916 | public static ValuePreference start(GridField mField, Object aValue, String aDisplayValue) {<NEW_LINE>if (!mField.isEditable(false)) {<NEW_LINE>log.info("Field not editable (R/O)");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Set Value/DisplayValue<NEW_LINE>String Value = null;<NEW_LINE>String DisplayValue = null;<NEW... | int AD_Window_ID = mField.getAD_Window_ID(); |
160,577 | public Object visit(ASTReference node, Object data) {<NEW_LINE>String variableName = node.literal();<NEW_LINE>if (variableName.startsWith("$")) {<NEW_LINE>variableName = variableName.substring(1, variableName.length());<NEW_LINE>}<NEW_LINE>if (!foreachStack.isEmpty()) {<NEW_LINE>Foreach currentForeach = foreachStack.pe... | getSequence() + field, true); |
1,596,617 | public ResourceGroup unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceGroup resourceGroup = new ResourceGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | class).unmarshall(context)); |
209,232 | private void refineEq(Node left, AnnotationMirror leftAnno, Node right, AnnotationMirror rightAnno, CFStore store) {<NEW_LINE>UBQualifier leftQualifier = UBQualifier.createUBQualifier(leftAnno, (UpperBoundChecker) atypeFactory.getChecker());<NEW_LINE>UBQualifier rightQualifier = UBQualifier.createUBQualifier(rightAnno,... | Node> internalsRight = splitAssignments(right); |
135,369 | private void initFields() {<NEW_LINE>String address = instance.getProperty(PayaraModule.DEBUG_PORT);<NEW_LINE>SpinnerNumberModel addressModel = (SpinnerNumberModel) addressValue.getModel();<NEW_LINE>javaPlatforms = JavaUtils.findSupportedPlatforms(this.instance);<NEW_LINE>((JavaPlatformsComboBox) javaComboBox).updateMo... | getProperty(PayaraModule.USE_IDE_PROXY_FLAG))); |
1,279,069 | public static JerseyEurekaHttpClientFactory create(EurekaClientConfig clientConfig, Collection<ClientFilter> additionalFilters, InstanceInfo myInstanceInfo, AbstractEurekaIdentity clientIdentity, Optional<SSLContext> sslContext, Optional<HostnameVerifier> hostnameVerifier) {<NEW_LINE>boolean useExperimental = "true".eq... | (clientConfig.getExperimental("JerseyEurekaHttpClientFactory.useNewBuilder")); |
134,792 | public void writeTo(io.protostuff.Output output, org.apache.drill.common.types.TypeProtos.MajorType message) throws java.io.IOException {<NEW_LINE>if (message.hasMinorType())<NEW_LINE>output.writeEnum(1, message.getMinorType().getNumber(), false);<NEW_LINE>if (message.hasMode())<NEW_LINE>output.writeEnum(2, message.get... | message.getWidth(), false); |
461,755 | public static void generateInstructionsToUnpackArrayAccordingToDescriptor(MethodVisitor mv, String toCallDescriptor, int arrayVariableIndex) {<NEW_LINE>int arrayIndex = 0;<NEW_LINE>int descriptorIndex = 1;<NEW_LINE>char ch;<NEW_LINE>while ((ch = toCallDescriptor.charAt(descriptorIndex)) != ')') {<NEW_LINE>mv.visitVarIn... | indexOf(';', descriptorIndex + 1); |
1,046,525 | private void initComponents() {<NEW_LINE>GridBagConstraints gridBagConstraints;<NEW_LINE>JLabel textLabel = new JLabel();<NEW_LINE>Mnemonics.setLocalizedText(textLabel, Bundle.SnapshotsWindowUI_lblNewFile());<NEW_LINE>textLabel.setAlignmentX(JLabel.LEFT_ALIGNMENT);<NEW_LINE>textField = new JTextField();<NEW_LINE>textLa... | .getPreferredSize().height)); |
47,904 | protected int createEditor(Composite parent, List<ICommandParameter> parameters, int currentIndex, List<IParameterEditor> editorList, boolean showLabel) {<NEW_LINE>if (parameters != null && currentIndex >= 0 && currentIndex < parameters.size()) {<NEW_LINE>ICommandParameter parameter = parameters.get(currentIndex);<NEW_... | editor = getJavaEditor(parameter, showLabel); |
557,743 | protected void createFieldEditors() {<NEW_LINE>appearanceComposite = getFieldEditorParent();<NEW_LINE>createMarkOccurrenceOptions(appearanceComposite);<NEW_LINE><MASK><NEW_LINE>Composite group = AptanaPreferencePage.createGroup(appearanceComposite, Messages.CommonEditorPreferencePage_Folding);<NEW_LINE>group.setLayout(... | createTextEditingOptions(appearanceComposite, Messages.CommonEditorPreferencePage_Text_Editing_Label); |
310,173 | public void marshall(ReserveContactRequest reserveContactRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reserveContactRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(reserveContactRequest... | e.getMessage(), e); |
936,857 | public void partialParse() {<NEW_LINE>for (; ; ) {<NEW_LINE>Op op = highest();<NEW_LINE>if (op == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Token t;<NEW_LINE>switch(op.type) {<NEW_LINE>case POSTFIX:<NEW_LINE>t = call(op, ImmutableList.of(op.previous));<NEW_LINE>replace(t, op.previous.previous, op.next);<NEW_LI... | .of(op.next)); |
1,670,598 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent hakimLoreweaver = game.getPermanent(source.getSourceId());<NEW_LINE>Card targetAuraCard = game.<MASK><NEW_LINE>if (controller != null && hakimLoreweaver != null && controller.canRe... | getCard(source.getFirstTarget()); |
893,890 | public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId<MASK><NEW_LINE>List<DdsRegion> regions = new ArrayList<DdsRegion>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("DescribeRegionsResponse.Regions.... | (_ctx.stringValue("DescribeRegionsResponse.RequestId")); |
1,061,905 | final public Expression UnaryExpressionNotPlusMinus() throws ParseException {<NEW_LINE>Expression ret;<NEW_LINE>UnaryExpr.Operator op;<NEW_LINE>Position begin = INVALID;<NEW_LINE>switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {<NEW_LINE>case BANG:<NEW_LINE>case TILDE:<NEW_LINE>{<NEW_LINE>switch((jj_ntk == -1) ? jj_ntk_f(... | ()), ret, op); |
998,585 | public void onNewToken(String token) {<NEW_LINE>final String deviceToken = token;<NEW_LINE>final FirebaseMessagingService serviceRef = (this.mFirebaseServiceDelegate == <MASK><NEW_LINE>Log.d(LOG_TAG, "Refreshed token: " + deviceToken);<NEW_LINE>Handler handler = new Handler(Looper.getMainLooper());<NEW_LINE>handler.pos... | null) ? this : this.mFirebaseServiceDelegate; |
270,433 | public void execute(RenderHandler handler, SysApp app, SysUser user) throws IOException, Exception {<NEW_LINE>String uuid = handler.getString("uuid");<NEW_LINE>String username = handler.getString("username");<NEW_LINE>boolean result = false;<NEW_LINE>if (CommonUtils.notEmpty(uuid) && CommonUtils.notEmpty(username)) {<N... | .randomUUID().toString(); |
1,743,388 | public ListGroupMembershipsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListGroupMembershipsResult listGroupMembershipsResult = new ListGroupMembershipsResult();<NEW_LINE>listGroupMembershipsResult.setStatus(context.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LIN... | getHttpResponse().getStatusCode()); |
1,853,670 | public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>getLog().info("Going to measure the coverage of manually written test cases with EvoSuite");<NEW_LINE>Set<String> cp = new LinkedHashSet<>();<NEW_LINE>// Get compile elements (i.e., classes under /target/classes)<NEW_LINE>List<String> ... | .getRuntimeClasspathElements(this.project)); |
1,199,398 | public void marshall(ListPackageVersionsRequest listPackageVersionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listPackageVersionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listPa... | listPackageVersionsRequest.getPackage(), PACKAGE_BINDING); |
1,231,238 | public void run() {<NEW_LINE>List<String> missingHosts = new ArrayList<String>();<NEW_LINE>// runnable used for scheduled executor..<NEW_LINE>for (DynamicVirtualHost host : hostMap.values()) {<NEW_LINE><MASK><NEW_LINE>if (transportMap.get(name) == null) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugE... | String name = host.getName(); |
558,047 | protected List<ExecutionEntity> resolveActiveExecutions(String processInstanceId, String activityId, CommandContext commandContext) {<NEW_LINE>ExecutionEntityManager executionEntityManager = CommandContextUtil.getExecutionEntityManager(commandContext);<NEW_LINE>ExecutionEntity processExecution = executionEntityManager.... | findChildExecutionsByProcessInstanceId(processExecution.getId()); |
1,625,227 | public void run() {<NEW_LINE>int flag = 0;<NEW_LINE>if (includeTargetFragment) {<NEW_LINE>flag = FragmentManager.POP_BACK_STACK_INCLUSIVE;<NEW_LINE>}<NEW_LINE>List<Fragment> willPopFragments = SupportHelper.<MASK><NEW_LINE>final ISupportFragment top = getTopFragmentForStart(from, fm);<NEW_LINE>if (top == null)<NEW_LINE... | getWillPopFragments(fm, fragmentTag, includeTargetFragment); |
173,831 | private void deleteFile(File fileToDelete) {<NEW_LINE>verifyStoragePermissions();<NEW_LINE>// removeThumbnails(RhodesActivity.getContext().getContentResolver(), null);<NEW_LINE>final String strFileToDelete = fileToDelete.toString();<NEW_LINE>new Timer().schedule(new TimerTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>p... | Logger.T(TAG, "fileToDelete.getCanonicalFile().delete(); failed."); |
1,539,448 | public <T> Object execute(T... args) {<NEW_LINE>String topologyName = (String) args[0];<NEW_LINE>try {<NEW_LINE>checkError(conf, topologyName);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new RuntimeException(e);<NEW_LINE>}<NEW_LINE>Map stormConf = Utils.readStormConfig();<NEW_LINE>stormConf.putAll(conf);<NEW_LINE>... | String key = entry.getKey(); |
376,666 | public RegisteredUserEmbeddingExperienceConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RegisteredUserEmbeddingExperienceConfiguration registeredUserEmbeddingExperienceConfiguration = new RegisteredUserEmbeddingExperienceConfiguration();<NEW_LINE>int originalDepth = context.getCurr... | ().unmarshall(context)); |
1,130,093 | public ResponseHeader execute() {<NEW_LINE>LogicSQL logicSQL = getLogicSQL();<NEW_LINE>ExecutionContext executionContext = getKernelProcessor().generateExecutionContext(logicSQL, getMetaData(), ProxyContext.getInstance().getContextManager().getMetaDataContexts().getProps());<NEW_LINE>// TODO move federation route logic... | .getContextManager().getMetaDataContexts(); |
97,169 | public static void registerAll(ObjectMapper mapper) {<NEW_LINE>SimpleModule module = new SimpleModule();<NEW_LINE>module.addSerializer(ErrorResponse.class, new ErrorResponseSerializer()).addDeserializer(ErrorResponse.class, new ErrorResponseDeserializer()).addSerializer(TableIdentifier.class, new TableIdentifierSeriali... | .class, new UnboundSortOrderDeserializer()); |
1,600,413 | public Path mkdir(final Path folder, final TransferStatus status) throws BackgroundException {<NEW_LINE>final Path encrypt = vault.encrypt(session, folder, random.random(), false);<NEW_LINE>final String directoryId = encrypt.attributes().getDirectoryId();<NEW_LINE>;<NEW_LINE>// Create metadata file for directory<NEW_LI... | Path intermediate = encrypt.getParent(); |
1,023,979 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_dnscrypt_run, container, false);<NEW_LINE>btnDNSCryptStart = view.findViewById(R.id.btnDNSCryptStart);<NEW_LINE>// Not required for a portrait orientation, so retur... | ViewTreeObserver observer = svDNSCryptLog.getViewTreeObserver(); |
484,744 | /* Build call for policiesMediationMediationPolicyIdPut */<NEW_LINE>private com.squareup.okhttp.Call policiesMediationMediationPolicyIdPutCall(String mediationPolicyId, Mediation body, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final Progr... | , progressListener)).build(); |
587,123 | public static void main(String[] args) {<NEW_LINE>final CliBuilder<Runnable> builder = Cli.builder("druid");<NEW_LINE>builder.withDescription("Druid command-line runner.").withDefaultCommand(Help.class).withCommands(Help.class, Version.class);<NEW_LINE>List<Class<? extends Runnable>> serverCommands = Arrays.asList(CliC... | System.out.println("ERROR!!!!"); |
567,814 | private void dealWithUnsatisifedXMLTimers(Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers1ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers0ParmByMethodName, BeanMetaData bmd) throws EJBConfigurationException {<NEW_LINE>String oneMethodInError = null;<NEW_LINE>String last1ParmError = d... | last0ParmError = dealWithUnsatisfiedXMLTimers(timers0ParmByMethodName, bmd); |
683,460 | public static DescribeFrontVulPatchListResponse unmarshall(DescribeFrontVulPatchListResponse describeFrontVulPatchListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFrontVulPatchListResponse.setRequestId<MASK><NEW_LINE>List<FrontPatchItem> frontPatchList = new ArrayList<FrontPatchItem>();<NEW_LINE>for (int i = ... | (_ctx.stringValue("DescribeFrontVulPatchListResponse.RequestId")); |
789,232 | private static WGLCapabilities createCapabilitiesWGL(long hdc) {<NEW_LINE>FunctionProvider functionProvider = GL.functionProvider;<NEW_LINE>if (functionProvider == null) {<NEW_LINE>throw new IllegalStateException("OpenGL library has not been loaded.");<NEW_LINE>}<NEW_LINE>String extensionsString = null;<NEW_LINE>long w... | = memASCII(callP(wglGetExtensionsString)); |
1,557,004 | private void verify(String clazz, byte[] data, Map<String, Boolean> loadable, ClassLoader loader, AtomicInteger maxWarn) throws IOException, BuildException {<NEW_LINE>// log("Verifying linkage of " + clazz.replace('/', '.'), Project.MSG_DEBUG);<NEW_LINE>Set<String> dependencies = dependencies(data);<NEW_LINE>// System.... | exists = loadable.get(clazz2); |
854,094 | private void updateProjectMetadata() {<NEW_LINE>Document doc = createNewDocument();<NEW_LINE>Element root = doc.createElementNS(AntBuildExtenderAccessor.AUX_NAMESPACE, AntBuildExtenderAccessor.ELEMENT_ROOT);<NEW_LINE>if (extensions != null) {<NEW_LINE>FileObject nbproj = implementation.getOwningProject().getProjectDire... | AntBuildExtenderAccessor.AUX_NAMESPACE, AntBuildExtenderAccessor.ELEMENT_DEPENDENCY); |
1,365,136 | private void execPostAPICall(String host, int port, final String username, final String pass, final HTTPClient client, final LinkedHashMap<String, Integer> results, final MultiProtocolURL apiURL, final boolean isTokenProtectedAPI) throws MalformedURLException {<NEW_LINE>Map<String, ContentBody> post = new HashMap<>();<... | (a.getValue())); |
1,459,884 | public void validCondition() {<NEW_LINE>if (definition == null)<NEW_LINE>return;<NEW_LINE>FieldCondition condition = definition.getConditionValid(null);<NEW_LINE>if (condition == null)<NEW_LINE>return;<NEW_LINE>Row currentRow = getCurrentRow();<NEW_LINE>String divStyle = DIVSTYLE;<NEW_LINE>GridField[<MASK><NEW_LINE>// ... | ] gridField = gridTab.getFields(); |
518,699 | public void validateCall(SqlCall call, SqlValidatorScope scope) {<NEW_LINE>final SqlOperator operator = call.getOperator();<NEW_LINE>if ((call.operandCount() == 0) && (operator.getSyntax() == SqlSyntax.FUNCTION_ID) && !call.isExpanded() && !conformance.allowNiladicParentheses()) {<NEW_LINE>// For example, "LOCALTIME()"... | (call.toString())); |
1,432,330 | public static DescribeMetaListResponse unmarshall(DescribeMetaListResponse describeMetaListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeMetaListResponse.setRequestId(_ctx.stringValue("DescribeMetaListResponse.RequestId"));<NEW_LINE>describeMetaListResponse.setDBInstanceName(_ctx.stringValue("DescribeMetaListR... | (_ctx.integerValue("DescribeMetaListResponse.PageRecordCount")); |
1,514,863 | public Response doInvoke(Invocation invocation, SwaggerProducerOperation producerOperation) {<NEW_LINE>Response response;<NEW_LINE>try {<NEW_LINE>invocation.onBusinessMethodStart();<NEW_LINE>Object[] args = invocation.toProducerArguments();<NEW_LINE>for (ProducerInvokeExtension producerInvokeExtension : producerOperati... | response = processException(invocation, e); |
233,961 | public void addColumn(String name, Function<T, String> getter, BiConsumer<T, String> setter) {<NEW_LINE>TreeTableColumn<RecursiveWrapper<T>, String> column = new TreeTableColumn<>(name);<NEW_LINE>var columnIdx = table.getColumns().size();<NEW_LINE>loadPrefWidthOfColumn(column, columnIdx);<NEW_LINE>column.setCellFactory... | getColumns().add(column); |
571,605 | public static String shortTime(String t, int n) {<NEW_LINE>n = n < 8 ? n : 8;<NEW_LINE>if (!isBlank(t)) {<NEW_LINE>if (t.startsWith("NOT_IMPLEMENTED")) {<NEW_LINE>return t.length() > 15 ? t.substring(15) : " ";<NEW_LINE>}<NEW_LINE>int <MASK><NEW_LINE>// Throw out the decimal portion, if any<NEW_LINE>if (i > -1) {<NEW_L... | i = t.indexOf('.'); |
1,307,827 | public void select(Iterable<Node> nodes) {<NEW_LINE>boolean foundAtLeastOne = false;<NEW_LINE>for (Node node : nodes) {<NEW_LINE>Map<String, List<String>> attributes = node.getAttributes();<NEW_LINE>if (attributes == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>List<String> values = attributes.get(key);<NEW_LINE>if (... | .next().getAttributes(); |
1,020,681 | public void collectUsageContexts(final ImmutableCollection.Builder<UsageContext> outgoing) {<NEW_LINE>if (!outgoingConfiguration.isTransitive()) {<NEW_LINE>DeprecationLogger.warnOfChangedBehaviour("Publication ignores 'transitive = false' at configuration level.", "Consider using 'transitive = false' at the dependency ... | String outgoingConfigurationName = outgoingConfiguration.getName(); |
719,330 | public SofaRpcDecodePacket decode(ChannelHandlerContext ctx, DynamicCompositeByteBuf in, boolean isDecodingRequest) throws BadSchemaException, TooBigDataException, NotEnoughDataException {<NEW_LINE>if (in.readableBytes() < FIXED_LEN) {<NEW_LINE>throw notEnoughDataException;<NEW_LINE>}<NEW_LINE>ByteBuf fixHeaderBuf = in... | (int) fixHeaderBuf.readLongLE(); |
1,494,095 | default Constraint cycle(UndirectedGraphVar g) {<NEW_LINE>int m = 0;<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>m += g.getPotentialNeighborsOf(i).size();<NEW_LINE>}<NEW_LINE>m /= 2;<NEW_LINE>Propagator pMaxDeg = new PropNodeDegreeAtMostIncr(g, 2);<NEW_LINE>if (g.getMandatoryNodes().size() <= 1) {<N... | int n = g.getNbMaxNodes(); |
805,163 | public ResourceCount unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceCount resourceCount = new ResourceCount();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu... | int originalDepth = context.getCurrentDepth(); |
871,974 | private void drawArea(DrawInfo ctx) {<NEW_LINE>ctx.areaOffset = ctx.startOffset;<NEW_LINE>ctx.areaLength = ctx.endOffset - ctx.startOffset;<NEW_LINE>// Ask all the contexts first to possibly find out<NEW_LINE>// the first fragment length<NEW_LINE>ctx.layerUpdateOffset = Integer.MAX_VALUE;<NEW_LINE><MASK><NEW_LINE>for (... | int layersLength = ctx.layers.length; |
128,999 | private void createKeycloakCaches(boolean async, String... cache) {<NEW_LINE>ConfigurationBuilder sessionConfigBuilder1 = createCacheConfigurationBuilder();<NEW_LINE>ConfigurationBuilder sessionConfigBuilder2 = createCacheConfigurationBuilder();<NEW_LINE>sessionConfigBuilder1.clustering().cacheMode(async ? <MASK><NEW_L... | CacheMode.REPL_ASYNC : CacheMode.REPL_SYNC); |
1,791,725 | private Object createCglibProxyForFactoryBean(Object factoryBean, ConfigurableBeanFactory beanFactory, String beanName) {<NEW_LINE>Enhancer enhancer = new Enhancer();<NEW_LINE>enhancer.setSuperclass(factoryBean.getClass());<NEW_LINE>enhancer.setNamingPolicy(SpringNamingPolicy.INSTANCE);<NEW_LINE><MASK><NEW_LINE>// Idea... | enhancer.setCallbackType(MethodInterceptor.class); |
1,428,959 | public int loadComponents(InputStream in) {<NEW_LINE>long time = System.nanoTime();<NEW_LINE>int count = 0;<NEW_LINE>try {<NEW_LINE>in.mark(32);<NEW_LINE>DataStreamReader reader = new DataStreamReader(in);<NEW_LINE>long delta = SerializationUtil.readNanotimeSynchronizationMark(reader);<NEW_LINE>String mark = Serializat... | info("Mismatch, {} != {}", MARK, mark); |
784,819 | public EmailTemplateContent unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EmailTemplateContent emailTemplateContent = new EmailTemplateContent();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
1,654,033 | public static DeploymentState aggregateState(Set<DeploymentState> states) {<NEW_LINE>if (states.size() == 1) {<NEW_LINE>DeploymentState state = states.iterator().next();<NEW_LINE>logger.debug("aggregateState: Deployment State Set Size = 1. Deployment State " + state);<NEW_LINE>// a stream which is known to the stream ... | debug("aggregateState: Returning " + DeploymentState.failed); |
1,066,366 | public void init(Map<String, String> writerOptions) throws IOException {<NEW_LINE>this.location = writerOptions.get("location");<NEW_LINE>this.prefix = writerOptions.get("prefix");<NEW_LINE>fs = FileSystem.get(conf);<NEW_LINE>blockSize = Integer.parseInt(writerOptions.get(ExecConstants.PARQUET_BLOCK_SIZE));<NEW_LINE>pa... | double) blockSize / BLOCKSIZE_MULTIPLE) * BLOCKSIZE_MULTIPLE; |
229,671 | public StopEventsDetectionJobResult stopEventsDetectionJob(StopEventsDetectionJobRequest stopEventsDetectionJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopEventsDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
775,806 | public static ListAccessNumberResponse unmarshall(ListAccessNumberResponse listAccessNumberResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAccessNumberResponse.setRequestId(_ctx.stringValue("ListAccessNumberResponse.RequestId"));<NEW_LINE>listAccessNumberResponse.setCode(_ctx.stringValue("ListAccessNumberResponse.Co... | ("ListAccessNumberResponse.Data[" + i + "].Percent")); |
1,469,701 | protected void consumeWithClause() {<NEW_LINE>int length = this.astLengthStack[this.astLengthPtr--];<NEW_LINE>this.astPtr -= length;<NEW_LINE>ProvidesStatement service = (ProvidesStatement) this.astStack[this.astPtr];<NEW_LINE>System.arraycopy(this.astStack, this.astPtr + 1, service.implementations = new TypeReference<... | [length], 0, length); |
231,403 | public NetSocket sendFile(String filename, long offset, long length, final Handler<AsyncResult<Void>> resultHandler) {<NEW_LINE>File <MASK><NEW_LINE>if (f.isDirectory()) {<NEW_LINE>throw new IllegalArgumentException("filename must point to a file and not to a directory");<NEW_LINE>}<NEW_LINE>RandomAccessFile raf = null... | f = vertx.resolveFile(filename); |
497,036 | public void run(String consumerKey, String consumerSecret, String token, String tokenSecret) throws InterruptedException, ControlStreamException, IOException {<NEW_LINE>// Create an appropriately sized blocking queue<NEW_LINE>BlockingQueue<String> queue = new LinkedBlockingQueue<String>(10000);<NEW_LINE>// Define our e... | t4jClient.getStreamId(), 12345L); |
1,706,659 | public Complex[] fft(Complex[] input) {<NEW_LINE>Complex[] x = input;<NEW_LINE>int n = x.length;<NEW_LINE>if (n == 1)<NEW_LINE>return new Complex[] { x[0] };<NEW_LINE>if (n % 2 != 0) {<NEW_LINE>x = Arrays.copyOfRange(x, 0, x.length - 1);<NEW_LINE>}<NEW_LINE>Complex[] halfArray = new Complex[n / 2];<NEW_LINE>for (int k ... | k] = new Complex(1); |
965,663 | public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/user";<NEW_... | throw new ApiException(400, "Missing the required parameter 'body' when calling createUser"); |
577,462 | public void rewriteServerbound(ByteBuf packet, int oldId, int newId) {<NEW_LINE>super.rewriteServerbound(packet, oldId, newId);<NEW_LINE>// Special cases<NEW_LINE>int readerIndex = packet.readerIndex();<NEW_LINE>int packetId = DefinedPacket.readVarInt(packet);<NEW_LINE>int packetIdLength = packet.readerIndex() - reader... | int previous = packet.writerIndex(); |
1,323,503 | private static void fillRwadefResponses(Operation swaggerOperation, org.restlet.ext.platform.internal.model.Operation operation, Contract contract, Map<String, Object> parameters) {<NEW_LINE>if (swaggerOperation == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (swaggerOperation.getResponses() != null) {<NEW_LINE>for ... | .internal.model.Response(); |
370,357 | // This was extracted the method above, because otherwise it is difficult to test what terms are included in<NEW_LINE>// the query in case a CoveringQuery is used (it does not have a getter to retrieve the clauses)<NEW_LINE>Tuple<List<BytesRef>, Map<String, List<byte[]>>> extractTermsAndRanges(IndexReader indexReader) ... | getMinPackedValue().clone()); |
704,940 | public SectionHolder parseConfigSection(String javadocComment, int sectionLevel) {<NEW_LINE>if (javadocComment == null || javadocComment.trim().isEmpty()) {<NEW_LINE>return new SectionHolder(Constants.EMPTY, Constants.EMPTY);<NEW_LINE>}<NEW_LINE>// the parser expects all the lines to start with "* "<NEW_LINE>// we add ... | Constants.EMPTY).trim(); |
1,553,741 | /* (non-Javadoc)<NEW_LINE>* @see com.dotmarketing.business.PermissionFactory#assignPermissions<NEW_LINE>* @deprecated Use save(permission) instead.<NEW_LINE>*/<NEW_LINE>@WrapInTransaction<NEW_LINE>@Override<NEW_LINE>@Deprecated<NEW_LINE>public void assignPermissions(List<Permission> permissions, Permissionable permissi... | permissionable.getPermissionId(), user); |
327,669 | private void insertAssignPath(IrMethod method, Collection<LabelStmt> phiLabels) {<NEW_LINE>// FIXME the phi in Exception handler is buggy<NEW_LINE>List<AssignStmt> <MASK><NEW_LINE>for (LabelStmt labelStmt : phiLabels) {<NEW_LINE>List<AssignStmt> phis = (List<AssignStmt>) labelStmt.phis;<NEW_LINE>LiveV[] frame = (LiveV[... | buff = new ArrayList<>(); |
1,365,678 | private boolean checkStoragePermissions(final AppCompatActivity activity) {<NEW_LINE>boolean result = true;<NEW_LINE>String[] requiredPerms;<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {<NEW_LINE>// noinspection InlinedApi<NEW_LINE>requiredPerms = new String[] { Manifest.permission.WRITE_EXTER... | ] { Manifest.permission.WRITE_EXTERNAL_STORAGE }; |
1,287,505 | public static ResourceRepresentation toRepresentation(Resource model, ResourceServer resourceServer, AuthorizationProvider authorization, Boolean deep) {<NEW_LINE>ResourceRepresentation resource = new ResourceRepresentation();<NEW_LINE>resource.setId(model.getId());<NEW_LINE>resource.setType(model.getType());<NEW_LINE>... | KeycloakSession keycloakSession = authorization.getKeycloakSession(); |
684,087 | private String simpleName(Tree t) {<NEW_LINE>if (t == null) {<NEW_LINE>return Bundle.DisplayName_Unknown();<NEW_LINE>}<NEW_LINE>if (t.getKind() == Kind.IDENTIFIER) {<NEW_LINE>return ((IdentifierTree) t).getName().toString();<NEW_LINE>}<NEW_LINE>if (t.getKind() == Kind.MEMBER_SELECT) {<NEW_LINE>return ((MemberSelectTree... | .getIdentifier().toString(); |
1,635,656 | public io.kubernetes.client.proto.V2beta2Autoscaling.MetricValueStatus buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V2beta2Autoscaling.MetricValueStatus result = new io.kubernetes.client.proto.V2beta2Autoscaling.MetricValueStatus(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<... | .averageValue_ = averageValueBuilder_.build(); |
1,154,925 | public void write(org.apache.thrift.protocol.TProtocol prot, ClusterJoinResponseMessage struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>struct.header.write(oprot);<NEW_LINE>java.util.BitSet optionals = ne... | oprot.writeBitSet(optionals, 2); |
1,200,146 | public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {<NEW_LINE>Object apiGwContext = servletRequest.getAttribute(RequestReader.API_GATEWAY_CONTEXT_PROPERTY);<NEW_LINE>if (apiGwContext == null) {<NEW_LINE>log.warn("API Gateway... | filterChain.doFilter(servletRequest, servletResponse); |
1,205,378 | private static void decode(Slime slime, String name, Inspector inspector, ConfigPayloadBuilder builder) {<NEW_LINE>switch(inspector.type()) {<NEW_LINE>case STRING:<NEW_LINE>builder.setField(name, inspector.asString());<NEW_LINE>break;<NEW_LINE>case LONG:<NEW_LINE>builder.setField(name, String.valueOf(inspector.asLong()... | array = builder.getArray(name); |
1,764,237 | public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {<NEW_LINE>final String filterId = requestContext.getRequiredParameter(0, String.class);<NEW_LINE>final List<Hash> blockHashes = filterManager.blockChanges(filterId);<NEW_LINE>if (blockHashes != null) {<NEW_LINE>return new JsonRpcSuccessRespons... | logs = filterManager.logsChanges(filterId); |
745,289 | final UpdateAliasResult executeUpdateAlias(UpdateAliasRequest updateAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,640,326 | final GetPullRequestOverrideStateResult executeGetPullRequestOverrideState(GetPullRequestOverrideStateRequest getPullRequestOverrideStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPullRequestOverrideStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
478,292 | public void writeTo(Source source, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException {<NEW_LINE>final StreamResult streamResult = new StreamResult(entityStream);<NEW_LINE>Transformer transformer;<NEW_... | setStackTrace(e.getStackTrace()); |
709,458 | public void updateIndices(SegmentDirectory.Writer segmentWriter, IndexCreatorProvider indexCreatorProvider) throws Exception {<NEW_LINE>Set<String> columnsToAddBF = new HashSet<<MASK><NEW_LINE>// Remove indices not set in table config any more.<NEW_LINE>String segmentName = _segmentMetadata.getName();<NEW_LINE>Set<Stri... | >(_bloomFilterConfigs.keySet()); |
1,459,904 | private void recreateAxolotlDb(SQLiteDatabase db) {<NEW_LINE>Log.d(Config.LOGTAG, <MASK><NEW_LINE>db.execSQL("DROP TABLE IF EXISTS " + SQLiteAxolotlStore.SESSION_TABLENAME);<NEW_LINE>db.execSQL(CREATE_SESSIONS_STATEMENT);<NEW_LINE>db.execSQL("DROP TABLE IF EXISTS " + SQLiteAxolotlStore.PREKEY_TABLENAME);<NEW_LINE>db.ex... | AxolotlService.LOGPREFIX + " : " + ">>> (RE)CREATING AXOLOTL DATABASE <<<"); |
599,226 | public Object call(final Exception e) throws Exception {<NEW_LINE>if (e instanceof NoSuchUniqueId) {<NEW_LINE>query.sendReply(HttpResponseStatus.NOT_FOUND, query.serializer().formatErrorV1(new BadRequestException(HttpResponseStatus.NOT_FOUND, "Unable to resolve one or more TSUIDs", (NoSuchUniqueId) e)));<NEW_LINE>} els... | , (NoSuchUniqueId) ex))); |
1,129,056 | private void updateFirmware(Device device, Device oldDevice) {<NEW_LINE>OtaPackageId newFirmwareId = device.getFirmwareId();<NEW_LINE>if (newFirmwareId == null) {<NEW_LINE>DeviceProfile newDeviceProfile = deviceProfileService.findDeviceProfileById(device.getTenantId(), device.getDeviceProfileId());<NEW_LINE>newFirmware... | ), oldDevice.getDeviceProfileId()); |
667,079 | private static <T> void doTranslate(Flatten.PCollections<T> transform, TransformHierarchy.Node node, TranslationContext ctx) {<NEW_LINE>final PCollection<T> output = ctx.getOutput(transform);<NEW_LINE>final List<MessageStream<OpMessage<T>>> inputStreams = new ArrayList<>();<NEW_LINE>for (Map.Entry<TupleTag<?>, PCollect... | (output, mergeInputStreams(inputStreams)); |
1,408,855 | private void handleDeposit(MenuOptionClicked event, Boolean inventory) {<NEW_LINE>ItemContainer container = client.getItemContainer(inventory ? InventoryID.INVENTORY : InventoryID.EQUIPMENT);<NEW_LINE>if (container == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Integer> items = Arrays.stream(container.getItems())... | addTags(item, tags, false); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.