idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
86,952
private JPanel createPlatformsPanel() {<NEW_LINE>final <MASK><NEW_LINE>windowsButton.setSelected(Preferences.getBoolean("export.application.platform.windows"));<NEW_LINE>windowsButton.addItemListener(new ItemListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void itemStateChanged(final ItemEvent e) {<NEW_LINE>Pr...
JCheckBox windowsButton = new JCheckBox("Windows");
664,325
public void marshall(StreamingSession streamingSession, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (streamingSession == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(streamingSession.getArn(), ARN_BINDI...
streamingSession.getState(), STATE_BINDING);
1,837,765
private void generatePaySelect() {<NEW_LINE>miniTable.stopEditor(true);<NEW_LINE>if (miniTable.getRowCount() == 0)<NEW_LINE>return;<NEW_LINE>miniTable.setRowSelectionInterval(0, 0);<NEW_LINE>calculateSelection();<NEW_LINE>if (m_noSelected == 0)<NEW_LINE>return;<NEW_LINE>String msg = generatePaySelect(miniTable, (ValueN...
= new ProcessPanel(m_WindowNo, pi);
1,802,340
private void emitRow(InLongMsgHead head, GenericRowData physicalRow, Collector<RowData> out) {<NEW_LINE>if (metadataConverters.length == 0) {<NEW_LINE>out.collect(physicalRow);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int physicalArity = physicalRow.getArity();<NEW_LINE>final int metadataArity = metadataConverters.le...
getRowKind(), physicalArity + metadataArity);
1,316,124
public void write(JmeExporter ex) throws IOException {<NEW_LINE>OutputCapsule out = ex.getCapsule(this);<NEW_LINE>out.write(meshBound, "modelBound", null);<NEW_LINE>out.write(vertCount, "vertCount", -1);<NEW_LINE>out.write(elementCount, "elementCount", -1);<NEW_LINE>out.write(instanceCount, "instanceCount", -1);<NEW_LI...
write(pointSize, "pointSize", 1f);
947,146
public CompletableFuture<CommitStatus> commit() {<NEW_LINE>Set<TransactionParticipant<?>> participants = this.participants.stream().filter(p -> !p.log().records().isEmpty()).collect(Collectors.toSet());<NEW_LINE>Set<ParticipantInfo> participantInfo = participants.stream().map(participant -> new ParticipantInfo(particip...
(v -> CommitStatus.FAILURE));
346,253
final DeleteConfigurationSetResult executeDeleteConfigurationSet(DeleteConfigurationSetRequest deleteConfigurationSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConfigurationSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
766,729
public void reset(Library srcLib, Library destLib, int destHeader) throws IOException {<NEW_LINE>HeaderBlock dest = new HeaderBlock();<NEW_LINE>dest.sign = sign;<NEW_LINE>dest.commitTime = commitTime;<NEW_LINE>int outerSeq = destLib.getOuterTxSeq();<NEW_LINE>long innerSeq = destLib.getNextInnerTxSeq();<NEW_LINE>Zone zo...
int subCount = srcSubDirs.size();
271,572
final DeleteApiMappingResult executeDeleteApiMapping(DeleteApiMappingRequest deleteApiMappingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApiMappingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteApiMapping");
1,062,868
public void run() {<NEW_LINE>if (mLocatorTask.getLoadStatus() == LoadStatus.LOADED) {<NEW_LINE>// Call geocodeAsync passing in an address<NEW_LINE>final ListenableFuture<List<GeocodeResult>> geocodeResultListenableFuture = <MASK><NEW_LINE>geocodeResultListenableFuture.addDoneListener(new Runnable() {<NEW_LINE><NEW_LINE...
mLocatorTask.geocodeAsync(address, mAddressGeocodeParameters);
258,968
final CreateBudgetResult executeCreateBudget(CreateBudgetRequest createBudgetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBudgetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Budgets");
44,986
public static QualifiedName fromJson(@NonNull final JsonNode node) {<NEW_LINE>final JsonNode catalogNameNode = node.path("catalogName");<NEW_LINE>if (catalogNameNode.isMissingNode() || catalogNameNode.isNull() || !catalogNameNode.isTextual()) {<NEW_LINE>// If catalogName is not present try to load from the qualifiedNam...
viewNameNode = node.path("viewName");
1,656,138
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (controller != null && sourcePermanent != null) {<NEW_LINE>int leastToughness = Integer.MAX_V...
(ComparisonType.EQUAL_TO, leastToughness));
1,780,906
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String registryName, String privateEndpointConnectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requi...
resourceGroupName, registryName, privateEndpointConnectionName, context);
1,305,056
public ScoreAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ScoreAttributes scoreAttributes = new ScoreAttributes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
26,961
public static void commit(final String contentTitle, final VCSContext ctx) {<NEW_LINE>Utils.post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>File root = HgUtils.getRootFile(ctx);<NEW_LINE>if (root == null) {<NEW_LINE>// NOI18N<NEW_LINE>Mercurial.LOG.log(Level.FINE, "CommitAction....
commit(contentTitle, ctx, null);
1,450,460
public void transformPage(final View view, final float position) {<NEW_LINE>if (position < -1 || position > 1) {<NEW_LINE>view.setAlpha(0f);<NEW_LINE>} else {<NEW_LINE>final float scaleFactor = Math.max(MIN_SCALE, 1 <MASK><NEW_LINE>final float verticalMargin = view.getHeight() * (1 - scaleFactor) / 2;<NEW_LINE>final fl...
- Math.abs(position));
1,538,527
public void createControl(Composite parent) {<NEW_LINE>Composite container = new Composite(parent, SWT.NULL);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>container.setLayout(layout);<NEW_LINE>layout.numColumns = 3;<NEW_LINE>layout.verticalSpacing = 9;<NEW_LINE>Label label = new Label(container, SWT.NULL);<N...
Label(container, SWT.NULL);
1,350,887
public void initFactories() {<NEW_LINE>factories.put(JetSubmitJobCodec.REQUEST_MESSAGE_TYPE, toFactory(JetSubmitJobMessageTask::new));<NEW_LINE>factories.put(JetTerminateJobCodec.REQUEST_MESSAGE_TYPE, toFactory(JetTerminateJobMessageTask::new));<NEW_LINE>factories.put(JetGetJobStatusCodec.REQUEST_MESSAGE_TYPE, toFactor...
, toFactory(JetGetJobIdsByNameMessageTask::new));
1,333,686
private AstNode name(int ttFlagged, int tt) throws IOException {<NEW_LINE>String nameString = ts.getString();<NEW_LINE>int namePos = ts.tokenBeg, nameLineno = ts.lineno;<NEW_LINE>if (0 != (ttFlagged & TI_CHECK_LABEL) && peekToken() == Token.COLON) {<NEW_LINE>// Do not consume colon. It is used as an unwind indicator<N...
label.setLineno(ts.lineno);
1,156,519
public void marshall(JobQueueDetail jobQueueDetail, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (jobQueueDetail == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(jobQueueDetail.getJobQueueName(), JOBQUEUE...
jobQueueDetail.getTags(), TAGS_BINDING);
795,244
private long repairMultiByteChar(long lo, long hi, byte b) throws LineProtoException {<NEW_LINE>int n = -1;<NEW_LINE>do {<NEW_LINE>// UTF8 error<NEW_LINE>if (utf8ErrorTop == -1) {<NEW_LINE>utf8ErrorTop = utf8ErrorPos = dstPos + 1;<NEW_LINE>}<NEW_LINE>// store partial byte<NEW_LINE>dstPos = utf8ErrorPos;<NEW_LINE>utf8Er...
.getByte(utf8ErrorTop), sink);
1,761,852
public void instantiateTests(List<String> testNames) {<NEW_LINE>Catalog catalog = new Catalog();<NEW_LINE>try {<NEW_LINE>List<Class<?>> tests = catalog.getTestsClasses(testNames);<NEW_LINE>if (tests.isEmpty()) {<NEW_LINE>// DEBUG<NEW_LINE>System.out.println("No matching TESTs found!");<NEW_LINE>return;<NEW_LINE>}<NEW_L...
System.err.println("Reflection error");
1,161,806
public HeartbeatResponse call() {<NEW_LINE>TPaloBrokerService.Client client = null;<NEW_LINE>TNetworkAddress addr = new TNetworkAddress(broker.ip, broker.port);<NEW_LINE>boolean ok = false;<NEW_LINE>try {<NEW_LINE>client = ClientPool.brokerPool.borrowObject(addr);<NEW_LINE>TBrokerPingBrokerRequest request = new TBroker...
port, status.getMessage());
1,014,945
public static void main(final String[] args) {<NEW_LINE>final String bootstrapServers = args.length > 0 ? args[0] : "localhost:9092";<NEW_LINE>final Properties streamsConfiguration = new Properties();<NEW_LINE>// Give the Streams application a unique name. The name must be unique in the Kafka cluster<NEW_LINE>// again...
put(StreamsConfig.CLIENT_ID_CONFIG, "sum-lambda-example-client");
1,617,868
public UpdateMedicalVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateMedicalVocabularyResult updateMedicalVocabularyResult = new UpdateMedicalVocabularyResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
int originalDepth = context.getCurrentDepth();
935,711
private Color decodeColor(String colorString) {<NEW_LINE>if (colorString == null) {<NEW_LINE>return FunctionGraphOptions.DEFAULT_GROUP_BACKGROUND_COLOR;<NEW_LINE>}<NEW_LINE>StringTokenizer tokenizer = new StringTokenizer(colorString, ",");<NEW_LINE>int tokenCount = tokenizer.countTokens();<NEW_LINE>if (tokenCount != 4)...
blue = Integer.parseInt(blueString);
1,555,190
static <ResponseT> ResponseTransformer<ResponseT, ResponseT> toFile(Path path) {<NEW_LINE>return (resp, in) -> {<NEW_LINE>try {<NEW_LINE>InterruptMonitor.checkInterrupted();<NEW_LINE>Files.copy(in, path);<NEW_LINE>return resp;<NEW_LINE>} catch (IOException copyException) {<NEW_LINE>String copyError = "Failed to read re...
cause(copyException).build();
950,957
private void shareWith(ArrayList<ShareContactInfo> addedContacts) {<NEW_LINE>logDebug("shareWith");<NEW_LINE>ArrayList<String> contactsSelected = new ArrayList<>();<NEW_LINE>if (addedContacts != null) {<NEW_LINE>for (int i = 0; i < addedContacts.size(); i++) {<NEW_LINE>contactsSelected.add(getShareContactMail(<MASK><NE...
addedContacts.get(i)));
1,142,172
private void enterRoom() {<NEW_LINE>mTRTCCloud = TRTCCloud.sharedInstance(getApplicationContext());<NEW_LINE>mTRTCCloud.setListener(new TRTCCloudImplListener(VideoCallingActivity.this));<NEW_LINE>mTXDeviceManager = mTRTCCloud.getDeviceManager();<NEW_LINE>TRTCCloudDef.TRTCParams trtcParams = new TRTCCloudDef.TRTCParams(...
mTRTCCloud.startLocalAudio(TRTCCloudDef.TRTC_AUDIO_QUALITY_SPEECH);
1,740,049
private Set<ClassInfoType> processJarFormatInputStreamURL(URL jarURL) throws ClassScannerException {<NEW_LINE>final HashSet<ClassInfoType> citSet = new HashSet<ClassInfoType>();<NEW_LINE>try (JarInputStream jis = new JarInputStream(jarURL.openStream(), false)) {<NEW_LINE>JarEntry jarEntry = null;<NEW_LINE>while ((jarEn...
getName() + ".processJarFormatInputStreamURL", "311");
895,904
private static int parsePlanFile() {<NEW_LINE>int ret = -1;<NEW_LINE>try {<NEW_LINE>FileInputStream fis = new FileInputStream(planfilePath_);<NEW_LINE>DataInputStream dis = new DataInputStream(fis);<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(dis));<NEW_LINE>if (prefix_.isEmpty()) {<NEW_LINE>p...
(line.substring(6));
476,760
public String refreshStatistics(String entityName) {<NEW_LINE>if (StringUtils.isBlank(entityName))<NEW_LINE>return "Pass an entity name (MetaClass name, e.g. sec$User) or 'all' to refresh statistics for all entities.\n" + "Be careful, it can take very long time.";<NEW_LINE>try {<NEW_LINE>log.info("Refreshing statistics...
javaClass.getAnnotation(Table.class);
1,012,388
public static long[] coordinatesToHilbert(byte[] coords, int bitsperdim, int offset) {<NEW_LINE>final int numdim = coords.length;<NEW_LINE>final int numbits = numdim * bitsperdim;<NEW_LINE>final long[] output = BitsUtil.zero(numbits);<NEW_LINE>int rotation = 0;<NEW_LINE>long[] refl = BitsUtil.zero(numdim);<NEW_LINE>for...
(bits) + 2) % numdim;
1,015,761
public void afterPropertiesSet() throws Exception {<NEW_LINE>if (this.workingDir == null) {<NEW_LINE>String apacheWorkDir = System.getProperty("apacheDSWorkDir");<NEW_LINE>if (apacheWorkDir == null) {<NEW_LINE>apacheWorkDir = createTempDirectory("apacheds-spring-security-");<NEW_LINE>}<NEW_LINE>setWorkingDirectory(new ...
= new TcpTransport(this.port);
1,142,686
void writeLockFileContents(final RandomAccessFile file) {<NEW_LINE>try {<NEW_LINE>final Properties props = new Properties();<NEW_LINE>props.put("timestamp", StringUtil.toIsoDate(Instant.now()));<NEW_LINE>props.put("applicationPath", pwmEnvironment.getApplicationPath() == null ? "n/a" : pwmEnvironment.getApplicationPath...
.getBytes(PwmConstants.DEFAULT_CHARSET));
1,073,898
public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException {<NEW_LINE>if (arguments.length != 1 && arguments.length != 2) {<NEW_LINE>throw new UDFArgumentException("Usage : json_map( jsonstring, optional typestring ) ");<NEW_LINE>}<NEW_LINE>if (!arguments[0].getCategory().equals(Category...
valInsp = TypeInfoUtils.getStandardJavaObjectInspectorFromTypeInfo(valType);
1,836,249
protected void initVideos(@NonNull Context context, VideoGridAdapter videoGridAdapterParam, @NonNull VideosGridviewBinding gridviewBindingParam) {<NEW_LINE>initBase(context, videoGridAdapterParam, gridviewBindingParam.swipeRefreshLayout);<NEW_LINE>this.gridviewBinding = gridviewBindingParam;<NEW_LINE>// setup the video...
setVideoCategory(category, getSearchString());
460,920
private static Object textDecodeJSONB(int index, int len, ByteBuf buff) {<NEW_LINE>// Try to do without the intermediary String (?)<NEW_LINE>CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8);<NEW_LINE>Object value = null;<NEW_LINE><MASK><NEW_LINE>int pos = 0;<NEW_LINE>while (pos < s.length() &&...
String s = cs.toString();
1,489,723
private Xpp3Dom toDom(Xpp3Dom parent, Map<Object, Object> map) {<NEW_LINE>for (Map.Entry<Object, Object> entry : map.entrySet()) {<NEW_LINE>String key = entry.getKey().toString();<NEW_LINE>Object entryValue = entry.getValue();<NEW_LINE>Xpp3Dom child = new Xpp3Dom(key);<NEW_LINE>if (key.startsWith(ATTRIBUTE_PREFIX)) {<N...
(ATTRIBUTE_PREFIX, ""), entryValue);
1,334,814
private static byte[] readJar(final URL classUrl) throws IOException {<NEW_LINE>String filePart = classUrl.getFile();<NEW_LINE>int sep = filePart.lastIndexOf('!');<NEW_LINE>String file = filePart.substring(0, sep);<NEW_LINE>String entry = filePart.substring(sep + 2);<NEW_LINE>ZipFile jarFile = (ZipFile) jarCache.get(fi...
zipEntry = jarFile.getEntry(entry);
128,788
public double extractFinalResult(Float2LongOpenHashMap intermediateResult) {<NEW_LINE>ObjectIterator<Float2LongMap.Entry> iterator = intermediateResult.float2LongEntrySet().fastIterator();<NEW_LINE>Float2LongMap.Entry first = iterator.next();<NEW_LINE>long maxFrequency = first.getLongValue();<NEW_LINE>switch(_multiMode...
double sum = first.getFloatKey();
1,504,824
private int remove(@CheckForNull Object key, int hash) {<NEW_LINE>int tableIndex = hash & hashTableMask();<NEW_LINE>int next = table[tableIndex];<NEW_LINE>if (next == UNSET) {<NEW_LINE>// empty bucket<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int last = UNSET;<NEW_LINE>do {<NEW_LINE>if (getHash(entries[next]) == hash) {<N...
= getNext(entries[next]);
1,778,035
// auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T> void visitCtIntersectionTypeReference(final spoon.reflect.reference.CtIntersectionTypeReference<T> reference) {<NEW_LINE>spoon.reflect.reference.CtIntersectionTypeReference<T> aCtIntersectionTypeReference = re...
builder.copy(reference, aCtIntersectionTypeReference);
16,466
final OptionGroup executeCreateOptionGroup(CreateOptionGroupRequest createOptionGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOptionGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Fie...
endClientExecution(awsRequestMetrics, request, response);
819,055
public CreateUserResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateUserResult createUserResult = new CreateUserResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
1,495,194
public boolean createQuery(final QueryPredicate predicate, final MemoryQuery query, final boolean isFirst) {<NEW_LINE>final boolean isString = predicate.getType().equals(String.class);<NEW_LINE>final Object value = getReadValue(predicate.getValue());<NEW_LINE>final String name = predicate.getName();<NEW_LINE>checkOccur...
addPredicate(new NullPredicate(name));
1,310,667
public void run(MessageReply reply) {<NEW_LINE>if (reply.isSuccess()) {<NEW_LINE>logger.info(String.format("Deleted volume %s in Trash."<MASK><NEW_LINE>IncreasePrimaryStorageCapacityMsg imsg = new IncreasePrimaryStorageCapacityMsg();<NEW_LINE>imsg.setPrimaryStorageUuid(self.getUuid());<NEW_LINE>imsg.setDiskSize(inv.get...
, inv.getInstallPath()));
1,110,098
private void restore(final IndexShard indexShard, final Repository repository, final SnapshotRecoverySource restoreSource) {<NEW_LINE>final RecoveryState.Translog translogState = indexShard.recoveryState().getTranslog();<NEW_LINE>if (restoreSource == null) {<NEW_LINE>throw new IndexShardRestoreFailedException(shardId, ...
SegmentInfos segmentInfos = store.readLastCommittedSegmentsInfo();
323,757
public static DescribeCustomEventAttributeResponse unmarshall(DescribeCustomEventAttributeResponse describeCustomEventAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCustomEventAttributeResponse.setRequestId(_ctx.stringValue("DescribeCustomEventAttributeResponse.RequestId"));<NEW_LINE>describeCustomEven...
("DescribeCustomEventAttributeResponse.CustomEvents[" + i + "].GroupId"));
283,563
public List<GpxDisplayGroup> collectDisplayGroups(GPXFile gpxFile) {<NEW_LINE>List<GpxDisplayGroup> dg = new ArrayList<>();<NEW_LINE>String name = getGroupName(gpxFile);<NEW_LINE>if (gpxFile.tracks.size() > 0) {<NEW_LINE>for (int i = 0; i < gpxFile.tracks.size(); i++) {<NEW_LINE>GpxDisplayGroup group = <MASK><NEW_LINE>...
buildGpxDisplayGroup(gpxFile, i, name);
880,833
private ResponseSpec updatePetRequestCreation(Pet pet) throws WebClientResponseException {<NEW_LINE>Object postBody = pet;<NEW_LINE>// verify the required parameter 'pet' is set<NEW_LINE>if (pet == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'pet' when calling updatePet", HttpS...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1,336,139
public void run() {<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(65535);<NEW_LINE>SocketAddress sender;<NEW_LINE>isRunning = true;<NEW_LINE>try {<NEW_LINE>while (!Thread.interrupted() && isRunning) {<NEW_LINE>buffer.clear();<NEW_LINE>try {<NEW_LINE>sender = handle.receive(buffer);<NEW_LINE>InetAddress senderAddress...
.socket().close();
1,617,225
public FormatterStep newFormatterStep(FormatterStepConfig stepConfig) {<NEW_LINE>Map<String, String> devDependencies = TsFmtFormatterStep.defaultDevDependencies();<NEW_LINE>if (typescriptFormatterVersion != null) {<NEW_LINE>devDependencies.put("typescript-formatter", typescriptFormatterVersion);<NEW_LINE>}<NEW_LINE>if ...
(e.getValue()));
776,330
private List<NameValueCountPair> groupByStartTimeMonth(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Read.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = <MASK><NEW_LINE>Root<Read> root = cq....
cb.createQuery(Tuple.class);
1,834,784
public void moveNatural(List<Datum> data, double[][] r, double pace, double repeat) {<NEW_LINE>double[] <MASK><NEW_LINE>List<RealVector> weightedSum = calculateWeightedSums(data, r);<NEW_LINE>List<RealVector> clusterMean = new ArrayList<>(K);<NEW_LINE>for (int k = 0; k < K; k++) {<NEW_LINE>if (clusterWeight[k] > 0) {<N...
clusterWeight = VariationalInference.calculateClusterWeights(r);
1,440,818
private static void jsonToXmlStr(JSONObject jObj, StringBuffer buffer, StringBuffer tab) {<NEW_LINE>Set<Map.Entry<String, Object>> se = jObj.entrySet();<NEW_LINE>StringBuffer nowTab = new StringBuffer(tab.toString());<NEW_LINE>for (Map.Entry<String, Object> en : se) {<NEW_LINE>if (en == null || en.getValue() == null)<N...
()).append(">\n");
1,261,638
final DeleteResourcePolicyResult executeDeleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,054,250
static void write(TManifest manifest, OutputStream out) throws IOException {<NEW_LINE>CharsetEncoder encoder = Charset.defaultCharset().newEncoder();<NEW_LINE>ByteBuffer <MASK><NEW_LINE>String version = manifest.mainAttributes.getValue(TAttributes.Name.MANIFEST_VERSION);<NEW_LINE>if (version != null) {<NEW_LINE>writeEn...
buffer = ByteBuffer.allocate(512);
1,182,720
private Mono<Response<Flux<ByteBuffer>>> installUpdatesWithResponseAsync(String deviceName, String resourceGroupName) {<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_LINE>}<NEW_LINE>i...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,446,953
private static StringMatcher createAsterisksMatcher(String matcher) {<NEW_LINE>int asterisksCount = StringUtil.countChars(matcher, '*');<NEW_LINE>if (asterisksCount > 2)<NEW_LINE>return null;<NEW_LINE>if (asterisksCount == 0) {<NEW_LINE>return text -> Comparing.equal(text, matcher);<NEW_LINE>}<NEW_LINE>if (matcher.equa...
target = matcher.substring(1);
565,172
public static void copyOwnTextElementStyle(EditTextElementData textElementData, JRDesignTextElement textElement, Locale locale) {<NEW_LINE>textElementData.<MASK><NEW_LINE>textElementData.setFontSize(textElement.getOwnFontsize() != null ? NumberFormat.getNumberInstance(locale).format(textElement.getOwnFontsize()) : null...
setFontName(textElement.getOwnFontName());
770,996
final ListRootsResult executeListRoots(ListRootsRequest listRootsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRootsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
false), new ListRootsResultJsonUnmarshaller());
918,517
public ListChannelModeratorsResult listChannelModerators(ListChannelModeratorsRequest listChannelModeratorsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChannelModeratorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
580,123
static void putInAwsAggregate(Topology pojoTopology, Configuration configuration, Node pojoNode) {<NEW_LINE>VendorFamily vendorFamily = configuration.getVendorFamily();<NEW_LINE>if (vendorFamily.getAws().getSubnetId() != null) {<NEW_LINE>String subnetId = vendorFamily.getAws().getSubnetId();<NEW_LINE>Aggregate subnetAg...
.getAws().getVpcId();
1,832,569
private void filterCardsRarity(int modifiers, String actionCommand) {<NEW_LINE>// ALT or CTRL button was pushed<NEW_LINE>if ((modifiers & ActionEvent.ALT_MASK) == ActionEvent.ALT_MASK || (modifiers & ActionEvent.CTRL_MASK) == ActionEvent.CTRL_MASK) {<NEW_LINE>boolean invert = (modifiers & ActionEvent.ALT_MASK) == Actio...
.getActionCommand(), actionCommand));
697,389
public void handleOutboundPuback(@NotNull final ChannelHandlerContext ctx, @NotNull final PUBACK puback, @NotNull final ChannelPromise promise) {<NEW_LINE>final <MASK><NEW_LINE>final ClientConnection clientConnection = channel.attr(ChannelAttributes.CLIENT_CONNECTION).get();<NEW_LINE>final String clientId = clientConne...
Channel channel = ctx.channel();
383,739
public static Vector3D_F64 constraint(TrifocalTensor tensor, Point2D_F64 p1, Point2D_F64 p2, Vector3D_F64 l3, Vector3D_F64 ret) {<NEW_LINE>if (ret == null)<NEW_LINE>ret = new Vector3D_F64();<NEW_LINE>DMatrixRMaj sum = new DMatrixRMaj(3, 3);<NEW_LINE>CommonOps_DDRM.add(p1.x, <MASK><NEW_LINE>CommonOps_DDRM.add(p1.y, tens...
tensor.T1, sum, sum);
157,561
private void drawHelp(PDAnnotationText annotation, final PDAppearanceContentStream contentStream) throws IOException {<NEW_LINE>PDRectangle bbox = adjustRectAndBBox(annotation, 20, 20);<NEW_LINE>float min = Math.min(bbox.getWidth(), bbox.getHeight());<NEW_LINE>contentStream.setMiterLimit(4);<NEW_LINE>contentStream.setL...
.getTranslateInstance(500, 375));
318,642
protected ErrorDescription[] apply(TypeElement subject, ProblemContext ctx) {<NEW_LINE>AnnotationMirror annEntity = <MASK><NEW_LINE>if (subject.getKind() == ElementKind.CLASS && Utilities.getAnnotationAttrValue(annEntity, ANNOTATION_ATTRIBUTE_SEI) == null) {<NEW_LINE>Service service = ctx.getLookup().lookup(Service.cla...
Utilities.findAnnotation(subject, ANNOTATION_WEBSERVICE);
1,344,828
public Set<FileObject> extend(PhpModule phpModule) throws ExtendingException {<NEW_LINE>Set<FileObject> result = new HashSet<>();<NEW_LINE>FileObject sourceDirectory = phpModule.getSourceDirectory();<NEW_LINE>if (sourceDirectory != null) {<NEW_LINE><MASK><NEW_LINE>FileUtils.copyDirectory(new File(Nette2Options.getInsta...
String projectDirectory = sourceDirectory.getPath();
510,594
public void stop() {<NEW_LINE>if (reorder != null) {<NEW_LINE>reorder.stop();<NEW_LINE>}<NEW_LINE>running = false;<NEW_LINE>for (DatagramChannel proxyChannel : proxyChannels) {<NEW_LINE>try {<NEW_LINE>proxyChannel.close();<NEW_LINE>} catch (IOException e) {<NEW_LINE>LOGGER.error("io-error on close!", e);<NEW_LINE>}<NEW...
awaitTermination(1000, TimeUnit.MILLISECONDS);
1,481,171
public void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke) {<NEW_LINE>Range range = axis.getRange();<NEW_LINE>if (!range.contains(value)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>Line2D line = null;<NEW_LINE>double v = axis.valueT...
PlotOrientation orientation = plot.getOrientation();
1,148,949
protected int recombine(final MSeq<Phenotype<G, C>> population, final int[] individuals, final long generation) {<NEW_LINE><MASK><NEW_LINE>final var random = RandomRegistry.random();<NEW_LINE>final Phenotype<G, C> pt1 = population.get(individuals[0]);<NEW_LINE>final Phenotype<G, C> pt2 = population.get(individuals[1]);...
assert individuals.length == 2 : "Required order of 2";
504,552
public static DescribeDrdsDBClusterResponse unmarshall(DescribeDrdsDBClusterResponse describeDrdsDBClusterResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDrdsDBClusterResponse.setRequestId(_ctx.stringValue("DescribeDrdsDBClusterResponse.RequestId"));<NEW_LINE>describeDrdsDBClusterResponse.setSuccess(_ctx.boolean...
("DescribeDrdsDBClusterResponse.DbInstance.Endpoints[" + i + "].ReadWeight"));
392,731
public I_C_Queue_WorkPackage enqueueWorkPackage(@NonNull final I_C_Queue_WorkPackage workPackage, @NonNull final IWorkpackagePrioStrategy priority) {<NEW_LINE>// TODO: please really consider to move this method somewhere inside de.metas.async.api.impl.WorkPackageBuilder.build()<NEW_LINE>workPackage.setProcessed(false);...
setAD_User_InCharge_ID(userIdInCharge.getRepoId());
456,566
public static void parseClientRequestResourceHeaders(IIdType theRequestedId, Map<String, List<String>> theHeaders, IBaseResource resource) {<NEW_LINE>List<String> lmHeaders = theHeaders.get(Constants.HEADER_LAST_MODIFIED_LOWERCASE);<NEW_LINE>if (lmHeaders != null && lmHeaders.size() > 0 && StringUtils.isNotBlank(lmHead...
(eTagVersion).applyTo(resource);
312,578
private void restoreState() {<NEW_LINE>state = Preferences.userRoot().node(PREFS_ROOT_PATH);<NEW_LINE>// restore directories history<NEW_LINE>String[] directories = getPrefsStrings(state, KEY_DIRECTORIES);<NEW_LINE>SortedComboBoxModel<File> model = new SortedComboBoxModel<<MASK><NEW_LINE>for (String dirStr : directorie...
>(new File[0]);
1,293,039
public void codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, WorkingCopyOwner owner, IProgressMonitor monitor) throws JavaModelException {<NEW_LINE>if (requestor == null)...
position, prefix.length, null);
1,171,992
public PermissionCalculator build(QueryOptions queryOptions, CacheMetadata metadata) {<NEW_LINE>List<PermissionProcessor> processors = new ArrayList<>(8);<NEW_LINE>processors.add(new DirectProcessor());<NEW_LINE>if (this.plugin.getConfiguration().get(ConfigKeys.APPLY_BUKKIT_CHILD_PERMISSIONS)) {<NEW_LINE>processors.add...
(this.plugin, op));
377,740
final CompleteMultipartUploadResult executeCompleteMultipartUpload(CompleteMultipartUploadRequest completeMultipartUploadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(completeMultipartUploadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
593,979
public static void collectOverlayQuads(@Nonnull ModelBakeEvent event) {<NEW_LINE>final Block block = ModObject.block_machine_io.getBlockNN();<NEW_LINE>Map<IBlockState, ModelResourceLocation> locations = event.getModelManager().getBlockModelShapes().<MASK><NEW_LINE>NNIterator<IOMode> modes = crazypants.enderio.base.rend...
getBlockStateMapper().getVariants(block);
1,120,888
public NetworkInterface unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NetworkInterface networkInterface = new NetworkInterface();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
1,047,781
private void injectArrayRedirect(RedirectedFieldData field, AbstractInsnNode varNode, String type) {<NEW_LINE>if (varNode == null) {<NEW_LINE>String advice = "";<NEW_LINE>throw new InvalidInjectionException(this.info, String.format("Array element %s on %s could not locate a matching %s instruction in %s. %s", this.anno...
.elementType.getInternalName()));
281,656
public void start(Stage stage) {<NEW_LINE>stage.setTitle("Hello AreaChart");<NEW_LINE>final NumberAxis xAxis = new NumberAxis();<NEW_LINE>final NumberAxis yAxis = new NumberAxis();<NEW_LINE>final AreaChart<Number, Number> ac = new AreaChart<Number, Number>(xAxis, yAxis);<NEW_LINE>xAxis.setLabel("X Axis");<NEW_LINE>yAxi...
getData().add(series);
559,745
public void populateOnGround(World world, Random random, Chunk chunk) {<NEW_LINE>int sourceX = chunk.getX() << 4;<NEW_LINE>int sourceZ = chunk.getZ() << 4;<NEW_LINE>int flowerAmount = 15;<NEW_LINE>int tallGrassAmount = 5;<NEW_LINE>if (noiseGen.noise(sourceX + 8, sourceZ + 8, 0.5D, 2.0D) >= -0.8D) {<NEW_LINE>flowerAmoun...
random, x, y, z);
5,381
public StaleSecurityGroup unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>StaleSecurityGroup staleSecurityGroup = new StaleSecurityGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>tar...
().unmarshall(context));
623,261
public HttpResponse deleteOrderForHttpResponse(String orderId, Map<String, Object> params) throws IOException {<NEW_LINE>// verify the required parameter 'orderId' is set<NEW_LINE>if (orderId == null) {<NEW_LINE>throw new IllegalArgumentException("Missing the required parameter 'orderId' when calling deleteOrder");<NEW...
Object value = entry.getValue();
718,626
private void reactToPlayerState(PlayerState newState) {<NEW_LINE>positionSlider.<MASK><NEW_LINE>if (newState == PlayerState.STOPPED || newState == PlayerState.FILE_LOADED) {<NEW_LINE>newPositionValue = 0;<NEW_LINE>positionSlider.setValue(0);<NEW_LINE>setProgressLabelText(0, player.getDurationInSeconds());<NEW_LINE>}<NE...
setEnabled(newState != PlayerState.NO_FILE_LOADED);
1,059,544
private Object compensateSubStateMachine(ProcessContext context, ServiceTaskState state, Object input, StateInstance stateInstance, StateMachineEngine engine) {<NEW_LINE>String subStateMachineParentId = (String) context.getVariable(state.getName() + DomainConstants.VAR_NAME_SUB_MACHINE_PARENT_ID);<NEW_LINE>if (StringUt...
>) listInputParams.get(0);
509,298
public void matchCondition() {<NEW_LINE>reset();<NEW_LINE>if (singleRowMatching) {<NEW_LINE>if (conditionMatchers.size() == 1) {<NEW_LINE>currentRow = conditionMatchers.get(0).matchSingleRow();<NEW_LINE>} else {<NEW_LINE>currentRow = conditionMatchers.get(0).matchSingleRow();<NEW_LINE>for (int i = 1; i < conditionMatch...
get(i).match();
594,617
private final int jjMoveStringLiteralDfa8_2(long old0, long active0, long old1, long active1, long old2, long active2) {<NEW_LINE>if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)<NEW_LINE>return jjStartNfa_2(6, old0, old1, old2, 0L);<NEW_LINE>try {<NEW_LINE>curChar = input_stream.readChar();<NEW_L...
0L, active1, active2, 0L);
1,050,007
final ListGraphsResult executeListGraphs(ListGraphsRequest listGraphsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGraphsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
invoke(request, responseHandler, executionContext);
1,419,147
public static // private, so that clients can only pass in values that we know will not overflow<NEW_LINE>String internalLimitQuery(String query, long maxRows, long offset, List<Object> varbinds, DBType dbType) {<NEW_LINE>// our strategy is to create a subselect around the user-provided<NEW_LINE>// query that limits on...
SqlLoggers.LOGGER.warn("Passed a negative limit to SQL.limitQuery - ignoring limit");
421,542
private static MethodInfo makeForwarder(String thisClassName, Method meth, String desc, ConstPool cp, Class<?> declClass, String delegatorName, int index, List<Find2MethodsArgs> forwarders) {<NEW_LINE>MethodInfo forwarder = new MethodInfo(cp, meth.getName(), desc);<NEW_LINE>forwarder.setAccessFlags(Modifier.FINAL | (me...
, delegatorName, desc, origIndex));
937,232
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String s) {<NEW_LINE>switch(s) {<NEW_LINE>case KEY_INCLUDE_LOCATION:<NEW_LINE>if (locationPreference.isChecked()) {<NEW_LINE>psLabPermission.checkPermissions(<MASK><NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case KEY_UPDATE_PERIOD:<NEW_LINE>try {<NEW_L...
getActivity(), PSLabPermission.MAP_PERMISSION);
1,021,372
private void restoreState(Bundle savedInstanceState) {<NEW_LINE>changedProfile.name = savedInstanceState.getString(PROFILE_NAME_KEY);<NEW_LINE>changedProfile.stringKey = savedInstanceState.getString(PROFILE_STRINGKEY_KEY);<NEW_LINE>changedProfile.iconRes = savedInstanceState.getInt(PROFILE_ICON_RES_KEY);<NEW_LINE>chang...
Integer) savedInstanceState.getSerializable(PROFILE_CUSTOM_COLOR_KEY);
434,111
public void process(final HttpServletRequest request, final HttpServletResponse response, final FilterChain chain) throws IOException, ServletException {<NEW_LINE>final RequestManager requestManager = ComponentUtil.getRequestManager();<NEW_LINE>if (!requestManager.findUserBean(FessUserBean.class).map(user -> user.hasRo...
logger.debug("Failed to access to Web API.", e);
215,223
private String serializePlaylist(List<QueueItem> queueItems) {<NEW_LINE>// The current playlist is saved as a list of "reverse hexadecimal"<NEW_LINE>// numbers, which we can generate faster than normal decimal or<NEW_LINE>// hexadecimal numbers, which in turn allows us to save the playlist<NEW_LINE>// more often withou...
QueueItem::getSong).toList();
931,167
public void triggerListeners(final int eventType, final Object params) {<NEW_LINE>if (SWTSkin.DEBUG_VISIBILITIES) {<NEW_LINE>if (eventType == SWTSkinObjectListener.EVENT_SHOW) {<NEW_LINE>System.out.println(this + " Show " + this + " via " + Debug.getCompressedStackTrace());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// delay show ...
.getPluginInterfaceByID(initClassItems[1]);