idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,359,745 | public static GetContactFlowResponse unmarshall(GetContactFlowResponse getContactFlowResponse, UnmarshallerContext context) {<NEW_LINE>getContactFlowResponse.setRequestId(context.stringValue("GetContactFlowResponse.RequestId"));<NEW_LINE>getContactFlowResponse.setSuccess<MASK><NEW_LINE>getContactFlowResponse.setCode(co... | (context.booleanValue("GetContactFlowResponse.Success")); |
1,536,376 | private String authenticate(Credentials credentials) throws AuthenticationException {<NEW_LINE>if (!(credentials instanceof EsApiKeyCredentials)) {<NEW_LINE>throw new AuthenticationException("Incorrect credentials type provided. Expected [" + EsApiKeyCredentials.class.getName() + "] but got [" + credentials.getClass().... | esApiKeyCredentials = ((EsApiKeyCredentials) credentials); |
1,237,548 | public boolean createArchive(String sourcePath, String targetPath) {<NEW_LINE>boolean rc = true;<NEW_LINE>// Validate source path<NEW_LINE>String normalizedSourcePath = normalizePath(sourcePath);<NEW_LINE>if (!FileServiceUtil.isPathContained(getReadList(), normalizedSourcePath)) {<NEW_LINE>if (tc.isWarningEnabled()) {<... | warning(tc, "ARCHIVE_CREATE_SOURCE_DENIED_WARNING", sourcePath); |
1,058,848 | void dataTypeCategoryPathChanged(DataTypeDB dt, CategoryPath oldPath, long oldCatId) {<NEW_LINE>try {<NEW_LINE>if (!(dt instanceof Array) && !(dt instanceof Pointer)) {<NEW_LINE>for (Field arrayId : arrayAdapter.getRecordIdsInCategory(oldCatId)) {<NEW_LINE>long id = arrayId.getLongValue();<NEW_LINE>DBRecord rec = array... | rec = pointerAdapter.getRecord(id); |
427,743 | public static FileObject findFileObject(final FileObject fromFO, final String path, boolean filesOnly) {<NEW_LINE>FileObject parent = fromFO.getParent();<NEW_LINE>FileObject targetFO;<NEW_LINE>Project project = FileOwnerQuery.getOwner(fromFO);<NEW_LINE>// NOI18N<NEW_LINE>String projectDirectoryPath = "";<NEW_LINE>if (p... | FileObject projectDirectory = project.getProjectDirectory(); |
33,638 | public StickingPolygon generateStickingBorder(int x, int y, int width, int height) {<NEW_LINE>float zoom = HandlerElementMap.getHandlerForElement(this).getZoomFactor();<NEW_LINE>int links = HandlerElementMap.getHandlerForElement(this).realignToGrid(false, x + width / 2 - (int) (25 * zoom));<NEW_LINE>int rechts = Handle... | addPoint(links, unten, true); |
1,336,588 | protected void dfsVisit(VarNode n) {<NEW_LINE>if (visited.contains(n)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<VarNode> stack = new ArrayList<>();<NEW_LINE>List<VarNode> <MASK><NEW_LINE>stack.add(n);<NEW_LINE>while (!stack.isEmpty()) {<NEW_LINE>VarNode s = stack.remove(stack.size() - 1);<NEW_LINE>if (visited.add(s)... | all = new ArrayList<>(); |
1,482,094 | public static BufferPage buildFromEntryArray(final Entry[] array, final int start, final int end) {<NEW_LINE>Preconditions.checkArgument(start >= 0 && end <= array.length);<NEW_LINE>final int size = end - start;<NEW_LINE>// compute the size of the raw byte storage and the offsets of individual entries inside it<NEW_LIN... | + i].length()); |
201,818 | private Configuration buildConfig(final String name, final ExecutorService threadPool, final ObjectMapper objectMapper, final Validator validator) {<NEW_LINE>final ClientConfig config = new ClientConfig();<NEW_LINE>for (Object singleton : this.singletons) {<NEW_LINE>config.register(singleton);<NEW_LINE>}<NEW_LINE>for (... | ), property.getValue()); |
692,453 | private String notifyHandler(HttpResponse output) {<NEW_LINE>output.headers().set(HttpHeaders.Names.CONTENT_TYPE, "text/xml");<NEW_LINE>output.headers(<MASK><NEW_LINE>output.headers().set("NTS", "upnp:propchange");<NEW_LINE>output.headers().set("SID", PMS.get().usn());<NEW_LINE>output.headers().set("SEQ", "0");<NEW_LIN... | ).set("NT", "upnp:event"); |
1,563,665 | public boolean accept(TIntArrayList types, MapIndex index) {<NEW_LINE>boolean polygon = false;<NEW_LINE>boolean polyline = false;<NEW_LINE>for (int j = 0; j < types.size(); j++) {<NEW_LINE>int wholeType = types.get(j);<NEW_LINE>TagValuePair pair = index.decodeType(wholeType);<NEW_LINE>if (pair != null) {<NEW_LINE>int t... | .get(pair) + 1); |
926,423 | public Paint paint() {<NEW_LINE>return new Paint() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int getTransparency() {<NEW_LINE>return Transparency.OPAQUE;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform... | .nextInt(256), 0); |
967,523 | private void handleExceptionTags(List<TagElement> tags, List<String> exceptionNames, CharSequence[] exceptionDescriptions) {<NEW_LINE>if (tags.size() == 0 && containsOnlyNull(exceptionNames)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>handleBlockTagTitle(JavaDoc2HTMLTextReader_throws_section);<NEW_LINE>fBuf.append(BLOCK_TA... | TagElement tag = iter.next(); |
417,723 | public EbsInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>EbsInfo ebsInfo = new EbsInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<NEW_L... | ().unmarshall(context)); |
139,296 | // Parses [0], [::-1], [0:-1], [0:1], etc.<NEW_LINE>private JmespathExpression parseIndex() {<NEW_LINE>int line = iterator.line();<NEW_LINE>int column = iterator.column();<NEW_LINE>// start, stop, step (defaults to 1)<NEW_LINE>Integer[] parts = new Integer[] { null, null, 1 };<NEW_LINE>int pos = 0;<NEW_LINE>loop: while... | iterator.expect(TokenType.COLON); |
175,176 | private void extractZipEntryContents(ZipEntry ze, ZipInputStream zis) throws IOException {<NEW_LINE>if (ze.isDirectory()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (_logger.isLoggable(Level.FINER)) {<NEW_LINE>_logger.finer("ze.getName()=" + ze.getName() + "," + "getSize()=" + ze.getSize());<NEW_LINE>}<NEW_LINE>byte[] <... | b = getZipEntryContents(ze, zis); |
477,586 | public void commit() throws DuplicateNameException, InvalidInputException {<NEW_LINE>// Split out the specific instance into its own symbol<NEW_LINE>Varnode vn = tokenAtCursor.getVarnode();<NEW_LINE>try {<NEW_LINE>HighVariable highVariable = highFunction.splitOutMergeGroup(vn.getHigh(), vn);<NEW_LINE>highSymbol = highV... | highSymbol, newName, dataType, srcType); |
437,283 | public DecryptResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DecryptResult decryptResult = new DecryptResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
764,223 | // -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public FunctionRequirements requirements(T target, Set<Measure> measures, CalculationParameters parameters, ReferenceData refData) {<NEW_LINE>// extract data from product<NEW_LINE>Dsf product = target.getProduct();<... | parameters.getParameter(RatesMarketDataLookup.class); |
860,833 | public boolean addRange(final Range allocatedRange) {<NEW_LINE>if (allocatedRange instanceof AllocatedUnicastRange) {<NEW_LINE>allocatedUnicastRanges.add((AllocatedUnicastRange) allocatedRange);<NEW_LINE>final ArrayList<AllocatedUnicastRange> ranges = new ArrayList<>(allocatedUnicastRanges);<NEW_LINE>Collections.sort(r... | (Range.mergeSceneRanges(ranges)); |
1,479,651 | public void handleHttpRequest(HttpRequest httpRequest, HttpResponse httpResponse) throws Exception {<NEW_LINE>if (httpRequest.uri().startsWith(INSPECTOR)) {<NEW_LINE>if (httpRequest.uri().equals(INSPECTOR) || httpRequest.uri().equals(INSPECTOR + "/")) {<NEW_LINE>httpResponse.setStatus(301);<NEW_LINE>String session = nu... | webViewContentView.render(httpRequest, httpResponse); |
149,284 | public static void main(String[] args) throws Exception {<NEW_LINE>Scanner sc = new Scanner(new File("articulation_in.txt"));<NEW_LINE>int V = sc.nextInt();<NEW_LINE>AL = new ArrayList<>();<NEW_LINE>for (int u = 0; u < V; ++u) {<NEW_LINE>// store blank vector first<NEW_LINE>AL.add(new ArrayList<>());<NEW_LINE>int k = s... | , w = sc.nextInt(); |
1,196,799 | protected FieldMetadataOverride constructBasicCollectionMetadataOverride(AdminPresentationCollection annotColl) {<NEW_LINE>if (annotColl != null) {<NEW_LINE>FieldMetadataOverride override = new FieldMetadataOverride();<NEW_LINE>override.setAddMethodType(annotColl.addType());<NEW_LINE>override.setSelectizeVisibleField(a... | annotColl.showIfFieldEquals(), override); |
869,264 | protected Proxy validateProxyConfigFields() {<NEW_LINE>boolean isConfigValid = true;<NEW_LINE>int proxyTypeId = ((RadioGroup) mProxyConfigDialog.findViewById(R.id.proxy_type)).getCheckedRadioButtonId();<NEW_LINE>if (proxyTypeId == -1) {<NEW_LINE>isConfigValid = false;<NEW_LINE>appendStatusMessage(R.string.proxy_type_in... | 0 : Integer.parseInt(proxyPortString); |
19,862 | public void parameterChanged(ParameterList parameterList, String key, boolean isAdjusting) {<NEW_LINE>if ("normalizeCounts".equals(key)) {<NEW_LINE>boolean doNormalize = params.getBooleanParameterValue("normalizeCounts");<NEW_LINE>// This is rather clumsy (compared to just updating the histogram data),<NEW_LINE>// but ... | list = new ArrayList<>(); |
1,172,505 | private static void createSignedUrlWithParamer(OSS ossClient) {<NEW_LINE>// Set yourEndpoint to the endpoint of the region in which the bucket is located. For example, if the bucket is located in the China (Hangzhou) region, set yourEndpoint to https://oss-cn-hangzhou.aliyuncs.com.<NEW_LINE>String endpoint = "yourEndpo... | getTime() + 3600 * 1000); |
289,562 | private static Op[] createOps(int encFlags1) {<NEW_LINE>int op0 = (encFlags1 >>> EncFlags1.XOP_OP0_SHIFT) & EncFlags1.XOP_OP_MASK;<NEW_LINE>int op1 = (encFlags1 >>> EncFlags1.XOP_OP1_SHIFT) & EncFlags1.XOP_OP_MASK;<NEW_LINE>int op2 = (encFlags1 >>> EncFlags1.XOP_OP2_SHIFT) & EncFlags1.XOP_OP_MASK;<NEW_LINE>int op3 = (e... | .xopOps[op3 - 1] }; |
1,066,811 | public void statement(AResource subj, AResource pred, ALiteral lit) {<NEW_LINE>if (++debugC % 100 == 0) {<NEW_LINE>System.out.println("T: " + debugC);<NEW_LINE>rt.gc();<NEW_LINE>System.out.println("M1: " + (rt.totalMemory() - rt.freeMemory() - startMem));<NEW_LINE>rt.gc();<NEW_LINE>System.out.println("M2: " + (rt.total... | System.err.println("Kill me now."); |
789,376 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>OsmandApplication app = requiredMyApplication();<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE><MASK><NEW_LINE>maxZoom = savedInstanceState.getInt(MAX_ZOOM_KEY);<NEW_LINE>dialogDescrRes = savedInstanceState.getInt(DIALOG_DESCR_RES_KEY);<NEW_LINE>sl... | minZoom = savedInstanceState.getInt(MIN_ZOOM_KEY); |
1,556,028 | public static ListSipTracesResponse unmarshall(ListSipTracesResponse listSipTracesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSipTracesResponse.setRequestId(_ctx.stringValue("ListSipTracesResponse.RequestId"));<NEW_LINE>listSipTracesResponse.setCode(_ctx.stringValue("ListSipTracesResponse.Code"));<NEW_LINE>listS... | ("ListSipTracesResponse.Data[" + i + "].ContactId")); |
1,346,492 | public void marshall(ListWirelessDevicesRequest listWirelessDevicesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listWirelessDevicesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listWi... | listWirelessDevicesRequest.getFuotaTaskId(), FUOTATASKID_BINDING); |
1,130,425 | final GetPasswordDataResult executeGetPasswordData(GetPasswordDataRequest getPasswordDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPasswordDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | endClientExecution(awsRequestMetrics, request, response); |
953,147 | private void deleteHistoryCacheWorkHorse(String projectName, boolean clearHistoryGuru) {<NEW_LINE>Project project = disableProject(projectName);<NEW_LINE>LOGGER.log(Level.INFO, "deleting history cache for project {0}", projectName);<NEW_LINE>List<RepositoryInfo> repos = env.getProjectRepositoriesMap().get(project);<NEW... | "cannot remove files for repository {0}", x.getDirectoryName()); |
812,534 | public void execute(String commandName, ConsoleInput ci, CommandLine commands) {<NEW_LINE>if (commands.hasOption('l')) {<NEW_LINE>ci.out.println("> -----");<NEW_LINE>showAdds(ci);<NEW_LINE>ci.out.println("> -----");<NEW_LINE>return;<NEW_LINE>} else if (commands.hasOption('h') || commands.getArgs().length == 0) {<NEW_LI... | .out, (String) null); |
797,339 | private void initStatefulSetResourceWithDefaults(StatefulSetBuilder builder) {<NEW_LINE>StatefulSetFluent.SpecNested<StatefulSetBuilder> spec = builder.editOrNewSpec();<NEW_LINE>spec.editOrNewSelector().endSelector().editOrNewTemplate().editOrNewSpec().endSpec().endTemplate();<NEW_LINE>// defaults for:<NEW_LINE>// - re... | >()).endSelector(); |
17,282 | protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (requestCode == SUBREDDIT_SELECTION_REQUEST_CODE) {<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>if (data != null) {<NEW_LINE>subredditName = data.get... | flairTextView.setVisibility(View.VISIBLE); |
1,187,466 | private J.Modifier mapModifier(Modifier mod, List<J.Annotation> annotations) {<NEW_LINE>Space modFormat = whitespace();<NEW_LINE>cursor += mod.name().length();<NEW_LINE>J.Modifier.Type type;<NEW_LINE>switch(mod) {<NEW_LINE>case DEFAULT:<NEW_LINE>type = J.Modifier.Type.Default;<NEW_LINE>break;<NEW_LINE>case PUBLIC:<NEW_... | = J.Modifier.Type.Volatile; |
1,648,245 | public void execute(AdminCommandContext acc) {<NEW_LINE>Config targetConfig = targetUtil.getConfig(target);<NEW_LINE>if (targetConfig == null) {<NEW_LINE>acc.getActionReport().setMessage("No such config name: " + targetUtil);<NEW_LINE>acc.getActionReport().setActionExitCode(ActionReport.ExitCode.FAILURE);<NEW_LINE>retu... | ), config.getManagedScheduledExecutorService() }; |
1,241,590 | public void initialize() {<NEW_LINE>m_statisticsServices = StatisticsServicesImplementation.getInstance();<NEW_LINE>List<Instrumenter> list = new ArrayList<>();<NEW_LINE>DCRContextImplementation context = DCRContextImplementation.create(LOGGER);<NEW_LINE>if (context == null) {<NEW_LINE>String file = ExposeInstrumentati... | , m_statisticsServices, new NullSender()); |
990,383 | public SslConfigurator retrieve(Properties props) {<NEW_LINE>trustStoreProvider = props.getProperty(TRUST_STORE_PROVIDER);<NEW_LINE>keyStoreProvider = props.getProperty(KEY_STORE_PROVIDER);<NEW_LINE>trustManagerFactoryProvider = props.getProperty(TRUST_MANAGER_FACTORY_PROVIDER);<NEW_LINE>keyManagerFactoryProvider = pro... | trustStoreType = props.getProperty(TRUST_STORE_TYPE); |
1,209,866 | static Function createFieldSetter(Function fn, SootField field, List<SootField> classFields, StructureType classType, List<SootField> instanceFields, StructureType instanceType) {<NEW_LINE>Value fieldPtr = null;<NEW_LINE>Value value = null;<NEW_LINE>if (field.isStatic()) {<NEW_LINE>fieldPtr = getClassFieldPtr(fn, field... | .add(new Ret()); |
269,601 | private void prepareUserSelect() {<NEW_LINE>selectedButton = null;<NEW_LINE>// initialize user buttons<NEW_LINE>userButtons.clear();<NEW_LINE>UserButton defaultUser = null;<NEW_LINE>for (User user : UserList.get().getUsers()) {<NEW_LINE>UserButton button = new UserButton(0, 0, Color.white);<NEW_LINE>button.setUser(user... | height - usersStartY) * 0.9f)); |
1,552,058 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>out.writeOptionalString(name);<NEW_LINE>out.writeBoolean(ignoreUnmapped);<NEW_LINE>out.writeVInt(from);<NEW_LINE>out.writeVInt(size);<NEW_LINE>out.writeBoolean(explain);<NEW_LINE>out.writeBoolean(version);<NEW_LINE>out.writeBoolean(seqNoAndPrimaryTerm)... | ::fieldName)).iterator(); |
1,353,012 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>// NOI18N<NEW_LINE>java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/subversion/ui/repository/Bundle");<NEW_LINE>// NOI18N<NEW_LINE>setName... | (bundle.getString("BK2018")); |
370,362 | public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Decision.class, DMN_ELEMENT_DECISION).namespaceUri(LATEST_DMN_NS).extendsType(DrgElement.class).instanceProvider(new ModelTypeInstanceProvider<Decision>() {<NEW_LINE><NEW_LINE>public Decis... | AuthorityRequirement.class).build(); |
1,455,718 | public okhttp3.Call applicationsApplicationIdGenerateKeysPostCall(String applicationId, ApplicationKeyGenerateRequestDTO applicationKeyGenerateRequestDTO, String xWSO2Tenant, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = applicationKeyGenerateRequestDTO;<NEW_LINE>// create path a... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
488,474 | public static void convertFrr(Configuration c, FrrVendorConfiguration vc) {<NEW_LINE>FrrConfiguration frrConfiguration = vc.getFrrConfiguration();<NEW_LINE>// FRR does not generate local routes for connected routes.<NEW_LINE>c.getAllInterfaces().values().forEach(i -> {<NEW_LINE>ImmutableSortedMap.Builder<ConcreteInterf... | (false).build()); |
889,454 | public void merge(AggregationBuffer agg, Object partial) throws HiveException {<NEW_LINE>// //LOG.info(" MERGE IS CALLED partial is " + partial + " AGG is " + agg);<NEW_LINE>List partialResultList = internalMergeOI.getList(partial);<NEW_LINE>if (daysArr == null) {<NEW_LINE>daysArr = new Integer[partialResultList.size(... | (strList.get(j)); |
220,739 | protected Command installCommands(Command clear, Command t9) {<NEW_LINE>Form f = getComponentForm();<NEW_LINE>if (f != null) {<NEW_LINE>Command original = f.getClearCommand();<NEW_LINE>if (original instanceof CommandHandler) {<NEW_LINE>original = originalClearCommand;<NEW_LINE>}<NEW_LINE>if (replaceMenu && originalComm... | f.addCommand(clear, 0); |
1,034,867 | public Response afterReceiveRequest(Invocation invocation, HttpServletRequestEx requestEx) {<NEW_LINE>EncryptContext encryptContext = (EncryptContext) invocation.getHandlerContext().get(EdgeConst.ENCRYPT_CONTEXT);<NEW_LINE>if (encryptContext == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Hcr hcr = encryptContext.... | putString(name, StandardCharsets.UTF_8); |
781,339 | public void deletePlan(PlanBean plan) throws StorageException {<NEW_LINE>String planId = plan.getId().replace('"', '_');<NEW_LINE>String orgId = plan.getOrganization().getId().replace('"', '_');<NEW_LINE>BoolQueryBuilder qb = QueryBuilders.boolQuery();<NEW_LINE>List<QueryBuilder> shouldFilters = qb.should();<NEW_LINE>B... | > subBoolQuery3Filter = subBoolQuery3.filter(); |
1,534,920 | public Map<String, Object> genProperties(CommonDDBean[] beans) {<NEW_LINE>Map<String, Object> result = null;<NEW_LINE>if (beans instanceof PortComponentRef[]) {<NEW_LINE>PortComponentRef[] portComponentRefs = (PortComponentRef[]) beans;<NEW_LINE>for (PortComponentRef portComponentRef : portComponentRefs) {<NEW_LINE><MA... | String sei = portComponentRef.getServiceEndpointInterface(); |
1,518,475 | protected ExitStatus run(OptionSet options) throws Exception {<NEW_LINE>List<?> nonOptionArguments = new ArrayList<Object>(options.nonOptionArguments());<NEW_LINE>Assert.isTrue(nonOptionArguments.size() >= 2, () -> "The name of the resulting " + this.type + " and at least one source file must be specified");<NEW_LINE>F... | SourceOptions(nonOptionArguments).getSourcesArray(); |
1,128,112 | void onLoadClusterMembers(final int memberId, final int highMemberId, final String members) {<NEW_LINE>if (null == dynamicJoin && !ctx.clusterMembersIgnoreSnapshot()) {<NEW_LINE>if (NULL_VALUE == this.memberId) {<NEW_LINE>this.memberId = memberId;<NEW_LINE>ctx.clusterMarkFile().memberId(memberId);<NEW_LINE>}<NEW_LINE>i... | activeMembers = ClusterMember.parse(members); |
284,779 | public void updateRoomUsers(RoomUsersAddBatchRequest body, Long roomId, String xSdsAuthToken) 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' wh... | localVarAccept, localVarContentType, localVarAuthNames, null); |
1,287,470 | protected void initNode(MNode result) {<NEW_LINE>MFloat f = (MFloat) result.getAttr("reFa");<NEW_LINE>f.set(1.0f);<NEW_LINE>f = (MFloat) result.getAttr("dmp");<NEW_LINE>f.set(1.0f);<NEW_LINE>f = (MFloat) result.getAttr("llmt");<NEW_LINE>f.set(1.0f);<NEW_LINE>f = (MFloat) result.getAttr("ulmt");<NEW_LINE>f.set(-1.0f);<N... | MFloat) result.getAttr("mMI"); |
976,957 | private Info info(Business business, OauthCode oauthCode, Oauth oauth) throws Exception {<NEW_LINE>Info info = new Info();<NEW_LINE>if (Config.token().isInitialManager(oauthCode.getPerson())) {<NEW_LINE>InitialManager initialManager = Config.token().initialManagerInstance();<NEW_LINE>ScriptContext scriptContext = Scrip... | .getProperty(person, property)); |
524,495 | private void checkBinaryDownloads() {<NEW_LINE>MavenSettings.DownloadStrategy ds = MavenSettings<MASK><NEW_LINE>if (ds.equals(MavenSettings.DownloadStrategy.NEVER)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>NbMavenProject watcher = proj.getLookup().lookup(NbMavenProject.class);<NEW_LINE>Preferences prefs = ProjectUtils.ge... | .getDefault().getBinaryDownloadStrategy(); |
827,849 | public void testRemoteAsyncCancelledFalseParameter() throws Exception {<NEW_LINE>svLogger.info("In testAsyncCancelledFalseParameter");<NEW_LINE>List<Future<String>> uncancelledFutures = new ArrayList<Future<String>>();<NEW_LINE>while (uncancelledFutures.size() < MAX_CANCEL_ATTEMPTS) {<NEW_LINE>Future<String> future = d... | "Future.isCancelled failed to return true", future.isCancelled()); |
1,674,109 | private MembersView decideNewMembersView(MemberMap localMemberMap, Set<MemberImpl> members) {<NEW_LINE>Map<MemberInfo, Future<MembersView>> futures = new HashMap<>();<NEW_LINE>MembersView latestMembersView = fetchLatestMembersView(localMemberMap, members, futures);<NEW_LINE>if (logger.isFineEnabled()) {<NEW_LINE>logger... | fine("Latest " + latestMembersView + " before final decision..."); |
221,300 | public void customizeActuatorProperty(String propertyName, Actuator actuator) {<NEW_LINE>if (actuator != null) {<NEW_LINE>PropertySheetTableModel model = (PropertySheetTableModel) getModel();<NEW_LINE>com.l2fprod.common.propertysheet.Property actuatorValueProperty = null;<NEW_LINE>for (com.l2fprod.common.propertysheet.... | .class, new DefaultCellRenderer()); |
259,412 | public int doMain(CliRequest cliRequest, Map<String, String> clientEnv) throws Exception {<NEW_LINE>Properties props = (Properties) System.getProperties().clone();<NEW_LINE>ClassLoader tccl = Thread.currentThread().getContextClassLoader();<NEW_LINE>try {<NEW_LINE>Thread.currentThread().<MASK><NEW_LINE>initialize(cliReq... | setContextClassLoader(container.getContainerRealm()); |
854,997 | public Path shortestPath(Id sourceV, Id targetV, Directions dir, List<String> labels, int depth, long degree, long skipDegree, long capacity) {<NEW_LINE>E.checkNotNull(sourceV, "source vertex id");<NEW_LINE>E.checkNotNull(targetV, "target vertex id");<NEW_LINE>this.checkVertexExist(sourceV, "source vertex");<NEW_LINE>t... | checkSkipDegree(skipDegree, degree, capacity); |
26,387 | private static String compoundSuggestion(@Nonnull String prefix, boolean upperCaseStyle, @Nonnull String[] words, int wordCount, @Nonnull String startWord, char c, boolean isArray, boolean skip_) {<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>buffer.append(prefix);<NEW_LINE>if (upperCaseStyle) {<NEW_LI... | ) + startWord.substring(1); |
1,081,292 | public static void main(String[] args) throws IOException {<NEW_LINE>Path root = Paths.get("/home/ahmetaa/data/vector");<NEW_LINE>Path binVectorFile = root.resolve("model-large-min10.vec.bin");<NEW_LINE>Path vocabFile = root.resolve("vocab-large-min10.bin");<NEW_LINE>Path distanceFile = root.resolve("distance-large-min... | Log.info(input + " cannot be found."); |
1,054,615 | public E previous() {<NEW_LINE>if (isInTailList) {<NEW_LINE>boolean hasPreviousInTailList = tailListIterator.hasPrevious();<NEW_LINE>if (hasPreviousInTailList) {<NEW_LINE>lastReturnedIndex = index;<NEW_LINE>index -= 1;<NEW_LINE>return tailListIterator.previous();<NEW_LINE>} else {<NEW_LINE>int lastIndexInBit = bitList.... | bitList.originList.get(lastIndexInBit); |
233,910 | public InternalGeoGrid<B> reduce(List<InternalAggregation> aggregations, AggregationReduceContext reduceContext) {<NEW_LINE>LongObjectPagedHashMap<List<InternalGeoGridBucket>> buckets = null;<NEW_LINE>for (InternalAggregation aggregation : aggregations) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>InternalGeoGrid... | (list), getMetadata()); |
1,337,397 | public double estimate(KNNSearcher<DBIDRef> knnq, DistanceQuery<?> distq, DBIDRef cur, int k) {<NEW_LINE>int a = 0;<NEW_LINE>double sum = 0;<NEW_LINE>final KNNList kl = knnq.getKNN(cur, k);<NEW_LINE>final double w = kl.getKNNDistance();<NEW_LINE>final double halfw = 0.5 * w;<NEW_LINE>for (DoubleDBIDListIter it = kl.ite... | double v2 = it2.doubleValue(); |
756,289 | public StaticAsset readStaticAssetById(Long id) {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<StaticAsset> criteria = builder.createQuery(StaticAsset.class);<NEW_LINE>Root<StaticAssetImpl> handler = <MASK><NEW_LINE>criteria.select(handler);<NEW_LINE>List<Predicate> restrictions = ... | criteria.from(StaticAssetImpl.class); |
81,323 | public GetStudioResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetStudioResult getStudioResult = new GetStudioResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken... | String currentParentElement = context.getCurrentParentElement(); |
628,472 | void drawLines(LineRender r) {<NEW_LINE>for (int i = 0; i < 12; i++) {<NEW_LINE>m_point1[0] = m_box[m_x1[i]][0];<NEW_LINE>m_point1[1] = m_box[m_y1[i]][1];<NEW_LINE>m_point1[2] = m_box[m_z1[i]][2];<NEW_LINE>m_point2[0] = m_box[m_x2[i]][0];<NEW_LINE>m_point2[1] = m_box[m_y2[i]][1];<NEW_LINE>m_point2[2] = m_box[m_z2[i]][2... | (int) m_draw2[1]); |
1,126,109 | public static DescribeDomainStatusCodeListResponse unmarshall(DescribeDomainStatusCodeListResponse describeDomainStatusCodeListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainStatusCodeListResponse.setRequestId(_ctx.stringValue("DescribeDomainStatusCodeListResponse.RequestId"));<NEW_LINE>List<StatusCode> s... | ("DescribeDomainStatusCodeListResponse.StatusCodeList[" + i + "].Status200")); |
1,233,553 | private void readNext() {<NEW_LINE>final List<String> scans = new ArrayList<>();<NEW_LINE>while (tsIter.hasNext()) {<NEW_LINE>final String tserver = tsIter.next();<NEW_LINE>try {<NEW_LINE>final List<ActiveScan> asl = instanceOps.getActiveScans(tserver);<NEW_LINE>for (ActiveScan as : asl) {<NEW_LINE>var dur = new Durati... | , as.getSsio())); |
214,693 | public ApiWalkStep mapWalkStep(WalkStep domain) {<NEW_LINE>if (domain == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ApiWalkStep api = new ApiWalkStep();<NEW_LINE>api.distance = domain.distance;<NEW_LINE>api.relativeDirection = mapRelativeDirection(domain.relativeDirection);<NEW_LINE>api.streetName = domain.stree... | = domain.startLocation.latitude(); |
1,519,251 | public void start(Xid xid, int flags) throws XAException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "start", new Object[] { this, ivMC, xid, AdapterUtil.getXAResourceStartFlagString(flags) });<NEW_LINE>this.ivXid = xid;<NEW_LINE>try {<NEW_LINE>ivXaRes.start(xid, flags);<NEW_LINE>ivStateManager.setState(S... | exit(tc, "start", "Exception"); |
967,500 | private List<Download> doInBackgroundHelper(final Uri uri, final AbstractDownloader downloader) {<NEW_LINE>final Parameters params = new Parameters();<NEW_LINE>String page = "";<NEW_LINE>try {<NEW_LINE>final Response response = Network.getRequest(uri.toString(), params).blockingGet();<NEW_LINE>page = <MASK><NEW_LINE>} ... | Network.getResponseData(response, true); |
295,146 | private void createP2() {<NEW_LINE>remove(prgCircle);<NEW_LINE>remove(lblSpeed);<NEW_LINE>remove(lblStat);<NEW_LINE>remove(segProgress);<NEW_LINE>remove(lblDet);<NEW_LINE>remove(lblETA);<NEW_LINE>remove(this.panel);<NEW_LINE>titlePanel.remove(closeBtn);<NEW_LINE>titlePanel.remove(minBtn);<NEW_LINE>JPanel p2 = new JPane... | 350), getScaledInt(50)); |
132,391 | protected void map(SlicedSelectedSample selection, SlicedResult result) throws Exception {<NEW_LINE>if (encode.equals(Encode.ASSEMBLED_VECTOR)) {<NEW_LINE>Tuple2<Integer, int[]> indices = getIndicesAndSize(selection);<NEW_LINE>double[] vals = new double[indices.f1.length];<NEW_LINE>Arrays.fill(vals, 1.0);<NEW_LINE>if (... | (selectedCols[i], str); |
539,610 | public static void quantizeAC(int[] coeffs, int qp) {<NEW_LINE>int level = qp / 6;<NEW_LINE>int offset = qp % 6;<NEW_LINE>int addition = 682 << (qp / 6 + 4);<NEW_LINE>int qbits = 15 + level;<NEW_LINE>if (qp < 10) {<NEW_LINE>for (int i = 0; i < 16; i++) {<NEW_LINE>int sign = (coeffs[i] >> 31);<NEW_LINE>coeffs[i] = (Math... | , 2063) ^ sign) - sign; |
316,906 | private void updateReferenceTimeByLaunchConfig(String region, List<Resource> batch, long since) {<NEW_LINE>LOGGER.info(String.format("Getting the last reference time by launch config for batch of size %d", batch.size()));<NEW_LINE>String batchUrl = getLaunchConfigBatchUrl(region, batch, since);<NEW_LINE>JsonNode batchR... | batchResult = eddaClient.getJsonNodeFromUrl(batchUrl); |
1,207,801 | private Position decodeOld(DeviceSession deviceSession, ByteBuf buf, int type, int index) {<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>position.setDeviceId(deviceSession.getDeviceId());<NEW_LINE>position.set(Position.KEY_INDEX, index);<NEW_LINE>position.setTime(new Date(buf.readUnsignedInt()... | KEY_RSSI, buf.readUnsignedShort()); |
998,053 | public static View createWaypointItemView(final Context context, final Waypoint waypoint, final View view) {<NEW_LINE>final TextView tv = (TextView) view.findViewById(R.id.text);<NEW_LINE>tv.setText(waypoint.getName());<NEW_LINE>tv.setCompoundDrawablesRelativeWithIntrinsicBounds(MapMarkerUtils.getWaypointMarker(context... | findViewById(R.id.info); |
1,136,896 | public static void initBlueTooth() {<NEW_LINE>mAdapter = BluetoothAdapter.getDefaultAdapter();<NEW_LINE>IntentFilter bluetoothFilter = new IntentFilter();<NEW_LINE>bluetoothFilter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);<NEW_LINE>bluetoothFilter.addAction(BluetoothAdapter.ACTION_SCAN_MODE_CHANGED);<NEW_LINE>Cr... | > bts = mAdapter.getBondedDevices(); |
1,764,927 | public static void blas_set_num_threads(int num) {<NEW_LINE>Loader.load(openblas_nolapack.class);<NEW_LINE>Pointer mklSetNumThreads = Loader.addressof("MKL_Set_Num_Threads");<NEW_LINE>Pointer mklSetNumThreadsLocal = Loader.addressof("MKL_Set_Num_Threads_Local");<NEW_LINE>Pointer mklDomainSetNumThreads = Loader.addresso... | (mklSetNumThreadsLocal).call(num); |
1,529,832 | public TextFormatter format(String value) {<NEW_LINE>// Scratch all instance variables and start = result.length().<NEW_LINE>setStart();<NEW_LINE>int p = spec.precision, n = value.length();<NEW_LINE>if (Spec.specified(p) && p < n) {<NEW_LINE>// Estimate the space for the converted result (preempt multiple re-allocation... | = value.charAt(count++); |
1,630,304 | public WebAsyncTaskInfo asyncReadDataFromContainer(@NotNull WebSQLContextInfo contextInfo, @NotNull String nodePath, @Nullable String resultId, @Nullable WebSQLDataFilter filter, @Nullable WebDataFormat dataFormat) throws DBWebException {<NEW_LINE>WebAsyncTaskProcessor<String> runnable = new WebAsyncTaskProcessor<Strin... | monitor, nodePath, DBSDataContainer.class); |
1,129,913 | public static JPanel createJPanelView(@NotNull Disposable parentDisposable, @NotNull FlutterApp app) {<NEW_LINE>final JPanel panel = new JPanel(new StackLayout());<NEW_LINE>panel.setDoubleBuffered(true);<NEW_LINE>assert app.getVMServiceManager() != null;<NEW_LINE>final FlutterFramesMonitor flutterFramesMonitor = app.ge... | -> flutterFramesMonitor.removeListener(listener)); |
478,446 | public LogSettingsRequest unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LogSettingsRequest logSettingsRequest = new LogSettingsRequest();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | JsonToken token = context.getCurrentToken(); |
1,191,350 | private void standardOptimization(final boolean withStandardMeshExport) {<NEW_LINE>mExportProgressDialog.setTitle("Post-Processing");<NEW_LINE>mExportProgressDialog.setMessage(String.format("Please wait while optimizing..."));<NEW_LINE>mExportProgressDialog.setProgress(0);<NEW_LINE>mExportProgressDialog.show();<NEW_LIN... | true, false, true, 200000); |
1,778,421 | final DescribeUserPoolResult executeDescribeUserPool(DescribeUserPoolRequest describeUserPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<D... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
241,716 | public StoredApiTemplate createStoredTemplate(NewApiTemplate template) throws ServerError, AccessDeniedException {<NEW_LINE>logger.debug("Creating a stored template");<NEW_LINE>metrics.apiCall("/templates", "POST");<NEW_LINE>try {<NEW_LINE>final User currentUser = this.security.getCurrentUser();<NEW_LINE>if (!authoriza... | setType(template.getType()); |
1,788,687 | public static void main(String[] args) {<NEW_LINE>AggregateNumber an = new AggregateNumber();<NEW_LINE>// true 11 + 22 == 33(+22) = 55(+33) = 88(+55) = 143<NEW_LINE>int[] number = { 1, 1, 2, 2, 3, 3, 5, 5, 8, 8, 1, 4, 3 };<NEW_LINE>// false 11 + 22 == 33(+55) = 88(+55) != 144<NEW_LINE>int[] number1 = { 1, 1, 2, 2, 3, 3... | 8, 1, 4, 4 }; |
1,012,077 | public TypecheckingResult visitLam(Concrete.LamExpression expr, Expression expectedType) {<NEW_LINE>try (var ignored = new Utils.SetContextSaver<>(context)) {<NEW_LINE>if (expectedType == null) {<NEW_LINE>return visitLam(expr.getParameters(), expr, NULL_PARAMETERS_PROVIDER);<NEW_LINE>}<NEW_LINE>expectedType = expectedT... | Prelude.ARRAY_AT, result.expression); |
866,585 | private void actionOK() {<NEW_LINE>if (fCreateNew.isSelected()) {<NEW_LINE>// Get Warehouse Info<NEW_LINE>KeyNamePair pp = (KeyNamePair) fWarehouse.getSelectedItem();<NEW_LINE>if (pp != null)<NEW_LINE>loadWarehouseInfo(pp.getKey());<NEW_LINE>// Check mandatory values<NEW_LINE>String mandatoryFields = "";<NEW_LINE>if (m... | .length() - 3)); |
1,827,818 | public void run() {<NEW_LINE>boolean isDebug = java.lang.management.ManagementFactory.getRuntimeMXBean().getInputArguments().toString(<MASK><NEW_LINE>StandaloneSoapUICore standaloneSoapUICore = new StandaloneSoapUICore(true);<NEW_LINE>SoapUIUpdateProvider updateProvider = SoapUIAutoUpdaterUtils.getProvider();<NEW_LINE>... | ).indexOf("-agentlib:jdwp") > 0; |
1,762,930 | private final void collectUnchangedLocs(final SemanticNode expr, final Context c, final ObjLongTable<SemanticNode> tbl) {<NEW_LINE>if (expr instanceof OpApplNode) {<NEW_LINE>OpApplNode expr1 = (OpApplNode) expr;<NEW_LINE>SymbolNode opNode = expr1.getOperator();<NEW_LINE><MASK><NEW_LINE>int opcode = BuiltInOPs.getOpCode... | UniqueString opName = opNode.getName(); |
1,749,406 | private static void compareAtomicReferenceArray(DualValue dualValue, ComparisonState comparisonState) {<NEW_LINE>if (!dualValue.isActualFieldAnAtomicReferenceArray()) {<NEW_LINE>comparisonState.addDifference(dualValue, differentTypeErrorMessage(dualValue, "an AtomicReferenceArray"));<NEW_LINE>return;<NEW_LINE>}<NEW_LIN... | AtomicReferenceArray<?>) dualValue.expected; |
1,255,137 | static String computeWwnIfAbsent(String volumeUUid) {<NEW_LINE>String wwn;<NEW_LINE>String tag = KVMSystemTags.VOLUME_WWN.getTag(volumeUUid);<NEW_LINE>if (tag != null) {<NEW_LINE>wwn = KVMSystemTags.VOLUME_WWN.getTokenByTag(tag, KVMSystemTags.VOLUME_WWN_TOKEN);<NEW_LINE>} else {<NEW_LINE>wwn = new WwnUtils().getRandomW... | ("Not a valid wwn[%s] for volume[uuid:%s]", wwn, volumeUUid)); |
256,274 | public RefactoringPlugin createInstance(AbstractRefactoring refactoring) {<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.log(Level.FINE, "Create instance called: " + refactoring);<NEW_LINE>NonRecursiveFolder pkg = refactoring.getRefactoringSource().lookup(NonRecursiveFolder.class);<NEW_LINE>boolean javaPackage = pkg != null && is... | new WSITRenameRefactoringPlugin((RenameRefactoring) refactoring); |
519,455 | private void createCreateReflectorMethod1(String newClassPrefix, CtClass reflectorFactoryImpl) throws NotFoundException, CannotCompileException {<NEW_LINE>CtClass[] parameters = new CtClass[2];<NEW_LINE>parameters[0] = pool.get(Class.class.getName());<NEW_LINE>parameters[1] = pool.get(Reflector.class.getName());<NEW_LI... | sService = servicesMap.getByName(name); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.