idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
271,012
public static ListTaskGroupsResponse unmarshall(ListTaskGroupsResponse listTaskGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTaskGroupsResponse.setRequestId(_ctx.stringValue("ListTaskGroupsResponse.RequestId"));<NEW_LINE>listTaskGroupsResponse.setCode(_ctx.stringValue("ListTaskGroupsResponse.Code"));<NEW_LIN...
+ "].TaskIds[" + j + "]"));
134,639
public DescribeScheduleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeScheduleResult describeScheduleResult = new DescribeScheduleResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
163,944
public Set<String> children(String account, String container, BlobPath path) throws URISyntaxException, StorageException {<NEW_LINE>final var blobsBuilder = new HashSet<String>();<NEW_LINE>final Tuple<CloudBlobClient, Supplier<OperationContext>> client = client();<NEW_LINE>final CloudBlobContainer blobContainer = clien...
String keyPath = path.buildAsString();
811,322
public void generateProjectBuildScript(String projectName, InitSettings settings, BuildScriptBuilder buildScriptBuilder) {<NEW_LINE>buildScriptBuilder.repositories().mavenCentral("Use Maven Central for resolving dependencies.");<NEW_LINE>String pluginId = settings.getPackageName() + ".greeting";<NEW_LINE>String pluginC...
null, "id", pluginId, true);
1,761,396
boolean inCatchNullBlock(Location loc) {<NEW_LINE>int pc = loc.getHandle().getPosition();<NEW_LINE>int catchSize = Util.getSizeOfSurroundingTryBlock(classContext.getJavaClass().getConstantPool(), method.<MASK><NEW_LINE>if (catchSize < Integer.MAX_VALUE) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>catchSize = Util.getSi...
getCode(), "java/lang/NullPointerException", pc);
380,244
private static Optional<Path> determineWatchmanTransportPath(ListeningProcessExecutor executor, ImmutableMap<String, String> env, ExecutableFinder exeFinder, Console console, Clock clock, long timeoutMillis) throws IOException, InterruptedException {<NEW_LINE>Optional<Path> watchmanPathOpt = exeFinder.getOptionalExecut...
transportPath = Paths.get(rawSockname);
796,277
private static ORecordHook.RESULT executeFunction(final ODocument iDocument, final OFunction func, ODatabaseDocumentInternal database) {<NEW_LINE>if (func == null)<NEW_LINE>return ORecordHook.RESULT.RECORD_NOT_CHANGED;<NEW_LINE>final OScriptManager scriptManager = database.getSharedContext().getOrientDB().getScriptMana...
ODatabaseDocumentInternal) database, null, null);
1,434,400
public static void recoverSmartCommit(DBCExecutionContext executionContext) {<NEW_LINE>DBPPreferenceStore preferenceStore = executionContext.getDataSource().getContainer().getPreferenceStore();<NEW_LINE>if (preferenceStore.getBoolean(ModelPreferences.TRANSACTIONS_SMART_COMMIT) && preferenceStore.getBoolean(ModelPrefere...
monitor.beginTask("Switch to auto-commit mode", 1);
1,244,181
public Object readFPrimitiveArray(Object array, Class componentType, int len) {<NEW_LINE>if (componentType == double.class) {<NEW_LINE>double[] da = (double[]) array;<NEW_LINE>for (int i = 0; i < da.length; i++) {<NEW_LINE>da[i] = (double) input.readTag(input.readIn());<NEW_LINE>}<NEW_LINE>return da;<NEW_LINE>}<NEW_LIN...
length = Array.getLength(arr);
1,085,026
final UpdateFlowTemplateResult executeUpdateFlowTemplate(UpdateFlowTemplateRequest updateFlowTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFlowTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(updateFlowTemplateRequest));
1,170,282
private void addToHeap(MinHeap heap, Object obj, Expression exp, Context ctx) {<NEW_LINE>if (obj instanceof Sequence) {<NEW_LINE>ComputeStack stack = ctx.getComputeStack();<NEW_LINE>try {<NEW_LINE>Sequence seq = (Sequence) obj;<NEW_LINE>Sequence.Current current = seq.new Current();<NEW_LINE>stack.push(current);<NEW_LIN...
val = exp.calculate(ctx);
1,478,829
private Resource parseJsonElementToresource(String region, JsonNode jsonNode) {<NEW_LINE>Validate.notNull(jsonNode);<NEW_LINE>String imageId = jsonNode.get("imageId").getTextValue();<NEW_LINE>Resource resource = new AWSResource().withId(imageId).withRegion(region).withResourceType(AWSResourceType.IMAGE);<NEW_LINE>Long ...
creationTime = imageIdToCreationTime.get(imageId);
1,086,765
private PaymentDataRequest createPaymentDataRequest(ReadableMap payParams) {<NEW_LINE>final String estimatedTotalPrice = payParams.getString(TOTAL_PRICE);<NEW_LINE>final String <MASK><NEW_LINE>final boolean billingAddressRequired = Converters.getValue(payParams, BILLING_ADDRESS_REQUIRED, false);<NEW_LINE>final boolean ...
currencyCode = payParams.getString(CURRENCY_CODE);
608,209
public Object apply(final Object context, final Options options) throws IOException {<NEW_LINE>if (context == null) {<NEW_LINE>return options.hash("default", "");<NEW_LINE>}<NEW_LINE>String viewName = options.hash("view", "");<NEW_LINE>JsonGenerator generator = null;<NEW_LINE>try {<NEW_LINE>final ObjectWriter writer;<N...
getClassLoader().loadClass(viewName);
1,046,531
public Forwardable<? extends ThingVertex, Order.Asc> branch(GraphManager graphMgr, Vertex<?, ?> fromVertex, Traversal.Parameters params) {<NEW_LINE>assert fromVertex.isThing() && to.props().predicates().isEmpty();<NEW_LINE><MASK><NEW_LINE>Set<Label> toTypes = to.props().types();<NEW_LINE>Forwardable<? extends ThingVert...
ThingVertex role = fromVertex.asThing();
635,208
public static void load() {<NEW_LINE>String pkg = Scanner.cutOutLast(ServiceHandlingProxy.class.getName(), ".");<NEW_LINE>Set<String> classes = new Scanner(pkg).process(ServiceHandlingProxy.class.getClassLoader());<NEW_LINE>Set<String> custom = new Scanner(System.getProperty("scouter.handler")).process();<NEW_LINE>clas...
] m = c.getDeclaredMethods();
1,588,174
private void gwFieldValueInt64V(MethodWriterContext mwc, FieldWriter fieldWriter, int OBJECT, int i, boolean jsonb) {<NEW_LINE>MethodWriter mw = mwc.mw;<NEW_LINE>String format = fieldWriter.getFormat();<NEW_LINE>String classNameType = mwc.classNameType;<NEW_LINE>int FIELD_VALUE = mwc.var(long.class);<NEW_LINE>int WRITE...
visitVarInsn(Opcodes.LLOAD, FIELD_VALUE);
252,745
public void addNoteTextPara(String noteText, String lang) {<NEW_LINE>// eg "en-AU"<NEW_LINE>org.docx4j.dml.ObjectFactory dmlObjectFactory = new org.docx4j.dml.ObjectFactory();<NEW_LINE>CTTextParagraph textparagraph = dmlObjectFactory.createCTTextParagraph();<NEW_LINE>// Create object for endParaRPr<NEW_LINE>CTRegularT...
CTTextCharacterProperties textcharacterproperties = dmlObjectFactory.createCTTextCharacterProperties();
452,971
public static void main(String[] arg) throws IOException {<NEW_LINE>String version = arg[0];<NEW_LINE>String inputFilePath = arg[1];<NEW_LINE>String outputFilePath = arg[2];<NEW_LINE>String inputHighResolutionFilePath = arg[3];<NEW_LINE>String outputHighResolutionFilePath = arg[4];<NEW_LINE>String fullText = String.for...
drawString(text, 84, y);
1,233,110
public static GetAgentIndexRealTimeResponse unmarshall(GetAgentIndexRealTimeResponse getAgentIndexRealTimeResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAgentIndexRealTimeResponse.setRequestId(_ctx.stringValue("GetAgentIndexRealTimeResponse.RequestId"));<NEW_LINE>getAgentIndexRealTimeResponse.setMessage(_ctx.stringV...
rows = _ctx.listMapValue("GetAgentIndexRealTimeResponse.Data.Rows");
874,363
private OCacheEntry allocateNewPage(OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final OCacheEntry rightBucketEntry;<NEW_LINE>final OCacheEntry entryPointCacheEntry = loadPageForWrite(atomicOperation, fileId, ENTRY_POINT_INDEX, false, true);<NEW_LINE>try {<NEW_LINE>final CellBTreeSingleValueEntryPoin...
fileId, pageSize, false, false);
963,516
public JSONObject debugStringInJson(ProfileTreePrinter.PrintLevel level, String nodeLevel) {<NEW_LINE>JSONObject jsonObject = new JSONObject();<NEW_LINE>jsonObject.put("id", nodeLevel);<NEW_LINE>JSONObject title = new JSONObject();<NEW_LINE>if (!id.equals(ProfileTreeBuilder.UNKNOWN_ID)) {<NEW_LINE>title.put("id", id);<...
jsonObject.put("non-child", nonChild);
153,849
public void actionPerformed(java.awt.event.ActionEvent ev) {<NEW_LINE>WindowManager wm = WindowManager.getDefault();<NEW_LINE>MultiViewHandler handler = MultiViews.findMultiViewHandler(wm.getRegistry().getActivated());<NEW_LINE>if (handler != null) {<NEW_LINE>MultiViewPerspective pers = handler.getSelectedPerspective()...
Accessor.DEFAULT.extractDescription(pers);
85,221
public void resetAdapter() {<NEW_LINE>if (UserSubscriptions.hasSubs()) {<NEW_LINE>runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>usedArray = new CaseInsensitiveArrayList(UserSubscriptions.getSubscriptions(MainActivity.this));<NEW_LINE>adapter = new MainPagerAdapter(get...
, usedArray.indexOf(subToDo));
1,058,957
private void buildTransactionNameGraph(Model model, TransactionReport report, String type, String name, String ip) {<NEW_LINE>TransactionType t = report.findOrCreateMachine(ip).findOrCreateType(type);<NEW_LINE>TransactionName transactionName = t.findOrCreateName(name);<NEW_LINE>if (transactionName != null) {<NEW_LINE>S...
, "Duration (ms)", "Count", transactionName));
1,586,704
public void goToPosition() {<NEW_LINE><MASK><NEW_LINE>FocusDialog dialog = new FocusDialog(windowFrame, Translator.get("binary_viewer.go_to.dialog_title"), windowFrame);<NEW_LINE>Container contentPane = dialog.getContentPane();<NEW_LINE>GoToBinaryPanel goToPanel = new GoToBinaryPanel();<NEW_LINE>goToPanel.setCursorPosi...
CodeArea codeArea = binaryComponent.getCodeArea();
1,278,112
private int score(Variable v) {<NEW_LINE>// since these are increasing with distance<NEW_LINE>int variableScore = 100 - v.variableType;<NEW_LINE>int subStringScore = getLongestCommonSubstring(v.name, fParamName).length();<NEW_LINE>// substring scores under 60% are not considered<NEW_LINE>// this prevents marginal match...
= v.isAutoboxingMatch ? 0 : 1;
1,397,265
public GetInvitationsCountResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetInvitationsCountResult getInvitationsCountResult = new GetInvitationsCountResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
1,063,922
private TagElement findTagElementToInsertAfter(List<TagElement> tags, String tagName) {<NEW_LINE>List<String> tagOrder = Arrays.asList(TagElement.TAG_AUTHOR, TagElement.TAG_VERSION, TagElement.TAG_PARAM, TagElement.TAG_RETURN, TagElement.TAG_THROWS, TagElement.TAG_EXCEPTION, TagElement.TAG_SEE, TagElement.TAG_SINCE, Ta...
TagElement.TAG_DEPRECATED, TagElement.TAG_VALUE);
416,811
private void encodeInternal(Object o) {<NEW_LINE>if (o instanceof Map) {<NEW_LINE>encodeMap((Map<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (o instanceof List) {<NEW_LINE>encodeList((List<Object>) o);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (o instanceof String) {<NEW_LINE>encodeString((String) o);<NEW_LINE>return;<...
<String, Object>) o);
999,189
final StartTargetedSentimentDetectionJobResult executeStartTargetedSentimentDetectionJob(StartTargetedSentimentDetectionJobRequest startTargetedSentimentDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startTargetedSentimentDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
702,358
public void init(Analyzer analyzer) throws UserException {<NEW_LINE>// Compute the memory layout for the generated tuple.<NEW_LINE>computeStats(analyzer);<NEW_LINE>// createDefaultSmap(analyzer);<NEW_LINE>// // populate resolvedTupleExprs and outputSmap_<NEW_LINE>// List<SlotDescriptor> sortTupleSlots = info.getSortTup...
(slotExprs.get(i));
210,444
public Cluster readCluster(Reader input, boolean verifySchema) {<NEW_LINE>try {<NEW_LINE>SAXBuilder builder = new SAXBuilder(false);<NEW_LINE>Document doc = builder.build(input);<NEW_LINE>if (verifySchema) {<NEW_LINE>Validator validator = this.schema.newValidator();<NEW_LINE>validator.validate(new JDOMSource(doc));<NEW...
.add(readZone(node));
119,161
public HtmlResponse delete(final EditForm form) {<NEW_LINE>verifyCrudMode(form.crudMode, CrudMode.DETAILS);<NEW_LINE>validate(form, messages -> {<NEW_LINE>}, this::asDetailsHtml);<NEW_LINE>verifyToken(this::asDetailsHtml);<NEW_LINE>final String id = form.id;<NEW_LINE>keyMatchService.getKeyMatch(id).ifPresent(entity -> ...
e)), this::asEditHtml);
1,849,255
protected BigDecimal computeProrataTemporis(FixedAsset fixedAsset) {<NEW_LINE>BigDecimal prorataTemporis = BigDecimal.ONE;<NEW_LINE>if (fixedAsset.getFixedAssetCategory().getIsProrataTemporis() && !fixedAsset.getAcquisitionDate().equals(fixedAsset.getFirstDepreciationDate())) {<NEW_LINE>LocalDate acquisitionDate = fixe...
Month acquisitionMonth = acquisitionDate.getMonth();
155,283
void preInit(XCreateWindowParams params) {<NEW_LINE>target = (Component) params.get(TARGET);<NEW_LINE>windowType = ((Window) target).getType();<NEW_LINE>params.put(REPARENTED, Boolean.valueOf(isOverrideRedirect() || isSimpleWindow()));<NEW_LINE>super.preInit(params);<NEW_LINE>params.putIfNull(BIT_GRAVITY, Integer.value...
()).addDisplayChangedListener(this);
317,971
private static Constraint<?> createRealConstraint(IntegerConstraint c) {<NEW_LINE>if (c.getLeftOperand() instanceof RealComparison) {<NEW_LINE>RealComparison cmp = (RealComparison) c.getLeftOperand();<NEW_LINE>int value = ((Number) c.getRightOperand().getConcreteValue()).intValue();<NEW_LINE>Comparator op = c.getCompar...
> cmp_right = cmp.getRightOperant();
973,830
public DeleteBotAliasResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteBotAliasResult deleteBotAliasResult = new DeleteBotAliasResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
39,709
public void start(Stage stage) throws Exception {<NEW_LINE>new Thread(() -> {<NEW_LINE>try {<NEW_LINE>SVGGlyphLoader.loadGlyphsFont(MainDemo.class.getResourceAsStream("/fonts/icomoon.svg"), "icomoon.svg");<NEW_LINE>} catch (IOException ioExc) {<NEW_LINE>ioExc.printStackTrace();<NEW_LINE>}<NEW_LINE>}).start();<NEW_LINE>...
setGraphic(new SVGGlyph(""));
155,436
private void sort(char[] arr) {<NEW_LINE>int n = arr.length;<NEW_LINE>// The output character array that will have sorted arr<NEW_LINE>char[] output = new char[n];<NEW_LINE>// Create a count array to store count of inidividul<NEW_LINE>// characters and initialize count array as 0<NEW_LINE>int[] count = new int[256];<NE...
0, arr, 0, n);
432,580
public void registerPush(Hashtable meta, boolean noFallback) {<NEW_LINE>Preferences p = Preferences.userNodeForPackage(com.codename1.ui.Component.class);<NEW_LINE>String user = p.get("user", null);<NEW_LINE>Display d = Display.getInstance();<NEW_LINE>if (user == null) {<NEW_LINE>JPanel pnl = new JPanel();<NEW_LINE>JTex...
mainClass = System.getProperty("MainClass");
712,992
public static void dump(ServletContext ctx) {<NEW_LINE>log.config("ServletContext " + ctx.getServletContextName());<NEW_LINE>log.config("- ServerInfo=" + ctx.getServerInfo());<NEW_LINE>if (!CLogMgt.isLevelFiner())<NEW_LINE>return;<NEW_LINE>boolean first = true;<NEW_LINE>Enumeration e = ctx.getInitParameterNames();<NEW_...
"- " + key + " = " + value);
1,594,906
final StopBuildBatchResult executeStopBuildBatch(StopBuildBatchRequest stopBuildBatchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopBuildBatchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
204,445
// snippet-start:[cf.java2.create_stack.main]<NEW_LINE>public static void createCFStack(CloudFormationClient cfClient, String stackName, String roleARN, String location, String key, String value) {<NEW_LINE>try {<NEW_LINE>CloudFormationWaiter waiter = cfClient.waiter();<NEW_LINE>Parameter myParameter = Parameter.builde...
out.println(stackName + " is ready");
1,143,510
private ProcessPreconditionsResolution rejectIfSecurPharmAttributesAreNotOK(final HUEditorRow document) {<NEW_LINE>//<NEW_LINE>// OK if this is not a Pharma product<NEW_LINE>final HUEditorRowAttributes attributes = document.getAttributes();<NEW_LINE>if (!attributes.hasAttribute(AttributeConstants.ATTR_SecurPharmScanned...
.getValueAsString(AttributeConstants.ATTR_SecurPharmScannedStatus));
240,096
private static List<Row> loadData() throws IOException {<NEW_LINE>List<Row> <MASK><NEW_LINE>ClassLoader classLoader = FlinkQuickStart.class.getClassLoader();<NEW_LINE>final URL resource = classLoader.getResource("starbucks-stores-world.csv");<NEW_LINE>try (BufferedReader br = new BufferedReader(new InputStreamReader(re...
rows = new ArrayList<>();
1,660,636
protected void onPause() {<NEW_LINE>super.onPause();<NEW_LINE>mController.deregisterEventHandler(HANDLER_KEY);<NEW_LINE>mPaused = true;<NEW_LINE>mHomeTime.removeCallbacks(mHomeTimeUpdater);<NEW_LINE>if (!Utils.isCalendarPermissionGranted(this, false)) {<NEW_LINE>// If permission is not granted then just return.<NEW_LIN...
Log.d(TAG, "Manifest.permission.WRITE_CALENDAR is not granted");
1,004,557
private JsonVendor toJsonVendor(@NonNull final JsonResponseComposite jsonResponseComposite, @NonNull final String tenantId, @Nullable final String bPartnerBasePath) {<NEW_LINE>final JsonResponseBPartner jsonResponseBPartner = jsonResponseComposite.getBpartner();<NEW_LINE>final String bpartnerMetasfreshId = String.value...
final String bPartnerName = computeBPartnerNameToExport(jsonResponseBPartner);
766,962
public // parameters: theta and apex. Feel free to modify according to taste.<NEW_LINE>float updateVertices(Engine engine, float t, float rigidity, CurlStyle style) {<NEW_LINE>t = Math.min(1.0f, Math.max(0.0f, t));<NEW_LINE>rigidity = Math.min(1.0f, Math.max(0.0f, rigidity));<NEW_LINE>double rigidAngle = 0;<NEW_LINE>sw...
Math.pow(t1, 3.0);
1,096,309
public SQLName name() {<NEW_LINE>SQLName name = super.name();<NEW_LINE>if (lexer.token() == Token.MONKEYS_AT) {<NEW_LINE>lexer.nextToken();<NEW_LINE>if (lexer.token() != Token.IDENTIFIER) {<NEW_LINE>throw new ParserException("syntax error, expect identifier, but " + lexer.token() + ", " + lexer.info());<NEW_LINE>}<NEW_...
String link = lexer.stringVal();
395,109
private static String tokenStringOf(Token t) {<NEW_LINE>if (ttypes == null) {<NEW_LINE>java.util.HashMap map = <MASK><NEW_LINE>java.lang.reflect.Field[] fields = GroovyTokenTypes.class.getDeclaredFields();<NEW_LINE>for (int i = 0; i < fields.length; i++) {<NEW_LINE>if (fields[i].getType() != int.class)<NEW_LINE>continu...
new java.util.HashMap();
1,245,388
public void send(final MailMessage message) throws MailException {<NEW_LINE>final EmailAccount emailAccount = mailAccountService.getDefaultSender();<NEW_LINE>if (emailAccount == null) {<NEW_LINE>super.send(message);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Preconditions.checkNotNull(message, "mail message can't be null");<...
references = new LinkedHashSet<>();
772,185
public void createAt(final File location) throws Exception {<NEW_LINE>if (location.exists()) {<NEW_LINE>if (!FileUtils.deleteQuietly(location)) {<NEW_LINE>throw new IOException("Data already exists at location and it could not be deleted: " + location);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>java.nio.file.Path normalizedLocati...
toPath().normalize());
1,396,347
public static Map<String, String> parseTagAttributes(StartElement start) {<NEW_LINE>// Using a map to deduplicate xmlns declarations on the attributes.<NEW_LINE>Map<String, String> attributeMap = new LinkedHashMap<>();<NEW_LINE>Iterator<Attribute> attributes = iterateAttributesFrom(start);<NEW_LINE>while (attributes.ha...
Attribute attribute = attributes.next();
203,898
protected void processClassLevelAnnotations(ConstPool constantPool, ClassPool pool, Object object) throws NotFoundException {<NEW_LINE>if (AnnotationsAttribute.class.isAssignableFrom(object.getClass())) {<NEW_LINE>AnnotationsAttribute attr = (AnnotationsAttribute) object;<NEW_LINE>Annotation[] items = attr.getAnnotatio...
prepareNamedQueries(constantPool, pool, namedQueryArray);
1,825,005
public void sendText(String partialMessage, boolean isLast) throws IOException {<NEW_LINE>assertMessageNotNull(partialMessage);<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("sendText({},{})", TextUtils.hint(partialMessage), isLast);<NEW_LINE>}<NEW_LINE>Frame frame;<NEW_LINE>switch(messageType) {<NEW_LINE>cas...
= new Frame(OpCode.CONTINUATION);
1,154,985
public JsonResult execute() {<NEW_LINE>String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID);<NEW_LINE>String feedbackSessionName = getNonNullRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);<NEW_LINE>FeedbackSessionAttributes feedbackSession = logic.getFeedbackSessionFromRecycleBin(feedb...
FeedbackSessionData output = new FeedbackSessionData(restoredFs);
443,857
public boolean saveModel(IArchimateModel model) throws IOException {<NEW_LINE>// Check integrity<NEW_LINE><MASK><NEW_LINE>if (!checker.checkAll()) {<NEW_LINE>if (PlatformUI.isWorkbenchRunning()) {<NEW_LINE>checker.showErrorDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());<NEW_LINE>}<NEW_LINE>retu...
ModelChecker checker = new ModelChecker(model);
1,206,933
public static String renameFile(File from_file, File to_file, boolean fail_on_existing_directory, FileFilter file_filter, ProgressListener pl) {<NEW_LINE>FileTime from_last_modified = null;<NEW_LINE>FileTime from_last_access = null;<NEW_LINE>FileTime from_created = null;<NEW_LINE>try {<NEW_LINE>BasicFileAttributeView f...
toPath(), BasicFileAttributeView.class);
227,994
private Bitmap createSnapshot(int x, int y, int w, int h) {<NEW_LINE>int[] bitmapBuffer = new int[w * h];<NEW_LINE>int[] bitmapSource = new int[w * h];<NEW_LINE>IntBuffer intBuffer = IntBuffer.wrap(bitmapBuffer);<NEW_LINE>intBuffer.position(0);<NEW_LINE>try {<NEW_LINE>glReadPixels(x, y, w, h, GL_RGBA, GL_UNSIGNED_BYTE,...
h - i - 1) * w;
430,947
public RFuture<Map<String, String>> infoAsync(InfoSection section) {<NEW_LINE>if (section == InfoSection.ALL) {<NEW_LINE>return executeAsync(null, StringCodec.INSTANCE, -1, RedisCommands.INFO_ALL);<NEW_LINE>} else if (section == InfoSection.DEFAULT) {<NEW_LINE>return executeAsync(null, StringCodec.INSTANCE, -1, RedisCo...
, -1, RedisCommands.INFO_CLUSTER);
720,467
public void copyTo(ShortBuffer target) throws CudaException {<NEW_LINE>final int fromIndex = target.position();<NEW_LINE>final <MASK><NEW_LINE>lengthCheck(toIndex - fromIndex, 1);<NEW_LINE>if (target.isDirect()) {<NEW_LINE>// <br/><NEW_LINE>// <br/><NEW_LINE>copyToHostDirect(// <br/><NEW_LINE>deviceId, getAddress(), ta...
int toIndex = target.limit();
1,512,806
private String printTag(TagElement tag) {<NEW_LINE>TagKind kind = tag.getTagKind();<NEW_LINE>// Remove @param tags for parameterized types, such as "@param <T> the type".<NEW_LINE>// TODO(tball): update when (if) Xcode supports Objective C type parameter documenting.<NEW_LINE>if (kind == TagKind.PARAM && hasTypeParam(t...
printTagFragments(tag.getFragments());
1,697,518
public static void generateMov(final ITranslationEnvironment environment, final long baseOffset, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>Preconditions.checkNotNull(environment, "Error: Argument environment can't be null");<NEW_LINE><MASK><...
Preconditions.checkNotNull(instruction, "Error: Argument instruction can't be null");
1,300,417
private void registerHandlers(RaftServerProtocol protocol) {<NEW_LINE>protocol.registerOpenSessionHandler(request -> runOnContextIfReady(() -> role.onOpenSession(request), OpenSessionResponse::builder));<NEW_LINE>protocol.registerCloseSessionHandler(request -> runOnContextIfReady(() -> role.onCloseSession(request), Clo...
role.onLeave(request)));
1,191,428
private void refreshConsumerMaxRate(String consumerId) {<NEW_LINE>logger.info("Refreshing max rate of {}", consumerId);<NEW_LINE>String consumerMaxRatePath = registryPaths.consumerMaxRatePath(consumerId);<NEW_LINE>zookeeper.getNodeData(consumerMaxRatePath).map(consumerMaxRatesDecoder::decode).ifPresent(maxRates -> {<NE...
consumerId, cleanedSize, decodedSize - cleanedSize);
1,003,294
public static CreateBatchJobsResponse unmarshall(CreateBatchJobsResponse createBatchJobsResponse, UnmarshallerContext _ctx) {<NEW_LINE>createBatchJobsResponse.setRequestId(_ctx.stringValue("CreateBatchJobsResponse.RequestId"));<NEW_LINE>createBatchJobsResponse.setCode(_ctx.stringValue("CreateBatchJobsResponse.Code"));<...
("CreateBatchJobsResponse.BatchJob.Strategy.WorkingTime[" + i + "].BeginTime"));
433,823
public WebsiteCaSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>WebsiteCaSummary websiteCaSummary = new WebsiteCaSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
1,234,906
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.ide.core.io.ConnectionPoint#loadState(com.aptana.ide.core.io.epl.IMemento)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void loadState(IMemento memento) {<NEW_LINE>super.loadState(memento);<NEW_LINE>IMemento child = memento.getChild(ELEMENT_HOST);<NEW_LINE>if ...
child = memento.getChild(ELEMENT_TIMEZONE);
995,286
public void scan(int index, GradPair left, GradPair right) {<NEW_LINE>if (numClass == 2 || multiClassMultiTree) {<NEW_LINE>((BinaryGradPair) left).plusBy(gradients[index], hessians[index]);<NEW_LINE>((BinaryGradPair) right).subtractBy(gradients[index], hessians[index]);<NEW_LINE>} else if (!fullHessian) {<NEW_LINE>Mult...
] -= gradients[gradOffset + i];
1,171,694
/*<NEW_LINE>* Execute same test as above only make execution concurrent<NEW_LINE>*/<NEW_LINE>@Test<NEW_LINE>public void testConcurrentExecute() throws Exception {<NEW_LINE>Log.info(c, "Begin concurrent Persistent test", "affirm test begin");<NEW_LINE>ExecutorService executor = null;<NEW_LINE>try {<NEW_LINE>executor = E...
CallableServlet callServ1 = new CallableServlet(server1);
1,211,306
public BackendEntry writeVertexLabel(VertexLabel vertexLabel) {<NEW_LINE>TableBackendEntry entry = newBackendEntry(vertexLabel);<NEW_LINE>entry.column(HugeKeys.ID, vertexLabel.id().asLong());<NEW_LINE>entry.column(HugeKeys.NAME, vertexLabel.name());<NEW_LINE>entry.column(HugeKeys.ID_STRATEGY, vertexLabel.idStrategy().c...
(vertexLabel.primaryKeys()));
271,799
private Size applyPreviewCropping(@NonNull Size referenceSize, @NonNull PointF referencePoint) {<NEW_LINE>Size previewStreamSize = this.previewStreamSize;<NEW_LINE>Size previewSurfaceSize = referenceSize;<NEW_LINE>int referenceWidth = previewSurfaceSize.getWidth();<NEW_LINE>int referenceHeight = previewSurfaceSize.getH...
() / previewStreamAspectRatio.toFloat();
177,243
protected void paint(Graphics2D g, boolean border, boolean area) {<NEW_LINE>if (radius == 0)<NEW_LINE>return;<NEW_LINE>Zone zone = MapTool.getCampaign().getZone(zoneId);<NEW_LINE>if (zone == null)<NEW_LINE>return;<NEW_LINE>// Find the proper distance<NEW_LINE>int gridSize = zone<MASK><NEW_LINE>for (int y = 0; y < radiu...
.getGrid().getSize();
765,698
public static String decodeToken(String token) throws S3Exception {<NEW_LINE>if (token != null && token.length() > 0) {<NEW_LINE>int indexSeparator = token.indexOf(CONTINUATION_TOKEN_SEPARATOR);<NEW_LINE>if (indexSeparator == -1) {<NEW_LINE>throw new S3Exception(token, S3ErrorCode.INVALID_CONTINUATION_TOKEN);<NEW_LINE>...
e, token, S3ErrorCode.INVALID_CONTINUATION_TOKEN);
577,806
private void handleArrayIteration(EnhancedForStatement node) {<NEW_LINE>Expression expression = node.getExpression();<NEW_LINE>ArrayType expressionType = (ArrayType) expression.getTypeMirror();<NEW_LINE>VariableElement loopVariable = node.getParameter().getVariableElement();<NEW_LINE>TypeMirror componentType = expressi...
= new VariableDeclarationStatement(bufferVariable, bufferAccess);
1,669,372
public void cleanupEvents(String last_id, Table table, String token, boolean includeAutomaticEvents) {<NEW_LINE>final String tableName = table.getName();<NEW_LINE>try {<NEW_LINE>final SQLiteDatabase db = mDb.getWritableDatabase();<NEW_LINE>StringBuffer deleteQuery = new StringBuffer("_id <= " + last_id + " AND " + KEY_...
"Unknown exception. Could not clean sent Mixpanel records from " + tableName + ".Re-initializing database.", e);
1,592,283
final DescribeDomainChangeProgressResult executeDescribeDomainChangeProgress(DescribeDomainChangeProgressRequest describeDomainChangeProgressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainChangeProgressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
invoke(request, responseHandler, executionContext);
299,613
public KafkaStreamService.Stream of(Class<?> clientId, Class<?> groupId, Topology topology, Properties properties, Logger logger) {<NEW_LINE>properties.putAll(clientConfig.getProperties());<NEW_LINE>if (this.streamConfig.getProperties() != null) {<NEW_LINE>properties.<MASK><NEW_LINE>}<NEW_LINE>properties.put(CommonClie...
putAll(streamConfig.getProperties());
993,724
@Produces(MediaType.SERVER_SENT_EVENTS)<NEW_LINE>public void startDomain(@PathParam("id") final String id, @Context SseEventSink domainSink, @Context Sse sse) {<NEW_LINE>new Thread(() -> {<NEW_LINE>try {<NEW_LINE>domainSink.send(sse.newEventBuilder().name("domain-progress").data(String.class, "starting domain " + id <M...
+ " ...").build());
1,004,656
private static GapiPaths findTools() {<NEW_LINE>return ImmutableList.<Supplier<File>>of(() -> {<NEW_LINE>String gapidRoot = gapidPath.get();<NEW_LINE>return "".equals(gapidRoot) <MASK><NEW_LINE>}, () -> {<NEW_LINE>String gapidRoot = System.getenv(GAPID_ROOT_ENV_VAR);<NEW_LINE>return gapidRoot != null && gapidRoot.lengt...
? null : new File(gapidRoot);
69,612
public List<String> findPermissionsInSolrOnly() throws SearchException {<NEW_LINE>List<String> permissionInSolrOnly = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>int rows = 100;<NEW_LINE>SolrQuery q = (new SolrQuery(SearchFields.DEFINITION_POINT_DVOBJECT_ID + ":*")).setRows(rows).setSort(SortClause.asc(SearchFields.ID))...
rsp = solrServer.query(q);
705,227
final DeleteAccessPointForObjectLambdaResult executeDeleteAccessPointForObjectLambda(DeleteAccessPointForObjectLambdaRequest deleteAccessPointForObjectLambdaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAccessPointForObjectLambdaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
859,093
public static ListCustomPersonsResponse unmarshall(ListCustomPersonsResponse listCustomPersonsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCustomPersonsResponse.setRequestId(_ctx.stringValue("ListCustomPersonsResponse.RequestId"));<NEW_LINE>List<Category> categories = new ArrayList<Category>();<NEW_LINE>for (int ...
+ "].Persons[" + j + "].PersonDescription"));
1,356,567
final DeleteDevEndpointResult executeDeleteDevEndpoint(DeleteDevEndpointRequest deleteDevEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDevEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDevEndpoint");
570,683
private List<Cache> enforceGeoRedirect(final Track track, final DeliveryService ds, final String clientIp, final Geolocation queriedClientLocation, final IPVersions requestVersion) {<NEW_LINE>final String urlType = ds.getGeoRedirectUrlType();<NEW_LINE>track.setResult(ResultType.GEO_REDIRECT);<NEW_LINE>if ("NOT_DS_URL"....
LOGGER.error("cannot find a geo location for the client: " + clientIp);
880,049
public void onUpdate() {<NEW_LINE>// wait for timer<NEW_LINE>if (timer > 0) {<NEW_LINE>timer--;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check screen<NEW_LINE>if (MC.currentScreen instanceof HandledScreen && !(MC.currentScreen instanceof InventoryScreen))<NEW_LINE>return;<NEW_LINE>ClientPlayerEntity player = MC.player;<...
.getSlotType().getEntitySlotId();
822,632
private <T extends Event & CancelLogging> void testEvent(CommandSender receiver, Player target, T event, boolean stacktraceMode) throws CommandPermissionsException {<NEW_LINE>boolean isConsole = receiver instanceof ConsoleCommandSender;<NEW_LINE>if (!receiver.equals(target)) {<NEW_LINE>if (!isConsole) {<NEW_LINE>log.in...
event.getCancels(), start);
61,687
public okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/po...
localVarHeaderParams.put("Accept", localVarAccept);
995,286
public void scan(int index, GradPair left, GradPair right) {<NEW_LINE>if (numClass == 2 || multiClassMultiTree) {<NEW_LINE>((BinaryGradPair) left).plusBy(gradients[index], hessians[index]);<NEW_LINE>((BinaryGradPair) right).subtractBy(gradients[index], hessians[index]);<NEW_LINE>} else if (!fullHessian) {<NEW_LINE>Mult...
] leftGrad = leftMulti.getGrad();
578,792
private void showView(SettingsView aView) {<NEW_LINE>if (mCurrentView != null) {<NEW_LINE>mCurrentView.onHidden();<NEW_LINE>this.removeView(mCurrentView);<NEW_LINE>}<NEW_LINE>mCurrentView = aView;<NEW_LINE>if (mCurrentView != null) {<NEW_LINE>mOpenDialog = aView.getType();<NEW_LINE>Point viewDimensions = mCurrentView.g...
convertDpToPixel(getContext(), mViewMarginH);
1,814,336
private SslPolicy createSslPolicy(SslPolicyConfig policyConfig) {<NEW_LINE>Path baseDirectory = config.get(policyConfig.base_directory);<NEW_LINE>Path revokedCertificatesDir = config.get(policyConfig.revoked_dir);<NEW_LINE>if (Files.notExists(baseDirectory)) {<NEW_LINE>throw new IllegalArgumentException(format("Base di...
config.get(policyConfig.verify_hostname);
81,773
public Texture validateMaskTexture(MaskData maskData, boolean canScale) {<NEW_LINE>int pad = canScale ? 1 : 0;<NEW_LINE>int needW = maskData.getWidth() + pad + pad;<NEW_LINE>int needH = maskData.getHeight() + pad + pad;<NEW_LINE>int texW = 0, texH = 0;<NEW_LINE>if (maskTex != null) {<NEW_LINE>maskTex.lock();<NEW_LINE>i...
clearBuffer = ByteBuffer.allocate(newTexW);
712,052
public static PDShading createLinearGradient(PdfBoxFastOutputDevice od, AffineTransform transform, FSLinearGradient gradient, Shape bounds) {<NEW_LINE>PDShadingType2 shading = new PDShadingType2(new COSDictionary());<NEW_LINE>shading.setShadingType(PDShading.SHADING_TYPE2);<NEW_LINE>shading.setColorSpace(PDDeviceRGB.IN...
add(new COSFloat(startY));
697,203
private StateMachineInstance createMachineInstance(String stateMachineName, String tenantId, String businessKey, Map<String, Object> startParams) {<NEW_LINE>StateMachine stateMachine = stateMachineConfig.getStateMachineRepository().getStateMachine(stateMachineName, tenantId);<NEW_LINE>if (stateMachine == null) {<NEW_LI...
startParams.remove(DomainConstants.VAR_NAME_PARENT_ID);
1,283,801
public WatchKey register(final Watchable folder, final WatchEvent.Kind<?>[] events, final WatchEvent.Modifier... modifiers) throws IOException {<NEW_LINE>if (log.isInfoEnabled()) {<NEW_LINE>log.info(String.format("Register file %s for events %s", folder, Arrays.toString(events)));<NEW_LINE>}<NEW_LINE>final Pointer[] va...
()).getPointer() };
1,831,712
public void deserialize(final ODocument document, final BytesContainer bytes) {<NEW_LINE>final String className = readString(bytes);<NEW_LINE>if (className.length() != 0)<NEW_LINE>ODocumentInternal.fillClassNameIfNeeded(document, className);<NEW_LINE>int last = 0;<NEW_LINE>String fieldName;<NEW_LINE>int valuePos;<NEW_L...
type = readOType(bytes, false);
1,098,153
public static ExecutionOptions createFromObject(final Object obj) {<NEW_LINE>if (obj == null || !(obj instanceof Map)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<String, Object> optionsMap = (Map<String, Object>) obj;<NEW_LINE>final TypedMapWrapper<String, Object> wrapper = new TypedMapWrapper<>(optionsMap);...
, String>getMap(FLOW_PARAMETERS));
1,297,767
public void marshall(UpdateStackRequest updateStackRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateStackRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateStackRequest.getDisplayN...
updateStackRequest.getApplicationSettings(), APPLICATIONSETTINGS_BINDING);
1,770,276
public void show() {<NEW_LINE>if (debugMode) {<NEW_LINE>MessageHandler.printToLogFile("CheckDialog: show: Goto next Error");<NEW_LINE>}<NEW_LINE>dialog.setEnabled(false);<NEW_LINE>dialog.setEnabled(true);<NEW_LINE>if (dialogX < 0 || dialogY < 0) {<NEW_LINE>Dimension screenSize = Toolkit<MASK><NEW_LINE>Dimension frameSi...
.getDefaultToolkit().getScreenSize();