idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
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, midY, midZ)...
bb.maxZ).next();
54,490
public void fixClassExtSort(ClassCallExpression classCall, Concrete.SourceNode sourceNode) {<NEW_LINE>ClassDefinition classDef = classCall.getDefinition();<NEW_LINE>Levels idLevels = classDef.makeIdLevels();<NEW_LINE>Expression thisExpr = new ReferenceExpression(ExpressionFactory.parameter("this", new ClassCallExpressi...
classCall.setSort(Sort.PROP);
972,707
final CreateJobResult executeCreateJob(CreateJobRequest createJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
endClientExecution(awsRequestMetrics, request, response);
488,971
public void sendUpdate() {<NEW_LINE>synchronized (this) {<NEW_LINE>if (!connected)<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>out.writeInt(ACCEL);<NEW_LINE>out.writeFloat(Gdx.input.getAccelerometerX());<NEW_LINE>out.writeFloat(<MASK><NEW_LINE>out.writeFloat(Gdx.input.getAccelerometerZ());<NEW_LINE>out.writeInt...
Gdx.input.getAccelerometerY());
112,659
private void publishProgress(BackupTaskInfo taskInfo, int current, int goal) {<NEW_LINE>if (System.currentTimeMillis() - taskInfo.lastProgressUpdate < PROGRESS_NOTIFICATION_UPDATE_CD)<NEW_LINE>return;<NEW_LINE>taskInfo.lastProgressUpdate = System.currentTimeMillis();<NEW_LINE>PendingIntent cancelTaskPendingIntent = tas...
, cancelTaskPendingIntent)).build();
581,175
private void deserializeStubList(StubBase<?> root, ObjectStubSerializer rootType, StubInputStream inputStream, FileLocalStringEnumerator storage, IntEnumerator serializerLocalEnumerator) throws IOException, SerializerNotFoundException {<NEW_LINE>int stubCount = DataInputOutputUtil.readINT(inputStream);<NEW_LINE>LazyStu...
[] serializedStubs = readByteArray(inputStream);
1,383,997
protected Iterable<OIdentifiable> results(OFromClause target, OExpression[] args, OCommandContext ctx, Object rightValue) {<NEW_LINE>OIndex oIndex = searchForIndex(target, args);<NEW_LINE>if (oIndex == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<String, Object> queryParams = new HashMap<>();<NEW_LINE>queryPar...
add(oIndex.getName());
589,992
public void heartbeat() {<NEW_LINE>AtomicInteger removedSessions = new AtomicInteger(0);<NEW_LINE>mActiveRegisterContexts.entrySet().removeIf((entry) -> {<NEW_LINE>WorkerRegisterContext context = entry.getValue();<NEW_LINE>final long clockTime = mClock.millis();<NEW_LINE>final long lastActivityTime = context.getLastAct...
getWorkerId(), staleTime, t);
413,967
private void processCurrentShipment() {<NEW_LINE>final ImmutableList<InOutLineId> shipmentLineIdsWithLineNoCollisions = shipmentLineNoInfo.getShipmentLineIdsWithLineNoCollisions();<NEW_LINE>inOutDAO.unsetLineNos(shipmentLineIdsWithLineNoCollisions);<NEW_LINE>final HUShipmentPackingMaterialLinesBuilder packingMaterialLi...
int shipmentScheduleId = shipmentSchedule.getM_ShipmentSchedule_ID();
1,371,755
public boolean equivalentConstructState(ConstructState state) {<NEW_LINE>ConstructState rec = getPureRecursion(state);<NEW_LINE>if (rec != null) {<NEW_LINE>if (state.getConstructor() == cons) {<NEW_LINE>assert children.size() == 1;<NEW_LINE>AssemblyResolvedPatterns recRes = (AssemblyResolvedPatterns) children.get(0);<N...
int opCount = cons.getNumOperands();
20,272
public Pattern parseFromInput(String input, ParserContext context) throws InputParseException {<NEW_LINE>RandomPattern randomPattern = new RandomPattern();<NEW_LINE>String[] splits = input.split(",", -1);<NEW_LINE>List<String> patterns = StringUtil.parseListInQuotes(splits, ',', '[', ']', true);<NEW_LINE>if (patterns.s...
TextComponent.of(input)));
119,508
protected MapRulType registerRuleType(MapRulType rt) {<NEW_LINE>String tag = rt.tagValuePattern.tag;<NEW_LINE>String val = rt.tagValuePattern.value;<NEW_LINE>String keyVal = constructRuleKey(tag, val);<NEW_LINE>if (types.containsKey(keyVal)) {<NEW_LINE>MapRulType mapRulType = types.get(keyVal);<NEW_LINE>if (mapRulType....
rt.minzoom, mapRulType.minzoom);
1,159,874
private static void validateClientOptions(SdkClientConfiguration c) {<NEW_LINE>require("endpoint", c.option(SdkClientOption.ENDPOINT));<NEW_LINE>require("overrideConfiguration.additionalHttpHeaders", c.option(SdkClientOption.ADDITIONAL_HTTP_HEADERS));<NEW_LINE>require("overrideConfiguration.executionInterceptors", c.op...
.option(SdkAdvancedClientOption.USER_AGENT_PREFIX));
79,018
static Exception updatePropertyEditor(PropertyEditor ed, Object value) {<NEW_LINE>// System.err.println("UpdatePropertyEditor " + ed + " to " + value );<NEW_LINE>Exception result = null;<NEW_LINE>try {<NEW_LINE>if (value instanceof String) {<NEW_LINE>try {<NEW_LINE>ed.setAsText((String) value);<NEW_LINE>} catch (Illega...
.class, "MSG_SetAsText_InvalidValue", value));
1,103,490
public static boolean store() {<NEW_LINE>if (filename == null) {<NEW_LINE>throw new RuntimeException("Preferences filename has not been set!");<NEW_LINE>}<NEW_LINE>Msg.trace(Preferences.class, "Storing user preferences: " + filename);<NEW_LINE>// make sure the preferences directory exists.<NEW_LINE>File file = new File...
properties.store(os, "User Preferences");
673,471
private boolean validateInputs() {<NEW_LINE>if (getExpiration().getTime() < System.currentTimeMillis()) {<NEW_LINE>// expires before now<NEW_LINE>JOptionPane.showMessageDialog(this, Translation.get("gb.invalidExpirationDate"), Translation.get("gb.error"), JOptionPane.ERROR_MESSAGE);<NEW_LINE>return false;<NEW_LINE>}<NE...
("gb.error"), JOptionPane.ERROR_MESSAGE);
666,297
protected void writeClassTargets(TargetsTableAnnotationsImpl targetTable) throws IOException {<NEW_LINE>Map<String, String> i_annotatedClassNames = new IdentityHashMap<String, String>();<NEW_LINE>UtilImpl_BidirectionalMap classTargetMap = targetTable.i_getClassAnnotations();<NEW_LINE>UtilImpl_BidirectionalMap fieldTarg...
writeLargeInt(i_classNames.size());
425,390
public static void main(String... args) {<NEW_LINE>try {<NEW_LINE>Optional<BLauncherCmd> optionalInvokedCmd = getInvokedCmd(args);<NEW_LINE><MASK><NEW_LINE>} catch (BLangRuntimeException e) {<NEW_LINE>errStream.println(e.getMessage());<NEW_LINE>Runtime.getRuntime().exit(1);<NEW_LINE>} catch (BLangCompilerException e) {...
optionalInvokedCmd.ifPresent(BLauncherCmd::execute);
1,341,015
final StartProjectSessionResult executeStartProjectSession(StartProjectSessionRequest startProjectSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startProjectSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new StartProjectSessionResultJsonUnmarshaller());
1,112,162
void drawVideo(ComponentDrawContext context, int x, int y, State state) {<NEW_LINE>final <MASK><NEW_LINE>final var attrs = getAttributeSet();<NEW_LINE>Object blinkOption = attrs.getValue(BLINK_OPTION);<NEW_LINE>final var cm = getColorModel(attrs.getValue(COLOR_OPTION));<NEW_LINE>final var s = attrs.getValue(SCALE_OPTIO...
var g = context.getGraphics();
1,756,863
public ProducerRecord<?, ?> fromMessage(Message<?> messageArg, String defaultTopic) {<NEW_LINE>Message<?> message = messageArg;<NEW_LINE>if (this.messagingConverter != null) {<NEW_LINE>Message<?> converted = this.messagingConverter.toMessage(message.getPayload(), message.getHeaders());<NEW_LINE>if (converted != null) {...
headers.get(KafkaHeaders.MESSAGE_KEY);
819,425
private Object[] checkNumericValue(NumericConstant nc) {<NEW_LINE>Double dnc = null;<NEW_LINE>if (nc instanceof IntConstant) {<NEW_LINE>dnc = (double) ((IntConstant) nc).value;<NEW_LINE>} else if (nc instanceof DoubleConstant) {<NEW_LINE>dnc = ((DoubleConstant) nc).value;<NEW_LINE>} else if (nc instanceof FloatConstant...
[] tmp = checkShiftValue(dnc);
1,509,542
synchronized public ContactGroupSipImpl createGroup(ContactGroupSipImpl parentGroup, String groupName, boolean persistent) throws OperationFailedException {<NEW_LINE>if (parentGroup == null) {<NEW_LINE>throw new IllegalArgumentException("Parent group cannot be null");<NEW_LINE>}<NEW_LINE>if (groupName == null || groupN...
"Error while creating XCAP group", OperationFailedException.NETWORK_FAILURE, e);
1,124,363
boolean show() {<NEW_LINE>// NOI18N<NEW_LINE>okButton = new JButton(NbBundle.getMessage(CreateTag.class, "LBL_CreateTag.OKButton.text"));<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(okButton, okButton.getText());<NEW_LINE>dd = new // NOI18N<NEW_LINE>// NOI18N<NEW_LINE>DialogDescriptor(// NOI18N<NEW_LINE>panel, ...
getDocument().addDocumentListener(this);
879,338
JSObject toResolvedOptionsObject(JSContext context, JSRealm realm) {<NEW_LINE>JSObject result = JSOrdinary.create(context, realm);<NEW_LINE>JSObjectUtil.defineDataProperty(context, result, IntlUtil.KEY_LOCALE, Strings.fromJavaString(locale), JSAttributes.getDefault());<NEW_LINE>JSObjectUtil.defineDataProperty(context, ...
), JSAttributes.getDefault());
1,800,685
private void assembleKmerGraphsAndHaplotypeCall(final Haplotype refHaplotype, final SimpleInterval refLoc, final SAMFileHeader header, final SmithWatermanAligner aligner, final SWParameters danglingEndSWParameters, final SWParameters haplotypeToReferenceSWParameters, final List<GATKRead> correctedReads, final List<SeqG...
double) result.getKmerSize());
568,939
private void init(Context context) {<NEW_LINE>Resources resources = context.getResources();<NEW_LINE>mInflater = LayoutInflater.from(context);<NEW_LINE>mLayoutManager = new LinearLayoutManager(context);<NEW_LINE>mAdapter = new SearchAdapter();<NEW_LINE>setLayoutManager(mLayoutManager);<NEW_LINE>setAdapter(mAdapter);<NE...
paddingH, paddingV, paddingH, paddingV);
1,709,377
private void registerAllServicesImplementedBy(BundleContext bundleContext, List<HashMap<Class, List<Object>>> toRegister) {<NEW_LINE>for (HashMap<Class, List<Object>> classListHashMap : toRegister) {<NEW_LINE>for (Map.Entry<Class, List<Object>> entry : classListHashMap.entrySet()) {<NEW_LINE><MASK><NEW_LINE>for (Object...
Class serviceInterface = entry.getKey();
1,302,654
private List<ServiceInstance> buildInstances(List<? super StorageData> storageDataList) {<NEW_LINE>List<ServiceInstance> serviceInstanceList = new ArrayList<<MASK><NEW_LINE>storageDataList.forEach(storageData -> {<NEW_LINE>InstanceTraffic instanceTraffic = (InstanceTraffic) storageData;<NEW_LINE>if (instanceTraffic.get...
>(storageDataList.size());
1,312,001
public String[] listPreparedTransactions() {<NEW_LINE>if (isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "getPreparedTransactions");<NEW_LINE>String[] col = null;<NEW_LINE>if (_manager != null) {<NEW_LINE>// Obtain array of in-doubt xids from the XidManager<NEW_LINE>Xid[] xids = null;<NEW_...
[i]).toString();
825,126
public KeyPair toEc(boolean includePrivateParameters, Provider provider) {<NEW_LINE>if (provider == null) {<NEW_LINE>// Our default provider for this class<NEW_LINE>provider = Security.getProvider("SunEC");<NEW_LINE>}<NEW_LINE>if (!KeyType.EC.equals(keyType) && !KeyType.EC_HSM.equals(keyType)) {<NEW_LINE>throw logger.l...
ECParameterSpec aspec = apub.getParams();
603,535
public ColumnDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ColumnDefinition columnDefinition = new ColumnDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
JsonToken token = context.getCurrentToken();
1,093,573
public void visit(TargetNode<?> node) {<NEW_LINE>Cell cell = params.getCells().getCell(node.<MASK><NEW_LINE>LOG.debug("Looking at inputs for %s", node.getBuildTarget().getFullyQualifiedName());<NEW_LINE>ImmutableSortedSet.Builder<Path> targetInputs = new ImmutableSortedSet.Builder<>(Ordering.natural());<NEW_LINE>for (F...
getBuildTarget().getCell());
137,462
public void addFormForEditAccount() {<NEW_LINE>gridRowFrom = gridRow;<NEW_LINE>addAccountNameTextFieldWithAutoFillToggleButton();<NEW_LINE>addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("shared.paymentMethod"), Res.get(fasterPaymentsAccount.getPaymentMethod().getId()));<NEW_LINE>if (!fasterPaymentsAccount.get...
UK_SORT_CODE, fasterPaymentsAccount.getSortCode());
1,412,055
public static void compress() {<NEW_LINE>String input = BinaryStdIn.readString();<NEW_LINE>TernarySearchTrie<Integer> ternarySearchTrie = new TernarySearchTrie<>();<NEW_LINE>for (int i = 0; i < R; i++) {<NEW_LINE>ternarySearchTrie.put(String.valueOf((char) i), i);<NEW_LINE>}<NEW_LINE>// R is the codeword for EOF<NEW_LI...
int length = key.length();
776,477
public static DescribeCrossRegionLogBackupFilesResponse unmarshall(DescribeCrossRegionLogBackupFilesResponse describeCrossRegionLogBackupFilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCrossRegionLogBackupFilesResponse.setRequestId(_ctx.stringValue("DescribeCrossRegionLogBackupFilesResponse.RequestId"));<NE...
(_ctx.integerValue("DescribeCrossRegionLogBackupFilesResponse.PageRecordCount"));
87,895
public static void execute(ManagerConnection c, boolean isClear) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = header.write(buffer, c, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : fields) {<NEW_LINE>buffer = field.write(buffer, c, true);<NEW_LINE>}<NEW_LINE...
.getInstance().getUserStatMap();
350,532
public static SipMessageByteBuffer fromMessage(Message msg, HeaderForm headerForm) throws SipException {<NEW_LINE>if (!(msg instanceof MessageImpl)) {<NEW_LINE>throw new SipException("attempt to serialize message from a different JAIN implementation");<NEW_LINE>}<NEW_LINE>MessageImpl msgImpl = (MessageImpl) msg;<NEW_LI...
put(headerPart, 0, headerPartLength);
1,733,732
public void start(Stage stage) {<NEW_LINE>stage.setTitle("Hello TableView");<NEW_LINE>final Scene scene = new Scene(new Group(), 875, 700);<NEW_LINE>scene.setFill(Color.LIGHTGRAY);<NEW_LINE>Group root = (Group) scene.getRoot();<NEW_LINE>// TabPane<NEW_LINE><MASK><NEW_LINE>tabPane.setTabClosingPolicy(TabPane.TabClosingP...
final TabPane tabPane = new TabPane();
1,126,587
protected Node inlineExternal(Document doc, ParsedURL urldata, Node eold) {<NEW_LINE>File in = new File(urldata.getPath());<NEW_LINE>if (!in.exists()) {<NEW_LINE>LoggingUtil.warning("Referencing non-existant file: " + urldata.toString());<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ByteArrayOutputStream os = new ByteArra...
] buf = new byte[4096];
1,451,535
void replaceOutputs(Map<PCollection<?>, ReplacementOutput> originalToReplacement) {<NEW_LINE>checkNotNull(this.outputs, "Outputs haven't been specified for node %s yet", getFullName());<NEW_LINE>for (Node component : this.parts) {<NEW_LINE>// Replace the outputs of the component nodes<NEW_LINE>component.replaceOutputs(...
getOriginal().getValue());
1,727,237
public DefaultModelCriteria<M> or(DefaultModelCriteria<M>... mcbs) {<NEW_LINE>if (mcbs.length == 1) {<NEW_LINE>return compare(mcbs[0].node);<NEW_LINE>}<NEW_LINE>final ModelCriteriaNode<M> targetNode = new ModelCriteriaNode<>(ExtOperator.OR);<NEW_LINE>AtomicBoolean hasTrueNode = new AtomicBoolean(false);<NEW_LINE>for (D...
<>(ExtOperator.__FALSE__));
594,024
public CorsConfigurationSource corsConfigurationSource() {<NEW_LINE>final CorsConfiguration configuration = new CorsConfiguration();<NEW_LINE>configuration<MASK><NEW_LINE>configuration.setAllowedMethods(asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH"));<NEW_LINE>// setAllowCredentials(true) is important, otherwi...
.setAllowedOrigins(asList("*"));
310,424
public Request<DeleteThingShadowRequest> marshall(DeleteThingShadowRequest deleteThingShadowRequest) {<NEW_LINE>if (deleteThingShadowRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteThingShadowRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteThingShadowRequest> request...
(deleteThingShadowRequest.getThingName()));
422,762
public void profilingPointHit(int id) {<NEW_LINE>int instrType = ProfilerInterface.getCurrentInstrType();<NEW_LINE>boolean cpuProfiling = (instrType == CommonConstants.INSTR_RECURSIVE_FULL) || (instrType == CommonConstants.INSTR_RECURSIVE_SAMPLED);<NEW_LINE>if (cpuProfiling) {<NEW_LINE>// CPU profiling<NEW_LINE>Profile...
super.profilingPointHit(id, absTimeStamp);
954,628
public static void deleteLoggers(List<Map<String, Object>> allRows, String configName) {<NEW_LINE>ArrayList<String> newLoggers = new ArrayList<String>();<NEW_LINE>HashMap attrs = new HashMap();<NEW_LINE>attrs.put("target", configName);<NEW_LINE>Map result = RestUtil.restRequest((String) GuiUtil.getSessionValue("REST_UR...
"extraProperties")).get("loggers");
856,468
private Type infer(Warner warner, Inliner inliner, List<Type> freeTypeVariables, List<Type> expectedArgTypes, Type returnType, List<Type> actualArgTypes) throws InferException {<NEW_LINE>Symtab symtab = inliner.symtab();<NEW_LINE>Type methodType = new MethodType(expectedArgTypes, returnType, List.<Type>nil(), symtab.me...
actualArgTypes, methodSymbol, site, env);
863,280
public GenericRow next(GenericRow destination) {<NEW_LINE>try {<NEW_LINE>if (_reader.hasMessageAvailable()) {<NEW_LINE>final Message<byte[]> record = _reader.readNext();<NEW_LINE>destination = _messageDecoder.decode(<MASK><NEW_LINE>_currentCount++;<NEW_LINE>final long now = System.currentTimeMillis();<NEW_LINE>// Log e...
record.getData(), destination);
442,814
private List<LayerDeclaration> createDeclarations(AmidstSettings settings, List<Integer> enabledLayers) {<NEW_LINE>LayerDeclaration[] declarations = new LayerDeclaration[LayerIds.NUMBER_OF_LAYERS];<NEW_LINE>// @formatter:off<NEW_LINE>declare(settings, declarations, enabledLayers, LayerIds.ALPHA, null, false, Setting.cr...
OVERWORLD, false, settings.showWoodlandMansions);
821,217
public void centerMapToPlace(Place place) {<NEW_LINE>MapUtils.centerMapToPlace(place, mapBox, lastPlaceToCenter, getActivity());<NEW_LINE>Timber.d("Map is centered to place");<NEW_LINE>final double cameraShift;<NEW_LINE>if (null != place) {<NEW_LINE>lastPlaceToCenter = place;<NEW_LINE>}<NEW_LINE>if (null != lastPlaceTo...
.newCameraPosition(position), 1000);
1,725,464
public void importCrossVrfEvpnRoutesToV4(Stream<RouteAdvertisement<EvpnType5Route>> routesToLeak, EvpnToBgpv4VrfLeakConfig leakConfig) {<NEW_LINE>// TODO: Should type 3 routes leak?<NEW_LINE>@Nullable<NEW_LINE>RoutingPolicy policy = Optional.ofNullable(leakConfig.getImportPolicy()).flatMap(_policies::get).orElse(null);...
.Builder builder = evpnRouteToBgpv4Route(route);
999,613
public void render(@Nonnull TileEnchanter enchanter, float f, PoseStack ms, MultiBufferSource buffers, int light, int overlay) {<NEW_LINE>float alphaMod = 0F;<NEW_LINE>if (enchanter.stage == TileEnchanter.State.GATHER_MANA) {<NEW_LINE>alphaMod = Math.min(20, enchanter.stageTicks) / 20F;<NEW_LINE>} else if (enchanter.st...
ticks - 10) / 20F * 0.75F;
318,307
public void write(ByteBuf output, ClientWorld world, Chunk chunk) throws Exception {<NEW_LINE>output.writeInt(chunk.getX());<NEW_LINE>output.writeInt(chunk.getZ());<NEW_LINE>output.writeBoolean(chunk.isFullChunk());<NEW_LINE>Type.VAR_INT.writePrimitive(<MASK><NEW_LINE>ByteBuf buf = output.alloc().buffer();<NEW_LINE>try...
output, chunk.getBitmask());
1,485,823
public static void retranslate(OpenDocument document, InputStream html, OutputStream out) throws IOException {<NEW_LINE>CharStreamUtil charStreamUtil = new CharStreamUtil();<NEW_LINE>ZipOutputStream zout = new ZipOutputStream(out);<NEW_LINE>zout.putNextEntry(new ZipEntry("content.xml"));<NEW_LINE>LWXMLReader contentIn ...
LWXMLStreamReader(document.getContent());
593,575
public void copy(TraceProgramView from, AddressRange fromRange, Program into, Address intoAddress, TaskMonitor monitor) throws Exception {<NEW_LINE>ReferenceManager intoRefs = into.getReferenceManager();<NEW_LINE>for (Reference ref : from.getReferenceManager().getReferenceIterator(fromRange.getMinAddress())) {<NEW_LINE...
destTo = intoAddress.add(offTo);
1,621,371
/* It is a compile-time error if an annotation type T contains an element of<NEW_LINE>type T, either directly or indirectly.* @attribute syn<NEW_LINE>* @aspect Annotations<NEW_LINE>* @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddJ/Java1.5Frontend/Annotations.jrag:144<NEW_LINE>*/<NEW_LINE>@SuppressWarni...
_value = (ASTNode$State.CircularValue) _o;
1,294,464
// mainLoop = true meanings dispatch from MainEventLoop, always history first then main loop<NEW_LINE>public void dispatch(List<WeEvent> events, boolean mainLoop, Long blockHeight) {<NEW_LINE>// skip block before notified history block<NEW_LINE>if (blockHeight <= this.historyBlock) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
info("HistoryEventLoop finalize merge cache at block: {}", this.mergeBlock);
1,619,242
public byte[] encodeValue(Object value, MemBuffer buf, Settings settings, int length) throws DataTypeEncodeException {<NEW_LINE>if (length == -1) {<NEW_LINE>length = getLength();<NEW_LINE>}<NEW_LINE>if (length != getLength()) {<NEW_LINE>throw new DataTypeEncodeException("Length mismatch", value, this);<NEW_LINE>}<NEW_L...
DataTypeEncodeException("Unsigned type cannot have negative value", value, this);
1,027,388
final UpdateApplicationResult executeUpdateApplication(UpdateApplicationRequest updateApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,334,278
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>Context ctx = getContext();<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>currentDirectory = savedInstanceState.getParcelable(CURRENT_DIRECTORY);<NEW_LINE>newDirectory = savedInstanceState.getParcelable(NEW_DIRECTORY);<NEW_LINE>}<NEW_LINE>if (ctx =...
(v -> positiveButtonsClick(true));
554,739
public static ErrorDescription apply(HintContext hc) {<NEW_LINE>if (hc.isCanceled() || (hc.getPath().getLeaf().getKind() != Tree.Kind.IDENTIFIER || hc.getPath().getParentPath().getLeaf().getKind() != Tree.Kind.ANNOTATION)) {<NEW_LINE>// NOI18N<NEW_LINE>// we pass only if it is an annotation<NEW_LINE>return null;<NEW_LI...
), par.getLeaf());
885,298
private JsonObject createMetatypeJson(MetaTypeInformation metatypeInfo, List<String> locales) {<NEW_LINE>JsonObject metatypeJson = null;<NEW_LINE>for (String thisLocale : locales) {<NEW_LINE>// TODO - any way to get ExtendedObjectClassDefinition?<NEW_LINE>ObjectClassDefinition ocd = metatypeInfo.getObjectClassDefinitio...
tc, "Creating metatype information based on locale [" + thisLocale + "]");
656,032
public void onDataConnectionStateChanged(int state) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "START"));<NEW_LINE>if (state == TelephonyManager.DATA_CONNECTED) {<NEW_LINE>NetworkConnectionStatus.Network_Connection_Available = NetworkConnectionStatus.NETWORK_CONNECTED;<NEW_LINE>wanStatus.connectio...
(0, 1, 0));
97,545
public ExtensionCatalog.Mutable resolveNonPlatformExtensions(String quarkusVersion) throws RegistryResolutionException {<NEW_LINE>final ArtifactCoords baseCoords = config.getArtifact();<NEW_LINE>final Artifact catalogArtifact = new DefaultArtifact(baseCoords.getGroupId(), baseCoords.getArtifactId(), quarkusVersion, bas...
), baseCoords.getVersion());
1,137,893
protected void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>if (getIntent().getBooleanExtra(FROM_LOG_OUT_BUTTON_KEY, false)) {<NEW_LINE>Toast.makeText(getApplicationContext(), R.string.log_out_toast_confirm, Toast.LENGTH_LONG).show();<NEW_LINE>} else if (getIntent().getAction() != null && getIntent().getAction().eq...
Intent(this, AccountRetrievalService.class);
395,433
public ExportResult<SocialActivityContainerResource> export(UUID jobId, TokensAndUrlAuthData authData, Optional<ExportInformation> exportInformation) throws IOException {<NEW_LINE>Plus plus = getOrCreatePeopleService(authData);<NEW_LINE>Plus.Activities.List listActivities = plus.activities().list("me", "public");<NEW_L...
.add(postToActivityModel(activity));
1,583,745
final PutAppsListResult executePutAppsList(PutAppsListRequest putAppsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAppsListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
537,599
public net.osmand.binary.OsmandOdb.TransportStopExit buildPartial() {<NEW_LINE>net.osmand.binary.OsmandOdb.TransportStopExit result = new net.osmand.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>to_bitField0_ |= ...
binary.OsmandOdb.TransportStopExit(this);
294,273
protected int doWork() {<NEW_LINE>final ProgressLogger progress = new ProgressLogger(LOG, 10000);<NEW_LINE>IOUtil.assertFileIsReadable(INPUT);<NEW_LINE>IOUtil.assertFileIsWritable(OUTPUT);<NEW_LINE>final VCFFileReader reader = new VCFFileReader(INPUT, REQUIRE_INDEX);<NEW_LINE>final VCFHeader header = new VCFHeader(read...
> iterator = reader.iterator();
1,670,744
private void acceptLine(String line) {<NEW_LINE>// Patch to handle Unicode characters<NEW_LINE>// Submitted by Daniel Leuck<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>int lineLength = line.length();<NEW_LINE>for (int i = 0; i < lineLength; i++) {<NEW_LINE>char c = line.charAt(i);<NEW_LINE>if (c > 127) {...
buf.append("\\u" + val);
338,006
public static <T, S extends Geometry> NodeAndEntries<T, S> delete(Entry<? extends T, ? extends S> entry, boolean all, Leaf<T, S> leaf) {<NEW_LINE>List<Entry<T, S>> entries = leaf.entries();<NEW_LINE>if (!entries.contains(entry)) {<NEW_LINE>return new NodeAndEntries<>(of(leaf), Collections.emptyList(), 0);<NEW_LINE>} el...
entries2, leaf.context());
32,570
public Double apply(Double x) {<NEW_LINE>ArgChecker.notNull(x, "x");<NEW_LINE>ArgChecker.isTrue(domain.apply(x), "point {} is not in the function domain", x.toString());<NEW_LINE>double[] y = new double[3];<NEW_LINE>double[] w;<NEW_LINE>if (!domain.apply(x + eps)) {<NEW_LINE>if (!domain.apply(x - eps)) {<NEW_LINE>throw...
[2] * w[2];
1,649,607
public void processReadyKey(SelectionKey key) {<NEW_LINE>if (!key.isReadable()) {<NEW_LINE>silentCloseChannel();<NEW_LINE>f.completeExceptionally(new EOFException("channel not readable"));<NEW_LINE>pendingTransactions.remove(this);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DatagramChannel channel = (DatagramChannel) key.cha...
).getRemoteSocketAddress(), data);
138,352
static <K, V> ImmutableBiMap<K, V> fromEntryArray(int n, Entry<K, V>[] entryArray) {<NEW_LINE>checkPositionIndex(n, entryArray.length);<NEW_LINE>int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);<NEW_LINE>int mask = tableSize - 1;<NEW_LINE>ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize);<NEW_...
V value = entry.getValue();
217,820
public // org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response):110<NEW_LINE>ApiDescription parse(String apiDescription, int lineNumber) {<NEW_LINE><MASK><NEW_LINE>final int methodStart = apiDescription.indexOf(METHOD_PARAM_STAR...
Objects.requireNonNull(apiDescription, "apiDescriptionString");
1,276,934
private Collection<Resource> createConfig(Resources resources, Collection<org.glassfish.resources.api.Resource> resourcesToRegister, boolean embedded) throws ResourceException {<NEW_LINE>List<Resource> resourceConfigs = new ArrayList<Resource>();<NEW_LINE>for (org.glassfish.resources.api.Resource resource : resourcesTo...
resources, attrList, props, false);
1,150,108
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {<NEW_LINE>Class beanClass = (Class) in.readObject();<NEW_LINE>Class customizerClass = (Class) in.readObject();<NEW_LINE>if (customizerClass == null) {<NEW_LINE>_descriptor = new BeanDescriptor(beanClass);<NEW_LINE>} else {<NEW_LINE>_de...
String) in.readObject());
1,051,899
public UriUploaderResultCode uploadUris() {<NEW_LINE>try {<NEW_LINE>List<Uri> contentUris = new ArrayList<>();<NEW_LINE>List<String> contentRemotePaths = new ArrayList<>();<NEW_LINE>int schemeFileCounter = 0;<NEW_LINE>for (Parcelable sourceStream : mUrisToUpload) {<NEW_LINE>Uri sourceUri = (Uri) sourceStream;<NEW_LINE>...
Timber.e(e, "Permissions fail");
625,872
public void prepare(FlinkEnvironment prepareEnv) {<NEW_LINE>fenodes = config.getString("fenodes");<NEW_LINE>username = config.getString("user");<NEW_LINE>tableName = config.getString("table");<NEW_LINE>password = config.getString("password");<NEW_LINE>dbName = config.getString("database");<NEW_LINE>if (config.hasPath("...
config, streamLoadProp, producerPrefix, false);
1,162,633
private int closestPairOfPoints(Point[] px, Point[] py, int start, int end) {<NEW_LINE>if (end - start < 3) {<NEW_LINE>return computeMinDistance(px, start, end);<NEW_LINE>}<NEW_LINE>int mid = (start + end) / 2;<NEW_LINE>Point[] pyLeft = new Point[mid - start + 1];<NEW_LINE>Point[] pyRight = new Point[end - mid];<NEW_LI...
Math.min(d1, d2);
478,722
protected final void registerBean(final String prefix, final Class<T> algorithmClass, final BeanDefinitionRegistry registry) {<NEW_LINE>boolean existPrefix = <MASK><NEW_LINE>if (existPrefix) {<NEW_LINE>Map<String, Object> paramMap = PropertyUtil.handle(environment, prefix, Map.class);<NEW_LINE>Set<String> keys = paramM...
PropertyUtil.containPropertyPrefix(environment, prefix);
623,807
static void startMetrics(VelocityServer server, VelocityConfiguration.Metrics metricsConfig) {<NEW_LINE>Metrics metrics = new Metrics(logger, 4752, metricsConfig.isEnabled());<NEW_LINE>metrics.addCustomChart(new SingleLineChart("players", server::getPlayerCount));<NEW_LINE>metrics.addCustomChart(new SingleLineChart("ma...
javaVersion.substring(0, indexOf);
224,276
public void configure() throws Exception {<NEW_LINE>errorHandler(defaultErrorHandler());<NEW_LINE>onException(Exception.class).to(direct(MF_ERROR_ROUTE_ID));<NEW_LINE>// @formatter:off<NEW_LINE>from(direct(GET_DOCUMENTS_ROUTE_ID)).routeId(GET_DOCUMENTS_ROUTE_ID).streamCaching().log("Route invoked!").process(this::prepa...
(direct(ExternalSystemCamelConstants.MF_UPSERT_RUNTIME_PARAMETERS_ROUTE_ID));
9,938
protected boolean checkTableStable(Database db) throws AlterCancelException {<NEW_LINE>OlapTable tbl;<NEW_LINE>boolean isStable;<NEW_LINE>db.readLock();<NEW_LINE>try {<NEW_LINE>tbl = (OlapTable) db.getTable(tableId);<NEW_LINE>if (tbl == null) {<NEW_LINE>throw new AlterCancelException("Table " + tableId + " does not exi...
"table {} is stable, start job{}, type {}", tableId, jobId, type);
1,086,781
public Request<CancelJobRequest> marshall(CancelJobRequest cancelJobRequest) {<NEW_LINE>if (cancelJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(CancelJobRequest)");<NEW_LINE>}<NEW_LINE>Request<CancelJobRequest> request = new DefaultRequest<CancelJobRequest>(cancelJo...
(cancelJobRequest.getJobId()));
1,607,106
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>UUID exileId = CardUtil.getExileZoneId(game, source.getSourceId(), 0);<NEW_LINE>Set<Card> topThreeCards = controller.getLibrary().getTopCards(game, 3);<NEW...
card.setFaceDown(true, game);
872,737
public final void unregister(BTraceProbe p) {<NEW_LINE>try {<NEW_LINE>setupLock.writeLock().lock();<NEW_LINE>probes.remove(p);<NEW_LINE>for (OnMethod om : p.onmethods()) {<NEW_LINE>filter.remove(om);<NEW_LINE>MethodNode cushionMethod = new MethodNode(Opcodes.ASM7, Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC, Instrumentor....
.writeLock().unlock();
618,870
public void call(Channel channel, String data) {<NEW_LINE>Map<String, Object> map = MapHelper.parser(data);<NEW_LINE>int turnClientId = (<MASK><NEW_LINE>if (map.containsKey("preClientNickname")) {<NEW_LINE>SimplePrinter.printNotice(map.get("preClientNickname") + " don't rob the landlord!");<NEW_LINE>}<NEW_LINE>if (turn...
int) map.get("nextClientId");
1,769,453
private Mono<PagedResponse<DelegatedControllerInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, 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_LIN...
.nextLink(), null));
991,287
// 3 d4b57ugpwxy567pfmxn14ed8d<NEW_LINE>// static void make_lrvn(graph_t * g)<NEW_LINE>@Unused<NEW_LINE>@Original(version = "2.38.0", path = "lib/dotgen/position.c", name = "make_lrvn", key = "d4b57ugpwxy567pfmxn14ed8d", definition = "static void make_lrvn(graph_t * g)")<NEW_LINE>public static void make_lrvn(ST_Agraph_...
g)[2].x);
113,140
public RubyString inspect(ThreadContext context) {<NEW_LINE>ByteList str = new ByteList();<NEW_LINE>str.append('#').append('<');<NEW_LINE>str.append(getMetaClass().getRealClass().getName().getBytes());<NEW_LINE>str.append(':').append(' ');<NEW_LINE>if (enums == null) {<NEW_LINE>str.append("uninitialized>".getBytes());<...
newStringLight(context.runtime, str);
1,034,440
public Result isConditionMet(Index index, ClusterState clusterState) {<NEW_LINE>IndexMetadata followerIndex = clusterState.<MASK><NEW_LINE>if (followerIndex == null) {<NEW_LINE>// Index must have been since deleted, ignore it<NEW_LINE>logger.debug("[{}] lifecycle action for index [{}] executed but index no longer exist...
metadata().index(index);
1,178,604
public CompletableFuture<SegmentRead> read(long offset, int length) {<NEW_LINE>Exceptions.checkNotClosed(closed.get(), this);<NEW_LINE>return backoffSchedule.retryWhen(t -> {<NEW_LINE>Throwable ex = Exceptions.unwrap(t);<NEW_LINE>if (closed.get()) {<NEW_LINE>log.debug("Exception: {} while reading from Segment : {}", ex...
) && !(ex instanceof AuthenticationException);
261,725
public int findMaxConsecutiveOnes(int[] nums) {<NEW_LINE>int n = nums.length;<NEW_LINE>int[] prefix = new int[n];<NEW_LINE>int[] suffix = new int[n];<NEW_LINE>int res = 0;<NEW_LINE>for (int i = 0; i < n; ++i) {<NEW_LINE>if (i == 0)<NEW_LINE>prefix[0] = nums[0];<NEW_LINE>else<NEW_LINE>prefix[i] = nums[i] == 0 ? 0 : pref...
(res, prefix[i]);
198,438
protected void predictGeneric(Picture reference, int x, int y, BitReader bits, int backward, int[][] mbPix, int tgtY, int blkW, int blkH, int isSrcField, int srcField, int isDstField, int vectIdx, int predScale) {<NEW_LINE>int vectX = mvectDecode(bits, fCode[backward][0], mvPred[vectIdx][backward][0]);<NEW_LINE>int vec...
srcField, mbPix, tgtY, isDstField);
1,551,336
public com.amazonaws.services.kinesisanalyticsv2.model.ResourceProvisionedThroughputExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesisanalyticsv2.model.ResourceProvisionedThroughputExceededException resourceProvisionedThroughputExceededExc...
String currentParentElement = context.getCurrentParentElement();
1,448,151
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.editor.js.parsing.ast.JSTreeWalker#visit(com.aptana.editor.js.parsing.ast.JSForInNode)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void visit(JSForInNode node) {<NEW_LINE>JSNode expression = (JSNode) node.getExpression();<NEW_LINE>JSNode initializer = (JSNode) n...
, openParen, openParen + 1));
512,817
protected void configureServlets() {<NEW_LINE>filter("/*").through(StatusFilter.class);<NEW_LINE>filter("/*").through(ServerRequestAuthFilter.class);<NEW_LINE>filter("/v2/apps", "/v2/apps/*").through(GzipEncodingEnforcingFilter.class);<NEW_LINE>// filter("/*").through(RateLimitingFilter.class); // enable if needed<NEW...
params.put("com.sun.jersey.config.property.WebPageContentRegex", "/(flex|images|js|css|jsp)/.*");
1,392,206
public SampledDataSource sampleDataPoints(int timeWindowIndex, long timestamp, List<DataSourceBo> dataSourceBoList, DataSourceBo previousDataSourceBo) {<NEW_LINE>if (CollectionUtils.isEmpty(dataSourceBoList)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final List<Integer> activeConnectionSizes = new ArrayList<>(dataSou...
String databaseName = defaultDataSourceBo.getDatabaseName();
1,180,282
final DeleteDomainAssociationResult executeDeleteDomainAssociation(DeleteDomainAssociationRequest deleteDomainAssociationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDomainAssociationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);