idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
51,447 | private void garbageCollectionMetrics(MetricRegistry registry) {<NEW_LINE>List<GarbageCollectorMXBean> gcs = ManagementFactory.getGarbageCollectorMXBeans();<NEW_LINE>if (gcs.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Metadata countMetadata = Metadata.builder().withName("gc.total").withType(MetricType.COUNTER).wi... | "elapsed time. This attribute may display the same value even if the collection " + "count has been incremented if the collection elapsed time is very short.").build(); |
814,643 | private static InetSocketAddress analyzeProxy(URI uri) {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("uri", uri);<NEW_LINE>List<Proxy> proxies = ProxySelector.getDefault().select(uri);<NEW_LINE>// NOI18N<NEW_LINE>assert proxies != null : "ProxySelector cannot return null for " + uri;<NEW_LINE>// NOI18N<NEW_LINE>asse... | (InetSocketAddress) p.address(); |
808,123 | public static DragstrParams of(final int maxPeriod, final int maxRepeats, final double[][] gop, final double[][] gcp, final double[][] api, final String name) {<NEW_LINE>ParamUtils.isPositive(maxPeriod, "max period must be a positive");<NEW_LINE><MASK><NEW_LINE>Utils.nonNull(gop, "gop cannot be null");<NEW_LINE>Utils.n... | ParamUtils.isPositive(maxRepeats, "max repeats must be a positive"); |
1,686,663 | public static ScoredDocuments fromESDocs(SearchHits rs) {<NEW_LINE>ScoredDocuments scoredDocs = new ScoredDocuments();<NEW_LINE>SearchHit[] searchHits = rs.getHits();<NEW_LINE>int length = searchHits.length;<NEW_LINE>scoredDocs.documents = new Document[length];<NEW_LINE>scoredDocs.ids = new int[length];<NEW_LINE>scored... | , new BytesRef(id))); |
966,155 | private void train(String trainFile, String modelPath) throws IOException {<NEW_LINE>Map<Integer, SceneGraphImage> images = loadImages(trainFile);<NEW_LINE>KNNClassifierFactory<String, String> classifierFactory = new KNNClassifierFactory<String, String>(1, false, false);<NEW_LINE>List<RVFDatum<String, String><MASK><NEW... | > dataset = Generics.newLinkedList(); |
303,197 | public void connected(Mesos mesos) {<NEW_LINE>LOG.info("Connected to Mesos master.");<NEW_LINE>isConnected.set(true);<NEW_LINE>Optional<String> frameworkId = storage.read(storeProvider -> storeProvider.getSchedulerStore().fetchFrameworkId());<NEW_LINE>Protos.FrameworkInfo.Builder frameworkBuilder = infoFactory.getFrame... | get()).build(); |
724,249 | private void convertArrowFunctionParameterList(Expression paramList, ParserContextFunctionNode function) {<NEW_LINE>Expression paramListExpr = paramList;<NEW_LINE>if (paramListExpr instanceof ExpressionList) {<NEW_LINE>// see parenthesizedExpressionAndArrowParameterList() and leftHandSideExpression()<NEW_LINE>paramList... | param = params.get(i); |
1,133,501 | private void layoutStackedChildrenAt(Point linePoint, ConnectionWidgetLayoutAlignment adjustedAlignment, ConnectionWidget connectionWidget, ArrayList<Widget> children) {<NEW_LINE>int areaWidth = 0, areaHeight = 0;<NEW_LINE>if (adjustedAlignment != ConnectionWidgetLayoutAlignment.NONE) {<NEW_LINE>for (Widget childWidget... | new Rectangle(areaWidth, areaHeight)); |
776,839 | private ClassTemplateSpec processSchema(DataSchema schema, ClassTemplateSpec enclosingClass, String memberName) {<NEW_LINE>final CustomInfoSpec customInfo = getImmediateCustomInfo(schema);<NEW_LINE>ClassTemplateSpec result = null;<NEW_LINE>TyperefDataSchema originalTyperefSchema = null;<NEW_LINE>while (schema.getType()... | found = _schemaToClassMap.get(schema); |
245,665 | private void loadNode307() {<NEW_LINE>FiniteTransitionVariableTypeNode node = new FiniteTransitionVariableTypeNode(this.context, Identifiers.AlarmConditionType_ShelvingState_LastTransition, new QualifiedName(0, "LastTransition"), new LocalizedText("en", "LastTransition"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), ... | .expanded(), true)); |
808,701 | private void initComponents() {<NEW_LINE>jlCustomOID = new JLabel(res.getString("DCustomExtension.jlCustomOID.text"));<NEW_LINE>joidCustomOID = new JObjectIdEditor();<NEW_LINE>joidCustomOID.setToolTipText(res.getString("DCustomExtension.joidCustomOID.tooltip"));<NEW_LINE>// jlValueType = new JLabel(res.getString("DCust... | ("insets dialog, fill", "[right]unrel[]", "[]unrel[]")); |
805,107 | public static NotificationDetails from(Map<String, Object> arguments) {<NEW_LINE>NotificationDetails notificationDetails = new NotificationDetails();<NEW_LINE>notificationDetails.payload = (String) arguments.get(PAYLOAD);<NEW_LINE>notificationDetails.id = (Integer) arguments.get(ID);<NEW_LINE>notificationDetails.title ... | ) arguments.get(MATCH_DATE_TIME_COMPONENTS)]; |
1,009,308 | private static WorkerMetaInfoProto buildWorkerMetaProto(AMWorker worker) {<NEW_LINE>WorkerMetaInfoProto.Builder builder = WorkerMetaInfoProto.newBuilder();<NEW_LINE>WorkerAttempt attempt = worker.getRunningAttempt();<NEW_LINE>WorkerAttemptIdProto workerAttemptIdProto = convertToIdProto(attempt.getId());<NEW_LINE>Locati... | addTasks(taskMetaBuilder.build()); |
1,410,353 | protected void resolveOnce() {<NEW_LINE>double[] titles = new double[100];<NEW_LINE>String[] cmd = new String[] { configuration.getMPlayerPath(), "-identify", "-endpos", "0", "-ao", "null", "-vc", "null", "-vo", "null", "-dvd-device", ProcessUtil.getShortFileNameIfWideChars(file.getAbsolutePath()), "dvd://" };<NEW_LINE... | lastIndexOf("LENGTH=") + 7)); |
822,710 | private void smartAppendExclusive(char start, char length) {<NEW_LINE>int oldend;<NEW_LINE>if ((nbrruns == 0) || (start > (oldend = (getValue(nbrruns - 1)) + (getLength(nbrruns - 1)) + 1))) {<NEW_LINE>// we add a new one<NEW_LINE>valueslength[2 * nbrruns] = start;<NEW_LINE>valueslength[2 * nbrruns + 1] = length;<NEW_LI... | int newend = start + length + 1; |
139,362 | public void run() {<NEW_LINE>for (String query : _input.getParsedQueries()) {<NEW_LINE><MASK><NEW_LINE>QueryContext queryContext = _input.getQueryContext(query);<NEW_LINE>if (queryContext.getLimit() > _params._thresholdMaxLimitSize) {<NEW_LINE>// Flag the queries with LIMIT value higher than a threshold.<NEW_LINE>_outp... | LOGGER.debug("Parsing query: {}", query); |
1,843,368 | private void drawOneHexa(UGraphic ug, String colorName, int i, int j, UPolygon hexa) {<NEW_LINE>final HColorSimple color = (HColorSimple) colors.getColorOrWhite(colorName);<NEW_LINE><MASK><NEW_LINE>ug = ug.apply(new UTranslate(centerHexa(i, j)));<NEW_LINE>ug.draw(hexa);<NEW_LINE>final UFont font = UFont.sansSerif(14).b... | ug = applyColor(ug, color); |
273,086 | protected RecordSetInner prepareForUpdate(RecordSetInner resource) {<NEW_LINE>if (innerModel().mxRecords() != null && !innerModel().mxRecords().isEmpty()) {<NEW_LINE>if (resource.mxRecords() == null) {<NEW_LINE>resource.withMxRecords(new ArrayList<>());<NEW_LINE>}<NEW_LINE>resource.mxRecords().addAll(innerModel().mxRec... | mxRecords().remove(record); |
1,642,700 | private void expandExternals(MaterialConfig configuredMaterial, MaterialConfigs expandedMaterials) {<NEW_LINE>SvnMaterialConfig svnMaterialConfig = (SvnMaterialConfig) configuredMaterial;<NEW_LINE>if (!svnMaterialConfig.isCheckExternals()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<SvnExternal> urLs = svn(svnMaterialC... | setUrl(externalUrl.getURL()); |
53,781 | public int compare(Object lhsObj, Object rhsObj) {<NEW_LINE>InstantConverter conv = ConverterManager.getInstance().getInstantConverter(lhsObj);<NEW_LINE>Chronology lhsChrono = conv.getChronology(lhsObj, (Chronology) null);<NEW_LINE>long lhsMillis = conv.getInstantMillis(lhsObj, lhsChrono);<NEW_LINE>// handle null==null... | (lhsChrono).remainder(lhsMillis); |
1,330,124 | public static List<Class<?>> findParamTypesFromDescriptor(String desc) {<NEW_LINE>int beginIndex = desc.indexOf('(');<NEW_LINE>int endIndex = desc.lastIndexOf(')');<NEW_LINE>if ((beginIndex == -1 && endIndex != -1) || (beginIndex != -1 && endIndex == -1)) {<NEW_LINE>throw JobRunrException.shouldNotHappenException("Coul... | paramTypes = new ArrayList<>(); |
402,690 | public PresoObjAllocCCTNode createPresentationCCT(int classId, boolean dontShowZeroLiveObjAllocPaths) throws ClientUtils.TargetAppOrVMTerminated {<NEW_LINE>transaction.beginTrans(false);<NEW_LINE>try {<NEW_LINE>PresoObjAllocCCTNode presNode = null;<NEW_LINE>RuntimeMemoryCCTNode classNode = getClassNode(classId);<NEW_LI... | classNode, className, currentEpoch, dontShowZeroLiveObjAllocPaths); |
936,903 | public static GetMsConfigResourcesResponse unmarshall(GetMsConfigResourcesResponse getMsConfigResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMsConfigResourcesResponse.setRequestId(_ctx.stringValue("GetMsConfigResourcesResponse.RequestId"));<NEW_LINE>getMsConfigResourcesResponse.setResultCode(_ctx.stringValu... | ("GetMsConfigResourcesResponse.Resource.Attributes[" + i + "].Id")); |
1,564,143 | public void readFields(DataInput dataInput) throws IOException {<NEW_LINE>// load iterators<NEW_LINE>long iterSize = dataInput.readInt();<NEW_LINE>if (iterSize > 0)<NEW_LINE>iterators = new ArrayList<>();<NEW_LINE>for (int i = 0; i < iterSize; i++) iterators.add(new IteratorSetting(dataInput));<NEW_LINE>// load ranges<... | <>(colFam, colQual)); |
1,685,199 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "key", "value" };<NEW_LINE>String epl = "@name('create') create window MyWindowFU#firstunique(key) as MySimpleKeyValueMap;\n" + "insert into MyWindowFU select theString as key, longBoxed as value from SupportBean;\n" + "@name('s0') s... | sendSupportBean(env, "G1", 2L); |
721,300 | public void updateNrOfOLCandsWithSamePoReference(@NonNull final I_M_ShipmentSchedule shipmentSchedule) {<NEW_LINE>final ImmutableSet.Builder<PoReferenceLookupKey> poReferenceLookupKeySetBuilder = ImmutableSet.builder();<NEW_LINE>final OrgId orgId = OrgId.ofRepoId(shipmentSchedule.getAD_Org_ID());<NEW_LINE>final I_M_Shi... | asLocalDate(shipmentSchedule.getCreated()); |
787,120 | private void fillBuffer() throws IOException {<NEW_LINE>int len = (int) Math.min(charBuffer.capacity() - charBuffer.position(), remaining);<NEW_LINE>if (len > 0) {<NEW_LINE>len = reader.read(charBuffer.array(), charBuffer.position(), len);<NEW_LINE>}<NEW_LINE>if (len > 0) {<NEW_LINE>remaining -= len;<NEW_LINE>} else {<... | ByteBuffer.allocate(Constants.IO_BUFFER_SIZE); |
1,629,605 | public void run() {<NEW_LINE>List<String> args = new ArrayList<String>();<NEW_LINE>Object o;<NEW_LINE>for (int i = 0; i < paramTable.getRowCount(); ++i) {<NEW_LINE>o = paramTable.data.getValueAt(i, COL_VALUE);<NEW_LINE>args.add(o == null ? "" : o.toString());<NEW_LINE>}<NEW_LINE>String[] cmds;<NEW_LINE>if (GM.isWindows... | ProcessWatchThread(proc.getErrorStream()); |
117,554 | public com.amazonaws.services.kinesisfirehose.model.LimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesisfirehose.model.LimitExceededException limitExceededException = new com.amazonaws.services.kinesisfirehose.model.LimitExceededExcepti... | JsonToken token = context.getCurrentToken(); |
889,804 | private static DescribeModelResponse createModelResponse(ModelManager modelManager, String modelName, Model model) {<NEW_LINE>DescribeModelResponse resp = new DescribeModelResponse();<NEW_LINE>resp.setModelName(modelName);<NEW_LINE>resp.setModelUrl(model.getModelUrl());<NEW_LINE>resp.setBatchSize(model.getBatchSize());... | setMinWorkers(model.getMinWorkers()); |
843,174 | public int add(@ParametricNullness E element, int occurrences) {<NEW_LINE>checkNonnegative(occurrences, "occurrences");<NEW_LINE>if (occurrences == 0) {<NEW_LINE>return count(element);<NEW_LINE>}<NEW_LINE>checkArgument(range.contains(element));<NEW_LINE>AvlNode<E<MASK><NEW_LINE>if (root == null) {<NEW_LINE>comparator()... | > root = rootReference.get(); |
1,158,053 | public static void main(String... args) {<NEW_LINE>final long start = System.currentTimeMillis();<NEW_LINE>try {<NEW_LINE>final Injector injector = Guice.createInjector(Stage.PRODUCTION, new SingularityRunnerBaseModule(SingularityExecutorConfiguration.class, ImmutableSet.<Class<? extends BaseRunnerConfiguration>>of(Sin... | )), new SingularityExecutorModule()); |
1,400,086 | public static boolean firstCoversSecond(JsonNode first, JsonNode second) {<NEW_LINE>if (first.isValueNode()) {<NEW_LINE>return second.isValueNode(<MASK><NEW_LINE>} else if (first.isArray()) {<NEW_LINE>if (!second.isArray()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (JsonNode firstElement : first) {<NEW_LINE>bool... | ) && first.equals(second); |
679,955 | public boolean visit(SQLPropertyExpr x) {<NEW_LINE>TableMapping mapping = null;<NEW_LINE>SchemaObject schemaObject = null;<NEW_LINE>boolean aliasOwer = false;<NEW_LINE><MASK><NEW_LINE>if (ownerObject instanceof SQLExprTableSource) {<NEW_LINE>SQLExprTableSource exprTableSource = (SQLExprTableSource) ownerObject;<NEW_LIN... | SQLObject ownerObject = x.getResolvedOwnerObject(); |
456,558 | private PlaylistContainerResource enumeratePlaylists(String userId) throws IOException, SpotifyWebApiException {<NEW_LINE>List<MusicPlaylist> results = new ArrayList<>();<NEW_LINE>int offset = 0;<NEW_LINE>Paging<PlaylistSimplified> playlists;<NEW_LINE>do {<NEW_LINE>int finalOffset = offset;<NEW_LINE>monitor.debug(() ->... | , playlist.getHref())); |
1,612,455 | public int restoreXml(XmlPullParser parser, AddressFactory factory) throws UnknownInstructionException {<NEW_LINE>int sectionid = -1;<NEW_LINE>XmlElement el = parser.start("construct_tpl");<NEW_LINE>String nmlabelstr = el.getAttribute("labels");<NEW_LINE>if (nmlabelstr != null) {<NEW_LINE>numlabels = SpecXmlUtils.decod... | sectionid = SpecXmlUtils.decodeInt(sectionidstr); |
279,355 | public static ZookeeperConnection valueOf(final String connStr) {<NEW_LINE>final Matcher m = ZK_CONN_PATTERN.matcher(connStr);<NEW_LINE>if (!m.matches()) {<NEW_LINE>throw new RuntimeException("Unsupported format of zk connection string " + connStr);<NEW_LINE>}<NEW_LINE>final String typeString = m.group(1);<NEW_LINE>fin... | return new AddressPort(hostPort, defaultPort); |
1,016,432 | public static TrainingResult runExample(String[] args) throws IOException, ModelException, TranslateException {<NEW_LINE>Arguments arguments = new Arguments().parseArgs(args);<NEW_LINE>if (arguments == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try (Model model = getModel(arguments)) {<NEW_LINE>// get training d... | Dataset.Usage.TEST, arguments); |
1,804,972 | public void saveExplicitGroup(ActionEvent ae) {<NEW_LINE>ExplicitGroup eg = selectedGroup;<NEW_LINE>if (getSelectedGroupAddRoleAssignees() != null) {<NEW_LINE>try {<NEW_LINE>for (RoleAssignee ra : getSelectedGroupAddRoleAssignees()) {<NEW_LINE>eg.add(ra);<NEW_LINE>}<NEW_LINE>} catch (GroupException ge) {<NEW_LINE>JsfHe... | asList(eg.getDisplayName()); |
1,325,972 | public static QueryMqttTraceDeviceResponse unmarshall(QueryMqttTraceDeviceResponse queryMqttTraceDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMqttTraceDeviceResponse.setRequestId(_ctx.stringValue("QueryMqttTraceDeviceResponse.RequestId"));<NEW_LINE>queryMqttTraceDeviceResponse.setSuccess(_ctx.booleanValue(... | (_ctx.integerValue("QueryMqttTraceDeviceResponse.CurrentPage")); |
198,498 | private VersionException initializeProgramInfo(int openMode) throws IOException, VersionException, LanguageNotFoundException {<NEW_LINE>boolean requiresUpgrade = false;<NEW_LINE>dataMap = new DBStringMapAdapter(dbh, DATA_MAP_TABLE_NAME, false);<NEW_LINE>name = dataMap.get(PROGRAM_NAME);<NEW_LINE>String languageIdStr = ... | .parseInt(vs[0]); |
1,612,686 | public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>try {<NEW_LINE>Log.d(mTag, "onActivityResult(" + requestCode + "," + resultCode + "," + data + ")");<NEW_LINE>// Pass on the activity result to the helper for handling<NEW_LINE>// if (!mHelper.handleActivityResult(requestCode, resultC... | ERR_UNKNOWN, e.getMessage()); |
109,856 | // convert all "a\bc" sequences to "c", not crossing the line boundaries in the process<NEW_LINE>private static void normalizeBackspaceCharacters(@Nonnull StringBuilder text) {<NEW_LINE>int ind = StringUtil.indexOf(text, BACKSPACE);<NEW_LINE>if (ind < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int guardLength = 0;<NEW_L... | ch = text.charAt(i); |
1,323,465 | public void read(org.apache.thrift.protocol.TProtocol iprot, MediaContent 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.ap... | <Image>(_list8.size); |
985,134 | public void updatePhis(Program program, Variable[] parameters) {<NEW_LINE>if (program.basicBlockCount() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>frontierVariableCache = new int[program.basicBlockCount()][][];<NEW_LINE>this.program = program;<NEW_LINE>phisByReceiver.clear();<NEW_LINE>cfg = ProgramUtils.buildControlF... | domTree, program.basicBlockCount()); |
494,460 | protected final long createFile(DomainObjectAdapterDB domainObj, String contentType, FileSystem fs, String path, String name, TaskMonitor monitor) throws InvalidNameException, CancelledException, IOException {<NEW_LINE>DBHandle dbh = domainObj.getDBHandle();<NEW_LINE>ManagedBufferFile bf = fs.createDatabase(path, name,... | fs, path, name, checkoutId); |
1,516,712 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String test = request.getParameter("test");<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>out.<MASK><NEW_LINE>// The injection engine doesn't like this at the class level.<NEW_LINE>... | println("Starting " + test + "<br>"); |
674,023 | public okhttp3.Call readValidatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfiguratio... | localVarHeaderParams.put("Accept", localVarAccept); |
1,659,083 | public void update(AnActionEvent e) {<NEW_LINE>Presentation presentation = e.getPresentation();<NEW_LINE>if (!Registry.is("vcs.log.graph.history")) {<NEW_LINE>presentation.setEnabledAndVisible(false);<NEW_LINE>} else {<NEW_LINE>VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE);<NEW_LINE>Project project = e.getP... | ().isIndexed(root)); |
165,622 | public static ByteBuffer bodyBuffer(Object body) throws IOException {<NEW_LINE>if (body == null) {<NEW_LINE>return null;<NEW_LINE>} else if (body instanceof String) {<NEW_LINE>byte[] b = ((String) body).getBytes(UTF_8);<NEW_LINE>return ByteBuffer.wrap(b);<NEW_LINE>} else if (body instanceof InputStream) {<NEW_LINE>Dyna... | ).toString(), UTF_8); |
55,420 | private Command<MetaServerConsoleService.PreviousPrimaryDcMessage> prevPrimaryDcMigrateCmd(String cluster, String shard, String dc) {<NEW_LINE>shardMigrationResult.stepRetry(ShardMigrationStep.MIGRATE_PREVIOUS_PRIMARY_DC);<NEW_LINE>Command<MetaServerConsoleService.PreviousPrimaryDcMessage> cmd = commandBuilder.<MASK><N... | buildPrevPrimaryDcCommand(cluster, shard, dc); |
783,987 | static CodeBlock generateStateUpdateDelegatingCall(SpecModel specModel, int methodIndex, SpecMethodModel<UpdateStateMethod, Void> updateStateMethod, boolean withTransition) {<NEW_LINE>final CodeBlock.Builder codeBlock = CodeBlock.builder();<NEW_LINE>codeBlock.add("case $L:\n$>", methodIndex);<NEW_LINE><MASK><NEW_LINE>f... | final StringBuilder format = new StringBuilder(); |
865,575 | private TextEdit constructEnclosingTypeEdit(ICompilationUnit icu) throws CoreException {<NEW_LINE>ASTParser astParser = ASTParser.newParser(IASTSharedValues.SHARED_AST_LEVEL);<NEW_LINE>astParser.setSource(icu);<NEW_LINE>CompilationUnit cu = (CompilationUnit) astParser.createAST(null);<NEW_LINE>TypeDeclaration enclosing... | ) newDeclaration).setInterface(true); |
1,176,264 | public Expression visitFunCall(FunCallExpression expr, Expression expectedType) {<NEW_LINE>checkLevels(expr.getLevels(), expr.getDefinition(), expr);<NEW_LINE>ExprSubstitution substitution = new ExprSubstitution();<NEW_LINE>List<? extends Expression> args = expr.getDefCallArguments();<NEW_LINE>checkList(args, expr.getD... | (expr.getDefinition())); |
339,138 | private boolean checkSchemaIdSet() {<NEW_LINE>Microservice existMicroservice = srClient.getMicroservice(microservice.getServiceId());<NEW_LINE>if (existMicroservice == null) {<NEW_LINE>LOGGER.error("Error to get microservice from service center when check schema set");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<Str... | getEnvironment(), localSchemas, existSchemas); |
1,219,516 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#findAll(java.lang.Class,<NEW_LINE>* java.lang.Object[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public <E> List<E> findAll(Class<E> entityClass, String[] columnsToSelect, Object... rowIds) {<NEW_LINE>EntityMetadata entityMetadata =... | = new ArrayList<E>(); |
921,482 | public AutorouteEngine.AutorouteResult autoroute(Item p_item, app.freerouting.interactive.Settings p_settings, int p_via_costs, Stoppable p_stoppable_thread, TimeLimit p_time_limit) {<NEW_LINE>if (!(p_item instanceof Connectable) || p_item.net_count() == 0) {<NEW_LINE>return AutorouteEngine.AutorouteResult.ALREADY_CONN... | p_settings.autoroute_settings.get_trace_cost_arr()); |
922,321 | protected void finalInstallApp(String appPath) throws Exception {<NEW_LINE>// for getting only the name if appName given is actually a path i.e. autoinstall/acme.zip<NEW_LINE>String onlyAppName = appPath;<NEW_LINE>if (appPath.contains("/")) {<NEW_LINE>String[] <MASK><NEW_LINE>// get the last one as this will be the fil... | s = appPath.split("/"); |
1,035,078 | public void render(@Nonnull IWidgetIcon widget, double x, double y, double width, double height, double zLevel, boolean doDraw, boolean flipY) {<NEW_LINE>final BufferBuilder tes = Tessellator.getInstance().getBuffer();<NEW_LINE>if (doDraw) {<NEW_LINE>RenderUtil.bindTexture(getTexture());<NEW_LINE>tes.begin(GL11.GL_QUAD... | double maxV = sprite.getMaxV(); |
1,478,463 | private void addIDs(Map<Field, String> hm, String lab, String value) {<NEW_LINE>if ("AID".equals(lab)) {<NEW_LINE>Field key = new UnknownField("article-id");<NEW_LINE>String idValue = value;<NEW_LINE>if (value.startsWith("doi:")) {<NEW_LINE>idValue = idValue.replaceAll("(?i)doi:", "").trim();<NEW_LINE>key = StandardFie... | new UnknownField("location-id"), value); |
816,740 | public void onStateUpdate() {<NEW_LINE>String hyperTrackPublicKey = sharedHelper.getHyperTrackPubKey();<NEW_LINE>if (PermissionsManager.isAllPermissionsApproved(this)) {<NEW_LINE>initializeHyperTrack(hyperTrackPublicKey, sharedHelper.getUserName());<NEW_LINE>mBackendProvider = BackendClientFactory.getBackendProvider(th... | PermissionRationalFragment()).commitAllowingStateLoss(); |
546,603 | public StructVector encode(StructVector vector, Map<Integer, Long> columnToDictionaryId) {<NEW_LINE>final int valueCount = vector.getValueCount();<NEW_LINE>final int childCount = vector<MASK><NEW_LINE>List<Field> childrenFields = new ArrayList<>();<NEW_LINE>// initialize child fields.<NEW_LINE>for (int i = 0; i < child... | .getChildrenFromFields().size(); |
1,624,891 | void addUserAttributeToResponseWithEmail(JsonObject userInnerMap, JsonObjectBuilder modifiedResponse) throws SocialLoginException {<NEW_LINE>if (userInnerMap.containsKey("email")) {<NEW_LINE>JsonValue emailJsonString = userInnerMap.get("email");<NEW_LINE>if (emailJsonString.getValueType() != ValueType.STRING) {<NEW_LIN... | , userInnerMap.getString(defaultKey)); |
178,094 | public void watch(GameEvent event, Game game) {<NEW_LINE>if (event.getType() == GameEvent.EventType.DISCARDED_CARD || event.getType() == GameEvent.EventType.CYCLED_CARD && event.getPlayerId() != null) {<NEW_LINE>Card card = game.<MASK><NEW_LINE>if (card != null) {<NEW_LINE>Cards c = getCardsCycledOrDiscardedThisTurn(ev... | getCard(event.getTargetId()); |
1,557,860 | private List<RecordQueryResult.Record> findRetryRecords(String subject, BackupMessageMeta meta, byte type) {<NEW_LINE>final List<RecordQueryResult.Record> records = Lists.newArrayList();<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>final String sequenceId = generateDecimalFormatKey19(sequence);<NEW_LINE>final String b... | long sequence = meta.getSequence(); |
123,816 | public SubjectAreaOMASAPIResponse<IsA> createIsaRelationship(String serverName, String userId, IsA IsARelationship) {<NEW_LINE>String restAPIName = "createIsaRelationship";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, restAPIName);<NEW_LINE>SubjectAreaOMASAPIResponse<IsA> response = new... | getAuditLog(userId, serverName, restAPIName); |
1,363,284 | public S3JobManifestGenerator unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>S3JobManifestGenerator s3JobManifestGenerator = new S3JobManifestGenerator();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument... | ().unmarshall(context)); |
189,265 | private static <R> int MurmurHash3_x86_32(LoadStrategy<R> loader, R resource, long offset, int len, int seed) {<NEW_LINE>// (len & ~(MURMUR32_BLOCK_SIZE - 1)) is the length rounded down to the Murmur32 block size boundary<NEW_LINE>final long tailStart = offset + (len & ~(MURMUR32_BLOCK_SIZE - 1));<NEW_LINE>int c1 = 0xc... | + 2) & 0xff) << 16; |
1,119,982 | private Field parseGroupField(final NodeList nodeList, final int nodeIndex) throws XPathExpressionException {<NEW_LINE>final Node node = nodeList.item(nodeIndex);<NEW_LINE>final String dimensionTypeName = getAttributeValue(node, "dimensionType", "groupSizeEncoding");<NEW_LINE>Type dimensionType = typeByNameMap.get(dime... | handleError(node, "dimensionType should be a composite type: " + dimensionTypeName); |
330,697 | public void run() {<NEW_LINE><MASK><NEW_LINE>AggregateProgressHandle hndl = AggregateProgressFactory.createHandle(DownloadAction_downloading(art.getId()), new ProgressContributor[] { AggregateProgressFactory.createProgressContributor("") }, ProgressTransferListener.cancellable(), null);<NEW_LINE>ProgressTransferListene... | MavenEmbedder online = EmbedderFactory.getOnlineEmbedder(); |
1,120,340 | public void showImage(BufferedImage image) {<NEW_LINE>if (image == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.color = null;<NEW_LINE>this.width = image.getWidth();<NEW_LINE>this.height = image.getHeight();<NEW_LINE>DataBuffer buffer = image.getRaster().getDataBuffer();<NEW_LINE>if (buffer instanceof DataBufferBy... | ) buffer).getData()); |
325,808 | public void unlockRead(long stamp) {<NEW_LINE><MASK><NEW_LINE>readLockHolderCount = chmR.get("ReaderCount ");<NEW_LINE>Jvm.debug().on(getClass(), " ,@t=" + System.currentTimeMillis() + " ChronicleStampedLock unlockRead(" + stamp + ") unlocking.." + "ReaderCount=[" + (readLockHolderCount = chmR.get("ReaderCount ")).getV... | offHeapLock = chm.get("Stamp "); |
733,484 | private void visitDocValuesNoCardinality(int[] commonPrefixLengths, byte[] scratchDataPackedValue, byte[] scratchMinIndexPackedValue, byte[] scratchMaxIndexPackedValue, IndexInput in, BKDReaderDocIDSetIterator scratchIterator, int count, PointValues.IntersectVisitor visitor) throws IOException {<NEW_LINE>readCommonPref... | commonPrefixLengths, minPackedValue, maxPackedValue, in); |
1,222,387 | protected ResteasyDeployment createResteasyDeployment(Container container, Collection<Class<?>> apiClasses, Collection<Object> apiSingletons, boolean secure) {<NEW_LINE>if (apiClasses == null && apiSingletons == null)<NEW_LINE>return null;<NEW_LINE>WebApplication webApplication = new WebApplication(container, apiClasse... | new WebServiceExceptions.DefaultResteasyExceptionMapper(devMode)); |
1,429,863 | public ListCopyJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListCopyJobsResult listCopyJobsResult = new ListCopyJobsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t... | int originalDepth = context.getCurrentDepth(); |
41,142 | private void createJournal(MJournalBatch journalBatch, int conversionTypeId, int calendarId, int budgetId) {<NEW_LINE>int noPeriods = 0;<NEW_LINE>if (getNoOfPeriods() == 0 || getNoOfPeriods() > 12)<NEW_LINE>noPeriods = 12;<NEW_LINE>else<NEW_LINE>noPeriods = getNoOfPeriods();<NEW_LINE>definePeriods(calendarId);<NEW_LINE... | getDocumentNo() + "-" + formattedDate); |
1,341,903 | public static boolean isRestartRequired(final Context context, final String key) {<NEW_LINE>return context.getString(R.string.pref_appearance_twopane_key).equals(key) || context.getString(R.string.pref_appearance_theme_key).equals(key) || context.getString(R.string.pref_appearance_navbar_color_key).equals(key) || conte... | .pref_behaviour_block_screenshots_key).equals(key); |
1,659,616 | public void writeToXmlForUpdate(EwsServiceXmlWriter writer) throws Exception {<NEW_LINE>writer.writeStartElement(XmlNamespace.Types, this.getOwner().getChangeXmlElementName());<NEW_LINE>this.getOwner().<MASK><NEW_LINE>writer.writeStartElement(XmlNamespace.Types, XmlElementNames.Updates);<NEW_LINE>for (PropertyDefinitio... | getId().writeToXml(writer); |
1,724,682 | private void initializeAuth() throws CommandException {<NEW_LINE>LoginInfo li = null;<NEW_LINE>try {<NEW_LINE>LoginInfoStore store = LoginInfoStoreFactory.getDefaultStore();<NEW_LINE>li = store.read(programOpts.getHost(), programOpts.getPort());<NEW_LINE>if (li == null)<NEW_LINE>return;<NEW_LINE>} catch (StoreException... | ), ProgramOptions.PasswordLocation.LOGIN_FILE); |
1,482 | protected void onBeforeArrayNew(String desc, int dims) {<NEW_LINE>if (where == Where.BEFORE) {<NEW_LINE>String extName = TypeUtils.getJavaType(desc);<NEW_LINE>String type = loc.getClazz();<NEW_LINE>if (matches(type, extName)) {<NEW_LINE>addExtraTypeInfo(om.getSelfParameter(), Type.getObjectType(className));<NEW_LINE>Va... | .STRING_TYPE, Type.INT_TYPE }); |
497,378 | public OMixedIndexRIDContainer deserializeNativeObject(byte[] stream, int startPosition) {<NEW_LINE>startPosition += OIntegerSerializer.INT_SIZE;<NEW_LINE>final long fileId = OLongSerializer.INSTANCE.deserializeNative(stream, startPosition);<NEW_LINE>startPosition += OLongSerializer.LONG_SIZE;<NEW_LINE>final int embedd... | INSTANCE.deserializeNative(stream, startPosition); |
1,087,948 | public boolean process(Person person, long time) {<NEW_LINE>// Randomly pick number of series and instances if bounds were provided<NEW_LINE>duplicateSeries(person, time);<NEW_LINE>duplicateInstances(person, time);<NEW_LINE>// The modality code of the first series is a good approximation<NEW_LINE>// of the type of Imag... | TimeUnit.MINUTES.toMillis(30); |
379,862 | final AssociateHostedConnectionResult executeAssociateHostedConnection(AssociateHostedConnectionRequest associateHostedConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateHostedConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,116,362 | final ListAnomalyDetectorsResult executeListAnomalyDetectors(ListAnomalyDetectorsRequest listAnomalyDetectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAnomalyDetectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
466,240 | private boolean expand(FoldHierarchy hierarchy, Language language) {<NEW_LINE>List<Feature> folds = language.getFeatureList().getFeatures(LanguagesFoldManager.FOLD);<NEW_LINE>Iterator<Feature> it = folds.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE><MASK><NEW_LINE>String expand = LocalizationSupport.localize(la... | Feature fold = it.next(); |
631,617 | public static void createDocumentTypes(Properties ctx, int AD_Client_ID, JavaProcess sp, String trxName) {<NEW_LINE>s_log.info("AD_Client_ID=" + AD_Client_ID);<NEW_LINE>String sql = "SELECT rl.Value, rl.Name " + "FROM AD_Ref_List rl " + "WHERE rl.AD_Reference_ID=183" + " AND rl.IsActive='Y' AND NOT EXISTS " + " (SELECT... | pstmt.setInt(1, AD_Client_ID); |
179,713 | public final NumberContext number() throws RecognitionException {<NEW_LINE>NumberContext _localctx = new NumberContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 86, RULE_number);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(428);<NEW_LINE>_la = _input.LA(1);... | _errHandler.recover(this, re); |
390,929 | private Map<String, FilteringPropertyFilter> createSubfilters(final String parent, final Class<?> entityClass, final Map<String, ObjectGraph> entitySubgraphs, final Set<String> processed) {<NEW_LINE>final Map<String, FilteringPropertyFilter> subfilters = new HashMap<>();<NEW_LINE>for (final Map.Entry<String, ObjectGrap... | getFields(path), subSubfilters)); |
569,807 | public T next() {<NEW_LINE>if (loop) {<NEW_LINE>if (forwards) {<NEW_LINE>if (index >= fileNames.size()) {<NEW_LINE>index = fileNames.size() - 1;<NEW_LINE>forwards = false;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>if (index < 0) {<NEW_LINE>index = 0;<NEW_LINE>forwards = true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int i... | = image.getHeight() / scalefactor; |
386,307 | private static void extractArchive(Path destDir, TarArchiveInputStream archive, ExtractListener listener) throws IOException {<NEW_LINE>String prefix = destDir.toString();<NEW_LINE>TarArchiveEntry entry;<NEW_LINE>while (true) {<NEW_LINE>entry = archive.getNextTarEntry();<NEW_LINE>if (entry == null) {<NEW_LINE>break;<NE... | (destDir.relativize(path)); |
1,654,655 | static Map<Integer, NodeStepResult> extractStepFailures(WorkflowExecutionResult result, INodeEntry node) {<NEW_LINE>Map<Integer, NodeStepResult> results = new HashMap<>();<NEW_LINE>for (final Map.Entry<Integer, StepExecutionResult> entry : result.getStepFailures().entrySet()) {<NEW_LINE>int num = entry.getKey();<NEW_LI... | results.put(num, stepResult); |
1,142,357 | public boolean onCreate() {<NEW_LINE>Context context = getContext();<NEW_LINE>DaemonService.startup(context);<NEW_LINE>if (!VirtualCore.get().isStartup()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>VPackageManagerService.systemReady();<NEW_LINE>addService(ServiceManagerNative.PACKAGE, VPackageManagerService.get());<NE... | ACTIVITY, VActivityManagerService.get()); |
1,264,902 | /*<NEW_LINE>* @see org.eclipse.jface.text.IPositionUpdater#update(org.eclipse.jface.text.DocumentEvent)<NEW_LINE>*/<NEW_LINE>public void update(DocumentEvent event) {<NEW_LINE>int eventOffset = event.getOffset();<NEW_LINE>int eventOldLength = event.getLength();<NEW_LINE>int eventNewLength = (event.getText() == null) ? ... | getDocument().getPositions(fCategory); |
1,754,186 | public void mousePressed(MouseEvent e) {<NEW_LINE>// setup visual effect when the mouse button is pressed or held down<NEW_LINE>// inside the active area of the annotation.<NEW_LINE>isMousePressed = true;<NEW_LINE>int x = 0, y = 0;<NEW_LINE>Point point = new Point();<NEW_LINE>if (e != null) {<NEW_LINE>x = e.getX();<NEW... | setSelectedName(down.getOffName()); |
689,152 | private void createTableViewer(Composite composite) {<NEW_LINE>viewer = new TableViewer(composite, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);<NEW_LINE>tableColumnLayout = new TableColumnLayout();<NEW_LINE>composite.setLayout(tableColumnLayout);<NEW_LINE>createColumns();<NEW_LINE>final Table table = viewer.getTable()... | Math.pow(1024, 3); |
1,684,497 | // ////////////// Channel Block monitoring //////////////////////////////////<NEW_LINE>private ProposalResponse sendProposalSerially(TransactionRequest proposalRequest, Collection<Peer> peers) throws ProposalException {<NEW_LINE>ProposalException lastException = new ProposalException("ProposalRequest failed.");<NEW_LI... | , proposalResponse.getMessage())); |
185,721 | private void processAddByHostname(final List<String> requestedHostnames, List<JSONObject> foundHosts, boolean allowOneTimeHosts) {<NEW_LINE>List<String> oneTimeHostnames = findOneTimeHosts(requestedHostnames, foundHosts);<NEW_LINE>if (!allowOneTimeHosts && !oneTimeHostnames.isEmpty()) {<NEW_LINE>NotifyManager.getInstan... | "other_labels", new JSONString("")); |
437,549 | public void uninstall(String id) {<NEW_LINE>Addon addon = getAddon(id, null);<NEW_LINE>if (addon != null) {<NEW_LINE>for (MarketplaceAddonHandler handler : addonHandlers) {<NEW_LINE>if (handler.supports(addon.getType(), addon.getContentType())) {<NEW_LINE>if (handler.isInstalled(addon.getId())) {<NEW_LINE>try {<NEW_LIN... | postUninstalledEvent(addon.getId()); |
1,808,203 | static <K, A, E> MapDifference<K, A, E> create(Map<? extends K, ? extends A> actual, Map<? extends K, ? extends E> expected, boolean allowUnexpected, ValueTester<? super A, ? super E> valueTester) {<NEW_LINE>Map<K, A> unexpected = new LinkedHashMap<>(actual);<NEW_LINE>Map<K, E> missing = new LinkedHashMap<>();<NEW_LINE... | <>(actualValue, expectedValue)); |
952,524 | private boolean relaxedCommonAssignment(AnnotatedTypeMirror varType, ExpressionTree valueExp) {<NEW_LINE>if (valueExp.getKind() == Tree.Kind.NEW_ARRAY && varType.getKind() == TypeKind.ARRAY) {<NEW_LINE>List<? extends ExpressionTree> expressions = ((NewArrayTree) valueExp).getInitializers();<NEW_LINE>if (expressions == ... | .UNKNOWN, (UpperBoundChecker) checker); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.