idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
98,697
protected void makeActions(IWorkbenchWindow window) {<NEW_LINE>Server server = ServerManager.getInstance().getDefaultServer();<NEW_LINE>int serverId = 0;<NEW_LINE>if (server != null) {<NEW_LINE>serverId = server.getId();<NEW_LINE>}<NEW_LINE>// File<NEW_LINE>register(new OpenClientThreadListAction(window, "Client Thread...
new RestartAction(window, "Restart"));
227,700
protected int normalizeSqlSplitPartitionByHotValue(SqlAlterTableSplitPartitionByHotValue sqlAlterTableSplitPartitionByHotValue, PartitionInfo partitionInfo, Map<SqlNode, RexNode> partBoundExprInfo, ExecutionContext executionContext, List<Long[]> splitPoints, int[] insertPos) {<NEW_LINE>List<SqlNode> hotKeys = sqlAlterT...
TddlRuntimeException(ErrorCode.ERR_PARTITION_MANAGEMENT, "only support for key/range column partition to split partition by hot value");
325,532
private void init(EJBEndpoint ejb, ClassLoader classLoader) throws CDIException {<NEW_LINE>try {<NEW_LINE>List<String> localInterfaceNames = ejb.getLocalBusinessInterfaceNames();<NEW_LINE>this.localBusinessInterfaces = new ArrayList<BusinessInterfaceDescriptor<?>>(localInterfaceNames.size() + 1);<NEW_LINE>for (String i...
.isStateless = ejbType == EJBType.STATELESS_SESSION;
27,333
public static void process(GrayS16 orig, GrayS16 derivX, GrayS16 derivY) {<NEW_LINE>final short[] data = orig.data;<NEW_LINE>final <MASK><NEW_LINE>final short[] imgY = derivY.data;<NEW_LINE>final int width = orig.getWidth();<NEW_LINE>final int height = orig.getHeight() - 1;<NEW_LINE>final int stride = orig.stride;<NEW_...
short[] imgX = derivX.data;
1,378,068
public void translatePortable(PipelineNode.PTransformNode transform, QueryablePipeline pipeline, PortableTranslationContext ctx) {<NEW_LINE>final RunnerApi.WindowIntoPayload payload;<NEW_LINE>try {<NEW_LINE>payload = RunnerApi.WindowIntoPayload.parseFrom(transform.getTransform().<MASK><NEW_LINE>} catch (InvalidProtocol...
getSpec().getPayload());
1,182,121
protected void acquire() {<NEW_LINE>LOG.log(Level.FINEST, "Acquire start");<NEW_LINE>queue.drainTo(newRequests);<NEW_LINE>if (!newRequests.isEmpty()) {<NEW_LINE>if (isUniqueWorkerRequest) {<NEW_LINE>removeDuplicates();<NEW_LINE>}<NEW_LINE>pendingRequests.addAll(newRequests);<NEW_LINE>newRequests.clear();<NEW_LINE>}<NEW...
.min(PENDING_REQUEST_FETCH_INTERVAL, waitTime));
880,832
public com.amazonaws.services.ecr.model.PullThroughCacheRuleNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ecr.model.PullThroughCacheRuleNotFoundException pullThroughCacheRuleNotFoundException = new com.amazonaws.services.ecr.model.PullThrough...
JsonToken token = context.getCurrentToken();
20,937
public static ListRoleCellsByResourceAndActionResponse unmarshall(ListRoleCellsByResourceAndActionResponse listRoleCellsByResourceAndActionResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRoleCellsByResourceAndActionResponse.setCode(_ctx.stringValue("ListRoleCellsByResourceAndActionResponse.Code"));<NEW_LINE>listRole...
("ListRoleCellsByResourceAndActionResponse.Data[" + i + "].RoleName"));
1,776,430
protected void updateFromStatus(Status status) {<NEW_LINE>BigDecimal dimLevel = BigDecimal.ZERO;<NEW_LINE>String dimLevelAsString = status.getValues().get("dimlevel");<NEW_LINE>if (dimLevelAsString != null) {<NEW_LINE>dimLevel = getPercentageFromDimLevel(dimLevelAsString);<NEW_LINE>} else {<NEW_LINE>// Dimmer items can...
getValues().get("state");
326,638
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x0000000...
proto.V1beta2Apps.StatefulSetStatus(this);
1,481,137
public void clean() throws IOException {<NEW_LINE>Storage storage = new Storage(imageDir);<NEW_LINE>long currentVersion = storage.getImageJournalId();<NEW_LINE>long imageDeleteVersion = currentVersion - 1;<NEW_LINE>File currentImage = storage.getImageFile(currentVersion);<NEW_LINE>if (currentImage.exists()) {<NEW_LINE>...
File metaDir = new File(imageDir);
904,410
public void hazelcastPluginShutdown() {<NEW_LINE>activeNodes.clear();<NEW_LINE>activeNodesNamesByUuid.clear();<NEW_LINE>activeNodesUuidByName.clear();<NEW_LINE>if (membershipListenerRegistration != null) {<NEW_LINE>try {<NEW_LINE>Cluster instance = hazelcastInstance.getCluster();<NEW_LINE>if (instance != null) {<NEW_LI...
error(this, "Error on shutting down Hazelcast instance", e);
389,886
public static CodegenExpression codegenLDT(CalendarSetForge forge, CodegenExpression ldt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>ChronoField chronoField <MASK><NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChild(EPTypePremad...
= forge.fieldName.getChronoField();
131,016
void initNoFileLayout() {<NEW_LINE>nofilesview = rootView.findViewById(R.id.nofilelayout);<NEW_LINE>nofilesview.setColorSchemeColors(mainFragmentViewModel.getAccentColor());<NEW_LINE>nofilesview.setOnRefreshListener(() -> {<NEW_LINE>loadlist((mainFragmentViewModel.getCurrentPath()), false, mainFragmentViewModel.getOpen...
).setTextColor(Color.WHITE);
370,860
public Resource produceResource(Class<? extends Resource> aResourceClass, ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams) throws ResourceInitializationException {<NEW_LINE>boolean noMultiprocessing = (aAdditionalParams != null && aAdditionalParams.containsKey(PARAM_NO_MULTIPROCESSING)) || (aEngineS...
.getParameterValue(PARAM_NO_MULTIPROCESSING) != null);
824,276
public static void main(String[] args) throws Exception {<NEW_LINE>TypeId<?> fibonacci = TypeId.get("Lcom/google/dexmaker/examples/Fibonacci;");<NEW_LINE>String fileName = "Fibonacci.generated";<NEW_LINE>DexMaker dexMaker = new DexMaker();<NEW_LINE>dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT);<...
code.newLocal(TypeId.INT);
1,555,354
private void readRepo() throws XmlPullParserException, IOException {<NEW_LINE>parser.require(XmlPullParser.START_TAG, NS, "repository");<NEW_LINE>Repository repository = new Repository();<NEW_LINE>repository.isPartial = "true".equals(parser<MASK><NEW_LINE>repository.partialUrl = parser.getAttributeValue(NS, "partial-ur...
.getAttributeValue(NS, "partial"));
1,188,828
public void marshall(CreateGameSessionQueueRequest createGameSessionQueueRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createGameSessionQueueRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha...
e.getMessage(), e);
1,708,725
public boolean applyNetworkACL(final long aclId) throws ResourceUnavailableException {<NEW_LINE>boolean handled = true;<NEW_LINE>boolean aclApplyStatus = true;<NEW_LINE>final List<NetworkACLItemVO> rules = _networkACLItemDao.listByACL(aclId);<NEW_LINE>// Find all networks using this ACL and apply the ACL<NEW_LINE>final...
ruleVO.getId(), ruleVO);
1,131,832
public ExecuteStatementResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExecuteStatementResult executeStatementResult = new ExecuteStatementResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
().unmarshall(context));
1,734,642
public void run(RegressionEnvironment env) {<NEW_LINE>String[] <MASK><NEW_LINE>env.advanceTime(1000);<NEW_LINE>String text = "@name('s0') select irstream * from SupportMarketDataBean#groupwin(symbol)#time_batch(10 sec)";<NEW_LINE>env.compileDeploy(text).addListener("s0");<NEW_LINE>// 1st event S1 group<NEW_LINE>env.ad...
fields = "price".split(",");
450,631
public UpdateNodegroupConfigResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateNodegroupConfigResult updateNodegroupConfigResult = new UpdateNodegroupConfigResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
().unmarshall(context));
1,161,956
public void displayClassNames(List<String> classNamesToShow, String inputText) {<NEW_LINE>StyleConstants.setFontSize(style, 20);<NEW_LINE>StyleConstants.setForeground(style, theme.getIdentifiersColor());<NEW_LINE>StyleConstants.setBackground(<MASK><NEW_LINE>if (classNamesToShow.size() > 50) {<NEW_LINE>displayAllClasses...
style, theme.getBackgroundColor());
736,751
private NoMetadataModelInfo createNoMetadataModelInfo(ServiceReferenceDescriptor serviceRef, JaxrpcMappingDescriptor mappingDesc) throws Exception {<NEW_LINE>NoMetadataModelInfo modelInfo = rpcFactory.createNoMetadataModelInfo();<NEW_LINE>URL wsdlFile = serviceRef.hasWsdlOverride() ? serviceRef.getWsdlOverride() : serv...
modClassPath, File.pathSeparator, null);
502,304
private final void _restoreStatePersistentlyLocked(AbstractItemLink link, LinkOwner stream, long lockID) throws SevereMessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "_restoreStatePersistentlyLocked", new Object[] { link, stream, <MASK><NE...
Long.valueOf(lockID) });
1,072,716
private void runNonDaemon(final Runnable r) throws CoreException {<NEW_LINE>if (!Thread.currentThread().isDaemon()) {<NEW_LINE>r.run();<NEW_LINE>} else {<NEW_LINE>final AESemaphore sem = new AESemaphore("Core:runNonDaemon");<NEW_LINE>final Throwable[] error = { null };<NEW_LINE>new AEThread2("Core:runNonDaemon", false)...
"Operation failed", error[0]));
1,555,595
protected void convertElementToJson(ObjectNode elementNode, ObjectNode propertiesNode, ActivityProcessor processor, BaseElement baseElement, CmmnModel cmmnModel, CmmnJsonConverterContext converterContext) {<NEW_LINE>ProcessTask processTask = (ProcessTask) ((PlanItem) baseElement).getPlanItemDefinition();<NEW_LINE>if (p...
String processRef = processTask.getProcessRef();
1,683,136
protected void processMessage() {<NEW_LINE>if (!(predicate instanceof PartitionPredicate)) {<NEW_LINE>super.processMessage();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int partitionId = clientMessage.getPartitionId();<NEW_LINE>OperationFactory operationFactory = createOperationFactory();<NEW_LINE><MASK><NEW_LINE>// We are r...
OperationServiceImpl operationService = nodeEngine.getOperationService();
988,079
protected MessageListenerContainer createListenerContainer(KafkaListenerEndpoint endpoint, KafkaListenerContainerFactory<?> factory) {<NEW_LINE>if (endpoint instanceof MethodKafkaListenerEndpoint) {<NEW_LINE>MethodKafkaListenerEndpoint<?, ?> mkle = (<MASK><NEW_LINE>Object bean = mkle.getBean();<NEW_LINE>if (bean instan...
MethodKafkaListenerEndpoint<?, ?>) endpoint;
833,692
protected BeanDefinition doParseRouter(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder recipientListRouterBuilder = BeanDefinitionBuilder.genericBeanDefinition(RecipientListRouter.class);<NEW_LINE>List<Element> childElements = DomUtils.getChildElementsByTagName(element, "recipient");<NEW_...
= new ManagedList<BeanDefinition>();
1,483,766
private void visit(PsiModifierListOwner psiModifierListOwner) {<NEW_LINE>for (RedundantModifiersInfo redundantModifiersInfo : redundantModifiersInfo) {<NEW_LINE>RedundantModifiersInfoType infoType = redundantModifiersInfo.getType();<NEW_LINE>PsiModifierListOwner parentModifierListOwner = PsiTreeUtil.getParentOfType(psi...
, new RemoveModifierFix(modifier)));
174,852
public void run(RegressionEnvironment env) {<NEW_LINE>// test uncorrelated<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@Hint('enable_window_subquery_indexshare') @public create window MyWindow#keepall as SupportEventWithManyArray;\n" + "insert into MyWindow select * from SupportEventWith...
[] { 1 }, 21);
374,159
private MutableConsumerVariantMatchResult findProducersFor(AttributeContainerInternal actual, AttributeContainerInternal requested) {<NEW_LINE>// Prefer direct transformation over indirect transformation<NEW_LINE>List<ArtifactTransformRegistration> candidates = new ArrayList<>();<NEW_LINE>List<ArtifactTransformRegistra...
= new MutableConsumerVariantMatchResult(nbOfTransforms * nbOfTransforms);
1,660,610
void allSlotsInOptionalInfoDo() throws CorruptDataException {<NEW_LINE>U32Pointer optionalInfo = J9ROMClassHelper.optionalInfo(romClass);<NEW_LINE>SelfRelativePointer cursor = SelfRelativePointer.cast(optionalInfo);<NEW_LINE>if (romClass.optionalFlags().anyBitsIn(J9NonbuilderConstants.J9_ROMCLASS_OPTINFO_SOURCE_FILE_NA...
(cursor.get()));
1,045,813
private static Value<?> argValue(ExecutableNormalizedField executableNormalizedField, String argName, @Nullable Object value, VariableAccumulator variableAccumulator) {<NEW_LINE>if (value instanceof List) {<NEW_LINE>ArrayValue.Builder arrayValue = ArrayValue.newArrayValue();<NEW_LINE>arrayValue.values(map((List<Object>...
Builder objectValue = ObjectValue.newObjectValue();
160,824
public static PermissionSetter executableExtensions(final String... exts) {<NEW_LINE>if (OsUtils.isWindows()) {<NEW_LINE>// It may be ok to do nothing for windows? (note: not tested!)<NEW_LINE>return NULL;<NEW_LINE>} else {<NEW_LINE>// Assume we are unix if not Windows (Mac OS X is ok)<NEW_LINE>return new PermissionSet...
.currentThread().interrupt();
1,799,255
public static HTMLPane fromString(String text) {<NEW_LINE>if (text == null)<NEW_LINE>return null;<NEW_LINE>HTMLPane pane = new HTMLPane();<NEW_LINE>text = text.replace("{fatJar}", String.valueOf(FAT_JAR));<NEW_LINE>text = text.replace("{java}", Configuration.java);<NEW_LINE>text = text.replace("{javac}", Configuration....
"{bcvDir}", BCVDir.getAbsolutePath());
866,185
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,103,549
public JobInstanceEntity call() {<NEW_LINE>JobInstanceEntity instance = entityMgr.find(JobInstanceEntity.class, jobInstanceId);<NEW_LINE>if (instance == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>verifyStateTransitionIsValid(instance, InstanceState.JMS_QUEUED);<NEW_LINE>} catch (BatchIllegalJobStatusTra...
throw new NoSuchJobInstanceException("No job instance found for id = " + jobInstanceId);
260,192
public void paint(Graphics2D g2, SceneContext sceneContext) {<NEW_LINE>if (!myUnClipStack.isEmpty()) {<NEW_LINE>System.err.println("There are still clippings in the clip stack.");<NEW_LINE>myUnClipStack.clear();<NEW_LINE>}<NEW_LINE>int count = myCommands.size();<NEW_LINE>if (count == 0) {<NEW_LINE>return;<NEW_LINE>}<NE...
System.out.println("<");
957,764
private DexFile dexoptInternal(File validDex) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>DexFile dexFile = null;<NEW_LINE>String optimizedPath = optimizedPathFor(validDex, dexOptDir());<NEW_LINE>try {<NEW_LINE>if (!externalStorage) {<NEW_LINE>if (!new File(optimizedPath).exists()) {<NEW_LINE>Log.e...
(handler.obtainMessage(MSG_ID_RELEASE_FAILED));
346,416
public static <T> SettingConstraint<T> any(SettingConstraint<T> first, SettingConstraint<T>... rest) {<NEW_LINE>return new SettingConstraint<>() {<NEW_LINE><NEW_LINE>private final SettingConstraint<T>[] constraints = <MASK><NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void validate(T value, Configuration config) {<NEW_...
ArrayUtil.concat(first, rest);
1,104,289
private void insertCommand(String cmd, String[] params) {<NEW_LINE>int <MASK><NEW_LINE>boolean first = true;<NEW_LINE>pane.insertString(cmd + "(");<NEW_LINE>for (String p : params) {<NEW_LINE>if (p.equals("PATTERN")) {<NEW_LINE>if (!first) {<NEW_LINE>pane.insertString(", ");<NEW_LINE>} else {<NEW_LINE>first = false;<NE...
endPos = -1, endPosLen = 0;
1,188,474
public Mat run(Mat inputMat, ImageBlob imageBlob) {<NEW_LINE>int origin_w = inputMat.width();<NEW_LINE>int origin_h = inputMat.height();<NEW_LINE>imageBlob.getReshapeInfo().put("resize", new int[] { origin_w, origin_h });<NEW_LINE>int im_size_max = Math.max(origin_w, origin_h);<NEW_LINE>int im_size_min = Math.min(origi...
= new Size(width, height);
50,679
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws IOException, ServletException {<NEW_LINE>boolean allowWebSocketWithoutHeaders = req.getHeader(HeaderConfig.X_ATMO_WEBSOCKET_PROXY) != null;<NEW_LINE>if (!allowWebSocketWithoutHeaders) {<NEW_LINE>if (!headerContainsToken(req, "Upgrade", "websock...
logger.error("", ex);
846,119
public AviatorObject call(final Map<String, Object> env, final AviatorObject arg1, final AviatorObject arg2) {<NEW_LINE>Object coll = arg1.getValue(env);<NEW_LINE>Object key = arg2.getValue(env);<NEW_LINE>if (coll == null) {<NEW_LINE>throw new NullPointerException("the collection of seq.get is null, which the value of ...
.desc(env) + " is not a collection.");
1,814,634
public synchronized void doOverrideIfNecessary() {<NEW_LINE>final Invoker<?> invoker;<NEW_LINE>if (originInvoker instanceof InvokerDelegate) {<NEW_LINE>invoker = ((InvokerDelegate<?<MASK><NEW_LINE>} else {<NEW_LINE>invoker = originInvoker;<NEW_LINE>}<NEW_LINE>// The origin invoker<NEW_LINE>URL originUrl = RegistryProto...
>) originInvoker).getInvoker();
902,750
protected void analyzeMethod(ClassContext classContext, Method method) throws CheckedAnalysisException {<NEW_LINE>TaintDataflow dataflow = getTaintDataFlow(classContext, method);<NEW_LINE>ConstantPoolGen cpg = classContext.getConstantPoolGen();<NEW_LINE>ClassMethodSignature classMethodSignature = new ClassMethodSignatu...
), method.getSignature());
714,367
private Mono<Response<Flux<ByteBuffer>>> generateVpnProfileWithResponseAsync(String resourceGroupName, String gatewayName, P2SVpnProfileParameters parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint()...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
94,961
public CodegenOperation fromOperation(String path, String httpMethod, Operation operation, List<Server> servers) {<NEW_LINE>CodegenOperation op = super.fromOperation(<MASK><NEW_LINE>if (operation.getResponses() != null && !operation.getResponses().isEmpty()) {<NEW_LINE>ApiResponse methodResponse = findMethodResponse(op...
path, httpMethod, operation, servers);
1,436,572
// getBulkActions.<NEW_LINE>@PUT<NEW_LINE>@Path("/contentlet/actions/bulk/fire")<NEW_LINE>@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public final void fireBulkActions(@Context final HttpServletRequest request, @Suspended final AsyncResponse asyncRespon...
(ResponseUtil.mapExceptionResponse(e));
1,252,139
private boolean configureHotspotBeforeNougat(WifiManager wifiManager) {<NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>if (wifiManager != null) {<NEW_LINE>Method wifiApConfigurationMethod = wifiManager.getClass().getMethod("getWifiApConfiguration");<NEW_LINE>WifiConfiguration netConfig = (WifiConfiguration) w...
invoke(wifiManager, netConfig, false);
241,262
@Contract(pure = true)<NEW_LINE>public static String pluralize(@Nonnull String suggestion) {<NEW_LINE>if (suggestion.endsWith("Child") || suggestion.endsWith("child")) {<NEW_LINE>return suggestion + "ren";<NEW_LINE>}<NEW_LINE>if (suggestion.equals("this")) {<NEW_LINE>return "these";<NEW_LINE>}<NEW_LINE>if (suggestion.e...
int len = suggestion.length();
1,189,612
public Point2D componentPointToImagePoint(double x, double y, Point2D pointDest, boolean constrainToBounds) {<NEW_LINE>if (pointDest == null)<NEW_LINE>pointDest = new Point2D.Double(x, y);<NEW_LINE>else<NEW_LINE>pointDest.setLocation(x, y);<NEW_LINE>// Transform the point (in-place)<NEW_LINE>transformInverse.transform(...
, server.getHeight()));
334,815
public static GImageGray wrap(ImageGray image) {<NEW_LINE>if (image.getClass() == GrayU8.class)<NEW_LINE>return new GSingle_U8((GrayU8) image);<NEW_LINE>else if (image.getClass() == GrayS8.class)<NEW_LINE>return new GSingle_S8((GrayS8) image);<NEW_LINE>else if (image.getClass() == GrayU16.class)<NEW_LINE>return <MASK><...
new GSingle_U16((GrayU16) image);
398,705
public static void addEmailPropsToFlow(final Flow flow, final Props prop) {<NEW_LINE>final List<String> successEmailList = prop.getStringList(CommonJobProperties.SUCCESS_EMAILS, Collections.EMPTY_LIST);<NEW_LINE>final Set<String> successEmail = new HashSet<>();<NEW_LINE>for (final String email : successEmailList) {<NEW...
add(email.toLowerCase());
34,497
public ParameterObject unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterObject parameterObject = new ParameterObject();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
1,473,262
public void paintComponent(Graphics g) {<NEW_LINE>boolean pressed = getModel().isPressed();<NEW_LINE>boolean stateChanged = myWasPressed != pressed;<NEW_LINE>myWasPressed = pressed;<NEW_LINE>if (myBufferedImage == null || stateChanged) {<NEW_LINE>Dimension size = getSize();<NEW_LINE>Insets insets = getInsets();<NEW_LIN...
this, myBufferedImage.createGraphics());
634,275
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = game.getPermanentOrLKIBattlefield(id);<NEW_LINE>Player targetPlayer = null;<NEW_LINE>if (permanent != null) {<NEW_LINE>targetPlayer = game.getPlayer(permanent.getControllerId());<NEW_LINE>}<NEW_LINE>if (targetPlayer != null && permanent !=...
(targetPlayer.getId()));
646,503
public void perform(RestResource resource, Object param) {<NEW_LINE>if (dialog == null) {<NEW_LINE>dialog = ADialogBuilder.buildDialog(Form.class);<NEW_LINE>dialog.<MASK><NEW_LINE>}<NEW_LINE>dialog.setValue(Form.RESOURCENAME, "Method " + (resource.getRestMethodCount() + 1));<NEW_LINE>XmlBeansRestParamsTestPropertyHolde...
setBooleanValue(Form.CREATEREQUEST, true);
983,158
public okhttp3.Call applicationsApplicationIdApiKeysKeyTypeGeneratePostCall(String applicationId, String keyType, String ifMatch, APIKeyGenerateRequestDTO apIKeyGenerateRequestDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = apIKeyGenerateRequestDTO;<NEW_LINE>// create path and...
String[] localVarContentTypes = { "application/json" };
967,287
public void computeCurrentVelocity(int units, float maxVelocity) {<NEW_LINE>final EventRingBuffer buffer = mBuffer;<NEW_LINE>final float oldestX = buffer.getX(0);<NEW_LINE>final float oldestY = buffer.getY(0);<NEW_LINE>final long oldestTime = buffer.getTime(0);<NEW_LINE>float accumX = 0;<NEW_LINE>float accumY = 0;<NEW_...
= (dist / dur) * units;
577,649
private static // For backwards compatibility, does nothing<NEW_LINE>BgpRoute // For backwards compatibility, does nothing<NEW_LINE>jsonCreator(// For backwards compatibility, does nothing<NEW_LINE>@Nullable @JsonProperty(PROP_AS_PATH) AsPath asPath, // For backwards compatibility, does nothing<NEW_LINE>@Nullable @Json...
originType != null, "%s must be specified", PROP_ORIGIN_TYPE);
1,316,639
public DeleteSubnetGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteSubnetGroupResult deleteSubnetGroupResult = new DeleteSubnetGroupResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
int originalDepth = context.getCurrentDepth();
706,027
public void onDescriptorRead(final BluetoothGatt gatt, final BluetoothGattDescriptor descriptor, final int status) {<NEW_LINE>if (status == BluetoothGatt.GATT_SUCCESS) {<NEW_LINE>if (CLIENT_CHARACTERISTIC_CONFIG.equals(descriptor.getUuid())) {<NEW_LINE>mService.sendLogBroadcast(DfuBaseService.LOG_LEVEL_INFO, "Read Resp...
+ ", value (0x): " + parse(descriptor));
1,301,602
public void checkGeneralCompatibility(GL2 gl) {<NEW_LINE>if (messageDelivered) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Vendor<NEW_LINE>vendor = gl.glGetString(GL2.GL_VENDOR);<NEW_LINE>renderer = gl.glGetString(GL2.GL_RENDERER);<NEW_LINE>versionStr = gl.glGetString(GL2.GL_VERSION);<NEW_LINE>String curre...
), vendor, renderer, versionStr);
182,835
private void dynInit() {<NEW_LINE>SmjReportLogic logic = new SmjReportLogic();<NEW_LINE>data = logic.getDataReport(m_AD_PInstance_ID, trxName);<NEW_LINE>generalTitle = logic.getGeneralTitle(reportId, trxName);<NEW_LINE>clientName = logic.getOrgName(trxName);<NEW_LINE>// if (clientName.equals("") || clientName.length()<...
.getAD_Org_ID(prop), null);
452,512
public void read(org.apache.thrift.protocol.TProtocol iprot, getRunningCompactionId_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeFie...
skip(iprot, schemeField.type);
1,440,571
private String generateContents() {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>Document doc = XMLUtil.createDocument("project", null, null, null);<NEW_LINE>Element pel = doc.getDocumentElement();<NEW_LINE>String displayName = (String) getProperty(PROP_DISPLAY_NAME);<NEW_LINE>if (displayName != null && displayName.lengt...
getFile().getAbsolutePath());
331,963
public boolean releaseLock(DistributedLockDO distributedLockDO) {<NEW_LINE>String lockKey = distributedLockDO.getLockKey();<NEW_LINE>String lockValue = distributedLockDO.getLockValue();<NEW_LINE>try (Jedis jedis = JedisPooledFactory.getJedisInstance()) {<NEW_LINE>jedis.watch(lockKey);<NEW_LINE>// Check the value to pre...
Transaction multi = jedis.multi();
429,375
public boolean index(GenericRow row, @Nullable RowMetadata rowMetadata) throws IOException {<NEW_LINE>boolean canTakeMore;<NEW_LINE>int numDocsIndexed = _numDocsIndexed;<NEW_LINE>if (isUpsertEnabled()) {<NEW_LINE>PartitionUpsertMetadataManager.RecordInfo <MASK><NEW_LINE>GenericRow updatedRow = _partitionUpsertMetadataM...
recordInfo = getRecordInfo(row, numDocsIndexed);
1,796,642
// Set up the complex atmospheric shader<NEW_LINE>private void complexAtmosphere(RenderController.ThreadMode mode) {<NEW_LINE>ShapeSphere sphere = new ShapeSphere();<NEW_LINE>sphere.setLoc(new Point2d(0, 0));<NEW_LINE>sphere.setRadius(this.outerRadius);<NEW_LINE>sphere.setHeight(-1.0f);<NEW_LINE>sphere.setSamples(120, ...
(0, 0, 0));
1,824,050
private void writeSimpleValue(OChannelDataOutput channel, SimpleValueFetchPlanCommandListener listener, Object result, int protocolVersion, ORecordSerializer recordSerializer) throws IOException {<NEW_LINE>if (protocolVersion >= OChannelBinaryProtocol.PROTOCOL_VERSION_35) {<NEW_LINE>channel.writeByte((byte) 'w');<NEW_L...
StringBuilder value = new StringBuilder(64);
598,461
public FloatPoint corner_approx(int p_no) {<NEW_LINE>int no;<NEW_LINE>if (p_no < 0) {<NEW_LINE>FRLogger.warn("Polyline.corner_approx: p_no is < 0");<NEW_LINE>no = 0;<NEW_LINE>} else if (p_no >= arr.length - 1) {<NEW_LINE>FRLogger.warn("Polyline.corner_approx: p_no must be less than arr.length - 1");<NEW_LINE>no = arr.l...
(arr[no + 1]);
962,059
AutobatchingPaxosLearnerNetworkClientFactory learnerNetworkClientFactory() {<NEW_LINE>BatchPaxosLearner local = components().batchLearner();<NEW_LINE>List<WithDedicatedExecutor<BatchPaxosLearnerRpcClient>> batchLearners <MASK><NEW_LINE>List<WithDedicatedExecutor<BatchPaxosLearner>> remoteLearners = batchLearners.stream...
= remoteClients().batchLearner();
417,523
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {<NEW_LINE>Permanent creature;<NEW_LINE>if (source.getTargets().getFirstTarget() == null) {<NEW_LINE>creature = game.getPermanent(getTargetPointer()<MASK><NEW_LINE>} else {<NEW_LINE>creature = game.getPermanent(source.getTargets().getFirstT...
.getFirst(game, source));
1,254,189
public Request<ListUserImportJobsRequest> marshall(ListUserImportJobsRequest listUserImportJobsRequest) {<NEW_LINE>if (listUserImportJobsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListUserImportJobsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListUserImportJobsRequest> r...
t.getMessage(), t);
357,764
public void initView() {<NEW_LINE>final String[] CHINESE_TITLES = new String[] { Shaft.getContext().getString(R.string.type_illust), Shaft.getContext().getString(R.string.type_manga) };<NEW_LINE>final ListFragment[] mFragments = new ListFragment[] { FragmentPivision.newInstance("illust"), FragmentPivision.newInstance("...
MyOnTabSelectedListener listener = new MyOnTabSelectedListener(mFragments);
40,395
// IFlowItems<NEW_LINE>@Override<NEW_LINE>public int tryExtractItems(int count, EnumFacing from, EnumDyeColor colour, IStackFilter filter, boolean simulate) {<NEW_LINE>if (pipe.getHolder().getPipeWorld().isRemote) {<NEW_LINE>throw new IllegalStateException("Cannot extract items on the client side!");<NEW_LINE>}<NEW_LIN...
tile = pipe.getConnectedTile(from);
1,581,361
public void destroy() {<NEW_LINE>// destory executor-server<NEW_LINE>stopRpcProvider();<NEW_LINE>// destory jobThreadRepository<NEW_LINE>if (jobThreadRepository.size() > 0) {<NEW_LINE>for (Map.Entry<Integer, JobThread> item : jobThreadRepository.entrySet()) {<NEW_LINE>removeJobThread(<MASK><NEW_LINE>JobThread oldJobThr...
item.getKey(), "web container destroy and kill the job.");
1,116,318
public void endEncounterModuleEncounters(Person person, long time) {<NEW_LINE>if (person.attributes.get(ACTIVE_WELLNESS_ENCOUNTER) != null) {<NEW_LINE>person.record.encounterEnd(time, EncounterType.WELLNESS);<NEW_LINE>person.record.encounterEnd(time, EncounterType.OUTPATIENT);<NEW_LINE>person.attributes.remove(ACTIVE_W...
encounterEnd(time, EncounterType.URGENTCARE);
603,711
public static void main(String[] args) throws UnsupportedAudioFileException, IOException {<NEW_LINE>AudioInputStream inputAudio = AudioSystem.getAudioInputStream(new File(args[0]));<NEW_LINE>int samplingRate = (int) inputAudio<MASK><NEW_LINE>AudioDoubleDataSource signal = new AudioDoubleDataSource(inputAudio);<NEW_LINE...
.getFormat().getSampleRate();
825,123
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE><MASK><NEW_LINE>throw new RQException("pos" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);<NEW_LINE>return srcSequence.pos(obj, option);<NEW_LIN...
MessageManager mm = EngineMessage.get();
327,553
public static void introduceTransposeError(HealthRecord.Encounter encounter, String obsType) {<NEW_LINE>HealthRecord.Observation obs;<NEW_LINE>if (obsType.equals("weight")) {<NEW_LINE>obs = weightObservation(encounter);<NEW_LINE>} else {<NEW_LINE>obs = heightObservation(encounter);<NEW_LINE>}<NEW_LINE>Double original =...
decimalPointPosition = originalString.indexOf('.');
1,045,892
public static void appendAsString(final StringBuilder sb, final DirectBuffer buffer, final int index, final Encoding encoding) {<NEW_LINE>switch(encoding.primitiveType()) {<NEW_LINE>case CHAR:<NEW_LINE>sb.append('\'').append((char) buffer.getByte(index)).append('\'');<NEW_LINE>break;<NEW_LINE>case INT8:<NEW_LINE>sb.app...
, encoding.byteOrder()));
217,685
public boolean onPrepareOptionsMenu(Menu menu) {<NEW_LINE>super.onPrepareOptionsMenu(menu);<NEW_LINE>ListOrderFilter listOrderFilter = PrefsUtils.getFeedChooserListOrder(this);<NEW_LINE>if (listOrderFilter == ListOrderFilter.ASCENDING) {<NEW_LINE>menu.findItem(R.id.menu_sort_order_ascending).setChecked(true);<NEW_LINE>...
.menu_sort_by_subs).setChecked(true);
548,397
public void Backoff() {<NEW_LINE>try {<NEW_LINE>com.gmt2001.Console.debug.println("Backoff() called by: " + com.gmt2001.Console.debug.findCaller("com.gmt2001.ExponentialBackoff"));<NEW_LINE>this.setIsBackingOff(true);<NEW_LINE>com.gmt2001.<MASK><NEW_LINE>this.determineNextInterval();<NEW_LINE>com.gmt2001.Console.debug....
Console.debug.println("Locked backoff...");
1,768,215
public FloatArray newFloatArray(long size, boolean clearOnResize) {<NEW_LINE>if (size > PageCacheRecycler.INT_PAGE_SIZE) {<NEW_LINE>// when allocating big arrays, we want to first ensure we have the capacity by<NEW_LINE>// checking with the circuit breaker before attempting to allocate<NEW_LINE>adjustBreaker(BigFloatAr...
.estimateRamBytes(size), false);
601,030
public com.amazonaws.services.ssmincidents.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ssmincidents.model.ConflictException conflictException = new com.amazonaws.services.ssmincidents.model.ConflictException(null);<NEW_LINE>int origin...
class).unmarshall(context));
1,735,357
private // returns map; key=command name; value=array of targets for given command<NEW_LINE>HashMap<String, String[]> loadTargetsFromConfig() {<NEW_LINE>HashMap<String, String[]> targets = new HashMap<String, String[]>(6);<NEW_LINE>String config = evaluateProperty(project, PROP_CONFIG);<NEW_LINE>// load targets from sh...
tNameVal = props.getProperty(propName);
688,579
protected WSSecurityEngineResult validateToken(Element tokenElement, final SoapMessage message) throws WSSecurityException, Base64DecodingException {<NEW_LINE>boolean bspCompliant = isWsiBSPCompliant(message);<NEW_LINE>boolean allowNoPassword = isAllowNoPassword(message.get(AssertionInfoMap.class));<NEW_LINE>UsernameTo...
security.wss4j.UsernameTokenInterceptor nt = null;
1,267,005
public Trait unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Trait trait = new Trait();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
class).unmarshall(context));
223,539
public FluidStack insert(FluidStack stack, Action action, AutomationType automationType) {<NEW_LINE>FluidStack remainder;<NEW_LINE>if (isCreative && isEmpty() && action.execute() && automationType != AutomationType.EXTERNAL) {<NEW_LINE>// If a player manually inserts into a creative tank (or internally, via a FluidInve...
stack, Action.SIMULATE, automationType);
904,800
/* (non-Javadoc)<NEW_LINE>* @see org.eclipse.core.resources.WorkspaceJob#runInWorkspace(org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {<NEW_LINE>// Wait until bundle is done starting up and we can safely<NEW_LINE>// load clas...
getThread().wait(100);
818,421
public void testCaptureDebuggerStackPlugin() throws Throwable {<NEW_LINE>DomainFolder root = tool.getProject().getProjectData().getRootFolder();<NEW_LINE>program = createDefaultProgram(<MASK><NEW_LINE>try (UndoableTransaction tid = UndoableTransaction.start(program, "Populate", true)) {<NEW_LINE>program.setImageBase(ad...
"echo", ToyProgramBuilder._X64, this);
669,975
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<NEW_LI...
target.getDeclaredMethod("executeAsync", "java.util.concurrent.Executor");
1,401,662
private static String runProcessLs(String path) {<NEW_LINE>String cmd = "ls -ldn " + path;<NEW_LINE><MASK><NEW_LINE>Process pr = null;<NEW_LINE>InputStreamReader ir = null;<NEW_LINE>BufferedReader br = null;<NEW_LINE>String output = null;<NEW_LINE>try {<NEW_LINE>pr = rt.exec(cmd);<NEW_LINE>ir = new InputStreamReader(pr...
Runtime rt = Runtime.getRuntime();
722,262
private void applyTtlUpdate(MessageInfo messageInfo, RemoteReplicaInfo remoteReplicaInfo) throws StoreException {<NEW_LINE>DataNodeId remoteNode = remoteReplicaInfo.getReplicaId().getDataNodeId();<NEW_LINE>try {<NEW_LINE>// NOTE: It is possible that the key in question may have expired and this TTL update is being appl...
(Collections.singletonList(messageInfo));
527,817
private boolean replaceWithImage(int startOff, int endOff, Pattern ptn) throws BadLocationException {<NEW_LINE>Document doc = getDocument();<NEW_LINE>String imgStr = doc.getText(startOff, endOff - startOff);<NEW_LINE>JComponent comp = null;<NEW_LINE>if (ptn == patPatternStr || ptn == patPngStr) {<NEW_LINE>if (pref.getP...
EditorRegionLabel.labelFromString(this, imgStr);
1,070,017
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW...
ExceptionTypeValue(wi.getType());