idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
148,720
private void index() throws IOException {<NEW_LINE>IndexWriter indexWriter = new IndexWriter(indexDir, new IndexWriterConfig(new WhitespaceAnalyzer()).setOpenMode(OpenMode.CREATE));<NEW_LINE>// Writes facet ords to a separate directory from the main index<NEW_LINE><MASK><NEW_LINE>Document doc = new Document();<NEW_LINE...
DirectoryTaxonomyWriter taxoWriter = new DirectoryTaxonomyWriter(taxoDir);
745,658
public static MNISTReader loadMNIST(String path, boolean training, int depth) {<NEW_LINE>File path2 = new File(path);<NEW_LINE>String imagesFilename;<NEW_LINE>String labelsFilename;<NEW_LINE>if (training) {<NEW_LINE>imagesFilename = "train-images-idx3-ubyte";<NEW_LINE>labelsFilename = "train-labels-idx1-ubyte";<NEW_LIN...
System.out.println("Please wait, downloading digits from: http://yann.lecun.com");
1,754,594
public boolean visit(TypeDeclaration node) {<NEW_LINE>handleAnnotations(node.modifiers(), this.options.alignment_for_annotations_on_type);<NEW_LINE>Type superclassType = node.getSuperclassType();<NEW_LINE>if (superclassType != null) {<NEW_LINE>this.wrapParentIndex = this.tm.lastIndexIn(node.getName(), -1);<NEW_LINE>thi...
.getName(), -1);
932,824
static <T extends Annotation> T buildAnnotation(Class<T> annotationClass, @Nullable AnnotationValue<T> annotationValue) {<NEW_LINE>Optional<Constructor<InvocationHandler>> proxyClass = getProxyClass(annotationClass);<NEW_LINE>if (proxyClass.isPresent()) {<NEW_LINE>Map<String, Object> values = new HashMap<>(getDefaultVa...
(T) instantiated.get();
1,459,868
public int compare(AcceptableMediaType o1, AcceptableMediaType o2) {<NEW_LINE>// FIXME what is going on here?<NEW_LINE>boolean q_o1_set = false;<NEW_LINE>int q_o1 = 0;<NEW_LINE>boolean q_o2_set = false;<NEW_LINE>int q_o2 = 0;<NEW_LINE>for (QualitySourceMediaType priorityType : priorityMediaTypes) {<NEW_LINE>if (!q_o1_s...
() - o1.getQuality();
1,108,623
public void spawnNewTracks() {<NEW_LINE>// mark detected features with no matches as available<NEW_LINE>DogArray_I32 unassociatedDetected = associate.getUnassociatedDestination();<NEW_LINE>// spawn new tracks for unassociated detected features<NEW_LINE>for (int unassociatedIdx = 0; unassociatedIdx < unassociatedDetecte...
detectorSetId = detectedSet.get(detectedIdx);
931,789
private Playlist parseTrackCharts(ScriptChartsResult chartsResult, String type) {<NEW_LINE>List<Query> queries = new ArrayList<>();<NEW_LINE>for (JsonObject rawTrack : chartsResult.results) {<NEW_LINE>JsonElement artist = rawTrack.get("artist");<NEW_LINE>JsonElement album = rawTrack.get("album");<NEW_LINE>JsonElement t...
, albumName, artistName, false));
325,450
private static void saveFile() throws CommandSyntaxException {<NEW_LINE>try {<NEW_LINE>NbtCompound rootTag = new NbtCompound();<NEW_LINE>NbtCompound compoundTag = new NbtCompound();<NEW_LINE>groups.forEach((key, value) -> {<NEW_LINE>NbtCompound group = new NbtCompound();<NEW_LINE>group.put("icon", value.getIcon().write...
"items", value.getItems());
33,587
private static int sendTime(CommandSourceStack cs, ServerLevel dim) throws CommandSyntaxException {<NEW_LINE>long[] times = cs.getServer().getTickTime(dim.dimension());<NEW_LINE>if (// Null means the world is unloaded. Not invalid. That's taken car of by DimensionArgument itself.<NEW_LINE>times == null)<NEW_LINE>times ...
min(1000.0 / worldTickTime, 20);
949,406
private static void runAllExperiments(int initialArrayLength, int experiments) {<NEW_LINE>int arrayLength = initialArrayLength;<NEW_LINE>StdOut.printf("%15s %17s %8s\n", "Sort Type", "Array Length", "Time");<NEW_LINE>StdOut.println("95% sorted and last percent random");<NEW_LINE>for (int experiment = 0; experiment < ex...
[] ninetyFivePercentSortedExceptEndingArray = generate95PercentSortedExceptEndingArray(arrayLength);
343,297
private static void sendData(ObjectNode data) throws Exception {<NEW_LINE>if (data == null) {<NEW_LINE>throw new IllegalArgumentException("Data cannot be null!");<NEW_LINE>}<NEW_LINE>HttpsURLConnection connection = (HttpsURLConnection) new URL(URL).openConnection();<NEW_LINE>// Compress the data to save bandwidth<NEW_L...
.getInputStream().close();
1,785,932
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>UUID cardId = this.getTargetPointer().getFirst(game, source);<NEW_LINE>Card card = controller.getGraveyard().get(cardId, game);<NEW_LINE>if (card != null) ...
game.addEffect(gainedEffect, gainAbility);
1,243,961
public ShareAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ShareAttributes shareAttributes = new ShareAttributes();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
1,011,846
public static ListCoursesResponse unmarshall(ListCoursesResponse listCoursesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCoursesResponse.setRequestId(_ctx.stringValue("ListCoursesResponse.RequestId"));<NEW_LINE>listCoursesResponse.setSuccess(_ctx.booleanValue("ListCoursesResponse.Success"));<NEW_LINE>listCoursesR...
("ListCoursesResponse.Data.List[" + i + "].CourseId"));
234,330
private static void walkCFG(final CFG cfg, LongRangeSet subRange, Map<Edge, Branch> edges, final BitSet reachedBlocks) {<NEW_LINE>class WalkState {<NEW_LINE><NEW_LINE>Set<Long> numbers;<NEW_LINE><NEW_LINE>BasicBlock target;<NEW_LINE><NEW_LINE>WalkState(Set<Long> numbers, BasicBlock target) {<NEW_LINE>reachedBlocks.set(...
<Long> numbers = walkState.numbers;
1,832,180
public void handle(Object obj, HttpRequest<?> request, MutableHttpResponse<?> response, ChannelHandlerContext context) {<NEW_LINE>NettyFileCustomizableResponseType type;<NEW_LINE>if (obj instanceof File) {<NEW_LINE>type = new NettySystemFileCustomizableResponseType((File) obj);<NEW_LINE>} else if (obj instanceof NettyF...
long ifModifiedSinceDateSeconds = ifModifiedSince.toEpochSecond();
502,450
private void processCDATA() throws IOException, JspCoreException {<NEW_LINE>boolean endFound = false;<NEW_LINE>StringBuffer cdataText = new StringBuffer();<NEW_LINE>int character = 0;<NEW_LINE>while (endFound == false) {<NEW_LINE>character = readCharacter();<NEW_LINE>switch(character) {<NEW_LINE>case -1:<NEW_LINE>{<NEW...
+ jspSyntaxLineNum + " Col: " + jspSyntaxColNum });
304,794
public static boolean isSelfAccess(final ExpressionTree tree) {<NEW_LINE>ExpressionTree tr = TreeUtils.withoutParens(tree);<NEW_LINE>// If method invocation check the method select<NEW_LINE>if (tr.getKind() == Tree.Kind.ARRAY_ACCESS) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (tree.getKind() == Tree.Kind.METHOD_IN...
IdentifierTree) tr).getName();
399,238
public void run() {<NEW_LINE>final List<ChangesCacheFile<MASK><NEW_LINE>final RefreshResultConsumer notifyConsumer = new RefreshResultConsumer() {<NEW_LINE><NEW_LINE>private VcsException myError = null;<NEW_LINE><NEW_LINE>private int myCount = 0;<NEW_LINE><NEW_LINE>private int totalChangesCount = 0;<NEW_LINE><NEW_LINE>...
> files = myCachesHolder.getAllCaches();
439,122
private void addJaxProviders() {<NEW_LINE>addSimpleComponent(com.yahoo.container.xml.providers.DatatypeFactoryProvider.class);<NEW_LINE>addSimpleComponent(com.yahoo.container.<MASK><NEW_LINE>addSimpleComponent(com.yahoo.container.xml.providers.SAXParserFactoryProvider.class);<NEW_LINE>addSimpleComponent(com.yahoo.conta...
xml.providers.DocumentBuilderFactoryProvider.class);
5,686
public void calculateResultCounts(XmlSuite xmlSuite, SuiteRunnerMap suiteRunnerMap) {<NEW_LINE>ISuite iSuite = suiteRunnerMap.get(xmlSuite);<NEW_LINE>if (iSuite == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, ISuiteResult> results = iSuite.getResults();<NEW_LINE>if (results == null) {<NEW_LINE>return;<NEW_L...
.getFailedButWithinSuccessPercentageTests().size();
1,608,362
public List<Graph> generate(List<? extends Summary> results) {<NEW_LINE>List<Graph> graphs = new ArrayList<>();<NEW_LINE>List<IOTaskSummary> summaries = results.stream().map(x -> (IOTaskSummary) x).collect(Collectors.toList());<NEW_LINE>if (summaries.isEmpty()) {<NEW_LINE>LOG.info("No summaries to generate.");<NEW_LINE...
writeSpeed = new BarGraph.Data();
465,426
private static TimeSeriesCollection createTimeSeriesDataset() {<NEW_LINE>// TimeSeries series1 = new TimeSeries("Series 1", Day.class);<NEW_LINE>// series1.add(new Day(1, 1, 2003), 54.3);<NEW_LINE>// series1.add(new Day(2, 1, 2003), 20.3);<NEW_LINE>// series1.add(new Day(3, 1, 2003), 43.4);<NEW_LINE>// series1.add(new ...
new Year(1986), 18);
973,350
private void copyAvg(int[] src, int[] dst, int width, int height) {<NEW_LINE>int offSrc = 0, offDst = 0;<NEW_LINE>for (int y = 0; y < (height >> 1); y++) {<NEW_LINE>for (int x = 0; x < width; x += 2, offDst++, offSrc += 2) {<NEW_LINE>int a = ((src[offSrc] - 128) * Y_COEFF >> 13) + 128;<NEW_LINE>int b = ((src[offSrc + 1...
+ d + 2) >> 2;
1,322,699
public static void signedMul(final long offset, final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions, final OperandSize firstOperandSize, final String firstOperand, final OperandSize secondOperandSize, final String secondOperand, final OperandSize resultOpe...
, multResult, resultOperandSize, xoredResult));
1,493,487
public void init(ServletConfig config) throws ServletException {<NEW_LINE>super.init(config);<NEW_LINE>// load properties<NEW_LINE>Properties props = loadPropertiesFromClassPath("duke.properties");<NEW_LINE>if (props == null)<NEW_LINE>throw new DukeException("Cannot find 'duke.properties' on classpath");<NEW_LINE>check...
DukeTimer) ObjectUtils.instantiate(val);
1,723,608
private void stateChangedImpl(List<FileObject> currentFiles) {<NEW_LINE>LOG.log(Level.FINEST, BEFORE_ADDING_REMOVING_TASKS);<NEW_LINE>synchronized (this.filesLock) {<NEW_LINE>List<FileObject> addedFiles = new ArrayList<FileObject>(currentFiles);<NEW_LINE>List<FileObject> removedFiles = new ArrayList<FileObject>(file2Ta...
source = file2JS.remove(r);
1,091,805
public void buildErrorCodeDoc(ApiConfig config, JavaProjectBuilder javaProjectBuilder, List<ApiDoc> apiDocList, String template, String outPutFileName, String indexAlias) {<NEW_LINE>List<ApiErrorCode> errorCodeList = DocUtil.errorCodeDictToList(config);<NEW_LINE>String strTime = DateTimeUtil.long2Str(now, DateTimeUtil....
getOutPath() + FILE_SEPARATOR + outPutFileName);
871,245
protected static boolean checkIfBlockBreaksSigns(final Block block) {<NEW_LINE>final Block sign = block.getRelative(BlockFace.UP);<NEW_LINE>if (MaterialUtil.isSignPost(sign.getType()) && isValidSign(new BlockSign(sign))) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final BlockFace[] directions = new BlockFace[] { BlockF...
signBlock = block.getRelative(blockFace);
1,807,396
final DeleteHealthCheckResult executeDeleteHealthCheck(DeleteHealthCheckRequest deleteHealthCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteHealthCheckRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
DeleteHealthCheckResult>(new DeleteHealthCheckResultStaxUnmarshaller());
1,260,512
void addHistoryItem(@NonNull WikivoyageSearchHistoryItem item) {<NEW_LINE>String <MASK><NEW_LINE>if (travelBook == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SQLiteConnection conn = openConnection(false);<NEW_LINE>if (conn != null) {<NEW_LINE>try {<NEW_LINE>conn.execSQL("INSERT INTO " + HISTORY_TABLE_NAME + "(" + HIS...
travelBook = item.getTravelBook(context);
861,454
public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>if (fakePlayer == null || !tracer.isChecked())<NEW_LINE>return;<NEW_LINE>// GL settings<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(<MASK><NEW_LINE>GL11.glEnable(GL11.GL_LINE_SMOOTH);<NEW_LINE>GL11.glDisable(GL11.GL_DEPTH_...
GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
7,789
private void addToWindowsSystemPath(File fLibsFolder) {<NEW_LINE>String syspath = SysJNA.WinKernel32.getEnvironmentVariable("PATH");<NEW_LINE>if (syspath == null) {<NEW_LINE>terminate(1, "addToWindowsSystemPath: cannot access system path");<NEW_LINE>} else {<NEW_LINE>String libsPath = (fLibsFolder.getAbsolutePath()).re...
(-1, "addToWindowsSystemPath: adding to system path did not work:\n%s", syspath);
1,250,802
static PersistentQueryMetadata findMaterializingQuery(final EngineContext engineContext, final ImmutableAnalysis analysis) {<NEW_LINE>final DataSource source = analysis.getFrom().getDataSource();<NEW_LINE>final SourceName sourceName = source.getName();<NEW_LINE>final Set<QueryId> queries = engineContext.getQueryRegistr...
) + " " + PullQueryValidator.PULL_QUERY_SYNTAX_HELP);
1,783,377
private static void migrate_config(File oldConfig, File newConfig) throws IOException {<NEW_LINE>System.out.println("Migrating old configuration...");<NEW_LINE>for (String line : Files.readAllLines(oldConfig.toPath())) {<NEW_LINE>if (line.startsWith("#"))<NEW_LINE>continue;<NEW_LINE>if (line.indexOf('=') != -1) {<NEW_L...
ALT_CHAT = Boolean.valueOf(val);
1,075,928
public String changeSessionId() {<NEW_LINE>String oldId = delegate.getId();<NEW_LINE>String id = delegate.changeSessionId();<NEW_LINE>RBatch batch = redisson.createBatch(BatchOptions.defaults());<NEW_LINE>batch.getBucket(getExpiredKey(oldId)).remainTimeToLiveAsync();<NEW_LINE>batch.getBucket(getExpiredKey(oldId)).delet...
getCodec()).readAllMapAsync();
532,011
Stateful doConvertDateTime(VirtualFrame frame, Object state, UnresolvedSymbol symbol, Object self, Object[] arguments, @CachedLibrary(limit = "10") TypesLibrary types, @CachedLibrary(limit = "10") InteropLibrary interop, @Cached MethodResolverNode methodResolverNode) {<NEW_LINE>var ctx = Context.get(this);<NEW_LINE>try...
).dateTime(), symbol);
461,625
public static ClassTree addMethod(WorkingCopy copy, ClassTree tree, Modifier[] modifiers, String[] annotations, Object[] annotationAttrs, String name, Object returnType, String[] parameters, Object[] paramTypes, Object[] paramAnnotationsArray, Object[] paramAnnotationAttrsArray, String bodyText, String comment) {<NEW_L...
emptyList(), bodyText, null);
1,001,691
public void processMessageResult() {<NEW_LINE>List<SyncUrl> syncUrlList = mWebServiceDataSource.get(SyncUrl.Status.ENABLED);<NEW_LINE>for (SyncUrl syncUrl : syncUrlList) {<NEW_LINE>MessagesUUIDSResponse response = sendMessageResultGETRequest(syncUrl);<NEW_LINE>if ((response != null) && (response.isSuccess()) && (respon...
setDeliveryResultCode(message.getDeliveryResultCode());
689,177
private I_C_Invoice_Candidate createCandidateForOrderLine(final I_C_OrderLine orderLine) {<NEW_LINE>final Properties ctx = InterfaceWrapperHelper.getCtx(orderLine);<NEW_LINE>final String trxName = InterfaceWrapperHelper.getTrxName(orderLine);<NEW_LINE>Check.assume(Env.getAD_Client_ID(ctx) == orderLine.getAD_Client_ID()...
setEMail(order.getEMail());
1,769,710
public View initView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View view = getActivity().getLayoutInflater().inflate(R.layout.dash_common_fragment, container, false);<NEW_LINE>TextView header = (TextView) view.findViewById(R.id.fav_text);<NEW_LINE>header.set...
).setVisibility(View.GONE);
242,602
private static void upgradeInternal(Document document) throws ConfigurationException {<NEW_LINE>Element top = document.getDocumentElement();<NEW_LINE>if (!top.getNodeName().equals("esper-configuration")) {<NEW_LINE>throw new ConfigurationException("Expected root node 'esper-configuration'");<NEW_LINE>}<NEW_LINE>trimWhi...
moveNodes("plugin-pattern-observer", top, compiler);
659,415
void showSummary() {<NEW_LINE>addLabel(getString("Host"));<NEW_LINE>final JLabel hostLabel = new JLabel(javaInformations.getHost());<NEW_LINE>hostLabel.setFont(hostLabel.getFont().deriveFont(Font.BOLD));<NEW_LINE>addJLabel(hostLabel);<NEW_LINE>final MemoryInformations memoryInformations = javaInformations.getMemoryInfo...
int usedConnectionCount = javaInformations.getUsedConnectionCount();
1,038,790
public MergingContext toRootId(String rootId, Set<ComparisonCondition> comparisonConditions, Set<String> allowedParameters) {<NEW_LINE>Set<String> localSeenModels = new HashSet<>(this.seenModels);<NEW_LINE>localSeenModels.add(rootId);<NEW_LINE>Map<String, ComparisonCondition> globalComparisonConditions = copyMap(this.g...
Collections.singletonList(rootId)));
522,112
public static int NFD_OpenDialog(@Nullable @NativeType("nfdchar_t const *") CharSequence filterList, @Nullable @NativeType("nfdchar_t const *") CharSequence defaultPath, @NativeType("nfdchar_t **") PointerBuffer outPath) {<NEW_LINE>if (CHECKS) {<NEW_LINE>check(outPath, 1);<NEW_LINE>}<NEW_LINE>MemoryStack stack = stackG...
? NULL : stack.getPointerAddress();
488,138
public static JReleaserModel loadConfig(Path configFile) {<NEW_LINE>ServiceLoader<JReleaserConfigParser> parsers = ServiceLoader.load(JReleaserConfigParser.class, <MASK><NEW_LINE>for (JReleaserConfigParser parser : parsers) {<NEW_LINE>if (parser.supports(configFile)) {<NEW_LINE>try {<NEW_LINE>parser.validate(configFile...
JReleaserConfigParser.class.getClassLoader());
469,694
private static boolean isWordInWordSearchInner(char[][] wordSearch, String word, int x, int y) {<NEW_LINE>if (word.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>} else {<NEW_LINE>boolean firstLetter = matches(wordSearch, x, y, word.charAt(0));<NEW_LINE>if (firstLetter) {<NEW_LINE>boolean left = isWordInWordSearchInner(wo...
x + 1, y + 1);
673,013
private String formatAttributeValue(Object attributeValue) {<NEW_LINE>try {<NEW_LINE>if (attributeValue instanceof List) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append('[');<NEW_LINE>boolean first = true;<NEW_LINE>for (final Object value : (List<?>) attributeValue) {<NEW_LINE>if (first) {<N...
Object v = e.getValue();
767,809
public final CommandOutputExpressionWithExpressionSubstitution commandOutputWithExpressionSubstituation(AST _t) throws RecognitionException {<NEW_LINE>CommandOutputExpressionWithExpressionSubstitution e;<NEW_LINE>AST commandOutputWithExpressionSubstituation_AST_in = (_t == ASTNULL<MASK><NEW_LINE>AST b = null;<NEW_LINE>...
) ? null : (AST) _t;
1,786,120
public okhttp3.Call readNamespaceStatusCall(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 = "/api/v1/namespaces/{name}/status".replaceAll("\\{" + "name" + "\\}", localVarApiCl...
= new ArrayList<Pair>();
1,274,723
public Parent createContent() {<NEW_LINE>final Pane root = new Pane();<NEW_LINE>root.setPrefSize(245, 100);<NEW_LINE>root.setMinSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>root.setMaxSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>// create rectangle<NEW_LINE>Rectangle rect = new Rectangle(-25, -25, 5...
rect, translate1, pause, translate2);
1,106,643
final ListContactFlowsResult executeListContactFlows(ListContactFlowsRequest listContactFlowsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listContactFlowsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
686,266
public Observable<ServiceResponse<PersistedFace>> addFaceFromStreamWithServiceResponseAsync(String faceListId, byte[] image, String userData, List<Integer> targetFace) {<NEW_LINE>if (this.client.azureRegion() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and can...
this.client.azureRegion());
438,338
public void afterPropertiesSet() throws ParseException {<NEW_LINE>Assert.notNull(this.cronExpression, "Property 'cronExpression' is required");<NEW_LINE>if (this.name == null) {<NEW_LINE>this.name = this.beanName;<NEW_LINE>}<NEW_LINE>if (this.group == null) {<NEW_LINE>this.group = Scheduler.DEFAULT_GROUP;<NEW_LINE>}<NE...
.timeZone = TimeZone.getDefault();
758,435
final DeleteBackupResult executeDeleteBackup(DeleteBackupRequest deleteBackupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBackupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
74,760
protected void storeTo(Device device, JsonWriter writer) {<NEW_LINE>ImageReaderExtension ext = device.getDeviceExtension(ImageReaderExtension.class);<NEW_LINE>if (ext == null)<NEW_LINE>return;<NEW_LINE>writer.writeStartArray("dcmImageReader");<NEW_LINE>for (Map.Entry<String, ImageReaderFactory.ImageReaderParam> entry :...
String tsuid = entry.getKey();
1,626,357
void handleBlockingSubQuery() {<NEW_LINE>if (node.getSubQueries().size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ReentrantLock lock = new ReentrantLock();<NEW_LINE>final Condition finishSubQuery = lock.newCondition();<NEW_LINE>final AtomicBoolean finished = new AtomicBoolean(false);<NEW_LINE>final AtomicInte...
itemSubQuery.getPlanNode(), tempHandler);
469,442
public Connection connect(JdbcConfiguration config) throws SQLException {<NEW_LINE>final int connectRetryTimes = sourceConfig.getConnectMaxRetries();<NEW_LINE>final ConnectionPoolId connectionPoolId = new ConnectionPoolId(sourceConfig.getHostname(), sourceConfig.getPort());<NEW_LINE>HikariDataSource dataSource = JdbcCo...
warn("Get connection failed, retry times {}", i + 1);
895,675
public static void removeImplClass(Project project, String implClass) {<NEW_LINE>Sources sources = project.getLookup().lookup(Sources.class);<NEW_LINE>// NOI18N<NEW_LINE>String resource = implClass.replace('.', '/') + ".java";<NEW_LINE>if (sources != null) {<NEW_LINE>SourceGroup[] srcGroup = <MASK><NEW_LINE>for (int i ...
sources.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);
1,467,575
public synchronized void start() {<NEW_LINE>if (running) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOGGER.info("{}Starting server", getTag());<NEW_LINE>if (executor == null) {<NEW_LINE>// sets the central thread pool for the protocol stage over all<NEW_LINE>// endpoints<NEW_LINE>//<NEW_LINE>setExecutors(//<NEW_LINE>Execut...
config.get(CoapConfig.COAP_PORT);
670,031
public <C, B> Mono<Flux<Message<C, B>>> receiveLater(Iterable<? extends Topic> topics, SerializationPair<C> channelSerializer, SerializationPair<B> messageSerializer) {<NEW_LINE>Assert.notNull(topics, "Topics must not be null!");<NEW_LINE>Assert.notNull(channelSerializer, "Channel serializer must not be null!");<NEW_LI...
getTargets(topics, ChannelTopic.class);
1,044,013
/*<NEW_LINE>* Compute an 8-byte hash of a byte array of length greater than 64 bytes.<NEW_LINE>*/<NEW_LINE>private static long fullFingerprint(byte[] bytes, int offset, int length) {<NEW_LINE>// For lengths over 64 bytes we hash the end first, and then as we<NEW_LINE>// loop we keep 56 bytes of state: v, w, x, y, and z...
+ w[0], v);
1,211,358
public AssociateFileSystemResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociateFileSystemResult associateFileSystemResult = new AssociateFileSystemResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
228,260
private double[] computeScoreNumDenom(INDArray labels, INDArray preOutput, IActivation activationFn, INDArray mask, boolean average) {<NEW_LINE>INDArray output = activationFn.getActivation(preOutput.dup(), true);<NEW_LINE>long n = labels.size(1);<NEW_LINE>if (n != 1 && n != 2) {<NEW_LINE>throw new UnsupportedOperationE...
isPositiveLabel = isPositiveLabel.mulColumnVector(mask);
630,114
private static void validateFieldValue(SameCountryValidator vatValidator, Errors errors, String prefixForLambda, TicketFieldConfiguration fieldConf, List<String> values, int i) {<NEW_LINE>String formValue = values.get(i);<NEW_LINE>if (fieldConf.isMaxLengthDefined()) {<NEW_LINE>validateMaxLength(formValue, prefixForLamb...
fieldConf.getMaxLength(), errors);
918,433
private IEditorPart createUntitledFile(String editorType, String fileExtension, InputStream initialContent) {<NEW_LINE>FileOutputStream output = null;<NEW_LINE>try {<NEW_LINE>File file = // $NON-NLS-1$<NEW_LINE>File.// $NON-NLS-1$<NEW_LINE>createTempFile(// $NON-NLS-1$<NEW_LINE>Messages.NewUntitledFileTemplateMenuContr...
countByFileType.put(editorType, 1);
249,848
private Array createArrayOf(Object implObject, Method createArrayOf, Object[] args) throws SQLException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "createArrayOf", args[0]);<NEW_LINE>Array ra;<NEW_LINE>try {<NEW_L...
AdapterUtil.notSupportedX("Connection.createArrayOf", methError);
614,987
protected void updateContent() {<NEW_LINE>view.getViewTreeObserver().addOnScrollChangedListener(() -> {<NEW_LINE>boolean bottomScrollAvailable = view.canScrollVertically(1);<NEW_LINE>if (bottomScrollAvailable) {<NEW_LINE>target.showShadowButton();<NEW_LINE>} else {<NEW_LINE>target.hideShadowButton();<NEW_LINE>}<NEW_LIN...
GPXRouteParamsBuilder rparams = routingHelper.getCurrentGPXRoute();
1,850,060
protected JRTemplateGenericPrintElement createGenericPrintElement() {<NEW_LINE>JRComponentElement element = fillContext.getComponentElement();<NEW_LINE>JRTemplateGenericElement template = new JRTemplateGenericElement(fillContext.getElementOrigin(), fillContext.getDefaultStyleProvider(), fillContext.getComponentElement(...
setY(fillContext.getElementPrintY());
1,644,141
public void marshall(CreateActivationRequest createActivationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createActivationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createActivatio...
createActivationRequest.getRegistrationLimit(), REGISTRATIONLIMIT_BINDING);
1,217,602
private void loadNode1114() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_BuildInfo, new QualifiedName(0, "BuildInfo"), new LocalizedText("en", "BuildInfo"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInte...
(1), 0.0, false);
119,734
private List<FileObject> jdbcDriversToDeploy(Set<Datasource> datasources) {<NEW_LINE>List<FileObject> jdbcDriverFiles = new ArrayList<FileObject>();<NEW_LINE>Collection<MASK><NEW_LINE>for (Datasource datasource : datasources) {<NEW_LINE>String className = datasource.getDriverClassName();<NEW_LINE>boolean exists = false...
<File> driverCP = getJDBCDriverClasspath();
724,430
public ProcessInstanceResult startProcess(@NonNull final ProcessExecutionContext context) {<NEW_LINE>assertNotExecuted();<NEW_LINE>//<NEW_LINE>// Validate parameters, if any<NEW_LINE>if (parametersDocument != null) {<NEW_LINE>final <MASK><NEW_LINE>if (!validStatus.isValid()) {<NEW_LINE>throw new AdempiereException(vali...
DocumentValidStatus validStatus = parametersDocument.checkAndGetValidStatus();
64,296
public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println("Enter Size of Queue.");<NEW_LINE>int size = sc.nextInt();<NEW_LINE>Queue q = new Queue(size);<NEW_LINE>boolean flag = true;<NEW_LINE>int val = 0;<NEW_LINE>while (flag) {<NEW_LINE>System.out.println("1. En...
System.out.println("3. Current Size of Queue");
1,025,627
public void render(@Nonnull RevolvershotEntity entity, float entityYaw, float partialTicks, PoseStack matrixStackIn, MultiBufferSource bufferIn, int packedLightIn) {<NEW_LINE>matrixStackIn.pushPose();<NEW_LINE>VertexConsumer builder = bufferIn.getBuffer(IERenderTypes.getPositionTex(getTextureLocation(entity)));<NEW_LIN...
.last().pose();
333,622
private String createMethodName(String fullName, String prefix, String shortName) {<NEW_LINE>HashMap methodNumbers = (HashMap) persistentData.get("methodNumbers");<NEW_LINE>if (methodNumbers == null) {<NEW_LINE>methodNumbers = new HashMap();<NEW_LINE>persistentData.put("methodNumbers", methodNumbers);<NEW_LINE>}<NEW_LI...
replace(prefix, '.', "$2");
1,695,032
private static Map<AirbyteStreamNameNamespacePair, CursorInfo> createCursorInfoMap(final DbState serialized, final ConfiguredAirbyteCatalog catalog) {<NEW_LINE>final Set<AirbyteStreamNameNamespacePair> allStreamNames = catalog.getStreams().stream().map(ConfiguredAirbyteStream::getStream).map(AirbyteStreamNameNamespaceP...
(pairToConfiguredAirbyteStream.get(pair));
493,912
public void applyChanges() {<NEW_LINE>if (security == null)<NEW_LINE>throw new UnsupportedOperationException(Messages.MsgMissingSecurity);<NEW_LINE>if (sourcePortfolio == null)<NEW_LINE>throw new UnsupportedOperationException(Messages.MsgPortfolioFromMissing);<NEW_LINE>if (targetPortfolio == null)<NEW_LINE><MASK><NEW_L...
throw new UnsupportedOperationException(Messages.MsgPortfolioToMissing);
1,248,134
private //<NEW_LINE>void writeKeyEvent(int keysym, boolean down) {<NEW_LINE>if (viewOnly)<NEW_LINE>return;<NEW_LINE>GeneralUtils.debugLog(this.debugLogging, TAG, <MASK><NEW_LINE>eventBuf[eventBufLen++] = (byte) KeyboardEvent;<NEW_LINE>eventBuf[eventBufLen++] = (byte) (down ? 1 : 0);<NEW_LINE>eventBuf[eventBufLen++] = (...
"writeKeyEvent, sending keysym:" + keysym + ", down: " + down);
862,824
public Builder mergeRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.proto.V1.NodeSelector value) {<NEW_LINE>if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001) && requiredDuringSchedulingIgnoredDuringExecution_ != null && requi...
mergeFrom(value).buildPartial();
1,173,792
public IStatus uninstall(String packageName, String displayName, boolean global, char[] password, IPath workingDirectory, IProgressMonitor monitor) throws CoreException {<NEW_LINE>try {<NEW_LINE>IStatus status = runNpmInstaller(packageName, displayName, global, <MASK><NEW_LINE>if (status.getSeverity() == IStatus.CANCEL...
password, workingDirectory, REMOVE, monitor);
1,333,378
public AnalyticsMetadataType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AnalyticsMetadataType analyticsMetadataType = new AnalyticsMetadataType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
1,091,009
public static void updateLanguage(CommandSourceStack source) {<NEW_LINE>if (CarpetSettings.language.equalsIgnoreCase("none")) {<NEW_LINE>translationMap = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, String> translations = new HashMap<>();<NEW_LINE>Map<String, String> trans = getTranslationFromResourcePath(Str...
ext.canHasTranslations(CarpetSettings.language);
1,376,422
public final Value withOverrides(Value overrides) {<NEW_LINE>if ((overrides == null) || (overrides == EMPTY) || (overrides == this)) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (this == EMPTY) {<NEW_LINE>// cheesy, but probably common enough<NEW_LINE>return overrides;<NEW_LINE>}<NEW_LINE>String p = overrides._patter...
tzStr, tz, f, lenient);
860,278
public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JSONObject result = new JSONObject(true);<NEW_LINE>result.put("accepted", false);<NEW_LINE>result.put("message", "Error: Unable to reset Password");<...
DAO.getConfig("users.password.regex", "^((?=.*\\d)(?=.*[A-Z])(?=.*\\W).{8,64})$");
64,967
private CompletableFuture<?> triggerDeferredExecutions() {<NEW_LINE>switch(deferredExecutionsByStmt.size()) {<NEW_LINE>case 0:<NEW_LINE>LOGGER.debug("method=sync deferredExecutions=0");<NEW_LINE>return CompletableFuture.completedFuture(null);<NEW_LINE>case 1:<NEW_LINE>{<NEW_LINE>var entry = deferredExecutionsByStmt.ent...
-> exec(statement, deferredExecutions));
943,789
private Mono<Response<Void>> deleteWithResponseAsync(String resourceUri, String recommendationId, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<...
this.client.mergeContext(context);
1,808,619
void save(IGanttProject project, TransformerHandler handler) throws SAXException {<NEW_LINE>AttributesImpl attrs = new AttributesImpl();<NEW_LINE>addAttribute("base-id", project.getActiveCalendar().getBaseCalendarID(), attrs);<NEW_LINE>startElement("calendars", attrs, handler);<NEW_LINE><MASK><NEW_LINE>addAttribute("id...
startElement("day-types", attrs, handler);
1,136,881
public SService convertToSObject(Service input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SService result = new SService();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid(input.getRid());<NEW_LINE>result.setName(input.getName());<...
InternalServicePluginConfiguration internalServiceVal = input.getInternalService();
1,131,597
public static String toLowerCase(Locale locale, String s, char[] value, int offset, int count) {<NEW_LINE>char[] newValue = null;<NEW_LINE>int newCount = 0;<NEW_LINE>for (int i = offset, end = offset + count; i < end; ++i) {<NEW_LINE>char ch = value[i];<NEW_LINE>char newCh;<NEW_LINE>if (ch == LATIN_CAPITAL_I_WITH_DOT |...
offset, newValue, 0, newCount);
1,220,536
public void marshall(Experiment experiment, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (experiment == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(experiment.getId(), ID_BINDING);<NEW_LINE>protocolMars...
experiment.getTags(), TAGS_BINDING);
998,278
public boolean pushMsg(Msg msg) {<NEW_LINE>switch(state) {<NEW_LINE>case GROUP:<NEW_LINE>if (!msg.hasMore()) {<NEW_LINE>errno.set(ZError.EFAULT);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (msg.size() > Msg.MAX_GROUP_LENGTH) {<NEW_LINE>errno.set(ZError.EFAULT);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>group = new ...
rc = super.pushMsg(msg);
121,780
public void configure(Binder binder) {<NEW_LINE>// Instantiate eagerly so that we get everything registered and put into the Lifecycle as early as possible<NEW_LINE>// Lifecycle scope is INIT to ensure stop runs in the last phase of lifecycle stop.<NEW_LINE>try {<NEW_LINE>ClassLoader loader = Thread.currentThread().get...
Log4jContextFactory) contextFactory).getShutdownCallbackRegistry();
1,685,427
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.messaging.security.beans.Permission#addUsersAndGroupsToAllActions(java.util.Set, java.util.Set)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void addUsersAndGroupsToAllActions(Set<String> users, Set<String> groups) {<NEW_LINE>Set<String> tempUsers = ne...
addAllUsersToRole(tempUsers, MessagingSecurityConstants.OPERATION_TYPE_RECEIVE);
718,238
// ================================== Edit Tab Functions =======================================<NEW_LINE>// Starting up MTV, or user clicked Create New Event from edit menu<NEW_LINE>@Action<NEW_LINE>public void edit_new_event() {<NEW_LINE>if (edit_not_saved) {<NEW_LINE>Object[] options = { "Yes, Forget current edits!"...
, "", "", ""));
908,421
private void initEnterpriseApplications() {<NEW_LINE>// TODO: AB: add to bundle<NEW_LINE>jComboBoxEnterprise.addItem(NbBundle.getMessage(ProjectServerPanel.class, "LBL_NWP1_AddToEnterprise_None"));<NEW_LINE>jComboBoxEnterprise.setSelectedIndex(0);<NEW_LINE>Project[] allProjects = OpenProjects.getDefault().getOpenProjec...
.getInformation(allProjects[i]);
726,639
public Future<Integer> show(@NullAllowed PhpModule phpModule, String name, final OutputProcessor<String> outputProcessor) {<NEW_LINE>PhpExecutable composer = getComposerExecutable(phpModule, false);<NEW_LINE>if (composer == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// params<NEW_LINE>List<String> defaultParams ...
String chunk = new String(chars);
1,379,396
public String treeString() {<NEW_LINE>Function<Object, String> toString = obj -> {<NEW_LINE>if (obj instanceof Group) {<NEW_LINE>return obj.toString();<NEW_LINE>} else if (obj instanceof GroupExpression) {<NEW_LINE>return ((GroupExpression) obj).getPlan().toString();<NEW_LINE>} else if (obj instanceof Pair) {<NEW_LINE>...
obj).first.toString();
981,864
public static Socket createSocket(String host, int port) throws HostUnreachableException {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>Socket sock = new Socket();<NEW_LINE>sock.setSoTimeout(Config.getInstance().getNetworkTimeout() * 1000);<NEW_LINE>sock.setTcpNoDelay(true);<NEW_LINE>if (config.getTcpWindowSize() > 0) {<NEW...
Config config = Config.getInstance();
1,646,651
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String applicationFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_L...
setFileName(file.getFileName());