idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
835,964
public UserVm restoreVM(RestoreVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException {<NEW_LINE>// Input validation<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>long vmId = cmd.getVmId();<NEW_LINE>Long newTemplateId = cmd.getTemplateId();<NEW_LINE>UserVmVO vm = _...
= new InvalidParameterValueException("Cannot find VM with ID " + vmId);
423,896
private static void solve() {<NEW_LINE><MASK><NEW_LINE>//<NEW_LINE>// data<NEW_LINE>//<NEW_LINE>int Belgium = 0;<NEW_LINE>int Denmark = 1;<NEW_LINE>int France = 2;<NEW_LINE>int Germany = 3;<NEW_LINE>int Netherlands = 4;<NEW_LINE>int Luxembourg = 5;<NEW_LINE>int n = 6;<NEW_LINE>int max_num_colors = 4;<NEW_LINE>int[][] n...
Solver solver = new Solver("Map2");
1,208,713
protected void run(StructuredGraph graph, TornadoHighTierContext context) {<NEW_LINE>if (context.getMeta() == null || context.getMeta().enableThreadCoarsener()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PTXTornadoDevice device = (PTXTornadoDevice) context.getDeviceMapping();<NEW_LINE>final TornadoSchedulingStrategy strate...
"after scheduling loop index=" + node.index());
1,826,269
public Memory update(Environment env, Memory... args) {<NEW_LINE>SourceManager manager = args[0].toObject(SourceManager.class);<NEW_LINE>try {<NEW_LINE>moduleRecord.clear();<NEW_LINE>Tokenizer tokenizer = new Tokenizer(context);<NEW_LINE>SyntaxAnalyzer analyzer = new SyntaxAnalyzer(manager.env, tokenizer);<NEW_LINE>fet...
synchronize(env, token, tokenizer);
556,912
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportCollection");<NEW_LINE>builder.expression(fields[0], "strvals.selectfrom(v => Integer.parseInt(v)).arrayOf()");<NEW_LINE>builder.statementConsumer(stmt -> assertT...
] { 1 }, val));
1,331,557
public static double[][] scaling(double[][] A, double rMean, double rStd) {<NEW_LINE>int count = 0;<NEW_LINE>double mean = 0.0;<NEW_LINE>double std = 0.0;<NEW_LINE>for (double[] aA : A) for (double v : aA) {<NEW_LINE>count += 1;<NEW_LINE>mean += v;<NEW_LINE>std += v * v;<NEW_LINE>}<NEW_LINE>mean = mean / count;<NEW_LIN...
std / count - mean * mean);
785,808
private boolean addToHeldExtensions(int valueIdx, List<? extends IBaseExtension<?, ?>> ext, ArrayList<ArrayList<HeldExtension>> list, boolean theIsModifier, CompositeChildElement theChildElem, CompositeChildElement theParent, EncodeContext theEncodeContext, boolean theContainedResource, IBase theContainingElement) {<NE...
theParent, theEncodeContext, theContainedResource, theContainingElement);
45,351
static Intent fromProtocolValue(final ValueType valueType, final short intent) {<NEW_LINE>switch(valueType) {<NEW_LINE>case DEPLOYMENT:<NEW_LINE>return DeploymentIntent.from(intent);<NEW_LINE>case INCIDENT:<NEW_LINE>return IncidentIntent.from(intent);<NEW_LINE>case JOB:<NEW_LINE>return JobIntent.from(intent);<NEW_LINE>...
, valueType.name()));
1,776,701
public void preProcess(ProcessContext context) throws EngineExecutionException {<NEW_LINE>if (context.hasVariable(DomainConstants.VAR_NAME_IS_LOOP_STATE)) {<NEW_LINE>StateInstruction instruction = context.getInstruction(StateInstruction.class);<NEW_LINE>AbstractTaskState currentState = (AbstractTaskState) instruction.g...
(EngineUtils.getOriginStateName(stateToBeCompensated));
943,138
private static String generateQuery(@NotNull QueryParams params) {<NEW_LINE>StringBuilder sql = new StringBuilder("SELECT ").append(params.getSelect()).append(" FROM ").append(params.getFrom<MASK><NEW_LINE>boolean addParentheses = params.getCommentColumnName() != null || params.getDefinitionColumnName() != null;<NEW_LI...
()).append(" WHERE ");
567,475
public static <T1, T2, R> Stream<R> zip(Stream<? extends T1> a, Stream<? extends T2> b, BiFunction<? super T1, ? super T2, ? extends R> zipper) {<NEW_LINE>Objects.requireNonNull(zipper);<NEW_LINE>Spliterator<? extends T1> aSpliterator = Objects.<MASK><NEW_LINE>Spliterator<? extends T2> bSpliterator = Objects.requireNon...
requireNonNull(a).spliterator();
1,514,971
CustomElement parse(GroupableDslContext context, Tokens tokens) {<NEW_LINE>// element <name> [metadata] [description] [tags]<NEW_LINE>if (tokens.hasMoreThan(TAGS_INDEX)) {<NEW_LINE>throw new RuntimeException("Too many tokens, expected: " + GRAMMAR);<NEW_LINE>}<NEW_LINE>if (!tokens.includes(NAME_INDEX)) {<NEW_LINE>throw...
tags = tokens.get(TAGS_INDEX);
901,482
public static AmazonS3 createS3Client(JsonNode data) {<NEW_LINE>String key = data.get(AWS_ACCESS_KEY_ID_FIELDNAME).asText();<NEW_LINE>String secret = data.get(AWS_SECRET_ACCESS_KEY_FIELDNAME).asText();<NEW_LINE>Boolean isPathStyleAccess = data.has(AWS_PATH_STYLE_ACCESS) ? data.get(AWS_PATH_STYLE_ACCESS).asBoolean(false...
withEndpointConfiguration(endpointConfiguration).build();
865,371
public void scrollRectToVisible(final Rectangle newRect) {<NEW_LINE>final Container scroll = getParent();<NEW_LINE>if (scroll instanceof JScrollPane) {<NEW_LINE>final JScrollPane scrollPane = (JScrollPane) scroll;<NEW_LINE>if (this == scrollPane.getViewport()) {<NEW_LINE>final LayoutManager layout = scrollPane.getLayou...
JScrollBar vsb = scrollPane.getVerticalScrollBar();
1,183,751
public JPanel buildOverviewPanel(WsdlProject project) {<NEW_LINE>JPropertiesTable<WsdlProject> table = new JPropertiesTable<WsdlProject>("Project Properties", project);<NEW_LINE>if (project.isOpen()) {<NEW_LINE>table.addProperty("Name", "name", true);<NEW_LINE>table.addProperty("Description", "description", true);<NEW_...
table.addProperty("File", "path");
1,166,231
public static Rule compose(AndroidLibTarget target, @Nullable String manifestRule, List<String> deps, List<String> aidlRuleNames, @Nullable String appClass) {<NEW_LINE>List<String> testDeps = new ArrayList<>(deps);<NEW_LINE>testDeps.add(":" + src(target));<NEW_LINE>testDeps.addAll(external(target.getExternalDeps(Source...
getExternalProvidedDeps(SourceSetType.TEST)));
137,429
public static DescribeDcdnDomainCnameResponse unmarshall(DescribeDcdnDomainCnameResponse describeDcdnDomainCnameResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainCnameResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainCnameResponse.RequestId"));<NEW_LINE>List<Data> cnameDatas = new ArrayList<Data>...
("DescribeDcdnDomainCnameResponse.CnameDatas[" + i + "].Status"));
833,529
protected void fillStatusLine(IStatusLineManager statusLine) {<NEW_LINE>{<NEW_LINE><MASK><NEW_LINE>TimeZone tzDefault = TimeZone.getDefault();<NEW_LINE>tzItem.setText(tzDefault.getDisplayName(false, TimeZone.SHORT));<NEW_LINE>tzItem.setToolTip(tzDefault.getDisplayName(false, TimeZone.LONG));<NEW_LINE>tzItem.setDoubleCl...
StatusLineContributionItemEx tzItem = new StatusLineContributionItemEx("Time Zone");
1,654,459
public TermsAggregationBuilder parse(List<GroupingElement> elements, QueryState state) {<NEW_LINE>List<Column> groups = new ArrayList<Column>();<NEW_LINE>for (GroupingElement grouping : elements) {<NEW_LINE>for (Set<Expression> expressions : grouping.enumerateGroupingSets()) {<NEW_LINE>for (Expression e : expressions) ...
getColumnByLabel(g.getAggName());
964,023
protected void executeAction(AnActionEvent e) {<NEW_LINE>List<TreeNodeOnVcsRevision> sel = getSelection();<NEW_LINE>int selectionSize = sel.size();<NEW_LINE>if (selectionSize > 1) {<NEW_LINE>List<VcsFileRevision> selectedRevisions = ContainerUtil.sorted(ContainerUtil.map(sel, TreeNodeOnVcsRevision::getRevision), myRevi...
sel.size() - 1);
796,992
public void onMouseDown(MouseDownEvent event) {<NEW_LINE>startX = event.getClientX();<NEW_LINE>startY = event.getClientY();<NEW_LINE>if (isDisabled() || event.getNativeButton() != NativeEvent.BUTTON_LEFT) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>clickTarget = Element.as(event.getNativeEvent().getEventTarget());<NEW_LINE>...
.getEndTime().clone();
1,029,971
protected ConsumerFactory<?, ?> createKafkaConsumerFactory(boolean anonymous, String consumerGroup, ExtendedConsumerProperties<KafkaConsumerProperties> consumerProperties, String beanName, String destination) {<NEW_LINE>Map<String, Object> props = new HashMap<>();<NEW_LINE>props.put(ConsumerConfig.KEY_DESERIALIZER_CLAS...
this.configurationProperties.getKafkaConnectionString());
681,441
private void handleUpdateRowsEvent(final UpdateRowsEvent event) {<NEW_LINE>PipelineTableMetaData tableMetaData = metaDataLoader.getTableMetaData(event.getTableName());<NEW_LINE>for (int i = 0; i < event.getBeforeRows().size(); i++) {<NEW_LINE>Serializable[] beforeValues = event.getBeforeRows().get(i);<NEW_LINE>Serializ...
getAfterRows().get(i);
1,594,071
private int buildCompFmOffset(Map<String, List<Float>> featureMaps, int trainDataSize) {<NEW_LINE>List<CompressWeight> compressWeights = EncodeExecutor.getInstance().encode(featureMaps, trainDataSize);<NEW_LINE>if (compressWeights == null || compressWeights.size() == 0) {<NEW_LINE>LOGGER.severe("[Compression] the retur...
+ ", feature size: " + data.length));
254,141
// Same as above, but with a given ProgressHandle to accumulate and StringWorker to check if cancelled<NEW_LINE>static Map<String, List<AbstractFile>> findFilesBymd5(List<String> md5Hash, ProgressHandle progress, SwingWorker<Object, Void> worker) throws NoCurrentCaseException {<NEW_LINE>Map<String, List<AbstractFile>> ...
AbstractFile> files = findFilesByMd5(md5);
647,790
protected final ObjectMetadata updateMetadataWithContentCryptoMaterial(ObjectMetadata metadata, File file, ContentCryptoMaterial contentCryptoMaterial) {<NEW_LINE>if (metadata == null)<NEW_LINE>metadata = new ObjectMetadata();<NEW_LINE>if (file != null) {<NEW_LINE>Mimetypes mimetypes = Mimetypes.getInstance();<NEW_LINE...
(mimetypes.getMimetype(file));
1,816,579
static Object readVal(Context ctx, View rootView, int viewOrPrefId, boolean click, Object target, Class<?> valType, String valName) throws Exception {<NEW_LINE>boolean isView = TypeHelper.isView(valType);<NEW_LINE>boolean isPreference = TypeHelper.isPreference(valType);<NEW_LINE>if (!isView && !isPreference) {<NEW_LINE...
ResourceUtils.getResourceId(ctx, valName);
1,414,307
public static Graph removeLoops(Graph graph) {<NEW_LINE><MASK><NEW_LINE>int[] stack = new int[sz * 2];<NEW_LINE>int stackSize = 0;<NEW_LINE>byte[] state = new byte[sz];<NEW_LINE>for (int i = 0; i < sz; ++i) {<NEW_LINE>if (graph.incomingEdgesCount(i) == 0) {<NEW_LINE>stack[stackSize++] = i;<NEW_LINE>}<NEW_LINE>}<NEW_LIN...
int sz = graph.size();
496,323
public static SearchTmOnsalesResponse unmarshall(SearchTmOnsalesResponse searchTmOnsalesResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchTmOnsalesResponse.setRequestId(_ctx.stringValue("SearchTmOnsalesResponse.RequestId"));<NEW_LINE>searchTmOnsalesResponse.setTotalCount(_ctx.integerValue("SearchTmOnsalesResponse.To...
("SearchTmOnsalesResponse.Trademarks[" + i + "].Classification"));
409,160
public void handleUpdateTag(@Nonnull CompoundTag tag) {<NEW_LINE>super.handleUpdateTag(tag);<NEW_LINE>NBTUtils.setCompoundIfPresent(tag, NBTConstants.FLUID_STORED, nbt -> fluidTank.deserializeNBT(nbt));<NEW_LINE>NBTUtils.setCompoundIfPresent(tag, NBTConstants.ITEM, nbt -> {<NEW_LINE>if (nbt.isEmpty()) {<NEW_LINE>lastPa...
lastPasteItem = HashedItem.raw(stack);
89,092
private void addFeatureListener(InsteonDevice aDev, String aItemName, InsteonPLMBindingConfig aConfig) {<NEW_LINE>if (aDev == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DeviceFeature f = aDev.getFeature(aConfig.getFeature());<NEW_LINE>if (f == null || f.isFeatureGroup()) {<NEW_LINE>StringBuffer buf = new StringBuffer...
getFeatures().keySet());
1,384,622
private static Row kafkaSourceRecordToBeamRow(Struct value, Row.Builder rowBuilder) {<NEW_LINE>org.apache.beam.sdk.schemas.Schema beamSchema = rowBuilder.getSchema();<NEW_LINE>for (org.apache.beam.sdk.schemas.Schema.Field f : beamSchema.getFields()) {<NEW_LINE>switch(f.getType().getTypeName()) {<NEW_LINE>case INT16:<NE...
(f.getName()));
378,529
public Map<String, Object> buildDetails(TriggerState triggerState, Map<String, Object> sanitizedDataMap) {<NEW_LINE>Map<String, Object> details = new LinkedHashMap<>();<NEW_LINE>details.put("group", this.trigger.getKey().getGroup());<NEW_LINE>details.put("name", this.trigger.getKey().getName());<NEW_LINE>putIfNoNull(de...
this.trigger.getPreviousFireTime());
1,808,897
public FlatFileItemWriter<T> build() {<NEW_LINE>Assert.isTrue(this.lineAggregator != null || this.delimitedBuilder != null || this.formattedBuilder != null, "A LineAggregator or a DelimitedBuilder or a FormattedBuilder is required");<NEW_LINE>if (this.saveState) {<NEW_LINE>Assert.hasText(this.name, "A name is required ...
= this.delimitedBuilder.build();
1,007,727
public BiFunction<JsonInput, PropertySetting, T> apply(Type type) {<NEW_LINE>Type keyType;<NEW_LINE>Type valueType;<NEW_LINE>if (type instanceof ParameterizedType) {<NEW_LINE>ParameterizedType pt = (ParameterizedType) type;<NEW_LINE>keyType = <MASK><NEW_LINE>valueType = pt.getActualTypeArguments()[1];<NEW_LINE>} else i...
pt.getActualTypeArguments()[0];
1,106,692
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void browseButton1ActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_browseButton1ActionPerformed<NEW_LINE>try {<NEW_LINE>org.netbeans.api.project.SourceGroup[] groups = DDUtils.getDocBaseGroups(dObj);<NEW_LINE>org.openide.filesystems...
fo = BrowseFolders.showDialog(groups);
1,100,552
public static void main(String[] args) throws IOException {<NEW_LINE>int keycount = 0;<NEW_LINE>String plaintext = null, keytext = null, encrypted = null, decrypted = null;<NEW_LINE>HashMap<Character, Integer> hashmap1 = new HashMap<Character, Integer>();<NEW_LINE>HashMap<Integer, Character> hashmap2 = new HashMap<Inte...
char) (i + 97));
1,171,780
protected BufferedImage readTile(TileRequest tileRequest) throws IOException {<NEW_LINE>try {<NEW_LINE>BufferedImage img;<NEW_LINE>double fullResDownsample = getDownsampleForResolution(0);<NEW_LINE>if (tileRequest.getDownsample() != fullResDownsample && Math.abs(tileRequest.getDownsample() - fullResDownsample) > 1e-6) ...
getTileHeight(), allowSmoothInterpolation());
614,074
private static void joinChat() throws NotInitializedException {<NEW_LINE>if (chatroom == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!initialized) {<NEW_LINE>establishConnection();<NEW_LINE>if (!initialized) {<NEW_LINE>throw new NotInitializedException();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>chat = new MultiUserChat(con...
chatnickname, e.getMessage());
1,527,438
public okhttp3.Call validateAPICall(String query, String ifNoneMatch, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/validate";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NE...
localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
812,369
public void init(final int capacity) {<NEW_LINE><MASK><NEW_LINE>// read the categories<NEW_LINE>for (Category f : this.categories.keySet()) {<NEW_LINE>String keys = DAO.getConfig("classification." + this.name() + "." + f.name(), "");<NEW_LINE>Set<String> keyset = new HashSet<>();<NEW_LINE>for (String key : keys.toLower...
this.bayes.setMemoryCapacity(capacity);
672,984
final DeleteAppInstanceAdminResult executeDeleteAppInstanceAdmin(DeleteAppInstanceAdminRequest deleteAppInstanceAdminRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAppInstanceAdminRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
79,583
private void createMessageGroupBox() {<NEW_LINE>messageGroupBox = new QGroupBox(tr("Balloon Message"));<NEW_LINE>typeLabel = new QLabel(tr("Type:"));<NEW_LINE>typeComboBox = new QComboBox();<NEW_LINE>typeComboBox.addItem(tr("None"), new QVariant(QSystemTrayIcon.MessageIcon.NoIcon.value));<NEW_LINE>typeComboBox.addItem(...
addWidget(titleLabel, 2, 0);
1,735,519
private List<Object[]> buildStepExecutionParameters(StepExecution stepExecution) {<NEW_LINE>Assert.isNull(<MASK><NEW_LINE>Assert.isNull(stepExecution.getVersion(), "to-be-saved (not updated) StepExecution can't already have a version assigned");<NEW_LINE>validateStepExecution(stepExecution);<NEW_LINE>stepExecution.setI...
stepExecution.getId(), "to-be-saved (not updated) StepExecution can't already have an id assigned");
614,579
public static void orderBandsIntoRGB(InterleavedU8 image, BufferedImage input) {<NEW_LINE>boolean swap = swapBandOrder(input);<NEW_LINE>// Output formats are: RGB and RGBA<NEW_LINE>if (swap) {<NEW_LINE>if (image.getNumBands() == 3) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, image.height, y -> {<NEW_LINE>...
= index + image.width * 3;
1,181,317
protected void updateOKStatus() {<NEW_LINE>IStatus status = null;<NEW_LINE>if (selectRemoteButton.getSelection()) {<NEW_LINE>ISelection selection = tv.getSelection();<NEW_LINE>if (selection != null && !selection.isEmpty() && manualEurekaURL.getText() != null && manualEurekaURL.getText().length() > 0) {<NEW_LINE>status ...
ERROR, BootDashActivator.PLUGIN_ID, "please enter a valid URL");
452,686
public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {<NEW_LINE>CFMappingDef<<MASK><NEW_LINE>try {<NEW_LINE>initializePropertiesMapDef(cfMapDef);<NEW_LINE>} catch (IntrospectionException e) {<NEW_LINE>throw new HectorObjectMapperException(e);<NEW_LINE>} catch (InstantiationException e) {<NEW_LINE>throw ne...
T> cfMapDef = initializeColumnFamilyMapDef(clazz);
834,264
private void measureRoundTrip(final Histogram histogram, final InetSocketAddress sendAddress, final ByteBuffer buffer, final DatagramChannel sendChannel, final Selector selector, final AtomicBoolean running) throws IOException {<NEW_LINE>for (sequenceNumber = 0; sequenceNumber < Common.NUM_MESSAGES; sequenceNumber++) {...
sendChannel.send(buffer, sendAddress);
359,484
private void loadAllFromPersistence() {<NEW_LINE>allCookies = new HashMap<>();<NEW_LINE>Map<String, ?> allPairs = sharedPreferences.getAll();<NEW_LINE>for (Map.Entry<String, ?> entry : allPairs.entrySet()) {<NEW_LINE>String[] uriAndName = entry.getKey(<MASK><NEW_LINE>try {<NEW_LINE>URI uri = new URI(uriAndName[0]);<NEW...
).split(SP_KEY_DELIMITER, 2);
973,292
private void generateInjectAdapter(TypeElement type, ExecutableElement constructor, List<Element> fields) throws IOException {<NEW_LINE>String packageName = getPackage(type).getQualifiedName().toString();<NEW_LINE>TypeMirror supertype = getApplicationSupertype(type);<NEW_LINE>if (supertype != null) {<NEW_LINE>supertype...
getModifiers().contains(ABSTRACT);
1,609,926
@ApiOperation(value = "Create of update a Property", response = Response.class)<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiResponses({ @ApiResponse(code = 201, message = "Property has been created"), @ApiResponse(code = 204, message = "No content, feature ...
entity(errMsg).build();
1,216,665
public NodeOverrides unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NodeOverrides nodeOverrides = new NodeOverrides();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
JsonToken token = context.getCurrentToken();
307,127
void parseBinary(int index, String[] args) {<NEW_LINE>boolean robust = true;<NEW_LINE>double size = 1;<NEW_LINE>int gridWidth = 4;<NEW_LINE>double borderWidth = 0.25;<NEW_LINE>for (; index < args.length; index++) {<NEW_LINE>String arg = args[index];<NEW_LINE>if (!arg.startsWith("--")) {<NEW_LINE>throw new RuntimeExcept...
robust = Boolean.parseBoolean(parameters);
896,058
private void spawnNewTracksForNewKeyFrame(List<Track> visibleTracks) {<NEW_LINE>// System.out.println("addNewTracks() current frame="+frameCurrent.id);<NEW_LINE>long frameID = tracker.getFrameID();<NEW_LINE>int totalRejected = 0;<NEW_LINE>tracker.spawnTracks();<NEW_LINE>List<PointTrack> spawned = tracker.getNewTracks(n...
btrack.worldLoc, btrack.worldLoc);
916,391
public synchronized boolean remove(Object object) {<NEW_LINE>PropertyChangeEvent evt = new PropertyChangeEvent(defaultView, id, object, null);<NEW_LINE>boolean removed = false;<NEW_LINE>try {<NEW_LINE>ConfigView handler = ((ConfigView) Proxy.getInvocationHandler(object)).getMasterView();<NEW_LINE>for (int index = 0; in...
.remove(index) != null);
1,643,114
public static void main(String[] args) throws Exception {<NEW_LINE>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();<NEW_LINE>MainDocumentPart mdp = wordMLPackage.getMainDocumentPart();<NEW_LINE>// Setup FootnotesPart if necessary,<NEW_LINE>// along with DocumentSettings<NEW_LINE><MASK><N...
FootnotesPart footnotesPart = mdp.getFootnotesPart();
333,747
Stateful doMultiNewKeyCached(SmallMap state, Object key, Object local_state, Object computation, @Cached("key") Object cachedNewKey, @Cached(value = "state.getKeys()", dimensions = 1) Object[] cachedOldKeys, @Cached("state.indexOf(key)") int index, @Cached(value = "buildNewKeys(cachedNewKey, cachedOldKeys)", dimensions...
newValues, 1, cachedOldKeys.length);
599,311
private static Object convert(Object value, Type targetType, List<TypeValuePair> unresolvedValues, boolean allowAmbiguity, BTypedesc t) {<NEW_LINE>if (value == null) {<NEW_LINE>if (targetType.isNilable()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>return createError(VALUE_LANG_LIB_CONVERSION_ERROR, BLangExceptionHelpe...
value, matchingType, unresolvedValues, t);
1,280,424
public synchronized void acquireReadLock() throws ConcurrencyException {<NEW_LINE>final Thread currentThread = Thread.currentThread();<NEW_LINE>final long whileStartTimeMillis = System.currentTimeMillis();<NEW_LINE>DeferredLockManager lockManager = getDeferredLockManager(currentThread);<NEW_LINE>ReadLockManager readLoc...
ConcurrencyUtil.SINGLETON.isAllowInterruptedExceptionFired());
878,477
private void parallelScan(Iterable<? extends Tree> expecteds, Iterable<? extends Tree> actuals) {<NEW_LINE>if (expecteds != null && actuals != null) {<NEW_LINE>Iterator<? extends Tree> expectedsIterator = expecteds.iterator();<NEW_LINE>Iterator<? extends Tree> actualsIterator = actuals.iterator();<NEW_LINE>while (expec...
().next()));
1,327,919
public static Map<String, String> createDetails(Exception exception) {<NEW_LINE>Map<String, String> details = new HashMap<>();<NEW_LINE>if (exception == null) {<NEW_LINE>return details;<NEW_LINE>}<NEW_LINE>FlutterFirebaseFirestoreException firestoreException = null;<NEW_LINE>if (exception instanceof FirebaseFirestoreEx...
"message", firestoreException.getMessage());
501,641
static void checkManifestPlatform(BuildContext buildContext, ContainerConfigurationTemplate containerConfig) {<NEW_LINE><MASK><NEW_LINE>Optional<Path> path = buildContext.getBaseImageConfiguration().getTarPath();<NEW_LINE>String baseImageName = path.map(Path::toString).orElse(buildContext.getBaseImageConfiguration().ge...
EventHandlers eventHandlers = buildContext.getEventHandlers();
1,355,669
public ListBotAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListBotAliasesResult listBotAliasesResult = new ListBotAliasesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
1,408,396
final BatchExecuteStatementResult executeBatchExecuteStatement(BatchExecuteStatementRequest batchExecuteStatementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchExecuteStatementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,424,860
final CreateMeetingDialOutResult executeCreateMeetingDialOut(CreateMeetingDialOutRequest createMeetingDialOutRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createMeetingDialOutRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
280,023
public ContinuousBackupsDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ContinuousBackupsDescription continuousBackupsDescription = new ContinuousBackupsDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
JsonToken token = context.getCurrentToken();
1,561,701
public void readFromNBT(NBTTagCompound nbt) {<NEW_LINE>super.readFromNBT(nbt);<NEW_LINE>glassColor = nbt.hasKey("stainedColor") ? nbt.getByte("stainedColor") : -1;<NEW_LINE>redstoneInput = 0;<NEW_LINE>for (int i = 0; i < EnumFacing.VALUES.length; i++) {<NEW_LINE>final String key = "redstoneInputSide[" + i + "]";<NEW_LI...
item + " was not an instanceof ItemPipe!" + coreState.pipeId);
776,427
public Statement apply(final Statement base, final Description description) {<NEW_LINE>return new Statement() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void evaluate() throws Throwable {<NEW_LINE>PactVerifications pactVerifications = description.getAnnotation(PactVerifications.class);<NEW_LINE>if (pactVerification...
description.getAnnotation(PactVerification.class);
289,204
private synchronized V _put(int key, V value, MODE m) {<NEW_LINE>IntKeyLinkedEntry[] tab = table;<NEW_LINE>int index = hash(key) % tab.length;<NEW_LINE>for (IntKeyLinkedEntry<V> e = tab[index]; e != null; e = e.next) {<NEW_LINE>if (CompareUtil.equals(e.key, key)) {<NEW_LINE>V old = e.value;<NEW_LINE>e.value = value;<NE...
header, header.link_next, e);
156,147
public synchronized void open() throws MonopriceAudioException {<NEW_LINE>logger.debug("Opening serial connection on port {}", serialPortName);<NEW_LINE>try {<NEW_LINE>SerialPortIdentifier portIdentifier = serialPortManager.getIdentifier(serialPortName);<NEW_LINE>if (portIdentifier == null) {<NEW_LINE>setConnected(fals...
throw new MonopriceAudioException("Opening serial connection failed: IO Exception", e);
529,603
private void unpack1(long[] buffer, int offset, int len, InputStream input) throws IOException {<NEW_LINE>if (len != 0 && len < 8) {<NEW_LINE>unpack1Unaligned(buffer, offset, len, input.read());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int blockReadableBytes = (len + 7) / 8;<NEW_LINE>for (int i = 0; i < blockReadableBytes;...
0b0000_0100 & value) >>> 2;
630,186
private GtasksTaskContainer parseRemoteTask(com.google.api.services.tasks.model.Task remoteTask, String listId) {<NEW_LINE>Task task = new Task();<NEW_LINE>ArrayList<Metadata> metadata = new ArrayList<Metadata>();<NEW_LINE>task.setValue(Task.TITLE, remoteTask.getTitle());<NEW_LINE>task.setValue(Task.CREATION_DATE, Date...
GtasksTaskContainer(task, metadata, gtasksMetadata);
39,011
public SubjectAreaOMASAPIResponse<Category> updateCategory(String serverName, String userId, String guid, Category category, boolean isReplace) {<NEW_LINE>final String methodName = "updateCategory";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, methodName);<NEW_LINE>SubjectAreaOMASAPIRes...
exception, auditLog, className, methodName);
1,356,994
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr());<NEW_LINE>Properties ctx = JSPEnv.getCtx(request);<NEW_LINE>HttpSession session = request.getSession(true);<NEW_LINE>/...
.toString(), "UTF-8"));
1,534,730
private void jumpToOutlineInEditor(FlutterOutline outline, boolean focusEditor) {<NEW_LINE>if (outline == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int offset = outline.getDartElement() != null ? outline.getDartElement().getLocation().getOffset() : outline.getOffset();<NEW_LINE>final int editorOffset = getOutl...
getCaretModel().removeCaretListener(caretListener);
374,980
public void draw(Canvas canvas) {<NEW_LINE>boolean done = true;<NEW_LINE>float ratio;<NEW_LINE>switch(mTransitionState) {<NEW_LINE>case TRANSITION_STARTING:<NEW_LINE>// initialize start alphas and start time<NEW_LINE>System.arraycopy(mAlphas, 0, mStartAlphas, 0, mLayers.length);<NEW_LINE>mStartTimeMs = getCurrentTimeMs...
mDurationMs == 0) ? 1.0f : 0.0f;
42,097
protected Pair<INDArray, INDArray> preOutput(boolean training, boolean forBackprop, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(false);<NEW_LINE>INDArray input = this.input.castTo(dataType);<NEW_LINE>if (layerConf().getRnnDataFormat() == RNNFormat.NWC) {<NEW_LINE>if (input.rank() == 3)<NEW_LINE>// NHWC to...
0, 2, 3, 1);
212,951
private Mono<Response<Void>> stopNetworkTraceSlotWithResponseAsync(String resourceGroupName, String name, String slot, 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 name is required and cannot be null."));
171,976
private void processLevel(final int currentLevel) {<NEW_LINE>final int fromLayerIndex = flat.getLayerIndex()[currentLevel + 1];<NEW_LINE>final int toLayerIndex = flat.getLayerIndex()[currentLevel];<NEW_LINE>final int fromLayerSize = flat.getLayerCounts()[currentLevel + 1];<NEW_LINE>final int toLayerSize = flat.getLayer...
flat.getActivationFunctions()[currentLevel];
1,734,383
protected boolean isAlreadyDemangled(Program program, Address address) {<NEW_LINE>String symbolName = ensureNameLength(name);<NEW_LINE>if (address.isExternalAddress()) {<NEW_LINE>Symbol extSymbol = program.getSymbolTable().getPrimarySymbol(address);<NEW_LINE>if (extSymbol == null) {<NEW_LINE>return false;<NEW_LINE>}<NE...
getSymbolTable().getSymbols(address);
1,694,654
public Answer handleConfigDriveIso(HandleConfigDriveIsoCommand cmd) {<NEW_LINE>TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.SIMULATOR_DB);<NEW_LINE>MockSecStorageVO sec;<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>sec = _mockSecStorageDao.findByUrl(cmd.getDestStore().getUrl());<NEW_LINE>if (sec ==...
TransactionLegacy.open(TransactionLegacy.SIMULATOR_DB);
764,467
final ListReviewableHITsResult executeListReviewableHITs(ListReviewableHITsRequest listReviewableHITsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReviewableHITsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
964,818
public static ErrorDescription run(HintContext ctx) {<NEW_LINE>TreePath tp = ctx.getPath();<NEW_LINE>EnhancedForLoopTree efl = (EnhancedForLoopTree) tp.getLeaf();<NEW_LINE>long statementStart = ctx.getInfo().getTrees().getSourcePositions().getStartPosition(ctx.getInfo().getCompilationUnit(), efl.getStatement());<NEW_LI...
singletonList(fix.toEditorFix());
626,882
private int modifyDB(final String preparedStatement, final Integer[] params, final String trxName) {<NEW_LINE>ResultSet rs = null;<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.prepareStatement(preparedStatement, trxName);<NEW_LINE>if (preparedStatement == SQL_INSERT_NODE) {<NEW_LINE>setIn...
, 3, params[2]);
1,622,219
public String createFolder(final String repositoryId, final Properties properties, final String folderId, final List<String> policies, final Acl addAces, final Acl removeAces, final ExtensionsData extension) {<NEW_LINE>final App app = StructrApp.getInstance(securityContext);<NEW_LINE>String uuid = null;<NEW_LINE>try (f...
get(Folder.class, folderId);
1,811,565
public void onCompleted(GraphResponse response) {<NEW_LINE>if (response.getError() != null) {<NEW_LINE>throw new FacebookException(response.getError().getErrorMessage());<NEW_LINE>} else {<NEW_LINE>String mediaID = response.getJSONObject().optString(SDKConstants.PARAM_A2U_RESPONSE_ID);<NEW_LINE>AccessToken accessToken ...
SDKConstants.PARAM_A2U_TIME_INTERVAL, this.timeInterval);
152,025
public int doStartTag() throws JspException {<NEW_LINE>HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();<NEW_LINE>// creates wsc/wu<NEW_LINE>Properties <MASK><NEW_LINE>WebSessionCtx wsc = WebSessionCtx.get(request);<NEW_LINE>//<NEW_LINE>HttpSession session = pageContext.getSession();<NEW_LINE>...
ctx = JSPEnv.getCtx(request);
1,668,060
public final T doCheckValid(RuleComponentModel data) {<NEW_LINE>Map<String, ParameterModel> params = data.getParameters();<NEW_LINE>String key = null;<NEW_LINE>try {<NEW_LINE>for (Map.Entry<String, ParameterDefinition> entry : this.getParameterDefinitions().entrySet()) {<NEW_LINE>key = entry.getKey();<NEW_LINE>entry.ge...
RuleComponentDefinition.class, "Unexpected error creating component.", e);
151,267
public void onStatistics(MonitoringStatistics statistics) {<NEW_LINE>if (domain == null) {<NEW_LINE>final String globalSubType = ",subType=" + PROPERTY_SUBTYPE_GLOBAL;<NEW_LINE>final ApplicationInfo appStats = applicationInfoProvider.get();<NEW_LINE>String appName = appStats.getResourceConfig().getApplicationName();<NE...
(statistics.getResourceClassStatistics()));
913,160
private void loadPlugins() {<NEW_LINE>logger.info("Loading plugins...");<NEW_LINE>try {<NEW_LINE>Path pluginPath = Paths.get("plugins");<NEW_LINE>if (!pluginPath.toFile().exists()) {<NEW_LINE>Files.createDirectory(pluginPath);<NEW_LINE>} else {<NEW_LINE>if (!pluginPath.toFile().isDirectory()) {<NEW_LINE>logger.warn("Pl...
getPlugins().size());
1,516,227
final UpdateDomainConfigResult executeUpdateDomainConfig(UpdateDomainConfigRequest updateDomainConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
1,690,715
protected void paintIcon(Graphics2D g2) {<NEW_LINE>final var discCol = myType == FILE_SAVE_AS ? Color.GRAY : Color.BLUE;<NEW_LINE>var bds = getScaled(2, 2, 12, 12);<NEW_LINE>g2.setColor(discCol);<NEW_LINE>g2.fillRect(bds.getX(), bds.getY(), bds.getWidth(), bds.getHeight());<NEW_LINE>g2.setColor(Color.YELLOW);<NEW_LINE>...
(arrowDown[i * 2]);
796,270
public synchronized void putDataPoint(DataPointEvent event) throws DatastoreException {<NEW_LINE>GenOrmDataSource.attachAndBegin();<NEW_LINE>try {<NEW_LINE>ImmutableSortedMap<String, String> tags = event.getTags();<NEW_LINE>String metricName = event.getMetricName();<NEW_LINE>org.kairosdb.core.DataPoint dataPoint = even...
findOrCreate(key, name, value);
1,132,976
boolean cmpItems(VirtualFrame frame, PArray left, PArray right, @Cached PyObjectRichCompareBool.EqNode eqNode, @Cached("createComparison()") BinaryComparisonNode compareNode, @Cached("createIfTrueNode()") CoerceToBooleanNode coerceToBooleanNode, @Cached ArrayNodes.GetValueNode getLeft, @Cached ArrayNodes.GetValueNode g...
), right.getLength());
852,272
private void processMyAssignment(ServerAssignmentData myAssignment) {<NEW_LINE>Set<Long> assignedContainerSet = myAssignment.getContainersList().stream().collect(Collectors.toSet());<NEW_LINE>Set<Long> liveContainerSet = Sets.newHashSet(liveContainers.keySet());<NEW_LINE>Set<Long> containersToStart = Sets.newHashSet(Se...
, assignedContainerSet).immutableCopy());
1,368,069
public com.amazonaws.services.codedeploy.model.DeploymentGroupDoesNotExistException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.DeploymentGroupDoesNotExistException deploymentGroupDoesNotExistException = new com.amazonaws.services.codedeploy...
int originalDepth = context.getCurrentDepth();
967,842
protected void onDraw(Canvas canvas) {<NEW_LINE>final int width = getMeasuredWidth();<NEW_LINE>final int height = getMeasuredHeight();<NEW_LINE>final int lThumbWidth = mLeftThumb.getMeasuredWidth();<NEW_LINE>final float lThumbOffset = mLeftThumb.getX();<NEW_LINE>final float rThumbOffset = mRightThumb.getX();<NEW_LINE>f...
lineBottom, rThumbOffset, height, mLinePaint);
1,832,910
public static ListTransitRoutersResponse unmarshall(ListTransitRoutersResponse listTransitRoutersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTransitRoutersResponse.setRequestId(_ctx.stringValue("ListTransitRoutersResponse.RequestId"));<NEW_LINE>listTransitRoutersResponse.setPageSize(_ctx.integerValue("ListTransi...
("ListTransitRoutersResponse.TransitRouters[" + i + "].AliUid"));
1,035,218
public void updateUI() {<NEW_LINE>Clipboard clipboard = new Clipboard(Display.getDefault());<NEW_LINE>String sClipText = (String) clipboard.getContents(TextTransfer.getInstance());<NEW_LINE>if (sClipText != null) {<NEW_LINE>if (lastCopiedFromClip != null && sClipText.equals(lastCopiedFromClip)) {<NEW_LINE>return;<NEW_L...
getParent().layout(true);
1,256,728
public void create(Properties ctx, TransformerHandler document) throws SAXException {<NEW_LINE>int viewId = Env.getContextAsInt(ctx, "AD_View_ID");<NEW_LINE>PackOut packOut = (PackOut) ctx.get("PackOutProcess");<NEW_LINE>if (packOut == null) {<NEW_LINE>packOut = new PackOut();<NEW_LINE>packOut.setLocalContext(ctx);<NEW...
getAD_View_Definition_ID()).list();