idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,525,167 | final StopSNOMEDCTInferenceJobResult executeStopSNOMEDCTInferenceJob(StopSNOMEDCTInferenceJobRequest stopSNOMEDCTInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopSNOMEDCTInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,613,477 | public void overridePrimaryKey(UniqueKeyDefinition key) {<NEW_LINE>UniqueKeyDefinition old = null;<NEW_LINE>// Remove the existing key from the column -> key mapping<NEW_LINE>primaryKeysByColumn = null;<NEW_LINE>uniqueKeysByColumn = null;<NEW_LINE>keysByColumn = null;<NEW_LINE>// Remove the existing key from the primar... | > entry = it.next(); |
1,454,492 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B... | progressBar.setVisibility(View.INVISIBLE); |
1,050,789 | protected boolean approximatelyLinearDependent(PCAFilteredResult p1, PCAFilteredResult p2) {<NEW_LINE>double[][] m1_czech = p1.dissimilarityMatrix();<NEW_LINE>double[][] v2_strong = p2.getStrongEigenvectors();<NEW_LINE>for (int i = 0; i < v2_strong.length; i++) {<NEW_LINE>double[] v2_i = v2_strong[i];<NEW_LINE>// check... | transposeTimesTimes(v2_i, m1_czech, v2_i); |
1,359,285 | protected void printLine(UnifiedImageBuilder<?> imageBdr, List<MapNode> nodes, DefaultEntityViewInfo pInfo, boolean asArea, boolean asOneway, NameInfo textInfo) {<NEW_LINE>// count++;<NEW_LINE>int[] xPoints = new int[nodes.size()];<NEW_LINE>int[] yPoints = new int[nodes.size()];<NEW_LINE>int viewWidth = !asArea ? image... | printOnewayArrow(x, y, angle); |
439,853 | public static QuadRect calculateLatLonBbox(double latitude, double longitude, int radiusMeters) {<NEW_LINE>int zoom = 16;<NEW_LINE>float coeff = (float) (radiusMeters / MapUtils.getTileDistanceWidth(zoom));<NEW_LINE>double tx = MapUtils.getTileNumberX(zoom, longitude);<NEW_LINE>double ty = MapUtils.getTileNumberY(zoom,... | min(max, ty + coeff); |
1,159,905 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>StackObject spell = null;<NEW_LINE>for (StackObject object : game.getStack()) {<NEW_LINE>if (object instanceof Spell && o... | true, false, source, game); |
1,569,322 | Token subTemplate() {<NEW_LINE>// look for "{ args ID (',' ID)* '|' ..."<NEW_LINE>subtemplateDepth++;<NEW_LINE>int m = input.mark();<NEW_LINE>int curlyStartChar = startCharIndex;<NEW_LINE>int curlyLine = startLine;<NEW_LINE>int curlyPos = startCharPositionInLine;<NEW_LINE>List<Token> argTokens = new ArrayList<Token>();... | argTokens.add(mID()); |
529,647 | VarKeyNode appendLeaf(VarKeyRecordNode leaf) throws IOException {<NEW_LINE>// Create new leaf and link<NEW_LINE>leaf.buffer.putInt(PREV_LEAF_ID_OFFSET, buffer.getId());<NEW_LINE>int rightLeafBufId = buffer.getInt(NEXT_LEAF_ID_OFFSET);<NEW_LINE>leaf.<MASK><NEW_LINE>// Adjust this node<NEW_LINE>int newBufId = leaf.buffer... | buffer.putInt(NEXT_LEAF_ID_OFFSET, rightLeafBufId); |
1,746,813 | public okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}... | (namespace.toString())); |
677,117 | void execute() {<NEW_LINE>UIUtils.runInAWT(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE><MASK><NEW_LINE>if (info != null) {<NEW_LINE>panel.userField.setText(info.getUsername());<NEW_LINE>char[] psswd = info.getPassword();<NEW_LINE>panel.psswdField.setText(psswd != null ? new Strin... | RepositoryInfo info = repository.getInfo(); |
1,429,382 | void assembleMessageParameters() {<NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>// We check if the model identifier value is within the range of a 16-bit value here. If it is then it is a sigmodel<NEW_LINE>final byte[] elementAddress = MeshAddress.addressIntToBytes(this.elementAddress);<NEW_LINE>final byte[] subscr... | .put(modelIdentifier[3]); |
1,698,486 | public void optionsChanged(DebugOptions options) {<NEW_LINE>boolean debug = options.getBooleanOption(DEBUG, false);<NEW_LINE>BufferManager.VERBOSE = debug && options.getBooleanOption(BUFFER_MANAGER_DEBUG, false);<NEW_LINE>JavaBuilder.DEBUG = debug && options.getBooleanOption(BUILDER_DEBUG, false);<NEW_LINE>Compiler.DEB... | options.getBooleanOption(CP_RESOLVE_DEBUG, false); |
624,016 | public void write(org.apache.thrift.protocol.TProtocol prot, removeTableProperty_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (stru... | oprot.writeString(struct.property); |
406,085 | public Pair<Boolean, byte[]> execute(byte[] data) {<NEW_LINE>if (data == null) {<NEW_LINE>return Pair.of(true, DataWord.ZERO().getData());<NEW_LINE>}<NEW_LINE>if (data.length != SIZE) {<NEW_LINE>return Pair.of(true, DataWord.<MASK><NEW_LINE>}<NEW_LINE>boolean result;<NEW_LINE>long ctx = JLibrustzcash.librustzcashSaplin... | ZERO().getData()); |
816,496 | public Set<Entry<K, Iterable<V>>> entrySet() {<NEW_LINE>return new AbstractSet<Entry<K, Iterable<V>>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Iterator<Entry<K, Iterable<V>>> iterator() {<NEW_LINE>return FluentIterable.from(primitiveViewT.get()).<Entry<K, Iterable<V>>>transform((K key) -> new SimpleEntry<>(key,... | K) entry.getKey()); |
968,714 | public void visitNewArrayFunctionRef(ENewArrayFunctionRef userNewArrayFunctionRefNode, ScriptScope scriptScope) {<NEW_LINE>ReferenceNode irReferenceNode;<NEW_LINE>if (scriptScope.hasDecoration(userNewArrayFunctionRefNode, TargetType.class)) {<NEW_LINE>TypedInterfaceReferenceNode typedInterfaceReferenceNode = new TypedI... | ReturnNode(userNewArrayFunctionRefNode.getLocation()); |
1,067,184 | private void generateEJB21Xml() throws IOException {<NEW_LINE>org.netbeans.modules.j2ee.api.ejbjar.EjbJar ejbModule = org.netbeans.modules.j2ee.api.ejbjar.EjbJar.getEjbJar(pkg);<NEW_LINE>FileObject ddFO = ejbModule.getDeploymentDescriptor();<NEW_LINE>if (ddFO == null && ejbModule.getMetaInf() != null) {<NEW_LINE>// NOI... | ContainerTransaction containerTransaction = assemblyDescriptor.newContainerTransaction(); |
343,886 | // debug output<NEW_LINE>public void toStandardOut(FeatureArrayIndexer ffi, int level) {<NEW_LINE>String blanks = "";<NEW_LINE>for (int i = 0; i < level; i++) blanks += " ";<NEW_LINE>if (kids != null) {<NEW_LINE>String featureName = ffi.<MASK><NEW_LINE>System.out.println("Node " + featureName + " has " + (to - from) ... | getFeatureDefinition().getFeatureName(featureIndex); |
579,797 | public void initialize() {<NEW_LINE>// *** initialize table<NEW_LINE>// set renderer for the second column ("Member") do display name of the feature<NEW_LINE>membersTable.setDefaultRenderer(COLUMN_CLASSES[1], new DefaultTableCellRenderer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Component getTableCellRendererCom... | 2, Boolean.TRUE, 4); |
879,363 | private CompletableFuture<List<Wo>> searchView(final Wi wi, final List<String> appIdList, final List<String> designerIdList) {<NEW_LINE>CompletableFuture<List<Wo>> cf = CompletableFuture.supplyAsync(() -> {<NEW_LINE>List<Wo> resWos = new ArrayList<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFa... | setAppName(query.getName()); |
307,240 | private void validateGELFMessage(JsonNode jsonNode, UUID id, ResolvableInetSocketAddress remoteAddress) {<NEW_LINE>final String prefix = "GELF message <" + id + "> " + (remoteAddress == null ? "" : "(received from <" + remoteAddress + ">) ");<NEW_LINE>final JsonNode hostNode = jsonNode.path("host");<NEW_LINE>if (hostNo... | throw new IllegalArgumentException(prefix + "is missing mandatory \"short_message\" or \"message\" field."); |
401,126 | public Mat apply(Mat input) {<NEW_LINE>// Must be RGB<NEW_LINE>assert input.channels() == 3;<NEW_LINE>int w = input.cols();<NEW_LINE>int h = input.rows();<NEW_LINE>input.<MASK><NEW_LINE>var matCols = input.reshape(1, w * h);<NEW_LINE>double[] max = new double[] { stains.getMaxRed(), stains.getMaxGreen(), stains.getMaxB... | convertTo(input, opencv_core.CV_32F); |
30,740 | public Multimap<Class<?>, EventHandler> findAllSubscribers(Object listener) {<NEW_LINE>Multimap<Class<?>, EventHandler> methodsInListener = HashMultimap.create();<NEW_LINE>Class<?> clazz = listener.getClass();<NEW_LINE>while (clazz != null) {<NEW_LINE>for (Method method : clazz.getMethods()) {<NEW_LINE>Subscribe annota... | parameterTypes.length + " arguments. Event handler methods " + "must require a single argument."); |
170,392 | private KeyDescriptor buildKeyDescriptor(UsageType usageType, java.security.cert.X509Certificate certificate) {<NEW_LINE>KeyDescriptor keyDescriptor = build(KeyDescriptor.DEFAULT_ELEMENT_NAME);<NEW_LINE>KeyInfo keyInfo = build(KeyInfo.DEFAULT_ELEMENT_NAME);<NEW_LINE>X509Certificate x509Certificate = build(X509Certifica... | "Cannot encode certificate " + certificate.toString()); |
1,747,477 | static Object invokeMatchingMethod(final String methodName, final List methods, final Object target, final Object[] args) {<NEW_LINE>Method m = null;<NEW_LINE>Object[] boxedArgs = null;<NEW_LINE>if (methods.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException(noMethodReport(methodName, target, args));<NEW_LINE>} el... | Method) methods.get(0); |
141,450 | final DeleteNotificationConfigurationResult executeDeleteNotificationConfiguration(DeleteNotificationConfigurationRequest deleteNotificationConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNotificationConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | DeleteNotificationConfigurationResult>(new DeleteNotificationConfigurationResultStaxUnmarshaller()); |
1,617,707 | public static FrameHeader readFrameHeader(ByteBuffer inp) {<NEW_LINE>int frameSize = inp.getInt();<NEW_LINE>String sig = readSig(inp);<NEW_LINE>if (!"icpf".equals(sig))<NEW_LINE>throw new RuntimeException("Not a prores frame");<NEW_LINE>short hdrSize = inp.getShort();<NEW_LINE>short version = inp.getShort();<NEW_LINE>i... | (flags1 >> 6) & 3; |
968,324 | private static void process(AgentInstance agentInstance, Collection<FilterHandle> callbacks, EventBean theEvent) {<NEW_LINE>AgentInstanceContext agentInstanceContext = agentInstance.getAgentInstanceContext();<NEW_LINE>agentInstance.getAgentInstanceContext().getAgentInstanceLock().acquireWriteLock();<NEW_LINE>try {<NEW_... | .getEpStatementAgentInstanceHandle().internalDispatch(); |
1,802,981 | public void select(ArrayList<TableRow> primes, ArrayList<TableRow> primesAvail, TreeSet<Integer> termIndices) {<NEW_LINE>if (primesAvail.size() > 31)<NEW_LINE>throw new RuntimeException("to many primes");<NEW_LINE>int comb = 1 << primesAvail.size();<NEW_LINE>ArrayList<Integer> list <MASK><NEW_LINE>for (int i = 1; i < c... | = new ArrayList<>(comb); |
1,846,540 | public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>LogUtil.v(<MASK><NEW_LINE>int i = 0;<NEW_LINE>for (Spannable s : base) {<NEW_LINE>if (s.equals(item.getTitle())) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>i++;<NEW_LINE>}<NEW_LINE>switch(i) {<NEW_LINE>case 0:<NEW_LINE>SortingUtil.setSorting(subreddit, Sorting.HOT);<N... | "Chosen is " + item.getOrder()); |
92,527 | private Map<Property, PropertyCodeGenerator> pickPropertyGenerators(TypeElement type, Datatype datatype, DeclaredType builder, Iterable<ExecutableElement> methods) {<NEW_LINE>NamingConvention namingConvention = determineNamingConvention(<MASK><NEW_LINE>Optional<JacksonSupport> jacksonSupport = JacksonSupport.create(typ... | type, methods, messager, types); |
1,580,397 | private static Version fromStringSlow(String version) {<NEW_LINE>if (version.endsWith("-SNAPSHOT")) {<NEW_LINE>throw new IllegalArgumentException("illegal version format - snapshot labels are not supported");<NEW_LINE>}<NEW_LINE>String[] parts = version.split("[.-]");<NEW_LINE>if (parts.length < 3 || parts.length > 4) ... | < 25 : "expected a alpha build but " + build + " >= 25"; |
705,230 | protected List<VariableElement> initializedFieldsAfterCall(MethodInvocationNode node) {<NEW_LINE>List<VariableElement> result = new ArrayList<>();<NEW_LINE>MethodInvocationTree tree = node.getTree();<NEW_LINE>ExecutableElement <MASK><NEW_LINE>boolean isConstructor = method.getSimpleName().contentEquals("<init>");<NEW_L... | method = TreeUtils.elementFromUse(tree); |
509,759 | final DescribeVpcClassicLinkResult executeDescribeVpcClassicLink(DescribeVpcClassicLinkRequest describeVpcClassicLinkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVpcClassicLinkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
1,540,085 | public void extendIDColumn(int row, ConcreteElement columnElement, a href, PrintDataElement dataElement, MPrintFormatItem pfi, int AD_PInstance_ID) {<NEW_LINE>href.addAttribute("onclick", "this.style.color='red'; showColumnMenu(event, '" + dataElement.getColumnName() + "', " + row + ")");<NEW_LINE>// menu div<NEW_LINE>... | ) + "', '" + AD_PInstance_ID + "')"); |
508,850 | public void addDesktopSharingComponents() {<NEW_LINE>OperationSetDesktopSharingServer opSetDesktopSharingServer = callPeer.getProtocolProvider().getOperationSet(OperationSetDesktopSharingServer.class);<NEW_LINE>if (opSetDesktopSharingServer != null && opSetDesktopSharingServer.isRemoteControlAvailable(callPeer)) {<NEW_... | add(southPanel, BorderLayout.SOUTH); |
611,839 | private ContentValues createContentValuesBase(OCFile fileOrFolder) {<NEW_LINE>final ContentValues cv = new ContentValues();<NEW_LINE>cv.put(ProviderTableMeta.FILE_MODIFIED, fileOrFolder.getModificationTimestamp());<NEW_LINE>cv.put(ProviderTableMeta.FILE_MODIFIED_AT_LAST_SYNC_FOR_DATA, fileOrFolder.getModificationTimest... | (fileOrFolder.getSharees())); |
30,568 | protected BloomFilter sendRemoteFetch(DistributedDatabaseContact contact) {<NEW_LINE>try {<NEW_LINE>Map<String, Object> request = new HashMap<>();<NEW_LINE>request.put("x", "f");<NEW_LINE>DistributedDatabaseKey key = ddb.createKey(BEncoder.encode(request));<NEW_LINE>DistributedDatabaseValue value = contact.read(null, t... | (BloomFilterFactory.deserialiseFromMap(m)); |
391,764 | protected void innerRun() {<NEW_LINE>RaftState state = raftNode.state();<NEW_LINE>if (state.leader() != null) {<NEW_LINE>logger.fine(<MASK><NEW_LINE>return;<NEW_LINE>} else if (state.term() != term) {<NEW_LINE>logger.fine("No new pre-vote phase for term= " + term + " because of new term: " + state.term());<NEW_LINE>ret... | "No new pre-vote phase, we already have a LEADER: " + state.leader()); |
84,195 | protected void paintComponent(Graphics g) {<NEW_LINE>int width = getSize().width;<NEW_LINE>FontMetrics fontMetrics = getFontMetrics(getFont());<NEW_LINE>int charWidth = fontMetrics.charWidth('a');<NEW_LINE>int firstLineSize = Math.max(0, width / charWidth);<NEW_LINE>if (myAllText.length() <= firstLineSize) {<NEW_LINE>s... | (0, secondLineSize) + "..."); |
542,364 | private void updateComponentsForNoSelection() {<NEW_LINE>boolean ingestIsRunning = IngestManager.getInstance().isIngestRunning();<NEW_LINE>// Update descriptive labels.<NEW_LINE>hashDbNameLabel.setText(NO_SELECTION_TEXT);<NEW_LINE>hashDbTypeLabel.setText(NO_SELECTION_TEXT);<NEW_LINE>hashDbLocationLabel.setText(NO_SELEC... | .getClass(), "HashDbConfigPanel.indexButtonText.index")); |
1,680,352 | public void logAudioTrack(int idx) {<NEW_LINE>if (mI == null || !mI.isValid()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>sb.append("\n - Audio - ");<NEW_LINE>boolean first = true;<NEW_LINE>first &= !appendString("Title", mI.Get(StreamType.Audio, idx, "Title"), first, true, true);<NEW_LINE>first &= !appendString("Format... | ), first, false, true); |
342,785 | default ToDoubleNullable<T> mapToDoubleIfPresent(IntToDoubleFunction mapper) {<NEW_LINE>final ToIntNullable<T> delegate = this;<NEW_LINE>return new ToDoubleNullable<T>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Double apply(T object) {<NEW_LINE>return delegate.isNull(object) ? null : mapper.applyAsDouble<MASK><NE... | (delegate.applyAsInt(object)); |
32,908 | public static String utf8ToString(byte[] src, int stPos, int utf8Len) {<NEW_LINE>char[<MASK><NEW_LINE>int i = stPos;<NEW_LINE>int j = 0;<NEW_LINE>int limit = stPos + utf8Len;<NEW_LINE>while (i < limit) {<NEW_LINE>int b = src[i++] & 255;<NEW_LINE>if (b >= 224) {<NEW_LINE>b = (b & 15) << 12;<NEW_LINE>b = b | ((src[i++] &... | ] strBuf = new char[utf8Len]; |
1,164,805 | public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>final ForceMergeRequest mergeRequest = new ForceMergeRequest(Strings.splitStringByCommaToArray(request.param("index")));<NEW_LINE>mergeRequest.indicesOptions(IndicesOptions.fromRequest(request<MAS... | , mergeRequest.indicesOptions())); |
897,705 | public String open(Rectangle rect) {<NEW_LINE>Point listSize = getList().computeSize(rect.width, SWT.DEFAULT);<NEW_LINE>Rectangle screenSize = getShell()<MASK><NEW_LINE>// Position the dialog so that it does not run off the screen and the largest number of items are visible<NEW_LINE>int spaceBelow = screenSize.height -... | .getDisplay().getBounds(); |
1,738,148 | public void call(String[] args) throws CmdException {<NEW_LINE>if (args.length != 1)<NEW_LINE>throw new CmdSyntaxError();<NEW_LINE>FollowHack followHack = WURST.getHax().followHack;<NEW_LINE>if (followHack.isEnabled())<NEW_LINE>followHack.setEnabled(false);<NEW_LINE>Entity entity = StreamSupport.stream(MC.world.getEnti... | + args[0] + "\" could not be found."); |
1,285,768 | void buildComponents() {<NEW_LINE>SourceTypeBinding sourceType = this.referenceContext.binding;<NEW_LINE>if (!sourceType.isRecord())<NEW_LINE>return;<NEW_LINE>if (sourceType.areComponentsInitialized())<NEW_LINE>return;<NEW_LINE>if (this.referenceContext.recordComponents == null) {<NEW_LINE>sourceType.setComponents(Bind... | problemReporter().recordDuplicateComponent(recComp); |
1,138,621 | public static EncapsulatedPacket fromBinary(byte[] binary, boolean internal) {<NEW_LINE>EncapsulatedPacket packet = new EncapsulatedPacket();<NEW_LINE>int flags = binary[0] & 0xff;<NEW_LINE>packet.reliability = ((flags & 0b11100000) >> 5);<NEW_LINE>packet.hasSplit = (flags & 0b00010000) > 0;<NEW_LINE>int length, offset... | , 2)) / 8)); |
1,124,570 | public Answer CreateStoragePool(CreateStoragePoolCommand cmd) {<NEW_LINE>StorageFilerTO sf = cmd.getPool();<NEW_LINE>TransactionLegacy txn = <MASK><NEW_LINE>MockStoragePoolVO storagePool = null;<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>storagePool = _mockStoragePoolDao.findByUuid(sf.getUuid());<NEW_LINE>if (storag... | TransactionLegacy.open(TransactionLegacy.SIMULATOR_DB); |
934,913 | protected void doExecute(Task task, QueryApiKeyRequest request, ActionListener<QueryApiKeyResponse> listener) {<NEW_LINE>final Authentication authentication = securityContext.getAuthentication();<NEW_LINE>if (authentication == null) {<NEW_LINE>listener.onFailure(new IllegalStateException("authentication is required"));... | size(request.getSize()); |
975,426 | public com.amazonaws.services.forecast.model.ResourceAlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.forecast.model.ResourceAlreadyExistsException resourceAlreadyExistsException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDept... | forecast.model.ResourceAlreadyExistsException(null); |
1,051,962 | private void verifySchema(ODatabase<?> odb) {<NEW_LINE>try {<NEW_LINE>System.out.println("calling existsClass odb = " + odb);<NEW_LINE>if (!odb.getMetadata().getSchema().existsClass(oldapUserClass)) {<NEW_LINE>System.out.println("calling createClass");<NEW_LINE>OClass ldapUser = odb.getMetadata().getSchema().createClas... | error(this, "OLDAPImporter.verifySchema()", ex); |
337,804 | public boolean onPreDraw() {<NEW_LINE>// rotation fix, if not set, originalTitleY = Na<NEW_LINE>ViewCompat.setTranslationY(mLogo, 0);<NEW_LINE>ViewCompat.setTranslationX(mLogo, 0);<NEW_LINE>originalTitleY = ViewCompat.getY(mLogo);<NEW_LINE>originalTitleX = ViewCompat.getX(mLogo);<NEW_LINE>originalTitleHeight = mLogo.ge... | getViewTreeObserver().removeOnPreDrawListener(this); |
147,068 | private void loadSettings() {<NEW_LINE>File configFile = getConfigFile();<NEW_LINE>if (!configFile.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Document document = XMLUtils.parseDocument(configFile);<NEW_LINE>for (Element viewElement : XMLUtils.getChildElementList(document.getDocumentElement(), "view... | .getAttribute("openConnectionOnActivate"), openConnectionOnActivate); |
794,613 | public okhttp3.Call readNamespacedCronJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{nam... | .parameterToPair("pretty", pretty)); |
618,252 | private void addProjectLine(final List<AttributedString> lines, Project prj) {<NEW_LINE>final MojoStartedEvent execution = prj.runningExecution;<NEW_LINE>final AttributedStringBuilder asb = new AttributedStringBuilder();<NEW_LINE>AttributedString transfer = formatTransfers(prj.id);<NEW_LINE>if (transfer != null) {<NEW_... | id)).append(transfer); |
253,212 | private RelNode handleProject(LogicalProject project, RelNode child) {<NEW_LINE>List<RexNode> pros = Lists.newLinkedList();<NEW_LINE>Map<Integer, Integer> shift = shiftMap.get(child);<NEW_LINE>List<Integer> childAdd = childAddMap.get(child);<NEW_LINE>Set<Integer> toAdd = addMap.get(project);<NEW_LINE>if (shift != null)... | add(relDataTypeField.getName()); |
1,208,627 | protected boolean instrument(Object target, Recorder recorder, InstrumentationFilter filter) throws NonInstrumentableTypeException {<NEW_LINE>if (target instanceof PyObject) {<NEW_LINE>disallowSelectiveFilter(filter);<NEW_LINE>// Jython object.<NEW_LINE>if (target instanceof PyInstance) {<NEW_LINE>transform(recorder, (... | (recorder, (PyClass) target); |
259,619 | private void inventoryStoreReserveFiles(File storeReserveDir, String storeId) throws IOException {<NEW_LINE>File[] <MASK><NEW_LINE>if (fileSizeDirs == null) {<NEW_LINE>throw new IOException("Error while listing directories in " + storeReserveDir.getAbsolutePath());<NEW_LINE>}<NEW_LINE>ReserveFileMap sizeToFileMap = sto... | fileSizeDirs = storeReserveDir.listFiles(FILE_SIZE_DIR_FILTER); |
1,736,699 | public void updateTabletServerInfo(Monitor monitor, TabletServerStatus thriftStatus, TableInfo summary) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>this.server = this.ip = this.hostname = thriftStatus.name;<NEW_LINE>this.tablets = summary.tablets;<NEW_LINE>this.lastContact = now - thriftStatus.lastContac... | add(new RecoveryStatusInformation(recovery)); |
1,320,820 | public void marshall(CreateServiceRequest createServiceRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createServiceRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createServiceRequest.get... | e.getMessage(), e); |
922,247 | public boolean open(SchemaNegotiator negotiator) {<NEW_LINE>// Result set loader setup<NEW_LINE>String tempDirPath = negotiator.drillConfig().getString(ExecConstants.DRILL_TMP_DIR);<NEW_LINE>HttpUrl url = buildUrl();<NEW_LINE>logger.debug("Final URL: {}", url);<NEW_LINE>CustomErrorContext errorContext = new ChildErrorC... | InputStream inStream = http.getInputStream(); |
1,540,958 | private void startUpdateNodes() {<NEW_LINE>Thread nodes = new Thread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>for (; ; ) {<NEW_LINE>try {<NEW_LINE>if (isDetach()) {<NEW_LINE>LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(2000));<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Usha... | .SECONDS).subscribeKvPrefix(input); |
1,408,480 | public void marshall(MaintenanceWindowTarget maintenanceWindowTarget, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (maintenanceWindowTarget == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(maintenanceWind... | maintenanceWindowTarget.getOwnerInformation(), OWNERINFORMATION_BINDING); |
789,182 | public void prepareInvisiblePartitionGroup() {<NEW_LINE>List<PartitionGroupRecord> inVisiblePartitionGroups = new ArrayList<>();<NEW_LINE>TableGroupConfig tableGroupConfig = OptimizerContext.getContext(getSchemaName()).getTableGroupInfoManager().getTableGroupConfigByName(getTableGroupName());<NEW_LINE>assert tableGroup... | getPartitionInfoManager().getPartitionInfo(firstTbName); |
874,902 | public List<ComplexSamples> process(float[] i, float[] q) {<NEW_LINE>float[] iCombined = new float[mIResidual.length + i.length];<NEW_LINE>float[] qCombined = new float[mQResidual.length + q.length];<NEW_LINE>if (mIResidual.length > 0) {<NEW_LINE>System.arraycopy(mIResidual, 0, <MASK><NEW_LINE>System.arraycopy(mQResidu... | iCombined, 0, mIResidual.length); |
533,301 | protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {<NEW_LINE>String localNamespace = MetadataContext.LOCAL_NAMESPACE;<NEW_LINE>String localService = MetadataContext.LOCAL_SERVICE;<NEW_LINE>String method = request.getRe... | setStatus(TOO_MANY_REQUESTS.value()); |
506,272 | public static File[] flatten(File[] files, int status) {<NEW_LINE>LinkedList<File> ret = new LinkedList<File>();<NEW_LINE>FileStatusCache cache = Subversion.getInstance().getStatusCache();<NEW_LINE>for (int i = 0; i < files.length; i++) {<NEW_LINE>File dir = files[i];<NEW_LINE>FileInformation info = cache.getStatus(dir... | entries = cache.listFiles(dir); |
1,513,992 | private void stowHttps(final HttpsURLConnection connection, StowChunk stowChunk) throws Exception {<NEW_LINE><MASK><NEW_LINE>connection.setDoOutput(true);<NEW_LINE>connection.setDoInput(true);<NEW_LINE>connection.setRequestMethod("POST");<NEW_LINE>if (disableTM)<NEW_LINE>connection.setSSLSocketFactory(sslContext().getS... | File tmpFile = stowChunk.getTmpFile(); |
1,224,970 | final StopSuiteRunResult executeStopSuiteRun(StopSuiteRunRequest stopSuiteRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopSuiteRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
779,483 | final DescribeInputSecurityGroupResult executeDescribeInputSecurityGroup(DescribeInputSecurityGroupRequest describeInputSecurityGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeInputSecurityGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
58,332 | public void channelRead(ChannelHandlerContext ctx, Object msg) {<NEW_LINE>boolean release = true;<NEW_LINE>try {<NEW_LINE>if (msg instanceof FullHttpRequest && ((FullHttpRequest) msg).uri().equals(UPGRADE_CHANNEL_FOR_UI_WEB_SOCKET_URI)) {<NEW_LINE>upgradeChannel(ctx, (FullHttpRequest) msg);<NEW_LINE>ctx.channel().attr(... | (ctx, (WebSocketFrame) msg); |
315,755 | public void marshall(ControlInsightsMetadataByAssessmentItem controlInsightsMetadataByAssessmentItem, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (controlInsightsMetadataByAssessmentItem == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_... | e.getMessage(), e); |
1,572,229 | public MethodVisitor visitMethod(int access, String name, String desc, String[] signature, String[] exceptions) {<NEW_LINE>// class format (XYZ)R<NEW_LINE>// dex format RXYZ<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append(Modifier.toString(access));<NEW_LINE>builder.append(" " + ApkInspect... | add(builder.toString()); |
1,722,625 | public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>String specDir = String.valueOf(this.additionalProperties.get(SPEC_DIR));<NEW_LINE>if (!Files.isDirectory(Paths.get(specDir))) {<NEW_LINE>LOGGER.warn("base part for include markup lambda not found: {} as {}", specDir, Paths.get(specDir).toAbsolutePath()... | put("snippetinclude", this.includeSnippetMarkupLambda); |
831,279 | final UpdateStreamingImageResult executeUpdateStreamingImage(UpdateStreamingImageRequest updateStreamingImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStreamingImageRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Updat... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
638,429 | public static DescribeSecurityGroupAttributeResponse unmarshall(DescribeSecurityGroupAttributeResponse describeSecurityGroupAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSecurityGroupAttributeResponse.setRequestId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.RequestId"));<NEW_LINE>describe... | (_ctx.stringValue("DescribeSecurityGroupAttributeResponse.Description")); |
1,004,413 | protected boolean canPlace(BlockPlaceContext context, BlockState state) {<NEW_LINE>net.minecraft.world.entity.player.<MASK><NEW_LINE>CollisionContext iselectioncontext = playerentity == null ? CollisionContext.empty() : CollisionContext.of(playerentity);<NEW_LINE>boolean original = (!this.mustSurvive() || state.canSurv... | Player playerentity = context.getPlayer(); |
199,287 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>getSerializedSize();<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeUInt32(1, version_);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < transportIndex_.size(); i++) {<NEW_LINE>output.writeMes... | output.writeInt64(18, dateCreated_); |
1,075,194 | public Request<AttachSecurityProfileRequest> marshall(AttachSecurityProfileRequest attachSecurityProfileRequest) {<NEW_LINE>if (attachSecurityProfileRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(AttachSecurityProfileRequest)");<NEW_LINE>}<NEW_LINE>Request<AttachSecurit... | <AttachSecurityProfileRequest>(attachSecurityProfileRequest, "AWSIot"); |
1,005,285 | private void init() {<NEW_LINE>// Retrieve entire file and re-populate the list.<NEW_LINE>File snapshotFile = new File(filename);<NEW_LINE>if (!snapshotFile.exists()) {<NEW_LINE>snapshotFile<MASK><NEW_LINE>logger.info("Snapshot status file do not exist on system. Bypassing initilization phase.");<NEW_LINE>backupMetadat... | .getParentFile().mkdirs(); |
698,071 | public ListAuditMitigationActionsTasksResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAuditMitigationActionsTasksResult listAuditMitigationActionsTasksResult = new ListAuditMitigationActionsTasksResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
704,595 | final DeleteGroupResult executeDeleteGroup(DeleteGroupRequest deleteGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | endClientExecution(awsRequestMetrics, request, response); |
907,424 | public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>if (!COMPUTE_IF_ABSENT.matches(tree, state)) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>ExpressionTree mappingFunctionArg = tree.getArguments().get(1);<NEW_LINE>if (!(mappingFunctionArg instanceof MemberReferenceTree... | ExpressionTree expressionTree = memberReferenceTree.getQualifierExpression(); |
1,181,224 | private JComponent createStrategyPanel() {<NEW_LINE>final JPanel labelPanel = <MASK><NEW_LINE>labelPanel.setBackground(myTree.getBackground());<NEW_LINE>final LinkLabel<String> linkLabel = new LinkLabel<>("Edit all targets", null);<NEW_LINE>linkLabel.setBorder(new EmptyBorder(2, 2, 2, 2));<NEW_LINE>linkLabel.setListene... | new JPanel(new BorderLayout()); |
687,848 | protected boolean afterSave(boolean newRecord, boolean success) {<NEW_LINE>if (!success) {<NEW_LINE>return success;<NEW_LINE>}<NEW_LINE>if (newRecord) {<NEW_LINE>// Info<NEW_LINE>Services.get(IOrgDAO.class).createOrUpdateOrgInfo(OrgInfoUpdateRequest.builder().orgId(OrgId.ofRepoId(getAD_Org_ID())).build());<NEW_LINE>// ... | = Env.CTXNAME_AcctSchemaElementPrefix + X_C_AcctSchema_Element.ELEMENTTYPE_OrgTrx; |
197,444 | private static void resetParameters(Size size) {<NEW_LINE>Camera.Parameters cameraParams = _camera.getParameters();<NEW_LINE>int maxPreviewFrameRate = 0;<NEW_LINE>int bestPreviewFrameRate = 0;<NEW_LINE>int maxPreviewFpsRangeUpperBound = 0;<NEW_LINE>int[] bestPreviewFpsRange = null;<NEW_LINE>for (int format : cameraPara... | setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO); |
1,706,610 | private void gj_echelonize(final double[][] A) {<NEW_LINE>final int n = A.length;<NEW_LINE>final int <MASK><NEW_LINE>int i = 0;<NEW_LINE>int j = 0;<NEW_LINE>while (i < n && j < m) {<NEW_LINE>// look for a non-zero entry in col j at or below row i<NEW_LINE>int k = i;<NEW_LINE>while (k < n && A[k][j] == 0) {<NEW_LINE>k++... | m = A[0].length; |
818,108 | public void serializeTokens(List<ReplicaTokenInfo> tokenInfoList, OutputStream outputStream) throws IOException {<NEW_LINE>CrcOutputStream crcOutputStream = new CrcOutputStream(outputStream);<NEW_LINE>DataOutputStream writer = new DataOutputStream(crcOutputStream);<NEW_LINE>try {<NEW_LINE>// write the current version<N... | ).getBytes().length); |
338,304 | final UpdateRelationalDatabaseParametersResult executeUpdateRelationalDatabaseParameters(UpdateRelationalDatabaseParametersRequest updateRelationalDatabaseParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRelationalDatabaseParametersRequest);<NEW_LINE>AWSRequestMetrics awsRe... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
555,264 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,775,792 | static CachedHistogram createHistogram(RouterConfig routerConfig, boolean useDefaultReservoirParams) {<NEW_LINE>Reservoir reservoir;<NEW_LINE>long cacheTimeoutMs;<NEW_LINE>double quantile;<NEW_LINE>if (routerConfig != null) {<NEW_LINE>if (useDefaultReservoirParams) {<NEW_LINE>reservoir = new ExponentiallyDecayingReserv... | CachedHistogram(reservoir, cacheTimeoutMs, quantile); |
472,916 | private boolean qualifiedNameMatches(String fullyQualifiedName) {<NEW_LINE>String[] tuple = splitQualifierAndSimpleName(fullyQualifiedName);<NEW_LINE>String name = tuple[1], qualifier = tuple[0];<NEW_LINE>boolean match = unqualifiedNameMatches(name);<NEW_LINE>if (match) {<NEW_LINE>if (isCamelCase) {<NEW_LINE>match = Ch... | .length + namePattern.length + 1; |
918,792 | public void start() throws ConnectorCheckedException {<NEW_LINE>this.initializeTopic();<NEW_LINE>KafkaStatusChecker kafkaStatus = new KafkaStatusChecker();<NEW_LINE>boolean up = false;<NEW_LINE>if (consumerProperties.getProperty("bootstrap.servers").equals(producerProperties.getProperty("bootstrap.servers"))) {<NEW_LIN... | ) && kafkaStatus.waitForBrokers(consumerProperties); |
58,601 | @JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response deleteContentTypeFieldByVar(@PathParam("typeId") final String typeId, @PathParam("fieldVar") final String fieldVar, @Context final HttpServletRequest req) throws DotDataException, DotSecurityEx... | FieldAPI fapi = APILocator.getContentTypeFieldAPI(); |
248,236 | public ContainerResponse apply(final ContainerResponse responseContext) {<NEW_LINE>// we only need to compute and set the effective media type if:<NEW_LINE>// - it hasn't been set already, and<NEW_LINE>// - either there is an entity, or we are responding to a HEAD request<NEW_LINE>if (responseContext.getMediaType() == ... | ), methodSelector.selected, acceptableMediaTypes); |
440,012 | public MoveLine payMoveLine(Move paymentMove, int moveLineSeq, Partner payerPartner, MoveLine moveLineToPay, BigDecimal amountToPay, PayVoucherElementToPay payVoucherElementToPay, boolean isDebitToPay, LocalDate paymentDate) throws AxelorException {<NEW_LINE>String invoiceName = "";<NEW_LINE>if (moveLineToPay.getMove()... | moveLineToPay, moveLine, amountInCompanyCurrency, true); |
1,836,337 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Cards cards = new CardsImpl(controller.getLibrary()<MASK><NEW_LINE>boolean properCardFound = cards.count(filterPutInHand, game) > 0;<NEW_LINE>if (!cards.is... | .getTopCards(game, 5)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.