idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
946,439 | private void readBundles() {<NEW_LINE>assert registered.isEmpty();<NEW_LINE>try {<NEW_LINE>InputStream is = Stamps.getModulesJARs().asStream("netigso-bundles");<NEW_LINE>if (is == null) {<NEW_LINE>File f;<NEW_LINE>try {<NEW_LINE>f = getNetigsoCache();<NEW_LINE>} catch (IllegalStateException ex) {<NEW_LINE>return;<NEW_L... | (String) entry.getKey(); |
1,195,565 | public static SearchApplicationScopesResponse unmarshall(SearchApplicationScopesResponse searchApplicationScopesResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchApplicationScopesResponse.setRequestId(_ctx.stringValue("SearchApplicationScopesResponse.RequestId"));<NEW_LINE>searchApplicationScopesResponse.setMessage(... | ("SearchApplicationScopesResponse.Content[" + i + "].AppId")); |
1,359,419 | final DeletePatchBaselineResult executeDeletePatchBaseline(DeletePatchBaselineRequest deletePatchBaselineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePatchBaselineRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeletePatc... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,001,964 | protected JComponent createCenterPanel() {<NEW_LINE>final JLabel selectText = new JLabel(VcsBundle.message("dialog.enable.version.control.integration.select.vcs.label.text"));<NEW_LINE>selectText.setUI(new MultiLineLabelUI());<NEW_LINE>final JPanel mainPanel = new JPanel(new GridBagLayout());<NEW_LINE>final GridBagCons... | mainPanel.add(helpText, gb); |
1,041,125 | synchronized public static org.omg.CORBA.TypeCode type() {<NEW_LINE>if (__typeCode == null) {<NEW_LINE>org.omg.CORBA.TypeCode _disTypeCode0;<NEW_LINE>_disTypeCode0 = org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_short);<NEW_LINE>_disTypeCode0 = org.omg.CORBA.ORB.init().create_alias_tc(com.sun.corba.... | .IOP.TaggedProfileHelper.type(); |
356,220 | public int compare(final SAMRecord samRecord1, final SAMRecord samRecord2) {<NEW_LINE>int cmp = compareCoordinates(samRecord1, samRecord2);<NEW_LINE>if (cmp != 0) {<NEW_LINE>return cmp;<NEW_LINE>}<NEW_LINE>// Test of negative strand flag is not really necessary, because it is tested<NEW_LINE>// via getFlags(), but it i... | (samRecord2.getMateReferenceName())); |
509,961 | public static boolean isAjaxRequest(WebRequest request) {<NEW_LINE>String ajaxParameter = request.getParameter(BLC_AJAX_PARAMETER);<NEW_LINE>String requestedWithHeader = request.getHeader("X-Requested-With");<NEW_LINE>boolean result = (ajaxParameter != null && "true".equals(ajaxParameter)) || "XMLHttpRequest".equals(re... | (result).append("]"); |
1,481,795 | private boolean validateScheme(byte[] handshake, int scheme) {<NEW_LINE>int digestOffset = -1;<NEW_LINE>switch(scheme) {<NEW_LINE>case 0:<NEW_LINE>digestOffset = getDigestOffset1(handshake, 0);<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>digestOffset = getDigestOffset2(handshake, 0);<NEW_LINE>break;<NEW_LINE>default:<NEW... | Constants.HANDSHAKE_SIZE - digestOffset - DIGEST_LENGTH); |
403,334 | public static StringExpression format(final String format, final Object... args) {<NEW_LINE>if (format == null) {<NEW_LINE>throw new NullPointerException("Format cannot be null.");<NEW_LINE>}<NEW_LINE>if (extractDependencies(args).length == 0) {<NEW_LINE>return StringConstant.valueOf(String.format(format, args));<NEW_L... | String.format(format, values); |
1,231,668 | protected List<Broadcast> sortAndCropBroadcastList(List<Broadcast> broadcastList, int offset, int size, String sortBy, String orderBy) {<NEW_LINE>if (("name".equals(sortBy) || "date".equals(sortBy) || "status".equals(sortBy)) && orderBy != null) {<NEW_LINE>Collections.sort(broadcastList, new Comparator<Broadcast>() {<N... | valueOf(broadcast1.getDate()); |
556,851 | public void commonSetup(FMLCommonSetupEvent event) {<NEW_LINE>ChemthrowerHandler.registerFlammable(TinkerFluids.blazingBlood.getLocalTag());<NEW_LINE>registerChemEffect(TinkerFluids.earthSlime.getForgeTag(), MobEffects.MOVEMENT_SLOWDOWN, 140);<NEW_LINE>registerChemEffect(TinkerFluids.skySlime.getLocalTag(), MobEffects.... | ), MobEffects.DIG_SLOWDOWN, 100); |
1,102,634 | public static String guessSimpleJavaType(GlobalElement element) {<NEW_LINE>String xsdType = null;<NEW_LINE>String javaType <MASK><NEW_LINE>if (element.getType() != null && element.getType().getEffectiveNamespace().equals(XMLConstants.W3C_XML_SCHEMA_NS_URI)) {<NEW_LINE>xsdType = element.getType().get().getName();<NEW_LI... | = Object.class.getName(); |
1,183,726 | public static CommitNoteFragment newInstance(String repoOwner, String repoName, String commitSha, Commit commit, List<GitComment> allComments, IntentUtils.InitialCommentMarker initialComment) {<NEW_LINE>CommitNoteFragment f = new CommitNoteFragment();<NEW_LINE>ArrayList<GitComment> comments = new ArrayList<>();<NEW_LIN... | args.putString("repo", repoName); |
1,529,118 | public int selectBeforePoint(Long knowledgeId, int... types) {<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>List<Object> <MASK><NEW_LINE>sql.append("SELECT SUM(POINT) FROM POINT_KNOWLEDGE_HISTORIES ");<NEW_LINE>sql.append("WHERE KNOWLEDGE_ID = ? ");<NEW_LINE>params.add(knowledgeId);<NEW_LINE>sql.append("A... | params = new ArrayList<>(); |
144,688 | private Optional<Object> executeQueryMethod(final RepositoryInvoker invoker, @RequestParam MultiValueMap<String, Object> parameters, Method method, DefaultedPageable pageable, Sort sort, PersistentEntityResourceAssembler assembler) {<NEW_LINE>MultiValueMap<String, Object> result = new LinkedMultiValueMap<String, Object... | > parameterList = methodParameters.getParameters(); |
1,065,177 | public void processIntent(@NonNull Intent intent) {<NEW_LINE>checkNotNull(intent);<NEW_LINE>if (!intent.hasExtra("serviceUriString")) {<NEW_LINE>Log.e(TAG, "No service uri defined");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!intent.hasExtra("listenerId")) {<NEW_LINE>Log.e(TAG, "No listener id defined");<NEW_LINE>return... | matchingFetcher.fetch(intent, listenerId); |
1,375,975 | private static JSONArray dumpCollection(ParameterizedType pt, Stack<Class> hasDone) throws JSONException {<NEW_LINE>Type st = pt.getActualTypeArguments()[0];<NEW_LINE>JSONArray arr = new JSONArray();<NEW_LINE>if (st instanceof ParameterizedType) {<NEW_LINE>ParameterizedType spt = (ParameterizedType) st;<NEW_LINE>if (Co... | oj = dumpObject(elementType, hasDone); |
851,130 | public void execute(ProcessEngine engine, String scenarioName) {<NEW_LINE>RuntimeService runtimeService = engine.getRuntimeService();<NEW_LINE>ProcessInstance processInstanceWithInitialVariables = runtimeService.createProcessInstanceQuery().processDefinitionKey("asyncBeforeStartProcess_712").processInstanceBusinessKey(... | getId(), "local", "foo1"); |
979,369 | protected void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (requestCode == REQUEST_FAVORITE_SELECT && resultCode == FavoritesListFragment.SELECT_FAVORITE_POINT_RESULT_OK) {<NEW_LINE>FavouritePoint p = (FavouritePoint) data.... | (SearchAddressFragment.SELECT_ADDRESS_POINT_LON, 0)); |
298,523 | public void marshall(RDSDataSpec rDSDataSpec, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (rDSDataSpec == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(rDSDataSpec.getDatabaseInformation(), DATABASEINFOR... | rDSDataSpec.getS3StagingLocation(), S3STAGINGLOCATION_BINDING); |
1,261,524 | // PMD does not understand Closer.<NEW_LINE>@SuppressWarnings("PMD.CloseResource")<NEW_LINE>private boolean debugPost(FileWriter outWriter, List<String> options, List<String> parameters) {<NEW_LINE>if (!isValidArgument(options, parameters, 2, 2, 2, Command.DEBUG_POST)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boole... | IOUtils.toString(inputStream, UTF_8); |
131,541 | public UpdateContactFlowModuleContentResult updateContactFlowModuleContent(UpdateContactFlowModuleContentRequest updateContactFlowModuleContentRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactFlowModuleContentRequest);<NEW_L... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
246,835 | public static Building parseJSON(JSONObject json) throws IllegalArgumentException {<NEW_LINE>Building b = new Building();<NEW_LINE>MapObject.parseJSON(json, b);<NEW_LINE>if (json.has("postcode")) {<NEW_LINE>b.postcode = json.getString("postcode");<NEW_LINE>}<NEW_LINE>if (json.has("lat2") && json.has("lon2")) {<NEW_LINE... | , json.getDouble("lon2")); |
1,220,162 | public void runInternal() {<NEW_LINE>try {<NEW_LINE>possiblyRegisterListener();<NEW_LINE>stateManager.maybeSetState(SeekableStreamSupervisorStateManager.SeekableStreamState.CONNECTING_TO_STREAM);<NEW_LINE>if (!updatePartitionDataFromStream() && !stateManager.isAtLeastOneSuccessfulRun()) {<NEW_LINE>// if we can't connec... | (true).toString()); |
1,655,265 | private void createFavouritesPulldown(Composite parent, FavouritesPreference favouritePrefs, LiveVariable<String> searchBox) {<NEW_LINE>Button btn = new Button(parent, SWT.ARROW | SWT.DOWN);<NEW_LINE>btn.addSelectionListener(new SelectionAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void widgetSelected(Selec... | ] favourites = favouritePrefs.getFavourites(); |
1,578,188 | private static void dispatchUnmatchedResponseListenerTasks(SipServletResponseImpl response, SipAppDesc appDescriptor, int taskNum) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceEntry(null, "dispatchUnmatchedRequestListenerTasks", new Object[] { response, appDescriptor, new Integer(taskNum) });... | append(response.getMethod()); |
1,832,883 | public synchronized T read(@IdParam IIdType theId, RequestDetails theRequestDetails) {<NEW_LINE>TreeMap<Long, T> versions = myIdToVersionToResourceMap.get(theId.getIdPart());<NEW_LINE>if (versions == null || versions.isEmpty()) {<NEW_LINE>throw new ResourceNotFoundException(Msg<MASK><NEW_LINE>}<NEW_LINE>T retVal;<NEW_L... | .code(1981) + theId); |
672,066 | public CodecDocument openDocumentInner(String fileName, String password) {<NEW_LINE>if (!cacheFile.isFile()) {<NEW_LINE>LOG.d("Type no cache file");<NEW_LINE>try {<NEW_LINE>if (CbzCbrExtractor.isZip(fileName)) {<NEW_LINE>CacheZipUtils.copyFile(new File(fileName), cacheFile);<NEW_LINE>} else {<NEW_LINE>String extractDir... | cacheFile.getPath(), password); |
1,347,742 | public boolean execute(@Nonnull PsiFileSystemItem element) {<NEW_LINE>if (!filter.shouldShow(element)) {<NEW_LINE>// skip<NEW_LINE>} else if (element instanceof PsiDirectory) {<NEW_LINE>result.add(new PsiDirectoryNode(project, (PsiDirectory) element, settings, filter) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Coll... | ? null : language.getAssociatedFileType(); |
603,079 | public void serialize(Point value, JsonGenerator jsonGenerator, SerializerProvider serializers) throws IOException {<NEW_LINE>String crsType = value<MASK><NEW_LINE>List<Double> coordinate = value.getCoordinate().getCoordinate();<NEW_LINE>if (crsType.startsWith(CoordinateReferenceSystem.Cartesian.toString())) {<NEW_LINE... | .getCRS().getType(); |
907,696 | protected void createHandshakeBytes() {<NEW_LINE>handshakeBytes = new byte[Constants.HANDSHAKE_SIZE];<NEW_LINE>// timestamp<NEW_LINE>int time = (int) (Red5.getUpTime() / 1000);<NEW_LINE>handshakeBytes[0] = (byte) (time >>> 24);<NEW_LINE>handshakeBytes[1] = (byte) (time >>> 16);<NEW_LINE>handshakeBytes[2] = (byte) (time... | b = ByteBuffer.allocate(randomHandshakeLength); |
586,757 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setFadeAnimation();<NEW_LINE>setWizardMode(true);<NEW_LINE>setBackButtonVisibilityWithDone(true);<NEW_LINE>// Instead of fragments, you can also use our default slide<NEW_LINE>// Just set a title, description, bac... | (R.string.intro3_desc)); |
159,887 | public void postConfig() {<NEW_LINE>if (firstMean.length != 2) {<NEW_LINE>throw new PropertyException("", "firstMean", "firstMean is not the right length");<NEW_LINE>}<NEW_LINE>if (secondMean.length != 2) {<NEW_LINE>throw new PropertyException("", "secondMean", "secondMean is not the right length");<NEW_LINE>}<NEW_LINE... | PropertyException("", "firstCovarianceMatrix", "firstCovarianceMatrix is not the right length"); |
1,367,237 | public void typeAheadUntil(@Nonnull ActionCallback callback, @Nonnull String cause) {<NEW_LINE>if (!isTypeaheadEnabled())<NEW_LINE>return;<NEW_LINE>final long currentTime = System.currentTimeMillis();<NEW_LINE>final ActionCallback done;<NEW_LINE>if (!Registry.is("type.ahead.logging.enabled")) {<NEW_LINE>done = callback... | SimpleDateFormat("dd MMM yyyy HH:ss:SSS", Locale.US); |
480,529 | public void addFormForAddAccount() {<NEW_LINE>accountNrInputTextFieldEdited = false;<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>Tuple2<ComboBox<TradeCurrency>, Integer> tuple = GUIUtil.addRegionCountryTradeCurrencyComboBoxes(gridPane, gridRow, this::onCountrySelected, this::onTradeCurrencySelected);<NEW_LINE>currency... | setBankName(newValue.trim()); |
1,145,123 | private void doUnregisterHandler(final Thing thing, final ThingHandlerFactory thingHandlerFactory) {<NEW_LINE>logger.debug("Calling unregisterHandler handler for thing '{}' at '{}'.", <MASK><NEW_LINE>safeCaller.create(() -> {<NEW_LINE>ThingHandler thingHandler = thing.getHandler();<NEW_LINE>thingHandlerFactory.unregist... | thing.getUID(), thingHandlerFactory); |
549,798 | public void onDraw(Canvas canvas, RotatedTileBox tb, DrawSettings settings) {<NEW_LINE>if (isDrawingEnabled()) {<NEW_LINE>lineAttrs.updatePaints(view.getApplication(), settings, tb);<NEW_LINE>if (!editingCtx.isInApproximationMode()) {<NEW_LINE>drawBeforeAfterPath(canvas, tb);<NEW_LINE>}<NEW_LINE>if (editingCtx.getSelec... | .get(0), true); |
400,977 | protected void attachAllCheckBoxListener(CheckBox checkBox, final PermissionVariant activeVariant) {<NEW_LINE>checkBox.addValueChangeListener(e -> {<NEW_LINE>if (itemChanging)<NEW_LINE>return;<NEW_LINE>if (entityPermissionsTable.getSelected().isEmpty())<NEW_LINE>return;<NEW_LINE>itemChanging = true;<NEW_LINE>Permission... | e.getValue(), activeVariant); |
174,390 | public void contribute(BuildContext context, AotOptions aotOptions) {<NEW_LINE>ResourceLoader resourceLoader = new DefaultResourceLoader(context.getClassLoader());<NEW_LINE>ClassLoader classLoader = context.getClassLoader();<NEW_LINE>Class<?> applicationClass;<NEW_LINE>String applicationClassName = context.getApplicati... | NativeConfigurationRegistry nativeConfigurationRegistry = writerContext.getNativeConfigurationRegistry(); |
264,724 | protected void migrateRealm(KeycloakSession session, RealmModel realm, boolean json) {<NEW_LINE>MigrationProvider migrationProvider = session.getProvider(MigrationProvider.class);<NEW_LINE>// Create "roles" and "web-origins" clientScopes<NEW_LINE>ClientScopeModel rolesScope = migrationProvider.addOIDCRolesClientScope(r... | ), webOriginsScope.getName()); |
998,602 | private void checkSyntaxOfFlags(ExecutionContext context, String flags) {<NEW_LINE>if (flags == null || flags.equals("")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < flags.length(); ++i) {<NEW_LINE>switch(flags.charAt(i)) {<NEW_LINE>case 'm':<NEW_LINE>case 'i':<NEW_LINE>case 'g':<NEW_LINE>break;<NEW_LINE... | index = flags.indexOf('g'); |
1,552,254 | public Statement convert(org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall statement) {<NEW_LINE>Statement newStatement;<NEW_LINE>int sourceStart = statement.sourceStart;<NEW_LINE>if (statement.isSuperAccess() || statement.isSuper()) {<NEW_LINE>SuperConstructorInvocation superConstructorInvocation = new Sup... | getFlags() | ASTNode.MALFORMED); |
949,963 | public DescribeDataSourcesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeDataSourcesResult describeDataSourcesResult = new DescribeDataSourcesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | )).unmarshall(context)); |
1,389,827 | /* Build call for policiesMediationMediationPolicyIdDelete */<NEW_LINE>private com.squareup.okhttp.Call policiesMediationMediationPolicyIdDeleteCall(String mediationPolicyId, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequest... | String[] localVarAccepts = { "application/json" }; |
1,787,074 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<... | ] parameterTypes = constructorMethod.getParameterTypes(); |
875,764 | private Unit createUnit(Business business, PullResult result, Unit sup, Department org) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>Unit unit = new Unit();<NEW_LINE>emc.beginTransaction(Unit.class);<NEW_LINE>unit.<MASK><NEW_LINE>unit.setUnique(org.getId().toStrin... | setName(org.getName()); |
1,690,166 | public static double weightedCoefficient(NumberVector x, NumberVector y, NumberVector weights) {<NEW_LINE>final int xdim = x.getDimensionality(), ydim = y.getDimensionality();<NEW_LINE>if (xdim != ydim) {<NEW_LINE>throw new IllegalArgumentException("Invalid arguments: feature vectors differ in dimensionality.");<NEW_LI... | sumWe = weights.doubleValue(0); |
1,598,589 | protected static OutgoingSipServletResponse createOutgoingResponse(IncomingSipServletRequest origRequest, SipServletResponse response) {<NEW_LINE>// get the to tag so we can create a proper response<NEW_LINE>AddressImpl to = (AddressImpl) response.getTo();<NEW_LINE>String toTag = to.getTag();<NEW_LINE>TransactionUserWr... | IncomingSipServletResponse) response).getTransactionUser(); |
1,010,537 | private void loadParentAccountList(AccountType accountType) {<NEW_LINE>String condition = DatabaseSchema.SplitEntry.COLUMN_TYPE + " IN (" + getAllowedParentAccountTypes(accountType) + ") AND " <MASK><NEW_LINE>if (mAccount != null) {<NEW_LINE>// if editing an account<NEW_LINE>mDescendantAccountUIDs = mAccountsDbAdapter.... | + DatabaseSchema.AccountEntry.COLUMN_HIDDEN + "!=1 "; |
1,415,666 | private void updateFlatView(boolean sync) {<NEW_LINE>if (!force_refresh) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!sync && Utils.isSWTThread()) {<NEW_LINE>Utils.getOffOfSWTThread(() -> updateFlatView(false));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>force_refresh = false;<NEW_LINE>List<DiskManagerFileInfo> files = getFil... | (new DiskManagerFileInfo[0])); |
1,406,217 | public void focusOnMarkers(MicrolocationClusterWrapper item) {<NEW_LINE>map.animateCamera(CameraUpdateFactory.newLatLngZoom(item.getPosition(), map.getMaxZoomLevel()), new GoogleMap.CancelableCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onFinish() {<NEW_LINE>Handler handler = new Handler();<NEW_LINE>h... | , R.color.dark_grey)); |
1,822,964 | protected void initializeConfiguration(SqlConnectOptions connectOptions) {<NEW_LINE>if (!(connectOptions instanceof MySQLConnectOptions)) {<NEW_LINE>throw new IllegalArgumentException("mismatched connect options type");<NEW_LINE>}<NEW_LINE>MySQLConnectOptions options = (MySQLConnectOptions) connectOptions;<NEW_LINE>MyS... | valueOfName(options.getCollation()); |
1,273,292 | final RegisterConnectorResult executeRegisterConnector(RegisterConnectorRequest registerConnectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerConnectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | (super.beforeMarshalling(registerConnectorRequest)); |
1,629,035 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {<NEW_LINE>_logger.debug("postHandle");<NEW_LINE>final Apps app = (Apps) WebContext.getAttribute(WebConstants.AUTHORIZE_SIGN_ON_APP);<NEW_LINE>String sessionId = (String) WebConte... | setUserId(userInfo.getId()); |
1,476,032 | public GlmModelData deserializeModel(Params meta, Iterable<String> data) {<NEW_LINE>GlmModelData modelData = new GlmModelData();<NEW_LINE>modelData.featureColNames = meta.get(GlmTrainParams.FEATURE_COLS);<NEW_LINE>modelData.offsetColName = meta.get(GlmTrainParams.OFFSET_COL);<NEW_LINE>modelData.weightColName = meta.get... | next(), double.class); |
667,453 | protected Object solidBase(Object type, GetBaseClassNode getBaseClassNode, PythonContext context, ReadAttributeFromObjectNode readAttr, BranchProfile typeIsNotBase, BranchProfile hasBase, BranchProfile hasNoBase, int depth) {<NEW_LINE>CompilerAsserts.partialEvaluationConstant(depth);<NEW_LINE>Object base = getBaseClass... | typeSlots = getSlotsFromType(type, readAttr); |
1,425,474 | private void colourLine(LineStyleEvent event) {<NEW_LINE>if (theme == null)<NEW_LINE>return;<NEW_LINE>if (!mateText.shouldColour())<NEW_LINE>return;<NEW_LINE>int eventLine = mateText.getControl().getLineAtOffset(event.lineOffset);<NEW_LINE>// System.out.printf("c%d, ", eventLine);<NEW_LINE>// ArrayList<Scope> scopes = ... | .getControl().getCharCount(); |
34,769 | public void saveParam(Object obj) throws Exception {<NEW_LINE>OptionsParam optionsParam = (OptionsParam) obj;<NEW_LINE>ConnectionParam connectionParam = optionsParam.getConnectionParam();<NEW_LINE>connectionParam.setProxyChainName(txtProxyChainName.getText());<NEW_LINE>// ZAP: Do not allow invalid port numbers<NEW_LINE... | ).getMainFrame(), true); |
1,415,578 | public void deleteMonitoredItems(ServiceRequest service) throws UaException {<NEW_LINE>DeleteMonitoredItemsRequest request = <MASK><NEW_LINE>UInteger subscriptionId = request.getSubscriptionId();<NEW_LINE>Subscription subscription = subscriptions.get(subscriptionId);<NEW_LINE>List<UInteger> itemsToDelete = l(request.ge... | (DeleteMonitoredItemsRequest) service.getRequest(); |
1,218,431 | public VirtualNetworkModel lookupPublicNetworkModel() {<NEW_LINE>List<TrafficType> types = new ArrayList<TrafficType>();<NEW_LINE>types.add(TrafficType.Public);<NEW_LINE>List<NetworkVO> dbNets = findManagedNetworks(types);<NEW_LINE>if (dbNets == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>NetworkVO net = dbNets.g... | setProperties(getModelController(), net); |
1,485,422 | // Test that ensures unwrapping a DataSource backed by Driver to the underlying Driver interface is not possible<NEW_LINE>@Test<NEW_LINE>@ExpectedFFDC({ "java.sql.SQLException" })<NEW_LINE>public void testUnwrapDriver() throws Exception {<NEW_LINE>assertFalse("fatDriverDS should not wrap Driver", fatDriverDS<MASK><NEW_... | .isWrapperFor(Driver.class)); |
1,128,407 | static String signCompletedOAuth(final String host, final String path, final String method, final boolean https, final Parameters params, final String tokenSecret, final String consumerSecret) {<NEW_LINE>params.sort();<NEW_LINE>// Twitter requires that the signature is generated from the raw data that is received in th... | (StringUtils.defaultString(tokenSecret)); |
1,570,466 | public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) {<NEW_LINE>int oldSectionIndex = mOldSectionIndex.get(oldItemPosition);<NEW_LINE>int oldItemIndex = mOldItemIndex.get(oldItemPosition);<NEW_LINE>int newSectionIndex = mNewSectionIndex.get(newItemPosition);<NEW_LINE>int <MASK><NEW_LINE>if (oldSecti... | newItemIndex = mNewItemIndex.get(newItemPosition); |
541,234 | private boolean initPlayout(int sampleRate, int channels, double bufferSizeFactor) {<NEW_LINE>threadChecker.checkIsOnValidThread();<NEW_LINE>this.sampleRate = sampleRate;<NEW_LINE>Logging.d(TAG, "initPlayout(sampleRate=" + sampleRate + ", channels=" + channels + ", bufferSizeFactor=" + bufferSizeFactor + ")");<NEW_LINE... | "byteBuffer.capacity: " + byteBuffer.capacity()); |
1,623,364 | public void processNodes(@NotNull NodeMaker nodeMaker, boolean executable) {<NEW_LINE>if (restrictions != null) {<NEW_LINE>// Create a primitive array for mapping<NEW_LINE>DeclareCommandsPacket.Node[] nodes = new DeclareCommandsPacket.Node[this.restrictions.length];<NEW_LINE>// Create a node for each restrictions as li... | LITERAL, executable, false, false); |
688,051 | final GetServicesInScopeResult executeGetServicesInScope(GetServicesInScopeRequest getServicesInScopeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServicesInScopeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
420,229 | public static INDArray applyMask(INDArray input, INDArray mask, int axis) {<NEW_LINE>long[] maskShape = mask.shape();<NEW_LINE>long rank = maskShape.length;<NEW_LINE>long[] tensorShape = input.shape();<NEW_LINE>Preconditions.checkState(maskShape.length > 0, "Mask shape must not be scalar");<NEW_LINE>long leadingSize = ... | whereMask, 1))[0]; |
479,957 | private void invalidateDocumentsAndViews(final ViewId viewId, final TableRecordReference currentSingleSelectedDocumentRef, final ProcessExecutionResult processExecutionResult) {<NEW_LINE>final Supplier<IView> viewSupplier = Suppliers.memoize(() -> {<NEW_LINE>if (viewId == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LI... | getViewId().getWindowId()); |
758,690 | private void generateCoverage(Project project, JBallerinaBackend jBallerinaBackend) throws IOException {<NEW_LINE>// Generate code coverage<NEW_LINE>if (!coverage) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (testReport == null) {<NEW_LINE>// This to avoid the spotbugs failure.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<St... | IClassCoverage> packageNativeClassCoverageList = new ArrayList(); |
1,785,768 | public StreamEvent find(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder, StreamEventCloner storeEventCloner) {<NEW_LINE>Collection<StreamEvent> leftStreamEvents = leftCollectionExecutor.findEvents(matchingEvent, indexedEventHolder);<NEW_LINE>if (leftStreamEvents == null) {<NEW_LINE>return exhaustiveColl... | (storeEventCloner.copyStreamEvent(resultEvent)); |
1,614,530 | private void assertX509Token(X509Token token) {<NEW_LINE>String namespace = token.getName().getNamespaceURI();<NEW_LINE>if (token.isRequireEmbeddedTokenReference()) {<NEW_LINE>assertPolicy(new QName(namespace, SPConstants.REQUIRE_EMBEDDED_TOKEN_REFERENCE));<NEW_LINE>}<NEW_LINE>if (token.isRequireIssuerSerialReference()... | (namespace, SPConstants.REQUIRE_KEY_IDENTIFIER_REFERENCE)); |
382,583 | public static void openInstaller(Context context, String url, String title, String config, String checksum, boolean testDebug) {<NEW_LINE>try {<NEW_LINE>Intent intent = new Intent(context, InstallerActivity.class);<NEW_LINE>intent.setAction(Constants.INTENT_INSTALL_INTERNAL);<NEW_LINE>MainApplication.addSecret(intent);... | putExtra(Constants.EXTRA_INSTALL_NAME, title); |
1,373,850 | public OSSAsyncTask<PutBucketRefererResult> putBucketReferer(PutBucketRefererRequest request, OSSCompletedCallback<PutBucketRefererRequest, PutBucketRefererResult> completedCallback) {<NEW_LINE>RequestMessage requestMessage = new RequestMessage();<NEW_LINE>Map<String, String> query = new LinkedHashMap<String, String>()... | setBucketName(request.getBucketName()); |
1,782,067 | private void ensureProbs(int word, boolean subtractTagScore) {<NEW_LINE>if (word == lastWord) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>lastWord = word;<NEW_LINE>if (functionWordTags.containsKey(wordIndex.get(word))) {<NEW_LINE>logProbs = new ClassicCounter<>();<NEW_LINE>String trueTag = functionWordTags.get(wordIndex.get... | wordIndex.get(word))); |
40,427 | public TaskResult run() {<NEW_LINE>HelixManager helixManager = context.getManager();<NEW_LINE>JobContext jobContext = TaskDriver.getJobContext(helixManager, context.getJobConfig().getJobId());<NEW_LINE>// jobContext.getStartTime() return the time in milliseconds of job being put into helix queue.<NEW_LINE>long jobInQue... | addValueToGlobalGauge(MinionGauge.NUMBER_OF_TASKS, 1L); |
374,062 | public static DevInterceptorInfo from(InterceptorInfo interceptor, CompletedApplicationClassPredicateBuildItem predicate) {<NEW_LINE>boolean isApplicationBean = predicate.test(interceptor.getBeanClass());<NEW_LINE>Set<Name> <MASK><NEW_LINE>for (AnnotationInstance binding : interceptor.getBindings()) {<NEW_LINE>bindings... | bindings = new HashSet<>(); |
465,533 | private void addDate_Timing(String theResourceType, Set<ResourceIndexedSearchParamDate> theParams, RuntimeSearchParam theSearchParam, IBase theValue) {<NEW_LINE>List<IPrimitiveType<Date>> <MASK><NEW_LINE>TreeSet<Date> dates = new TreeSet<>();<NEW_LINE>TreeSet<String> dateStrings = new TreeSet<>();<NEW_LINE>String first... | values = extractValuesAsFhirDates(myTimingEventValueChild, theValue); |
1,159,089 | private void createDefaultAttributes() {<NEW_LINE>createXSDAttribute(rootElement, RPL_Constants.XML_ATTR_AD_Client_Value, "xsd:string", null);<NEW_LINE>// 02596<NEW_LINE>createXSDAttribute(rootElement, RPL_Constants.XML_ATTR_SEQUENCE_NO, "xsd:integer", null);<NEW_LINE>// 06231<NEW_LINE>createXSDAttribute(rootElement, R... | RPL_Constants.XML_ATTR_AD_SESSION_ID, "xsd:integer", null); |
394,050 | final CreateReservedInstancesListingResult executeCreateReservedInstancesListing(CreateReservedInstancesListingRequest createReservedInstancesListingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createReservedInstancesListingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | (super.beforeMarshalling(createReservedInstancesListingRequest)); |
654,232 | protected void executeImpl() throws MojoExecutionException, MojoFailureException {<NEW_LINE>copyKotlinIncrementalCompileOutputToOutputDir();<NEW_LINE>if (!prepareTests()) {<NEW_LINE>getLog().info("No tests were found.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Java java = createJava();<NEW_LINE>Path cp = java.createClassp... | ().getTestOutputDirectory())); |
485,779 | static void findAsciiEquivalentFromNoisyAndClean(Path cleanRoot, Path noisyRoot, Path outfile) throws IOException {<NEW_LINE>Histogram<String> correctFromClean = Histogram.loadFromUtf8File(cleanRoot.resolve("correct"), ' ');<NEW_LINE>Histogram<String> incorrectFromNoisy = Histogram.loadFromUtf8File(noisyRoot.resolve("i... | mm.put(a, s); |
1,519,924 | private static void writeOffsetWeight(SliceHeader sliceHeader, BitWriter writer, int list) {<NEW_LINE>SeqParameterSet sps = sliceHeader.sps;<NEW_LINE>int defaultLW = 1 << sliceHeader.predWeightTable.lumaLog2WeightDenom;<NEW_LINE>int defaultCW = 1 << sliceHeader.predWeightTable.chromaLog2WeightDenom;<NEW_LINE>for (int i... | writeBool(writer, flagChroma, "SH: chroma_weight_l0_flag"); |
382,296 | private AuthenticationInfo doGetAuthenticationInfo(TypedBearerToken token) throws AuthenticationException {<NEW_LINE>log.debug(<MASK><NEW_LINE>try {<NEW_LINE>final AuthServiceResult result = authenticator.authenticate(AuthServiceToken.builder().token(token.getToken()).type(token.getType()).build());<NEW_LINE>if (result... | "Attempting authentication for bearer token of type <{}>.", token.getType()); |
1,094,804 | public void finished() {<NEW_LINE>ShowPreviewDialog previewDialog = showPreview;<NEW_LINE>// There is a race between the replacement worker and the<NEW_LINE>// ChatConversationPanel when it is (being) disposed of. Make sure<NEW_LINE>// we have an instance before continuing.<NEW_LINE>if (previewDialog == null) {<NEW_LIN... | logger.error("Could not replace chat message", ex); |
58,313 | private static void logAcquireResult(AcquireResult acquireResult) {<NEW_LINE>try {<NEW_LINE>Lock lock = acquireResult.existingLock();<NEW_LINE>DateTime now = acquireResult.transactionTime();<NEW_LINE>switch(acquireResult.lockState()) {<NEW_LINE>case IN_USE:<NEW_LINE>logger.atInfo().log("Existing lock by request %s is s... | ).log("Error while logging AcquireResult %s. Continuing.", acquireResult); |
1,787,485 | protected void dumpHeader(Writer writer) throws IOException {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append("versionSignature: ");<NEW_LINE>builder.append(versionSignature);<NEW_LINE>builder.append("\nversionNumber: ");<NEW_LINE>builder.append(versionNumber);<NEW_LINE>builder.append("\na... | .format("\nflags: 0x%04x", flags)); |
715,189 | public void drawPatch(Canvas canvas) {<NEW_LINE>canvas.save();<NEW_LINE>Point[] cubics = new Point[] { new Point(30, 10), new Point(40, 20), new Point(50, 10), new Point(70, 30), /* new Point(70, 30), */<NEW_LINE>new Point(60, 40), new Point(70, 50), new Point(50, 70), /* new Point(50, 70), */<NEW_LINE>new Point(40, 60... | drawPatch(cubics, colors, paint); |
639,064 | public static GetMeetingInternationalResponse unmarshall(GetMeetingInternationalResponse getMeetingInternationalResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMeetingInternationalResponse.setRequestId(_ctx.stringValue("GetMeetingInternationalResponse.RequestId"));<NEW_LINE>getMeetingInternationalResponse.setErrorCod... | (_ctx.longValue("GetMeetingInternationalResponse.MeetingInfo.CreateTime")); |
1,477,783 | public void onGroupExpand(final int groupPosition) {<NEW_LINE>if (!PrivacyManager.getSettingBool(userId, PrivacyManager.cSettingMethodExpert, false)) {<NEW_LINE>AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(ActivityApp.this);<NEW_LINE>alertDialogBuilder.setTitle(R.string.app_name);<NEW_LINE>alertDial... | (R.attr.icon_launcher)); |
1,346,059 | public static void tick(Level world) {<NEW_LINE>List<UUID> toRemove = new ArrayList<>();<NEW_LINE>Map<UUID, MinecartController> carts = loadedMinecartsByUUID.get(world);<NEW_LINE>List<AbstractMinecart> queued = queuedAdditions.get(world);<NEW_LINE>List<UUID> queuedRemovals = queuedUnloads.get(world);<NEW_LINE>Set<UUID>... | controller = capability.orElse(null); |
999,302 | Answer processAnswerRows2(String rawAnswerStr, AnswerRowsOptions options) {<NEW_LINE>if (rawAnswerStr == null) {<NEW_LINE>Answer answer = <MASK><NEW_LINE>answer.setStatus(AnswerStatus.NOTFOUND);<NEW_LINE>return answer;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Answer rawAnswer = BatfishObjectMapper.mapper().readValue(rawAnswe... | Answer.failureAnswer("Not found", null); |
43,579 | public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {<NEW_LINE>// Since we use length based framing, any exception reading in TCP<NEW_LINE>// stream has the high likelihood of us getting out of sync on the<NEW_LINE>// stream, and not being able to recover. So close the connection an... | "{} in channel handler chain for endpoint {}. Closing connection.", error, remote, rootCause); |
1,388,331 | protected // -1 if not known<NEW_LINE>void // -1 if not known<NEW_LINE>removePeer(// -1 if not known<NEW_LINE>TRTrackerServerPeerImpl peer, // -1 if not known<NEW_LINE>int peer_list_index, // -1 if not known<NEW_LINE>int reason, String url_parameters) {<NEW_LINE>try {<NEW_LINE>this_mon.enter();<NEW_LINE>if (peer.isIPOv... | o = peer_reuse_map.remove(peerIPPortAddress); |
874,338 | 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, type_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.wri... | writeMessage(3, getPods()); |
892,366 | private void parseInterfacesFile() {<NEW_LINE>int end = _text.indexOf(START_OF_PORTS_FILE);<NEW_LINE>String text = end > 0 ? _text.<MASK><NEW_LINE>CumulusInterfacesCombinedParser parser = new CumulusInterfacesCombinedParser(text, _grammarSettings, _line, _offset);<NEW_LINE>Cumulus_interfaces_configurationContext ctxt =... | substring(0, end) : _text; |
1,657,402 | protected void loadFromModelData(TFTableModelClassificationModelData modelData, TableSchema modelSchema) {<NEW_LINE>Params meta = modelData.getMeta();<NEW_LINE>String tfOutputSignatureDef = meta.get(TFModelDataConverterUtils.TF_OUTPUT_SIGNATURE_DEF);<NEW_LINE>TypeInformation<?> tfOutputSignatureType = AlinkTypes.FLOAT_... | loadModelFromZipFile(modelData.getTfModelZipPath()); |
12,821 | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {<NEW_LINE>final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();<NEW_LINE>if (Configuration.INSTANCE.getSecureDeployment(deploymentUnit) == null) {<NEW_LINE>WarMetaData warMetaData = deploymentUnit.getAtta... | LoginConfigMetaData loginConfig = webMetaData.getLoginConfig(); |
349,973 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create variable boolean queryvar_bool", path);<NEW_LINE>env.compileDeploy("@public create variable int lower", path);<NEW_LINE>env.compileDeploy("@public create variable int upper", path... | env.compileDeploy(stmtText, path); |
1,261,037 | public static byte[] calculateKeyBlockSSL3(byte[] masterSecret, byte[] random, int size) {<NEW_LINE>Digest md5 = TlsUtils.createHash(HashAlgorithm.md5);<NEW_LINE>Digest sha1 = TlsUtils.createHash(HashAlgorithm.sha1);<NEW_LINE>int md5Size = md5.getDigestSize();<NEW_LINE>byte[] shaTmp = new byte[sha1.getDigestSize()];<NE... | shaTmp, 0, shaTmp.length); |
1,342,981 | public void dumpSummary(PrintStream out) {<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>for (int i = Math.max(0, versionList.length - 10); i < versionList.length; ++i) {<NEW_LINE>Version version = versionList[i];<NEW_LINE>int added = version.get(ADDED) + version.get(NEWCODE);<NEW_LINE>int removed = version.... | - b.length() % WIDTH; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.