idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,379,891
void solveElastic(final TimeStep step) {<NEW_LINE>float elasticStrength = step.inv_dt * m_elasticStrength;<NEW_LINE>for (int k = 0; k < m_triadCount; k++) {<NEW_LINE>final Triad triad = m_triadBuffer[k];<NEW_LINE>if ((triad.flags & ParticleType.b2_elasticParticle) != 0) {<NEW_LINE>int a = triad.indexA;<NEW_LINE>int b =...
.x - rs * oa.y;
1,572,127
public void OnFileOperationComplete(FileOperationsVariants currentFileOperation, boolean fileOperationResult, String path, String tag) {<NEW_LINE>if (currentFileOperation == deleteFile && !fileOperationResult) {<NEW_LINE>Log.e(LOG_TAG, "Unable to delete file " + path);<NEW_LINE>} else if (currentFileOperation == moveBi...
getPackageName() + ".fileprovider", logs);
181,811
protected String[] parseCommands(String content) {<NEW_LINE>Collection<String> parsedCommands = new ArrayList<String>();<NEW_LINE>BufferedReader in = new BufferedReader(new StringReader(content));<NEW_LINE>if (content.startsWith("[PresenceSimulation]")) {<NEW_LINE>// Presence Simulation event. Needs to be fired only if...
logger.error("reading event content throws exception", e);
1,353,371
private void updateGrabbingState() {<NEW_LINE>boolean lastGrabbingValue = mLastGrabbingState;<NEW_LINE>mLastGrabbingState = CallbackBridge.isGrabbing();<NEW_LINE>if (lastGrabbingValue == mLastGrabbingState)<NEW_LINE>return;<NEW_LINE>// Switch grabbing state then<NEW_LINE>mCurrentMap.resetPressedState();<NEW_LINE>if (mL...
CallbackBridge.sendCursorPos(mMouse_x, mMouse_y);
1,656,209
private void connect(ActionEvent evt) {<NEW_LINE>connectButton.setEnabled(false);<NEW_LINE>for (Map.Entry<Property<?>, PropertyEditor> ent : propertyEditors.entrySet()) {<NEW_LINE>Property<?> prop = ent.getKey();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Property<Object> objProp = (Property<Object>) prop;<NEW_LI...
e = AsyncUtils.unwrapThrowable(e);
397,124
public boolean visit(MySqlKey x) {<NEW_LINE>if (x.isHasConstraint()) {<NEW_LINE>print0(ucase ? "CONSTRAINT " : "constraint ");<NEW_LINE>if (x.getName() != null) {<NEW_LINE>x.getName().accept(this);<NEW_LINE>print(' ');<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final String indexType = x.getIndexType();<NEW_LINE>boolean fullText =...
clustered = "CLUSTERED".equalsIgnoreCase(indexType);
942,670
public static QueryDeviceGroupTagListResponse unmarshall(QueryDeviceGroupTagListResponse queryDeviceGroupTagListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceGroupTagListResponse.setRequestId(_ctx.stringValue("QueryDeviceGroupTagListResponse.RequestId"));<NEW_LINE>queryDeviceGroupTagListResponse.setSuccess(...
= new ArrayList<GroupTagInfo>();
635,483
protected void paintComponent(Graphics g0) {<NEW_LINE>super.paintComponent(g0);<NEW_LINE>// getX();<NEW_LINE>int x = 0;<NEW_LINE>// getY();<NEW_LINE>int y = 0;<NEW_LINE>int width = getWidth();<NEW_LINE>int height = getHeight();<NEW_LINE>// layout parameters<NEW_LINE>// initialize<NEW_LINE>cachedImage = new BufferedImag...
subBoardRenderer.setLocation(x, y);
617,550
final UpdateDashboardResult executeUpdateDashboard(UpdateDashboardRequest updateDashboardRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDashboardRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
1,350,691
public void run() {<NEW_LINE>if (!ch.isClosing()) {<NEW_LINE>UserConnection userCon = new UserConnection(bungee, ch, getName(), InitialHandler.this);<NEW_LINE>userCon.setCompressionThreshold(BungeeCord.getInstance().config.getCompressionThreshold());<NEW_LINE>userCon.init();<NEW_LINE>unsafe.sendPacket(new LoginSuccess(...
ch.setProtocol(Protocol.GAME);
1,433,377
public static int patchBitSequence(int original, int value, int[] bitsUsed, int[] offsets) {<NEW_LINE>assert bitsUsed.length == 4 && offsets.length == 4 : "bitsUsed and offsets parameter should be of length 4";<NEW_LINE>int result = 0;<NEW_LINE>int curValue = value;<NEW_LINE>for (int i = 0; i < bitsUsed.length; i++) {<...
<< (8 * i)));
288,385
private void analyzeOrderByClause() throws AnalysisException {<NEW_LINE>if (selectStmt.getOrderByElements() == null) {<NEW_LINE>supplyOrderColumn();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<OrderByElement> orderByElements = selectStmt.getOrderByElements();<NEW_LINE>if (orderByElements.size() > mvColumnItemList.size())...
setAggregationType(AggregateType.NONE, true);
615,378
public Collection<V> values() {<NEW_LINE>if (values == null) {<NEW_LINE>values = new AbstractCollection<V>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@Nonnull<NEW_LINE>public Iterator<V> iterator() {<NEW_LINE>return new MyIterator<V>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>V fieldElement(int offset) {<NEW_LINE>return ...
V) data[offset + 1];
1,552,236
public static ListPoliciesForUserResponse unmarshall(ListPoliciesForUserResponse listPoliciesForUserResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPoliciesForUserResponse.setRequestId(_ctx.stringValue("ListPoliciesForUserResponse.RequestId"));<NEW_LINE>List<Policy> policies = new ArrayList<Policy>();<NEW_LINE>for (...
("ListPoliciesForUserResponse.Policies[" + i + "].DefaultVersion"));
1,304,648
protected void processAnswer(final VMSnapshotVO vmSnapshot, UserVm userVm, final Answer as, Long hostId) {<NEW_LINE>try {<NEW_LINE>Transaction.execute(new TransactionCallbackWithExceptionNoReturn<NoTransitionException>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void doInTransactionWithoutResult(TransactionStatus ...
remove(vmSnapshot.getId());
128,225
protected void writeBarbecue(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException {<NEW_LINE>Component component = componentElement.getComponent();<NEW_LINE>BarbecueComponent barcode = (BarbecueComponent) component;<NEW_LINE>JRXmlWriteHelper writer = reportWriter.getXmlWriteHelper();<NEW_LI...
"rotation", barcode.getOwnRotation());
379,336
private void installContextMenu() {<NEW_LINE>invokeLaterIfNeeded(() -> {<NEW_LINE>final DefaultActionGroup rerunActionGroup = new DefaultActionGroup();<NEW_LINE>List<AnAction> restartActions = myBuildDescriptor.getRestartActions();<NEW_LINE>rerunActionGroup.addAll(restartActions);<NEW_LINE>if (!restartActions.isEmpty()...
filteringActionsGroup = BuildTreeFilters.createFilteringActionsGroup(this);
894,687
private static JSONDocumentPrintingOptions toJSONDocumentPrintingOptions(@NonNull final DocumentPrintOptionsIncludingDescriptors printOptions, @NonNull final String adLanguage) {<NEW_LINE>final ArrayList<JSONDocumentPrintingOption> jsonOptionsList = new ArrayList<>();<NEW_LINE>for (final DocumentPrintOptionDescriptor o...
()).build());
1,426,769
protected List<byte[]> importState(Map<String, Object> map) {<NEW_LINE>List<byte[]> result = null;<NEW_LINE>byte[][] updated_tree = new byte[tree.length][];<NEW_LINE>synchronized (tree_lock) {<NEW_LINE>for (int i = 1; i <= piece_layer_index; i++) {<NEW_LINE>byte[] layer = (byte[]) map.get(String.valueOf(i));<NEW_LINE>i...
>(layer.length / DIGEST_LENGTH);
802,174
public void testJMS2CompletionListener() throws JMSException, InterruptedException {<NEW_LINE>clearQueue(depthLimitedQueue_);<NEW_LINE>completionListener_.reset();<NEW_LINE>try (JMSContext context = queueConnectionFactory_.createContext()) {<NEW_LINE>JMSProducer producer = context.createProducer();<NEW_LINE>producer.se...
producer.send(depthLimitedQueue_, textMessage);
974,152
protected ViewLayout createViewLayout(final ViewLayoutKey key) {<NEW_LINE>final ITranslatableString caption = getProcessCaption(WEBUI_Order_ProductsProposal_Launcher.class).orElse(null);<NEW_LINE>return //<NEW_LINE>ViewLayout.builder().setWindowId(key.getWindowId()).setCaption(caption).allowViewCloseAction(ViewCloseAct...
setAllowOpeningRowDetails(false).build();
985,285
public void createMqProducer() throws MQClientException {<NEW_LINE>DefaultMQProducer producer = new DefaultMQProducer(rocketmqConfig.getProducerGroup());<NEW_LINE>producer.setNamesrvAddr(rocketmqConfig.getNamesrvAddr());<NEW_LINE>if (StrUtil.isNotBlank(rocketmqConfig.getNamespace())) {<NEW_LINE>producer.setNamespace(ro...
setRetryAnotherBrokerWhenNotStoreOK(rocketmqConfig.getRetryAnotherBrokerWhenNotStoreOK());
1,715,563
GraphQLFieldDefinition buildField(BuildContext buildCtx, TypeDefinition<?> parentType, FieldDefinition fieldDef) {<NEW_LINE>GraphQLFieldDefinition.Builder builder = GraphQLFieldDefinition.newFieldDefinition();<NEW_LINE>builder.definition(buildCtx.isCaptureAstDefinitions() ? fieldDef : null);<NEW_LINE>builder.name(field...
), fieldDefinition.getName());
1,155,862
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerCon...
path0, path1, path2, path3);
1,599,827
protected void writeSvgStyle(JRPrintGraphicElement element) throws IOException {<NEW_LINE>writer.write("style=\"fill:" + JRColorUtil.getCssColor(element.getBackcolor()) + ";");<NEW_LINE>writer.write("stroke:" + JRColorUtil.getCssColor(element.getLinePen().getLineColor()) + ";");<NEW_LINE>writer.write("stroke-width:" + ...
).getLineWidth() + ";");
1,396,607
public static String process(ClassInfoType cit) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("package ").append(cit.getPackageName()).append(";").append("\n");<NEW_LINE>sb.append("\n");<NEW_LINE>processAnnotationsType(cit.getAnnotations(<MASK><NEW_LINE>printModifiersType(cit.getModifiers(), sb)...
), "", sb, false);
1,069,561
final ListProvisioningTemplateVersionsResult executeListProvisioningTemplateVersions(ListProvisioningTemplateVersionsRequest listProvisioningTemplateVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProvisioningTemplateVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT");
493,418
public BucketList listBuckets(ListBucketsRequest listBucketRequest) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(listBucketRequest, "listBucketRequest");<NEW_LINE>Map<String, String> params = new LinkedHashMap<String, String>();<NEW_LINE>if (listBucketRequest.getPrefix() != null) {<NEW_LINE>pa...
HashMap<String, String>();
1,808,789
final GetEC2InstanceRecommendationsResult executeGetEC2InstanceRecommendations(GetEC2InstanceRecommendationsRequest getEC2InstanceRecommendationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEC2InstanceRecommendationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEC2InstanceRecommendations");
1,539,549
@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public void deleteSite(@Context final HttpServletRequest httpServletRequest, @Context final HttpServletResponse httpServletResponse, @Suspended final AsyncResponse asyncResponse, @PathParam("siteId") final Str...
delete(host, user, respectFrontendRoles);
1,290,134
protected void run() {<NEW_LINE>try {<NEW_LINE>runInterceptHook();<NEW_LINE>String donationAddressString = processModel.getDaoFacade().getParamValue(Param.RECIPIENT_BTC_ADDRESS);<NEW_LINE>Coin minerFee = trade.getTradeTxFee();<NEW_LINE>TradeWalletService tradeWalletService = processModel.getTradeWalletService();<NEW_LI...
long lockTime = trade.getLockTime();
1,588,174
private void gwFieldValueInt64V(MethodWriterContext mwc, FieldWriter fieldWriter, int OBJECT, int i, boolean jsonb) {<NEW_LINE>MethodWriter mw = mwc.mw;<NEW_LINE>String format = fieldWriter.getFormat();<NEW_LINE>String classNameType = mwc.classNameType;<NEW_LINE>int FIELD_VALUE = mwc.var(long.class);<NEW_LINE>int WRITE...
TYPE_FIELD_WRITER, "writeInt64", METHOD_DESC_WRITE_J, true);
1,417,530
final ListAutoScalingConfigurationsResult executeListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest listAutoScalingConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAutoScalingConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAutoScalingConfigurations");
696,572
public UpdateConnectionApiKeyAuthRequestParameters unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateConnectionApiKeyAuthRequestParameters updateConnectionApiKeyAuthRequestParameters = new UpdateConnectionApiKeyAuthRequestParameters();<NEW_LINE>int originalDepth = context.getCurrentDepth();<...
class).unmarshall(context));
164,370
public int read(ByteBuffer byteBuffer, int off, int len) throws IOException {<NEW_LINE>Preconditions.checkArgument(off >= 0 && len >= 0 && len + off <= byteBuffer.capacity(), PreconditionMessage.ERR_BUFFER_STATE.toString(), byteBuffer.<MASK><NEW_LINE>checkIfClosed();<NEW_LINE>if (len == 0) {<NEW_LINE>return 0;<NEW_LINE...
capacity(), off, len);
359,440
public void handleIncomingStream(HttpServletRequest req, HttpServletResponse resp) {<NEW_LINE>ConfigurableWebApplicationContext appContext = (ConfigurableWebApplicationContext) req.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);<NEW_LINE>if (appContext != null && appConte...
.getRequest().getInputStream();
465,116
protected void actionWithSelectedCards(Cards cards, Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player != null && numberToPick.calculate(game, source, this) > 0 && cards.count(filter, source.getControllerId(), source, game) > 0) {<NEW_LINE>if (!optional |...
revealCards(source, pickedCards, game);
1,793,237
private void updateports(Instance instance) {<NEW_LINE>final var facing = instance.getAttributeValue(StdAttr.FACING);<NEW_LINE>final var volumeWidth = (byte) instance.getAttributeValue(VOLUME_WIDTH).getWidth();<NEW_LINE>final <MASK><NEW_LINE>if (facing == Direction.EAST || facing == Direction.WEST) {<NEW_LINE>ports[FRE...
var ports = new Port[4];
10,496
void addResource(String type, String name, TypedResource value) {<NEW_LINE>ResName resName = new ResName(packageName, type, name);<NEW_LINE>// compound style names were previously registered with underscores (TextAppearance_Small)<NEW_LINE>// because they came from R.style; re-register with dots.<NEW_LINE>ResName resNa...
IllegalStateException(resName + " assigned ID to already existing " + existing);
3,394
public static void convertBodyToBaf(SootMethod m) {<NEW_LINE><MASK><NEW_LINE>Assert.assertNotNull(b);<NEW_LINE>if (!(b instanceof BafBody)) {<NEW_LINE>// If ShimpleBody, first convert to JimpleBody<NEW_LINE>if (b instanceof ShimpleBody) {<NEW_LINE>b = ((ShimpleBody) b).toJimpleBody();<NEW_LINE>}<NEW_LINE>Assert.assertT...
Body b = m.retrieveActiveBody();
1,734,877
private Expression rewriteDouble(Literal literal, double value) {<NEW_LINE>if (testType.equals(TypeConstants.DOUBLE)) {<NEW_LINE>if (Double.isNaN(value)) {<NEW_LINE>return new ArithmeticOperation(BytecodeLoc.NONE, Literal.DOUBLE_ZERO, Literal.DOUBLE_ZERO, ArithOp.DIVIDE);<NEW_LINE>}<NEW_LINE>if (Double.compare(Double.N...
Literal.DOUBLE_ZERO, ArithOp.DIVIDE);
1,527,703
public void protocolSelectionChanged(final NSPopUpButton sender) {<NEW_LINE>if (null == sender.selectedItem().representedObject()) {<NEW_LINE>final PreferencesController controller = PreferencesControllerFactory.instance();<NEW_LINE>controller.window().makeKeyAndOrderFront(null);<NEW_LINE>controller.setSelectedPanel(Pr...
setPort(selected.getDefaultPort());
1,236,890
private Change createReferenceUpdatingMoveChange(IProgressMonitor pm) throws JavaModelException {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>pm.beginTask("", 2 + (fUpdateQualifiedNames ? 1 : 0));<NEW_LINE>try {<NEW_LINE>CompositeChange composite = new DynamicValidationStateChange(RefactoringCoreMessages.ReorgPolicy_move);<NEW_LI...
, fChangeManager.getAllChanges()));
544,733
private SamLocusAndReferenceIterator createSamLocusAndReferenceIterator(final SamReader sam, final ReferenceSequenceFileWalker referenceSequenceFileWalker) {<NEW_LINE>sequenceDictionary = referenceSequenceFileWalker.getSequenceDictionary();<NEW_LINE>if (sam.getFileHeader().getSortOrder() != SAMFileHeader.SortOrder.coor...
= new SamLocusAndReferenceIterator(referenceSequenceFileWalker, samLocusIterator);
1,589,208
final ForgotPasswordResult executeForgotPassword(ForgotPasswordRequest forgotPasswordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(forgotPasswordRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
611,496
public ImportKeysListEntry createFromParcel(final Parcel source) {<NEW_LINE>ImportKeysListEntry vr = new ImportKeysListEntry();<NEW_LINE>vr.mParcelableKeyRing = source.readParcelable(ParcelableKeyRing.class.getClassLoader());<NEW_LINE>vr.mPrimaryUserId = <MASK><NEW_LINE>vr.mUserIds = new ArrayList<>();<NEW_LINE>source....
(UserId) source.readSerializable();
1,133,741
public DataSet loadFromMetaData(List<RecordMetaData> list) throws IOException {<NEW_LINE>if (underlying == null) {<NEW_LINE>SequenceRecord r = recordReader.loadSequenceFromMetaData<MASK><NEW_LINE>initializeUnderlying(r);<NEW_LINE>}<NEW_LINE>// Two cases: single vs. multiple reader...<NEW_LINE>List<RecordMetaData> l = n...
(list.get(0));
1,269,356
public DeleteConnectorResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteConnectorResult deleteConnectorResult = new DeleteConnectorResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
class).unmarshall(context));
1,544,472
public int compareTo(getTabletServerStatus_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()...
this.sec, other.sec);
352,519
public void init(GameEngine engine) {<NEW_LINE>// context from loading state gets used.<NEW_LINE>nuiManager = context.get(NUIManager.class);<NEW_LINE>worldRenderer = context.get(WorldRenderer.class);<NEW_LINE>eventSystem = context.get(EventSystem.class);<NEW_LINE>componentSystemManager = context.get(ComponentSystemMana...
context.get(StorageServiceWorker.class);
542,461
public boolean authorize(ZapRequest request, boolean verbose) {<NEW_LINE>if (allowAny) {<NEW_LINE>if (verbose) {<NEW_LINE>System.out.println("ZAuth: allowed (CURVE allow any client)");<NEW_LINE>}<NEW_LINE>return true;<NEW_LINE>} else {<NEW_LINE>if (certStore != null) {<NEW_LINE>if (certStore.containsPublicKey(request.c...
certStore.getMetadata(request.clientKey);
1,545,290
public static QueryAuthResponse unmarshall(QueryAuthResponse queryAuthResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAuthResponse.setRequestId(_ctx.stringValue("QueryAuthResponse.RequestId"));<NEW_LINE>queryAuthResponse.setCode(_ctx.integerValue("QueryAuthResponse.Code"));<NEW_LINE>queryAuthResponse.setSuccess(_ct...
("QueryAuthResponse.Data.InfoDTOList[" + i + "].ItemRecordVid"));
1,577,967
private HttpRequest.Builder updateUserRequestBuilder(String username, User body) throws ApiException {<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");<NEW_LINE>}<NEW_LI...
localVarRequestBuilder.header("Accept", "application/json");
934,887
public void onBindViewHolder(ViewHolder holder, int position) {<NEW_LINE>DataMPU6050 temp = results.get(position);<NEW_LINE>holder.tvAx.setText(DataFormatter.formatDouble(temp.getAx<MASK><NEW_LINE>holder.tvAy.setText(DataFormatter.formatDouble(temp.getAy(), DataFormatter.LOW_PRECISION_FORMAT));<NEW_LINE>holder.tvAz.set...
(), DataFormatter.LOW_PRECISION_FORMAT));
16,310
public static INDArray generatePointsOnGraph(double xMin, double xMax, double yMin, double yMax, int nPointsPerAxis) {<NEW_LINE>// generate all the x,y points<NEW_LINE>double[][] evalPoints = new double[nPointsPerAxis * nPointsPerAxis][2];<NEW_LINE>int count = 0;<NEW_LINE>for (int i = 0; i < nPointsPerAxis; i++) {<NEW_...
/ (nPointsPerAxis - 1) + xMin;
42,756
public RegisterWorkerPResponse call() throws Exception {<NEW_LINE>// If an error was received earlier, the stream is no longer open<NEW_LINE>Preconditions.checkState(mErrorReceived.get() == null, <MASK><NEW_LINE>// Initialize the context on the 1st message<NEW_LINE>synchronized (workerRequestObserver) {<NEW_LINE>if (mC...
"The stream has been closed due to an earlier error received: %s", mErrorReceived.get());
349,191
private void processManifest(Manifest mf, ClassLoader mcl) {<NEW_LINE>if (mf != null) {<NEW_LINE>Attributes attrs = mf.getMainAttributes();<NEW_LINE>String cnames = null;<NEW_LINE>String xnames = null;<NEW_LINE>if (attrs != null) {<NEW_LINE>cnames = attrs.getValue(PROBE_PROVIDER_CLASS_NAMES);<NEW_LINE>if (cnames != nul...
Level.SEVERE, unableToLoadProbeProvider, e);
1,762,651
public void update() {<NEW_LINE>MinecraftServer server = mod.getServer();<NEW_LINE>if (server == null) {<NEW_LINE>this.online = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ServerPlayerEntity player = server.<MASK><NEW_LINE>if (player == null) {<NEW_LINE>this.online = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.gam...
getPlayerList().getPlayerByUUID(uuid);
1,053,279
public InteractionResultHolder<ItemStack> use(Level world, Player player, @Nonnull InteractionHand hand) {<NEW_LINE>ItemStack stack = player.getItemInHand(hand);<NEW_LINE>if (!world.isClientSide) {<NEW_LINE>ItemStack copy = stack.copy();<NEW_LINE>copy.setCount(1);<NEW_LINE>EntityThornChakram c = new EntityThornChakram(...
() * 0.4F + 0.8F));
1,297,126
public void readFromWithId(ShardSearchContextId id, StreamInput in) throws IOException {<NEW_LINE>this.contextId = id;<NEW_LINE>from = in.readVInt();<NEW_LINE>size = in.readVInt();<NEW_LINE>int numSortFieldsPlus1 = in.readVInt();<NEW_LINE>if (numSortFieldsPlus1 == 0) {<NEW_LINE>sortValueFormats = null;<NEW_LINE>} else ...
(InternalAggregations.readFrom(in));
1,103,724
String format(@NonNull BiFunction<Integer, String, String> handler) {<NEW_LINE>Objects.requireNonNull(handler);<NEW_LINE>String pat = pattern;<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>while (pat.length() > 0) {<NEW_LINE>int <MASK><NEW_LINE>if (subst < 0) {<NEW_LINE>result.append(pat);<NEW_LINE>brea...
subst = pat.indexOf('{');
1,716,351
public DescribeAlarmsForMetricResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAlarmsForMetricResult describeAlarmsForMetricResult = new DescribeAlarmsForMetricResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>i...
().unmarshall(context));
401,313
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...
getAccountId(), "AccountId", "createJobRequest");
1,741,131
public void run() {<NEW_LINE>Map<String, String> strategyMap = cm.getHashAll(UAV_CACHE_REGION, RT_STRATEGY_KEY);<NEW_LINE>try {<NEW_LINE>strategyLock.lockInterruptibly();<NEW_LINE>fScope.clear();<NEW_LINE>mScope.clear();<NEW_LINE>iScope.clear();<NEW_LINE>multiInsts.clear();<NEW_LINE>strategies.clear();<NEW_LINE>if (nul...
= new NotifyStrategy(key, json);
136,027
protected void startUp() {<NEW_LINE>eventBus.register(this);<NEW_LINE>LOG.debug("Starting processing status recorder service");<NEW_LINE>try {<NEW_LINE>dbService.get().ifPresent(processingStatus -> {<NEW_LINE>LOG.debug("Loaded persisted processing status: {}", processingStatus);<NEW_LINE>// Do not directly set the time...
ReceiveTimes receiveTimes = processingStatus.receiveTimes();
19,526
protected List findByCompanyId(String companyId, int begin, int end, OrderByComparator obc) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM UserTracker IN CLASS com.liferay.portal.ejb...
.setString(queryPos++, companyId);
162,346
private static void heapDump(SparkPlatform platform, CommandSender sender, CommandResponseHandler resp, Arguments arguments) {<NEW_LINE>Path file = platform.resolveSaveFile("heap", HeapDump.isOpenJ9() ? "phd" : "hprof");<NEW_LINE>boolean liveOnly = !arguments.boolFlag("include-non-live");<NEW_LINE>if (arguments.boolFla...
, file.toString()));
1,357,395
private void init() {<NEW_LINE>try {<NEW_LINE>UnitConfig uc = loadUnit();<NEW_LINE>// Unit<NEW_LINE>jSTempTimeOut.setValue(new Integer(uc.getTempTimeOutHour()));<NEW_LINE>jSProxyTimeOut.setValue(new Integer(uc.getProxyTimeOutHour()));<NEW_LINE>jSInterval.setValue(new Integer(uc.getInterval()));<NEW_LINE>cbAutoStart.set...
int rc = tableHosts.getRowCount();
388
private void createProjectsRoot(Composite workArea) {<NEW_LINE>// project specification group<NEW_LINE>Composite projectGroup = new Composite(workArea, SWT.NONE);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = 3;<NEW_LINE>layout.makeColumnsEqualWidth = false;<NEW_LINE>layout.marginWidth = 0...
.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));
1,775,874
private // not the nicest but this is always the case anyway.<NEW_LINE>FlightDataType findFlightDataType(String name) {<NEW_LINE>// Kevins version with lookup by key. Not using right now<NEW_LINE>// Look in built in types<NEW_LINE>for (FlightDataType t : FlightDataType.ALL_TYPES) {<NEW_LINE>if (t.getName().equals(name)...
name, "Unknown", UnitGroup.UNITS_NONE);
1,810,532
private void resolveGroups(String dispName, String include, String exclude) {<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.fine("resolveGroups include=" + include);<NEW_LINE>List<String> applicablePaths = getApplicablePaths(Collections.singleton(include), Collections.singleton(exclude));<NEW_LINE>Set<String> groups <MASK><NEW_LI...
= new HashSet<String>();
249,753
protected void doExecute(Task task, DeleteCalendarAction.Request request, ActionListener<AcknowledgedResponse> listener) {<NEW_LINE>final String calendarId = request.getCalendarId();<NEW_LINE>ActionListener<Calendar> calendarListener = ActionListener.wrap(calendar -> {<NEW_LINE>// Delete calendar and events<NEW_LINE>De...
jobResultsProvider.calendar(calendarId, calendarListener);
1,828,777
private void registerHostnameVerifier(String verifier, RestClientBuilder builder) {<NEW_LINE>try {<NEW_LINE>Class<?> verifierClass = Thread.currentThread().getContextClassLoader().loadClass(verifier);<NEW_LINE>builder.hostnameVerifier((HostnameVerifier) verifierClass.<MASK><NEW_LINE>} catch (NoSuchMethodException e) {<...
getDeclaredConstructor().newInstance());
494,732
public static void sendAlloyForMelting(FluidStack output, Object... input) {<NEW_LINE>assert (input.length % 2 == 0);<NEW_LINE>FluidStack[] inputStacks = new FluidStack[input.length / 2];<NEW_LINE>for (int i = 0; i < inputStacks.length; i++) if (input[i * 2] instanceof String && input[i * 2 + 1] instanceof Integer) {<N...
message.put("alloy", tagList);
418,845
public void openRemoteDatabase(OChannelBinaryAsynchClient network) throws IOException {<NEW_LINE>OStorageRemoteSession session = getCurrentSession();<NEW_LINE>OStorageRemoteNodeSession nodeSession = session.getOrCreateServerSession(network.getServerURL());<NEW_LINE>OOpen37Request request = new OOpen37Request(name, sess...
writeByte(request.getCommand());
184,655
public boolean visit(MySqlSelectQueryBlock x) {<NEW_LINE>if (x.getFrom() != null) {<NEW_LINE>final SQLExpr sqlExpr = SQLUtils.buildCondition(SQLBinaryOperator.BooleanAnd, SQLUtils.toSQLExpr("1!=1"), true, x.getWhere());<NEW_LINE>x.setWhere(sqlExpr);<NEW_LINE>} else {<NEW_LINE>// if a sql without reference any table. it...
(new SQLIntegerExpr(0)));
1,053,037
private AddEntryResult addEntry(final int recordVersion, final byte[] entryContent, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>int recordSizesDiff;<NEW_LINE>int position;<NEW_LINE>int finalVersion = 0;<NEW_LINE>long pageIndex;<NEW_LINE>do {<NEW_LINE>final FindFreePageResult findFreePageResult...
int freeSpace = localPage.getFreeSpace();
1,126,768
Mark mark(int methodId, ProfilingSessionStatus status) {<NEW_LINE>ClientUtils.SourceCodeSelection method = null;<NEW_LINE>synchronized (markGuard) {<NEW_LINE>if (marks == null || marks.length == 0 || status == null) {<NEW_LINE>return Mark.DEFAULT;<NEW_LINE>}<NEW_LINE>status.beginTrans(false);<NEW_LINE>try {<NEW_LINE>St...
] cNames = status.getInstrMethodClasses();
1,671,320
public void addAll(final List<? extends Entry> entries, final OBinarySerializer<K> keySerializer, final boolean isEncrypted) {<NEW_LINE>final int currentSize = size();<NEW_LINE>final boolean isLeaf = isLeaf();<NEW_LINE>if (!isLeaf) {<NEW_LINE>for (int i = 0; i < entries.size(); i++) {<NEW_LINE>final NonLeafEntry entry ...
byte[] key = entry.key;
537,684
public HbaseOutputFormat finish() {<NEW_LINE>Preconditions.checkNotNull(format.host, "zookeeperQuorum should be specified");<NEW_LINE>Preconditions.checkNotNull(format.tableName, "tableName should be specified");<NEW_LINE>Preconditions.checkNotNull(format.columnNames, "columnNames should be specified");<NEW_LINE>Precon...
String[format.columnNames.length];
699,499
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE><MASK><NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_termux_api);<NEW_LINE>// Set NightMode.APP_NIGHT_MODE<NEW_LINE>TermuxThemeUtils.setAppNightMode(this);<NEW_LINE>AppCompatActivityUtils.setNightMode(this, NightMode....
Logger.logDebug(LOG_TAG, "onCreate");
326,684
private boolean updateExistingSchemas(String namespace, String compression, List<ChangeSet> changeSets, List<HTableDescriptor> currentHtds, List<SchemaChangeLog> executedLogs) {<NEW_LINE><MASK><NEW_LINE>List<String> executedChangeLogIds = executedLogs.stream().map(SchemaChangeLog::getId).collect(Collectors.toList());<N...
logger.info("[{}] Updating hbase schema.", namespace);
948,030
public void handleNotification(Notification notification) {<NEW_LINE>super.handleNotification(notification);<NEW_LINE>Sandbox sandbox = Sandbox.getInstance();<NEW_LINE><MASK><NEW_LINE>switch(notification.getName()) {<NEW_LINE>case Overlap2DMenuBar.CUSTOM_VARIABLES_EDITOR_OPEN:<NEW_LINE>viewComponent.show(uiStage);<NEW_...
UIStage uiStage = sandbox.getUIStage();
81,547
void jbInit() throws Exception {<NEW_LINE>this.setLayout(borderLayout1);<NEW_LINE>textF.setEditable(false);<NEW_LINE>textF.setText(text);<NEW_LINE>cancelB.setMaximumSize(new Dimension(120, 26));<NEW_LINE>cancelB.setMinimumSize(new Dimension(80, 26));<NEW_LINE>cancelB.setPreferredSize(new Dimension(120, 26));<NEW_LINE>c...
flowLayout1.setAlignment(FlowLayout.RIGHT);
1,177,858
// helper method for repeatHelper.<NEW_LINE>private static int findInterval(String inputText) {<NEW_LINE>HashMap<String, Integer> wordsToNum = new HashMap<String, Integer>();<NEW_LINE>String[] words = new String[] { "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve" };<NEW...
interval = wordsToNum.get(intervalStr);
1,101,720
public TrialMinutes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TrialMinutes trialMinutes = new TrialMinutes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
860,217
void addAll(String[] unmatched) {<NEW_LINE>if (setter != null) {<NEW_LINE>try {<NEW_LINE>setter.set(unmatched);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>throw new PicocliException(String.format("Could not invoke setter (%s) with unmatched argument array '%s': %s", setter, Arrays.toString(unmatched), ex), ex);<NEW_LIN...
(Arrays.asList(unmatched));
620,376
public void startUp(FloodlightModuleContext context) {<NEW_LINE>// paag: register the IControllerCompletionListener<NEW_LINE>floodlightProviderService.addCompletionListener(this);<NEW_LINE>floodlightProviderService.addOFMessageListener(OFType.PACKET_IN, this);<NEW_LINE>floodlightProviderService.addOFMessageListener(OFT...
log.debug("FlowMod priority set to {}", FLOWMOD_PRIORITY);
603,842
public void marshall(CopyPackageVersionsRequest copyPackageVersionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (copyPackageVersionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(copyPa...
copyPackageVersionsRequest.getVersionRevisions(), VERSIONREVISIONS_BINDING);
785
private void detectNodeJs(Project project) {<NEW_LINE>NodeJsSupport nodeJsSupport = NodeJsSupport.forProject(project);<NEW_LINE><MASK><NEW_LINE>if (preferences.isEnabled()) {<NEW_LINE>// already enabled => noop<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PackageJson packageJson = nodeJsSupport.getPackageJson();<NEW_LINE>if (!...
NodeJsPreferences preferences = nodeJsSupport.getPreferences();
1,853,395
public synchronized void startup() throws Exception {<NEW_LINE>// Make sure the festival directory structure exists under<NEW_LINE>// mary.base/tmp:<NEW_LINE>festivalDir = new File(MaryProperties.getFilename("festival.tmp.dir", System.getProperty("mary.base") + File.separator + "tmp" + File.separator + "festival"));<NE...
) + File.separator + "Phrase");
618,298
private Map<String, Object> createNumbersMap(List<TPS> tpsData) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long dayAgo = now - TimeUnit.DAYS.toMillis(1L);<NEW_LINE>long weekAgo = now - TimeUnit.DAYS.toMillis(7L);<NEW_LINE>Map<String, Object> numbers = new HashMap<>();<NEW_LINE>TPSMutator tpsDataMonth = ...
) tpsDataDay.averageEntities()));
1,494,492
public static double stringSimilarity(String... strings) {<NEW_LINE>if (strings == null)<NEW_LINE>return 0;<NEW_LINE>Counter<String> counter = new Counter<>();<NEW_LINE>Counter<String> counter2 = new Counter<>();<NEW_LINE>for (int i = 0; i < strings[0].length(); i++) counter.incrementCount(String.valueOf(strings[0].cha...
) * counter.getCount(k);
1,564,962
protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>if (image == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int width = Math.max(this.getWidth(), 1);<NEW_LINE>final int height = Math.max(this.getHeight(), 1);<NEW_LINE>final int origWidth = Math.max(image.getWidth(), 1);<NEW_LI...
Math.round(origHeight * scale);
1,266,995
// MBeanServerConnection JMXConnector.getMBeanServerConnection(); // throws IOException<NEW_LINE>// MBeanServerConnection.queryMBeans(...) // throws IOException<NEW_LINE>// MBeanServerConnection.queryNames(...) // throws IOException<NEW_LINE>//<NEW_LINE>@Override<NEW_LINE>protected void doGet(HttpServletRequest request...
this, tc, test, e);
1,338,723
public static HashMap<String, Object> calculateLoanProvision(Properties ctx, int agreementId, Timestamp runningDate, String trxName) {<NEW_LINE>// Validate agreement<NEW_LINE>if (agreementId <= 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>HashMap<String, Object> returnValues = new HashMap<String, Object>();<NEW_LINE>...
getById(ctx, agreementId, trxName);
665,232
private static Buffer decodeEscapeByteaStringToBuffer(int index, int len, ByteBuf buff) {<NEW_LINE>Buffer buffer = Buffer.buffer();<NEW_LINE>int pos = 0;<NEW_LINE>while (pos < len) {<NEW_LINE>byte current = buff.getByte(pos + index);<NEW_LINE>if (current == '\\') {<NEW_LINE>if (pos + 2 <= len && buff.getByte(pos + inde...
+ index + 3), 8);
428,686
public static void main(String[] args) throws IOException {<NEW_LINE>PrintWriter out;<NEW_LINE>String rules;<NEW_LINE>if (args.length > 0) {<NEW_LINE>rules = args[0];<NEW_LINE>} else {<NEW_LINE>rules = "edu/stanford/nlp/ling/tokensregex/demo/rules/colors.rules.txt";<NEW_LINE>}<NEW_LINE>if (args.length > 2) {<NEW_LINE>o...
StanfordCoreNLP pipeline = new StanfordCoreNLP(properties);
1,203,321
private Mono<Response<SshPublicKeyResourceInner>> createWithResponseAsync(String resourceGroupName, String sshPublicKeyName, SshPublicKeyResourceInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoi...
error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
689,334
private List<ModoAcesso> obterModosAcessoPassados(NoChamadaFuncao chamadaFuncao) {<NEW_LINE>List<ModoAcesso> modosAcesso = new ArrayList<>();<NEW_LINE>if (chamadaFuncao.getParametros() != null) {<NEW_LINE>for (NoExpressao parametro : chamadaFuncao.getParametros()) {<NEW_LINE>if (parametro instanceof NoReferenciaVariave...
modosAcesso.add(ModoAcesso.POR_VALOR);