idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
571,649
private static boolean isUpdateAvailable(String version) {<NEW_LINE>JavaHttpClient client = null;<NEW_LINE>try {<NEW_LINE>client = new JavaHttpClient(XDMApp.APP_UPDAT_URL + "?ver=" + version);<NEW_LINE>client.setFollowRedirect(true);<NEW_LINE>client.connect();<NEW_LINE>int resp = client.getStatusCode();<NEW_LINE>Logger...
.append((char) x);
783,428
public void computeBounds(JTextPane textPane, BoundsTranslator translator) {<NEW_LINE><MASK><NEW_LINE>TextUI tui = textPane.getUI();<NEW_LINE>this.bounds = new Rectangle();<NEW_LINE>try {<NEW_LINE>Rectangle startr = tui.modelToView(textPane, docstart, Position.Bias.Forward).getBounds();<NEW_LINE>Rectangle endr = tui.mo...
Rectangle tpBounds = textPane.getBounds();
1,171,443
protected JRChartCustomizer createAndInitCustomizer(String customizerClassName, String customizerName) {<NEW_LINE>JRChartCustomizer customizer = null;<NEW_LINE>if (customizerClassName != null && customizerClassName.length() > 0) {<NEW_LINE>try {<NEW_LINE>Class<?> customizerClass = JRClassLoader.loadClassForName(customi...
) customizer).init(this);
1,090,633
public CompletableFuture<FetchedValue> fetchValue(ExecutionContext executionContext, Object source, Object localContext, MergedField sameFields, ExecutionStepInfo executionInfo) {<NEW_LINE><MASK><NEW_LINE>GraphQLFieldDefinition fieldDef = executionInfo.getFieldDefinition();<NEW_LINE>GraphQLCodeRegistry codeRegistry = e...
Field field = sameFields.getSingleField();
123,034
private void checkTypeVoiceClip(MegaChatMessage msg, int value) {<NEW_LINE>MegaNodeList nodeList = msg.getMegaNodeList();<NEW_LINE>if (nodeList == null)<NEW_LINE>return;<NEW_LINE>if (msg.getUserHandle() == megaChatApi.getMyUserHandle()) {<NEW_LINE>for (int j = 0; j < nodeList.size(); j++) {<NEW_LINE>MegaNode temp = nod...
nodeToAttach.getHandle(), this);
859,499
public void init(IWorkbench workbench, IProject project) {<NEW_LINE>try {<NEW_LINE>if (project != null) {<NEW_LINE>IPreferenceStore preferenceStore = BootActivator.getDefault().getPreferenceStore();<NEW_LINE>URLConnectionFactory urlConnectionFactory = BootActivator.getUrlConnectionFactory(conn -> conn.addRequestPropert...
AddStartersPreferences preferences = new AddStartersPreferences(preferenceStore);
908,586
public AwsRdsDbDomainMembership unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsRdsDbDomainMembership awsRdsDbDomainMembership = new AwsRdsDbDomainMembership();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
class).unmarshall(context));
995,176
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('window') @public create window MyWindow#keepall as (c0 string, c1 string)", path);<NEW_LINE>env.compileDeploy("insert into MyWindow select p00 as c0, p01 as c1 from SupportBean_S0", path)...
("window"), 4, 1000);
503,370
public static void process(GrayF32 orig, GrayF32 derivX, GrayF32 derivY) {<NEW_LINE>final float[] data = orig.data;<NEW_LINE>final float[] imgX = derivX.data;<NEW_LINE>final float[] imgY = derivY.data;<NEW_LINE>final int width = orig.getWidth();<NEW_LINE>final int height <MASK><NEW_LINE>// CONCURRENT_BELOW BoofConcurre...
= orig.getHeight() - 1;
83,072
protected HLL compute() {<NEW_LINE>if (endPos <= startPos) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (endPos - startPos == 1) {<NEW_LINE>if (splits[startPos] != null) {<NEW_LINE>return genHll(splits[startPos]);<NEW_LINE>} else {<NEW_LINE>return new HLL(13, 5);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>int middle = (startPos...
return new HLL(13, 5);
1,787,355
public com.squareup.okhttp.Call throttleGetCall(String query, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String ...
localVarAuthNames = new String[] {};
869,855
public void postConstruct() {<NEW_LINE>super.postConstruct();<NEW_LINE>delete = targetMethod.getAnnotation(Delete.class);<NEW_LINE>resolverType = delete.resolver();<NEW_LINE>try {<NEW_LINE>// we pass false for "useAnnotations" as the @Param declarations on<NEW_LINE>// the target type are not used for the Delete method ...
throw new RuntimeException(msg, e);
1,682,825
private static void testDateTime() {<NEW_LINE>{<NEW_LINE>final Date now = Foo.now();<NEW_LINE>final Date nowChrono = Foo.chrono_now();<NEW_LINE>final DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");<NEW_LINE>System.out.println("now: " <MASK><NEW_LINE>final Date today = Calendar.getInstance().getTime();<NEW_...
+ df.format(now));
663,741
PayaraPlatformVersionAPI isValidInstall(File installDir, File payaraDir, WizardDescriptor wizard) {<NEW_LINE>// NOI18N<NEW_LINE>String // NOI18N<NEW_LINE>errMsg = // NOI18N<NEW_LINE>NbBundle.// NOI18N<NEW_LINE>getMessage(// NOI18N<NEW_LINE>AddServerLocationPanel.class, "ERR_InstallationInvalid", FileUtil.normalizeFile(...
.serverDetails = serverDetails.get();
524,562
protected String doIt() throws Exception {<NEW_LINE>//<NEW_LINE>// Services<NEW_LINE>final ITrxManager trxManager = Services.get(ITrxManager.class);<NEW_LINE>final IUserSortPrefDAO userSortPrefDAO = Services.get(IUserSortPrefDAO.class);<NEW_LINE>final Properties ctx = getCtx();<NEW_LINE>trxManager.runInNewTrx(new TrxRu...
int recordId = processInfo.getRecord_ID();
1,424,871
private static Ranges subtractRanges(Ranges ranges, Ranges toSubtract) {<NEW_LINE>Ranges.Builder newRanges = Ranges.newBuilder();<NEW_LINE>List<Range> sortedRanges = Lists.newArrayList(ranges.getRangeList());<NEW_LINE>Collections.sort(sortedRanges, RANGE_COMPARATOR);<NEW_LINE>List<Range> subtractRanges = Lists.newArray...
addRange(currentRange.build());
1,315,242
public Config hazelcastConfig() {<NEW_LINE>Config config = new Config();<NEW_LINE>NetworkConfig networkConfig = config.getNetworkConfig();<NEW_LINE>networkConfig.setPort(0);<NEW_LINE>networkConfig.getJoin().getMulticastConfig().setEnabled(false);<NEW_LINE>AttributeConfig attributeConfig = new AttributeConfig().setName(...
Hazelcast4PrincipalNameExtractor.class.getName());
159,865
public void handleEvent(Event event) {<NEW_LINE>Point pt = new Point(event.x, event.y);<NEW_LINE>TableItem item = policyTable.getItem(pt);<NEW_LINE>if (item != null) {<NEW_LINE>for (int col = 1; col < policyTable.getColumnCount(); col++) {<NEW_LINE>Rectangle rect = item.getBounds(col);<NEW_LINE>if (rect.contains(pt)) {...
text = item.getText(col);
1,370,242
protected void excludeResources(Set<String> resources) {<NEW_LINE>super.excludeResources(resources);<NEW_LINE>boolean isSigleTable = false;<NEW_LINE>boolean isBroadCastTable = false;<NEW_LINE>if (partitionInfo != null) {<NEW_LINE>isSigleTable = partitionInfo.isGsiSingleOrSingleTable();<NEW_LINE>isBroadCastTable = parti...
(schemaName), schemaName + " corrupted");
6,445
final DescribeCertificatesResult executeDescribeCertificates(DescribeCertificatesRequest describeCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCertificatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
933,800
static Component onCreateLayout(ComponentContext c, @State boolean left) {<NEW_LINE>return Column.create(c).alignItems(left ? YogaAlign.FLEX_START : YogaAlign.FLEX_END).child(Row.create(c).heightDip(40).widthDip(40).backgroundColor(Color.parseColor("#ee1111")).transitionKey("red").build()).child(Row.create(c).heightDip...
(c)).build();
1,421,651
protected void listJobInstances(RESTRequest request, RESTResponse response) throws Exception {<NEW_LINE>int page = Integer.parseInt(StringUtils.firstNonNull(request.<MASK><NEW_LINE>int pageSize = Integer.parseInt(StringUtils.firstNonNull(request.getParameter("pageSize"), "50"));<NEW_LINE>WSSearchObject wsso = null;<NEW...
getParameter("page"), "0"));
261,294
public static ClientMessage encodeRequest(java.lang.String name, int poolSize, int durability, int capacity, @Nullable java.lang.String splitBrainProtectionName, boolean statisticsEnabled) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clie...
initialFrame.content, REQUEST_POOL_SIZE_FIELD_OFFSET, poolSize);
1,848,607
public void schedule(TransportContext transportContext, int attemptNumber, boolean force) {<NEW_LINE>Uri.Builder intentDataBuilder = new Uri.Builder();<NEW_LINE>intentDataBuilder.appendQueryParameter(BACKEND_NAME, transportContext.getBackendName());<NEW_LINE>intentDataBuilder.appendQueryParameter(EVENT_PRIORITY, String...
transportContext, scheduleDelay, backendTime, attemptNumber);
1,093,790
public static byte[] decrypt(String password, byte[] payload) throws UnsupportedEncodingException, InvalidCipherTextException {<NEW_LINE>ByteBuffer payloadBuffer = ByteBuffer.wrap(payload);<NEW_LINE>byte[] nonce = new byte[NONCE_LENGTH];<NEW_LINE>byte[] salt = new byte[SALT_LENGTH];<NEW_LINE>payloadBuffer.get(salt);<NE...
additionalData = generateAdditionalData(key, paddedNonce);
373,895
public Saml2RedirectAuthenticationRequest createRedirectAuthenticationRequest(Saml2AuthenticationRequestContext context) {<NEW_LINE>AuthnRequest authnRequest = this.authenticationRequestContextConverter.convert(context);<NEW_LINE>RelyingPartyRegistration registration = context.getRelyingPartyRegistration();<NEW_LINE>St...
param(Saml2ParameterNames.SAML_REQUEST, deflatedAndEncoded);
1,065,334
public static ListDegradeRulesOfResourceResponse unmarshall(ListDegradeRulesOfResourceResponse listDegradeRulesOfResourceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDegradeRulesOfResourceResponse.setRequestId(_ctx.stringValue("ListDegradeRulesOfResourceResponse.RequestId"));<NEW_LINE>listDegradeRulesOfResourceRe...
(_ctx.stringValue("ListDegradeRulesOfResourceResponse.Message"));
709,685
private void checkAndInsertRoleParam(String sqlVariable, List<RelRoleViewDto> roles, User user, View view) {<NEW_LINE>List<SqlVariable> variables = JSONObject.parseArray(sqlVariable, SqlVariable.class);<NEW_LINE>if (CollectionUtils.isEmpty(roles)) {<NEW_LINE>relRoleViewMapper.deleteByViewId(view.getId());<NEW_LINE>retu...
parseArray(r.getRowAuth());
1,421,370
public static DataFrameClassifier fit(Formula formula, DataFrame data, BiFunction<Formula, DataFrame, DataFrameClassifier> trainer) {<NEW_LINE>Tuple[] x = data.stream().toArray(Tuple[]::new);<NEW_LINE>int[] y = formula.y(data).toIntArray();<NEW_LINE>OneVersusOne<Tuple> model = fit(x, y, 1, 0, (Tuple[] rows, int[] label...
(0)).schema();
795,683
private static ListenableFuture<Model> fetchModel(API.Mesh mesh) {<NEW_LINE>Vertex.Buffer vb = mesh.getVertexBuffer();<NEW_LINE>float[] positions = null;<NEW_LINE>float[] normals = null;<NEW_LINE>for (Vertex.Stream stream : vb.getStreamsList()) {<NEW_LINE>switch(stream.getSemantic().getType()) {<NEW_LINE>case Position:...
byteStringToFloatArray(stream.getData());
1,297,195
protected OutputStream open(OutputStream out, ASN1EncodableVector recipientInfos, OutputEncryptor encryptor) throws CMSException {<NEW_LINE>try {<NEW_LINE>//<NEW_LINE>// ContentInfo<NEW_LINE>//<NEW_LINE>BERSequenceGenerator cGen = new BERSequenceGenerator(out);<NEW_LINE>cGen.addObject(CMSObjectIdentifiers.envelopedData...
BERSequenceGenerator(envGen.getRawOutputStream());
1,607,351
private static BValue traverseXMLSequence(BXMLSequence xmlSequence, String attributePrefix, boolean preserveNamespaces) {<NEW_LINE>BValueArray sequence = xmlSequence.value();<NEW_LINE>long count = sequence.size();<NEW_LINE>ArrayList<OMElement> childArray = new ArrayList<>();<NEW_LINE>ArrayList<OMText> textArray = new A...
.add((OMText) omNode);
1,772,546
private void addTravertineEnrichingRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Travertine -> Polished Travertine<NEW_LINE>enriching(consumer, BYGBlocks.TRAVERTINE, BYGBlocks.POLISHED_TRAVERTINE, basePath + "to_polished");<NEW_LINE>enriching(consumer, BYGBlocks.TRAVERTINE_SLAB, <MASK><NEW_L...
BYGBlocks.POLISHED_TRAVERTINE_SLAB, basePath + "slabs_to_polished_slabs");
459,090
public static GetSecretParametersByPathResponse unmarshall(GetSecretParametersByPathResponse getSecretParametersByPathResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSecretParametersByPathResponse.setRequestId(_ctx.stringValue("GetSecretParametersByPathResponse.RequestId"));<NEW_LINE>getSecretParametersByPathResponse...
("GetSecretParametersByPathResponse.Parameters[" + i + "].Name"));
901,438
private static Op[] createOps(int encFlags1) {<NEW_LINE>int op0 = (encFlags1 >>> EncFlags1.EVEX_OP0_SHIFT) & EncFlags1.EVEX_OP_MASK;<NEW_LINE>int op1 = (encFlags1 >>> EncFlags1.EVEX_OP1_SHIFT) & EncFlags1.EVEX_OP_MASK;<NEW_LINE>int op2 = (encFlags1 >>> EncFlags1.EVEX_OP2_SHIFT) & EncFlags1.EVEX_OP_MASK;<NEW_LINE>int op...
.evexOps[op3 - 1] };
1,774,933
private void updateTabBorder() {<NEW_LINE>if (!myProject.isOpen())<NEW_LINE>return;<NEW_LINE>ToolWindowManagerEx mgr = (<MASK><NEW_LINE>String[] ids = mgr.getToolWindowIds();<NEW_LINE>Insets border = JBUI.emptyInsets();<NEW_LINE>UISettings uiSettings = UISettings.getInstance();<NEW_LINE>List<String> topIds = mgr.getIds...
ToolWindowManagerEx) ToolWindowManager.getInstance(myProject);
133,618
public PackageVersionOutputConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PackageVersionOutputConfig packageVersionOutputConfig = new PackageVersionOutputConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
class).unmarshall(context));
623,052
private static void runAssertion4OutputLimitLast(RegressionEnvironment env, SupportOutputLimitOpt opt, AtomicInteger milestone) {<NEW_LINE>String stmtText = opt.getHint() + "@name('s0') select symbol, sum(price) " + "from SupportMarketDataBean#time(5.5 sec)" + "group by rollup(symbol)" + "output last every 1 seconds";<...
execution.execute(true, milestone);
1,681,187
private int writeInterfaceLayout(DebugContext context, InterfaceClassEntry interfaceClassEntry, byte[] buffer, int p) {<NEW_LINE>int pos = p;<NEW_LINE>int layoutOffset = pos;<NEW_LINE>setLayoutIndex(interfaceClassEntry, layoutOffset);<NEW_LINE>log(context, " [0x%08x] interface layout", pos);<NEW_LINE>int abbrevCode = ...
log(context, " [0x%08x] indirect class layout", pos);
73,399
public static String relativePath(IPath fullPath, int skipSegmentCount) {<NEW_LINE>boolean hasTrailingSeparator = fullPath.hasTrailingSeparator();<NEW_LINE>String[] segments = fullPath.segments();<NEW_LINE>// compute length<NEW_LINE>int length = 0;<NEW_LINE>int max = segments.length;<NEW_LINE>if (max > skipSegmentCount...
int len = segments.length - 1;
1,483,882
void addReport(String reportName, String reportPath) {<NEW_LINE>reportPanel.remove(glue);<NEW_LINE><MASK><NEW_LINE>constraints.weighty = 0.0;<NEW_LINE>constraints.anchor = GridBagConstraints.NORTH;<NEW_LINE>reportPanel.add(progressPanel, constraints);<NEW_LINE>constraints.gridy++;<NEW_LINE>constraints.weighty = 1.0;<NE...
progressPanel.setLabels(reportName, reportPath);
476,145
protected boolean beforeSave(boolean newRecord) {<NEW_LINE>if (getAD_Org_ID() != 0)<NEW_LINE>setAD_Org_ID(0);<NEW_LINE>if (super.getTaxCorrectionType() == null)<NEW_LINE>setTaxCorrectionType(isDiscountCorrectsTax() ? TAXCORRECTIONTYPE_Write_OffAndDiscount : TAXCORRECTIONTYPE_None);<NEW_LINE>checkCosting();<NEW_LINE>// ...
(), get_TrxName()));
1,199,996
private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>buttonGroup = new javax.swing.ButtonGroup();<NEW_LINE>checkBoxes = new javax.swing.JPanel();<NEW_LINE>label = new javax.swing.JLabel();<NEW_LINE>searchInComments = new javax.swin...
, 0, 8, 0));
1,244,772
private void configureTransactionalServiceVisualizer() {<NEW_LINE>SimpleXYChartDescriptor desc = SimpleXYChartDescriptor.decimal(10, false, 500);<NEW_LINE>desc.addFillItems("Count", "Maximum Time");<NEW_LINE>transactionalServiceChart = ChartFactory.createSimpleXYChart(desc);<NEW_LINE>dvc.configureDetailsArea(new DataVi...
Level.INFO, "onSchedule", e);
1,196,143
final UpdateGatewayGroupResult executeUpdateGatewayGroup(UpdateGatewayGroupRequest updateGatewayGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGatewayGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(updateGatewayGroupRequest));
407,762
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>addPreferencesFromResource(R.xml.preference_debug);<NEW_LINE>PreferenceScreen preferenceScreen = getPreferenceScreen();<NEW_LINE>preferenceScreen.removePreference(preferenceScreen.findPreference(getString(R.string.de...
(R.string.debug_fetch_crowdfunding_feed_key));
1,412,050
private <T extends RemoteFile> void list(String remoteFilePath, Map<String, T> remoteFiles, Class<T> remoteFileClass) throws StorageException {<NEW_LINE>logger.log(Level.INFO, "Listing folder for files matching " + remoteFileClass.getSimpleName() + ": " + remoteFilePath);<NEW_LINE>Map<String, FileType> folderList = pat...
String fileName = folderListEntry.getKey();
697,629
public static void main(String[] args) {<NEW_LINE>Regions clientRegion = Regions.DEFAULT_REGION;<NEW_LINE>String bucketName = "*** Bucket name ***";<NEW_LINE>try {<NEW_LINE>AmazonS3 s3Client = AmazonS3ClientBuilder.standard().withCredentials(new ProfileCredentialsProvider()).<MASK><NEW_LINE>// Retrieve a list of all in...
withRegion(clientRegion).build();
59,450
private void addColumnMetadata(String[] columnName, Statistics<?> stats, PrimitiveType.PrimitiveTypeName primitiveTypeName, List<Metadata_V4.ColumnMetadata_v4> columnMetadataList) {<NEW_LINE>SchemaPath columnSchemaName = SchemaPath.getCompoundPath(columnName);<NEW_LINE>boolean thisColumnIsInteresting = allColumnsIntere...
long numNulls = stats.getNumNulls();
1,847,089
public CacheParameterGroup unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CacheParameterGroup cacheParameterGroup = new CacheParameterGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE...
().unmarshall(context));
161,230
public void putStaticInfo(Collection<? extends Persistable> collection) {<NEW_LINE>List<StatsStorageEvent> sses = null;<NEW_LINE>try {<NEW_LINE>PreparedStatement ps = connection.prepareStatement(INSERT_STATIC_SQL);<NEW_LINE>for (Persistable p : collection) {<NEW_LINE>List<StatsStorageEvent> ssesTemp = checkStorageEvent...
2, p.getTypeID());
810,023
private static BlockBox createFootnoteBody(LayoutContext c, Element element, CalculatedStyle style) {<NEW_LINE>List<Styleable> footnoteChildren = new ArrayList<>();<NEW_LINE>ChildBoxInfo footnoteChildInfo = new ChildBoxInfo();<NEW_LINE>// Create the out-of-flow footnote-body box as a block box.<NEW_LINE>BlockBox footno...
style.getParent(), false);
219,940
private static <T> void addCommand(T[] cache, int index, T newValue, String commandType, Map<AnelCommandType, State> result) {<NEW_LINE>if (newValue != null) {<NEW_LINE>if (!newValue.equals(cache[index])) {<NEW_LINE>final AnelCommandType cmd = AnelCommandType.getCommandType(commandType);<NEW_LINE>final State state;<NEW...
? OnOffType.ON : OnOffType.OFF;
1,688,808
public static void loadPersonalRankData(final HugeGraph graph) {<NEW_LINE>SchemaManager schema = graph.schema();<NEW_LINE>schema.propertyKey("name").asText().ifNotExist().create();<NEW_LINE>schema.vertexLabel("person").properties("name").useCustomizeStringId().ifNotExist().create();<NEW_LINE>schema.vertexLabel("movie")...
B.addEdge("like", b);
726,185
public void add(Dictionary<String, ?> dictionary) {<NEW_LINE>if (dictionary == null) {<NEW_LINE>throw new NullPointerException("dictionary must not be null!");<NEW_LINE>}<NEW_LINE>for (Enumeration<String> allKeys = dictionary.keys(); allKeys.hasMoreElements(); ) {<NEW_LINE>String key = allKeys.nextElement();<NEW_LINE>O...
), definition.getTypeName());
1,158,328
public <T> T invoke(final K key, final EntryProcessor<K, V, T> entryProcessor, final Object... arguments) throws EntryProcessorException {<NEW_LINE>checkClosed();<NEW_LINE>if (key == null || entryProcessor == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>final AtomicReference<MutableEntry> muta...
MutableEntry mutableEntry = mutableEntryRef.get();
429,563
public void importMarkdownZip(final RequestContext context) {<NEW_LINE>context.renderJSON(StatusCodes.ERR);<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final FileUpload file = request.getFileUpload("file");<NEW_LINE>if (null == file) {<NEW_LINE>context.renderMsg(langPropsService.get("allowZipOnlyLab...
msg = langPropsService.get("importFailLabel");
1,353,702
public void annotate(Host h, Class<? extends Annotation> klass, List<AnnotationElem> elems) {<NEW_LINE>// error-checking -- is this annotation appropriate for the target Host?<NEW_LINE>Target t = klass.getAnnotation(Target.class);<NEW_LINE>Collection<ElementType> elementTypes = Arrays.asList(t.value());<NEW_LINE>final ...
klass.getAnnotation(Retention.class);
1,476,130
public static void renderPage(FF4j ff4j, HttpServletRequest req, HttpServletResponse res, String msg, String msgType) throws IOException {<NEW_LINE>res.setContentType(CONTENT_TYPE_HTML);<NEW_LINE>PrintWriter out = res.getWriter();<NEW_LINE>// Header of the page<NEW_LINE>String htmlContent = renderTemplate(req);<NEW_LIN...
groups.replaceAll(MODAL_EDIT, MODAL_CREATE);
129,037
public TypeInstanceReference loadTypeInstanceReference(final Integer typeInstanceId, final BigInteger address, final Integer position, final Integer expressionId) throws CouldntLoadDataException {<NEW_LINE><MASK><NEW_LINE>Preconditions.checkNotNull(address, "Error: address argument can not be null");<NEW_LINE>Precondit...
Preconditions.checkNotNull(typeInstanceId, "Error: typeInstanceId argument can not be null");
1,178,048
final CreateFileSystemResult executeCreateFileSystem(CreateFileSystemRequest createFileSystemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFileSystemRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateFileSystemRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,561,624
public RootDirectory unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RootDirectory rootDirectory = new RootDirectory();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
1,204,492
public void read(org.apache.thrift.protocol.TProtocol iprot, getVersion_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol.TType.STOP...
apache.thrift.protocol.TField schemeField;
797,895
public TFGraphRunnerService init(List<String> inputNames, List<String> outputNames, byte[] graphBytes, Map<String, INDArray> constants, Map<String, String> inputDataTypes) {<NEW_LINE>if (inputNames.size() != inputDataTypes.size()) {<NEW_LINE>throw new IllegalArgumentException("inputNames.size() != inputDataTypes.size()...
convertedDataTypes = new HashMap<>();
739,805
public void processSampleDescription(@NotNull SequentialReader reader) throws IOException {<NEW_LINE>// ISO/IED 14496-12:2015 pg.7<NEW_LINE>// one byte version, three bytes flags<NEW_LINE>reader.skip(4);<NEW_LINE>// ISO/IED 14496-12:2015 pg.33<NEW_LINE>long numberOfEntries = reader.getUInt32();<NEW_LINE><MASK><NEW_LINE...
long sampleDescriptionSize = reader.getUInt32();
525,327
// autogenerated by CtBiScannerGenerator<NEW_LINE>public <A extends java.lang.annotation.Annotation> void visitCtAnnotation(final spoon.reflect.declaration.CtAnnotation<A> annotation) {<NEW_LINE>spoon.reflect.declaration.CtAnnotation other = ((spoon.reflect.declaration.CtAnnotation) (this.stack.peek()));<NEW_LINE>enter...
), other.getAnnotations());
943,814
public void marshall(ContinueAsNewWorkflowExecutionDecisionAttributes continueAsNewWorkflowExecutionDecisionAttributes, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (continueAsNewWorkflowExecutionDecisionAttributes == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW...
continueAsNewWorkflowExecutionDecisionAttributes.getTaskList(), TASKLIST_BINDING);
768,659
// Parameters example: 6 0.5 100<NEW_LINE>public static void main(String[] args) {<NEW_LINE>int vertices = Integer.parseInt(args[0]);<NEW_LINE>double radius = Double.parseDouble(args[1]);<NEW_LINE>int numberOfGraphs = Integer.parseInt(args[2]);<NEW_LINE>List<Exercise30_EuclideanWeightedGraphs.EuclideanEdgeWeightedGraph...
, -0.1, 1.1, 0.03);
429,785
public NodeDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NodeDetails nodeDetails = new NodeDetails();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok...
int originalDepth = context.getCurrentDepth();
210,247
private double bruteForce(Graph graph) {<NEW_LINE>// The atrributes computed by the statistics<NEW_LINE>Column clusteringColumn = initializeAttributeColunms(graph.getModel());<NEW_LINE>float totalCC = 0;<NEW_LINE>graph.readLock();<NEW_LINE>try {<NEW_LINE>Progress.start(progress, graph.getNodeCount());<NEW_LINE>int node...
saveCalculatedValue(node, clusteringColumn, nodeClusteringCoefficient);
1,580,848
public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");<NEW_LINE>}<NE...
= new String[] { "petstore_auth" };
1,255,559
public static QueryResult convert(DrillThroughResult drillthrough) throws IOException {<NEW_LINE>Integer height = 0;<NEW_LINE>ResultSetHelper rsch = new ResultSetHelper();<NEW_LINE>ArrayList<Cell[]> rows = new ArrayList<>();<NEW_LINE>AbstractBaseCell[][] cellHeaders = drillthrough.getCellHeaders();<NEW_LINE>String[] si...
] row = new Cell[width];
1,096,156
public static ListTagResourcesResponse unmarshall(ListTagResourcesResponse listTagResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTagResourcesResponse.setRequestId(_ctx.stringValue("ListTagResourcesResponse.RequestId"));<NEW_LINE>listTagResourcesResponse.setSuccess(_ctx.booleanValue("ListTagResourcesRespons...
= new ArrayList<TagResource>();
90,195
private static void bindStubsWithAst(@Nonnull List<PsiElement> srcSpine, List<StubElement<?>> stubList, List<CompositeElement> nodeList, boolean takePsiFromStubs) {<NEW_LINE>for (int i = firstNonFilePsiIndex; i < stubList.size(); i++) {<NEW_LINE>StubElement<?> stub = stubList.get(i);<NEW_LINE>CompositeElement <MASK><NE...
node = nodeList.get(i);
112,256
public int removeAllUrlReferences(final byte[] urlhash, final LoaderDispatcher loader, final ClientIdentification.Agent agent, final CacheStrategy cacheStrategy) {<NEW_LINE>if (urlhash == null)<NEW_LINE>return 0;<NEW_LINE>// determine the url string<NEW_LINE>try {<NEW_LINE>final String u = fulltext().getURL(ASCII.Strin...
fulltext().remove(urlhash);
800,191
protected void preprocessEquivalents(String view, Set<OWLAxiom> rmAxioms, Set<OWLAxiom> newAxioms, OWLEquivalentClassesAxiom eca) {<NEW_LINE>AtomicInteger numNamed = new AtomicInteger();<NEW_LINE>Set<OWLClassExpression> xs = new HashSet<>();<NEW_LINE>eca.classExpressions().forEach(x -> {<NEW_LINE>if (x instanceof OWLCl...
(df.getOWLEquivalentClassesAxiom(xs));
1,775,443
public void sessionDestroyed(ISession session) {<NEW_LINE>if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) {<NEW_LINE>LoggingUtil.SESSION_LOGGER_CORE.entering(methodClassName, methodNames[SESSION_DESTROYED], "sessionid=" + session.getId());<NEW_LINE>}<N...
(methodClassName, methodNames[SESSION_DESTROYED]);
1,193,384
private void updatePorts(Instance instance) {<NEW_LINE>final var ps = new Port[5];<NEW_LINE>if (instance.getAttributeValue(StdAttr.APPEARANCE) == StdAttr.APPEAR_CLASSIC) {<NEW_LINE>ps[OUT] = new Port(0, 0, Port.OUTPUT, StdAttr.WIDTH);<NEW_LINE>ps[IN] = new Port(-30, 0, Port.INPUT, StdAttr.WIDTH);<NEW_LINE>ps[CK] = new ...
(S.getter("registerQTip"));
1,622,118
private static Certificate selfSign(KeyPair keyPair, String subjectDN) throws Exception {<NEW_LINE>Provider bcProvider = new BouncyCastleProvider();<NEW_LINE>Security.addProvider(bcProvider);<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>Date startDate = new Date(now);<NEW_LINE>X500Name dnName = new X500Name...
dnName, keyPair.getPublic());
588,830
public boolean sendMail(String title, String mailTemplatePath, NotificationEvent event) {<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.setProperty("mail.smtp.host", smtpHost);<NEW_LINE>props.setProperty("mail.smtp.port", smtpPort);<NEW_LINE>props.setProperty("mail.transport.protocol", "smtp");<NEW_LINE>...
err(this, "Send Mail FAIL.", e);
722,712
public static void main(String... args) {<NEW_LINE>Params params = new Params();<NEW_LINE>CmdLineParser parser = new CmdLineParser(params);<NEW_LINE>try {<NEW_LINE>parser.parseArgument(args);<NEW_LINE>} catch (CmdLineException t) {<NEW_LINE>System.err.println(t.getMessage());<NEW_LINE>parser.printUsage(System.out);<NEW...
getStringList("gitblit", null, "indexBranch");
785,334
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>addPreferencesFromResource(R.xml.preferences);<NEW_LINE>m_app = (TodoApplication) getApplication();<NEW_LINE>((CheckBoxPreference) findPreference(m_app.m_prefs.getPrependDatePrefKey())).setChecked(m_app.m_prefs.is...
getPackageInfo(getPackageName(), 0);
663,093
protected void flushUpdates() {<NEW_LINE>for (Entity updatedObject : updatedObjects) {<NEW_LINE>String updateStatement = dbSqlSessionFactory.getUpdateStatement(updatedObject);<NEW_LINE>updateStatement = dbSqlSessionFactory.mapStatement(updateStatement);<NEW_LINE>if (updateStatement == null) {<NEW_LINE>throw new Flowabl...
updatedObject.getClass() + " in the ibatis mapping files");
1,418,407
private Specification<Photo> buildSpecByQuery(@NonNull PhotoQuery photoQuery) {<NEW_LINE>Assert.notNull(photoQuery, "Photo query must not be null");<NEW_LINE>return (root, query, criteriaBuilder) -> {<NEW_LINE>List<Predicate> predicates = new LinkedList<>();<NEW_LINE>if (photoQuery.getTeam() != null) {<NEW_LINE>predica...
(nameLike, descriptionLike, locationLike));
999,062
final DeleteUserResult executeDeleteUser(DeleteUserRequest deleteUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteUser");
81,268
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.Value valueToBe(com.sun.jdi.event.ModificationWatchpointEvent a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbean...
jpda.jdi.InternalExceptionWrapper(ex);
1,465,231
final UpdateAuditSuppressionResult executeUpdateAuditSuppression(UpdateAuditSuppressionRequest updateAuditSuppressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAuditSuppressionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,408,722
public byte[] toByteArray() {<NEW_LINE>final int preBytes = CONST_PREAMBLE_LONGS << 3;<NEW_LINE>final int dataBytes = curCount_ > 0 ? 8 << lgArrLongs_ : 0;<NEW_LINE>final byte[] byteArrOut = new byte[preBytes + dataBytes];<NEW_LINE>if (wmem_ != null) {<NEW_LINE>wmem_.getByteArray(0, byteArrOut, 0, preBytes + dataBytes)...
(PREAMBLE_LONGS_BYTE, (byte) CONST_PREAMBLE_LONGS);
1,132,009
public void createDashboardView() {<NEW_LINE>baseColor = ContextCompat.getColor(mapActivity, R.color.osmand_orange) & 0x00ffffff;<NEW_LINE>waypointDialogHelper = new WaypointDialogHelper(mapActivity);<NEW_LINE>landscape = !AndroidUiHelper.isOrientationPortrait(mapActivity);<NEW_LINE>dashboardView = mapActivity.findView...
MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT);
821,419
public Void visitInnerClasses(InnerClasses_attribute attr, Void ignore) {<NEW_LINE>boolean first = true;<NEW_LINE>for (int i = 0; i < attr.classes.length; i++) {<NEW_LINE>InnerClasses_attribute.Info info = attr.classes[i];<NEW_LINE>// access<NEW_LINE>AccessFlags access_flags = info.inner_class_access_flags;<NEW_LINE>if...
constantWriter.write(info.inner_class_info_index);
302,504
public Policy createPolicyFromJsonString(String jsonString) {<NEW_LINE>if (jsonString == null) {<NEW_LINE>throw new IllegalArgumentException("JSON string cannot be null");<NEW_LINE>}<NEW_LINE>JsonNode policyNode;<NEW_LINE>JsonNode idNode;<NEW_LINE>JsonNode statementsNode;<NEW_LINE>Policy policy = new Policy();<NEW_LINE...
policyNode.get(JsonDocumentFields.STATEMENT);
1,207,860
public Optional<Design> read(InputStream inputStream) {<NEW_LINE>if (EventQueue.isDispatchThread()) {<NEW_LINE>throw new RuntimeException("Method can not be executed in dispatch thread");<NEW_LINE>}<NEW_LINE>String parser = XMLResourceDescriptor.getXMLParserClassName();<NEW_LINE>SAXSVGDocumentFactory f = new SAXSVGDocu...
f.createSVGDocument(null, inputStream);
471,232
public void processNewResult(VisualizerContext context, Object result) {<NEW_LINE>VisualizationTree.findVis(context, result).filter(OPTICSProjector.class).forEach(p -> {<NEW_LINE>// Child results, once OPTICSXi runs after the actual OPTICS algorithm.<NEW_LINE>VisualizationTree.findNewResults(context, p.getResult()).fil...
LOG.warning("Clustering with no cluster detected.", e);
1,681,825
protected boolean processActionPath(final HttpServletRequest servletRequest, final HttpServletResponse servletResponse, final String actionPath) throws IOException {<NEW_LINE>final String bundlePath = '/' + bundlesManager.getStaplerPath() + '/';<NEW_LINE>if (!actionPath.startsWith(bundlePath)) {<NEW_LINE>return false;<...
(file.lastModified()));
1,768,088
private static void putBuildXMLSourceFile(AntProjectHelper helper, String antPath) {<NEW_LINE>Element data = Util.getPrimaryConfigurationData(helper);<NEW_LINE>Document doc = data.getOwnerDocument();<NEW_LINE>// NOI18N<NEW_LINE>Element viewEl = XMLUtil.findElement(data, "view", FreeformProjectType.NS_GENERAL);<NEW_LINE...
createElementNS(FreeformProjectType.NS_GENERAL, "items");
1,797,959
private RouteSegment loadRouteSegment(int x31, int y31, RoutingContext ctx, TLongObjectHashMap<RouteDataObject> excludeDuplications, RouteSegment original, List<RoutingSubregionTile> subregions, int subregionIndex, boolean reverseWaySearch) {<NEW_LINE>access++;<NEW_LINE>if (routes != null) {<NEW_LINE>long l = (((long) ...
, segment.getSegmentStart()));
1,441,455
private static float parseFloatGeneric(final char[] buf, final int len, final JsonReader reader, final boolean withQuotes) throws ParsingException {<NEW_LINE>int end = len;<NEW_LINE>while (end > 0 && Character.isWhitespace(buf[end - 1])) {<NEW_LINE>end--;<NEW_LINE>}<NEW_LINE>if (end > reader.maxNumberDigits) {<NEW_LINE...
(buf, 0, end));
106,262
final DescribeMetricCollectionTypesResult executeDescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest describeMetricCollectionTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMetricCollectionTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
DescribeMetricCollectionTypesResult>(new DescribeMetricCollectionTypesResultStaxUnmarshaller());
1,315,343
synchronized void performQuit() {<NEW_LINE>currentQuitResponse = null;<NEW_LINE>try {<NEW_LINE>if (defaultQuitAction == QuitStrategy.SYSTEM_EXIT_0)<NEW_LINE>System.exit(0);<NEW_LINE>if (defaultQuitAction != QuitStrategy.CLOSE_ALL_WINDOWS) {<NEW_LINE>throw new RuntimeException("Unknown quit action");<NEW_LINE>}<NEW_LINE...
final Frame frame = allFrames[i];
201,302
private JLabel createLabel() {<NEW_LINE>JLabel newLabel = new GDLabel(DEFAULT_HIDDEN_COUNT_STR, LIST_ICON, SwingConstants.LEFT);<NEW_LINE>newLabel.setIconTextGap(0);<NEW_LINE>newLabel.setFont(LIST_LABEL_FONT);<NEW_LINE>newLabel.setBorder(BorderFactory.createEmptyBorder(4, 4, 0, 4));<NEW_LINE>newLabel.setToolTipText("Sh...
setPreferredSize(newLabel.getPreferredSize());