idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,488,718
private void watchOpenedTCs() {<NEW_LINE>ArrayList<TopComponent> windowsToWatch = findShowingTCs();<NEW_LINE>ArrayList<TopComponent> toAddListeners = new ArrayList<TopComponent>(windowsToWatch);<NEW_LINE>toAddListeners.removeAll(watchedLkpResults.keySet());<NEW_LINE>ArrayList<TopComponent> toRemoveListeners = new Array...
res = watchedLkpResults.get(tc);
824,542
public void write(JsonWriter out, JsonElement value) throws IOException {<NEW_LINE>if (value == null || value.isJsonNull()) {<NEW_LINE>out.nullValue();<NEW_LINE>} else if (value.isJsonPrimitive()) {<NEW_LINE>JsonPrimitive primitive = value.getAsJsonPrimitive();<NEW_LINE>if (primitive.isNumber()) {<NEW_LINE>out.<MASK><N...
value(primitive.getAsNumber());
1,751,610
private void loadRepositories() {<NEW_LINE>assert rp.isRequestProcessorThread();<NEW_LINE>// NOI18N<NEW_LINE>LOG.finer("loadRepositories()");<NEW_LINE>updateProgress(Progress.WILL_LOAD_REPOS);<NEW_LINE>long startTimeMillis = System.currentTimeMillis();<NEW_LINE>if (refFile != null) {<NEW_LINE>pingNBRepository(refFile);...
add(impl.getRepository());
1,503,197
// GEN-LAST:event_importDatabaseButtonActionPerformed<NEW_LINE>@Messages({ "HashLookupSettingsPanel.promptTitle.deleteHashDb=Delete Hash Database from Configuration", "HashLookupSettingsPanel.promptMessage.deleteHashDb=This will make the hash database unavailable for lookup. Do you want to proceed?\n\nNote: The hash da...
HashSetTable) hashSetTable).getSelection();
1,150,105
public void encodeColumnFooter(FacesContext context, DataTable table, UIColumn column) throws IOException {<NEW_LINE>if (!column.isRendered()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ColumnMeta columnMeta = table.getColumnMeta().get(column.getColumnKey());<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NE...
String text = column.getFooterText();
1,798,367
private Function createImplicitCastOrNull(int position, Function function, int toType) throws SqlException {<NEW_LINE>int fromType = function.getType();<NEW_LINE>switch(fromType) {<NEW_LINE>case ColumnType.STRING:<NEW_LINE>case ColumnType.SYMBOL:<NEW_LINE>if (toType == ColumnType.TIMESTAMP) {<NEW_LINE>return new CastSt...
fromGeoBits = ColumnType.getGeoHashBits(fromType);
1,762,500
public Rule deepCopy() {<NEW_LINE>Rule rule = null;<NEW_LINE>try {<NEW_LINE>rule = getClass().newInstance();<NEW_LINE>} catch (InstantiationException | IllegalAccessException ignored) {<NEW_LINE>// Can't happen... we already have an instance<NEW_LINE>// in case it happens anyway, something is really wrong...<NEW_LINE>t...
rule.setName(getName());
1,664,532
final DeleteVoiceConnectorOriginationResult executeDeleteVoiceConnectorOrigination(DeleteVoiceConnectorOriginationRequest deleteVoiceConnectorOriginationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceConnectorOriginationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,845,627
public boolean deleteUserFromProject(long projectId, long userId) {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>// check that the project exists<NEW_LINE>Project project = getProject(projectId);<NEW_LINE>if (project == null) {<NEW_LINE>InvalidParameterValueException ex = new InvalidPar...
user.getUsername() + " is not assigned to the project with specified id");
462,378
public void finish(DDParser parser) throws DDParser.ParseException {<NEW_LINE>if (version == null) {<NEW_LINE>version = parser.parseToken(parser.getDottedVersionText());<NEW_LINE>}<NEW_LINE>this.idMap = parser.idMap;<NEW_LINE>java.util.Map<String, com.ibm.ws.javaee.dd.ejbext.EnterpriseBean> beans = new java.util.HashMa...
, existing.getName()));
255,534
final DescribeOrderableDBInstanceOptionsResult executeDescribeOrderableDBInstanceOptions(DescribeOrderableDBInstanceOptionsRequest describeOrderableDBInstanceOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrderableDBInstanceOptionsRequest);<NEW_LINE>AWSRequestMetrics awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,456,157
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.apache.cxf.interceptor.Interceptor#handleMessage(org.apache.cxf.message.Message)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void handleMessage(Message message) {<NEW_LINE><MASK><NEW_LINE>if (handlersList == null || handlersList.size() == 0) {<NEW_LINE>retur...
handlersList = getHanderList(busType, flow);
1,070,557
public void release() {<NEW_LINE>debug(this + ".release()");<NEW_LINE>CompletableFuture<Hold> next;<NEW_LINE>Hold oldHold = null;<NEW_LINE>synchronized (AsyncLock.this) {<NEW_LINE>oldHold = curHold.get();<NEW_LINE>if (this != oldHold) {<NEW_LINE>Msg.error(this, <MASK><NEW_LINE>throw new IllegalStateException("Invalid o...
"Invalid ownership handle: " + oldHold + " != " + this);
1,131,891
public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {<NEW_LINE>if (BroadleafControllerUtility.isAjaxRequest(request)) {<NEW_LINE>// Set up some basic response attributes<NEW_LINE><MASK><NEW_LINE>ModelAndView mav = new ModelAndView("utility/blcExce...
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
347,661
public static void highlightMatches(Spannable content, String matches, String plainTextContent, int columnIndex, SpanFactory factory, OnMatchListener listener) {<NEW_LINE>if (TextUtils.isEmpty(matches))<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>// TODO: keep track of offsets and last index so we don't have to recalcula...
Scanner scanner = new Scanner(matches);
1,792,166
private ListenableFuture<Data> computeData(DataRequest req, Window win) {<NEW_LINE>return transform(qe.query(win.quantized ? summarySql() : counterSQL()), res -> {<NEW_LINE>int rows = res.getNumRows();<NEW_LINE>if (rows == 0) {<NEW_LINE>return Data.empty(req);<NEW_LINE>}<NEW_LINE>Data data = new Data(req, new long[rows...
data.capacity[rows - 1];
1,769,924
private void updateInstanceLiveness(List<LiveInstance> liveInstances) {<NEW_LINE>synchronized (notificationLock) {<NEW_LINE>Set<String> <MASK><NEW_LINE>for (LiveInstance liveInstance : liveInstances) {<NEW_LINE>liveInstancesSet.add(liveInstance.getInstanceName());<NEW_LINE>}<NEW_LINE>for (String instanceName : instance...
liveInstancesSet = new HashSet<>();
785,431
public void runDemo() {<NEW_LINE>ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("META-INF/spring/integration/bootstrap-config/stubbed-loan-broker.xml");<NEW_LINE>LoanBrokerGateway broker = context.getBean("loanBrokerGateway", LoanBrokerGateway.class);<NEW_LINE>LoanRequest loanRequest = new ...
logger.info("********* Best Quote *********\n" + loan);
1,076,539
public BatchDisassociateClientDeviceFromCoreDeviceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchDisassociateClientDeviceFromCoreDeviceResult batchDisassociateClientDeviceFromCoreDeviceResult = new BatchDisassociateClientDeviceFromCoreDeviceResult();<NEW_LINE>int originalDepth = con...
)).unmarshall(context));
1,821,985
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE><MASK><NEW_LINE>if (savedInstanceState == null) {<NEW_LINE>mBluetoothAdapter = ((BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE)).getAdapter();<NEW_LI...
setTitle(R.string.activity_main_title);
775,769
public static Bytes encode(final Bytes path) {<NEW_LINE>int size = path.size();<NEW_LINE>final boolean isLeaf = size > 0 && path.<MASK><NEW_LINE>if (isLeaf) {<NEW_LINE>size = size - 1;<NEW_LINE>}<NEW_LINE>final MutableBytes encoded = MutableBytes.create((size + 2) / 2);<NEW_LINE>int i = 0;<NEW_LINE>int j = 0;<NEW_LINE>...
get(size - 1) == LEAF_TERMINATOR;
76,168
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create window PointWindow#keepall as (id string, px double, py double);\n" + "create index MyIndex on PointWindow((px,py) pointregionquadtree(0,0,100,100,2,5));\n" + "insert into PointWindow ...
), bb.getMinY());
846,852
public void start() {<NEW_LINE>if (managedServiceReference == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Dictionary properties = obtainProperties();<NEW_LINE>alias = (String) getProp(properties, CXF_SERVLET_PREFIX + "context", "/cxf");<NEW_LINE>if (alias == null) {<NEW_LINE>alias = "/cxf";<NEW_LINE>}<NEW_LINE>WebCont...
"Servlet with alias " + getAlias() + " registered to secured web container");
606,340
public void writeXML(XMLOutput xmlOutput) throws IOException {<NEW_LINE>xmlOutput.startTag(CLASS_HASH_ELEMENT_NAME);<NEW_LINE>xmlOutput.addAttribute("class", className);<NEW_LINE>xmlOutput.addAttribute("value", hashToString(classHash));<NEW_LINE>xmlOutput.stopTag(false);<NEW_LINE>for (Map.Entry<XMethod, MethodHash> ent...
().isStatic()));
839,584
public static void horizontal3(Kernel1D_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 k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final <...
int radius = kernel.getRadius();
41,581
private String buildCommand() throws Exception {<NEW_LINE>// generate scripts<NEW_LINE>String fileName = String.format("%s/%s_node.%s", taskExecutionContext.getExecutePath(), taskExecutionContext.getTaskAppId(), OSUtils.<MASK><NEW_LINE>File file = new File(fileName);<NEW_LINE>Path path = file.toPath();<NEW_LINE>if (Fil...
isWindows() ? "bat" : "sh");
1,484,496
public void remap(CustomRemapper remapper) {<NEW_LINE>Set<String> mappedNames = new HashSet<>();<NEW_LINE>remapper.setIgnorePackages(true);<NEW_LINE>classNodes().forEach(classNode -> {<NEW_LINE>int matches = StringUtils.countMatches(classNode.name, "/");<NEW_LINE>if (matches > getConfig().getPackageLayers()) {<NEW_LINE...
name.substring(0, lastIndex);
339,402
public Concrete.Parameter buildParameter(Abstract.Parameter parameter, boolean isNamed, boolean isDefinition) {<NEW_LINE>List<? extends Referable> referableList = parameter.getReferableList();<NEW_LINE>Abstract.Expression type = parameter.getType();<NEW_LINE>Concrete.Expression cType;<NEW_LINE>if (type == null) {<NEW_L...
>(referableList.size());
1,594,612
protected void run() throws Exception {<NEW_LINE><MASK><NEW_LINE>ProjectData projectData = project.getProjectData();<NEW_LINE>DomainFile firstFile = getFirstFile(projectData);<NEW_LINE>for (int i = 1; i < 200000; i++) {<NEW_LINE>String path = getFolderPath(i);<NEW_LINE>DomainFolder folder = projectData.getRootFolder();...
Project project = state.getProject();
1,224,463
public String generate() {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>appendPackageAndCommonImports(builder, null, Arrays.asList(schema));<NEW_LINE>builder.append("import " + HollowFactory.class.getName() + ";\n");<NEW_LINE>builder.append("import " + HollowTypeDataAccess.class.getName() + ";\n");<NE...
className + "<T extends " + objectClassName + "> extends HollowFactory<T> {\n\n");
463,785
public static Fp12 finalExponentiation(Fp12 el) {<NEW_LINE>// first chunk<NEW_LINE>// el.b = -el.b<NEW_LINE>Fp12 w = new Fp12(el.a, el.b.negate());<NEW_LINE>Fp12 x = el.inverse();<NEW_LINE>Fp12 <MASK><NEW_LINE>Fp12 z = y.frobeniusMap(2);<NEW_LINE>Fp12 pre = z.mul(y);<NEW_LINE>// last chunk<NEW_LINE>Fp12 a = pre.negExp(...
y = w.mul(x);
1,246,332
final CreateConnectAttachmentResult executeCreateConnectAttachment(CreateConnectAttachmentRequest createConnectAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createConnectAttachmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,039,712
protected void initPointerAndDraw() {<NEW_LINE>mTriangleVertices.position(TRIANGLE_VERTICES_DATA_POS_OFFSET);<NEW_LINE>GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false, TRIANGLE_VERTICES_DATA_STRIDE_BYTES, mTriangleVertices);<NEW_LINE>checkGlError("glVertexAttribPointer maPosition");<NEW_LINE>GL...
GLES20.GL_TRIANGLE_STRIP, 0, 4);
1,084,979
protected void initializeEditingDomain() {<NEW_LINE>// Create an adapter factory that yields item providers.<NEW_LINE>//<NEW_LINE>adapterFactory = new ComposedAdapterFactory(<MASK><NEW_LINE>adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory());<NEW_LINE>adapterFactory.addAdapterFactory(new Generato...
ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
159,913
// bencoded export<NEW_LINE>protected void exportToBencodedMap(Map map, boolean generic) throws IOException {<NEW_LINE>map.put("type", new Long(type));<NEW_LINE>MapUtils.setMapString(map, "name", name);<NEW_LINE>map.put("source", new Long(source));<NEW_LINE>exportBEncodedMappings(map, "l1_map", first_level_mapping);<NE...
map.put("uid", uid);
1,008,469
private void saveConfig(String fileName) {<NEW_LINE>// sp1 is the shared pref to copy to<NEW_LINE>SharedPreferences.Editor ed = getActivity().getSharedPreferences(fileName, MODE_PRIVATE).edit();<NEW_LINE>// The shared preferences to copy from<NEW_LINE>SharedPreferences sp = getPreferenceScreen().getSharedPreferences();...
) v).longValue());
1,418,184
final StopMatchmakingResult executeStopMatchmaking(StopMatchmakingRequest stopMatchmakingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopMatchmakingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
447,820
private void addMessageHeaderHtml(StringBuilder html, Message message) throws MessagingException {<NEW_LINE>html.append("<table style=\"border: 0\">");<NEW_LINE>// From: <sender><NEW_LINE>Address[] from = message.getFrom();<NEW_LINE>if (from != null && from.length > 0) {<NEW_LINE>addTableRow(html, resourceProvider.mess...
, Address.toString(to));
1,026,952
public static byte[] decrypt(byte[] K, byte[] IVC) throws InvalidCiphertextException {<NEW_LINE>if (K.length != 32)<NEW_LINE>throw new AssertionError("K was wrong length");<NEW_LINE>if (IVC.length != 48)<NEW_LINE>throw new InvalidCiphertextException("IVC was wrong length");<NEW_LINE>byte[] IV = <MASK><NEW_LINE>byte[] C...
copyOfRange(IVC, 0, 16);
1,670,283
protected void performOutgoingBehavior(ActivityExecution execution, boolean checkConditions) {<NEW_LINE>LOG.leavingActivity(execution.getActivity().getId());<NEW_LINE>String defaultSequenceFlow = (String) execution.getActivity().getProperty("default");<NEW_LINE>List<PvmTransition> transitionsToTake = new ArrayList<>();...
).getId(), defaultSequenceFlow);
69,761
final ListAlertsResult executeListAlerts(ListAlertsRequest listAlertsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAlertsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,814,603
List<GcpAddress> instances(String project, String zone, Label label, String accessToken) {<NEW_LINE>String response = RestClient.create(urlFor(project, zone, label)).withHeader("Authorization", String.format("OAuth %s", accessToken)).get().getBody();<NEW_LINE>List<GcpAddress> result = new ArrayList<GcpAddress>();<NEW_L...
).getString("natIP", null);
895,448
private void defaultHandlers() {<NEW_LINE>handlerMap.putVoid(GdbCommandEchoInterruptEvent.class, this::pushCmdInterrupt);<NEW_LINE>handlerMap.putVoid(GdbCommandEchoEvent.class, this::ignoreCmdEcho);<NEW_LINE>handlerMap.putVoid(GdbConsoleOutputEvent.class, this::processStdOut);<NEW_LINE>handlerMap.putVoid(GdbTargetOutpu...
GdbThreadGroupRemovedEvent.class, this::processThreadGroupRemoved);
1,479,985
private ColumnState buildUnion(ContainerState parent, ColumnMetadata columnSchema) {<NEW_LINE>assert columnSchema.isVariant() && !columnSchema.isArray();<NEW_LINE>// Create the union vector.<NEW_LINE>// Don't get the union vector from the vector cache. Union vectors may<NEW_LINE>// have content that varies from batch t...
UnionWriterImpl(columnSchema, vector, null);
1,740,207
public com.amazonaws.services.s3outposts.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.s3outposts.model.ValidationException validationException = new com.amazonaws.services.s3outposts.model.ValidationException(null);<NEW_LINE><MASK><N...
int originalDepth = context.getCurrentDepth();
1,394,991
protected void initEnvironment() {<NEW_LINE>if (props == null) {<NEW_LINE>_logger.debug("PROVIDER_URL {}", providerUrl);<NEW_LINE>_logger.debug("SECURITY_PRINCIPAL {}", principal);<NEW_LINE>// no log credentials<NEW_LINE>// _logger.trace("SECURITY_CREDENTIALS {}" , credentials);<NEW_LINE>// LDAP<NEW_LINE>props = new Pr...
put(Context.SECURITY_PROTOCOL, "ssl");
395,117
private void configureChartResolvers(final RuntimeWiring.Builder builder) {<NEW_LINE>builder.type("Chart", typeWiring -> typeWiring.dataFetcher("relationships", new AuthenticatedResolver<>(new EntityRelationshipsResultResolver(graphClient))).dataFetcher("lineage", new AuthenticatedResolver<>(new EntityLineageResultReso...
Chart chart = env.getSource();
1,804,303
public BypassTableEntry deserialize(JsonParser jp, DeserializationContext cxt) throws IOException, JsonProcessingException {<NEW_LINE>ObjectMapper mapper = (ObjectMapper) jp.getCodec();<NEW_LINE>JsonNode node = mapper.readTree(jp);<NEW_LINE>String tableName;<NEW_LINE>Set<String> partitions;<NEW_LINE>if (!node.isTextual...
partitionsList = node.get("partitions");
989,210
Mono<Response<BlobProperties>> downloadToFileWithResponse(BlobDownloadToFileOptions options, Context context) {<NEW_LINE>StorageImplUtils.assertNotNull("options", options);<NEW_LINE>BlobRange finalRange = options.getRange() == null ? new BlobRange(0) : options.getRange();<NEW_LINE>final com.azure.storage.common.Paralle...
> openOptions = options.getOpenOptions();
1,659,014
public AudioLogSetting unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AudioLogSetting audioLogSetting = new AudioLogSetting();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
int originalDepth = context.getCurrentDepth();
1,561,193
private Map<UUID, List<InvoiceItem>> extractPerSubscriptionExistingInArrearUsageItems(final Map<String, Usage> knownUsage, @Nullable final Iterable<Invoice> existingInvoices) {<NEW_LINE>if (existingInvoices == null || Iterables.isEmpty(existingInvoices)) {<NEW_LINE>return ImmutableMap.of();<NEW_LINE>}<NEW_LINE>final Ma...
cur.getSubscriptionId(), perSubscriptionUsageItems);
140,087
public static Config createConfig(KubernetesClientBuildConfig buildConfig, TlsConfig tlsConfig) {<NEW_LINE>Config base = Config.autoConfigure(null);<NEW_LINE>boolean trustAll = buildConfig.trustCerts.isPresent() ? buildConfig.trustCerts<MASK><NEW_LINE>return new ConfigBuilder().withTrustCerts(trustAll).withWatchReconne...
.get() : tlsConfig.trustAll;
154,382
public void analyze(Analyzer analyzer) throws AnalysisException {<NEW_LINE>if (!Env.getCurrentEnv().getAuth().checkGlobalPriv(ConnectContext.get(), PrivPredicate.OPERATOR)) {<NEW_LINE>ErrorReport.reportAnalysisException(ErrorCode.ERR_SPECIFIC_ACCESS_DENIED_ERROR, "NODE");<NEW_LINE>}<NEW_LINE>if (properties == null) {<N...
"Invalid property: " + e.getMessage());
953,375
private PropertyFunction propertySetterFunction(long getSetToken, int functionLine, boolean yield, boolean await, boolean allowPrivate) {<NEW_LINE>final boolean computed = type == LBRACKET;<NEW_LINE>final Expression propertyName = classElementName(yield, await, allowPrivate);<NEW_LINE>final IdentNode setterName = compu...
setterName, getSetToken, functionFlags, functionLine);
1,796,513
public void deleteMenuItem(String id) {<NEW_LINE>for (MenuGroup group : systemMenus) {<NEW_LINE>if (group.getItems() != null) {<NEW_LINE>group.getItems().removeIf(item -> item.getId().equals(id));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (MenuGroup group : moduleMenus) {<NEW_LINE>if (group.getItems() != null) {<NEW_LINE>grou...
(item.getId()));
453,516
public synchronized void store(Block bk) {<NEW_LINE>if (bk.dirty == false)<NEW_LINE>return;<NEW_LINE>bk.dirty = false;<NEW_LINE>int mgtime = 0;<NEW_LINE>StopWatch w = new StopWatch();<NEW_LINE>if (bk.START > 0) {<NEW_LINE>StopWatch w2 = new StopWatch();<NEW_LINE>w2.start();<NEW_LINE>Block old = getReadBlock(bk.date, bk...
bk = bk.merge(old);
568,331
protected void renderBg(PoseStack ms, float partialTicks, int mouseX, int mouseY) {<NEW_LINE>Minecraft mc = Minecraft.getInstance();<NEW_LINE>RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);<NEW_LINE>RenderSystem.setShaderTexture(0, texture);<NEW_LINE>int k = (width - imageWidth) / 2;<NEW_LINE>int l = (height - ima...
0, 0, imageWidth, imageHeight);
224,865
private void sendResource(SlingHttpServletRequest request, SlingHttpServletResponse response, String filename, Resource downloadDataResource) throws IOException {<NEW_LINE>ValueMap valueMap = downloadDataResource.adaptTo(ValueMap.class);<NEW_LINE>if (valueMap != null) {<NEW_LINE>Calendar calendar = valueMap.get(JcrCons...
JcrConstants.JCR_MIMETYPE, String.class);
1,431,185
private String createPeopleFile(String baseUrl, String containerUrl, Map<String, VCard> importedPeople, SolidUtilities utilities) throws Exception {<NEW_LINE>Model peopleModel = ModelFactory.createDefaultModel();<NEW_LINE>Resource indexResource = peopleModel.createResource("index.ttl#this");<NEW_LINE>for (String insert...
.NS, "inAddressBook"), indexResource);
715,699
protected String speed(ProgressState progress, Duration elapsed) {<NEW_LINE>String suffix = "/s";<NEW_LINE>double elapsedSeconds = elapsed.getSeconds();<NEW_LINE>double elapsedInUnit = elapsedSeconds;<NEW_LINE>if (null != speedUnit)<NEW_LINE>switch(speedUnit) {<NEW_LINE>case MINUTES:<NEW_LINE>suffix = "/min";<NEW_LINE>...
format(speedWithUnit) + unitName + suffix;
1,070,276
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")...
error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
1,552,331
private ImportConfig ofRecordOrNull(@Nullable final I_HC_Forum_Datenaustausch_Config configRecord) {<NEW_LINE>if (configRecord == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final ImportConfig.<MASK><NEW_LINE>final BPGroupId patientBPGroupId = BPGroupId.ofRepoIdOrNull(configRecord.getImportedPartientBP_Group_ID()...
ImportConfigBuilder builder = ImportConfig.builder();
167,248
public void read(org.apache.thrift.protocol.TProtocol prot, TDataSource 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 incoming = iprot.readBitSet(6);<NEW_LINE>if (incoming.get(0)) {<NEW...
.maxConnectionSize = iprot.readI32();
1,598,848
final GetDeviceProfileResult executeGetDeviceProfile(GetDeviceProfileRequest getDeviceProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(getDeviceProfileRequest));
1,704,540
@MethodSource("provideParameters")<NEW_LINE>public void addTestData(final String dbName, final String schemaName, final int numberOfDummyRecords, final int numberOfBatches, final int numberOfColumns, final int numberOfStreams) throws Exception {<NEW_LINE>final Database database = setupDatabase(dbName);<NEW_LINE>databas...
(schemaName, numberOfColumns, currentTableName));
708,217
private int quicksortPartitionWithIndices(final float[] values, int lower, int upper, boolean yDown, short[] originalIndices) {<NEW_LINE>float x = values[lower];<NEW_LINE>float y = values[lower + 1];<NEW_LINE>int up = upper;<NEW_LINE>int down = lower;<NEW_LINE>float temp;<NEW_LINE>short tempIndex;<NEW_LINE>while (down ...
[down] = values[up];
852,880
public void testActivationLoaded() throws Exception {<NEW_LINE>// Verify Activation API came from the JDK<NEW_LINE>ClassLoader apiLoader = javax.activation.DataHandler.class.getClassLoader();<NEW_LINE>CodeSource apiSrc = javax.activation.DataHandler.class.getProtectionDomain().getCodeSource();<NEW_LINE>String apiLocati...
&& apiLocation.contains("com.ibm.websphere.javaee.activation.1.1"));
125,181
protected void processTasks(boolean redstoneCheck) {<NEW_LINE>if (!redstoneCheck || getEnergyStored() <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ItemStack stack = getStackInSlot(getSlotDefinition().minInputSlot);<NEW_LINE>if (Prep.isValid(stack)) {<NEW_LINE>int available = Math.min(getPowerUsePerTick(), getEnergyStor...
PowerHandlerUtil.getCapability(stack, null);
179,343
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent removeTargetCreature = game.getPermanent(targetPointer.getTargets(game, source).get(0));<NEW_LINE>Permanent addTargetCreature = game.getPermanent(targetPointer.getTargets(game, source).get(1));<NEW_LINE>if (removeTargetCreature != null && addTargetCre...
getControllerId(), source, game);
1,002,233
protected static void internalAlarmHandler(Object arg) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "internalAlarmHandler", arg);<NEW_LINE>ResendRecord record = (ResendRecord) arg;<NEW_LINE>synchronized (_requestMap) {<NEW_LINE>Long key = new Long(record.requestID...
wakeupWaiter(record.requestID, null);
145,602
private Object createFeature(FeatureFlagConfigurationSetting item) {<NEW_LINE>String key = getFeatureSimpleName(item);<NEW_LINE>Feature feature = new Feature(key, item);<NEW_LINE>Map<Integer, FeatureFlagFilter> featureEnabledFor = feature.getEnabledFor();<NEW_LINE>// Setting Enabled For to null, but enabled = true will...
groupRollouts = convertToListOrEmptyList(parameters, GROUPS_CAPS);
720,213
protected void mouseReleased(int mouseX, int mouseY, int eventType) {<NEW_LINE>super.mouseReleased(mouseX, mouseY, eventType);<NEW_LINE>if (index >= 0) {<NEW_LINE>int i = index;<NEW_LINE>index = -1;<NEW_LINE>IStatement changeTo;<NEW_LINE>Iterator<IStatement> it;<NEW_LINE>if (trigger)<NEW_LINE>it = container.getTriggerI...
slot = getSlotAtLocation(mouseX, mouseY);
1,437,943
public void subscribe(CoreSubscriber<? super Payload> actual) {<NEW_LINE>long previousState = markSubscribed(STATE, this);<NEW_LINE>if (isSubscribedOrTerminated(previousState)) {<NEW_LINE>final <MASK><NEW_LINE>final RequestInterceptor requestInterceptor = this.requestInterceptor;<NEW_LINE>if (requestInterceptor != null...
IllegalStateException e = new IllegalStateException("RequestStreamFlux allows only a single Subscriber");
1,079,183
public boolean unlock(final Passphrase passphrase) throws PgpGeneralException {<NEW_LINE>// handle keys on OpenPGP cards like they were unlocked<NEW_LINE>S2K s2k = mSecretKey.getS2K();<NEW_LINE>if (s2k != null && s2k.getType() == S2K.GNU_DUMMY_S2K && s2k.getProtectionMode() == S2K.GNU_PROTECTION_MODE_DIVERT_TO_CARD) {<...
keyDecryptor.makeKeyFromPassPhrase(keyEncryptionAlgorithm, s2k);
1,655,163
private void readReference(int AD_Reference_ID) {<NEW_LINE>m_values = new HashMap<String, String>();<NEW_LINE>String SQL;<NEW_LINE>if (Env.isBaseLanguage(Env.getCtx(), "AD_Ref_List"))<NEW_LINE>// @Trifon<NEW_LINE>SQL = "SELECT Value, Name FROM AD_Ref_List WHERE IsActive='Y' AND AD_Reference_ID=?";<NEW_LINE>else<NEW_LIN...
DB.close(rs, pstmt);
835,155
public void configure(Config conf) {<NEW_LINE>this.skipRobots = ConfUtils.getBoolean(conf, "http.robots.file.skip", false);<NEW_LINE>this.storeHTTPHeaders = ConfUtils.getBoolean(conf, "http.store.headers", false);<NEW_LINE>this.useCookies = ConfUtils.<MASK><NEW_LINE>this.protocolVersions = ConfUtils.loadListFromConf("h...
getBoolean(conf, "http.use.cookies", false);
901,748
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String clusterName, String applicationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot ...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
718,654
public Block copyPositions(int[] positions, int offset, int length) {<NEW_LINE>checkArrayRange(positions, offset, length);<NEW_LINE>IntArrayList positionsToCopy = new IntArrayList();<NEW_LINE>Map<Integer, Integer> oldIndexToNewIndex = new HashMap<>();<NEW_LINE>int[] newIds = new int[length];<NEW_LINE>for (int i = 0; i ...
oldIndex, positionsToCopy.size());
1,576,019
public void eval(EvaluationContext ctx) {<NEW_LINE>super.evalChildren(ctx);<NEW_LINE>MutableChunk chunk = ctx.getPreAllocatedChunk();<NEW_LINE>int batchSize = chunk.batchSize();<NEW_LINE>boolean isSelectionInUse = chunk.isSelectionInUse();<NEW_LINE>int[] sel = chunk.selection();<NEW_LINE>RandomAccessBlock outputVectorS...
DecimalBlock) inputVectorSlot).getMemorySegments();
1,571,945
protected SootMethod createDummyMainInternal() {<NEW_LINE>// Before-class marker<NEW_LINE>Stmt beforeComponentStmt = Jimple<MASK><NEW_LINE>body.getUnits().add(beforeComponentStmt);<NEW_LINE>Stmt endClassStmt = Jimple.v().newNopStmt();<NEW_LINE>try {<NEW_LINE>// We may skip the complete component<NEW_LINE>createIfStmt(e...
.v().newNopStmt();
1,728,350
final DescribeStacksResult executeDescribeStacks(DescribeStacksRequest describeStacksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStacksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
false), new DescribeStacksResultJsonUnmarshaller());
1,057,161
private void readBadges(String url, Map<String, Map<String, Badge>> badgeMap) {<NEW_LINE>try {<NEW_LINE>JSONObject globalBadgeSets = new JSONObject(Service.urlToJSONString(url)).getJSONObject("badge_sets");<NEW_LINE>for (Iterator<String> it = globalBadgeSets.keys(); it.hasNext(); ) {<NEW_LINE>String badgeSet = it.next(...
, versionObject.getString("image_url_1x"));
25,710
private Repository parseCollectionsRepositoryData(Element element) throws Exception {<NEW_LINE>String fullName = element.select("div > h1 > a").attr("href");<NEW_LINE>fullName = fullName.substring(1);<NEW_LINE>String owner = fullName.substring(0, fullName.lastIndexOf("/"));<NEW_LINE>String repoName = fullName.substring...
get(0).toString();
240,408
public Webhook resetWebhookLifetime(Long webhookId, String xSdsDateFormat, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'webhookId' is set<NEW_LINE>if (webhookId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parame...
String[] localVarAccepts = { "application/json" };
1,150,293
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE><MASK><NEW_LINE>choice.setMessage("Choose ability to add");<NEW_LINE>choice.setChoices(choices);<NEW_LINE>if (!controller.choose(outcome, choice, game)) {<...
Choice choice = new ChoiceImpl(true);
217,070
public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String vendorName = Utils.getValueFromIdByName(id, "vendors");<NEW_LINE>if (vendorName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'vendo...
Utils.getValueFromIdByName(id, "vendorSkus");
730,325
public synchronized void updateIndex(ProgressListener progressListener) throws Exception {<NEW_LINE>final MultiStepProgress progress = new MultiStepProgress(3);<NEW_LINE>DownloadableContributionsDownloader downloader = new DownloadableContributionsDownloader(BaseNoGui.librariesIndexer.getStagingFolder());<NEW_LINE>// S...
= new URL(Constants.LIBRARY_INDEX_URL_GZ);
1,099,364
protected Object validateRawValue(String rawValue) {<NEW_LINE>if (trimming && rawValue != null)<NEW_LINE>rawValue = rawValue.trim();<NEW_LINE>if ((datasource != null) && (metaPropertyPath != null)) {<NEW_LINE>Range range = metaProperty.getRange();<NEW_LINE>if (range.isDatatype())<NEW_LINE>datatype = metaPropertyPath.ge...
getFormatter().format(datatypeValue);
781,143
private static Object coerce(long time, String format) {<NEW_LINE>if (format.equalsIgnoreCase("long")) {<NEW_LINE>return time;<NEW_LINE>} else if (format.equalsIgnoreCase("util")) {<NEW_LINE>return new Date(time);<NEW_LINE>} else if (format.equalsIgnoreCase("cal")) {<NEW_LINE><MASK><NEW_LINE>cal.setTimeInMillis(time);<...
Calendar cal = Calendar.getInstance();
649,832
private void configureCreateStartScripts(Project project, JavaApplication javaApplication, Distribution distribution, CreateStartScripts createStartScripts) {<NEW_LINE>createStartScripts.setDescription("Generates OS-specific start scripts to run the project as a Spring Boot application.");<NEW_LINE>((TemplateBasedScrip...
fromString(loadResource("/unixStartScript.txt")));
987,504
final CreateSqlInjectionMatchSetResult executeCreateSqlInjectionMatchSet(CreateSqlInjectionMatchSetRequest createSqlInjectionMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSqlInjectionMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
462,102
public DatabaseInfo testQuery(DatabaseConfiguration dbConfig, String query) throws DatabaseServiceException {<NEW_LINE>Statement statement = null;<NEW_LINE>ResultSet queryResult = null;<NEW_LINE>try {<NEW_LINE>Connection connection = MySQLConnectionManager.getInstance().getConnection(dbConfig, true);<NEW_LINE>statement...
), e.getMessage());
824,892
private void lumaCode(EncodingContext ctx, Picture pic, int mbX, int mbY, BitWriter out, int qp, EncodedMB outMB, int[] predType, int[][] _coeff, int cbpLuma) {<NEW_LINE>int cbp = 0;<NEW_LINE>for (int i8x8 = 0; i8x8 < 4; i8x8++) {<NEW_LINE>int bx = (mbX << 2) | ((i8x8 << 1) & 2);<NEW_LINE>int by = (mbY << 2) | (i8x8 & ...
= bx | (i4x4 & 1);
633,332
public void send(final Message msg, final MessageQueueSelector selector, final Object arg, final SendCallback sendCallback, final long timeout) throws MQClientException, RemotingException, InterruptedException {<NEW_LINE>final long beginStartTime = System.currentTimeMillis();<NEW_LINE>ExecutorService executor = this.ge...
ASYNC, sendCallback, timeout - costTime);
1,400,446
private static <T> void runAssertion(RegressionEnvironment env, RegressionPath path, EPStage stage, String typename, Object underlying, Consumer<EPEventService> sender) {<NEW_LINE>String epl = "@public @buseventtype create schema TriggerEvent();\n" + "@public @buseventtype @name('schema') create json schema " + JSON_TY...
accept(stage.getEventService());
230,132
private RelNode aggregateCorrelatorOutput(Correlate correlate, Project project, Set<Integer> isCount) {<NEW_LINE>final RelNode left = correlate.getLeft();<NEW_LINE>final JoinRelType joinType = correlate.getJoinType();<NEW_LINE>// now create the new project<NEW_LINE>final List<Pair<RexNode, String>> newProjects = new Ar...
.of2(i, leftInputFields));
660,022
final DescribeMaintenanceWindowExecutionTasksResult executeDescribeMaintenanceWindowExecutionTasks(DescribeMaintenanceWindowExecutionTasksRequest describeMaintenanceWindowExecutionTasksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowExecutionTasksRequest);<NEW_LIN...
(super.beforeMarshalling(describeMaintenanceWindowExecutionTasksRequest));
452,324
int doIt(VirtualFrame frame, PMMap self, Object dataBuffer, @CachedLibrary("dataBuffer") PythonBufferAccessLibrary bufferLib, @CachedLibrary("getPosixSupport()") PosixSupportLibrary posixLib) {<NEW_LINE>try {<NEW_LINE>if (!self.isWriteable()) {<NEW_LINE>throw raise(TypeError, ErrorMessages.MMAP_CANNOT_MODIFY_READONLY_M...
dataBytes = bufferLib.getInternalOrCopiedByteArray(dataBuffer);
1,384,205
private <R extends IBaseResource> R populateResourceMetadataRi(Class<R> theResourceType, IBaseResourceEntity theEntity, @Nullable Collection<? extends BaseTag> theTagList, boolean theForHistoryOperation, IAnyResource res, Long theVersion) {<NEW_LINE>R retVal = (R) res;<NEW_LINE>if (theEntity.getDeleted() != null) {<NEW...
setLastUpdated(theEntity.getUpdatedDate());
539,892
private void drawCheck(MatrixStack matrixStack, int x1, int y1, boolean hovering) {<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>float xc1 = x1 + 2.5F;<NEW_LINE>float xc2 = x1 + 3.5F;<NEW_LINE>float xc3 = x1 + 4...
yc4, 0).next();