idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,588,492
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.cc_t, NativeType.UCHAR);
1,430,649
public void announceBackgroundJobServer(BackgroundJobServerStatus serverStatus) {<NEW_LINE>try (final Jedis jedis = getJedis();<NEW_LINE>final Transaction t = jedis.multi()) {<NEW_LINE>t.hset(backgroundJobServerKey(keyPrefix, serverStatus), BackgroundJobServers.FIELD_ID, serverStatus.getId().toString());<NEW_LINE>t.hse...
(serverStatus.isRunning()));
718,760
public void testTaskFailsWithLookupError(HttpServletRequest request, PrintWriter out) throws Exception {<NEW_LINE>String jndiName = request.getParameter("jndiName");<NEW_LINE>long taskId = Long.parseLong(request.getParameter("taskId"));<NEW_LINE>PersistentExecutor executor = (PersistentExecutor) new <MASK><NEW_LINE>Tas...
InitialContext().lookup(jndiName);
877,188
private void initialize() {<NEW_LINE>mLineColors = new int[] { Color.BLACK, Color.DKGRAY, Color.LTGRAY };<NEW_LINE>setTextColors(Color.BLACK);<NEW_LINE>mMargins = (int) DisplayUtils.dpToPx(getContext(), MARGIN_DIP);<NEW_LINE>mMarginCenter = (int) DisplayUtils.dpToPx(getContext(), MARGIN_CENTER_DIP);<NEW_LINE>mHistogram...
dpToPx(getContext(), HISTOGRAM_WIDTH_DIP);
1,118,451
HttpMethodBase buildMethod(boolean rollback, WorkflowContext ctxt) throws Exception {<NEW_LINE>String methodName = params.getOrDefault("method" + (rollback ? "-rollback" : ""), "GET").trim().toUpperCase();<NEW_LINE>HttpMethodBase m = null;<NEW_LINE>switch(methodName) {<NEW_LINE>case "GET":<NEW_LINE>m = new GetMethod();...
IllegalStateException("Illegal URL: '" + url + "'");
1,104,971
protected void loadPlayerData(PlayerLocationFilterDefinition value) {<NEW_LINE>playerChunks.clear();<NEW_LINE>playerRegions.clear();<NEW_LINE>File[] playerFiles = value.directory.listFiles((d, f) -> f.matches("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.dat$"));<NEW_LINE>if (playerFiles == null || p...
dim = root.getString("SpawnDimension");
1,768,389
final ListTagsResult executeListTags(ListTagsRequest listTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListTagsRequest> request = null;<NEW_LINE>Response<ListTagsResult...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,046,104
public final void onInit() {<NEW_LINE>super.onInit();<NEW_LINE>BeanFactory beanFactory = getBeanFactory();<NEW_LINE>BroadcastingDispatcher dispatcherToUse = getDispatcher();<NEW_LINE>if (this.executor != null) {<NEW_LINE>Assert.state(dispatcherToUse.getHandlerCount() == 0, "When providing an Executor, you cannot subscr...
this.executor, this.requireSubscribers);
478,195
public static QueryCallResponse unmarshall(QueryCallResponse queryCallResponse, UnmarshallerContext context) {<NEW_LINE>queryCallResponse.setRequestId(context.stringValue("QueryCallResponse.RequestId"));<NEW_LINE>queryCallResponse.setSuccess(context.booleanValue("QueryCallResponse.Success"));<NEW_LINE>queryCallResponse...
("QueryCallResponse.callStatusList[" + i + "].TaskCode"));
265,524
protected Excuse<Event> innerGetExcuse(Example<Event> e, double[][] allFeatureWeights) {<NEW_LINE>de.bwaldvogel.liblinear.Model model = models.get(0);<NEW_LINE>double[] featureWeights = allFeatureWeights[0];<NEW_LINE>Prediction<Event> prediction = predict(e);<NEW_LINE>Map<String, List<Pair<String, Double>>> weightMap =...
posScores = new ArrayList<>();
873,923
synchronized void render() {<NEW_LINE>LOG.verbose("Rendering");<NEW_LINE>int previousNumLinesPrinted = lastNumLinesPrinted;<NEW_LINE>ImmutableList<String> lines = delegate.createSuperLinesAtTime(clock.currentTimeMillis());<NEW_LINE>boolean shouldRender = previousNumLinesPrinted != 0 || !lines.isEmpty();<NEW_LINE>Immuta...
getRawStream().print(fullFrame);
1,512,559
protected void createSaio(long startSample, long endSample, CencEncryptedTrack track, int sequenceNumber, TrackFragmentBox parent, MovieFragmentBox moof) {<NEW_LINE>SampleAuxiliaryInformationOffsetsBox saio = new SampleAuxiliaryInformationOffsetsBox();<NEW_LINE>parent.addBox(saio);<NEW_LINE>assert parent.getBoxes(Track...
.size() == 1 : "Don't know how to deal with multiple Track Run Boxes when encrypting";
943,702
public void write(org.apache.thrift.protocol.TProtocol prot, TTransaction struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.isSetSamp...
oprot.writeI64(struct.unsampledNewCount);
433,725
private CCodeNode createCurrentNode(final ICodeNodeProvider resultSet) throws ParserException, CPartialLoadException {<NEW_LINE>final int nodeId = resultSet.getNodeId();<NEW_LINE>final int moduleId = resultSet.getModule();<NEW_LINE>final IAddress parentFunction = resultSet.getParentFunction();<NEW_LINE>final INaviModul...
double y = resultSet.getY();
668,112
final CreateLoadBalancerResult executeCreateLoadBalancer(CreateLoadBalancerRequest createLoadBalancerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLoadBalancerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
520,901
private void initHiveTblProperties() throws UserException {<NEW_LINE>this.remoteHiveTable = HiveMetaStoreClientHelper.getTable(hiveTable);<NEW_LINE>this.fileFormat = HiveMetaStoreClientHelper.HiveFileFormat.getFormat(remoteHiveTable.getSd().getInputFormat());<NEW_LINE>this.setStorageType(remoteHiveTable.getSd().getLoca...
HIVE_DEFAULT_COLUMN_SEPARATOR : serDeInfoParams.get("field.delim");
1,171,022
public Instance next() {<NEW_LINE>if (currentInstanceIndex < 0) {<NEW_LINE>if (currentClassIndex <= 0)<NEW_LINE>throw new IllegalStateException("No next TokenSequence.");<NEW_LINE>currentClassIndex--;<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>@Var<NEW_LINE>URI uri = null;<NEW_LINE>try {<NEW_LINE>uri = new URI("random:" + cla...
currentInstanceIndex = numInstancesPerClass[currentClassIndex] - 1;
759,827
private static CertificateMessage generateCertificateMessage(CcaCertificateManager ccaCertificateManager, CcaCertificateType ccaCertificateType) {<NEW_LINE>CertificateMessage certificateMessage = new CertificateMessage();<NEW_LINE>List<CertificatePair> certificatePairList = new LinkedList<>();<NEW_LINE>CertificatePair ...
PublicKey) ccaCertificateChain.getLeafCertificatePublicKey());
1,046,919
protected ProviderAuthenticationResult createProviderAuthenticationResult(JSONObject jobj, OidcClientConfig clientConfig, String accessToken) {<NEW_LINE>AttributeToSubjectExt attributeToSubject = new <MASK><NEW_LINE>if (attributeToSubject.checkUserNameForNull()) /*<NEW_LINE>* || attributeToSubject.<NEW_LINE>* checkForN...
AttributeToSubjectExt(clientConfig, jobj, accessToken);
208,680
/*<NEW_LINE>* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<NEW_LINE>*<NEW_LINE>* Interface.<NEW_LINE>*<NEW_LINE>* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<NEW_LINE>*/<NEW_LINE>public void execute(JobExecutionContext context) throws JobExecutionException {<...
JobDataMap data = context.getMergedJobDataMap();
492,140
public static String byte2FitMemorySize(final long byteSize, int precision) {<NEW_LINE>if (precision < 0) {<NEW_LINE>throw new IllegalArgumentException("precision shouldn't be less than zero!");<NEW_LINE>}<NEW_LINE>if (byteSize < 0) {<NEW_LINE>throw new IllegalArgumentException("byteSize shouldn't be less than zero!");...
double) byteSize / MemoryConstants.KB);
1,709,754
public ResponseEntity<JsonOLCandCreateBulkResponse> createOrderLineCandidates(@RequestBody @NonNull final JsonOLCandCreateBulkRequest bulkRequest) {<NEW_LINE>try {<NEW_LINE>bulkRequest.validate();<NEW_LINE>final MasterdataProvider masterdataProvider = MasterdataProvider.builder().permissionService(permissionServiceFact...
ofThrowable(ex, adLanguage)));
1,187,025
private Program doLoad(ByteProvider provider, String programName, DomainFolder programFolder, LoadSpec loadSpec, List<Option> options, MessageLog log, Object consumer, TaskMonitor monitor, Set<String> unprocessedLibraries) throws CancelledException, IOException {<NEW_LINE>LanguageCompilerSpecPair pair = loadSpec.getLan...
transactionID = program.startTransaction("importing");
905,251
public SingularList<T> build() {<NEW_LINE>java.util.List<java.lang.Object> rawTypes;<NEW_LINE>switch(this.rawTypes == null ? 0 : this.rawTypes.size()) {<NEW_LINE>case 0:<NEW_LINE>rawTypes = java.util.Collections.emptyList();<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>rawTypes = java.util.Collections.singletonList(this.r...
rawTypes, integers, generics, extendsGenerics);
1,424,125
private int hashValue(int ordinal, int fieldIdx) {<NEW_LINE>int lastFieldPath = <MASK><NEW_LINE>for (int i = 0; i < lastFieldPath; i++) {<NEW_LINE>int fieldPosition = fieldPathIndexes[fieldIdx][i];<NEW_LINE>ByteArrayOrdinalMap ordinalMap = typeStates[fieldIdx][i].ordinalMap;<NEW_LINE>long offset = ordinalMap.getPointer...
fieldPathIndexes[fieldIdx].length - 1;
1,494,385
public Context makeContext() {<NEW_LINE>Context context = cbuilder.build();<NEW_LINE>Value bindings = context.getBindings("js");<NEW_LINE>Reflections reflections = new Reflections("net.rptools.maptool.client.script.javascript.api");<NEW_LINE>Set<Class<?>> annotated = reflections.getTypesAnnotatedWith(MapToolJSAPIDefini...
apiClass.getName(), e);
494,673
public Invitation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Invitation invitation = new Invitation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
class).unmarshall(context));
349,173
public HttpResponse fakeOuterStringSerializeForHttpResponse(String body, Map<String, Object> params) throws IOException {<NEW_LINE>UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/string");<NEW_LINE>// Copy the params argument if present, to allow passing in immutable maps<NEW_LINE>Map<...
GenericUrl genericUrl = new GenericUrl(localVarUrl);
1,673,860
static URLConnection openConnection(Task task, final URL url, URI[] connectedVia) throws IOException {<NEW_LINE>long connectTimeoutMs = getProjectPropertyInt(task, "downloadBinaries.connectTimeoutMs", 15000);<NEW_LINE>task.log("Connect timeout set to " + connectTimeoutMs + " milliseconds prior to connecting to " + url,...
CountDownLatch connected = new CountDownLatch(1);
1,252,345
public static void histogramColor() {<NEW_LINE>BufferedImage buffered = UtilImageIO.loadImageNotNull(UtilIO.pathExample(imagePath));<NEW_LINE>Planar<GrayU8> color = ConvertBufferedImage.convertFrom(buffered, true, ImageType.PL_U8);<NEW_LINE>Planar<GrayU8> adjusted = color.createSameShape();<NEW_LINE>int[] histogram = n...
] transform = new int[256];
1,852,753
public List<Proxy> findProxyForURL(URI u) {<NEW_LINE>assert initTask != null : "initTask has be to posted.";<NEW_LINE>if (!initTask.isFinished()) {<NEW_LINE>while (!initTask.isFinished()) {<NEW_LINE>try {<NEW_LINE>RP.post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>}<NEW_LINE>})....
Collections.singletonList(Proxy.NO_PROXY);
1,845,536
public int onBackPressed() {<NEW_LINE>logDebug("deepBrowserTree " + ((FileExplorerActivity) context).getDeepBrowserTree());<NEW_LINE>((FileExplorerActivity) context).decreaseDeepBrowserTree();<NEW_LINE>if (((FileExplorerActivity) context).getDeepBrowserTree() == 0) {<NEW_LINE>setParentHandle(INVALID_HANDLE);<NEW_LINE>(...
gridLayoutManager.scrollToPositionWithOffset(lastVisiblePosition, 0);
23,798
public Result listClientInstance(@PathVariable("itemId") String itemId) {<NEW_LINE>List<Lease<InstanceInfo>> leases = baseInstanceRegistry.listInstance(itemId);<NEW_LINE>Lease<InstanceInfo> <MASK><NEW_LINE>if (first == null) {<NEW_LINE>return Results.success(Lists.newArrayList());<NEW_LINE>}<NEW_LINE>List<WebThreadPool...
first = CollUtil.getFirst(leases);
751,543
public void marshall(Action action, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (action == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(action.getSetVariable(), SETVARIABLE_BINDING);<NEW_LINE>protocolMa...
action.getDynamoDBv2(), DYNAMODBV2_BINDING);
806,340
private boolean checkSignatureAlgorithms(WSSecurityEngineResult result, AlgorithmSuite algorithmPolicy, AssertionInfo ai) {<NEW_LINE>String signatureMethod = (String) result.get(WSSecurityEngineResult.TAG_SIGNATURE_METHOD);<NEW_LINE>if (!algorithmPolicy.getAlgorithmSuiteType().getAsymmetricSignature().equals(signatureM...
.get(WSSecurityEngineResult.TAG_DATA_REF_URIS));
133,667
protected void paintComponent(Graphics g) {<NEW_LINE>if (image == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Dimension size = getSize();<NEW_LINE>if (scale.initialize(size.width, size.height)) {<NEW_LINE>propertyChangeSupport.firePropertyChange(PROPERTY_ZOOM, 0, (int) scale.getScale());<NEW_LINE>}<NEW_LINE>// CALCULA...
width, imageSize.height, null);
8,039
public Iterator<I_M_InOutLine> retrieveLinesThatNeedAnInvoiceCandidate(@NonNull final QueryLimit limit) {<NEW_LINE>final IQueryBL queryBL = <MASK><NEW_LINE>final ICompositeQueryFilter<I_M_InOutLine> filters = queryBL.createCompositeQueryFilter(I_M_InOutLine.class);<NEW_LINE>filters.addEqualsFilter(I_M_InOutLine.COLUMNN...
Services.get(IQueryBL.class);
1,703,671
void finish(AbstractStructualElement parent) {<NEW_LINE>// Must be a figure (image or replaced, etc).<NEW_LINE>FigureStructualElement child = this;<NEW_LINE>child.parentElem = parent.elem;<NEW_LINE>child.elem = new PDStructureElement(child.getPdfTag(), child.parentElem);<NEW_LINE>child.elem.setParent(child.parentElem);...
elem.setPage(child.page);
1,756,417
public void actionPerformed(ActionEvent arg0) {<NEW_LINE>JFileChooser reportFileChooser = chooserHelper.getChooser();<NEW_LINE>reportFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);<NEW_LINE>reportFileChooser.setCurrentDirectory(new File(UserPreferences.getHealthMonitorReportPath()));<NEW_LINE>final DateForma...
Level.SEVERE, "Error generating report", ex);
242,676
public ListAnalyzersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAnalyzersResult listAnalyzersResult = new ListAnalyzersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
29,993
public void incrementAndAddSelection(int rows) {<NEW_LINE>int[] rowsSelected = getSelectedRows();<NEW_LINE>// If the last row selected is still within the table, just update our selection model.<NEW_LINE>if (rowsSelected[rowsSelected.length - 1] + rows < getRowCount()) {<NEW_LINE>if (rowsSelected.length > 0) {<NEW_LINE...
> lines = reader.readNextChunk();
368,047
public void insertFrom(int insertIndex, WasmArray.OfObject values) {<NEW_LINE>Object[] original = elements;<NEW_LINE>int newLength = length + values.length;<NEW_LINE>// Ensure enough capacity.<NEW_LINE>if (newLength > elements.length) {<NEW_LINE>elements = new Object[getNewCapacity<MASK><NEW_LINE>// Copy only up to ind...
(elements.length, newLength)];
652,429
List<FastDistanceData> prepareDenseMatrixData(Tuple2<Vector, Row> tuple, Iterator<Tuple2<Vector, Row>> iterator, int vectorSize) {<NEW_LINE>final int rowNumber = Math.min(SIZE / 8 / vectorSize, MAX_ROW_NUMBER);<NEW_LINE>List<FastDistanceData> <MASK><NEW_LINE>while (null != tuple) {<NEW_LINE>int index = 0;<NEW_LINE>Dens...
res = new ArrayList<>();
497,622
public final int ctxNumberCheck(long handle) {<NEW_LINE>Counter.UpcallNumberCheck.increment();<NEW_LINE>if (GraalHPyBoxing.isBoxedDouble(handle) || GraalHPyBoxing.isBoxedInt(handle)) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>Object receiver = getObjectForHPyHandle(GraalHPyBoxing.unboxHandle(handle)).getDelegate();<NEW_L...
getUncached().execute(receiver);
1,357,687
private static void showDiscountBanner(final MapActivity mapActivity, final ControllerData data) {<NEW_LINE>int iconId = mapActivity.getResources().getIdentifier(data.iconId, "drawable", mapActivity.getMyApplication().getPackageName());<NEW_LINE><MASK><NEW_LINE>if (data.bgColor != -1) {<NEW_LINE>LayerDrawable bgLand = ...
final DiscountBarController toolbarController = new DiscountBarController();
1,512,714
void afterGetConnection(CON connectionKey, @Nullable Connection connection, String dataSourceName, @Nullable Throwable t) {<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("After get connection [" + connectionKey + "]. Current span is [" + tracer.currentSpan() + "]");<NEW_LINE>}<NEW_LINE>ConnectionInfo connecti...
connectionInfo.url.getPort());
1,264,639
private static Optional<String> formatMessage(TaskStatus status) {<NEW_LINE>Optional<String> message = Optional.empty();<NEW_LINE>if (status.hasMessage()) {<NEW_LINE>message = Optional.<MASK><NEW_LINE>}<NEW_LINE>if (status.hasReason()) {<NEW_LINE>switch(status.getReason()) {<NEW_LINE>case REASON_CONTAINER_LIMITATION_ME...
of(status.getMessage());
1,618,729
public static Object issueRequest(MessageProcessor MP, ControlMessage msg, SIBUuid8 remoteUuid, long retry, int tries, long requestID) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "issueRequest", new Object[] { MP, msg, remoteUuid, new Long(retry), new Integer(tri...
, "issueRequest", awaitResult[0]);
1,030,510
public void exceptionHandlingSupport(CombinedIndexBuildItem index, BuildProducer<GeneratedClassBuildItem> generatedExceptionMappers, BuildProducer<ResteasyJaxrsProviderBuildItem> providersProducer, BuildProducer<ExceptionMapperBuildItem> exceptionMapperProducer, BuildProducer<ReflectiveClassBuildItem> reflectiveClassPr...
capabilities.isPresent(Capability.RESTEASY_JSON_JACKSON);
841,976
private void estimateDopOfBroadcastJoinInPipeline(PlanFragment fragment) {<NEW_LINE>if (ConnectContext.get() == null || !ConnectContext.get().getSessionVariable().isEnablePipelineEngine() || ConnectContext.get().getSessionVariable().getPipelineDop() > 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (fragment.isDopEstimate...
fragment.getPlanRoot() instanceof HashJoinNode);
1,122,441
public Record last() throws BimserverLockConflictException {<NEW_LINE>if (nextStartSearchingAt != null) {<NEW_LINE>return getFirstNext(nextStartSearchingAt);<NEW_LINE>}<NEW_LINE>DatabaseEntry key = new DatabaseEntry();<NEW_LINE>DatabaseEntry value = new DatabaseEntry();<NEW_LINE>if (onlyKeys) {<NEW_LINE>value.setPartia...
return new BerkeleyRecord(key, value);
1,096,013
final GetEvidenceFoldersByAssessmentControlResult executeGetEvidenceFoldersByAssessmentControl(GetEvidenceFoldersByAssessmentControlRequest getEvidenceFoldersByAssessmentControlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEvidenceFoldersByAssessmentControlRequest);<NEW_LINE><MASK><N...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,749,778
private void readClassification(ResourceBundle bundle, Classification parent) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String children = getString(bundle, parent.getId() + ".children");<NEW_LINE>if (children == null)<NEW_LINE>return;<NEW_LINE>for (// $NON-NLS-1$<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String childId : children.spli...
Values.Weight.factor());
911,820
private String generateXcodeShellScriptForJsBundle(TargetNode<?> targetNode, Function<? super TargetNode<?>, BuildRuleResolver> buildRuleResolverForNode) {<NEW_LINE>Preconditions.checkArgument(targetNode.getDescription() instanceof JsBundleOutputsDescription);<NEW_LINE>ST template;<NEW_LINE>try {<NEW_LINE>template = ne...
JS_BUNDLE_TEMPLATE), Charsets.UTF_8));
1,613,057
public Graph<EntityDescriptor> resolveNativeEntity(EntityDescriptor entityDescriptor) {<NEW_LINE>final MutableGraph<EntityDescriptor> mutableGraph = GraphBuilder.directed().build();<NEW_LINE>mutableGraph.addNode(entityDescriptor);<NEW_LINE>final ModelId modelId = entityDescriptor.id();<NEW_LINE>try {<NEW_LINE>final Pip...
load(modelId.id());
1,348,125
public void execute(AdminCommandContext context) {<NEW_LINE>ActionReport report = context.getActionReport();<NEW_LINE>Logger logger = context.getLogger();<NEW_LINE>logger.info(Strings.get("start.cluster", clusterName));<NEW_LINE>// Require that we be a DAS<NEW_LINE>if (!env.isDas()) {<NEW_LINE>String <MASK><NEW_LINE>lo...
msg = Strings.get("cluster.command.notDas");
1,204,072
static List<ServiceTokenInfo> parseFileToken(XContentParser parser) throws IOException {<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.nextToken(), parser);<NEW_LINE>XContentParser.Token token;<NEW_LINE>final ArrayList<ServiceTokenInfo> fileTokenInfos = new ArrayList<>();<NEW_LINE>while ((token...
parser.nextToken(), "nodes");
266,838
public static void regionBorders(GrayS32 pixelToRegion, int borderColor, Bitmap output, @Nullable DogArray_I8 _storage) {<NEW_LINE>_storage = ConvertBitmap.resizeStorage(output, _storage);<NEW_LINE>final byte[] storage = _storage.data;<NEW_LINE>GrayU8 binary = new GrayU8(pixelToRegion.width, pixelToRegion.height);<NEW_...
(borderColor >> 16 & 0xFF);
1,002,061
protected void fireItemStateChanged(ItemEvent event) {<NEW_LINE>super.fireItemStateChanged(event);<NEW_LINE>if (event.getStateChange() == ItemEvent.SELECTED) {<NEW_LINE>selected = null;<NEW_LINE>setText(// NOI18N<NEW_LINE>getHtmlText(// NOI18N<NEW_LINE>custom, // NOI18N<NEW_LINE>"<nobr>" + NbBundle.getMessage(ImportPan...
class, "ImportPanel_OptionSelectCustom") + "</nobr>"));
1,685,151
public ApiResponse<RecycleBinContents> recycleBinGetRecycleBinContentsWithHttpInfo(Integer pageIndex, Integer pageSize, String sortExpression) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'pageIndex' is set<NEW_LINE>if (pageIndex == null) {<NEW_LINE><MASK><NEW...
throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling recycleBinGetRecycleBinContents");
1,670,574
private static Pair<Format, Long> parseCsdBuffer(CsdBuffer csdBuffer, String formatId) {<NEW_LINE>byte[] csdData = Arrays.copyOf(csdBuffer.data, csdBuffer.length);<NEW_LINE>int firstByte = csdData[4] & 0xFF;<NEW_LINE>int secondByte = csdData[5] & 0xFF;<NEW_LINE>int thirdByte = csdData[6] & 0xFF;<NEW_LINE>int width = (f...
Pair.create(format, frameDurationUs);
1,400,714
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.core.io.vfs.IConnectionFileManager#putInfo(org.eclipse.core.runtime.IPath,<NEW_LINE>* org.eclipse.core.filesystem.IFileInfo, int, org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>public final synchronized void putInfo(IPath path, IFileInfo info, int ...
.subMonitorFor(monitor, 1));
1,423,244
public int next(int key, int[] buffer) {<NEW_LINE>int consumed = 0;<NEW_LINE>do {<NEW_LINE>int runStart = (runs.getValue(run));<NEW_LINE>int runLength = (runs.getLength(run));<NEW_LINE>int chunkStart = runStart + cursor;<NEW_LINE>int chunkEnd = chunkStart + Math.min(runLength - cursor, buffer.length - consumed - 1);<NE...
i] = key + chunkStart + i;
677,943
protected SubscriptionImpl createSingletonSubscription(Map singleton_details, int add_type, boolean subscribe) throws SubscriptionException {<NEW_LINE>try {<NEW_LINE>String name = MapUtils.getMapString(singleton_details, "name", "(Anonymous)");<NEW_LINE>URL url = new URL(MapUtils.getMapString(singleton_details, "key", ...
"Creation of singleton from " + singleton_details + " failed", e);
610,984
public GpuDeviceInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GpuDeviceInfo gpuDeviceInfo = new GpuDeviceInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_L...
().unmarshall(context));
1,814,381
protected void initializeAnnotationMetadata(GeneratorAdapter staticInit, ClassWriter classWriter, Map<String, Integer> defaults) {<NEW_LINE>Type annotationMetadataType = Type.getType(AnnotationMetadata.class);<NEW_LINE>classWriter.visitField(ACC_PUBLIC | ACC_FINAL | ACC_STATIC, FIELD_ANNOTATION_METADATA, annotationMeta...
.getType(AnnotationMetadata.class));
480,603
private void drawSwatches(Canvas canvas) {<NEW_LINE>float[] hsv = new float[3];<NEW_LINE>mText.setTextSize(mTextSizePx);<NEW_LINE>// Draw the original swatch<NEW_LINE>canvas.drawRect(mOldSwatchRect, mSwatchOld);<NEW_LINE>Color.colorToHSV(mOriginalColor, hsv);<NEW_LINE>// if (UberColorPickerDialog.isGray(mColor)) //Don'...
mNewSwatchRect.top + mButtonTextMarginPx, mText);
1,009,188
public void testSLLFutureThrowApplicationException() throws Exception {<NEW_LINE>String results = "false";<NEW_LINE>long currentThreadId = 0;<NEW_LINE>ExceptionStatelessLocal bean = lookupSLLBean();<NEW_LINE>// update results with bean creation<NEW_LINE>assertNotNull("Async Stateless Bean created successfully", bean);<...
.currentThread().getId();
409,198
protected void initScene() {<NEW_LINE>mLight = new DirectionalLight(.3f, -.3f, 1);<NEW_LINE>mLight.setPower(.6f);<NEW_LINE>getCurrentScene().addLight(mLight);<NEW_LINE>getCurrentCamera().setPosition(0, 0, 9);<NEW_LINE>try {<NEW_LINE>final LoaderAWD parser = new LoaderAWD(mContext.getResources(), mTextureManager, R.raw....
(new DiffuseMethod.Lambert());
1,582,334
public static void main(String[] args) {<NEW_LINE>if (args.length == 0) {<NEW_LINE>System.out.println(VERSION);<NEW_LINE>System.out.println("Usage: java proguard.ProGuard [options ...]");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>// Create the default options.<NEW_LINE>Configuration configuration = new Configuration...
"Error: " + ex.getMessage());
1,328,400
public void handleInboundDisconnect(@NotNull final ChannelHandlerContext ctx, @NotNull final DISCONNECT disconnect) {<NEW_LINE>final Channel channel = ctx.channel();<NEW_LINE>final ClientConnection clientConnection = channel.attr(ChannelAttributes.CLIENT_CONNECTION).get();<NEW_LINE>final String clientId = clientConnect...
setOption(ChannelOption.ALLOW_HALF_CLOSURE, true);
1,073,440
private Optional<String> computeExchangeBodyToString(@NonNull final Exchange exchange, @NonNull final String message) {<NEW_LINE>final Object body = exchange.getIn().getBody(Object.class);<NEW_LINE>if (body == null || EmptyUtil.isEmpty(body)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (bo...
bodyToString = objectMapper.writeValueAsString(body);
1,374,659
public void testEventLoggingEE7() throws Exception {<NEW_LINE>server.setMarkToEndOfLog();<NEW_LINE>server.setServerConfigurationFile("server_event_logging_ee_7.xml");<NEW_LINE>server.waitForConfigUpdateInLogUsingMark(Collections.singleton(APP_NAME));<NEW_LINE>server.setMarkToEndOfLog();<NEW_LINE>url = new URL("http://"...
server.getHttpDefaultPort() + "/jdbcTestPrj_3_EE7/");
1,566,334
public static BatchGetEdgeInstanceDeviceConfigResponse unmarshall(BatchGetEdgeInstanceDeviceConfigResponse batchGetEdgeInstanceDeviceConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchGetEdgeInstanceDeviceConfigResponse.setRequestId(_ctx.stringValue("BatchGetEdgeInstanceDeviceConfigResponse.RequestId"));<NEW_LIN...
("BatchGetEdgeInstanceDeviceConfigResponse.DeviceConfigList[" + i + "].IotId"));
1,315,584
public static void main(String[] args) throws PcapNativeException, NotOpenException {<NEW_LINE>String filter = args.length != 0 ? args[0] : "";<NEW_LINE>System.out.println(COUNT_KEY + ": " + COUNT);<NEW_LINE>System.out.println(READ_TIMEOUT_KEY + ": " + READ_TIMEOUT);<NEW_LINE>System.out.println(SNAPLEN_KEY + ": " + SNA...
println(BUFFER_SIZE_KEY + ": " + BUFFER_SIZE);
289,336
public void exitDoubleArray(ExprParser.DoubleArrayContext ctx) {<NEW_LINE>Object[] values = new Object[ctx.numericElement().size()];<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>if (ctx.numericElement(i).NULL() != null) {<NEW_LINE>values[i] = null;<NEW_LINE>} else if (ctx.numericElement(i).LONG() != null...
(ExpressionType.DOUBLE_ARRAY, values));
1,557,753
public static Tuples scalar(IntVar[] VARS, final int[] COEFFS, final String OPERATOR, IntVar SCALAR, final int SCALAR_COEFF, int CSTE) {<NEW_LINE>if ("=".equals(OPERATOR) && CSTE == 0) {<NEW_LINE>return scalar(VARS, COEFFS, SCALAR, SCALAR_COEFF);<NEW_LINE>}<NEW_LINE>final Operator op = Operator.get(OPERATOR);<NEW_LINE>...
length - 1] * SCALAR_COEFF + CSTE;
1,140,464
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String publicIpPrefixName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,637,538
public static void doPrint(Project proj) {<NEW_LINE>CircuitJList list = new CircuitJList(proj, true);<NEW_LINE>Frame frame = proj.getFrame();<NEW_LINE>if (list.getModel().getSize() == 0) {<NEW_LINE>OptionPane.showMessageDialog(proj.getFrame(), S.get("printEmptyCircuitsMessage"), S.get("printEmptyCircuitsTitle"), Option...
OptionPane.OK_CANCEL_OPTION, OptionPane.QUESTION_MESSAGE);
1,389,052
public void initialize() {<NEW_LINE>// start background initialization:<NEW_LINE>scheduler.schedule(() -> {<NEW_LINE>boolean start = true;<NEW_LINE>try {<NEW_LINE>initializeThingConfig();<NEW_LINE>logger.debug("{}: Device config: IP address={}, HTTP user/password={}/{}, update interval={}", thingName, config.deviceIp, ...
config.eventsCoIoT, bindingConfig.autoCoIoT);
1,839,794
public RexNode toDnf(RexNode rex) {<NEW_LINE>final List<RexNode> operands;<NEW_LINE>switch(rex.getKind()) {<NEW_LINE>case AND:<NEW_LINE>operands = flattenAnd(((RexCall) rex).getOperands());<NEW_LINE>final RexNode head = operands.get(0);<NEW_LINE>final RexNode headDnf = toDnf(head);<NEW_LINE>final List<RexNode> headDnfs...
tailDnfs = RelOptUtil.disjunctions(tailDnf);
1,311,656
private void updateControls() {<NEW_LINE>sourceFolder.removeAllItems();<NEW_LINE>compUnitsKeys = model.createCompilationUnitKeys();<NEW_LINE>isSeparateClasspath = !ProjectModel.isSingleCompilationUnit(compUnitsKeys);<NEW_LINE>List<String> names = ClasspathPanel.createComboContent(compUnitsKeys, model.getEvaluator(), mo...
sourceFolder.setEnabled(sepClasspath && isSeparateClasspath);
111,228
public void initConfigurators() {<NEW_LINE>allConfigurators = new ArrayList<ProcessEngineConfigurator>();<NEW_LINE>// Configurators that are explicitly added to the config<NEW_LINE>if (configurators != null) {<NEW_LINE>for (ProcessEngineConfigurator configurator : configurators) {<NEW_LINE>allConfigurators.add(configur...
"Found {} Process Engine Configurators in total:", allConfigurators.size());
1,359,745
public static GetContactFlowResponse unmarshall(GetContactFlowResponse getContactFlowResponse, UnmarshallerContext context) {<NEW_LINE>getContactFlowResponse.setRequestId(context.stringValue("GetContactFlowResponse.RequestId"));<NEW_LINE>getContactFlowResponse.setSuccess(context.booleanValue("GetContactFlowResponse.Suc...
("GetContactFlowResponse.ContactFlow.Versions[" + i + "].Status"));
623,941
private static void updateServer(ClientContext context, Mutation m, KeyExtent extent, HostAndPort server) throws TException, NotServingTabletException, ConstraintViolationException, AccumuloSecurityException {<NEW_LINE>checkArgument(m != null, "m is null");<NEW_LINE>checkArgument(extent != null, "extent is null");<NEW_...
toThrift(), TDurability.DEFAULT);
1,085,020
protected Map<String, String> extractChallenges(HttpResponse response, final CrawlURI curi, AuthenticationStrategy authStrategy) {<NEW_LINE>Map<String, Header> hcChallengeHeaders = null;<NEW_LINE>try {<NEW_LINE>hcChallengeHeaders = authStrategy.getChallenges(null, response, null);<NEW_LINE>} catch (MalformedChallengeEx...
HashMap<String, String>();
664,468
protected TensorFunction<Reference> lazyGetFunction() {<NEW_LINE>if (!allInputTypesPresent(2))<NEW_LINE>return null;<NEW_LINE>if (!allInputFunctionsPresent(2))<NEW_LINE>return null;<NEW_LINE>OrderedTensorType typeA = inputs.get(0).type().get();<NEW_LINE>OrderedTensorType typeB = inputs.get(1).type().get();<NEW_LINE>Ten...
- 1).name());
235,506
public static void runSample() {<NEW_LINE>System.out.println("\n================================================================");<NEW_LINE>System.out.println(" Starting App Configuration Sample");<NEW_LINE>System.out.println("================================================================");<NEW_LINE>final Configura...
"Retrieved setting again, value is " + setting.getValue());
1,804,226
private void preLoadConfiguration() {<NEW_LINE>readOnly = configuration.get(STORAGE_READONLY);<NEW_LINE>flushIDs = configuration.get(IDS_FLUSH);<NEW_LINE>forceIndexUsage = configuration.get(FORCE_INDEX_USAGE);<NEW_LINE>batchLoading = configuration.get(STORAGE_BATCH);<NEW_LINE>String autoTypeMakerName = configuration.ge...
optimizerBackendAccess = configuration.get(OPTIMIZER_BACKEND_ACCESS);
1,285,308
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Removes the license from the license group.", response = LicenseGroup.class)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 304, message = "The license is not a member with the license group"), @Ap...
entity("The license group could not be found.").build();
484,963
public void loadResourcesByPid(Collection<ResourcePersistentId> thePids, Collection<ResourcePersistentId> theIncludedPids, List<IBaseResource> theResourceListToPopulate, boolean theForHistoryOperation, RequestDetails theDetails) {<NEW_LINE>if (thePids.isEmpty()) {<NEW_LINE>ourLog.debug("The include pids are empty");<NE...
.size() : "PID list contains duplicates: " + thePids;
900,829
protected void runTool(final JavaSparkContext ctx) {<NEW_LINE>if (!readArguments.getReadPathSpecifiers().isEmpty()) {<NEW_LINE>throw new UserException.BadInput("Please use --paired-input or --unpaired-input instead of --input");<NEW_LINE>}<NEW_LINE>final ReadsSparkSource readsSource = new ReadsSparkSource(ctx, readArgu...
<GATKRead> unpairedReads = unpairedData._1;
586,567
public void deleteCookie(String ckname) {<NEW_LINE>// NOI18N<NEW_LINE>if (debug)<NEW_LINE>log("Deleting cookie: " + ckname);<NEW_LINE>Param[] headers = getHeaders().getParam();<NEW_LINE>// No headers (this should not happen)<NEW_LINE>if (headers == null || headers.length == 0) {<NEW_LINE>// NOI18N<NEW_LINE>if (debug)<N...
setValue(buf.toString());
795,595
public IPacketOutputProxy write(IPacketOutputProxy proxy) {<NEW_LINE>proxy.packetBegin();<NEW_LINE>int size = getPacketLength();<NEW_LINE>proxy.checkWriteCapacity(proxy.getConnection().getPacketHeaderSize() + size);<NEW_LINE>proxy.writeUB3(size);<NEW_LINE>proxy.write(packetId);<NEW_LINE>byte nullVal = 0;<NEW_LINE>if (t...
proxy.writeWithLength(db, nullVal);
972,086
public static List<String> buildDetail(ProfilerEntry entry, long startTime, long totalUsageTime, int depth) {<NEW_LINE>StringBuilder stringBuilder = new StringBuilder();<NEW_LINE>long usage = entry.getEndTime() - entry.getStartTime();<NEW_LINE>int percent = (int) (((usage) * 100) / totalUsageTime);<NEW_LINE>long offset...
> entrySub = entry.getSub();
892,484
public void verifyKeyPair(PrivateKey privateKey, PublicKey publicKey) {<NEW_LINE><MASK><NEW_LINE>for (SignatureAlgorithm signatureAlgorithm : SignatureAlgorithm.values()) {<NEW_LINE>if (signatureAlgorithm.isSupported(algorithm)) {<NEW_LINE>SignatureAndHashAlgorithm signatureAndHashAlgorithm = new SignatureAndHashAlgori...
String algorithm = publicKey.getAlgorithm();
889,561
public static void main(String[] args) {<NEW_LINE>final MetricsAdvisorClient advisorClient = new MetricsAdvisorClientBuilder().credential(new MetricsAdvisorKeyCredential("subscription_key", "api_key")).endpoint("{endpoint}").buildClient();<NEW_LINE>final OffsetDateTime <MASK><NEW_LINE>final OffsetDateTime endTime = Off...
startTime = OffsetDateTime.parse("2020-01-01T00:00:00Z");
1,440,381
private void emptyReadBuffers() {<NEW_LINE>for (int n = 0; n < NUMBER_OF_READ_BUFFERS; n++) {<NEW_LINE>AtomicReference<OClosableEntry<K, V>>[] buffer = readBuffers[n];<NEW_LINE>long writeCount = readBufferDrainAtWriteCount[n].get();<NEW_LINE>long counter = readBufferReadCount[n];<NEW_LINE>while (true) {<NEW_LINE>final ...
(int) (counter & READ_BUFFER_INDEX_MASK);
980,159
void warm(OpenSearchDirectoryReader reader, IndexShard shard, IndexSettings settings) {<NEW_LINE>if (shard.state() == IndexShardState.CLOSED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (settings.isWarmerEnabled() == false) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("{} to...
terminationHandles = new ArrayList<>();
256,821
public ServiceResponse serviceImpl(Query post, HttpServletResponse response, Authorization user, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>int cognitionsCount = Math.min(10, post.get("cognitions", 10));<NEW_LINE>String date = post.get("date", null);<NEW_LINE>boolean isValidDate = (date != ...
put(cognition.getJSON());