idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,802,757
public int alterNameAndTypeAndFlag(String tableSchema, String originName, String newName, int tableType, long flag) {<NEW_LINE>try {<NEW_LINE>final Map<Integer, ParameterContext> params = new HashMap<>(12);<NEW_LINE>MetaDbUtil.setParameter(1, params, ParameterMethod.setString, newName);<NEW_LINE>MetaDbUtil.setParameter...
update(UPDATE_TABLES_EXT_SWITCH_NAME_TYPE_FLAG, params, connection);
1,391,206
public void run() {<NEW_LINE>try {<NEW_LINE>synchronized (this) {<NEW_LINE>while (true) {<NEW_LINE>while (this.poolFile == null || this.isFull || !this.canRead) {<NEW_LINE>this.wait();<NEW_LINE>if (this.finished) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final BufferedDataInputStream vis = new BufferedDataInput...
(this.buf[i]);
956,407
public void handleLineComment(int commentIndex) {<NEW_LINE>Token commentToken = this.tm.get(commentIndex);<NEW_LINE>boolean isOnFirstColumn = handleWhitespaceAround(commentIndex);<NEW_LINE>if (handleFormatOnOffTags(commentToken))<NEW_LINE>return;<NEW_LINE>if (isOnFirstColumn) {<NEW_LINE>if (this.options.comment_format_...
tm.remove(commentIndex - 1);
1,353,322
public void initDriverSettings(JDBCSession session, JDBCDataSource dataSource, JDBCDatabaseMetaData metaData) {<NEW_LINE>super.initDriverSettings(session, dataSource, metaData);<NEW_LINE>DBPDriver driver = dataSource.getContainer().getDriver();<NEW_LINE>String delimitersString = CommonUtils.toString(driver.getDriverPar...
.getDriverParameter(GenericConstants.PARAM_SCRIPT_DELIMITER_REDEFINER));
1,794,777
private static int runReAugmentation(List<String> cliArgs, CommandLine cmd) {<NEW_LINE>int exitCode = 0;<NEW_LINE>List<String> configArgsList <MASK><NEW_LINE>configArgsList.remove(AUTO_BUILD_OPTION_LONG);<NEW_LINE>configArgsList.remove(AUTO_BUILD_OPTION_SHORT);<NEW_LINE>configArgsList.remove(ImportRealmMixin.IMPORT_REA...
= new ArrayList<>(cliArgs);
105,015
private void loadActivities() {<NEW_LINE>synchronized (mActivityItems) {<NEW_LINE>mActivityItems.clear();<NEW_LINE>if (getPackageInfoInternal() == null || mPackageInfo.activities == null) {<NEW_LINE>mActivities.postValue(mActivityItems);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (ActivityInfo activityInfo : mPackageInfo...
? activityInfo.name : activityInfo.targetActivity;
320,481
public void calc(ComContext context) {<NEW_LINE>Tuple2<DenseVector, double[]> grad = context.getObj(OptimVariable.dir);<NEW_LINE>Tuple2<DenseVector, Double> curCoef = context.getObj(OptimVariable.currentCoef);<NEW_LINE>Tuple2<DenseVector, Double> minCoef = context.getObj(OptimVariable.minCoef);<NEW_LINE>DenseMatrix hes...
f1 = grad.f1[1];
1,601,898
static // / @brief Print the solution.<NEW_LINE>void printSolution(RoutingModel routing, RoutingIndexManager manager, Assignment solution) {<NEW_LINE>logger.info("Objective: " + solution.objectiveValue());<NEW_LINE>logger.info("Breaks:");<NEW_LINE>AssignmentIntervalContainer intervals = solution.intervalVarContainer();...
breakInterval = intervals.element(i);
1,605,589
public CreateStudioLifecycleConfigResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateStudioLifecycleConfigResult createStudioLifecycleConfigResult = new CreateStudioLifecycleConfigResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c...
JsonToken token = context.getCurrentToken();
364,157
private static void removeIgnoredFoldersAndSetConvertedFlag(Document workspaceDocument) throws XPathExpressionException {<NEW_LINE>XPath xpath = XPathFactory.newInstance().newXPath();<NEW_LINE>NodeList changeListManagerNodeList = findIgnoreNodesInChangeListManager(xpath, workspaceDocument);<NEW_LINE>Node parentNode;<NE...
changeListManagerNodeList.getLength() - 1);
921,971
private void replaceSimpleEnumSwitchInstruction(Clazz clazz, int loadOffset, int switchOffset, SwitchInstruction replacementSwitchInstruction) {<NEW_LINE>logger.debug(" Replacing switch instruction at [{}] -> [{}] swap + pop, {})", switchOffset, loadOffset<MASK><NEW_LINE>// Remove the array load instruction.<NEW_LINE>...
, replacementSwitchInstruction.toString(switchOffset));
1,530,765
private boolean completeOnPackageVisibilityStatements(boolean contextAccepted, CompilationUnitDeclaration parsedUnit, PackageVisibilityStatement[] pvsStmts) {<NEW_LINE>try {<NEW_LINE>this.skipDefaultPackage = true;<NEW_LINE>for (int i = 0, l = pvsStmts.length; i < l; ++i) {<NEW_LINE>PackageVisibilityStatement pvs = pvs...
skipSet = new HashSet<>();
857,172
public void processInlineDestructor(RecoveredClass recoveredClass, Function inlinedDestructorFunction, Map<Address, RecoveredClass> referenceToClassMap) throws CancelledException, InvalidInputException, DuplicateNameException {<NEW_LINE>if (referenceToClassMap.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Addr...
referencesToVftables.get(numRefs - 1);
183,515
public static DMatrixRMaj inducedHomography12(TrifocalTensor tensor, Vector3D_F64 line3, DMatrixRMaj output) {<NEW_LINE>if (output == null)<NEW_LINE>output = new DMatrixRMaj(3, 3);<NEW_LINE>// H(:,0) = T1*line<NEW_LINE>DMatrixRMaj T = tensor.T1;<NEW_LINE>output.data[0] = T.data[0] * line3.x + T.data[1] * line3.y + T.da...
data[5] * line3.z;
875,288
void addObserveInternalModuleImport(BLangPackage pkgNode) {<NEW_LINE>if (observabilityIncluded && (pkgNode.moduleContextDataHolder != null && !pkgNode.moduleContextDataHolder.projectKind().equals(ProjectKind.BALA_PROJECT))) {<NEW_LINE>BLangImportPackage importDcl = (BLangImportPackage) TreeBuilder.createImportPackageNo...
pkgNameComps = new ArrayList<>();
43,618
private void initAcl() {<NEW_LINE>this.setAcl(Collections.emptyList());<NEW_LINE>if (this.toggleAclSettings(false)) {<NEW_LINE>final AclPermission feature = session.getFeature(AclPermission.class);<NEW_LINE>aclAddButton.removeAllItems();<NEW_LINE>this.<MASK><NEW_LINE>this.aclAddButton.lastItem().setImage(IconCacheFacto...
aclAddButton.addItemWithTitle(StringUtils.EMPTY);
163,250
private static Shape[] addFlightComputerSymbol(Shape[] baseShape) {<NEW_LINE>int pins = 12;<NEW_LINE>int offset = baseShape.length;<NEW_LINE>Shape[] newShape = new Shape[baseShape.length + 1 + pins];<NEW_LINE>System.arraycopy(baseShape, 0, newShape, 0, baseShape.length);<NEW_LINE>Rectangle2D bounds = baseShape[0].getBo...
hMargin) / (pins + 1);
1,396,329
public void create(ThreadLayoutCallback callback) {<NEW_LINE>this.callback = callback;<NEW_LINE>// View binding<NEW_LINE>loadView = findViewById(R.id.loadview);<NEW_LINE>replyButton = findViewById(R.id.reply_button);<NEW_LINE>LayoutInflater layoutInflater = LayoutInflater.from(getContext());<NEW_LINE>// Inflate ThreadL...
getContext(), presenter, this);
982,852
private void highlightList(Map<String, Object> options, List<Object> collection, int width, int depth) {<NEW_LINE>int row = 0;<NEW_LINE>int maxrows = (int) options.get(Printer.MAXROWS);<NEW_LINE>int indent = (int) options.get(Printer.INDENTION);<NEW_LINE>List<Integer> tabs = new ArrayList<>();<NEW_LINE>tabs.add(indent ...
.size()) + 2);
353,670
public Operation prepareReplicationOperation(PartitionReplicationEvent event, Collection<ServiceNamespace> namespaces) {<NEW_LINE>if (namespaces.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>MultiMapPartitionContainer partitionContainer = partitionContainers[event.getPartitionId()];<NEW_LINE>int replicaIndex =...
createHashMap(namespaces.size());
1,207,303
public void success(Object response) {<NEW_LINE>String responseMessage = null;<NEW_LINE>String confirmButtonTitle = null;<NEW_LINE>String cancelButtonTitle = null;<NEW_LINE>if (response != null) {<NEW_LINE>Map<String, Object> responseMap = (Map<String, Object>) response;<NEW_LINE>responseMessage = (String) responseMap....
Integer) responseMap.get("action");
1,561,005
private void adjustAbandonTimeout(boolean backupFinished) {<NEW_LINE>// Mark last heart-beat time.<NEW_LINE>mLastHeartBeat = Instant.now();<NEW_LINE>// Cancel active timer.<NEW_LINE>if (mTimeoutBackupFuture != null) {<NEW_LINE>mTimeoutBackupFuture.cancel(true);<NEW_LINE>}<NEW_LINE>// Reschedule if backup is still in pr...
}, mBackupAbandonTimeout, TimeUnit.MILLISECONDS);
675,589
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.functionKey, convLabelName("Function Key"));<NEW_LI...
ValidatorFactory.getInstance(Validator.MAX_LENGTH);
1,518,141
public void render(final RenderManager renderManager) {<NEW_LINE>if (isBusy()) {<NEW_LINE>final SnapshotJob job = jobs.get(0);<NEW_LINE>for (int i = 0; i < 6; i++) {<NEW_LINE>viewports[i].clearScenes();<NEW_LINE>viewports[i].attachScene(job.scene);<NEW_LINE>renderManager.renderViewPort<MASK><NEW_LINE>buffers[i] = Buffe...
(viewports[i], 0.16f);
796,688
public DataFlow apply(@Nonnull final EntityResponse entityResponse) {<NEW_LINE>final DataFlow result = new DataFlow();<NEW_LINE>result.setUrn(entityResponse.getUrn().toString());<NEW_LINE>result.setType(EntityType.DATA_FLOW);<NEW_LINE>EnvelopedAspectMap aspectMap = entityResponse.getAspects();<NEW_LINE>MappingHelper<Da...
new InstitutionalMemory(dataMap))));
487,034
final CreateRecipeResult executeCreateRecipe(CreateRecipeRequest createRecipeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRecipeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateRecipe");
1,065,067
public YAtomicType yGlobEnum(String name, SchemaContextAware<BiFunction<String, Collection<String>, String>> errorMessageFormatter, SchemaContextAware<Collection<String>> values) {<NEW_LINE>YAtomicType t = yatomic(name);<NEW_LINE>t.setHintProvider((dc) -> {<NEW_LINE>return PartialCollection.compute(() -> values.withCon...
glob = SimpleGlob.create(stringOrGlob);
921,276
public static long clCreateProgramWithBuiltInKernels(@NativeType("cl_context") long context, @NativeType("cl_device_id const *") PointerBuffer device_list, @NativeType("cl_char const *") CharSequence kernel_names, @Nullable @NativeType("cl_int *") int[] errcode_ret) {<NEW_LINE>long __functionAddress = CL.getICD().clCre...
long kernel_namesEncoded = stack.getPointerAddress();
1,257,404
public boolean mouseScrolled(double mouseX, double mouseY, double delta) {<NEW_LINE>Window window = getMinecraft().getWindow();<NEW_LINE>double hoveredX = mouseX - window.getGuiScaledWidth() / 2;<NEW_LINE>double hoveredY = mouseY <MASK><NEW_LINE>double distance = hoveredX * hoveredX + hoveredY * hoveredY;<NEW_LINE>if (...
- window.getGuiScaledHeight() / 2;
1,282,184
private Node stop() {<NEW_LINE>if (!lifecycle.moveToStopped()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>logger.info("stopping ...");<NEW_LINE>injector.getInstance(ResourceWatcherService.class).close();<NEW_LINE>injector.getInstance(HttpServerTransport.class).stop();<NEW_LINE>injector.getInstance(SnapshotsService.cla...
IndicesClusterStateService.class).stop();
2,531
public void initialize(HttpRequest request) {<NEW_LINE>// Turn off request logging, this can end up logging OAUTH<NEW_LINE>// tokens which should not ever be in a build log<NEW_LINE>final boolean loggingEnabled = false;<NEW_LINE>request.setLoggingEnabled(loggingEnabled);<NEW_LINE>request.setCurlLoggingEnabled(loggingEn...
"Retrying {}", request.getUrl());
1,668,146
public ListPipelinesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPipelinesResult listPipelinesResult = new ListPipelinesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
1,214,432
public void run() {<NEW_LINE>final List<SpriteCell> cells = new ArrayList<>(source.cells);<NEW_LINE>final int size = cells.size();<NEW_LINE>// build the solution using source<NEW_LINE>final Solution result = new Solution(getImage());<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < Math.min(size, numMutation); i++) {<NEW_LI...
(cells.size()));
1,524,932
private void handleGroupBy(SQLSelectGroupByClause groupBy) {<NEW_LINE>for (SQLExpr p : groupBy.getItems()) {<NEW_LINE>if (p instanceof MySqlOrderingExpr) {<NEW_LINE>MySqlOrderingExpr groupitem = (MySqlOrderingExpr) p;<NEW_LINE>SQLExpr q = groupitem.getExpr();<NEW_LINE>MySQLItemVisitor v = new MySQLItemVisitor(this.curr...
), groupitem.getType());
1,054,463
protected boolean closeQuery(@Nonnull Content content, boolean modal) {<NEW_LINE>final RunContentDescriptor descriptor = getRunContentDescriptorByContent(myContent);<NEW_LINE>if (descriptor == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final ProcessHandler processHandler = descriptor.getProcessHandler();<NEW_LIN...
descriptor.getDisplayName(), processHandler);
1,281,101
private void logRouterSnapshot(URL url, Invocation invocation, RouterSnapshotNode<T> snapshotNode) {<NEW_LINE>if (snapshotNode.getChainOutputInvokers() == null || snapshotNode.getChainOutputInvokers().isEmpty()) {<NEW_LINE>if (logger.isWarnEnabled()) {<NEW_LINE>String message = "No provider available after route for th...
+ ". Router snapshot is below: \n" + snapshotNode.toString();
196,873
private void logUnsatisfiedRequest(Map<PerformanceIndex, Long> requestPerfToCheck) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("Unsatisfied request: uri=").append(request.getUri()).append("; method=").append(request.getRestMethod());<NEW_LINE>if (request.getRestMethod() == RestMethod.POST) {<N...
append(entry.getValue());
1,779,560
protected void initApplication(boolean isHeadlessMode, CommandLineArgs args, StatCollector stat) {<NEW_LINE>StartupProgress splash = createSplash(args);<NEW_LINE>if (splash != null) {<NEW_LINE>mySplashRef.set(splash);<NEW_LINE>}<NEW_LINE>PluginsLoader.setVersionChecker();<NEW_LINE>myPluginsInitializeInfo = <MASK><NEW_L...
PluginsLoader.initPlugins(splash, isHeadlessMode);
261,708
private UserIdentity resolveUserDN(final String userDN, final SessionLabel sessionLabel) throws PwmUnrecoverableException, PwmOperationalException {<NEW_LINE>LOGGER.trace(sessionLabel, () -> "finding profile for userDN " + userDN);<NEW_LINE>final SearchConfiguration searchConfiguration = SearchConfiguration.builder().f...
.iterator().next();
1,592,283
final DescribeDomainChangeProgressResult executeDescribeDomainChangeProgress(DescribeDomainChangeProgressRequest describeDomainChangeProgressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainChangeProgressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
false), new DescribeDomainChangeProgressResultJsonUnmarshaller());
1,595,812
private void renderRuntimeIntern() throws IOException {<NEW_LINE>if (!needInternMethod()) {<NEW_LINE>writer.append("function $rt_intern(str) {").indent().softNewLine();<NEW_LINE>writer.append("return str;").softNewLine();<NEW_LINE>writer.outdent().append("}").softNewLine();<NEW_LINE>} else {<NEW_LINE>renderHandWrittenR...
.indent().softNewLine();
1,153,842
public void encodeValues(Buffer valueBuffer, List<JvmGcBo> jvmGcBos) {<NEW_LINE>if (CollectionUtils.isEmpty(jvmGcBos)) {<NEW_LINE>throw new IllegalArgumentException("jvmGcBos must not be empty");<NEW_LINE>}<NEW_LINE>final int gcTypeCode = jvmGcBos.get(0).getGcType().getTypeCode();<NEW_LINE>valueBuffer.putVInt(gcTypeCod...
int numValues = jvmGcBos.size();
1,525,914
public static StringBuilder encodeString(StringBuilder buf, String path, String encode) {<NEW_LINE>if (buf == null) {<NEW_LINE>for (int i = 0; i < path.length(); i++) {<NEW_LINE>char c = path.charAt(i);<NEW_LINE>if (c == '%' || encode.indexOf(c) >= 0) {<NEW_LINE>buf = new StringBuilder(<MASK><NEW_LINE>break;<NEW_LINE>}...
path.length() << 1);
1,662,835
public ConsumerKeyGroup joinKeyGroup(ConsumerKey consumerKey, OrderingContextImpl orderingGroup) throws SIResourceException, SISessionDroppedException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "joinKeyGroup", new Object[] { consumerKey, orderingGroup });<NEW_LI...
) consumerKey).joinKeyGroup(keyGroup);
1,521,731
public static <T> T instantiate(Class<T> expectedClass, String classname, Properties info, boolean tryString, @Nullable String stringarg) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException {<NEW_LIN...
(classname).asSubclass(expectedClass);
1,612,444
public boolean canTarget(UUID id, Ability source, Game game) {<NEW_LINE>if (!super.canTarget(id, game)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent targetPermanent = game.getPermanent(id);<NEW_LINE>if (targetPermanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (this.getTargets().isEmpty()) {<NE...
add(new SharesCreatureTypePredicate(permanent));
163,852
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = source.getSourcePermanentIfItStillExists(game);<NEW_LINE>if (permanent == null || permanent.isMonstrous()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int monstrosityValue = ((MonstrosityAbility) source).getMonstrosityValue();<NEW_LINE>//...
getControllerId(), source, game);
1,581,590
private void createTileCache() {<NEW_LINE>// TODO: Refactor this to avoid replicating logic from QuPathGUI private method<NEW_LINE>Runtime rt = Runtime.getRuntime();<NEW_LINE>// Max available memory<NEW_LINE>long maxAvailable = rt.maxMemory();<NEW_LINE>if (maxAvailable == Long.MAX_VALUE) {<NEW_LINE>logger.warn("No inhe...
.tileCachePercentageProperty().get();
793,769
private Race parseRace(JSONObject o) {<NEW_LINE>try {<NEW_LINE>String id = (String) o.get("id");<NEW_LINE>JSONObject gameInfo = (JSONObject) o.get("game");<NEW_LINE>String game = (String) gameInfo.get("name");<NEW_LINE>String goal = (String) o.get("goal");<NEW_LINE>int state = ((Number) o.get("state")).intValue();<NEW_...
JSONObject) o.get("entrants");
501,255
private LastEnqueuedEventProperties deserializeEnqueuedEventProperties(Message message) {<NEW_LINE>final <MASK><NEW_LINE>if (annotations == null || annotations.getValue() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<Symbol, Object> deliveryAnnotations = annotations.getValue();<NEW_LINE>final Long last...
DeliveryAnnotations annotations = message.getDeliveryAnnotations();
294,468
public Set<String> resolveTypeName(CompilationInfo info, String anyName) {<NEW_LINE>int dot = anyName.indexOf('.');<NEW_LINE>if (dot == -1) {<NEW_LINE>// probably simple name, does not contain any dots<NEW_LINE>return resolveName(anyName);<NEW_LINE>}<NEW_LINE>// try to interpret as a fully qualified name; it's not usua...
prefix + anyName.substring(dot);
1,266,403
public static ListInvocationResultsResponse unmarshall(ListInvocationResultsResponse listInvocationResultsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInvocationResultsResponse.setRequestId(_ctx.stringValue("ListInvocationResultsResponse.RequestId"));<NEW_LINE>listInvocationResultsResponse.setTotalCount(_ctx.inte...
("ListInvocationResultsResponse.InvocationResults[" + i + "].ExitCode"));
1,016,333
private Collection<VirtualFile> collectWildcardDirectories(@NotNull Matcher matcher, @NotNull VirtualFile directory) {<NEW_LINE>Collection<VirtualFile> <MASK><NEW_LINE>String pathName = matcher.group(1);<NEW_LINE>String fileExtension = matcher.group(2).length() > 0 ? matcher.group(2) : null;<NEW_LINE>pathName = StringU...
files = new HashSet<>();
1,027,202
/*<NEW_LINE>* @see com.ibm.ws.http.channel.internal.HttpServiceContextImpl#isCompressionAllowed()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected boolean isCompressionAllowed() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>boolean rc = false;<NEW_LIN...
Tr.entry(tc, "isCompressionAllowed");
1,190,675
public static ChunkSection fromNbt(CompoundTag sectionTag) {<NEW_LINE>byte[] rawTypes = sectionTag.getByteArray("Blocks");<NEW_LINE>NibbleArray extTypes = sectionTag.containsKey("Add") ? new NibbleArray(sectionTag.getByteArray("Add")) : null;<NEW_LINE>NibbleArray data = new NibbleArray(sectionTag.getByteArray("Data"));...
= new char[rawTypes.length];
1,216,636
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException {<NEW_LINE>Weight fallbackWeight = fallbackQuery.createWeight(searcher, scoreMode, boost);<NEW_LINE>return new ConstantScoreWeight(this, boost) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ScorerSupplier scorerSupp...
return disi.lastDoc - disi.firstDoc;
1,501,420
private void loadNode176() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_CallCount, new QualifiedName(0, "CallCount"), new LocalizedText("en", "CallCount"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(...
.expanded(), true));
786,055
private Map<String, Object> toMap(JobDetail detail, List<? extends Trigger> triggers, ZoneId zoneId) throws SchedulerException {<NEW_LINE>Map<String, Object> json = new LinkedHashMap<>();<NEW_LINE>json.put("key", detail.getKey().toString());<NEW_LINE>Optional.ofNullable(detail.getDescription()).ifPresent(value -> json....
(detail.getJobClass()));
1,723,952
public boolean updateState(List<Taggable> taggables, Device device, Color defaultFG, Color defaultBG) {<NEW_LINE>updateImage();<NEW_LINE>boolean needRedraw = updateName();<NEW_LINE>needRedraw |= updateColors(device, defaultFG, defaultBG);<NEW_LINE>if (taggables == null) {<NEW_LINE>needRedraw |= setEnabledNoRedraw(enabl...
null : trigger.tagSelectedOverride(tag);
320,845
private IndexColorModel createIndexColorModel(final int bitsPerSample, final int dataType, final int[] cmapShort) {<NEW_LINE>// According to the spec, there should be exactly 3 * bitsPerSample^2 entries in the color map for TIFF.<NEW_LINE>// Should we enforce this?<NEW_LINE>int[] cmap = new int[cmapShort.length / 3];<N...
, false, -1, dataType);
628,946
private void startCapturing() {<NEW_LINE>Logging.d(TAG, "Start capturing");<NEW_LINE>checkIsOnCameraThread();<NEW_LINE>state = SessionState.RUNNING;<NEW_LINE>camera.setErrorCallback(new android.hardware.Camera.ErrorCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onError(int error, android.hardware.Camera...
Logging.e(TAG, errorMessage);
1,263,452
public ListLayersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListLayersResult listLayersResult = new ListLayersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
96,179
public void marshall(ImportJobResource importJobResource, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (importJobResource == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(importJobResource.getDefineSegmen...
importJobResource.getRoleArn(), ROLEARN_BINDING);
1,194,408
private static <T> double[] internalBuildHistogram(final T[] splitPoints, final ItemsSketch<T> sketch) {<NEW_LINE>final Object[] samples = sketch.getCombinedBuffer();<NEW_LINE>final int bbCount = sketch.getBaseBufferCount();<NEW_LINE>ItemsUtil.validateValues(splitPoints, sketch.getComparator());<NEW_LINE>final int numS...
long myBitPattern = sketch.getBitPattern();
275,627
@Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Update a bucket state", notes = "Can only close a bucket which is not in DRAFT state", response = Bucket.class)<NEW_LINE>@Timed<NEW_LINE>public Response putBucketState(@PathParam("experimentID") @ApiParam(value = "Experimen...
experiment = experiments.getExperiment(experimentID);
1,642,460
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>int wrapContent = ViewGroup.LayoutParams.WRAP_CONTENT;<NEW_LINE>LinearLayout layout = new LinearLayout(context);<NEW_LINE>layout.setOrientation(LinearLayout.HORIZONTAL);<NEW_LINE>layout.setGravity(Gravity.CENTER_VERTICAL);<NEW_LINE...
setScaleType(ImageView.ScaleType.FIT_XY);
524,799
public void run() {<NEW_LINE>try {<NEW_LINE>Universe universe = getUniverse();<NEW_LINE>for (String nodeIp : params().nodeIpList) {<NEW_LINE>List<String> command = new ArrayList<>();<NEW_LINE>command.add("timeout");<NEW_LINE>command.add(String.valueOf(DEFAULT_COMMMAND_TIMEOUT_SEC));<NEW_LINE>command.add("cat /proc/memi...
log.error("Errored out with: " + e);
1,660,855
private Query createSliceQuery(int id, int max, SearchExecutionContext context, boolean isScroll) {<NEW_LINE>if (field == null) {<NEW_LINE>return isScroll ? new TermsSliceQuery(IdFieldMapper.NAME, id, max) : new DocIdSliceQuery(id, max);<NEW_LINE>} else if (IdFieldMapper.NAME.equals(field)) {<NEW_LINE>if (isScroll == f...
throw new IllegalArgumentException("cannot load numeric doc values on " + field);
1,125,711
public void hook_add_new(final InterruptHook callback, Object user_data) throws BackendException {<NEW_LINE>try {<NEW_LINE>final Unicorn.UnHook unHook = unicorn.hook_add_new(new com.github.unidbg.arm.backend.unicorn.InterruptHook() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void hook(Unicorn u, int intno, Object us...
this, intno, swi, user);
197,105
private Mono<Response<String>> supportedVpnDevicesWithResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgu...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,727,810
public void testServletSubmitsBeanToManagedExecutor() throws Exception {<NEW_LINE>appScopedBean.setCharacter('c');<NEW_LINE>requestScopedBean.setNumber(2);<NEW_LINE>sessionScopedBean.setText("This is some text");<NEW_LINE>singletonScopedBean.put("Key_TaskBean", "value");<NEW_LINE>Future<String> future = executor.submit...
String result = future.get();
1,357,684
public ProcessPreconditionsResolution checkPreconditionsApplicable(final IProcessPreconditionsContext context) {<NEW_LINE>if (!context.isSingleSelection()) {<NEW_LINE>return ProcessPreconditionsResolution.rejectWithInternalReason("one and only one order shall be selected");<NEW_LINE>}<NEW_LINE>final I_C_Order salesOrde...
context.getSelectedModel(I_C_Order.class);
712,657
private static final void createNativeManifest(File manifestFile, File nativeHostFile, BrowserType browserType) {<NEW_LINE>try (OutputStream out = new FileOutputStream(manifestFile)) {<NEW_LINE>String name, manifestKey, extension;<NEW_LINE>if (browserType == BrowserType.Chrome || browserType == BrowserType.Chromium) {<...
, "\\\\"), manifestKey, extension);
1,126,555
// Validate parts and throw an IllegalArgumentException if a part is not valid<NEW_LINE>private void doValidate() {<NEW_LINE>List<String> errors = new ArrayList<>();<NEW_LINE>// Strip off user from repository name<NEW_LINE>String image = user != null ? repository.substring(user.length() + 1) : repository;<NEW_LINE>Obje...
Pattern) checks[i + 1];
217,006
final UpdateTrafficPolicyInstanceResult executeUpdateTrafficPolicyInstance(UpdateTrafficPolicyInstanceRequest updateTrafficPolicyInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTrafficPolicyInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,698,965
/*<NEW_LINE>private void propagateSleepSetSymbolic(int depth, PrimitiveVS<Machine> choice) {<NEW_LINE>propagateSleepSet(depth, choice);<NEW_LINE>for (GuardedValue<Machine> machine : choice.getGuardedValues()) {<NEW_LINE>Message current = machine.getValue().sendBuffer.peek(machine.getGuard());<NEW_LINE>for (GuardedValue...
= (DPORChoice) getChoice(i);
38,996
public static QueryEdgeDriverResponse unmarshall(QueryEdgeDriverResponse queryEdgeDriverResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryEdgeDriverResponse.setRequestId(_ctx.stringValue("QueryEdgeDriverResponse.RequestId"));<NEW_LINE>queryEdgeDriverResponse.setSuccess(_ctx.booleanValue("QueryEdgeDriverResponse.Succe...
("QueryEdgeDriverResponse.Data.DriverList[" + i + "].DriverId"));
239,447
void generate() {<NEW_LINE>File jarFileDestination = getJarFile();<NEW_LINE>File unixScript = getScriptFile();<NEW_LINE>FileResolver resolver = getFileLookup().getFileResolver(unixScript.getParentFile());<NEW_LINE>String jarFileRelativePath = resolver.resolveAsRelativePath(jarFileDestination);<NEW_LINE>writeProperties(...
setScriptRelPath(unixScript.getName());
1,804,771
public static void toRSS(String hostUrl, String feedLink, String title, String description, List<FeedEntryModel> entryModels, OutputStream os) throws IOException, FeedException {<NEW_LINE>SyndFeed feed = new SyndFeedImpl();<NEW_LINE>feed.setFeedType("rss_2.0");<NEW_LINE>feed.setEncoding("UTF-8");<NEW_LINE>feed.setTitle...
= new ArrayList<SyndCategory>();
232,407
public HistoricTaskInstanceEntity recordTaskInfoChange(TaskEntity taskEntity, Date changeTime, AbstractEngineConfiguration engineConfiguration) {<NEW_LINE>HistoricTaskInstanceEntity historicTaskInstance = getHistoricTaskInstanceEntityManager().findById(taskEntity.getId());<NEW_LINE>if (historicTaskInstance != null) {<N...
setClaimTime(taskEntity.getClaimTime());
553,534
protected void updateLocalizationDefinition(BaseLocalizationDefinition destinationLocalizationDefinition, TransactionCommon transaction) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "updateLocalizationDefinition", new Object[] { destinat...
.updateLocalisationDefinition((LocalizationDefinition) destinationLocalizationDefinition);
1,424,842
private Properties processFile() {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>String <MASK><NEW_LINE>if (!extension.equalsIgnoreCase("properties")) {<NEW_LINE>LOG.info("Ignoring, as file extension is not correct for: {}", configFile);<NEW_LINE>} else {<NEW_LINE>LOG.info("Trying to find Dozer configurat...
extension = FilenameUtils.getExtension(configFile);
1,221,278
public void onConnectionError(MySQLResponseService service, int errNo) {<NEW_LINE>if (errNo == ErrorCode.ER_XAER_NOTA) {<NEW_LINE>RouteResultsetNode rrn = (RouteResultsetNode) service.getAttachment();<NEW_LINE>String xid = service.getConnXID(session.getSessionXaID(), rrn);<NEW_LINE>XAAnalysisHandler xaAnalysisHandler =...
service.setXaStatus(TxState.TX_INITIALIZE_STATE);
288,736
public void run() {<NEW_LINE>Thread.currentThread().setPriority(Thread.NORM_PRIORITY + 1);<NEW_LINE>while (!destroyed) {<NEW_LINE>try {<NEW_LINE>Thread.sleep(TIMER_TICK_MILLIS);<NEW_LINE>} catch (Throwable e) {<NEW_LINE>}<NEW_LINE>tick_count++;<NEW_LINE>if (tick_count % STATS_TICKS == 0) {<NEW_LINE>logStats();<NEW_LINE...
[] { set, e });
103,188
public void walk(Instance in, Filter f) {<NEW_LINE>Queue<Instance> q = new ArrayDeque<Instance>();<NEW_LINE>q.add(in);<NEW_LINE>log.add(in);<NEW_LINE>while (!q.isEmpty()) {<NEW_LINE>Instance act = q.poll();<NEW_LINE>if (act instanceof ObjectArrayInstance) {<NEW_LINE>List<Instance> out = ((ObjectArrayInstance) act).getV...
> out = act.getFieldValues();
4,366
public Map<String, Object> doGetRowStats(String full) {<NEW_LINE>Map<String, Object> returnMap = new HashMap<>();<NEW_LINE>Map<String, Object> totalsMap = new HashMap<>();<NEW_LINE>Map<String, Object> averagesMap = new HashMap<>();<NEW_LINE>boolean needsDeterminePartitions = false;<NEW_LINE>boolean needsBuildSegments =...
BUILD_SEGMENTS, buildSegmentsMeters.getTotals());
767,472
private List<GlobalConfig> prepareTimeoutGlobalConfig() {<NEW_LINE>Set<Class<? extends ConfigurableTimeoutMessage>> allConfigurableMessageClasses = BeanUtils.reflections.getSubTypesOf(ConfigurableTimeoutMessage.class).stream().filter(clz -> !APISyncCallMessage.class.isAssignableFrom(clz)).collect(Collectors.toSet());<N...
at.value())));
441,163
public synchronized boolean contains(Point tapXY, MapViewProjection mapViewProjection) {<NEW_LINE>// Touch min 20 px at baseline mdpi (160dpi)<NEW_LINE>double distance = Math.max(20 / 2 * this.displayModel.getScaleFactor(), this.paintStroke.getStrokeWidth() / 2);<NEW_LINE>Point point2 = null;<NEW_LINE>for (int i = 0; i...
.get(i + 1));
1,117,325
private void processFunction(@NotNull final Project project, @NotNull final ErlangFunction function, @Nullable Editor editor) {<NEW_LINE>if (!(function.getContainingFile() instanceof ErlangFile))<NEW_LINE>return;<NEW_LINE>ErlangFile file = <MASK><NEW_LINE>List<ErlangExport> exports = getExportPsiElements(file);<NEW_LIN...
(ErlangFile) function.getContainingFile();
188,348
public Instance pipe(Instance carrier) {<NEW_LINE>TokenSequence seq = (TokenSequence) carrier.getData();<NEW_LINE>ObjectDoubleHashMap[] original = new ObjectDoubleHashMap[seq.size()];<NEW_LINE>for (int i = 0; i < seq.size(); i++) {<NEW_LINE>Token t = seq.get(i);<NEW_LINE>original[i] = new ObjectDoubleHashMap();<NEW_LIN...
? "/" + j : "/+" + j;
975,337
protected void internalLoadFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>super.internalLoadFromXml(reader);<NEW_LINE>this.folderId = new FolderId();<NEW_LINE>this.folderId.loadFromXml(reader, reader.getLocalName());<NEW_LINE>reader.read();<NEW_LINE>setParentFolderId(new FolderId());<NEW_LINE>getParent...
unreadCount = Integer.parseInt(str);
144,475
public void expandRaggedSelection() {<NEW_LINE>if (!inMultiSelectMode())<NEW_LINE>return;<NEW_LINE>// TODO: It looks like we need to use an alternative API when<NEW_LINE>// using Vim mode.<NEW_LINE>if (isVimModeOn())<NEW_LINE>return;<NEW_LINE>boolean hasSelection = hasSelection();<NEW_LINE>Range[] ranges = widget_.getE...
selection.addRange(range, true);
1,396,248
public byte[] encrypt(final byte[] plaintext, final byte[] contextInfo) throws /* unused */<NEW_LINE>GeneralSecurityException {<NEW_LINE>if (contextInfo != null) {<NEW_LINE>throw new GeneralSecurityException("contextInfo must be null because it is unused");<NEW_LINE>}<NEW_LINE>if (plaintext.length > recordSize - paddin...
(ECPrivateKey) keyPair.getPrivate();
301,402
private void handleMergeInsert(EsperEPL2GrammarParser.MergeInsertContext mergeInsertContext) {<NEW_LINE>ExprNode whereCond = null;<NEW_LINE>if (mergeInsertContext.whereClause() != null) {<NEW_LINE>whereCond = ASTExprHelper.exprCollectSubNodes(mergeInsertContext.whereClause(), 0, astExprNodeMap).get(0);<NEW_LINE>}<NEW_L...
.getSelectExprList().clear();
201,121
public void init() {<NEW_LINE>verbose = Boolean.parseBoolean(getProperties().getProperty(VERBOSE, VERBOSE_DEFAULT));<NEW_LINE>todelay = Integer.parseInt(getProperties().getProperty(SIMULATE_DELAY, SIMULATE_DELAY_DEFAULT));<NEW_LINE>randomizedelay = Boolean.parseBoolean(getProperties().getProperty(RANDOMIZE_DELAY, RANDO...
HashMap<Integer, Integer>();
313,568
private static Collection<String> refreshUpdateCenters(ProgressHandle progress) {<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>Collection<String> problems = new HashSet<String>();<NEW_LINE>assert <MASK><NEW_LINE>Collection<RequestProcessor.Task> refreshTasks = new HashSet<RequestProcessor.Task>(...
!SwingUtilities.isEventDispatchThread() : "Cannot run refreshProviders in EQ!";
1,238,724
public void validateAlias(FacesContext context, UIComponent toValidate, Object value) {<NEW_LINE>if (!StringUtils.isEmpty((String) value)) {<NEW_LINE>String alias = (String) value;<NEW_LINE>boolean aliasFound = false;<NEW_LINE>Dataverse dv = dataverseService.findByAlias(alias);<NEW_LINE>if (editMode == DataversePage.Ed...
.getClientId(context), message);
1,484,308
protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, NumberPrototype builtinEnum) {<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case toExponential:<NEW_LINE>return JSNumberToExponentialNodeGen.create(context, builtin, args().withThis().fixedArgs(1).createArgumentNodes(cont...
().createArgumentNodes(context));
918,564
public static ListOTAModuleVersionsByDeviceResponse unmarshall(ListOTAModuleVersionsByDeviceResponse listOTAModuleVersionsByDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOTAModuleVersionsByDeviceResponse.setRequestId(_ctx.stringValue("ListOTAModuleVersionsByDeviceResponse.RequestId"));<NEW_LINE>listOTAModule...
("ListOTAModuleVersionsByDeviceResponse.Data[" + i + "].ModuleVersion"));
113,862
public GenericResponse checkConnection() {<NEW_LINE>logger.debug("Checking connection");<NEW_LINE>UriComponentsBuilder baseUrl = getBaseUrl();<NEW_LINE>try {<NEW_LINE>final ResponseEntity<QueueResponse> exchange = restTemplate.exchange(baseUrl.queryParam("mode", "queue").build().toUri().toString(), HttpMethod.GET, null...
return new GenericResponse(false, "Connection check with sabnzbd failed. Unable to parse response.");