idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
646,881
public static Book parseChm(FileObject chmRootDir, String inputHtmlEncoding) throws IOException, ParserConfigurationException, XPathExpressionException {<NEW_LINE>Book result = new Book();<NEW_LINE>result.getMetadata().addTitle(findTitle(chmRootDir));<NEW_LINE>FileObject hhcFileObject = findHhcFileObject(chmRootDir);<N...
IllegalArgumentException("No index file found in directory " + chmRootDir + ". (Looked for file ending with extension '.hhc'");
459,935
public void paste(ActionEvent event, Transferable t) {<NEW_LINE>try {<NEW_LINE>final NodeModel target = Controller.getCurrentController().getSelection().getSelected();<NEW_LINE>final String transferData = (String) t.getTransferData(AttributeTransferable.attributesFlavor);<NEW_LINE>final IXMLParser parser = XMLLocalPars...
StdXMLReader(new StringReader(transferData));
207,538
public ConnectionProvider createConnectionProvider(DBSchemaWizardData data, SchemaElement elem) throws SQLException {<NEW_LINE>DatabaseConnection dbconn = findDatabaseConnection(elem);<NEW_LINE>if (dbconn == null) {<NEW_LINE>if (debug) {<NEW_LINE>System.out.<MASK><NEW_LINE>}<NEW_LINE>String message = MessageFormat.form...
println("[dbschema-ccp] not found dbconn='" + dbconn + "'");
663,244
private RouteSearchParameters processRouteRequestOptions(RouteSearchParameters params) throws StatusCodeException {<NEW_LINE><MASK><NEW_LINE>if (routeOptions.hasProfileParams())<NEW_LINE>params.setProfileParams(convertParameters(routeOptions, params.getProfileType()));<NEW_LINE>if (routeOptions.hasVehicleType())<NEW_LI...
params = processRequestOptions(routeOptions, params);
690,524
private Expr parseExpr(String s) throws QueryParseException {<NEW_LINE>try {<NEW_LINE>ARQParser parser = new ARQParser(new StringReader("SELECT " + s));<NEW_LINE>parser.setQuery(new Query());<NEW_LINE>parser.getQuery().setPrefixMapping(query.getPrefixMapping());<NEW_LINE>parser.SelectClause();<NEW_LINE>Query q = parser...
), -1, -1);
1,778,583
public LookupImpl createLookup(@Nonnull final Editor editor, @Nonnull LookupElement[] items, @Nonnull final String prefix, @Nonnull final LookupArranger arranger) {<NEW_LINE>hideActiveLookup();<NEW_LINE>final LookupImpl lookup = createLookup(editor, arranger, myProject);<NEW_LINE>final Alarm alarm = new Alarm();<NEW_LI...
firePropertyChange(PROP_ACTIVE_LOOKUP, lookup, null);
1,834,414
public void read(org.apache.thrift.protocol.TProtocol iprot, ping_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 (schemeField.type == org.apa...
skip(iprot, schemeField.type);
324
public void solve() {<NEW_LINE>model.getSolver().solve();<NEW_LINE>System.out.println(String.format("Ortho latin square(%s)", m));<NEW_LINE>StringBuilder st = new StringBuilder();<NEW_LINE>st.append("\t");<NEW_LINE>for (int i = 0; i < m; i++) {<NEW_LINE>for (int j = 0; j < m; j++) {<NEW_LINE>st.append(String.format("%d...
j].getValue()));
869,625
public GetDeviceMethodsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDeviceMethodsResult getDeviceMethodsResult = new GetDeviceMethodsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
643,332
public void marshall(ListStudioLifecycleConfigsRequest listStudioLifecycleConfigsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listStudioLifecycleConfigsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh...
listStudioLifecycleConfigsRequest.getModifiedTimeAfter(), MODIFIEDTIMEAFTER_BINDING);
712,212
public static void vertical9(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3]...
y - radius) * src.stride;
1,512,252
private void toSlime(CloudTenant tenant, Cursor root) {<NEW_LINE>// BillingInfo was never used and always just a static default value. To retire this<NEW_LINE>// field we continue to write the default value and stop reading it.<NEW_LINE>// TODO(ogronnesby, 2020-08-05): Remove when a version where we do not read the fi...
= new BillingInfo("customer", "Vespa");
1,362,372
public void show(Callback prefsChanged) {<NEW_LINE>SwipeActions.Actions actions = SwipeActions.getPrefsWithDefaults(context, tag);<NEW_LINE>leftAction = actions.left;<NEW_LINE>rightAction = actions.right;<NEW_LINE>final AlertDialog.Builder builder = new AlertDialog.Builder(context);<NEW_LINE>keys = SwipeActions.swipeAc...
setView(viewBinding.getRoot());
1,620,156
public void undoCommand() {<NEW_LINE>if (getUndoCommand() == null) {<NEW_LINE>throw new IllegalStateException("Can't undo command");<NEW_LINE>}<NEW_LINE>List<CommandInfo> processedCommands = new ArrayList<>();<NEW_LINE>synchronized (commands) {<NEW_LINE>CommandInfo lastCommand = commands.get(<MASK><NEW_LINE>if (!lastCo...
commands.size() - 1);
284,254
Optional<Candidate> fromCandidateRecord(final I_MD_Candidate candidateRecordOrNull) {<NEW_LINE>if (candidateRecordOrNull == null || isNew(candidateRecordOrNull) || candidateRecordOrNull.getMD_Candidate_ID() <= 0) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>final CandidateBuilder builder = createAndInitializ...
final DistributionDetail distributionDetailOrNull = createDistributionDetailOrNull(candidateRecordOrNull);
719,656
public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) {<NEW_LINE>switch(simpleInstruction.opcode) {<NEW_LINE>case InstructionConstants.OP_AASTORE:<NEW_LINE>// Mark array parameters whose element is modified.<NEW_LINE>markModifiedPara...
clazz, method, offset, 0);
723,720
public void write(AwtImage image, ImageMetadata metadata, OutputStream out) throws IOException {<NEW_LINE>javax.imageio.ImageWriter writer = ImageIO.getImageWritersByFormatName("jpeg").next();<NEW_LINE>ImageWriteParam params = writer.getDefaultWriteParam();<NEW_LINE>if (compression < 100) {<NEW_LINE>params.setCompressi...
params.setProgressiveMode(ImageWriteParam.MODE_DISABLED);
179,886
public Object doQuery(Object[] objs) {<NEW_LINE>if (objs == null || objs.length < 2) {<NEW_LINE>throw new RQException("InfluxDB function.missingParam");<NEW_LINE>}<NEW_LINE>InfluxDBClient m_influxDB = null;<NEW_LINE>if (objs[0] instanceof InfluxDBClient) {<NEW_LINE>m_influxDB <MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>W...
= (InfluxDBClient) objs[0];
172,073
final UpdateContactAttributesResult executeUpdateContactAttributes(UpdateContactAttributesRequest updateContactAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
555,428
public BookmarksStatus check(List<Object> contents, boolean remediate) throws IOException {<NEW_LINE>// Before..<NEW_LINE>// write(XmlUtils.marshaltoString(documentPart.getJaxbElement(), true, true));<NEW_LINE>List<Object> faulty = inspectBookmarks(contents);<NEW_LINE>if (remediate) {<NEW_LINE>for (Object o : faulty) {...
Object parent = end.getParent();
518,434
public final void quit() {<NEW_LINE>AgentInstanceContext agentInstanceContext = evalFollowedByNode.getContext().getAgentInstanceContext();<NEW_LINE>agentInstanceContext.getInstrumentationProvider().qPatternFollowedByQuit(evalFollowedByNode.factoryNode);<NEW_LINE>agentInstanceContext.getAuditProvider().patternInstance(f...
.getKey().quit();
63,260
private void processHeaderData(ZipModel zipModel, OutputStream outputStream) throws IOException {<NEW_LINE>int currentSplitFileCounter = 0;<NEW_LINE>if (outputStream instanceof OutputStreamWithSplitZipSupport) {<NEW_LINE>zipModel.getEndOfCentralDirectoryRecord().setOffsetOfStartOfCentralDirectory(((OutputStreamWithSpli...
getEndOfCentralDirectoryRecord().getOffsetOfStartOfCentralDirectory());
969,790
public Schema resolve(Type type) {<NEW_LINE>if (processedTypes.contains(type)) {<NEW_LINE>return modelByType.get(type);<NEW_LINE>} else {<NEW_LINE>processedTypes.add(type);<NEW_LINE>}<NEW_LINE>// if (LOGGER.isDebugEnabled()) {<NEW_LINE>// LOGGER.debug(String.format("resolve %s", type));<NEW_LINE>// }<NEW_LINE>Iterator<...
resolve(type, this, converters);
1,348,885
private I_PP_Cost_Collector createCollector(@NonNull final CostCollectorCreateRequest request) {<NEW_LINE>trxManager.assertThreadInheritedTrxExists();<NEW_LINE>final I_PP_Order ppOrder = request.getOrder();<NEW_LINE>final DocTypeId docTypeId = docTypeDAO.getDocTypeId(DocTypeQuery.builder().docBaseType(X_C_DocType.DOCBA...
(request.getDuration()));
822,381
private boolean validateImage(BufferedImage pic) {<NEW_LINE>int height = pic.getHeight();<NEW_LINE>int width = pic.getWidth();<NEW_LINE>boolean bottomEdgeFound = false;<NEW_LINE>for (int x = 0; x < width; ++x) {<NEW_LINE>for (int y = 0; y < height; ++y) {<NEW_LINE>// Clear alpha, we don't care about it<NEW_LINE>int pix...
int blue = (pixel & 0x000000FF);
426,806
public IdentityDocument unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IdentityDocument identityDocument = new IdentityDocument();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
JsonToken token = context.getCurrentToken();
520,027
public static TreeNode commonAncestorBad(TreeNode root, TreeNode p, TreeNode q) {<NEW_LINE>if (root == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (root == p && root == q) {<NEW_LINE>return root;<NEW_LINE>}<NEW_LINE>TreeNode x = commonAncestorBad(root.left, p, q);<NEW_LINE>if (x != null && x != p && x != q) {<...
return x == null ? y : x;
1,385,910
private String listTemplates() {<NEW_LINE>Collection<RuleTemplate> collection = autoCommands.getTemplates(locale);<NEW_LINE>Map<String, Template> templates = new Hashtable<>();<NEW_LINE>Map<String, String> listTemplates = null;<NEW_LINE>if (collection != null && !collection.isEmpty()) {<NEW_LINE>addCollection(collectio...
Utils.filterList(templates, listTemplates);
948,161
private Manifest createManifest() {<NEW_LINE>// Getting the jarFileName of the root module of this executable<NEW_LINE>PlatformLibrary rootModuleJarFile = codeGeneratedLibrary(packageContext.packageId(), packageContext.defaultModuleContext().moduleName());<NEW_LINE>String mainClassName;<NEW_LINE>try (JarInputStream jar...
Manifest mf = jarStream.getManifest();
468,422
/*<NEW_LINE>void runInEDT(JPopupMenu menu) {<NEW_LINE>for (int i = 0; i < instructions.length; i++) {<NEW_LINE>switch (instructions[i]) {<NEW_LINE>case ACTIONS_TOPCOMPONENT:<NEW_LINE>addTopComponentActions(menu, (Action[])initedObjects.get(i));<NEW_LINE>break;<NEW_LINE>case ACTION_CREATEITEM:<NEW_LINE>addActionInstance...
)initedObjects.get(i));
1,232,761
protected Map<String, FieldReader> assignReaders(boolean useIndexOnSingleReturn) {<NEW_LINE>Map<String, FieldReader> readers = new HashMap<>();<NEW_LINE>JRField[] fields = queryExecuter<MASK><NEW_LINE>Type[] returnTypes = queryExecuter.getReturnTypes();<NEW_LINE>String[] aliases = queryExecuter.getReturnAliases();<NEW_...
.getDataset().getFields();
1,546,534
public Map<String, List<ArgDescriptorProposal>> doReflectionsExtraction() {<NEW_LINE>Map<String, List<ArgDescriptorProposal>> ret = new HashMap<>();<NEW_LINE>Reflections reflections = new Reflections("org.nd4j");<NEW_LINE>Set<Class<? extends DifferentialFunction>> subTypesOf = reflections.getSubTypesOf(DifferentialFunc...
reflections.getSubTypesOf(CustomOp.class);
1,248,046
private void editDialog(Mount mount) {<NEW_LINE>View view = LayoutInflater.from(this).inflate(R.layout.properties_mounts, null);<NEW_LINE>EditText inputSrc = view.findViewById(R.id.editTextSrc);<NEW_LINE>EditText inputTarget = view.findViewById(R.id.editTextTarget);<NEW_LINE>inputSrc.setText(mount.getSource());<NEW_LIN...
).replaceAll("[ :]", "_");
1,781,059
void visitTree(PageCursor cursor, PageCursor writeCursor, GBPTreeVisitor<KEY, VALUE> visitor, CursorContext cursorContext) throws IOException {<NEW_LINE>// TreeState<NEW_LINE>long currentPage = cursor.getCurrentPageId();<NEW_LINE>Pair<TreeState, TreeState> statePair = TreeStatePair.readStatePages(cursor, IdSpace.STATE_...
goTo(cursor, "back", leftmostSibling);
120,471
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.vaadin.addon.sqlcontainer.query.generator.SQLGenerator#<NEW_LINE>* generateSelectQuery(java.lang.String, java.util.List, java.util.List,<NEW_LINE>* int, int, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public StatementHelper generateSelectQuery(St...
.getWhereStringForFilters(filters, sh));
284,942
public static void inverse(GrayF32 inputR, GrayF32 inputI, GrayF32 outputR) {<NEW_LINE>GrayF32 tempR = new GrayF32(inputR.width, inputR.height);<NEW_LINE>GrayF32 tempI = new GrayF32(inputI.width, inputI.height);<NEW_LINE>for (int y = 0; y < inputR.height; y++) {<NEW_LINE>int index = inputR.startIndex + inputR.stride * ...
= new float[inputR.height];
805,724
final DeleteTrialResult executeDeleteTrial(DeleteTrialRequest deleteTrialRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTrialRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,448,767
private void generateFields(StringBuilder bd, boolean wasSecurityException, List<ExecutionResult> results) {<NEW_LINE>if (Properties.RESET_STANDARD_STREAMS) {<NEW_LINE>bd.append(METHOD_SPACE);<NEW_LINE>bd.append("private PrintStream systemOut = null;" + '\n');<NEW_LINE>bd.append(METHOD_SPACE);<NEW_LINE>bd.append("priva...
()).append(" (");
1,410,930
private void fixLibraryLocation(EarProjectOperations original) throws IllegalArgumentException {<NEW_LINE>String libPath = original.libraryPath;<NEW_LINE>if (libPath != null) {<NEW_LINE>if (!new File(libPath).isAbsolute()) {<NEW_LINE>// relative path to libraries<NEW_LINE>if (!original.libraryWithinProject) {<NEW_LINE>...
.absolutesRelPath).getAbsolutePath());
539,199
// submit the map/reduce job.<NEW_LINE>public int run(final String[] args) throws Exception {<NEW_LINE>if (args.length != 4) {<NEW_LINE>return printUsage();<NEW_LINE>}<NEW_LINE>int i;<NEW_LINE>input_path = <MASK><NEW_LINE>output_path = new Path(args[1]);<NEW_LINE>nreducers = Integer.parseInt(args[2]);<NEW_LINE>double a...
new Path(args[0]);
615,966
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (args != null) {<NEW_LINE>poiCount = args.getInt(POI_COUNT_KEY);<NEW_LINE>osmNotesCount = args.getInt(NOTES_COUNT_KEY);<NEW_LINE>}<NEW_LINE>items.add(new TitleItem(getString(R.string.shared_string_export)));<NEW_...
R.string.osm_edits_export_desc)));
75,010
public static boolean executeAntTask(String buildXmlFileFullPath, String target, Properties properties) {<NEW_LINE>boolean success = false;<NEW_LINE>DefaultLogger consoleLogger = getConsoleLogger();<NEW_LINE>// Prepare Ant project<NEW_LINE>Project project = new Project();<NEW_LINE>File buildFile = new File(buildXmlFile...
, properties.getProperty(k));
1,334,608
protected final View makeContentView() {<NEW_LINE>LinearLayout rootLayout = new LinearLayout(activity);<NEW_LINE>rootLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));<NEW_LINE>rootLayout.setBackgroundColor(backgroundColor);<NEW_LINE>rootLayout.setOrientation(LinearLayout.VERTICAL);<NEW_...
(MATCH_PARENT, 0, 1.0f));
1,802,757
public int alterNameAndTypeAndFlag(String tableSchema, String originName, String newName, int tableType, long flag) {<NEW_LINE>try {<NEW_LINE>final Map<Integer, ParameterContext> params = new HashMap<>(12);<NEW_LINE>MetaDbUtil.setParameter(1, params, ParameterMethod.setString, newName);<NEW_LINE>MetaDbUtil.setParameter...
DdlMetaLogUtil.logSql(UPDATE_TABLES_EXT_SWITCH_NAME_TYPE_FLAG, params);
746,736
public List<Article> queryCrossWikiLookup(String label, Logger logger) throws IOException {<NEW_LINE>List<Article> results = new LinkedList<>();<NEW_LINE>String capitalisedLabel = super.capitalizeTitle(label);<NEW_LINE>String encodedName = URLEncoder.encode(capitalisedLabel, "UTF-8").replace("+", "%20");<NEW_LINE>Strin...
URL request = new URL(requestURL);
832,790
public void replayDropBackend(Backend backend) {<NEW_LINE>LOG.debug("replayDropBackend: {}", backend);<NEW_LINE>// update idToBackend<NEW_LINE>Map<Long, Backend> copiedBackends = Maps.newHashMap(idToBackendRef);<NEW_LINE>copiedBackends.remove(backend.getId());<NEW_LINE>ImmutableMap<Long, Backend> newIdToBackend = Immut...
removeBackend(backend.getId());
199,270
/*<NEW_LINE>private AmopCommonArgs buildAmopCommonArgs(TransmissionlRequestWarp<?> requestWarp) {<NEW_LINE>AmopCommonArgs amopCommonArgs = buildAmopCommonArgs(requestWarp.getRequest());<NEW_LINE>amopCommonArgs.setChannelId(requestWarp.getWeIdAuthObj().getChannelId());<NEW_LINE>amopCommonArgs.setMessage(requestWarp.getE...
(request.getArgs()));
1,215,303
public static String repeat(String value, int count) {<NEW_LINE>if (count < 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (value == null || value.length() == 0 || count == 1) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>if (count == 0) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>if (value.length() > Integer.MAX_VALUE / cou...
throw new IllegalArgumentException("count is negative: " + count);
1,611,514
public static boolean isAvailable(@NonNull @Mode String mode) {<NEW_LINE>switch(mode) {<NEW_LINE>case MODE_OPEN_PGP:<NEW_LINE>String keyIds = (String) AppPref.get(AppPref.PrefKey.PREF_OPEN_PGP_USER_ID_STR);<NEW_LINE>// FIXME(1/10/20): Check for the availability of the provider<NEW_LINE>return !TextUtils.isEmpty(keyIds)...
).containsKey(RSACrypto.RSA_KEY_ALIAS);
433,734
/*<NEW_LINE>* Update records associated with a particular object id<NEW_LINE>*<NEW_LINE>* @param query Query to retrieve all of the statistics records associated with<NEW_LINE>* a particular object<NEW_LINE>*<NEW_LINE>* @param field Field to use for grouping records<NEW_LINE>*<NEW_LINE>* @return number of items process...
SolrDocumentList sdl = sr.getResults();
874,721
public ResponseEntity<?> filterEntities(DomainTypeAdministrationConfiguration domainTypeAdministrationConfiguration, RootResourceInformation repoRequest, PersistentEntityResourceAssembler assembler, WebRequest request, Pageable pageable, @PathVariable String scopeName) throws Exception {<NEW_LINE>DynamicRepositoryInvok...
resources = resultToResources(page, assembler);
1,020,779
public void parse(ParserRequest request, StreamObserver<ParserResponse> responseObserver) {<NEW_LINE>ParseResult parseResult = new ParseResult();<NEW_LINE>try {<NEW_LINE>ParseInterface parser = parserFactory.newParser(request.getDialect());<NEW_LINE>parseResult = parser.parse(request.getSqlProgram());<NEW_LINE>} catch ...
responseBuilder.setIndex(parseResult.position);
1,794,387
private List<String> createUpdateSqls(String classname) {<NEW_LINE>final List<String> updateSqls = new ArrayList<>();<NEW_LINE>final Class<?> clazz = loadClass(classname);<NEW_LINE>final Field[] classFields = clazz.getFields();<NEW_LINE>for (final Field field : classFields) {<NEW_LINE>final <MASK><NEW_LINE>if (!fieldNa...
String fieldName = field.getName();
1,697,735
protected void doColorPicking(ColorPickerInfo pickerInfo) {<NEW_LINE>ObjectColorPicker picker = pickerInfo.getPicker();<NEW_LINE>picker.getRenderTarget().bind();<NEW_LINE>// Set background color (to Object3D.UNPICKABLE to prevent any conflicts)<NEW_LINE>GLES20.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);<NEW_LINE>// Clear buf...
GLES20.glEnable(GLES20.GL_DEPTH_TEST);
1,733,415
public MethodNode generate() {<NEW_LINE>int size = Bytecode.getArgsSize(this.argTypes) + this.returnType.getSize() + (this.targetIsStatic ? 0 : 1);<NEW_LINE>MethodNode method = this.createMethod(size, size);<NEW_LINE>if (!this.targetIsStatic) {<NEW_LINE>method.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));<NEW_LI...
.targetMethod.desc, false));
1,668,889
public static void checkToken(String path, final MainActivity mainActivity) {<NEW_LINE>new AsyncTask<String, Void, Boolean>() {<NEW_LINE><NEW_LINE>OpenMode serviceType;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Boolean doInBackground(String... params) {<NEW_LINE>final <MASK><NEW_LINE>boolean isTokenValid = true;<...
DataUtils dataUtils = DataUtils.getInstance();
236,942
// rbDelete().<NEW_LINE>void move(AbstractTreeMap.Entry x, AbstractTreeMap.Entry y) throws ObjectManagerException {<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE>trace.exit(this, cclass, "move", new Object[] { x, y });<NEW_LINE>Entry yParent = (Entry) y.getParent();<NEW_LINE>// Set x in...
setLeft(y.getLeft());
553,494
private void addLocalFieldsAndVars(final Env env) throws IOException {<NEW_LINE>final CompilationController controller = env.getController();<NEW_LINE>final Elements elements = controller.getElements();<NEW_LINE>final Types types = controller.getTypes();<NEW_LINE>final <MASK><NEW_LINE>Set<? extends TypeMirror> smartTyp...
Scope scope = env.getScope();
294,275
public static Parameter createInstance(AnnotationModel annotation, ApiContext context) {<NEW_LINE>ParameterImpl from = new ParameterImpl();<NEW_LINE>from.setName(annotation.getValue("name", String.class));<NEW_LINE>EnumModel inEnum = annotation.<MASK><NEW_LINE>if (inEnum != null) {<NEW_LINE>from.setIn(In.valueOf(inEnum...
getValue("in", EnumModel.class);
193,325
private void checkMemberOfNativeJsType(Member member) {<NEW_LINE>MemberDescriptor memberDescriptor = member.getDescriptor();<NEW_LINE>if (memberDescriptor.isJsOverlay() || memberDescriptor.isSynthetic()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String readableDescription = member.getReadableDescription();<NEW_LINE>JsMemb...
.getJsInfo().getJsMemberType();
155,054
// Run the job.<NEW_LINE>void runJob() throws IOException {<NEW_LINE>++currentAttempt;<NEW_LINE>if (!shouldRetry()) {<NEW_LINE>throw new RuntimeException(String.format("Failed to create job with prefix %s, " + "reached max retries: %d, last failed job: %s.", currentJobId.getJobIdPrefix(), maxRetries, BigQueryHelpers.jo...
result = getRetryJobId(currentJobId, lookupJob);
77,144
protected static void clearIndexLabel(HugeGraphParams graph, Id id) {<NEW_LINE>Id olapIndexLabel = findOlapIndexLabel(graph, id);<NEW_LINE>if (olapIndexLabel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GraphTransaction graphTx = graph.graphTransaction();<NEW_LINE>SchemaTransaction schemaTx = graph.schemaTransaction...
updateSchemaStatus(indexLabel, SchemaStatus.INVALID);
1,165,854
public void run(TaskSource taskSource, Schema schema, FileInput input, PageOutput pageOutput) {<NEW_LINE>final PluginTask task = loadPluginTaskFromTaskSource(taskSource);<NEW_LINE>final ConfigSource originalConfig = task.getOriginalConfig();<NEW_LINE>final <MASK><NEW_LINE>// get sample buffer<NEW_LINE>Buffer sample = r...
int guessParserSampleBufferBytes = task.getGuessParserSampleBufferBytes();
891,062
public TagCollection unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TagCollection tagCollection = new TagCollection();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
1,754,279
public static void deleteBreakpoints(final BackEndDebuggerProvider debuggerProvider, final int[] rows) {<NEW_LINE>Preconditions.checkNotNull(debuggerProvider, "IE01886: Debugger provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(rows, "IE02253: Rows argument can't be null");<NEW_LINE>final ArrayLi...
<IDebugger, BreakpointAddress>>();
373,640
public static MarkdownParagraphGroup parse(final char[] raw) {<NEW_LINE>final CharArrSubstring[] rawLines = CharArrSubstring.generateFromLines(raw);<NEW_LINE>final MarkdownLine[] lines = new MarkdownLine[rawLines.length];<NEW_LINE>for (int i = 0; i < rawLines.length; i++) {<NEW_LINE>lines[i] = MarkdownLine<MASK><NEW_LI...
.generate(rawLines[i]);
93,951
private void validateVector(String name, ValueVector vector) {<NEW_LINE>if (vector instanceof BitVector) {<NEW_LINE>validateBitVector(name, (BitVector) vector);<NEW_LINE>} else if (vector instanceof RepeatedBitVector) {<NEW_LINE>validateRepeatedBitVector(name, (RepeatedBitVector) vector);<NEW_LINE>} else if (vector ins...
getClass().getSimpleName());
1,095,871
protected XMLResource createEmfXmlResource(MediaType mediaType) {<NEW_LINE>XMLResource result = null;<NEW_LINE>if (MediaType.APPLICATION_ECORE.isCompatible(getMediaType())) {<NEW_LINE>result = new EMOFResourceImpl();<NEW_LINE>} else if (MediaType.APPLICATION_XMI.isCompatible(getMediaType())) {<NEW_LINE>result = new XMI...
XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
1,289,411
protected void validateMissingJndiName(Class<?> instanceClass, A annotation) throws InjectionException {<NEW_LINE>if (// F50309.6<NEW_LINE>isValidationLoggable()) {<NEW_LINE>Tr.error(tc, "MISSING_CLASS_LEVEL_ANNOTATION_NAME_CWNEN0073E", '@' + annotation.annotationType().getSimpleName(), instanceClass.getName(), ivNameS...
ivNameSpaceConfig.getApplicationName() + " application does not specify a JNDI name.");
1,195,886
private Mono<PagedResponse<VmmServerInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LI...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
931,402
private Mono<Response<VMExtensionPayloadInner>> vMHostPayloadWithResponseAsync(String resourceGroupName, String monitorName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW...
)).readOnly()));
622,651
private void openDialog(Section section, KeyBind name) {<NEW_LINE>rebindDialog = new Dialog(rebindAxis ? bundle.get("keybind.press.axis", "Press an axis or key...") : bundle.get("keybind.press", "Press a key..."));<NEW_LINE>rebindKey = name;<NEW_LINE>rebindDialog.titleTable.getCells().first().pad(4);<NEW_LINE>if (secti...
keyDown(i -> setup());
1,458,083
protected int doChooseSplitIndex(List<DBTreeRecord<?, ? extends NS>> children, Comparator<NS> axis) {<NEW_LINE>children.sort(Comparator.comparing(DBTreeRecord::getBounds, axis));<NEW_LINE>// Distributions as described in Section 4.2<NEW_LINE>// Precompute the bounding boxes of each pair, incrementally.<NEW_LINE>// ****...
boundsFirsts = new ArrayDeque<>();
1,768,780
private static WMSEndpoint extractService(Node element, WMSEndpoint ret) {<NEW_LINE>for (int i = 0; i < element.getChildNodes().getLength(); i++) {<NEW_LINE>Node e = element.getChildNodes().item(i);<NEW_LINE>String name = e.getNodeName();<NEW_LINE>// Starts by looking for the entry tag<NEW_LINE>if (name.contains("Name"...
getAttributes().getNamedItem("xlink:href");
1,213,993
private void readTheme(final List<ModelNode> list, final XMLExtendedStreamReader reader) throws XMLStreamException {<NEW_LINE>ModelNode addThemeDefaults = new ModelNode();<NEW_LINE>addThemeDefaults.get(ModelDescriptionConstants.OP<MASK><NEW_LINE>PathAddress addr = PathAddress.pathAddress(PathElement.pathElement(ModelDe...
).set(ModelDescriptionConstants.ADD);
1,184,378
private void copyMethods(ProviderConfig<T> providerConfig, ServiceConfig<T> serviceConfig) {<NEW_LINE>Map<String, MethodConfig<MASK><NEW_LINE>if (CommonUtils.isNotEmpty(methodConfigs)) {<NEW_LINE>List<com.alibaba.dubbo.config.MethodConfig> dubboMethodConfigs = new ArrayList<com.alibaba.dubbo.config.MethodConfig>();<NEW...
> methodConfigs = providerConfig.getMethods();
885,907
public X509Certificate createAndSignCertificate(String username, X500Name subject, KeyPair newCertKeyPair, X509Certificate caCert, PrivateKey pk, Map<String, Integer> subjectAltNames) throws Exception {<NEW_LINE>log.debug("Called createAndSignCertificate for: {}, {}", username, subject);<NEW_LINE>X500Name newCertSubjec...
.SIGNATURE_ALGO).build(pk);
1,215,278
public static StatementResourceHolder populateHolder(AgentInstanceContext agentInstanceContext, StatementAgentInstanceFactoryResult startResult) {<NEW_LINE>StatementResourceHolder holder = new StatementResourceHolder(agentInstanceContext, startResult.getStopCallback(), startResult.getFinalView(), startResult.getOptiona...
setTopViewables(selectResult.getTopViews());
416,875
protected CompletableFuture<Boolean> addAsync(String requestQueueName, RemoteServiceRequest request) {<NEW_LINE>ScheduledParameters params = (ScheduledParameters) <MASK><NEW_LINE>params.setRequestId(request.getId());<NEW_LINE>long expireTime = 0;<NEW_LINE>if (params.getTtl() > 0) {<NEW_LINE>expireTime = System.currentT...
request.getArgs()[0];
1,759,638
public void onEnum(final Token fieldToken, final DirectBuffer buffer, final int bufferIndex, final List<Token> tokens, final int fromIndex, final int toIndex, final int actingVersion) {<NEW_LINE>final Token typeToken = tokens.get(fromIndex + 1);<NEW_LINE>final long encodedValue = readEncodingAsLong(buffer, bufferIndex,...
.constValue().toString();
550,310
private void startSwarmExecContainer(Task task, String[] command, String containerId) throws DockerException, InterruptedException {<NEW_LINE>String taskId = task.id();<NEW_LINE>List<String> parsedCmd = new ArrayList<>();<NEW_LINE>String[] splittedCmd = (command[2].replace("notify 'Zalenium'", "notify, Zalenium")).spli...
cmd(parsedCmd).build();
1,425,031
public CreateChannelBanResult createChannelBan(CreateChannelBanRequest createChannelBanRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createChannelBanRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque...
new JsonResponseHandler<CreateChannelBanResult>(unmarshaller);
46
public static void main(String[] args) throws Exception {<NEW_LINE>HttpTransport httpTransport = GoogleNetHttpTransport.newTrustedTransport();<NEW_LINE>JsonFactory jsonFactory = JacksonFactory.getDefaultInstance();<NEW_LINE>Discovery discovery = new Discovery.Builder(httpTransport, jsonFactory, null).build();<NEW_LINE>...
getMethods().get("predict");
280,773
public boolean requestArmMode(PowermaxArmMode armMode, String pinCode) {<NEW_LINE>logger.debug("requestArmMode(): armMode = {}", armMode.getShortName());<NEW_LINE>boolean done = false;<NEW_LINE>if (!armMode.isAllowedCommand()) {<NEW_LINE>logger.debug(<MASK><NEW_LINE>} else if (pinCode.length() != 4) {<NEW_LINE>logger.d...
"Powermax alarm binding: requested arm mode {} rejected", armMode.getShortName());
257,002
protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<NEW_LINE>if (b == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>final Date start;<NEW_LINE>if (Options.v().verbose()) {<NEW_LINE>start = new Date();<NEW_LINE>logger.debug("[TypeAssigner] typing system star...
jb, opt.use_older_type_assigner());
1,344,844
public static int[] effectiveKernelSize(int[] kernel, int[] dilation) {<NEW_LINE>// Determine the effective kernel size, accounting for dilation<NEW_LINE>// http://deeplearning.net/software/theano/tutorial/conv_arithmetic.html#dilated-convolutions<NEW_LINE>if (kernel.length == 2) {<NEW_LINE>if (dilation[0] == 1 && dila...
dilation[2] - 1) };
918,828
private String constructLocationIdentifier(@NonNull final JsonRequestLocation location, @Nullable final BPartnerLookupAdvise bpartnerLookupAdvise) {<NEW_LINE>if (bpartnerLookupAdvise != null) {<NEW_LINE>// JsonRequestBPartnerLocationAndContact validated in its constructor that this actually works!<NEW_LINE>final String...
).setParameter("jsonRequestLocation", location);
256,853
public void renderTileEntityAt(TileQuarry quarry, double x, double y, double z, float partialTicks, int arg) {<NEW_LINE>Minecraft.getMinecraft().mcProfiler.startSection("bc");<NEW_LINE>Minecraft.getMinecraft().mcProfiler.startSection("quarry");<NEW_LINE>super.renderTileEntityAt(quarry, x, <MASK><NEW_LINE>Minecraft.getM...
y, z, partialTicks, arg);
1,266,777
public void write(org.apache.thrift.protocol.TProtocol oprot, TActiveTraceHistogram struct) throws org.apache.thrift.TException {<NEW_LINE>struct.validate();<NEW_LINE>oprot.writeStructBegin(STRUCT_DESC);<NEW_LINE>oprot.writeFieldBegin(VERSION_FIELD_DESC);<NEW_LINE>oprot.writeI16(struct.version);<NEW_LINE>oprot.writeFie...
.activeTraceCount.size()));
1,146,327
private DiffNodeState determineStateFromContent() {<NEW_LINE>if (getRight() == null) {<NEW_LINE>if (originalRight == null) {<NEW_LINE>return DiffNodeState.NONE;<NEW_LINE>} else if (getLeft() == null) {<NEW_LINE>return DiffNodeState.ALL;<NEW_LINE>} else {<NEW_LINE>return DiffNodeState.PARTIAL;<NEW_LINE>}<NEW_LINE>} else...
error("No Viewer created for " + getName());
1,656,636
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("functionKey"), con...
, convLabelName("Function Key"), 64);
475,884
public void processView(EventBean[] newData, EventBean[] oldData, boolean isGenerateSynthetic) {<NEW_LINE>generateRemoveStreamJustOnce(isGenerateSynthetic, false);<NEW_LINE>if (newData != null) {<NEW_LINE>for (EventBean aNewData : newData) {<NEW_LINE>EventBean[] eventsPerStream = new EventBean[] { aNewData };<NEW_LINE>...
mk, processor.getExprEvaluatorContext());
1,178,492
public void sendWeather(Player[] players) {<NEW_LINE>if (players == null) {<NEW_LINE>players = this.getPlayers().values().toArray(new Player[0]);<NEW_LINE>}<NEW_LINE>LevelEventPacket pk = new LevelEventPacket();<NEW_LINE>if (this.isRaining()) {<NEW_LINE>pk.evid = LevelEventPacket.EVENT_START_RAIN;<NEW_LINE>pk.data = th...
Server.broadcastPacket(players, pk);
1,383,551
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.wsspi.channelfw.InterChannelCallback#error(com.ibm.wsspi.channelfw.VirtualConnection, java.lang.Throwable)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void error(VirtualConnection vc, Throwable t) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW...
tc, "error callback called , WriteListener enabled: " + this._wl);
542,201
public HllSketch apply(final Iterable<Object> iterable) {<NEW_LINE>final HllSketch hllp = new HllSketch(logK);<NEW_LINE>if (nonNull(iterable)) {<NEW_LINE>for (final Object o : iterable) {<NEW_LINE>if (nonNull(o)) {<NEW_LINE>if (o instanceof String) {<NEW_LINE>hllp.update((String) o);<NEW_LINE>} else if (o instanceof Lo...
(((long) o));
350,252
public Bandwidth fromJsonCompatibleSnapshot(Map<String, Object> snapshot, Version backwardCompatibilityVersion) throws IOException {<NEW_LINE>int formatNumber = readIntValue(snapshot, "version");<NEW_LINE>Versions.check(formatNumber, v_7_0_0, v_7_0_0);<NEW_LINE>long capacity = readLongValue(snapshot, "capacity");<NEW_L...
refillPeriodNanos = readLongValue(snapshot, "refillPeriodNanos");
297,405
private String constructExampleCode(CodegenModel codegenModel, HashMap<String, CodegenModel> modelMaps, HashMap<String, Integer> processedModelMap) {<NEW_LINE>// break infinite recursion. Return, in case a model is already processed in the current context.<NEW_LINE>String model = codegenModel.name;<NEW_LINE>if (process...
processedModelMap.put(model, 1);
1,500,944
protected void paintTabBorder(Graphics g, int index, int x, int y, int width, int height) {<NEW_LINE>Color borderColor = UIManager.getColor("NbTabControl.borderColor");<NEW_LINE>Color borderShadowColor = UIManager.getColor("NbTabControl.borderShadowColor");<NEW_LINE>g.setColor(borderColor);<NEW_LINE>if (index > 0) {<NE...
width, y + height - 1);
1,734,036
PointLatLon resolveAsPoint(final TermNode termNode, final IBindingSet bs) {<NEW_LINE>final Literal lit = resolveAsLiteral(termNode, bs);<NEW_LINE>if (lit == null || lit.stringValue().isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String pointAsStr = lit.stringValue();<NEW_LINE>IGeoSpatialLiteralSerializer...
idxOfField(ServiceMapping.LATITUDE)]);
1,518,232
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final OpeningHoursParser.BasicOpeningHourRule item = (OpeningHoursParser.BasicOpeningHourRule) getArguments().getSerializable(ITEM);<NEW_LINE>final int positionToAdd = getArguments().getInt(POSITION_TO_ADD);<NEW_LINE>AlertDialog.Builder builder = new Al...
final boolean createNew = positionToAdd == -1;