idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
518,572
private static Request prepareReindexRequest(ReindexRequest reindexRequest, boolean waitForCompletion) throws IOException {<NEW_LINE>String endpoint = new EndpointBuilder().addPathPart("_reindex").build();<NEW_LINE>Request request = new Request(HttpPost.METHOD_NAME, endpoint);<NEW_LINE>Params params = new Params().with...
"scroll", reindexRequest.getScrollTime());
391,678
public void opExecution(SameDiff sd, At at, MultiDataSet batch, SameDiffOp op, OpContext opContext, INDArray[] outputs) {<NEW_LINE>Preconditions.checkState(variableName != null, "No variable name has been set yet. Variable name must be set before using this listener");<NEW_LINE>Preconditions.checkState(eps != 0.0, "Eps...
[i].getDouble(idx);
233,037
public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) {<NEW_LINE>if (perspectiveId != null && perspective != null && perspectiveId.equals(perspective.getId())) {<NEW_LINE>int version = Platform.getPreferencesService().getInt(pluginId, preferenceId, 0, null);<NEW_LINE>if (perspectiveV...
index = perspectiveId.lastIndexOf(".");
843,515
public boolean open(FileSchemaNegotiator negotiator) {<NEW_LINE>try {<NEW_LINE>// init InputStream for pcap file<NEW_LINE>errorContext = negotiator.parentErrorContext();<NEW_LINE>DrillFileSystem dfs = negotiator.fileSystem();<NEW_LINE>path = dfs.makeQualified(negotiator.split().getPath());<NEW_LINE>in = dfs.openPossibl...
.getSectionList().iterator();
304,605
public ReturnObject invoke(String methodName, String targetObjectId, List<Object> args) {<NEW_LINE>if (args == null) {<NEW_LINE>args = new ArrayList<Object>();<NEW_LINE>}<NEW_LINE>ReturnObject returnObject = null;<NEW_LINE>try {<NEW_LINE>Object targetObject = getObjectFromId(targetObjectId);<NEW_LINE><MASK><NEW_LINE>Ob...
logger.finer("Calling: " + methodName);
115,111
public Location deserialize(JsonParser parser, DeserializationContext ctx, Type rtType) {<NEW_LINE>Map<?, ?> map = ctx.deserialize(Map.class, parser);<NEW_LINE>Location l;<NEW_LINE>String podNumber = (String) map.get("podNumber");<NEW_LINE>if (podNumber != null) {<NEW_LINE>// must be Pod<NEW_LINE>Pod pod = new Pod();<N...
) map.get("roomName"));
641,742
public RawJson shardingBeanToJson(Shardings shardings) {<NEW_LINE>// bean to json obj<NEW_LINE>JsonObjectWriter jsonObj = new JsonObjectWriter();<NEW_LINE>jsonObj.addProperty(ClusterPathUtil.VERSION, shardings.getVersion());<NEW_LINE>JsonArray schemaArray = new JsonArray();<NEW_LINE>for (Schema schema : shardings.getSc...
, gson.toJsonTree(functionList));
1,051,806
private static ColumnarArray toColumnarArray(RunLengthEncodedBlock rleBlock) {<NEW_LINE>ColumnarArray columnarArray = toColumnarArray(rleBlock.getValue());<NEW_LINE>int positionCount = rleBlock.getPositionCount();<NEW_LINE>// build new offsets block<NEW_LINE>int[] offsets = new int[positionCount + 1];<NEW_LINE>int valu...
) * offsets[positionCount]));
1,805,735
public static void store(Properties properties, OutputStream outputStream, @Nullable String comment, Charset charset, String lineSeparator) throws IOException {<NEW_LINE>String rawContents;<NEW_LINE>if (charset.equals(Charsets.ISO_8859_1)) {<NEW_LINE>ByteArrayOutputStream out = new ByteArrayOutputStream();<NEW_LINE>pro...
line = lines.get(lineNo);
1,095,974
private void writeIndex(IndexOutput metaOut, IndexOutput indexOut, int countPerLeaf, int numLeaves, byte[] packedIndex, long dataStartFP) throws IOException {<NEW_LINE>CodecUtil.<MASK><NEW_LINE>metaOut.writeVInt(config.numDims);<NEW_LINE>metaOut.writeVInt(config.numIndexDims);<NEW_LINE>metaOut.writeVInt(countPerLeaf);<...
writeHeader(metaOut, CODEC_NAME, VERSION_CURRENT);
1,012,709
private void drawCardinalDirections(Canvas canvas, QuadPoint center, float radiusLength, RotatedTileBox tileBox, RenderingLineAttributes attrs) {<NEW_LINE>float textMargin = AndroidUtils.dpToPx(app, 14);<NEW_LINE>attrs.paint2.setTextAlign(Paint.Align.CENTER);<NEW_LINE>attrs.paint3.setTextAlign(Paint.Align.CENTER);<NEW_...
0, 0, attrs.paint2);
193,125
public NpmPackageSearchResultJson search(PackageSearchSpec thePackageSearchSpec) {<NEW_LINE>NpmPackageSearchResultJson retVal = new NpmPackageSearchResultJson();<NEW_LINE>CriteriaBuilder cb = myEntityManager.getCriteriaBuilder();<NEW_LINE>// Query for total<NEW_LINE>{<NEW_LINE>CriteriaQuery<Long> countCriteriaQuery = c...
createQuery(countCriteriaQuery).getSingleResult();
651,214
public static Builder withRelyingPartyRegistration(RelyingPartyRegistration registration) {<NEW_LINE>Assert.notNull(registration, "registration cannot be null");<NEW_LINE>return withRegistrationId(registration.getRegistrationId()).entityId(registration.getEntityId()).signingX509Credentials((c) -> c.addAll(registration....
().getSingleLogoutServiceBinding()));
1,597,198
public static QuerySideMessageResponse unmarshall(QuerySideMessageResponse querySideMessageResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySideMessageResponse.setRequestId<MASK><NEW_LINE>querySideMessageResponse.setErrorMessage(_ctx.stringValue("QuerySideMessageResponse.ErrorMessage"));<NEW_LINE>querySideMessageRes...
(_ctx.stringValue("QuerySideMessageResponse.RequestId"));
609,273
public void marshall(ContainerOverride containerOverride, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (containerOverride == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(containerOverride.getName(), NAME...
containerOverride.getCommand(), COMMAND_BINDING);
1,519,021
public boolean createTopic(String topicName) throws BrokerException {<NEW_LINE>try {<NEW_LINE>TransactionInfo transactionInfo = FabricSDKWrapper.executeTransaction(hfClient, channel, topicControllerChaincodeID, true, "addTopicInfo", fabricConfig.getTransactionTimeout(), topicName, fabricConfig.getTopicVerison());<NEW_L...
throw new BrokerException(ErrorCode.TRANSACTION_TIMEOUT);
1,704,332
default void slabStairsCrafting(Consumer<FinishedRecipe> consumer, BuildingBlockObject saveing, String folder, boolean addStonecutter) {<NEW_LINE>Item item = saveing.asItem();<NEW_LINE>TriggerInstance hasBlock = RecipeProvider.has(item);<NEW_LINE>// slab<NEW_LINE>ItemLike slab = saveing.getSlab();<NEW_LINE>ShapedRecipe...
(item, folder, "_stairs_stonecutter"));
93,036
public void YieldInstr(YieldInstr yieldinstr) {<NEW_LINE>jvmMethod().loadContext();<NEW_LINE><MASK><NEW_LINE>if (yieldinstr.getYieldArg() == UndefinedValue.UNDEFINED) {<NEW_LINE>jvmMethod().getYieldCompiler().yieldSpecific();<NEW_LINE>} else {<NEW_LINE>Operand yieldOp = yieldinstr.getYieldArg();<NEW_LINE>if (yieldinstr...
visit(yieldinstr.getBlockArg());
1,139,737
public ProjectValidation validateVersion(IJavaProject jp) throws Exception {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>if (jp != null) {<NEW_LINE>List<File> librariesOnClasspath = SpringProjectUtil.getLibrariesOnClasspath(jp, "spring");<NEW_LINE>if (librariesOnClasspath != null) {<NEW_LINE>for (Fil...
SpringVersionInfo versionInfo = new SpringVersionInfo(file);
1,115,960
public void marshall(PutRuleRequest putRuleRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (putRuleRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(putRuleRequest.getName(), NAME_BINDING);<N...
putRuleRequest.getEventBusName(), EVENTBUSNAME_BINDING);
1,047,377
int computeLayoutsToFillListViewport(List<ComponentTreeHolder> holders, int offset, int maxWidth, int maxHeight, @Nullable Size outputSize) {<NEW_LINE>final LayoutInfo.ViewportFiller filler = mLayoutInfo.createViewportFiller(maxWidth, maxHeight);<NEW_LINE>if (filler == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>fin...
holder = holders.get(index);
1,512,226
final DescribeLoadBalancersResult executeDescribeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoadBalancersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
invoke(request, responseHandler, executionContext);
303,610
private static synchronized void load(WebAppModel model, IntPredicate action) {<NEW_LINE>captureLatch = new CountDownLatch(1);<NEW_LINE>thrown.set(null);<NEW_LINE>Platform.runLater(() -> {<NEW_LINE>// zoom should only be factored on raster prints<NEW_LINE>pageZoom = model.getZoom();<NEW_LINE>pageWidth = model.getWebWid...
model.getSource(), "text/html");
1,335,773
// Returns true if first is < second<NEW_LINE>@Override<NEW_LINE>public boolean lessThan(ShardRef first, ShardRef second) {<NEW_LINE>assert first != second;<NEW_LINE>final FieldDoc firstFD = (FieldDoc) shardHits[first<MASK><NEW_LINE>final FieldDoc secondFD = (FieldDoc) shardHits[second.shardIndex][second.hitIndex];<NEW...
.shardIndex][first.hitIndex];
999,408
public void processEntryEvent(Event event, RequestContext requestContext) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "processEntryEvent " + event);<NEW_LINE>}<NEW_LINE>if (_logger.isLoggable(Level.INFO)) {<NEW_LINE>try {<NEW_LINE>LogRecordContext.addExtension(<MA...
"eventType", event.getType());
419,097
private Mono<Response<SupportedOptimizationTypesListResultInner>> listSupportedOptimizationTypesWithResponseAsync(String resourceGroupName, String profileName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint(...
this.client.mergeContext(context);
1,823,692
protected void encodeMarkup(FacesContext context, TextEditor editor) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = editor.getClientId(context);<NEW_LINE>String valueToRender = sanitizeHtml(context, editor, ComponentUtils.getValueToRender(context, editor));...
writer.startElement("div", editor);
1,226,263
public byte[] encodeRepresentation(String repr, MemBuffer buf, Settings settings, int length) throws DataTypeEncodeException {<NEW_LINE>int format = getFormatSettingsDefinition().getFormat(settings);<NEW_LINE>BigInteger value;<NEW_LINE>int radix;<NEW_LINE>String suffix;<NEW_LINE>switch(format) {<NEW_LINE>case FormatSet...
DataTypeEncodeException(repr, this, e);
812,295
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, FormEngine engine) {<NEW_LINE><MASK><NEW_LINE>// Create a single deployment for all resources using the name hint as the literal name<NEW_LINE>final FormDeploymentBuilder deploymentBuilder = repositoryService.createDeployment().enab...
FormRepositoryService repositoryService = engine.getFormRepositoryService();
408,737
private void insideTypeParameter(Env env) throws IOException {<NEW_LINE>int offset = env.getOffset();<NEW_LINE>TreePath path = env.getPath();<NEW_LINE>TypeParameterTree tp = (TypeParameterTree) path.getLeaf();<NEW_LINE>CompilationController controller = env.getController();<NEW_LINE>TokenSequence<JavaTokenId> ts = <MAS...
findLastNonWhitespaceToken(env, tp, offset);
925,104
public static OutputCallback constructOutputCallback(OutputStream outStream, String key, ConcurrentMap<String, StreamJunction> streamJunctionMap, StreamDefinition outputStreamDefinition, SiddhiQueryContext siddhiQueryContext) {<NEW_LINE>String id = outStream.getId();<NEW_LINE>// Construct CallBack<NEW_LINE>if (outStrea...
), outStream.getQueryContextEndIndex());
1,682,072
public JsonObject toJSON() {<NEW_LINE>JsonObject sinfo = new JsonObject();<NEW_LINE>sinfo.addProperty("tooltips for default roll format", getUseToolTipsForDefaultRollFormat() ? BigDecimal.ONE : BigDecimal.ZERO);<NEW_LINE>sinfo.addProperty("GM reveals vision for unowned tokens", getGmRevealsVisionForUnownedTokens() ? Bi...
BigDecimal.ONE : BigDecimal.ZERO);
1,735,357
private // returns map; key=command name; value=array of targets for given command<NEW_LINE>HashMap<String, String[]> loadTargetsFromConfig() {<NEW_LINE>HashMap<String, String[]> targets = new HashMap<String, String[]>(6);<NEW_LINE>String config = evaluateProperty(project, PROP_CONFIG);<NEW_LINE>// load targets from sh...
InputStream is = propFO.getInputStream();
266,516
private void showActivePage() {<NEW_LINE>if (_activePage == null)<NEW_LINE>return;<NEW_LINE>int number = _pages.indexOf(_activePage);<NEW_LINE>// show the active page<NEW_LINE>_cards.show(_content, "page" + number);<NEW_LINE>// update the wizard header<NEW_LINE>if (_header != null) {<NEW_LINE>_header.setTitle(_activePa...
setVisible(_activePage.isCancelVisible());
616,205
private ImmutableList<I_M_Attribute> retrieveAvailableAttributes() {<NEW_LINE>final WindowType type = getWindowType();<NEW_LINE>final AttributeSetInstanceId attributeSetInstanceId = getAttributeSetInstanceId();<NEW_LINE>final AttributeSetId attributeSetId = getAttributeSetId();<NEW_LINE>final SOTrx soTrx = getSOTrx();<...
attributeSetId, attributeSetInstanceId).stream();
404,120
public static byte[] encrypt(CipherAlgorithm cipherAlgorithm, byte[] plaintextUnpadded, byte[] key, byte[] iv) throws CryptoException {<NEW_LINE>byte[] result = new byte[0];<NEW_LINE>try {<NEW_LINE>byte[] plaintext = addPadding(plaintextUnpadded, cipherAlgorithm.getKeySize());<NEW_LINE>Cipher cipher = Cipher.getInstanc...
key, bulkCipher.getJavaName());
1,000,777
private static long hashLength0to16(byte[] bytes, int offset, int length) {<NEW_LINE>if (length >= 8) {<NEW_LINE>long mul = K2 + length * 2L;<NEW_LINE>long a = <MASK><NEW_LINE>long b = load64(bytes, offset + length - 8);<NEW_LINE>long c = rotateRight(b, 37) * mul + a;<NEW_LINE>long d = (rotateRight(a, 25) + b) * mul;<N...
load64(bytes, offset) + K2;
536,057
public static boolean intersects(final RoaringBitmap x1, final RoaringBitmap x2) {<NEW_LINE>final int length1 = x1.highLowContainer.size(), length2 = x2.highLowContainer.size();<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>while (pos1 < length1 && pos2 < length2) {<NEW_LINE>final char s1 = x1.highLowContainer.getKeyAtInde...
x2.highLowContainer.getKeyAtIndex(pos2);
1,533,943
public void onClick(View view) {<NEW_LINE>BottomSheetItemWithCompoundButton item = (BottomSheetItemWithCompoundButton) itemSwitchLiveUpdate;<NEW_LINE>boolean checked = item.isChecked();<NEW_LINE>item.setChecked(!checked);<NEW_LINE>if (onLiveUpdatesForLocalChange != null && onLiveUpdatesForLocalChange.onUpdateLocalIndex...
(), !checked, nightMode);
1,017,010
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>lShortcut = new javax.swing.JLabel();<NEW_LINE>tfShortcut = new javax.swing.JTextField();<NEW_LINE>lConflict = new javax.swing.JLabel();<NEW_LINE>lShortcut.setLabelFor(tfShortcut);...
(ShortcutsDialog.class, "AD_ShortcutsDialog"));
1,133,697
public static MethodBinding checkForContradictions(MethodBinding method, Object location, Scope scope) {<NEW_LINE>int start = 0, end = 0;<NEW_LINE>if (location instanceof InvocationSite) {<NEW_LINE>start = ((<MASK><NEW_LINE>end = ((InvocationSite) location).sourceEnd();<NEW_LINE>} else if (location instanceof ASTNode) ...
InvocationSite) location).sourceStart();
1,483,965
protected void handleL1L2BackwardCompatibility(BaseLayer baseLayer, ObjectNode on) {<NEW_LINE>if (on != null && (on.has("l1") || on.has("l2"))) {<NEW_LINE>// Legacy format JSON<NEW_LINE>baseLayer.setRegularization(new ArrayList<Regularization>());<NEW_LINE>baseLayer.setRegularizationBias(new ArrayList<Regularization>()...
new WeightDecay(l2Bias, false));
1,525,143
public static com.azure.search.documents.indexes.implementation.models.SearchIndexer map(SearchIndexer obj) {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Objects.requireNonNull(<MASK><NEW_LINE>com.azure.search.documents.indexes.implementation.models.SearchIndexer searchIndexer = new com.azure....
obj.getName(), "The SearchIndexer name cannot be null");
739,271
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtOrigText = "@name('split') @public on SupportBean " + "insert into AStream2SP select * where intPrimitive=1 " + "insert into BStream2SP select * where intPrimitive=1 or intPrimitive=2";<NEW_LINE>env.com...
FilterStream.create("SupportBean")));
1,810,635
public org.apache.submarine.server.api.proto.TritonModelConfig.ModelSequenceBatching buildPartial() {<NEW_LINE>org.apache.submarine.server.api.proto.TritonModelConfig.ModelSequenceBatching result = new org.apache.submarine.server.api.proto.TritonModelConfig.ModelSequenceBatching(this);<NEW_LINE>int from_bitField0_ = bi...
.strategyChoice_ = oldestBuilder_.build();
437,350
public void exitSummary_address_is_stanza(Summary_address_is_stanzaContext ctx) {<NEW_LINE>Ip ip = toIp(ctx.ip);<NEW_LINE>Ip mask = toIp(ctx.mask);<NEW_LINE>Prefix prefix = Prefix.create(ip, mask);<NEW_LINE>RoutingProtocol sourceProtocol = RoutingProtocol.ISIS_L1;<NEW_LINE><MASK><NEW_LINE>r.setSummaryPrefix(prefix);<NE...
IsisRedistributionPolicy r = new IsisRedistributionPolicy(sourceProtocol);
20,920
private void loadNode454() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_TrustList_Write_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"...
DataValue(new Variant(o));
905,618
public static void convolve3(Kernel2D_S32 kernel, GrayS16 input, GrayI16 output, int skip, int divisor) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int radius = kernel.getRadius();<NEW_LINE>final int widthEnd = UtilDownConvolve.computeMaxSide(input.width, ...
(dataSrc[indexSrc]) * k3;
805,078
public RoutingProfileSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RoutingProfileSummary routingProfileSummary = new RoutingProfileSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =...
String currentParentElement = context.getCurrentParentElement();
1,376,198
private void changeMethodConfigPanel(AuthenticationMethodType newMethodType) {<NEW_LINE>// If there's no new method, don't display anything<NEW_LINE>if (newMethodType == null) {<NEW_LINE>getConfigContainerPanel().removeAll();<NEW_LINE>getConfigContainerPanel().setVisible(false);<NEW_LINE>this.shownMethodType = null;<NE...
add(shownConfigPanel, BorderLayout.CENTER);
475,692
public void lsdSort(String[] array) {<NEW_LINE>if (array == null || array.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Extended ASCII characters<NEW_LINE>int alphabetSize = 256;<NEW_LINE>String[] auxArray = new String[array.length];<NEW_LINE>int maxStringLength = getMaxStringLength(array);<NEW_LINE>for (int d...
= new int[alphabetSize + 1];
1,216,560
private void handleSpeakerCommand(String channelId, Command command) throws SpeakerException {<NEW_LINE>switch(channelId) {<NEW_LINE>case CLEAR_ZONE:<NEW_LINE>if (OnOffType.ON.equals(command)) {<NEW_LINE>speaker.zoneManager().releaseZone();<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case CONTROL:<NEW_LINE>handleControlCommand...
playItem(command.toString());
676,089
public void editEndpoint(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, LanguageException {<NEW_LINE>try {<NEW_LINE>String serverName = request.getParameter("serverName");<NEW_LINE>String <MASK><NEW_LINE>PublishingEndPoint existingServer = APILocator.getPublisherEndPoint...
id = request.getParameter("identifier");
1,001,716
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = setupInfra(env, namedWindow);<NEW_LINE>String query = "select * from MyInfra";<NEW_LINE>EPCompiled compiled = env.compileFAF(query, path);<NEW_LINE>EPFireAndForgetQueryResult result = env.runtime().<MASK><NEW_LINE>final String[] fields = new St...
getFireAndForgetService().executeQuery(compiled);
49,446
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField typeMember = codegenClassScope.addFieldUnshared(true, ObjectArrayEventType.EPTYPE, cast(ObjectArrayEventType.EPTYPE, EventTypeUtility.resolveType...
ref("event"), "getProperties"));
320,790
public ResponseEntity<BufferedImage> photo(@PathVariable String id, HttpServletRequest request) throws Exception {<NEW_LINE>InputStream photo = sparklrService.loadSparklrPhoto(id);<NEW_LINE>if (photo == null) {<NEW_LINE>throw new UnavailableException("The requested photo does not exist");<NEW_LINE>}<NEW_LINE>BufferedIm...
body, headers, HttpStatus.OK);
383,252
public void marshall(DefaultWorkspaceCreationProperties defaultWorkspaceCreationProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (defaultWorkspaceCreationProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMa...
defaultWorkspaceCreationProperties.getEnableWorkDocs(), ENABLEWORKDOCS_BINDING);
1,033,697
public void read(org.apache.thrift.protocol.TProtocol prot, add_aggregate_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet <MASK><NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struct.mid =...
incoming = iprot.readBitSet(4);
1,594,673
private static String versionString(ImmutableVersionConstraint version) {<NEW_LINE>String requiredVersion = version.getRequiredVersion();<NEW_LINE>String strictVersion = version.getStrictVersion();<NEW_LINE>String preferredVersion = version.getPreferredVersion();<NEW_LINE>List<String> rejectedVersions = version.getReje...
(keyValuePair("prefer", preferredVersion));
1,122,528
protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// Client/Org Check<NEW_LINE>if (getAD_Org_ID() == 0) {<NEW_LINE>int contextOrgId = Env.getAD_Org_ID(getCtx());<NEW_LINE>if (contextOrgId != 0) {<NEW_LINE>setAD_Org_ID(contextOrgId);<NEW_LINE>log.warning("Changed Org to Context=" + contextOrgId);<NEW_LINE>}<NEW...
getContextAsInt(getCtx(), "#AD_User_ID");
127,714
public void onMotionEvent(MotionEvent ev) {<NEW_LINE>if (mVelocityTracker == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mVelocityTracker.addMovement(ev);<NEW_LINE>switch(ev.getActionMasked()) {<NEW_LINE>case ACTION_DOWN:<NEW_LINE>{<NEW_LINE>mDownPos.set(ev.getX(), ev.getY());<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case ...
.getX() - mDownPos.x;
1,330,385
private JFieldVar createStaticField(EReceiverHolder holder, String prefix, String methodName, String[] values) {<NEW_LINE>String staticFieldName = CaseHelper.camelCaseToUpperSnakeCase(prefix, methodName, null);<NEW_LINE>if (values == null || values.length == 0) {<NEW_LINE>return null;<NEW_LINE>} else if (values.length ...
narrow(getClasses().STRING);
438,121
final ListGroupMembershipsResult executeListGroupMemberships(ListGroupMembershipsRequest listGroupMembershipsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGroupMembershipsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
586,287
private static void tryPattern(RegressionEnvironment env, String text, AtomicInteger milestone, Integer[] intBoxedA, Double[] doubleBoxedA, Integer[] intBoxedB, Double[] doubleBoxedB, boolean[] expected) {<NEW_LINE>assertEquals(intBoxedA.length, doubleBoxedA.length);<NEW_LINE>assertEquals(intBoxedB.length, doubleBoxedB...
expected.length, doubleBoxedA.length);
1,642,700
private void expandExternals(MaterialConfig configuredMaterial, MaterialConfigs expandedMaterials) {<NEW_LINE>SvnMaterialConfig svnMaterialConfig = (SvnMaterialConfig) configuredMaterial;<NEW_LINE>if (!svnMaterialConfig.isCheckExternals()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<SvnExternal> urLs = svn(svnMaterialC...
setFilter(svnMaterialConfig.filter());
107,709
public DescribeResourcePoliciesResult describeResourcePolicies(DescribeResourcePoliciesRequest describeResourcePoliciesRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeResourcePoliciesRequest);<NEW_LINE>AWSRequestMetrics awsReque...
DescribeResourcePoliciesRequestMarshaller().marshall(describeResourcePoliciesRequest);
276,409
protected AuthenticatedUserDisplayInfo parseActivitiesResponse(String responseBody) {<NEW_LINE>DocumentBuilderFactory dbFact = DocumentBuilderFactory.newInstance();<NEW_LINE>try (StringReader reader = new StringReader(responseBody)) {<NEW_LINE>DocumentBuilder db = dbFact.newDocumentBuilder();<NEW_LINE>Document doc = db...
null, null, organization, position);
1,281,545
private String runLiquid(final String templateSource, final Map<String, Object> templateParams, final String templateIncludePath) throws IOException {<NEW_LINE>// TODO: Check if it is required to process JRuby options.<NEW_LINE>final ScriptingContainerDelegate localJRubyContainer = LazyScriptingContainerDelegate.withGe...
renderedObject = localJRubyContainer.runScriptlet("template.render(__internal_liquid_template_data__)");
293,069
static void delFixedAttr(Frame frame, Object self, @SuppressWarnings("unused") String name, @SuppressWarnings("unused") Object value, @SuppressWarnings("unused") @Cached("name") String cachedName, @Shared("getClass") @Cached GetClassNode getClass, @Shared("lookupDel") @Cached(parameters = "DelAttr") LookupSpecialMethod...
execute(frame, type, self);
377,113
public void run() throws InterruptedException {<NEW_LINE><MASK><NEW_LINE>CountDownLatch countdownLatch = new CountDownLatch(1);<NEW_LINE>// The connection string value can be obtained by:<NEW_LINE>// 1. Going to your Service Bus namespace in Azure Portal.<NEW_LINE>// 2. Go to "Shared access policies"<NEW_LINE>// 3. Cop...
AtomicBoolean sampleSuccessful = new AtomicBoolean(false);
436,234
public static byte[] serializeOneOffLockWhitelist(Pair<List<OneOffWhiteListEntry>, Integer> data) {<NEW_LINE>List<OneOffWhiteListEntry> entries = data.getLeft();<NEW_LINE>Integer disableBlockHeight = data.getRight();<NEW_LINE>int serializationSize = entries.size() * 2 + 1;<NEW_LINE>byte[][] serializedLockWhitelist = ne...
entry = entries.get(i);
1,430,375
public static DescribePdnsOperateLogsResponse unmarshall(DescribePdnsOperateLogsResponse describePdnsOperateLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePdnsOperateLogsResponse.setRequestId(_ctx.stringValue("DescribePdnsOperateLogsResponse.RequestId"));<NEW_LINE>describePdnsOperateLogsResponse.setTotalCou...
= new ArrayList<Log>();
964,902
public void storeSettings() {<NEW_LINE>GlobalCitationKeyPattern newKeyPattern = new GlobalCitationKeyPattern(initialCitationKeyPatternPreferences.getKeyPattern().getDefaultValue());<NEW_LINE>patternListProperty.forEach(item -> {<NEW_LINE>String patternString = item.getPattern();<NEW_LINE>if (!item.getEntryType().getNam...
KeySuffix keySuffix = CitationKeyPatternPreferences.KeySuffix.ALWAYS;
1,819,695
/*<NEW_LINE>public void userFeatureArrToSerializable() throws Exception {<NEW_LINE>Business businessEjb = IiopLogic.lookupBusiness(orb);<NEW_LINE>UserFeatureService a = new UserFeatureService("user feature 1");<NEW_LINE>UserFeatureService b = new UserFeatureService("user feature 2");<NEW_LINE><MASK><NEW_LINE>UserFeatur...
UserFeatureService c = new UserFeatureService("user feature 3");
180,147
private void presentActionDone() {<NEW_LINE>switch(model.getOperation()) {<NEW_LINE>case UNINSTALL:<NEW_LINE>component.setHeadAndContent(UninstallStep_Header_UninstallDone_Head(), UninstallStep_Header_UninstallDone_Content());<NEW_LINE>break;<NEW_LINE>case ENABLE:<NEW_LINE>component.setHeadAndContent(UninstallStep_Head...
), model.getAllVisibleUpdateElements());
996,952
public static void putLongToBytes(byte[] bytes, int offset, long l) {<NEW_LINE>bytes[offset] = (byte) (l & 0xff);<NEW_LINE>l >>= 8;<NEW_LINE>bytes[offset + 1] = (byte) (l & 0xff);<NEW_LINE>l >>= 8;<NEW_LINE>bytes[offset + 2] = <MASK><NEW_LINE>l >>= 8;<NEW_LINE>bytes[offset + 3] = (byte) (l & 0xff);<NEW_LINE>l >>= 8;<NE...
(byte) (l & 0xff);
1,689,426
protected ValuesSourceAggregatorFactory innerBuild(AggregationContext context, ValuesSourceConfig config, AggregatorFactory parent, Builder subFactoriesBuilder) throws IOException {<NEW_LINE>AutoDateHistogramAggregatorSupplier aggregatorSupplier = context.getValuesSourceRegistry().getAggregator(REGISTRY_KEY, config);<N...
timeZone(), getMinimumIntervalExpression());
343,389
private BestellungAntwortPosition toJAXB(final OrderResponsePackageItem orderPackageItem) {<NEW_LINE>final int qty = orderPackageItem.getQty().getValueAsInt();<NEW_LINE>final ImmutableList<BestellungAnteil> soapItemParts;<NEW_LINE>if (orderPackageItem.getParts().isEmpty()) {<NEW_LINE>final BestellungAnteil soapItemPart...
getDeliverySpecifications().getV1SoapCode());
1,586,750
SaveReturn printHtml(final File f) {<NEW_LINE>Future<Object> waiter = mainFrame.getBackgroundExecutor().submit(() -> {<NEW_LINE>HTMLBugReporter reporter = new HTMLBugReporter(<MASK><NEW_LINE>reporter.setIsRelaxed(true);<NEW_LINE>reporter.setOutputStream(UTF8.printStream(new FileOutputStream(f)));<NEW_LINE>for (BugInsta...
mainFrame.getProject(), "default.xsl");
458,508
public final SubQueryExprContext subQueryExpr() throws RecognitionException {<NEW_LINE>SubQueryExprContext _localctx = new SubQueryExprContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 340, RULE_subQueryExpr);<NEW_LINE>paraphrases.push("subquery");<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localct...
_la = _input.LA(1);
1,619,425
private void configureColumn(int type, boolean indexFlag, int index) {<NEW_LINE>final MemoryMA primary;<NEW_LINE>final MemoryMA secondary;<NEW_LINE>final MemoryCARW oooPrimary;<NEW_LINE>final MemoryCARW oooSecondary;<NEW_LINE>final MemoryCARW oooPrimary2;<NEW_LINE>final MemoryCARW oooSecondary2;<NEW_LINE>if (type > 0) ...
= oooPrimary2 = oooSecondary2 = NullMemory.INSTANCE;
643,664
private void assignGroupsToDatasets() throws JRException {<NEW_LINE>for (Iterator<JRElementDataset> it = groupBoundDatasets.iterator(); it.hasNext(); ) {<NEW_LINE>JRDesignElementDataset dataset = (JRDesignElementDataset) it.next();<NEW_LINE>JRDatasetRun datasetRun = dataset.getDatasetRun();<NEW_LINE>Map<String, JRGroup...
new Object[] { datasetName });
1,631,533
// ///////////////////////////////////////////////////<NEW_LINE>// ///////////// API Implementation///////////////////<NEW_LINE>// ///////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException,...
responseList.setResponseName(getCommandName());
1,825,956
static protected int isSimpleAsFeature(/* const */<NEW_LINE>Geometry geometry, /* const */<NEW_LINE>SpatialReference spatialReference, boolean bForce, NonSimpleResult result, ProgressTracker progressTracker) {<NEW_LINE>if (result != null) {<NEW_LINE>result.m_reason = NonSimpleResult.Reason.NotDetermined;<NEW_LINE>resul...
spatialReference, bForce, result, progressTracker);
1,203,988
private void virtualSwap(List<DataDivision> dataDivisionList, int a, int b) {<NEW_LINE>DataDivision divA = null;<NEW_LINE>DataDivision divB = null;<NEW_LINE>int offsetA = 0;<NEW_LINE>int offsetB = 0;<NEW_LINE>// Find points a and b in the collections.<NEW_LINE>int baseIndex = 0;<NEW_LINE>for (DataDivision division : da...
divA.getMask()[offsetA];
1,394,134
private void promptForFiles() {<NEW_LINE>DialogProperties properties = new DialogProperties();<NEW_LINE>properties.selection_mode = DialogConfigs.MULTI_MODE;<NEW_LINE>properties.selection_type = DialogConfigs.FILE_SELECT;<NEW_LINE>properties.root = new File(DialogConfigs.DEFAULT_DIR);<NEW_LINE>properties.error_dir = ne...
String[registeredExtensions.size()];
1,683,084
protected void paintSelection(Graphics graphics) {<NEW_LINE>if (selectionStart == -1)<NEW_LINE>return;<NEW_LINE>graphics.setXORMode(true);<NEW_LINE>graphics.setBackgroundColor(ColorConstants.white);<NEW_LINE>TextFragmentBox frag;<NEW_LINE>for (int i = 0; i < fragments.size(); i++) {<NEW_LINE>frag = (TextFragmentBox) fr...
= new Rectangle(p1, p2);
660,514
public String generateUserKey(String username, String keyname) throws ServletException {<NEW_LINE>// set key type<NEW_LINE>int type = KeyPair.RSA;<NEW_LINE>if ("dsa".equals(SSHUtil.KEY_TYPE)) {<NEW_LINE>type = KeyPair.DSA;<NEW_LINE>} else if ("ecdsa".equals(SSHUtil.KEY_TYPE)) {<NEW_LINE>type = KeyPair.ECDSA;<NEW_LINE>}...
ex.toString(), ex);
1,735,009
public void testCBRestrictsWhenHalfOpen() throws Exception {<NEW_LINE>// Open the breaker<NEW_LINE>for (int i = 0; i < 2; i++) {<NEW_LINE>try {<NEW_LINE>bean.serviceM(false, null, null);<NEW_LINE>} catch (ConnectException e) {<NEW_LINE>// Expected<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Wait for breaker to half open<NEW_LINE...
sleep(TestConstants.TIMEOUT + 100);
1,759,182
private void addIndexForAlert(Connection conn) {<NEW_LINE>// First drop if it exists. (Due to patches shipped to customers some will have the index and some wont.)<NEW_LINE>List<String> indexList <MASK><NEW_LINE>s_logger.debug("Dropping index i_alert__last_sent if it exists");<NEW_LINE>// in 4.1, we created this index ...
= new ArrayList<String>();
1,653,725
private void processIndexSegmentEntriesBackward(IndexSegment indexSegment, Predicate<IndexEntry> predicate, Map<StoreKey, IndexFinalState> keyFinalStates) throws StoreException {<NEW_LINE>diskIOScheduler.getSlice(BlobStoreStats.IO_SCHEDULER_JOB_TYPE, BlobStoreStats.<MASK><NEW_LINE>logger.trace("Processing index entries...
IO_SCHEDULER_JOB_ID, indexSegment.size());
189,362
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent descrationDemon = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && descrationDemon != null) {<NEW_LINE>for (UUID opponentId : game.getOpponents(controlle...
opponent = game.getPlayer(opponentId);
1,359,682
private void addImports(SrcLinkedClass srcClass) {<NEW_LINE>srcClass.addImport(Bindings.class);<NEW_LINE>srcClass.addImport(Endpoint.class);<NEW_LINE>srcClass.addImport(Executor.class);<NEW_LINE>srcClass.addImport(GqlQuery.class);<NEW_LINE>srcClass.addImport(GqlQueryResult.class);<NEW_LINE>srcClass.addImport(Requester....
srcClass.addImport(IProxyFactory.class);
700,458
private void trashComment() {<NEW_LINE>if (!isAdded() || mComment == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CommentStatus status = CommentStatus.fromString(mComment.getStatus());<NEW_LINE>// If the comment status is trash or spam, next deletion is a permanent deletion.<NEW_LINE>if (status == CommentStatus.TRASH |...
(R.string.delete));
1,709,780
public static <T> MutableSortedSet<MutableSortedSet<T>> powerSet(SortedSet<T> set) {<NEW_LINE>Comparator<? super T> comparator = set.comparator();<NEW_LINE>MutableSortedSet<T> innerTree = TreeSortedSet.newSet(comparator);<NEW_LINE>TreeSortedSet<MutableSortedSet<T>> sortedSetIterables = TreeSortedSet.newSet(Comparators....
seed = sortedSetIterables.with(innerTree);
354,756
public Comic parseInfo(String html, Comic comic) {<NEW_LINE>Node body = new Node(html);<NEW_LINE>String title = body.text("#ct > div.detail_info > a._btnInfo > p.subj");<NEW_LINE>String cover = body.src("#_episodeList > li > a > div.row > div.pic > img");<NEW_LINE>String update = body.text("#_episodeList > li > a > div...
parseInt(args[2]));
241,365
public ListContentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListContentsResult listContentsResult = new ListContentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
1,443,549
private Position decodeV3(String sentence, Channel channel, SocketAddress remoteAddress) {<NEW_LINE>Parser parser = new Parser(PATTERN_V3, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());<NEW_LIN...
* 4 + 1])));
1,839,522
public void renderLines(PoseStack matrices, Tesselator tessellator, BufferBuilder bufferBuilder, double cx, double cy, double cz, float partialTick) {<NEW_LINE>Vec3 v1 = shape.relativiseRender(client.<MASK><NEW_LINE>Vec3 v2 = shape.relativiseRender(client.level, shape.to, partialTick);<NEW_LINE>drawLine(tessellator, bu...
level, shape.from, partialTick);
957,466
protected void performContextAction(Node[] nodes) {<NEW_LINE>VCSContext ctx = HgUtils.getCurrentContext(nodes);<NEW_LINE>final File[] roots = HgUtils.getActionRoots(ctx);<NEW_LINE>if (roots == null || roots.length == 0)<NEW_LINE>return;<NEW_LINE>final File root = Mercurial.getInstance().getRepositoryRoot(roots[0]);<NEW...
Queue q = goToPatch.getSelectedQueue();