idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
260,077
private InputStream resolveFromClassPath(String systemId) throws IOException, URISyntaxException {<NEW_LINE>InputStream source;<NEW_LINE>String xsdPath;<NEW_LINE>URI uri = new URI(systemId);<NEW_LINE>if (uri.getScheme().equalsIgnoreCase("file")) {<NEW_LINE>xsdPath = uri.toString();<NEW_LINE>} else {<NEW_LINE>xsdPath = ...
url = localClassLoader.getResource(xsdPath);
420,554
protected static List<String> splitString(final String s) {<NEW_LINE>List<String> ret = new ArrayList<String>();<NEW_LINE>int len = s.length();<NEW_LINE>boolean quoted = false;<NEW_LINE>int start = 0;<NEW_LINE>char prev = ' ';<NEW_LINE>char c = ' ';<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE><MASK><NEW_LINE>// N...
c = s.charAt(i);
1,436,071
private static Map<String, List<String>> parseMetadata(final JsonParser parser) throws IOException {<NEW_LINE>final Map<String, List<String>> metadata = new HashMap<>();<NEW_LINE>final String currentFieldName = parser.getCurrentName();<NEW_LINE>JsonToken token = parser.currentToken();<NEW_LINE>if (token == JsonToken.VA...
values = new ArrayList<>();
1,006,851
private static CacheValue buildCacheValue(Key key) {<NEW_LINE>MethodDescriptor selfCall = null;<NEW_LINE>ImmutableMap.Builder<String, MethodDescriptor> methods = ImmutableMap.builder();<NEW_LINE>Map<String, MethodDescriptor> fields = new HashMap<>();<NEW_LINE>// Sort methods by Java name, for determinism.<NEW_LINE>Meth...
callable = StarlarkAnnotations.getStarlarkMethod(method);
566,609
@TriggerPatterns({ @TriggerPattern("$modifiers$ <$typeParams$> $returnType $name($args$) throws $thrown1, $thrown2$ { $body$; }"), @TriggerPattern("$modifiers$ <$typeParams$> $name($args$) throws $thrown1, $thrown2$ { $body$; }") })<NEW_LINE>public static ErrorDescription tooManyExceptions(HintContext ctx) {<NEW_LINE>T...
.toString(), count));
271,266
private static String parseRating(String ratingStyle) {<NEW_LINE>Matcher <MASK><NEW_LINE>int num1 = Integer.MIN_VALUE;<NEW_LINE>int num2 = Integer.MIN_VALUE;<NEW_LINE>int rate = 5;<NEW_LINE>String re;<NEW_LINE>if (m.find()) {<NEW_LINE>num1 = ParserUtils.parseInt(m.group().replace("px", ""), Integer.MIN_VALUE);<NEW_LINE...
m = PATTERN_RATING.matcher(ratingStyle);
1,194,499
public void jsConstructor(final String type, final ScriptableObject details) {<NEW_LINE>super.jsConstructor(ScriptRuntime.toString(type), details);<NEW_LINE>if (details != null && !Undefined.isUndefined(details)) {<NEW_LINE>final Object screenX = details.get("screenX", details);<NEW_LINE>if (NOT_FOUND != screenX) {<NEW...
screenY_ = ScriptRuntime.toInt32(screenY);
172,085
private ResultStream aggregate(final LogState state) throws FrameworkException {<NEW_LINE>// sort entries before aggregation<NEW_LINE>state.sortEntries();<NEW_LINE>final long startTimestamp = state.beginTimestamp();<NEW_LINE>final long endTimestamp = state.endTimestamp();<NEW_LINE>final GraphObjectMap result = new Grap...
findInterval(state.aggregate());
652,282
public void detachHook(String clusterUuid, final Completion completion) {<NEW_LINE>SimpleQuery<HostVO> q = dbf.createQuery(HostVO.class);<NEW_LINE>q.select(HostVO_.uuid);<NEW_LINE>q.add(HostVO_.<MASK><NEW_LINE>final List<String> hostUuids = q.listValue();<NEW_LINE>if (hostUuids.isEmpty()) {<NEW_LINE>completion.success(...
clusterUuid, Op.EQ, clusterUuid);
1,641,492
public void handleEvent(Event event) {<NEW_LINE>String msg = MessageText.getString("UpdateProperty.list.message", new String[] { tp.getName(true) });<NEW_LINE>SimpleTextEntryWindow entryWindow = new SimpleTextEntryWindow("UpdateProperty.title", "!" + msg + "!");<NEW_LINE>entryWindow.setPreenteredText(f_def_str, false);...
vals = new ArrayList<>();
1,079,181
private static CompletionItem createCompletion(ConfigurationAttributes configAttrs) {<NEW_LINE>// NOI18N<NEW_LINE>CompletionItem ci = new CompletionItem("Java 8+: " + configAttrs.getName());<NEW_LINE>StringWriter sw = new StringWriter();<NEW_LINE>try (JsonWriter w = new JsonWriter(sw)) {<NEW_LINE>// NOI18N<NEW_LINE>w.s...
getName())) + "}\"");
1,337,759
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String workId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>if (!b...
.getSplitTokenList(), ","));
1,796,391
final GetSegmentVersionsResult executeGetSegmentVersions(GetSegmentVersionsRequest getSegmentVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSegmentVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
1,332,907
final GetCanaryRunsResult executeGetCanaryRuns(GetCanaryRunsRequest getCanaryRunsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCanaryRunsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetCanaryRuns");
1,442,826
public Set<QueryableEntry> filter(QueryContext queryContext) {<NEW_LINE>List<Set<QueryableEntry>> indexedResults = new LinkedList<MASK><NEW_LINE>for (Predicate predicate : predicates) {<NEW_LINE>if (predicate instanceof IndexAwarePredicate) {<NEW_LINE>IndexAwarePredicate iap = (IndexAwarePredicate) predicate;<NEW_LINE>...
<Set<QueryableEntry>>();
264,298
public com.amazonaws.services.stepfunctions.model.ExecutionDoesNotExistException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.stepfunctions.model.ExecutionDoesNotExistException executionDoesNotExistException = new com.amazonaws.services.stepfunctions.model.Ex...
int originalDepth = context.getCurrentDepth();
378,513
public void run(IAction action) {<NEW_LINE>Collection<String> features = null;<NEW_LINE>features = identifyPolicies(selectedElement);<NEW_LINE>ListSelectionDialog listDialog = new ListSelectionDialog(workbenchPart.getSite().getShell(), features.toArray(), new ArrayContentProvider(), new LabelProvider(), "Select QoS Pol...
policyVisualId = policyEditPartClass.getField("VISUAL_ID");
478,900
private void checkTagsAgainstModelIds(List<String> tags, ActionListener<Void> listener) {<NEW_LINE>if (tags.isEmpty()) {<NEW_LINE>listener.onResponse(null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>QueryBuilder builder = QueryBuilders.constantScoreQuery(QueryBuilders.boolQuery().filter(QueryBuilders.termsQuery(TrainedModel...
(0).trackTotalHitsUpTo(1);
1,331,253
public static String escape(String s) {<NEW_LINE>if (s == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder escapedText = new StringBuilder(<MASK><NEW_LINE>char currentChar;<NEW_LINE>for (int i = 0; i < s.length(); i++) {<NEW_LINE>currentChar = s.charAt(i);<NEW_LINE>switch(currentChar) {<NEW_LINE>case '<'...
s.length() + 16);
77,967
public Object evaluateList(Object list1Obj, Object list2Obj) {<NEW_LINE>int len1 = list1Inspector.getListLength(list1Obj);<NEW_LINE>int len2 = list2Inspector.getListLength(list2Obj);<NEW_LINE>if (len1 != len2) {<NEW_LINE>LOG.warn(<MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Object retList = retListInspector.create(...
"vector lengths do not match " + list1Obj + " :: " + list2Obj);
909,181
public static ListPtsSceneResponse unmarshall(ListPtsSceneResponse listPtsSceneResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPtsSceneResponse.setRequestId(_ctx.stringValue("ListPtsSceneResponse.RequestId"));<NEW_LINE>listPtsSceneResponse.setSuccess(_ctx.booleanValue("ListPtsSceneResponse.Success"));<NEW_LINE>listP...
= new ArrayList<SceneView>();
466,898
public static ListUserSolutionsResponse unmarshall(ListUserSolutionsResponse listUserSolutionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listUserSolutionsResponse.setRequestId(_ctx.stringValue("ListUserSolutionsResponse.RequestId"));<NEW_LINE>listUserSolutionsResponse.setCurrentPageNum(_ctx.integerValue("ListUserSo...
("ListUserSolutionsResponse.Data[" + i + "].BizType"));
1,096,714
public com.amazonaws.services.codecommit.model.InvalidConflictResolutionStrategyException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.InvalidConflictResolutionStrategyException invalidConflictResolutionStrategyException = new com.amazonaws.s...
String currentParentElement = context.getCurrentParentElement();
511,828
public void createPartControl(Composite parent) {<NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidth = 5;<NEW_LINE>parent.setLayout(layout);<NEW_LINE>parent.setBackground(ColorUtil.getInstance().getColor(SWT.COLOR_WHITE));<NEW_LINE>parent.setBackgroundMod...
xyGraph.primaryXAxis.setTitle("");
155,721
private void loadBase64Image() {<NEW_LINE>String[] parts = this.imagePath.split(";base64,");<NEW_LINE>String extension = parts[0].substring(11);<NEW_LINE>String encodedData = parts[1];<NEW_LINE>byte[] <MASK><NEW_LINE>if (decodedBytes == null) {<NEW_LINE>System.err.println("Decode Error on image: " + imagePath.substring...
decodedBytes = DatatypeConverter.parseBase64Binary(encodedData);
263,485
/*<NEW_LINE>returns true if Post canceled<NEW_LINE>returns false if Post can't be found or is not registered in the UploadStore<NEW_LINE>*/<NEW_LINE>private boolean cancelPostUploadMatchingMedia(@NonNull MediaModel media, String errorMessage, boolean showError) {<NEW_LINE>PostModel postToCancel = mPostStore.getPostByLo...
e(T.POSTS, "Trying to update notifications with missing site");
523,282
private BLangFunction wireUpGeneratedInitFunction(BLangFunction generatedInitFunc, BObjectTypeSymbol objectTypeSymbol, BLangFunction initFunction) {<NEW_LINE>BAttachedFunction initializerFunc = objectTypeSymbol.initializerFunc;<NEW_LINE>BAttachedFunction generatedInitializerFunc = objectTypeSymbol.generatedInitializerF...
.paramTypes = initializerFunc.type.paramTypes;
1,239,971
private void decode(SourceData sourceData) {<NEW_LINE><MASK><NEW_LINE>Result rawResult = null;<NEW_LINE>sourceData.setCropRect(cropRect);<NEW_LINE>LuminanceSource source = createSource(sourceData);<NEW_LINE>if (source != null) {<NEW_LINE>rawResult = decoder.decode(source);<NEW_LINE>}<NEW_LINE>if (rawResult != null) {<N...
long start = System.currentTimeMillis();
375
public FilenameFilter filenameFilter() {<NEW_LINE>if (language == null) {<NEW_LINE>throw new IllegalStateException("Language is null.");<NEW_LINE>}<NEW_LINE>final FilenameFilter languageFilter = language.getFileFilter();<NEW_LINE>final Set<String> exclusions = new HashSet<>();<NEW_LINE>if (excludes != null) {<NEW_LINE>...
"Excluding " + f.getAbsolutePath());
601,106
// private helper methods -------------------------------------------------<NEW_LINE>private synchronized void updateCredentials() {<NEW_LINE>File usersPropFile = new File(getServerDir(), "/conf/props/jmx-console-users.properties");<NEW_LINE>long lastModified = usersPropFile.lastModified();<NEW_LINE>if (lastModified ==...
WARNING, "Error while reading " + usersPropFile, e);
42,497
public SICoreConnection createConnection(Subject subject, Map connectionProperties) throws SIResourceException, SINotAuthorizedException, SIAuthenticationException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && CoreSPIConnFactory.tc.isEntryEnabled()) {<NEW_LINE>SibTr.entry(CoreSPIConnFactory.tc, "createConnecti...
, "User " + userName + " is not authenticated"));
1,706,954
public void execute(final JobExecutionContext jobCtx) throws JobExecutionException {<NEW_LINE>TopicConnection conn = null;<NEW_LINE>TopicSession sess = null;<NEW_LINE>TopicPublisher publisher = null;<NEW_LINE>try {<NEW_LINE>final JobDataMap dataMap = jobCtx.getMergedJobDataMap();<NEW_LINE>final Context namingCtx = JmsH...
messageFactory.createMessage(dataMap, sess);
1,037,019
public static void patch(final Emulator<?> emulator, InlineHook inlineHook, final ThreadJoinVisitor visitor) {<NEW_LINE>Memory memory = emulator.getMemory();<NEW_LINE>Module libc = memory.findModule("libc.so");<NEW_LINE>Symbol clone = libc.findSymbolByName("clone", false);<NEW_LINE>Symbol pthread_join = libc.findSymbol...
ptr = context.getPointerArg(1);
1,540,902
public static PolyglotStatus poly_create_function(PolyglotIsolateThread thread, PolyglotContext context, PolyglotCallback callback, VoidPointer data, PolyglotValuePointer value) {<NEW_LINE>return withHandledErrors(() -> {<NEW_LINE>Context c = fetchHandle(context);<NEW_LINE>ProxyExecutable executable = (Value... argumen...
CallbackException ce = exceptionsTL.get();
1,322,916
public void forwardTo(@NonNull final UserId userId, @NonNull final ADMessageAndParams subject, @Nullable final String textMsg) {<NEW_LINE>final UserId oldUserId = getUserId();<NEW_LINE>if (UserId.equals(userId, oldUserId)) {<NEW_LINE>log.warn("Asked to forward to same user `{}`. Do nothing.", userId);<NEW_LINE>return;<...
userId)).build());
835,575
public RestMethodResult doPost(final Map<String, Object> propertySet) throws FrameworkException {<NEW_LINE>final GraphObject sourceNode = typedIdResource.getEntity();<NEW_LINE>RestMethodResult result = null;<NEW_LINE>if (sourceNode != null && propertyKey != null && propertyKey instanceof RelationProperty) {<NEW_LINE>fi...
, typeResource.getRawType() });
120,732
public String mostCommonWord(String paragraph, String[] banned) {<NEW_LINE>paragraph += ".";<NEW_LINE>Set<String> banset = new HashSet();<NEW_LINE>for (String word : banned) banset.add(word);<NEW_LINE>Map<String, Integer> count = new HashMap();<NEW_LINE>String ans = "";<NEW_LINE>int ansfreq = 0;<NEW_LINE>StringBuilder ...
(Character.toLowerCase(c));
1,204,375
public static List<Element> makeToElementList(String temp, String splitStr) {<NEW_LINE>String[] <MASK><NEW_LINE>List<Element> list = new ArrayList<Element>(temp.length());<NEW_LINE>for (String word : split) {<NEW_LINE>List<Element> wordAlert = wordAlert(word);<NEW_LINE>int len = wordAlert.size();<NEW_LINE>if (len == 1)...
split = temp.split(splitStr);
1,473,056
public SuffixTemplateToken next() {<NEW_LINE>if (!hasNext()) {<NEW_LINE>throw new NoSuchElementException("no elements left!");<NEW_LINE>}<NEW_LINE>char c = generationWord.charAt(pointer++);<NEW_LINE>char cNext = 0;<NEW_LINE>if (pointer < generationWord.length()) {<NEW_LINE>cNext = generationWord.charAt(pointer);<NEW_LI...
SuffixTemplateToken(TemplateTokenType.I_WOVEL, undefined);
876,743
public static String qtPlayerTimecodeFromMovie(MovieBox movie, TimecodeMP4DemuxerTrack timecodeTrack, int mediaFrameNo) throws IOException {<NEW_LINE>TrakBox videoTrack = movie.getVideoTrack();<NEW_LINE>long editedTv = mediaToEdited(videoTrack, frameToTimevalue(videoTrack, mediaFrameNo), movie.getTimescale());<NEW_LINE...
, movie.getTimescale()));
1,119,967
public static void demo1() {<NEW_LINE>// parameters<NEW_LINE>double[][] values = { { 3, 0, -3.4, 0 }, { 5.1, 0, +3.0123456789, 0 }, { 16.37, 0.0, 2.5, 0 }, { -16.3, 0, -3.012345678E-4, -1 }, { 1236.3456789, 0, 7, -1.2 } };<NEW_LINE>String[] formats = { "%G", "%1.10G", <MASK><NEW_LINE>// now the processing<NEW_LINE>int ...
"%f", "%1.2f", "%0.2e", null };
1,511,886
protected RelDataType deriveRowType() {<NEW_LINE>final RelDataTypeFactory typeFactory = getCluster().getTypeFactory();<NEW_LINE>List<RelDataTypeFieldImpl> columns = new LinkedList<>();<NEW_LINE>columns.add(new RelDataTypeFieldImpl("NO.", 0, typeFactory.createSqlType(SqlTypeName.BIGINT)));<NEW_LINE>columns.add(new RelDa...
createSqlType(SqlTypeName.BIGINT)));
1,786,681
private void processAsynchWorkRequest(SipServletRequestImpl request) {<NEW_LINE>if (isRetransmission(request) == true) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceDebug(this, "processAsynchWorkRequest", "Got retrasmitted asynchronois work request, do nothing");<NEW_LINE>}<NEW_LINE>return;<NE...
.getMessage().getBodyAsBytes();
26,743
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>MapPack out = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>if (StringUtil.isNotEmpty(filter)) {<NEW_LINE>param.put("filter", filter);<NEW_LINE>}<NEW_LINE>param.put("page"...
nameLv = out.getList("name");
1,410,829
public NpmPackage loadPackageFromCacheOnly(String theId, @Nullable String theVersion) {<NEW_LINE>Optional<NpmPackageVersionEntity> packageVersion = loadPackageVersionEntity(theId, theVersion);<NEW_LINE>if (!packageVersion.isPresent() && theVersion.endsWith(".x")) {<NEW_LINE>String lookupVersion = theVersion;<NEW_LINE>d...
findVersionIdsByPackageIdAndLikeVersion(theId, lookupVersion + ".%");
1,686,397
private void mapResourceFileToTargetClassFiles(JCTree.JCClassDecl tree) {<NEW_LINE>if (tree.sym == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Name qualifiedName = tree.sym.getQualifiedName();<NEW_LINE>if (qualifiedName == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JavaFileObject sourcefile = tree.sym.sourcefile;<NE...
typesCompiledByFile = new HashMap<>();
117,886
public void forwardToConflictDestination(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>response.setStatus(HttpServletResponse.SC_CONFLICT);<NEW_LINE>final Map reducedMap = new LinkedHashMap(request.getParameterMap());<NEW_LINE>reducedMap.remove(Bro...
keySet().iterator());
553,577
public Flow<Message, Message, NotUsed> jobStatus(final String jobId) {<NEW_LINE>ActorRef jobStatusConnectedWSActor = actorSystem.actorOf(JobStatusConnectedWSActor.props(jobId, statusEventBrokerActor), "JobStatusConnectedWSActor-" + jobId + <MASK><NEW_LINE>Sink<Message, NotUsed> incomingMessagesIgnored = Flow.<Message>c...
"-" + System.currentTimeMillis());
1,765,366
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {<NEW_LINE>String cardName = (String) game.getState().getValue(source.getSourceId().toString() + ChooseACardNameEffect.INFO_KEY);<NEW_LINE>if (cardName == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterPermanent filter2 = filter.c...
source.getSourceId(), game);
487,210
private double[] determineMinMaxDistance(Relation<ParameterizationFunction> relation, int dimensionality) {<NEW_LINE>double[] min = new double[dimensionality - 1];<NEW_LINE>double[] max = new double[dimensionality - 1];<NEW_LINE>Arrays.fill(max, Math.PI);<NEW_LINE>HyperBoundingBox box = new HyperBoundingBox(min, max);<...
minMax = f.determineAlphaMinMax(box);
1,006,361
private void addDeckToCursor(long id, String name, JSONArray deckCounts, MatrixCursor rv, Collection col, String[] columns) {<NEW_LINE>MatrixCursor.RowBuilder rb = rv.newRow();<NEW_LINE>for (String column : columns) {<NEW_LINE>switch(column) {<NEW_LINE>case FlashCardsContract.Deck.DECK_NAME:<NEW_LINE>rb.add(name);<NEW_...
confForDid(id).toString();
1,468,723
public void iterateFields(OopVisitor visitor, boolean doVMFields) {<NEW_LINE>super.iterateFields(visitor, doVMFields);<NEW_LINE>TypeArrayKlass klass = (TypeArrayKlass) getKlass();<NEW_LINE>int length = (int) getLength();<NEW_LINE>int type = (int) klass.getElementType();<NEW_LINE>for (int index = 0; index < length; inde...
* getHeap().getDoubleSize();
193,104
public static ListTransferPacketResponse unmarshall(ListTransferPacketResponse listTransferPacketResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTransferPacketResponse.setRequestId(_ctx.stringValue("ListTransferPacketResponse.RequestId"));<NEW_LINE>listTransferPacketResponse.setSuccess(_ctx.booleanValue("ListTransfe...
= new ArrayList<Packet>();
1,503,993
private void cleanParameterAnnotationsAttribute(Clazz clazz, Member member, ParameterAnnotationsAttribute attribute, String attributeName) {<NEW_LINE>// Delete marked annotations.<NEW_LINE>ParameterAnnotationsAttributeEditor annotationsAttributeEditor = new ParameterAnnotationsAttributeEditor(attribute);<NEW_LINE>boole...
, (ProgramMember) member, false);
1,789,896
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.sib.admin.ControllableRegistrationService#register(com.ibm.ws.sib.admin.Controllable, com.ibm.ws.sib.admin.ControllableType)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public RuntimeEventListener register(Controllable controllable, ControllableType type) th...
CLASS_NAME + ".register", "PROBE_ID_10", this);
1,529,181
private void checkAndDeletePool(JdbcResource cr) throws Exception {<NEW_LINE><MASK><NEW_LINE>ResourceInfo resourceInfo = ConnectorsUtil.getResourceInfo(cr);<NEW_LINE>PoolInfo poolInfo = new PoolInfo(poolName, resourceInfo.getApplicationName(), resourceInfo.getModuleName());<NEW_LINE>Resources resources = (Resources) cr...
String poolName = cr.getPoolName();
180,679
public Flux<ReactiveRedisConnection.CommandResponse<XInfoCommand, Flux<StreamInfo.XInfoGroup>>> xInfoGroups(Publisher<XInfoCommand> publisher) {<NEW_LINE>return execute(publisher, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>byte[] k = toByteArray(command.getKey());<NEW_LINE...
long) r.getPending());
969,742
private CompletableFuture<DataTypeDictionary<?>> createDataTypeDictionary(NodeId dictionaryNodeId, ByteString bs) {<NEW_LINE>ByteArrayInputStream is = new ByteArrayInputStream(bs.bytesOrEmpty());<NEW_LINE>try {<NEW_LINE>DictionaryDescription dictionaryDescription = bsdParser.parse(is);<NEW_LINE>String namespaceUri = di...
registerCustomStructCodecs(dictionaryNodeId, dictionary, structCodecs);
355,042
// TODO: sub file cache<NEW_LINE>public static Output provideOutput(OpenDocument document, TranslationSettings settings, String cachePrefix, String cacheSuffix) throws IOException {<NEW_LINE>Output output = new Output();<NEW_LINE>FileCache cache = settings.getCache();<NEW_LINE>if (!settings.isSplitPages() || (document ...
LWXMLStreamWriter(new FileWriter(file));
561,324
public static <States extends Num> Matrix<States, N1> rk4(Function<Matrix<States, N1>, Matrix<States, N1>> f, Matrix<States, N1> x, double dtSeconds) {<NEW_LINE>final var h = dtSeconds;<NEW_LINE>Matrix<States, N1> k1 = f.apply(x);<NEW_LINE>Matrix<States, N1> k2 = f.apply(x.plus(k1.times(h * 0.5)));<NEW_LINE>Matrix<Stat...
.times(h / 6.0));
1,213,070
public org.python.Object __lshift__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Bool) {<NEW_LINE>return org.python.types.Int.getInt((this.value ? 1 : 0) << (((org.python.types.Bool) other).value ? 1 : 0));<NEW_LINE>} else if (other instanceof org.python.types.Int) {<NEW_LINE>long other_val...
python.exceptions.ValueError("negative shift count");
1,479,442
private Message handle(@Nullable Delivery delivery) {<NEW_LINE>if ((delivery == null && this.shutdown != null)) {<NEW_LINE>throw this.shutdown;<NEW_LINE>}<NEW_LINE>if (delivery == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>byte[<MASK><NEW_LINE>Envelope envelope = delivery.getEnvelope();<NEW_LINE>MessagePropertie...
] body = delivery.getBody();
1,759,602
private static Map<String, Boolean> chooseOthers(Map<String, Boolean> mapper, Map<String, Boolean> method) {<NEW_LINE>boolean emptyMapper = CollectionUtils.isEmpty(mapper);<NEW_LINE>boolean <MASK><NEW_LINE>if (emptyMapper && emptyMethod) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (emptyMapper) {<NEW_LINE>return met...
emptyMethod = CollectionUtils.isEmpty(method);
276,205
private void checkDecoratedMethods(EnhancedAnnotatedType<T> type, List<Decorator<?>> decorators) {<NEW_LINE>if (type.isFinal()) {<NEW_LINE>throw BeanLogger.LOG.finalBeanClassWithDecoratorsNotAllowed(this);<NEW_LINE>}<NEW_LINE>checkNoArgsConstructor(type);<NEW_LINE>for (Decorator<?> decorator : decorators) {<NEW_LINE>En...
getEnhancedMethod(decoratorMethod.getSignature());
509,050
void ensureColumnCanBeUpdated(ColumnIdent ci) {<NEW_LINE>if (ci.isSystemColumn()) {<NEW_LINE>throw new ColumnValidationException(ci.toString(), tableInfo.ident(), "Updating a system column is not supported");<NEW_LINE>}<NEW_LINE>for (ColumnIdent pkIdent : tableInfo.primaryKey()) {<NEW_LINE>ensureNotUpdated(ci, pkIdent,...
idx = generatedReferences.indexOf(partitionRef);
1,517,166
public MLTrain create(final MLMethod method, final MLDataSet training, final String argsStr) {<NEW_LINE>if (!(method instanceof SVM)) {<NEW_LINE>throw new EncogError("SVM Train training cannot be used on a method of type: " + method.getClass().getName());<NEW_LINE>}<NEW_LINE>final double defaultGamma = 1.0 / ((SVM) met...
ParamsHolder holder = new ParamsHolder(args);
1,529,851
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE><MASK><NEW_LINE>addPreferencesFromResource(R.xml.preferences_import_export);<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>_importerType = (Class<? extends DatabaseImporter>) savedInstanceState.getSerializable("importerType");<N...
super.onCreatePreferences(savedInstanceState, rootKey);
1,060,341
boolean isChanged() {<NEW_LINE>boolean isChanged = false;<NEW_LINE>for (Map.Entry<UserConfigurableRule, ModifiedPreferences> entry : changes.entrySet()) {<NEW_LINE>UserConfigurableRule hint = entry.getKey();<NEW_LINE>ModifiedPreferences mn = entry.getValue();<NEW_LINE>Boolean currentEnabled = mn.getBoolean(HintsSetting...
manager, hint).toString();
669,818
public static void displayWelcomeMessage(final int consoleWidth, final PrintWriter writer) {<NEW_LINE>final String[] lines = { "", "===========================================", "= _ _ ____ ____ =", "= | | _____ __ _| | _ \\| __ ) =", "= | |/ / __|/ _` | | | | | _ \\ =",...
.println(leftPadding + line));
221,941
protected void parse() throws ParseException {<NEW_LINE>String s = line;<NEW_LINE>isFull = s.startsWith("Full");<NEW_LINE>if (s.startsWith("GC ")) {<NEW_LINE>line = line.substring(3);<NEW_LINE>} else {<NEW_LINE>s = s.substring(8);<NEW_LINE>}<NEW_LINE>StringTokenizer sk = new StringTokenizer(s, ",", false);<NEW_LINE>Str...
3, beforePart.length());
402,156
void colorB_actionPerformed(ActionEvent e) {<NEW_LINE>// Fix until Sun's JVM supports more locales...<NEW_LINE>UIManager.put("ColorChooser.swatchesNameText", Local.getString("Swatches"));<NEW_LINE>UIManager.put("ColorChooser.hsbNameText", Local.getString("HSB"));<NEW_LINE>UIManager.put("ColorChooser.rgbNameText", Local...
(colorField.getText()));
371,879
final DescribeStackProvisioningParametersResult executeDescribeStackProvisioningParameters(DescribeStackProvisioningParametersRequest describeStackProvisioningParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStackProvisioningParametersRequest);<NEW_LINE>AWSRequestMetrics ...
endClientExecution(awsRequestMetrics, request, response);
1,099,415
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>Player opponent = game.getPlayer(this.getTargetPointer().getFirst(game, source));<NEW_LINE>Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (controller != null && opponent ...
getPlayer(source.getControllerId());
1,815,311
private Promise<TreePath> rebuildAndSelect(boolean refilterOnly, Object selection) {<NEW_LINE>AsyncPromise<TreePath> result = new AsyncPromise<>();<NEW_LINE>myStructureTreeModel.getInvoker().runOrInvokeLater(() -> {<NEW_LINE>if (refilterOnly) {<NEW_LINE>myFilteringStructure.refilter();<NEW_LINE>myStructureTreeModel.inv...
selection).processed(result));
119,596
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>{<NEW_LINE>builder.startObject(Fields.INCREMENTAL);<NEW_LINE>{<NEW_LINE>builder.field(Fields.FILE_COUNT, getIncrementalFileCount());<NEW_LINE>builder.humanReadableField(Fiel...
new ByteSizeValue(getProcessedSize()));
357,275
public static SignedMarkRevocationList parse(List<String> lines) {<NEW_LINE>ImmutableMap.Builder<String, DateTime> revokes = new ImmutableMap.Builder<>();<NEW_LINE>// First line: <version>,<SMD Revocation List creation datetime><NEW_LINE>List<String> firstLine = Splitter.on(',').splitToList(lines.get(0));<NEW_LINE>chec...
.format("Line 1: Expected version 1, found %d", version));
239,351
private void configureInspections(@Nonnull InspectionProfileEntry[] tools) {<NEW_LINE>for (InspectionProfileEntry tool : tools) {<NEW_LINE>enableInspectionTool(tool);<NEW_LINE>}<NEW_LINE>final InspectionProfileImpl profile = new InspectionProfileImpl(PROFILE) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@Nonnull<NEW_LINE>pu...
> tools = myAvailableTools.values();
585,541
public void addSingleBrokerStats(Broker broker, double potentialBytesOutRate, boolean isEstimated) {<NEW_LINE>String host = broker<MASK><NEW_LINE>String rack = broker.rack().id();<NEW_LINE>SingleBrokerStats singleBrokerStats = new SingleBrokerStats(broker, potentialBytesOutRate, isEstimated);<NEW_LINE>_brokerStats.add(...
.host().name();
933,227
public void apply() {<NEW_LINE>CodeInsightSettings codeInsightSettings = CodeInsightSettings.getInstance();<NEW_LINE>codeInsightSettings.COMPLETION_CASE_SENSITIVE = getCaseSensitiveValue();<NEW_LINE>codeInsightSettings.SELECT_AUTOPOPUP_SUGGESTIONS_BY_CHARS = myCbSelectByChars2.getValue();<NEW_LINE>codeInsightSettings.A...
.JAVADOC_INFO_DELAY = myAutopopupJavaDocField2.getValueOrError();
1,499,793
private JComponent buildLog() {<NEW_LINE>tableModel = new MonitorLogTableModel();<NEW_LINE>logTable = new JXTable(1, 2);<NEW_LINE>logTable.setColumnControlVisible(true);<NEW_LINE>logTable.setModel(tableModel);<NEW_LINE>logTable.setHorizontalScrollEnabled(true);<NEW_LINE>logTable.setSelectionMode(ListSelectionModel.MULT...
buildFilterBar(), BorderLayout.NORTH);
1,007,081
private TwoPhaseIterator contains(SortedNumericDocValues values, LatLonGeometry[] geometries) {<NEW_LINE>final List<Component2D> component2Ds = new ArrayList<>(geometries.length);<NEW_LINE>for (int i = 0; i < geometries.length; i++) {<NEW_LINE>component2Ds.add(LatLonGeometry.create(geometries[i]));<NEW_LINE>}<NEW_LINE>...
component2D.withinPoint(lon, lat);
1,561,090
public void fireMemberPresenceEvent(final ChatRoomMember member, final ChatRoomMember actorMember, final String eventID, final String eventReason) {<NEW_LINE>// First update local state w.r.t. member presence change<NEW_LINE>if (eventID == ChatRoomMemberPresenceChangeEvent.MEMBER_JOINED) {<NEW_LINE>addChatRoomMember(me...
LOGGER.trace("Will dispatch the following ChatRoom event: " + evt);
457,502
public static HTMLDocument createHtmlDocumentObject(Map<String, Object> style, double scale) {<NEW_LINE>// Applies the font settings<NEW_LINE>HTMLDocument document = new HTMLDocument();<NEW_LINE>StringBuffer rule = new StringBuffer("body {");<NEW_LINE>rule.append(" font-family: " + getString(style, mxConstants.STYLE_FO...
append("color: " + color + " ; ");
1,621,227
final GetStageResult executeGetStage(GetStageRequest getStageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
561,900
static RangeMarker createRangeMarkerForVirtualFile(@Nonnull VirtualFile file, int startOffset, int endOffset, int startLine, int startCol, int endLine, int endCol, boolean persistent) {<NEW_LINE>RangeMarkerImpl marker = persistent ? new PersistentRangeMarker(file, startOffset, endOffset, startLine, startCol, endLine, e...
tree = SoftReference.dereference(oldRef);
543,793
public void growRow(int y, int borderLower, int borderUpper, float[] output, int offset) {<NEW_LINE>int idxDst = offset;<NEW_LINE>if (y < 0 || y >= image.height) {<NEW_LINE><MASK><NEW_LINE>for (int i = -borderLower; i < end; i++) {<NEW_LINE>output[idxDst++] = border.getOutside(i, y);<NEW_LINE>}<NEW_LINE>} else {<NEW_LI...
int end = image.width + borderUpper;
1,292,749
private IAction createNewSketchAction(final IFolder folder) {<NEW_LINE>IAction action = new Action(Messages.TreeModelViewActionFactory_2) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>// Create a new Diagram Model, set its name<NEW_LINE>ISketchModel sketchModel = IArchimateFactory.eINSTANCE.creat...
sketchModel.setName(Messages.TreeModelViewActionFactory_3);
629,060
public void close() {<NEW_LINE>if (isClosed()) {<NEW_LINE>logger.warn("No need to close connection to server " + getRemoteAddress() + " from " + getClass().getSimpleName() + " " + NetUtils.getLocalHost() + " using dubbo version " + Version.getVersion() + ", cause: the client status is closed.");<NEW_LINE>return;<NEW_LI...
e.getMessage(), e);
1,405,273
static void treehash(HashFunctions hs, byte[] node, int nodeOff, int height, byte[] sk, leafaddr leaf, byte[] masks, int masksOff) {<NEW_LINE>leafaddr a = new leafaddr(leaf);<NEW_LINE>int lastnode, i;<NEW_LINE>byte[] stack = new byte[(height <MASK><NEW_LINE>int[] stacklevels = new int[height + 1];<NEW_LINE>int stackoff...
+ 1) * SPHINCS256Config.HASH_BYTES];
862,178
private static void initStubLoader() {<NEW_LINE>int loadMaxTime = 30;<NEW_LINE><MASK><NEW_LINE>Class<?> clazz = null;<NEW_LINE>// first try<NEW_LINE>try {<NEW_LINE>clazz = Class.forName("com.kenai.jffi.internal.StubLoader");<NEW_LINE>} catch (ClassNotFoundException e) {<NEW_LINE>}<NEW_LINE>// try try try ...<NEW_LINE>w...
long start = System.currentTimeMillis();
1,370,071
public void visit(BLangResourceFunction funcNode) {<NEW_LINE>boolean validAttachedFunc = validateFuncReceiver(funcNode);<NEW_LINE>if (PackageID.isLangLibPackageID(env.enclPkg.symbol.pkgID)) {<NEW_LINE>funcNode.flagSet.add(Flag.LANG_LIB);<NEW_LINE>}<NEW_LINE>BInvokableSymbol funcSymbol = Symbols.createFunctionSymbol(Fla...
funcNode, funcSymbol, invokableEnv, validAttachedFunc);
530,176
public Map<String, String> updateSensorProperties(OwBaseBridgeHandler bridgeHandler) throws OwException {<NEW_LINE>Map<String, String> properties = new HashMap<String, String>();<NEW_LINE>DS2438Configuration ds2438configuration = new DS2438Configuration(bridgeHandler, sensorId);<NEW_LINE>sensorType = DS2438Configuratio...
), ds2438configuration.getAssociatedSensorTypes());
429,728
public synchronized void remove(ActiveSubscription theActiveSubscription) {<NEW_LINE>String channelName = theActiveSubscription.getChannelName();<NEW_LINE>ourLog.info("Removing subscription {} from channel {}", theActiveSubscription.getId(), channelName);<NEW_LINE>boolean removed = myActiveSubscriptionByChannelName.rem...
channel = myDeliveryReceiverChannels.get(channelName);
253,702
protected List<Parameter> createParameters() {<NEW_LINE>Parameter p1 = new Parameter(PARAM_STRATEGY, "Depth-First Search (incremental)", "Breadth-First Search (incremental)", "Iterative Deepening Search", "Greedy Best-First Search (attacking pair heuristic)", "A* search (attacking pair heuristic)", "Hill Climbing", "Si...
8, 16, 32, 64);
347,422
private void checkCanApply(FileTemplateTab list) throws ConfigurationException {<NEW_LINE>final FileTemplate[] templates = myCurrentTab.getTemplates();<NEW_LINE>final List<String> <MASK><NEW_LINE>FileTemplate itemWithError = null;<NEW_LINE>boolean errorInName = true;<NEW_LINE>String errorString = null;<NEW_LINE>for (Fi...
allNames = new ArrayList<>();
1,490,008
public BertToken encode(String question, String paragraph) {<NEW_LINE>List<<MASK><NEW_LINE>List<String> pToken = tokenize(paragraph);<NEW_LINE>int validLength = qToken.size() + pToken.size();<NEW_LINE>qToken.add(0, "[CLS]");<NEW_LINE>qToken.add("[SEP]");<NEW_LINE>pToken.add("[SEP]");<NEW_LINE>List<String> tokens = new ...
String> qToken = tokenize(question);
1,576,267
private Map<String, String> extractXmlNamespaces(Node contextNode) throws JRException {<NEW_LINE>Map<String, String> namespaces = new HashMap<>();<NEW_LINE>List<Node> nlist;<NEW_LINE>String namespaceXPathString = "//namespace::node()";<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>nlist = xpath.selectNodes(contextNode);<NEW_...
XPath xpath = new DOMXPath(namespaceXPathString);
403,875
private void declareProperty(final VariableDeclarationContext ctx, final ModifierManager modifierManager, final ClassNode variableType, final ClassNode classNode, final int i, final VariableExpression variableExpression, final String fieldName, final int modifiers, final Expression initialValue) {<NEW_LINE>if (classNod...
groovydocManager.handle(fieldNode, ctx);
1,512,582
protected void markBits(String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>try {<NEW_LINE>long address = CommandUtils.parsePointer(args[1], J9BuildFlags.env_data64);<NEW_LINE>J9ObjectPointer object = J9ObjectPointer.cast(address);<NEW_LINE>J9ObjectPointer base = J9ObjectPo...
(markMap.getPageSize(object));
620,376
public void startUp(FloodlightModuleContext context) {<NEW_LINE>// paag: register the IControllerCompletionListener<NEW_LINE>floodlightProviderService.addCompletionListener(this);<NEW_LINE>floodlightProviderService.addOFMessageListener(OFType.PACKET_IN, this);<NEW_LINE>floodlightProviderService.addOFMessageListener(OFT...
FLOWMOD_DEFAULT_HARD_TIMEOUT = Short.parseShort(hardTimeout);