idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,795,382
public static void convolve(Kernel2D_S32 kernel, GrayU16 src, GrayI16 dest, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final ...
short[] dataSrc = src.data;
1,849,621
final DescribeClusterSubnetGroupsResult executeDescribeClusterSubnetGroups(DescribeClusterSubnetGroupsRequest describeClusterSubnetGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClusterSubnetGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,760,625
public static void main(String[] args) {<NEW_LINE>// Specify what the pinhole camera should look like<NEW_LINE>CameraPinhole pinholeModel = new CameraPinhole(200, 200, 0, 250, 250, 500, 500);<NEW_LINE>// Load equirectangular RGB image<NEW_LINE>BufferedImage bufferedEqui = UtilImageIO.loadImageNotNull(UtilIO.pathExample...
panel.addImage(bufferedPinhole1, "Pinehole View 1");
1,639,180
private Authentication doAuthentication(SocialAuthenticationService<?> authService, HttpServletRequest request, SocialAuthenticationToken token) {<NEW_LINE>try {<NEW_LINE>if (!authService.getConnectionCardinality().isAuthenticatePossible())<NEW_LINE>return null;<NEW_LINE>token.setDetails(authenticationDetailsSource.bui...
updateConnections(authService, token, success);
59,228
private static void fixnumDownto(ThreadContext context, long from, long to, Block block) {<NEW_LINE>// We must avoid "i--" integer overflow when (to == Long.MIN_VALUE).<NEW_LINE>if (block.getSignature() == Signature.NO_ARGUMENTS) {<NEW_LINE>IRubyObject nil = context.nil;<NEW_LINE>long i;<NEW_LINE>for (i = from; i > to;...
block.yield(context, nil);
1,065,200
// Default values. Will be replaced if available from property file or Preferences object.<NEW_LINE>private void applyDefaultSettings() {<NEW_LINE>for (Bool setting : Bool.values()) {<NEW_LINE>booleanSettingsValues.put(setting, setting.getDefault());<NEW_LINE>}<NEW_LINE>for (int i = 0; i < stringSettingsValues.length;...
[i] = defaultStringSettingsValues[i];
1,230,105
// TODO [wait should be stored separately in future versions]<NEW_LINE>protected void addFlatProfTimeForNode(int dataOfs) {<NEW_LINE>int methodId = getMethodIdForNodeOfs(dataOfs);<NEW_LINE>Integer methodIdInt = Integer.valueOf(methodId);<NEW_LINE>boolean isRecursiveCall = methodsOnStack.contains(methodIdInt);<NEW_LINE>...
[methodId] += getSelfTime1ForNodeOfs(dataOfs);
1,408,498
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>String key = DocValueFormat.IP.format(this.key);<NEW_LINE>if (appendPrefixLength) {<NEW_LINE>key = key + "/" + prefixLength;<NEW_LINE>}<NEW_LINE>if (keyed) {<NEW_LINE>builder.startObject(key);<NEW_LINE>} else {<NEW_L...
KEY.getPreferredName(), key);
312,387
public JSONObject call(String endpoint, HttpMethod method, Object params, String env) {<NEW_LINE>log.info("begin to call endpoint {}", endpoint);<NEW_LINE>Map<String, Object> headers = new HashMap<>();<NEW_LINE>headers.put("x-auth-app", TeslaAuth.DEFAULT_AUTH_APP);<NEW_LINE>headers.put("x-auth-key", TeslaAuth.DEFAULT_A...
headers.put("x-empid", "169715");
1,339,247
private void gwFieldValueEnum(MethodWriterContext mwc, FieldWriter fieldWriter, int OBJECT, int i) {<NEW_LINE>Class<?> fieldClass = fieldWriter.getFieldClass();<NEW_LINE>MethodWriter mw = mwc.mw;<NEW_LINE>int FIELD_VALUE = mwc.var(fieldClass);<NEW_LINE>genGetObject(mwc, fieldWriter, OBJECT);<NEW_LINE>mw.visitInsn(Opcod...
, fieldWriter(i), DESC_FIELD_WRITER);
310,775
public String format(String content, boolean isLineStart, String indentation, int[] positions) {<NEW_LINE>if (CommonUtils.isEmpty(content)) {<NEW_LINE>return content;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>TransformerFactory transformerFactory = TransformerFactory.newInstance();<NEW_LINE><MASK><NEW_LINE>Transformer transfo...
transformerFactory.setAttribute("indent-number", 2);
175,542
public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {<NEW_LINE>Class inClass = config.getInClass();<NEW_LINE>ServerRequest serverRequest = ServerRequest.create(exchange, messageReaders);<NEW_LINE>// TODO: flux or mono<NEW_LINE>Mono<?> modifiedBody = serverRequest.bodyToMono(inClass).flatMap(o...
(decorator).build());
1,349,229
public void updateTask() {<NEW_LINE>EntityLivingBase entitylivingbase = this.attacker.getAttackTarget();<NEW_LINE>if (entitylivingbase == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>attacker.getLookHelper().setLookPositionWithEntity(entitylivingbase, 30.0F, 30.0F);<NEW_LINE>double distToTargSq = attacker.getDistanceSq...
PathPoint finalPathPoint = path.getFinalPathPoint();
1,662,415
public static String makePayloadString(short tnf, byte[] type, byte[] payload, NfcRecord record) {<NEW_LINE>String payload_string = "";<NEW_LINE>try {<NEW_LINE>// detect type for prepare string from payload<NEW_LINE>if (tnf == NdefRecord.TNF_ABSOLUTE_URI) {<NEW_LINE>payload_string = new String(payload, Charset.forName(...
payload, 1, languageCodeLength, "US-ASCII");
412,181
public Map<String, Object> doLogoutAs(final String principalUserId, final User currentLoginAsUser, final String serverName) throws DotDataException, DotSecurityException {<NEW_LINE>if (!UtilMethods.isSet(principalUserId)) {<NEW_LINE>throw new DotDataException("Current user [" + currentLoginAsUser.getUserId() + "] is no...
hostWebAPI.findDefaultHost(systemUser, false);
1,577,398
public static final Date castToDate(Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (value instanceof Calendar) {<NEW_LINE>return ((Calendar) value).getTime();<NEW_LINE>}<NEW_LINE>if (value instanceof Date) {<NEW_LINE>return (Date) value;<NEW_LINE>}<NEW_LINE>long longValue = -...
longValue = Long.parseLong(strVal);
1,540,067
public com.amazonaws.services.acmpca.model.RequestFailedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.acmpca.model.RequestFailedException requestFailedException = new com.amazonaws.services.acmpca.model.RequestFailedException(null);<NEW_LINE>int orig...
String currentParentElement = context.getCurrentParentElement();
1,113,456
void processEntry(Map<String, ?> entry, ConfigurationSet configurationSet) {<NEW_LINE>boolean invalidResult = Boolean.FALSE.equals(entry.get("result"));<NEW_LINE>ConfigurationCondition condition = ConfigurationCondition.alwaysTrue();<NEW_LINE>if (invalidResult) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String function = (...
) args.get(1));
1,673,548
public static void drawNode(Box bb, BufferBuilder bufferBuilder) {<NEW_LINE>double midX = (bb.minX + bb.maxX) / 2;<NEW_LINE>double midY = (bb.minY + bb.maxY) / 2;<NEW_LINE>double midZ = (bb.minZ + bb.maxZ) / 2;<NEW_LINE>bufferBuilder.vertex(midX, midY, bb.maxZ).next();<NEW_LINE>bufferBuilder.vertex(bb.minX, <MASK><NEW_...
midY, midZ).next();
1,591,815
public void sendPortletEvent(UI uI, QName name, Serializable value) throws IllegalStateException {<NEW_LINE>PortletResponse response = getCurrentResponse();<NEW_LINE>if (response instanceof MimeResponse) {<NEW_LINE>String actionKey = "" + System.currentTimeMillis();<NEW_LINE>while (eventActionDestinationMap.containsKey...
).setEvent(name, value);
464,068
public static void installMyGnuPlot() {<NEW_LINE>if (!FOUND_GP) {<NEW_LINE>LOG.warn("Skipping Gnuplot Shell Script Install since Gnuplot executable was not found");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!GP_FILE.exists()) {<NEW_LINE>if (!GP_FILE.getParentFile().exists()) {<NEW_LINE>GP_FILE<MASK><NEW_LINE>}<NEW_LINE>...
.getParentFile().mkdirs();
1,596,293
private Mono<PagedResponse<NetworkInterfaceInner>> listCloudServiceNetworkInterfacesNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() ==...
)).readOnly()));
1,034,347
public void read(org.apache.thrift.protocol.TProtocol prot, getActiveScans_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache<MASK><NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(2);<NEW_LINE>if (incoming.get(0)) {<NEW_LINE>{<NEW_LINE>org.a...
.thrift.protocol.TTupleProtocol) prot;
1,731,374
public void userJsonToMap(RawJson userJson, ProblemReporter problemReporter) {<NEW_LINE>Users users = userJsonToBean(userJson);<NEW_LINE>List<BlackList> blacklist = Optional.ofNullable(users.getBlacklist()).<MASK><NEW_LINE>if (users.getVersion() != null && !Versions.CONFIG_VERSION.equals(users.getVersion())) {<NEW_LINE...
orElse(Lists.newArrayList());
1,768,546
private static LdapDebugDataGenerator.LdapDebugServerInfo makeLdapDebugServerInfo(final ChaiConfiguration chaiConfiguration, final ChaiProvider chaiProvider, final LdapProfile ldapProfile) throws ChaiUnavailableException, ChaiOperationException {<NEW_LINE>final LdapDebugServerInfo.LdapDebugServerInfoBuilder builder = L...
rootDSEdata = LdapOperationsHelper.readAllEntryAttributeValues(rootDSEentry);
811,168
private void restoreWrites(PersistenceManager persistenceManager) {<NEW_LINE>List<UserWriteRecord> writes = persistenceManager.loadUserWrites();<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>long lastWriteId = Long.MIN_VALUE;<NEW_LINE>for (final UserWriteRecord write : writes) {<NEW_LINE>RequestResultCallback onComplete...
serverValues = ServerValues.generateServerValues(serverClock);
1,733,359
public void selectAccount(RSConnectAccount account) {<NEW_LINE>for (int i = 0; i < accounts_.size(); i++) {<NEW_LINE>if (accounts_.get(i).equals(account)) {<NEW_LINE>// extract the list of accounts, sort the desired account to the<NEW_LINE>// top, and put them back<NEW_LINE>List<RSConnectAccountEntry> entries = new Arr...
accounts_.add(0, account);
1,204,008
private void makeDependenciesInternedHtml(String depGraphName, List<String> classesInSplitPoint, Map<String, String> dependencies, HtmlInterner interner, String jsFileName) throws IOException {<NEW_LINE>String depGraphDescription = inferDepGraphDescription(depGraphName);<NEW_LINE>PrintWriter outFile = null;<NEW_LINE>St...
interner.printDependencyClassHeader(outFile, className);
1,212,785
private void pushByDoubleMath(int seen, Item it, Item it2) {<NEW_LINE>Item result;<NEW_LINE>@SpecialKind<NEW_LINE>int specialKind = Item.FLOAT_MATH;<NEW_LINE>if ((it.getConstant() instanceof Double) && it2.getConstant() instanceof Double) {<NEW_LINE>if (seen == Const.DADD) {<NEW_LINE>result = new Item("D", Double.value...
) * constantToDouble(it)));
114,263
private boolean doMove(boolean extending) {<NEW_LINE>Vector3 pos = this.getLocation();<NEW_LINE>BlockFace direction = getFacing();<NEW_LINE>if (!extending) {<NEW_LINE>this.level.setBlock(pos.getSide(direction), new BlockAir(), true, false);<NEW_LINE>}<NEW_LINE>BlocksCalculator calculator = new BlocksCalculator(this.lev...
, newBlocks.get(i));
1,434,812
public void onSuccess(List<Barcode> barcodes) {<NEW_LINE>// Task completed successfully<NEW_LINE>// [START_EXCLUDE]<NEW_LINE>// [START get_barcodes]<NEW_LINE>for (Barcode barcode : barcodes) {<NEW_LINE>Rect bounds = barcode.getBoundingBox();<NEW_LINE>Point[] corners = barcode.getCornerPoints();<NEW_LINE><MASK><NEW_LINE...
String rawValue = barcode.getRawValue();
1,474,839
private void fullGC(GCLogTrace trace, String line) {<NEW_LINE>if (pauseEvent == null) {<NEW_LINE>if (diary.isPSOldGen())<NEW_LINE>pauseEvent = new GenerationalForwardReference(PSFull, new Decorators(line), super.GCID_COUNTER.parse(line).getIntegerGroup(1));<NEW_LINE>else<NEW_LINE>pauseEvent = new GenerationalForwardRef...
pauseEvent.setStartTime(getClock());
1,535,286
public Status unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Status status = new Status();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (t...
int originalDepth = context.getCurrentDepth();
998,807
public synchronized Event readNext() throws IOException {<NEW_LINE>int magic = 0;<NEW_LINE>Event e = new Event();<NEW_LINE>int channellen = 0, datalen = 0;<NEW_LINE>while (true) {<NEW_LINE>int v = raf.readByte() & 0xff;<NEW_LINE>magic = (magic << 8) | v;<NEW_LINE>if (magic != LOG_MAGIC)<NEW_LINE>continue;<NEW_LINE>e.ev...
.utime = raf.readLong();
320,681
// CLOVER:OFF<NEW_LINE>// The main entry point is tedious to unit test<NEW_LINE>@Override<NEW_LINE>public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>Artifact mainArtifact = project.getArtifact();<NEW_LINE>File specFile = new File(project.getBasedir(), specFileName);<NEW_LINE>if (mainA...
tree = ClassFileTree.fromJar(jarFile);
136,478
private void parallelizationReplacement(StructuredGraph graph, InductionVariable inductionVar, int loopIndex, ValueNode maxIterations, List<IntegerLessThanNode> conditions) throws TornadoCompilationException {<NEW_LINE>if (inductionVar.isConstantInit() && inductionVar.isConstantStride()) {<NEW_LINE>final ConstantNode n...
-> node.equals(oldStride));
95,397
public double[] transformToDoubleValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>int numDocs = projectionBlock.getNumDocs();<NEW_LINE>if (_doubleValuesSV == null || _doubleValuesSV.length < numDocs) {<NEW_LINE>_doubleValuesSV = new double[numDocs];<NEW_LINE>}<NEW_LINE>double[] values = _arguments.get(0).transformT...
0, _doubleValuesSV, 0, numDocs);
1,236,661
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent sourcePermanent = source.getSourcePermanentOrLKI(game);<NEW_LINE>if (sourcePermanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent attachedTo = game.getPermanentOrLKIBattlefield(sourcePermanent.getAttachedTo());<NEW_LINE>if (attached...
permanent.sacrifice(source, game);
1,551,503
private CharSequence createCollapsedString(@NonNull CharSequence text, int start, int end) {<NEW_LINE>final SpannableStringBuilder builder = new SpannableStringBuilder(text, start, end);<NEW_LINE>// NB! each table row is represented as a space character and new-line (so length=2) no<NEW_LINE>// matter how many characte...
fullText = createFullText(text, builder);
682,948
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String namespaceName, String topicName, 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."));<NEW...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
460,359
// [END solution_printer]<NEW_LINE>public static void main(String[] args) throws Exception {<NEW_LINE>Loader.loadNativeLibraries();<NEW_LINE>// Instantiate the data problem.<NEW_LINE>// [START data]<NEW_LINE>final DataModel data = new DataModel();<NEW_LINE>// [END data]<NEW_LINE>// Create Routing Index Manager<NEW_LINE...
data.vehicleCapacities, true, "Capacity");
830,397
private void handleFailedDownload(Downloader downloader) {<NEW_LINE>DownloadStatus status = downloader.getResult();<NEW_LINE>final int type = status.getFeedfileType();<NEW_LINE>if (!status.isCancelled()) {<NEW_LINE>if (status.getReason() == DownloadError.ERROR_UNAUTHORIZED) {<NEW_LINE>notificationManager.postAuthentica...
getFeedItemFromId(status.getFeedfileId());
211,495
public CloseableImage decode(final EncodedImage encodedImage, int length, QualityInfo qualityInfo, ImageDecodeOptions options) {<NEW_LINE>InputStream is = encodedImage.getInputStream();<NEW_LINE>try {<NEW_LINE>ByteArrayOutputStream out = new ByteArrayOutputStream();<NEW_LINE>GifMetadataDecoder decoder = GifMetadataDeco...
MovieFrame[decoder.getFrameCount()];
206,083
public void prettyPrintParameter(Concrete.Parameter parameter) {<NEW_LINE>if (parameter instanceof Concrete.NameParameter) {<NEW_LINE>Referable referable = ((Concrete.NameParameter) parameter).getReferable();<NEW_LINE>String name = referable == null ? null : referable.textRepresentation();<NEW_LINE>if (name == null) {<...
(Concrete.Expression.PREC));
1,041,987
public boolean onContextItemSelected(MenuItem item) {<NEW_LINE>if (selectedUrl == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final int itemId = item.getItemId();<NEW_LINE>if (itemId == R.id.open_in_browser_item) {<NEW_LINE>IntentUtils.openInBrowser(getContext(), selectedUrl);<NEW_LINE>} else if (itemId == R.id....
shareLink(getContext(), selectedUrl);
1,632,658
final GetSMSAttributesResult executeGetSMSAttributes(GetSMSAttributesRequest getSMSAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSMSAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,168,201
private void loadNode827() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditHistoryEventUpdateEventType_Filter, new QualifiedName(0, "Filter"), new LocalizedText("en", "Filter"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), ...
.expanded(), true));
1,523,861
public Long branchToNewProject(Long roid, String projectName, String comment, Boolean sync) throws UserException, ServerException {<NEW_LINE>requireRealUserAuthentication();<NEW_LINE>DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.POSSIBLY_WRITE);<NEW_LINE>try {<NEW_LINE>BranchToNewPr...
userUsername, getAuthorization(), action);
1,458,030
public ClassElement newClassElement(@NonNull ClassNode classNode, @NonNull AnnotationMetadata annotationMetadata) {<NEW_LINE>if (classNode.isArray()) {<NEW_LINE><MASK><NEW_LINE>ClassElement componentElement = newClassElement(componentType, annotationMetadata);<NEW_LINE>return componentElement.toArray();<NEW_LINE>} else...
ClassNode componentType = classNode.getComponentType();
1,539,329
private Object executeScheduledJob(final ProceedingJoinPoint pjp, final String type) throws Throwable {<NEW_LINE>addTypeToStatCounter(type);<NEW_LINE>JobExecutingData data = new JobExecutingData(type, statCounter.count(type));<NEW_LINE>String id = buildId(type, data.getProcessingThread());<NEW_LINE>events.active(id, da...
valueOf(r.nextLong());
449,777
private StringBuilder addPythonPathJvmArgument(StringBuilder jvmArguments) {<NEW_LINE>jvmArguments.append(" -Dpython.path=");<NEW_LINE>jvmArguments.append(new File(baseDirectory.getFile(), "lib").getAbsolutePath());<NEW_LINE>String pythonPath = System.getenv().get("PYTHONPATH");<NEW_LINE>if (pythonPath != null) {<NEW_L...
getenv().get("PYTHONHOME");
320,660
public static List<Shot> search(String query, @SortOrder String sort, int page) {<NEW_LINE>String html = null;<NEW_LINE>// e.g https://dribbble.com/search?q=material+design&page=7&per_page=12<NEW_LINE>HttpUrl url = new HttpUrl.Builder().scheme("https").host("dribbble.com").addPathSegment("search").addQueryParameter("q"...
shot = parseShot(element, dateFormat);
724,695
private Attribute parseAttribute() {<NEW_LINE>final int attrNSIdx = getLEWord(mParserOffset);<NEW_LINE>final int attrNameIdx = getLEWord(mParserOffset + (1 * WORD_SIZE));<NEW_LINE>final int attrValueIdx = getLEWord(<MASK><NEW_LINE>final int attrType = getLEWord(mParserOffset + (3 * WORD_SIZE));<NEW_LINE>final int attrD...
mParserOffset + (2 * WORD_SIZE));
1,646,778
final UpdatePatchBaselineResult executeUpdatePatchBaseline(UpdatePatchBaselineRequest updatePatchBaselineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePatchBaselineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
351,749
public <T21> Builder22<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> add(T21 e21) {<NEW_LINE>current = Tuples.of(current.get(0), current.get(1), current.get(2), current.get(3), current.get(4), current.get(5), current.get(6), current.get(7), current.get(8), current.g...
.get(20), e21);
350,428
private boolean verifyMagicChecksumAndDecryptPage(final ByteBuffer buffer, final int intId, final long pageIndex) {<NEW_LINE>assert buffer.order() == ByteOrder.nativeOrder();<NEW_LINE>buffer.position(MAGIC_NUMBER_OFFSET);<NEW_LINE>final long magicNumber = OLongSerializer.INSTANCE.deserializeFromByteBufferObject(buffer)...
(int) crc32.getValue();
1,044,297
protected void innerCommitOneShardTrx(String group, IConnection conn) throws SQLException {<NEW_LINE>try (Statement stmt = conn.createStatement()) {<NEW_LINE>String xid = getXid(group, conn, shareReadView);<NEW_LINE>if (XConfig.GALAXY_X_PROTOCOL) {<NEW_LINE>try {<NEW_LINE>// Back to two phase XA with TSO.<NEW_LINE>stmt...
stmt.execute("XA ROLLBACK " + xid);
999,033
public void outputJoinSet(final IBuffer<IBindingSet> outputBuffer) {<NEW_LINE>try {<NEW_LINE>@SuppressWarnings({ "rawtypes", "unchecked" })<NEW_LINE>final Constant t = askVar == null ? null : new Constant<MASK><NEW_LINE>final JVMHashIndex rightSolutions = getRightSolutions();<NEW_LINE>final IVariable<?>[] selected = ge...
(XSDBooleanIV.valueOf(true));
22,314
public static void main(String[] args) throws IOException, GitAPIException {<NEW_LINE>try (final Repository repo = CookbookHelper.openJGitCookbookRepository()) {<NEW_LINE>try (final Git git = new Git(repo)) {<NEW_LINE>final String testFile = "README.md";<NEW_LINE>// Modify the file<NEW_LINE>FileUtils.write(new File(tes...
("Modified files after assume-changed: " + getModifiedFiles(git));
1,524,294
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View v = inflater.inflate(R.layout.tab_about, container, false);<NEW_LINE>View changelogView = v.findViewById(R.id.changelogView);<NEW_LINE>View licensesView = v.findViewById(R.id.licensesView);<NEW_LIN...
R.string.module_support)));
48,179
public com.amazonaws.services.memorydb.model.InvalidUserStateException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.memorydb.model.InvalidUserStateException invalidUserStateException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.get...
memorydb.model.InvalidUserStateException(null);
668,423
public static OutputStream openForWriting(Form form, ScopedFile file) throws IOException {<NEW_LINE>switch(file.getScope()) {<NEW_LINE>case Asset:<NEW_LINE>throw new IOException("Assets are read-only.");<NEW_LINE>case App:<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {<NEW_LINE>return new FileOutputS...
final ContentValues values = new ContentValues();
368,407
int runCmd(CommandLine cmdLine) throws Exception {<NEW_LINE>RegenerateInterleavedStorageIndexFileCommand cmd = new RegenerateInterleavedStorageIndexFileCommand();<NEW_LINE>RegenerateInterleavedStorageIndexFileCommand.RISIFFlags flags = new RegenerateInterleavedStorageIndexFileCommand.RISIFFlags();<NEW_LINE>List<Long> l...
collect(Collectors.toList());
654,655
protected void runTest() throws Throwable {<NEW_LINE>JFrame shutDown;<NEW_LINE>try {<NEW_LINE>shutDown = new JFrame("Shutting down NetBeans...");<NEW_LINE>shutDown.setBounds(new Rectangle(-100, -100, 50, 50));<NEW_LINE>shutDown.setVisible(true);<NEW_LINE>} catch (HeadlessException ex) {<NEW_LINE>shutDown = null;<NEW_LI...
System.setProperty("netbeans.close.no.exit", "true");
1,263,052
final CancelEnvironmentDeploymentResult executeCancelEnvironmentDeployment(CancelEnvironmentDeploymentRequest cancelEnvironmentDeploymentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelEnvironmentDeploymentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Proton");
921,531
public static void takeSignature(IMethodResult result, String imgFormat, Bitmap bitmap, String filePath, int penColor, int bgColor) {<NEW_LINE>Logger.D(TAG, "takeSignature+");<NEW_LINE>try {<NEW_LINE>String outputFilePath;<NEW_LINE>if (imgFormat.equals("jpg")) {<NEW_LINE>outputFilePath = saveJpg(bitmap, filePath);<NEW_...
bitmap, filePath, penColor, bgColor);
689,834
private SqlOptimizer createOptimizer(NodeEngine nodeEngine, QueryResultRegistry resultRegistry) {<NEW_LINE>// 1. Resolve class name.<NEW_LINE>String className = System.getProperty(OPTIMIZER_CLASS_PROPERTY_NAME, SQL_MODULE_OPTIMIZER_CLASS);<NEW_LINE>// 2. Get the class.<NEW_LINE>Class clazz;<NEW_LINE>try {<NEW_LINE>claz...
e.getMessage(), e);
1,279,494
private void publishDiagnostics(List<IMarker> markers) {<NEW_LINE>Map<IResource, List<IMarker>> map = markers.stream().collect(Collectors.groupingBy(IMarker::getResource));<NEW_LINE>for (Map.Entry<IResource, List<IMarker>> entry : map.entrySet()) {<NEW_LINE>IResource resource = entry.getKey();<NEW_LINE>if (resource ins...
uri = JDTUtils.getFileURI(file);
1,395,354
private MethodSpec generateConstructor(ClassName appGlideModule, Collection<String> libraryGlideModuleClassNames, Collection<String> excludedGlideModuleClassNames) {<NEW_LINE>MethodSpec.Builder constructorBuilder = MethodSpec.constructorBuilder().addModifiers(Modifier.PUBLIC).addParameter(ParameterSpec.builder(ClassNam...
constructorBuilder.addStatement("appGlideModule = new $T()", appGlideModule);
1,259,699
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final <MASK><NEW_LINE>final Project project = dataContext.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ModulesDependenciesPanel panel;<NEW_LINE>AnalysisScope scope = new AnalysisScope(project);<NEW_LINE>fina...
DataContext dataContext = e.getDataContext();
982,873
private void callothersubr(int num) {<NEW_LINE>if (num == 0) {<NEW_LINE>// end flex<NEW_LINE>isFlex = false;<NEW_LINE>if (flexPoints.size() < 7) {<NEW_LINE>Log.w("PdfBox-Android", "flex without moveTo in font " + fontName + ", glyph " + glyphName + ", command " + commandCount);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// r...
first = flexPoints.get(1);
1,457,118
private static ApiResponseSet<String> addonToSet(AddOn ao, boolean localAddOn) {<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>map.put("id", ao.getId());<NEW_LINE>map.put(<MASK><NEW_LINE>map.put("author", ao.getAuthor());<NEW_LINE>map.put("changes", ao.getChanges());<NEW_LINE>map.put("description", ao.ge...
"name", ao.getName());
1,307,018
public static VirtualFile createTestProjectStructure(String tempName, final Module module, final String rootPath, final Collection<File> filesToDelete, final boolean addProjectRoots) throws Exception {<NEW_LINE>File dir = FileUtil.createTempDirectory(tempName, null, false);<NEW_LINE>filesToDelete.add(dir);<NEW_LINE>fin...
Exception[] exception = { null };
1,783,833
public ApiResponse<Void> createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException {<NEW_LINE>Object localVarPostBody = xmlItem;<NEW_LINE>// verify the required parameter 'xmlItem' is set<NEW_LINE>if (xmlItem == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPa...
throw new ApiException(400, "Missing the required parameter 'xmlItem' when calling createXmlItem");
941,160
protected void doProcess(final ITemplateContext context, final IComment comment, final ICommentStructureHandler structureHandler) {<NEW_LINE>final StandardConditionalCommentUtils.ConditionalCommentParsingResult parsingResult = StandardConditionalCommentUtils.parseConditionalComment(comment);<NEW_LINE>if (parsingResult ...
), parsingResult.getEndExpressionLen());
546,443
public PathFormat unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PathFormat pathFormat = new PathFormat();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (tok...
String currentParentElement = context.getCurrentParentElement();
419,652
final DescribeTapeArchivesResult executeDescribeTapeArchives(DescribeTapeArchivesRequest describeTapeArchivesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTapeArchivesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
456,631
public com.amazonaws.services.simplesystemsmanagement.model.AssociationExecutionDoesNotExistException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.AssociationExecutionDoesNotExistException associationExecutionDoesNotExistExceptio...
simplesystemsmanagement.model.AssociationExecutionDoesNotExistException(null);
1,838,120
private void useMyCategoryName(long id) {<NEW_LINE>Category myCat = dtms<MASK><NEW_LINE>Category resultCat = dtms[RESULT].getCategory(id);<NEW_LINE>if (resultCat != null) {<NEW_LINE>setCategoryName(resultCat, myCat.getName());<NEW_LINE>if (!resultCat.getCategoryPath().equals(myCat.getCategoryPath())) {<NEW_LINE>Categor...
[MY].getCategory(id);
853,570
void filterBoundaries(Relation relation) {<NEW_LINE>if ("boundary".equalsIgnoreCase(writer.getTagValue(relation.getTags(), "type"))) {<NEW_LINE>String boundaryCategory = writer.getTagValue(<MASK><NEW_LINE>if ("administrative".equalsIgnoreCase(boundaryCategory)) {<NEW_LINE>String adminLevelValue = writer.getTagValue(rel...
relation.getTags(), "boundary");
1,822,275
public ExternalSystemExportAudit createESExportAudit(@NonNull final CreateExportAuditRequest request) {<NEW_LINE>final I_ExternalSystem_ExportAudit record = InterfaceWrapperHelper.newInstance(I_ExternalSystem_ExportAudit.class);<NEW_LINE>record.setRecord_ID(request.getTableRecordReference().getRecord_ID());<NEW_LINE>re...
setExportParameters(request.getExportParameters());
1,773,482
protected void executeTask(MergeSplitZipFileTaskParameters taskParameters, ProgressMonitor progressMonitor) throws IOException {<NEW_LINE>if (!zipModel.isSplitArchive()) {<NEW_LINE>ZipException e = new ZipException("archive not a split zip file");<NEW_LINE>progressMonitor.endProgressMonitor(e);<NEW_LINE>throw e;<NEW_LI...
taskParameters.zip4jConfig.getCharset());
63,771
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>messageLabel = new javax.swing.JLabel();<NEW_LINE>toolBarButtonGroup = new javax.swing.ButtonGroup();<NEW_LINE>mainPanel = new javax.swing.JPanel();<NEW_LINE>toolBar = new javax.sw...
java.awt.BorderLayout());
894,424
public DeleteBotLocaleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteBotLocaleResult deleteBotLocaleResult = new DeleteBotLocaleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
class).unmarshall(context));
1,641,216
public static ListRecordingStorageSettingsResponse unmarshall(ListRecordingStorageSettingsResponse listRecordingStorageSettingsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRecordingStorageSettingsResponse.setRequestId(_ctx.stringValue("ListRecordingStorageSettingsResponse.RequestId"));<NEW_LINE>listRecordingStora...
("ListRecordingStorageSettingsResponse.Data[" + i + "].MaxStorageTtl"));
826,909
private static void fixRange(List<Object> paragraphs, String startElement, String endElement) throws Exception {<NEW_LINE>RangeFinder rt = new RangeFinder(startElement, endElement);<NEW_LINE>new TraversalUtil(paragraphs, rt);<NEW_LINE>for (CTBookmark bm : rt.getStarts()) {<NEW_LINE>try {<NEW_LINE>// Can't just remove t...
getClass().getName());
1,204,837
private void build() {<NEW_LINE>if (!buildIndexOnUpdate)<NEW_LINE>return;<NEW_LINE>// tell memory recycler to use current tst's long arrays next time when long array is requested.<NEW_LINE>// note reuse only happens once swap is called and bits are reset<NEW_LINE>TST current = prefixIndexVolatile;<NEW_LINE>if (current ...
estimatedNumberOfNodes, estimatedMaxStringDuplicates, maxOrdinalOfType, memoryRecycle);
148,858
public Dimension preferredLayoutSize(@NotNull final Container container) {<NEW_LINE>final Dimension ps = new Dimension(0, 0);<NEW_LINE>final int componentCount = container.getComponentCount();<NEW_LINE>if (componentCount > 0) {<NEW_LINE>switch(strategy()) {<NEW_LINE>case allPreferred:<NEW_LINE>case fillLast:<NEW_LINE>f...
ps.height, cps.height);
459,987
private static IllegalArgumentException handleExceptionForNewInstance(Exception e, Class<?> clazz) {<NEW_LINE>StringBuilder buf = new StringBuilder("unable to create new instance of class ").append(clazz.getName());<NEW_LINE>ArrayList<String> reasons <MASK><NEW_LINE>if (clazz.isArray()) {<NEW_LINE>reasons.add("because ...
= new ArrayList<String>();
1,674,429
private static int performDeleteOnProject(Project project, List<FileObject> toDelete, ProgressHandle handle, int done) throws IOException {<NEW_LINE>handle.progress(NbBundle.getMessage<MASK><NEW_LINE>ProjectOperations.notifyDeleting(project);<NEW_LINE>handle.progress(++done);<NEW_LINE>for (FileObject f : toDelete) {<NE...
(DefaultSuiteProjectOperationsImplementation.class, "LBL_Progress_Cleaning_Project"));
1,067,334
protected void launchGroovy(final IType runType, final IJavaProject javaProject, final String mode) {<NEW_LINE>try {<NEW_LINE>boolean excludeTestCode = (runType != null && !hasTestAttribute(runType));<NEW_LINE>Map<String, String> launchProperties = createLaunchProperties(runType, javaProject);<NEW_LINE>String launchNam...
workingCopy = findOrCreateLaunchConfig(launchProperties, launchName);
1,548,809
private void demoPlsqlProcedureINParams(Connection conn) throws SQLException {<NEW_LINE>// Create a PLSQL stored procedure with IN parameters.<NEW_LINE>final String PROC_NAME = "ProcINParams";<NEW_LINE>String sql = "CREATE OR REPLACE PROCEDURE " + PROC_NAME + "(num IN NUMBER, name IN VARCHAR2, insertedBy IN VARCHAR2) I...
callStmt.setString(3, PROC_NAME);
1,747,611
final CreateChannelMembershipResult executeCreateChannelMembership(CreateChannelMembershipRequest createChannelMembershipRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createChannelMembershipRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
525,226
public static void rgbToLab_U8(Planar<GrayU8> rgb, Planar<GrayF32> lab) {<NEW_LINE>GrayU8 R = rgb.getBand(0);<NEW_LINE>GrayU8 G = rgb.getBand(1);<NEW_LINE>GrayU8 B = rgb.getBand(2);<NEW_LINE>GrayF32 L_ = lab.getBand(0);<NEW_LINE>GrayF32 A_ = lab.getBand(1);<NEW_LINE>GrayF32 B_ = lab.getBand(2);<NEW_LINE>// CONCURRENT_B...
pow(zr, 1.0 / 3.0f);
343,805
public static DescribeCameraStatisticsResponse unmarshall(DescribeCameraStatisticsResponse describeCameraStatisticsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCameraStatisticsResponse.setRequestId(_ctx.stringValue("DescribeCameraStatisticsResponse.RequestId"));<NEW_LINE>describeCameraStatisticsResponse.setEr...
("DescribeCameraStatisticsResponse.PvStatisticResults[" + i + "].IpcId"));
554,165
private void loadYamlLookup(MappingNode entry, String filename) {<NEW_LINE>String name = null;<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>Set<String> merge = new LinkedHashSet<>();<NEW_LINE>for (NodeTuple tuple : entry.getValue()) {<NEW_LINE>switch(getKeyAsString(tuple, filename)) {<NEW_LINE>case "nam...
), entry, filename, "Invalid lookup specified");
1,461,061
void activate(VisualElement element, Vector pos) {<NEW_LINE>super.activate();<NEW_LINE>this.element = element;<NEW_LINE>this.startPos = raster(pos);<NEW_LINE>setCursorForResizingRect(element, pos);<NEW_LINE>// Get current rectangle attributes.<NEW_LINE>rectX = element.getPos().x;<NEW_LINE>rectY = element.getPos().y;<NE...
get(Keys.RECT_HEIGHT) * SIZE;
774,507
public DeploymentResourceResponse createDeploymentResourceResponse(String deploymentId, String resourceId, String contentType, RestUrlBuilder urlBuilder) {<NEW_LINE>// Create URL's<NEW_LINE>String resourceUrl = urlBuilder.buildUrl(EventRestUrls.URL_DEPLOYMENT_RESOURCE, deploymentId, resourceId);<NEW_LINE>String resourc...
EventRestUrls.URL_DEPLOYMENT_RESOURCE_CONTENT, deploymentId, resourceId);
331,897
/*<NEW_LINE>* Initialize compilation unit encoding.<NEW_LINE>* If we have a project, then get file name corresponding IFile and retrieve its encoding using<NEW_LINE>* new API for encoding.<NEW_LINE>* In case of a class file, then go through project in order to let the possibility to retrieve<NEW_LINE>* a corresponding ...
IJavaProject) javaElement).getModuleDescription();
1,487,918
public void save(File file) throws IOException {<NEW_LINE>PrintStream out = new PrintStream(file, "UTF-8");<NEW_LINE>out.println("font.name=" + fontName);<NEW_LINE>out.println("font.size=" + fontSize);<NEW_LINE>out.println("font.bold=" + bold);<NEW_LINE>out.println("font.italic=" + italic);<NEW_LINE>out.println("font.g...
println(RENDER_TYPE + "=" + renderType);