idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
459,789
public ComplexSamples mix(float[] iSamples, float[] qSamples) {<NEW_LINE>VectorUtilities.<MASK><NEW_LINE>// Reuse this complex samples buffer to store the results and return to caller<NEW_LINE>ComplexSamples mixer = generate(iSamples.length);<NEW_LINE>float[] iMixer = mixer.i();<NEW_LINE>float[] qMixer = mixer.q();<NEW...
checkComplexArrayLength(iSamples, qSamples, VECTOR_SPECIES);
1,403,961
public void describe(com.ibm.ws.javaee.ddmodel.DDParser.Diagnostics diag) {<NEW_LINE>if (xmi) {<NEW_LINE>diag.describeIfSet("enterpriseBean", enterpriseBean);<NEW_LINE>} else {<NEW_LINE>diag.describeIfSet("name", name);<NEW_LINE>}<NEW_LINE>diag.describeIfSet(xmi ? "beanCache" : "bean-cache", bean_cache);<NEW_LINE>diag....
diag.describeIfSet("start-at-app-start", start_at_app_start);
1,674,952
private String loadDeobfuscationCode() throws DeobfuscateException {<NEW_LINE>try {<NEW_LINE>final String deobfuscationFunctionName = getDeobfuscationFuncName(playerCode);<NEW_LINE>final String functionPattern = "(" + deobfuscationFunctionName.replace("$", "\\$") + "=function\\([a-zA-Z0-9_]+\\)\\{.+?\\})";<NEW_LINE>fin...
Parser.matchGroup1(";([A-Za-z0-9_\\$]{2})\\...\\(", deobfuscateFunction);
1,402,202
public void actionPerformed(ActionEvent e) {<NEW_LINE>List<OWLObject> objects = getCurrentTarget().getObjectsToCopy();<NEW_LINE>if (objects.isEmpty()) {<NEW_LINE>// Shouldn't really happen, but just in case<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Push the objects on to the clip board<NEW_LINE><MASK><NEW_LINE>clipboard....
ViewClipboard clipboard = ViewClipboard.getInstance();
1,451,034
public static IndexOrdinalsFieldData build(final IndexReader indexReader, IndexOrdinalsFieldData indexFieldData, IndexSettings indexSettings, CircuitBreakerService breakerService, Logger logger, Function<SortedSetDocValues, ScriptDocValues<?>> scriptFunction) throws IOException {<NEW_LINE>assert indexReader.leaves().si...
long memorySizeInBytes = ordinalMap.ramBytesUsed();
1,305,111
public void showClearRubbishBinDialog() {<NEW_LINE>logDebug("showClearRubbishBinDialog");<NEW_LINE>rubbishBinFragment = (RubbishBinFragment) getSupportFragmentManager().findFragmentByTag(FragmentTag.RUBBISH_BIN.getTag());<NEW_LINE>if (rubbishBinFragment != null) {<NEW_LINE>if (rubbishBinFragment.isVisible()) {<NEW_LINE...
(R.string.clear_rubbish_confirmation));
314,632
public void onStyleLoaded(@NonNull Style style) {<NEW_LINE>if (isChecked) {<NEW_LINE>List<Feature> featuresFromVectorSource = vectorSource.querySourceFeatures(new String<MASK><NEW_LINE>List<Feature> pointFeatures = new ArrayList<>();<NEW_LINE>for (Feature singleLineFeature : featuresFromVectorSource) {<NEW_LINE>LineStr...
[] { "baseball_spray_chart_example_dat" }, null);
931,412
public void testNew2ResponseFilter(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>ClientBuilder cb = ClientBuilder.newBuilder();<NEW_LINE><MASK><NEW_LINE>c.register(ClientResponseFilter1.class, 200);<NEW_LI...
Client c = cb.build();
1,204,485
public void delete(OAtomicOperation atomicOperation) {<NEW_LINE>executeInsideComponentOperation(atomicOperation, operation -> {<NEW_LINE>final Lock <MASK><NEW_LINE>try {<NEW_LINE>final long size = size();<NEW_LINE>if (size > 0) {<NEW_LINE>throw new NotEmptyComponentCanNotBeRemovedException("Ridbag " + getName() + ":" +...
lock = FILE_LOCK_MANAGER.acquireExclusiveLock(fileId);
328,010
private void drawSimplePolygon() {<NEW_LINE>Exercise25_PointsInThePlane.Point2D point2D1 = new Exercise25_PointsInThePlane.Point2D(70, 55);<NEW_LINE>Exercise25_PointsInThePlane.Point2D point2D2 = new Exercise25_PointsInThePlane.Point2D(50, 20);<NEW_LINE>Exercise25_PointsInThePlane.Point2D point2D3 = new Exercise25_Poin...
StdDraw.setPenColor(StdDraw.BLUE);
176,059
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {<NEW_LINE>// include cookies<NEW_LINE>resp.addHeader("Access-Control-Allow-Methods", "GET, POST, PATCH, PUT, DELETE, OPTIONS");<NEW_LINE>// get input parameters<NEW_LINE>Map<String, String> params = Utils.getRequestParameters(req);...
servlet.http.HttpServletResponse.SC_OK);
296,136
public boolean hookIncomingRequestPostProcessed(RequestDetails theRequestDetails, HttpServletRequest theRequest, HttpServletResponse theResponse) throws AuthenticationException {<NEW_LINE>// We don't support this operation type yet<NEW_LINE>Validate.isTrue(theRequestDetails.<MASK><NEW_LINE>AuthorizedList authorizedList...
getRestOperationType() != RestOperationTypeEnum.SEARCH_SYSTEM);
1,836,957
private <P extends Definition, D extends P> Set<D> filterAndLoad(Class<D> defType, Set<DefDescriptor<?>> dependencies, TempFilter extraFilter) {<NEW_LINE>Set<D> out = Sets.newLinkedHashSet();<NEW_LINE>if (dependencies != null) {<NEW_LINE>AuraContext context = contextService.getCurrentContext();<NEW_LINE>for (DefDescrip...
optionalDef = context.getLocalDef(dd);
1,267,669
private static void deployCustom(ApplicationServer applicationServer, HandlerList handlers, List<String> customNames) {<NEW_LINE>customNames.parallelStream().forEach(name -> {<NEW_LINE>try {<NEW_LINE>Path war = Paths.get(Config.dir_custom().toString(<MASK><NEW_LINE>Path dir = Paths.get(Config.dir_servers_applicationSer...
), name + PathTools.DOT_WAR);
1,340,944
public CreateAppInstanceAdminResult createAppInstanceAdmin(CreateAppInstanceAdminRequest createAppInstanceAdminRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAppInstanceAdminRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ...
JsonUnmarshallerContext> unmarshaller = new CreateAppInstanceAdminResultJsonUnmarshaller();
22,349
private void submitForm() {<NEW_LINE>if (!validateForm()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);<NEW_LINE>imm.hideSoftInputFromWindow(et_user.getWindowToken(), 0);<NEW_LINE>if (!isOnline(this)) {<NEW_LINE>loginLoggingIn.setVisibility(...
loginProgressBar.setVisibility(View.VISIBLE);
1,193,029
public static MutableRoaringBitmap andNot(final MutableRoaringBitmap x1, final MutableRoaringBitmap x2) {<NEW_LINE>final MutableRoaringBitmap answer = new MutableRoaringBitmap();<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>final int length1 = x1.highLowContainer.size(), length2 = x2.highLowContainer.size();<NEW_LINE>whil...
x1.highLowContainer.getKeyAtIndex(pos1);
1,727,387
public static GlassfishInstance create(String displayName, String installRoot, String glassfishRoot, String domainsDir, String domainName, int httpPort, int adminPort, String userName, String password, String target, String url, GlassfishInstanceProvider gip) {<NEW_LINE>Map<String, String> ip = new HashMap<>();<NEW_LIN...
, Integer.toString(httpPort));
308,433
public static synchronized String validateAuthToken(Context c, String token) throws GoogleTasksException {<NEW_LINE>GoogleAccountManager accountManager = new <MASK><NEW_LINE>if (testToken(token))<NEW_LINE>return token;<NEW_LINE>// If fail, token may have expired -- get a new one and return that<NEW_LINE>String accountN...
GoogleAccountManager(ContextManager.getContext());
212,890
default Object lookup(final SymbolNode opNode, final Context c, final boolean cutoff, final int forToolId) {<NEW_LINE>final boolean isVarDecl = (opNode.getKind() == ASTConstants.VariableDeclKind);<NEW_LINE>Object result = c.lookup(opNode, cutoff && isVarDecl);<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_...
SubstInNode) body).getBody();
137,646
// isOpen<NEW_LINE>@Override<NEW_LINE>protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// Truncate Dates<NEW_LINE>Timestamp date = getStartDate();<NEW_LINE>if (date != null) {<NEW_LINE>setStartDate(TimeUtil.getDay(date));<NEW_LINE>} else {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>date = getEndDa...
(TimeUtil.getDay(date));
135,434
public void marshall(AwsEksClusterDetails awsEksClusterDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEksClusterDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsEksClusterDetails.get...
awsEksClusterDetails.getClusterStatus(), CLUSTERSTATUS_BINDING);
1,438,073
public void downloadFileViaTokenPublic(String accessKey, String token, String range, Boolean genericMimetype, Boolean inline) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'accessKey' is set<NEW_LINE>if (accessKey == null) {<NEW_LINE>throw new ApiException(400,...
localVarAccept, localVarContentType, localVarAuthNames, null);
8,974
public ListenableFuture<SegmentsAndCommitMetadata> push(final Collection<SegmentIdWithShardSpec> identifiers, @Nullable final Committer committer, final boolean useUniquePath) {<NEW_LINE>final Map<SegmentIdWithShardSpec, Sink> theSinks = new HashMap<>();<NEW_LINE>AtomicLong pushedHydrantsCount = new AtomicLong();<NEW_L...
"mergeAndPush[%s] returned null, skipping.", entry.getKey());
1,187,116
private DateTimeResolutionResult parseWeekOfYear(String text, LocalDateTime referenceDate) {<NEW_LINE>DateTimeResolutionResult ret = new DateTimeResolutionResult();<NEW_LINE>String trimmedText = text.trim().toLowerCase();<NEW_LINE>ConditionalMatch match = RegexExtension.matchExact(this.config.getWeekOfYearRegex(), trim...
WeekDayCount * (weekNum - 1));
212,386
private void writeStringWithoutLength(char[] chars, int len) {<NEW_LINE>int p = pos;<NEW_LINE>byte[] buff = data;<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>int c = chars[i];<NEW_LINE>if (c < 0x80) {<NEW_LINE>buff[p++] = (byte) c;<NEW_LINE>} else if (c >= 0x800) {<NEW_LINE>buff[p++] = (byte) (0xe0 | (c >> 12));<...
(byte) (c & 0x3f);
237,796
public static // [VanillaCopy] ItemRenderer.renderItem with simplifications + color support + custom model<NEW_LINE>void renderItemCustomColor(LivingEntity entity, ItemStack stack, int color, PoseStack ms, MultiBufferSource buffers, int light, int overlay, @Nullable BakedModel model) {<NEW_LINE>ms.pushPose();<NEW_LINE>...
0.5D, -0.5D, -0.5D);
1,054,250
static void write(TManifest manifest, OutputStream out) throws IOException {<NEW_LINE>CharsetEncoder encoder = Charset.defaultCharset().newEncoder();<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(512);<NEW_LINE>String version = manifest.mainAttributes.getValue(TAttributes.Name.MANIFEST_VERSION);<NEW_LINE>if (version...
name = (TAttributes.Name) o;
830,422
protected String addForbiddenWords(SearchRequest searchRequest, String query) {<NEW_LINE>List<String> allForbiddenWords = new ArrayList<>(searchRequest.getInternalData().getForbiddenWords());<NEW_LINE>allForbiddenWords.addAll(configProvider.getBaseConfig().getSearching().getForbiddenWords());<NEW_LINE>allForbiddenWords...
getCategory().getForbiddenWords());
150,200
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>if (account != null) {<NEW_LINE>builder.field(Field.ACCOUNT.getPreferredName(), account);<NEW_LINE>}<NEW_LINE>if (auth != null) {<NEW_LINE>builder.field(Field.USER.getPreferredName(), ...
.toLowerCase(Locale.ROOT));
1,586,032
public void execute() {<NEW_LINE>if (src == null) {<NEW_LINE>throw new BuildException("Zip file (src attribute) is not set!");<NEW_LINE>}<NEW_LINE>if (privatekey == null) {<NEW_LINE>throw new BuildException("Private key is not set!");<NEW_LINE>}<NEW_LINE>if (publickey == null) {<NEW_LINE>throw new BuildException("Publi...
= pemToDer(readFile(publickey));
417,995
public void marshall(GroupType groupType, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (groupType == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(groupType.getGroupName(), GROUPNAME_BINDING);<NEW_LINE>pr...
e.getMessage(), e);
895,951
public void removeDiskReferenceFromSnapshot(String diskFileName) {<NEW_LINE>String numSnapshotsStr = _properties.getProperty("snapshot.numSnapshots");<NEW_LINE>if (numSnapshotsStr != null) {<NEW_LINE>int <MASK><NEW_LINE>for (int i = 0; i < numSnaphosts; i++) {<NEW_LINE>String numDisksStr = _properties.getProperty(Strin...
numSnaphosts = Integer.parseInt(numSnapshotsStr);
775,282
protected Suggest.Suggestion<? extends Suggest.Suggestion.Entry<? extends Suggest.Suggestion.Entry.Option>> innerExecute(String name, final CompletionSuggestionContext suggestionContext, final IndexSearcher searcher, CharsRefBuilder spare) throws IOException {<NEW_LINE>if (suggestionContext.getFieldType() != null) {<NE...
0, spare.length());
1,016,732
public String order(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>Integer C_Order_ID = (Integer) value;<NEW_LINE>if (// assuming it is resetting value<NEW_LINE>isCalloutActive() || C_Order_ID == null || C_Order_ID.intValue() == 0)<NEW_LINE>return "";<NEW_LINE>mTab.setValue("C_In...
Level.SEVERE, sql, e);
731,746
private static ExternalFunctionBodyNode createExternalFunctionBodyNode(BFunction bFunction) {<NEW_LINE>Map<String, List<String>> fields = new LinkedHashMap<>();<NEW_LINE>if (bFunction.getKind() == BFunction.BFunctionKind.METHOD) {<NEW_LINE>JMethod jMethod = (JMethod) bFunction;<NEW_LINE>fields.put(NAME, Collections.sin...
AbstractNodeFactory.createToken(SyntaxKind.EQUAL_TOKEN);
1,690,077
public WebResponse invokeAuthServer(String testcase, WebConversation wc, WebResponse response, TestSettings settings, List<validationData> expectations, String invoke_type) throws Exception {<NEW_LINE>String thisMethod = "invokeAuthServer";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_LINE>WebRequest request = nu...
formTools.fillAuthorizationForm(request, settings);
1,806,237
Collection<String> checkForSingleNodeTable(RouteResultset rrs, String clientCharset) throws SQLNonTransientException {<NEW_LINE>Set<Pair<String, String>> tablesSet = new HashSet<>(ctx.getTables());<NEW_LINE>Set<String> involvedNodeSet = new HashSet<>();<NEW_LINE>routeForShardingConditionsToOneNode(rrs, tablesSet, invol...
routeForNoShardingTablesToOneNode(currentNode, tablesSet, involvedNodeSet);
1,805,808
public static JEditorPane createTipBrowser() {<NEW_LINE>JEditorPane browser = new JEditorPane() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void setDocument(Document document) {<NEW_LINE>super.setDocument(document);<NEW_LINE>document.putProperty("imageCache", new URLDictionatyLoader());<NEW_LINE>}<NEW_LINE>};<NEW_LI...
kit = JBHtmlEditorKit.create(false);
504,689
final DisassociateProductFromPortfolioResult executeDisassociateProductFromPortfolio(DisassociateProductFromPortfolioRequest disassociateProductFromPortfolioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateProductFromPortfolioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
695,141
private boolean invokeMethod(Map m, String method, String clazz) {<NEW_LINE>if (theClass == null) {<NEW_LINE>try {<NEW_LINE>theClass = Class.forName(clazz);<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Object <MASK><NEW_LINE>if (o == null) {<NEW_LI...
o = m.get(value);
805,339
private void readAttributes(XMLStreamReader reader) throws Exception {<NEW_LINE>String classAtt = "";<NEW_LINE>String typeAtt = "";<NEW_LINE>for (int i = 0; i < reader.getAttributeCount(); i++) {<NEW_LINE>String attName = reader.getAttributeName(i).getLocalPart();<NEW_LINE>if (ATTRIBUTES_CLASS.equalsIgnoreCase(attName)...
readAttribute(reader, classAtt, typeAtt);
1,529,195
public void addEdge(int threadId, WritableComparable srcId, WritableComparable dstId, Writable value) throws IOException {<NEW_LINE>int bytesEdgeSrcOffset = 0, bytesEdgeDstOffset = 0, bytesDataOffsets = 0;<NEW_LINE>bytesEdgeSrcOffset = (int) -edgeSrcIdOutputStream[threadId].bytesWriten();<NEW_LINE>srcId.write(edgeSrcId...
edgeSrcIdOutputStream[threadId].bytesWriten();
424,788
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean canGetInstanceInfo(com.sun.jdi.VirtualMachine a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.j...
Mirror) a).virtualMachine();
1,569,485
public void onDismiss(@NonNull DialogInterface dialog) {<NEW_LINE>boolean checked = false;<NEW_LINE>int selected = 0;<NEW_LINE>for (int i = 0; i < preferences.size(); i++) {<NEW_LINE>boolean active = preferences.get(i).get();<NEW_LINE>checked |= active;<NEW_LINE>if (active) {<NEW_LINE>selected++;<NEW_LINE>}<NEW_LINE>}<...
color.osmand_orange : ContextMenuItem.INVALID_ID);
949,968
public static void main(String[] args) throws InterruptedException {<NEW_LINE>String discoveryURL = args[0];<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>EurekaServerConfig serverConfig = new DefaultEurekaServerConfig("eureka.");<NEW_LINE>JerseyReplicationClient client = JerseyReplicationClient.create...
EurekaEntityFunctions.mergeApplications(applications, delta);
1,613,275
private RubyBigDecimal subSpecialCases(ThreadContext context, RubyBigDecimal val) {<NEW_LINE>if (isNaN() || val.isNaN()) {<NEW_LINE>return newNaN(context.runtime);<NEW_LINE>}<NEW_LINE>if (isZero()) {<NEW_LINE>if (val.isZero())<NEW_LINE>return newZero(context.runtime, zeroSign * val.zeroSign);<NEW_LINE>if (val.isInfinit...
newInfinity(context.runtime, infinitySign);
1,654,063
protected void addCartData(Map<String, Object> attrMap) {<NEW_LINE>Order cart = CartState.getCart();<NEW_LINE>int cartQty = 0;<NEW_LINE>List<Long> cartItemIdsWithOptions = new ArrayList<>();<NEW_LINE>List<Long> <MASK><NEW_LINE>if (cart != null && cart.getOrderItems() != null) {<NEW_LINE>cartQty = cart.getItemCount();<N...
cartItemIdsWithoutOptions = new ArrayList<>();
78,002
private void initComponents() {<NEW_LINE>getAccessibleContext().setAccessibleName(NbBundle.getMessage(Customizer.class, "ACS_Customizer"));<NEW_LINE>getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(Customizer.class, "ACS_Customizer"));<NEW_LINE>// set help ID according to selected tab<NEW_LINE>addCha...
.getJavadocsModel(), null));
1,767,724
public void index(Record record) {<NEW_LINE>if (db == null)<NEW_LINE>init();<NEW_LINE>// is there a previous version of this record? if so, remove it<NEW_LINE>String id = getId(record);<NEW_LINE>if (!overwrite && file != null) {<NEW_LINE>Record old = findRecordById(id);<NEW_LINE>if (old != null) {<NEW_LINE>for (KeyFunc...
block = blocks.get(key);
305,458
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {<NEW_LINE>long start = (long) request.getAttribute("_start");<NEW_LINE>String actionName = request.getRequestURI();<NEW_LINE>String <MASK><NEW_LINE>StringBuilder logString = new StringBuilder();<NEW_LINE...
clientIp = IpUtil.getIpAddr(request);
528,130
public static EsShardPartitions findShardPartitions(String indexName, String searchShards) throws DorisEsException {<NEW_LINE>EsShardPartitions partitions = new EsShardPartitions(indexName);<NEW_LINE>JSONObject jsonObject = (<MASK><NEW_LINE>JSONArray shards = (JSONArray) jsonObject.get("shards");<NEW_LINE>int size = sh...
JSONObject) JSONValue.parse(searchShards);
582,429
public void handleInvalidTokenExceptions(final Class from, final Throwable e, final HttpServletRequest request, final HttpServletResponse response) {<NEW_LINE>if (Logger.isDebugEnabled(from)) {<NEW_LINE>Logger.debug(from, e.getMessage(), e);<NEW_LINE>}<NEW_LINE>if (causedBy(e, SignatureException.class, IncorrectClaimEx...
"An invalid attempt to use a JWT [%s]", e.getMessage());
457,681
private ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'requiredStri...
throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters");
725,871
public Iterable<Code> expand(ValueSetInfo valueSet) throws ResourceNotFoundException {<NEW_LINE>// This could possibly be refactored into a single call to the underlying HAPI Terminology service. Need to think through that..,<NEW_LINE>ValueSet vs;<NEW_LINE>if (valueSet.getId().startsWith("http://") || valueSet.getId()....
(include.getSystem()));
535,200
private void resolveSpecialization(JMethod method) {<NEW_LINE>// TODO (cromwellian): Move to GwtAstBuilder eventually<NEW_LINE>if (method.getSpecialization() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Specialization specialization = method.getSpecialization();<NEW_LINE>if (specialization.getParams() == null) {<NEW...
resolve(resolvedParams, resolvedReturn, resolvedTargetMethod);
127,477
protected void handleGet(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>final Map<String, String> templateVariableToValue = new HashMap<>();<NEW_LINE>if (IMAGE_TYPE_NAME_OR_ID_URI_TEMPLATE.match(req.getRequestURI(), tem...
getParam(req, ImageMgmtConstants.IMAGE_TYPE);
708,454
protected void onSuccess() {<NEW_LINE>final long now = RRTime.utcCurrentTimeMillis();<NEW_LINE>switch(action) {<NEW_LINE>case RedditAPI.ACTION_DOWNVOTE:<NEW_LINE>mChangeDataManager.markDownvoted(now, src);<NEW_LINE>break;<NEW_LINE>case RedditAPI.ACTION_UNVOTE:<NEW_LINE>mChangeDataManager.markUnvoted(now, src);<NEW_LINE...
markHidden(now, src, true);
100,018
public Request<CreatePlatformEndpointRequest> marshall(CreatePlatformEndpointRequest createPlatformEndpointRequest) {<NEW_LINE>if (createPlatformEndpointRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreatePlatformEndpointRequest> reques...
request.setHttpMethod(HttpMethodName.POST);
910,160
public static void refreshProjects(@Nonnull final ImportSpecBuilder specBuilder) {<NEW_LINE>ImportSpec spec = specBuilder.build();<NEW_LINE>ExternalSystemManager<?, ?, ?, ?, ?> manager = ExternalSystemApiUtil.getManager(spec.getExternalSystemId());<NEW_LINE>if (manager == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Ab...
] counter = new int[1];
1,313,324
public static String escapeIllegalXmlChars(@Nonnull String text) {<NEW_LINE>StringBuilder b = null;<NEW_LINE>int lastPos = 0;<NEW_LINE>for (int i = 0; i < text.length(); i++) {<NEW_LINE>int c = text.codePointAt(i);<NEW_LINE>if (Character.isSupplementaryCodePoint(c)) {<NEW_LINE>// noinspection AssignmentToForLoopParamet...
, i).append('#');
1,389,615
final GenerateEmbedUrlForRegisteredUserResult executeGenerateEmbedUrlForRegisteredUser(GenerateEmbedUrlForRegisteredUserRequest generateEmbedUrlForRegisteredUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(generateEmbedUrlForRegisteredUserRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
(super.beforeMarshalling(generateEmbedUrlForRegisteredUserRequest));
28,293
private void registerVertxAndPool(String persistenceUnitName, RuntimeSettings runtimeSettings, PreconfiguredReactiveServiceRegistryBuilder serviceRegistry) {<NEW_LINE>if (runtimeSettings.isConfigured(AvailableSettings.URL)) {<NEW_LINE>// the pool has been defined in the persistence unit, we can bail out<NEW_LINE>return...
(vertxHandle.get()));
1,201,373
private void loadNode472() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultHttpsGroup_TrustList_Read_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), Localize...
.expanded(), false));
1,248,658
private IWeEventFileClient buildIWeEventFileClient(Integer brokerId, String groupId, String nodeAddress) {<NEW_LINE>String clientKey = brokerId + IDENTIFIER + groupId + IDENTIFIER + nodeAddress;<NEW_LINE>if (!this.fileClientMap.containsKey(clientKey)) {<NEW_LINE>FiscoConfig fiscoConfig = new FiscoConfig();<NEW_LINE>fis...
downloadPath, ConstantProperties.FILE_CHUNK_SIZE, fiscoConfig);
356,854
public static void convolve3(Kernel2D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] 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, skip, radius);<...
radius) * input.stride - radius;
1,132,191
public Void doCall(final EntitlementApi entitlementApi, final DefaultEntitlementContext updatedPluginContext) throws EntitlementApiException {<NEW_LINE>if (eventsStream.isSubscriptionCancelled()) {<NEW_LINE>throw new EntitlementApiException(ErrorCode.SUB_UNCANCEL_BAD_STATE, getId());<NEW_LINE>}<NEW_LINE>final InternalC...
getSubscriptionBase().uncancel(callContext);
992,995
public boolean prepareFile(Rule rule, Environment env) throws RepositoryFunctionException, InterruptedException {<NEW_LINE>WorkspaceAttributeMapper mapper = WorkspaceAttributeMapper.of(rule);<NEW_LINE>boolean hasFile = mapper.isAttributeValueExplicitlySpecified(getFileAttrName());<NEW_LINE>boolean hasFileContent = mapp...
RepositoryFunctionException(e, Transience.PERSISTENT);
265,754
protected void runAlgo() {<NEW_LINE>EdgeExplorer explorer = outEdgeExplorer;<NEW_LINE>while (true) {<NEW_LINE>visitedNodes++;<NEW_LINE>if (isMaxVisitedNodesExceeded() || finished())<NEW_LINE>break;<NEW_LINE>int baseNode = currEdge.adjNode;<NEW_LINE>EdgeIterator iter = explorer.setBaseNode(baseNode);<NEW_LINE>while (ite...
createEntry(iter, traversalId, tmpWeight);
892,111
private void raiseVetoableEvent(Object value, int index, int op) {<NEW_LINE>Object curValue = null;<NEW_LINE>Object newValue = null;<NEW_LINE>// Get the current and new value<NEW_LINE>if (Common.isArray(this.type)) {<NEW_LINE>Object[] arrValue;<NEW_LINE>curValue = this.getValues();<NEW_LINE>switch(op) {<NEW_LINE>case O...
j++] = curValues[i];
1,271,421
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public @buseventtype create objectarray schema MyEvent(c0 int)", path);<NEW_LINE>env.compileDeploy("@public create table windowAndTotal (" + "thewindow window(*) @type(MyEvent), thetotal sum(in...
fieldsInner = "thewindow,thetotal".split(",");
149,284
public static void main(String[] args) throws Exception {<NEW_LINE>Scanner sc = new Scanner(new File("articulation_in.txt"));<NEW_LINE>int V = sc.nextInt();<NEW_LINE>AL = new ArrayList<>();<NEW_LINE>for (int u = 0; u < V; ++u) {<NEW_LINE>// store blank vector first<NEW_LINE>AL.add(new ArrayList<>());<NEW_LINE>int k = s...
.nCopies(V, 0));
233,330
PagedFlux<FileSystemItem> listFileSystemsWithOptionalTimeout(ListFileSystemsOptions options, Duration timeout) {<NEW_LINE>PagedFlux<BlobContainerItem> inputPagedFlux = blobServiceAsyncClient.listBlobContainers(Transforms.toListBlobContainersOptions(options));<NEW_LINE>return PagedFlux.create(() -> (continuationToken, p...
.getContinuationToken(), null));
493,317
private ListenableFuture<Void> processAttributesUpdate(TenantId tenantId, CustomerId customerId, EntityId entityId, TransportProtos.PostAttributeMsg msg, TbMsgMetaData metaData) {<NEW_LINE>SettableFuture<Void> futureToSet = SettableFuture.create();<NEW_LINE>JsonObject json = JsonUtils.getJsonObject(msg.getKvList());<NE...
String queueName = defaultQueueAndRuleChain.getKey();
1,404,555
S3ClientSettings refine(RepositoryMetaData metadata) {<NEW_LINE>final Settings repoSettings = metadata.settings();<NEW_LINE>// Normalize settings to placeholder client settings prefix so that we can use the affix settings directly<NEW_LINE>final Settings normalizedSettings = Settings.builder().put(repoSettings).normali...
getRepoSettingOrDefault(MAX_RETRIES_SETTING, normalizedSettings, maxRetries);
1,807,288
public void createNewSibling() {<NEW_LINE>OWLClass cls = getTree().getSelectedOWLObject();<NEW_LINE>if (cls == null) {<NEW_LINE>// Shouldn't really get here, because the<NEW_LINE>// action should be disabled<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// We need to apply the changes in the active ontology<NEW_LINE>OWLEntityCr...
setSelectedOWLObject(creationSet.getOWLEntity());
1,420,935
public void init(BeanManager beanManager, Config config) {<NEW_LINE>super.init(beanManager, config);<NEW_LINE>if (getType().isInvokeAtAssembly()) {<NEW_LINE>processor = new ProxyProcessor(this);<NEW_LINE>} else {<NEW_LINE>switch(getType()) {<NEW_LINE>case PROCESSOR_PUBLISHER_MSG_2_MSG:<NEW_LINE>processor = invokeProces...
msg.getPayload())));
1,360,679
protected List<double[]> means(List<? extends ModifiableDBIDs> clusters, List<double[]> means, Relation<DiscreteUncertainObject> database) {<NEW_LINE>List<double[]> newMeans = new ArrayList<>(k);<NEW_LINE>for (int i = 0; i < k; i++) {<NEW_LINE>ModifiableDBIDs list = clusters.get(i);<NEW_LINE>double[] mean = null;<NEW_L...
DBIDIter iter = list.iter();
1,185,193
Future<ReconciliationState> kafkaIngresses() {<NEW_LINE>if (!pfa.hasIngressV1()) {<NEW_LINE>return Future.succeededFuture(this);<NEW_LINE>}<NEW_LINE>List<Ingress> ingresses = new ArrayList<>(kafkaCluster.generateExternalBootstrapIngresses());<NEW_LINE>int replicas = kafkaCluster.getReplicas();<NEW_LINE>for (int i = 0; ...
, namespace, ingressName, ingress));
727,693
protected void addRunnableTasks(final ImageData<T> imageData, final PathObject parentObject, List<Runnable> tasks) {<NEW_LINE>PixelCalibration cal = imageData == null ? null : imageData<MASK><NEW_LINE>boolean useMicrons = params.getBooleanParameterValue("useMicrons") && cal != null && cal.hasPixelSizeMicrons();<NEW_LIN...
.getServer().getPixelCalibration();
249,937
public ContentValues toContentValues() {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(Movies.TMDB_ID, tmdbId);<NEW_LINE>values.put(Movies.IMDB_ID, imdbId);<NEW_LINE>values.put(Movies.TITLE, title);<NEW_LINE>values.put(Movies.TITLE_NOARTICLE, TextTools.trimLeadingArticle(title));<NEW_LINE>val...
WATCHED, watched ? 1 : 0);
1,235,156
final UpdateServiceSettingsResult executeUpdateServiceSettings(UpdateServiceSettingsRequest updateServiceSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateServiceSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new UpdateServiceSettingsResultJsonUnmarshaller());
631,563
public ItemStack insertItem(int slot, ItemStack stack, boolean simulate) {<NEW_LINE>if (!canInsert[slot] || stack.isEmpty())<NEW_LINE>return stack;<NEW_LINE>if (!inv.isStackValid(this.slotOffset + slot, stack))<NEW_LINE>return stack;<NEW_LINE>int offsetSlot = this.slotOffset + slot;<NEW_LINE>ItemStack currentStack = in...
ItemStack newStack = stack.copy();
295,595
private String contrast() {<NEW_LINE>final ShenyuDictDO before = (ShenyuDictDO) getBefore();<NEW_LINE>Objects.requireNonNull(before);<NEW_LINE>final ShenyuDictDO after = (ShenyuDictDO) getAfter();<NEW_LINE>Objects.requireNonNull(after);<NEW_LINE>if (Objects.equals(before, after)) {<NEW_LINE>return "it no change";<NEW_L...
, after.getDictName()));
658,308
public static void modConstruction() {<NEW_LINE>WireType.COPPER = COPPER = new ShockingWire(IEWireType.COPPER);<NEW_LINE>WireType.ELECTRUM = ELECTRUM = new ShockingWire(IEWireType.ELECTRUM);<NEW_LINE>WireType.STEEL = STEEL = new ShockingWire(IEWireType.STEEL);<NEW_LINE>WireType.STRUCTURE_ROPE = STRUCTURE_ROPE <MASK><NE...
= new BasicWire(IEWireType.STRUCTURE_ROPE);
909,449
private static void initScreens(boolean reset) {<NEW_LINE>if (screens != null && !reset) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log(lvl + 1, "initScreens: entry");<NEW_LINE>primaryScreen = 0;<NEW_LINE>setMouseRobot();<NEW_LINE>if (null == globalRobot) {<NEW_LINE>screens = new Screen[1];<NEW_LINE>screens[0] = null;<NEW_...
= new Screen[runTime.nMonitors];
1,121,600
final GetDeviceMethodsResult executeGetDeviceMethods(GetDeviceMethodsRequest getDeviceMethodsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceMethodsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,652,243
public List<Event> findEvents(String hostId, Date fromDate, Date toDate, String tag, String keyword, String categoryInode, final String sortBy, int offset, int limit) throws DotDataException, DotSecurityException, PortalException, SystemException {<NEW_LINE>User <MASK><NEW_LINE>boolean respectCMSAnon = false;<NEW_LINE>...
user = PortalUtil.getUser(request);
357,922
final DeleteDeviceResult executeDeleteDevice(DeleteDeviceRequest deleteDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
557,594
private static ExplainedOptional<TableRefInfo> retrieveTableRefInfo(final ResultSet rs) throws SQLException {<NEW_LINE>final ReferenceId referenceId = ReferenceId.ofRepoId(rs.getInt("AD_Reference_ID"));<NEW_LINE>final String TableName = rs.getString(1);<NEW_LINE>if (!StringUtils.toBoolean(rs.getString("Ref_IsActive")))...
emptyBecause("Table " + TableName + " is not active");
396,972
public JavaNode visitIdent(JCIdent ident, TreeContext owner) {<NEW_LINE>TreeContext ctx = owner.down(ident);<NEW_LINE>if (ident.sym == null) {<NEW_LINE>return emitDiagnostic(ctx, "missing identifier symbol", null, null);<NEW_LINE>}<NEW_LINE>EdgeKind edgeKind = EdgeKind.REF;<NEW_LINE>if (ident.sym instanceof ClassSymbol...
ctx, "failed to resolve symbol reference", null, null);
1,565,248
private ThreadSnapshotFilter produceConjunctionFilter(Op node) {<NEW_LINE>List<String> pattern = new ArrayList<String>();<NEW_LINE>while (node.toc == TokenType.COMMA && node.right.toc == TokenType.PATTERN) {<NEW_LINE>pattern.add(refinePattern(node.right.body));<NEW_LINE>node = node.left;<NEW_LINE>}<NEW_LINE>if (pattern...
(f, produceFilter(node));
1,388,380
public void executeFix(final String endpointId) throws DotDataException, DotSecurityException {<NEW_LINE>// remove from the index all the content under each conflicted host<NEW_LINE>final DotConnect dc = new DotConnect().setSQL("SELECT remote_working_inode, local_working_inode, remote_live_inode, local_live_inode," + "...
put(oldHostIdentifier, counter - 1);
969,202
public GlobalId createId(Object targetCdo, OwnerContext ownerContext) {<NEW_LINE>Validate.argumentsAreNotNull(targetCdo);<NEW_LINE>Optional<ObjectAccessProxy> cdoProxy = objectAccessHook.createAccessor(targetCdo);<NEW_LINE>Class<?> targetClass = cdoProxy.map((p) -> p.getTargetClass()).orElse(targetCdo.getClass());<NEW_...
localPath, ownerContext.requiresObjectHasher());
1,135,600
public static void main(String[] args) throws IOException {<NEW_LINE>if (args.length != 1) {<NEW_LINE>System.out.println("Usage: " + NeededNGramCounter.class.getSimpleName() + " <ngramIndexDir>");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>Language lang = Languages.getLanguageForShortCode(LANG);<NEW_LINE>String path ...
out.println("not needed ngrams: " + notNeeded);
1,768,367
public void marshall(ConnectorRuntimeSetting connectorRuntimeSetting, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (connectorRuntimeSetting == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(connectorRuntim...
connectorRuntimeSetting.getDescription(), DESCRIPTION_BINDING);
462,559
public SuiteLauncherDiscoveryRequestBuilder suite(Class<?> suiteClass) {<NEW_LINE>Preconditions.notNull(suiteClass, "Suite class must not be null");<NEW_LINE>// Annotations in alphabetical order (except @SelectClasses)<NEW_LINE>// @formatter:off<NEW_LINE>findRepeatableAnnotations(suiteClass, ConfigurationParameter.clas...
).ifPresent(this::filters);
1,553,514
public void takeSnapshot(SnapshotInfo snapshotInfo, AsyncCompletionCallback<CreateCmdResult> callback) {<NEW_LINE>LOGGER.debug("Taking PowerFlex volume snapshot");<NEW_LINE>Preconditions.checkArgument(snapshotInfo != null, "snapshotInfo cannot be null");<NEW_LINE>VolumeInfo volumeInfo = snapshotInfo.getBaseVolume();<NE...
storagePool = storagePoolDao.findById(storagePoolId);
175,905
public UserWithRole validateUser(String token) {<NEW_LINE>String username = this.tokenCache.get(IdGenerator.of(token));<NEW_LINE>Claims payload = null;<NEW_LINE>boolean needBuildCache = false;<NEW_LINE>if (username == null) {<NEW_LINE>payload = this.tokenGenerator.verify(token);<NEW_LINE>username = (String) <MASK><NEW_...
payload.get(AuthConstant.TOKEN_USER_NAME);
686,390
protected int crossover(final MSeq<G> v, final MSeq<G> w) {<NEW_LINE>final var random = RandomRegistry.random();<NEW_LINE>final double min = v.get(0).min().doubleValue();<NEW_LINE>final double max = v.get(0).max().doubleValue();<NEW_LINE>for (int i = 0, n = min(v.length(), w.length()); i < n; ++i) {<NEW_LINE>final var ...
(-_p, 1 + _p);