idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
455,706
public void testCriteriaQuery_BigInteger(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>A...
> testProps = testExecCtx.getProperties();
1,347,765
private void checkMiddlemanAction(Action action, EventHandler handler, MetadataHandler metadataHandler) {<NEW_LINE>if (!cacheConfig.enabled()) {<NEW_LINE>// Action cache is disabled, don't generate digests.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Artifact middleman = action.getPrimaryOutput();<NEW_LINE>String cacheKey = m...
actionCache.accountMiss(MissReason.DIFFERENT_FILES);
338,992
public void updateUserRole(UserRequest user) {<NEW_LINE>String userId = user.getId();<NEW_LINE>UserGroupExample userGroupExample = new UserGroupExample();<NEW_LINE>userGroupExample.createCriteria().andUserIdEqualTo(userId);<NEW_LINE>List<UserGroup> userGroups = userGroupMapper.selectByExample(userGroupExample);<NEW_LIN...
collect(Collectors.toList());
1,715,563
GraphQLFieldDefinition buildField(BuildContext buildCtx, TypeDefinition<?> parentType, FieldDefinition fieldDef) {<NEW_LINE>GraphQLFieldDefinition.Builder builder = GraphQLFieldDefinition.newFieldDefinition();<NEW_LINE>builder.definition(buildCtx.isCaptureAstDefinitions() ? fieldDef : null);<NEW_LINE>builder.name(field...
buildAppliedDirectives(buildCtx, builder, appliedDirectives);
1,257,668
private void processPolymorphic(BelongsToPolymorphic belongsToPolymorphic, Class<? extends Model> modelClass) {<NEW_LINE>Class<? extends Model>[] parentClasses = belongsToPolymorphic.parents();<NEW_LINE>String[] typeLabels = belongsToPolymorphic.typeLabels();<NEW_LINE>if (typeLabels.length > 0 && typeLabels.length != p...
typeLabel, parentClass.getName());
1,501,369
private static void tryAssertionReturnTypeMultipleRow(RegressionEnvironment env, String method) {<NEW_LINE>String epl = "@name('s0') select theString, intPrimitive, mapstring, mapint from " + "SupportBean#keepall as s1, " + "method:" + SupportStaticMethodLib.class.getName() + "." + method;<NEW_LINE>String[] fields = "t...
(epl).addListener("s0");
1,604,228
public List<Map<String, Object>> findAllHostThumbnails() throws PortalException, SystemException, DotDataException, DotSecurityException {<NEW_LINE>WebContext ctx = WebContextFactory.get();<NEW_LINE>HttpServletRequest req = ctx.getHttpServletRequest();<NEW_LINE>User user = userWebAPI.getLoggedInUser(req);<NEW_LINE>Cont...
hostAPI.findAll(user, respectFrontend);
1,093,935
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case IArchimatePackage.DIAGRAM_MODEL__NAME:<NEW_LINE>return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);<NEW_LINE>case IArchimatePackage.DIAGRAM_MODEL__ID:<NEW_LINE>return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT....
null && !children.isEmpty();
676,119
public void loadSettings() {<NEW_LINE>super.loadSettings();<NEW_LINE>// Load values from new connection info<NEW_LINE>DBPConnectionConfiguration connectionInfo = site.getActiveDataSource().getConnectionConfiguration();<NEW_LINE>if (projectText != null) {<NEW_LINE>String databaseName = connectionInfo.getDatabaseName();<...
setText(connectionInfo.getHostName());
1,767,852
public List<Regressor> transformToBatchOutput(List<OnnxValue> tensor, ImmutableOutputInfo<Regressor> outputIDInfo) {<NEW_LINE>float[][] predictions = getBatchPredictions(tensor);<NEW_LINE>List<Regressor> output = new ArrayList<>();<NEW_LINE>// Similar to transformToOutput, names and values are ordered by<NEW_LINE>// th...
new Regressor(names, values));
860,794
public void read(org.apache.thrift.protocol.TProtocol prot, changeAuthorizations_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet <MASK><NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struc...
incoming = iprot.readBitSet(4);
152,612
public Map<String, Object> createIOSManifestProperties(String exeName) throws IOException {<NEW_LINE>Map<String, Object> properties = new HashMap<>();<NEW_LINE>List<String> applicationQueriesSchemes = new ArrayList<String>();<NEW_LINE>List<String> urlSchemes = new ArrayList<String>();<NEW_LINE>String bundleId = <MASK><...
projectProperties.getStringValue("ios", "bundle_identifier");
1,254,294
// End of variables declaration//GEN-END:variables<NEW_LINE>public static FileObject showDialog(SourceGroup[] folders, Class<?> target, String preselectedFileName) {<NEW_LINE>BrowseFolders bf = new BrowseFolders(folders, target, preselectedFileName);<NEW_LINE>// NOI18N<NEW_LINE>String title = target == DataFolder.class...
].setActionCommand(OptionsListener.COMMAND_SELECT);
937,448
public OutputDataConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OutputDataConfig outputDataConfig = new OutputDataConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
380,815
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Permanent aura = game.getPermanent(source.getFirstTarget());<NEW_LINE>Permanent permanentToBeAttachedTo = game.getPermanent(source.getTargets().get(1).getF...
" and attached to " + permanentToBeAttachedTo.getLogName());
51,244
/*<NEW_LINE>* Unfortunately annotation scanner ( getHelper().getAnnotationScanner() )<NEW_LINE>* cannot be used for finding annotated method parameters. It doesn't<NEW_LINE>* work for them. So this method performs find usages of @Observes annotation<NEW_LINE>* and chooses appropriate elements.<NEW_LINE>*/<NEW_LINE>priv...
.SOURCE, SearchScope.DEPENDENCIES));
620,791
private void fixEdgeFlags() {<NEW_LINE>if (getKeys().isEmpty())<NEW_LINE>return;<NEW_LINE>// some assumptions:<NEW_LINE>// 1) the first item in the keys list is at the top of the keyboard<NEW_LINE>// 2) the last item is the bottom of the keyboard<NEW_LINE>// 3) the first key in every row must be left<NEW_LINE>// 4) the...
).get(0).y;
1,656,980
public void updateBackground(Planar<T> frame) {<NEW_LINE>// Fill in background model with the mean and initial variance of each pixel<NEW_LINE>if (background.width != frame.width || background.height != frame.height) {<NEW_LINE>background.reshape(frame.width, frame.height);<NEW_LINE>// initialize the mean to the curren...
* varianceBG + learnRate * diff * diff;
591,263
static void unsupported(TruffleStringBuilder sb, int c, int enc, ConditionProfile bufferGrowProfile, ConditionProfile errorProfile) {<NEW_LINE>JCodings.Encoding jCodingsEnc = JCodings.getInstance().get(enc);<NEW_LINE>int length = JCodings.getInstance().getCodePointLength(jCodingsEnc, c);<NEW_LINE>if (!(TruffleString.En...
) : TSCodeRange.getValidMultiByte());
1,427,401
private boolean isSuccess(@Nullable AbstractResponseDTO response) {<NEW_LINE>if (response == null) {<NEW_LINE>logger.debug("API: Ecobee API returned null response");<NEW_LINE>} else if (response.status.code.intValue() != 0) {<NEW_LINE>logger.debug("API: Ecobee API returned unsuccessful status: code={}, message={}", res...
code, response.status.message);
604,080
PsiReference resolveTypeName(GraphQLReferenceMixin element) {<NEW_LINE>final String logicalTypeName = GraphQLPsiUtil.getFileName(element.getContainingFile()) + ":" + element.getName();<NEW_LINE>// intentionally not using computeIfAbsent here to avoid locking during long-running write actions<NEW_LINE>// it's better to ...
psiReference = logicalTypeNameToReference.get(logicalTypeName);
624,864
// This method and those that are called here are executed in a new thread<NEW_LINE>// #7108: AsyncTask<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>protected Result actualDoInBackground() {<NEW_LINE>super.doInBackground();<NEW_LINE>// Wait for previous thread (if any) to finish before continuing<NEW_LINE>if (mPr...
"CollectionTask CollectionTask %s as Collection could not be opened", mTask.getClass());
1,317,708
public void close(SocketStateCode toState) {<NEW_LINE>logger.info("close() will be started. ( remoteAddress:{}, agentInfo:{}, closeState:{}", remoteAddress, agentInfo.getAgentKey(), toState);<NEW_LINE>if (onCloseHandler != null) {<NEW_LINE>onCloseHandler.run();<NEW_LINE>}<NEW_LINE>synchronized (this) {<NEW_LINE>try {<N...
"{} <=> local all streamChannels will be close.", agentInfo.getAgentKey());
1,351,349
public SearchPlaceIndexForPositionSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SearchPlaceIndexForPositionSummary searchPlaceIndexFo...
String name = reader.nextName();
114,336
public long readLong(Object receiver, int byteOffset) {<NEW_LINE>byte <MASK><NEW_LINE>byte b2 = readByte(receiver, byteOffset + 1);<NEW_LINE>byte b3 = readByte(receiver, byteOffset + 2);<NEW_LINE>byte b4 = readByte(receiver, byteOffset + 3);<NEW_LINE>byte b5 = readByte(receiver, byteOffset + 4);<NEW_LINE>byte b6 = read...
b1 = readByte(receiver, byteOffset);
193,223
private ByteBuffer readBlob(ReadableStreamChannel postContent, Long maxBlobSize) throws RouterException, InterruptedException {<NEW_LINE>ByteArrayOutputStream blobDataStream = new ByteArrayOutputStream();<NEW_LINE>ByteBufferAWC channel = new ByteBufferAWC();<NEW_LINE>postContent.readInto(channel, (result, exception) ->...
chunkData, 0, chunkData.length);
439,146
protected String doSubmitAction(@ModelAttribute AdvancedSettingsCommand command, RedirectAttributes redirectAttributes) {<NEW_LINE>redirectAttributes.addFlashAttribute("settings_toast", true);<NEW_LINE>try {<NEW_LINE>settingsService.setDownloadBitrateLimit(Long.parseLong(command.getDownloadLimit()));<NEW_LINE>} catch (...
setLdapEnabled(command.isLdapEnabled());
1,665,837
private static SubstrateIntrinsics.Any slotTypeCheck(short start, short range, short slot, int typeIDSlotOffset, DynamicHub checkedHub, SubstrateIntrinsics.Any trueValue, SubstrateIntrinsics.Any falseValue) {<NEW_LINE>int <MASK><NEW_LINE>int typeCheckRange = Short.toUnsignedInt(range);<NEW_LINE>int typeCheckSlot = Shor...
typeCheckStart = Short.toUnsignedInt(start);
1,616,159
protected void addRunnableTasks(ImageData<T> imageData, PathObject parentObject, List<Runnable> tasks) {<NEW_LINE>// Get pixel sizes, if possible<NEW_LINE>ImageServer<?> server = imageData.getServer();<NEW_LINE>double pixelWidth = 1, pixelHeight = 1;<NEW_LINE>PixelCalibration cal = server.getPixelCalibration();<NEW_LIN...
!= null && cal.hasPixelSizeMicrons();
201,965
public long addTokenBalance(byte[] address, byte[] tokenId, long value) {<NEW_LINE>byte[] tokenIdWithoutLeadingZero = ByteUtil.stripLeadingZeroes(tokenId);<NEW_LINE>AccountCapsule accountCapsule = getAccount(address);<NEW_LINE>if (accountCapsule == null) {<NEW_LINE>accountCapsule = createAccount(address, Protocol.Accou...
key = Key.create(address);
154,912
private void checkTouch(int touchX, int maxOffset) {<NEW_LINE>if (mThumbView == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int moveX = touchX - getPaddingLeft() - mThumbView.getLeftRightMargin();<NEW_LINE>float step = (float) maxOffset / mTickCount;<NEW_LINE>if (moveX <= step / 2) {<NEW_LINE>mThumbViewOffsetHelper.se...
int) (target * step));
1,255,999
public String format(TruthTable truthTable) throws ExpressionException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("\\begin{center}\n\\begin{tabular}{");<NEW_LINE>for (Variable v : truthTable.getVars()) sb.append("c");<NEW_LINE>sb.append("|");<NEW_LINE>for (int i = 0; i < truthTable.getResultC...
ContextFiller(truthTable.getVars());
1,258,732
public Block unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Block block = new Block();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
518,194
public com.amazonaws.services.athena.model.InvalidRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.athena.model.InvalidRequestException invalidRequestException = new com.amazonaws.services.athena.model.InvalidRequestException(null);<NEW_LINE>int ...
String currentParentElement = context.getCurrentParentElement();
191,916
public AutorouteEngine.AutorouteResult fanout(Pin p_pin, app.freerouting.interactive.Settings p_settings, int p_ripup_costs, Stoppable p_stoppable_thread, TimeLimit p_time_limit) {<NEW_LINE>if (p_pin.first_layer() != p_pin.last_layer() || p_pin.net_count() != 1) {<NEW_LINE>return AutorouteEngine.AutorouteResult.ALREADY...
trace_clearance_class_no, p_stoppable_thread, p_time_limit, false);
616,233
private static void createEndpoints(CoapServer server, int unicastPort, int multicastPort, Configuration config) {<NEW_LINE>// UDPConnector udpConnector = new UDPConnector(new<NEW_LINE>// InetSocketAddress(unicastPort));<NEW_LINE>// udpConnector.setReuseAddress(true);<NEW_LINE>// CoapEndpoint coapEndpoint = new<NEW_LIN...
NetworkInterface networkInterface = NetworkInterfacesUtil.getMulticastInterface();
1,329,175
private JPanel createListPanel() {<NEW_LINE>consumerList = new JList<>(new DefaultListModel<>());<NEW_LINE>consumerList.setName("Consumers");<NEW_LINE>JScrollPane consumerListScrollPane = new JScrollPane(consumerList);<NEW_LINE>producerList = new JList<>(new DefaultListModel<>());<NEW_LINE>producerList.setName("Produce...
= { producerListScrollPane, consumerListScrollPane, eventListScrollPane };
1,016,256
List<Path> defaultJavaLibraryPath() {<NEW_LINE>// Win32 library search order (See the documentation for LoadLibrary):<NEW_LINE>//<NEW_LINE>// 1. The directory from which application is loaded.<NEW_LINE>// 2. The system wide Java Extensions directory (Java only)<NEW_LINE>// 3. System directory (GetSystemDirectory)<NEW_L...
(Paths.get("."));
842,057
public BatchPack makePack() {<NEW_LINE>BatchPack pack = new BatchPack();<NEW_LINE>Configure config = Configure.getInstance();<NEW_LINE>pack.objHash = config.getObjHash();<NEW_LINE>pack.objName = config.getObjName();<NEW_LINE>pack.objType = config.obj_type;<NEW_LINE>pack.batchJobId = this.batchJobId;<NEW_LINE>pack.batch...
put("startTime", traceSql.startTime);
797,005
public int indexOf(Enum<?> header) {<NEW_LINE>if (enumMap != null && enumMap.length == 0) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>validateHeader(header);<NEW_LINE>if (enumMap == null) {<NEW_LINE>NormalizedString[] headers = NormalizedString.toIdentifierGroupArray(context.headers());<NEW_LINE>if (headers == null) {<NE...
constants[i].ordinal();
905,710
public boolean listenForJDWP(JDWPProcessListener listener) throws IOException {<NEW_LINE>if (this.jdwpListenerSock != null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>jdwpListenerSock = ADB.connect(this.info.adbHost, this.info.adbPort);<NEW_LINE>InputStream inputStream = jdwpListenerSock.getInputStream();<NEW_LINE>Ou...
ids = payload.split("\n");
1,450,798
protected void generate(StringToStringMap values, ToolHost toolHost, Interface modelItem) throws Exception {<NEW_LINE>String wsimportDir = SoapUI.getSettings().getString(ToolsSettings.JBOSSWS_WSTOOLS_LOCATION, null);<NEW_LINE>if (Tools.isEmpty(wsimportDir)) {<NEW_LINE>UISupport.showErrorMessage("JBossWS wstools/wsconsu...
command(args.getArgs());
690,058
final DeleteSourceServerResult executeDeleteSourceServer(DeleteSourceServerRequest deleteSourceServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSourceServerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
756,114
public Explanation explain(LeafReaderContext context, int doc) throws IOException {<NEW_LINE>Scorer scorer = scorer(context);<NEW_LINE>if (scorer != null) {<NEW_LINE>int newDoc = scorer.<MASK><NEW_LINE>if (newDoc == doc) {<NEW_LINE>final float freq;<NEW_LINE>if (scorer instanceof SynonymScorer) {<NEW_LINE>freq = ((Syno...
iterator().advance(doc);
1,007,186
final CreateTableResult executeCreateTable(CreateTableRequest createTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
getAWSAccessKeyId(), false, endpoint);
548,197
public void initialize() {<NEW_LINE>createListener();<NEW_LINE>final Tuple3<VBox, Label, AutocompleteComboBox<CurrencyListItem>> currencyComboBoxTuple = addTopLabelAutocompleteComboBox(Res.get("shared.currency"), 0);<NEW_LINE>this.currencyComboBox = currencyComboBoxTuple.third;<NEW_LINE>this.currencyComboBox.setCellFac...
tupleBuy.second, tupleSell.second);
974,810
private void reportSignatureProblems(VerificationFailure vf) {<NEW_LINE>if (vf instanceof MissingSignature) {<NEW_LINE>reportItem("Signature file is missing", "signature-file-missing", "info");<NEW_LINE>} else if (vf instanceof SignatureVerificationFailure) {<NEW_LINE>SignatureVerificationFailure svf = (SignatureVerifi...
reportItem(reason, "ignored-key", "info");
426,383
public static CandidatesQuery fromCandidate(@NonNull final Candidate candidate, final boolean includeParentId) {<NEW_LINE>if (!candidate.getId().isNull()) {<NEW_LINE>return CandidatesQuery.fromId(candidate.getId());<NEW_LINE>}<NEW_LINE>final ProductionDetailsQuery productionDetailsQuery = ProductionDetailsQuery.ofProdu...
(candidate.getBusinessCaseDetail()));
1,432,974
public void evaluateMinimal(GeoModelEstimatorN<DMatrixRMaj, AssociatedPair> estimatorN) {<NEW_LINE>DistanceEpipolarConstraint distance = new DistanceEpipolarConstraint();<NEW_LINE>Estimate1ofEpipolar estimator = new EstimateNto1ofEpipolar(estimatorN, distance, 1);<NEW_LINE>scores = new ArrayList<>();<NEW_LINE>int faile...
(observations.size()));
1,830,116
public static void updateWebStartJarsOnOpen(final EditableProperties ep, final PropertyEvaluator eval, boolean isWebStart) throws IOException {<NEW_LINE>Map<String, String> map = getClassPathItems(ep, eval, ENDORSED_CLASSPATH);<NEW_LINE>Map<String, String> wsmap = filterOutLibItems(map, LIB_JAVAWS);<NEW_LINE>Map<String...
ep, eval, active, LIB_PLUGIN);
1,659,211
private void decodeModifiers(StringBuffer buffer, int accessFlags, boolean printDefault, boolean asBridge, int[] checkBits) {<NEW_LINE>if (checkBits == null)<NEW_LINE>return;<NEW_LINE>boolean firstModifier = true;<NEW_LINE>for (int i = 0, max = checkBits.length; i < max; i++) {<NEW_LINE>switch(checkBits[i]) {<NEW_LINE>...
IModifierConstants.ACC_SYNCHRONIZED, "synchronized", firstModifier);
1,046,064
SchemaRelationshipNode createSchemaNode(final Map<String, SchemaNode> schemaNodes, final App app, final PropertyMap createProperties) throws FrameworkException {<NEW_LINE>final PropertyMap properties = new PropertyMap();<NEW_LINE>SchemaRelationshipNode _schemaNode = app.nodeQuery(SchemaRelationshipNode.class).andName(g...
SecurityContext.getSuperUserInstance(), properties);
1,214,067
public String toVoiceString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("slot#").append(getId()).append(" start=").append(String.format("%5s", getTimeOffset())).append(" [");<NEW_LINE>SortedMap<Integer, AbstractChordInter> voiceChords = new TreeMap<>();<NEW_LINE>for (AbstractChordInter chord...
AbstractChordInter chord = entry.getValue();
709,572
void paintImage(Graphics2D g, double width, double height, double period) {<NEW_LINE>double dx = 0;<NEW_LINE>double lower = height - 1;<NEW_LINE>double upper = lower - period;<NEW_LINE>if (Registry.is("ide.text.effect.new.metrics")) {<NEW_LINE>if (height > 3) {<NEW_LINE>double fix = height / 3;<NEW_LINE>g.setStroke(new...
upper, dx += size, upper);
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...
+ popType(desc) + ")");
50,050
public void handleRequest(RestRequest request, RequestContext requestContext, final Callback<RestResponse> callback) {<NEW_LINE>if (HttpMethod.POST != HttpMethod.valueOf(request.getMethod())) {<NEW_LINE>_log.error("POST is expected, but " + <MASK><NEW_LINE>callback.onError(RestException.forError(HttpStatus.S_405_METHOD...
request.getMethod() + " received");
207,311
private String createUrl(String serviceUrl, String terminalId, String cmd, String cwd) {<NEW_LINE>SimpleUriBuilder urlBuilder = new SimpleUriBuilder(serviceUrl + "/terminal/" + terminalId);<NEW_LINE>ITheme theme = PlatformUI.getWorkbench()<MASK><NEW_LINE>ColorRegistry colorRegistry = theme.getColorRegistry();<NEW_LINE>...
.getThemeManager().getCurrentTheme();
431,996
public static SparseVector parseSparse(String str) {<NEW_LINE>try {<NEW_LINE>if (org.apache.flink.util.StringUtils.isNullOrWhitespaceOnly(str)) {<NEW_LINE>return new SparseVector();<NEW_LINE>}<NEW_LINE>int n = -1;<NEW_LINE>int firstDollarPos = str.indexOf(HEADER_DELIMITER);<NEW_LINE>int lastDollarPos = -1;<NEW_LINE>if ...
, colonPos).trim());
1,592,739
public void onCompletion(Void result, Exception exception) {<NEW_LINE>long latencyPerBlob = SystemTime.getInstance().milliseconds() - startTimeGetBlobInMs;<NEW_LINE>metricsCollector.updateLatency(latencyPerBlob);<NEW_LINE>logger.trace(" Time taken to delete blob {} in ms {}", blobId, latencyPerBlob);<NEW_LINE>final Ato...
null, exceptionToReturn.get());
465,309
private static String stripGarbage(String contents) {<NEW_LINE>String working = contents;<NEW_LINE>working = removeMultiLineGarbage(working, PRAGMA);<NEW_LINE>// Windows<NEW_LINE>working = working.replaceAll("_+cdecl", "");<NEW_LINE>working = working.replaceAll("_+stdcall", "");<NEW_LINE>working = DECLSPEC.matcher(work...
(working).replaceAll("");
1,407,647
public synchronized void stop(boolean immediate) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "stop", new Object[] { Boolean.valueOf(immediate) });<NEW_LINE>// Set the flag to signify that the server is stopping<NEW_LINE>_serverStopping = true;<NEW_LINE>// Stop lease timeout alarm popping when server is on...
> failureScopeControllerTableValuesIterator = failureScopeControllerTableValues.iterator();
504,195
protected void collectOperations(TemplateOperation ops, Map<String, Object> params) {<NEW_LINE>super.collectOperations(ops, params);<NEW_LINE>File rootDir = (File) params.get(PROP_PROJECT_ROOT);<NEW_LINE>Map<String, Object> mainParams = new HashMap<>(params);<NEW_LINE>mainParams.put("project", new DummyProject());<NEW_...
dependencies = new LinkedList<>();
1,549,467
FieldSpec generateCreator(ProcessingEnvironment env, TypeName autoValueType, List<Property> properties, TypeName type, Map<TypeMirror, FieldSpec> typeAdapters) {<NEW_LINE>ClassName creator = ClassName.bestGuess("android.os.Parcelable.Creator");<NEW_LINE>TypeName creatorOfClass = <MASK><NEW_LINE>Types typeUtils = env.ge...
ParameterizedTypeName.get(creator, type);
483,512
public com.amazonaws.services.mediastoredata.model.RequestedRangeNotSatisfiableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.mediastoredata.model.RequestedRangeNotSatisfiableException requestedRangeNotSatisfiableException = new com.amazonaws.services...
int originalDepth = context.getCurrentDepth();
1,805,461
private Client buildClient() throws SQLException {<NEW_LINE>// if(props.containsKey("test")){ // used for integration tests<NEW_LINE>// return ESIntegTestCase.client();<NEW_LINE>// }else<NEW_LINE>try {<NEW_LINE>Settings.Builder settingsBuilder = Settings.settingsBuilder();<NEW_LINE>for (Object key : this.props.keySet()...
)[0].trim();
1,301,080
public int compareTo(HdfsFile other) {<NEW_LINE>FileStatus fs1 = this.fs;<NEW_LINE>FileStatus fs2 = other.fs;<NEW_LINE>// This is probably dead code, no directories should be present.<NEW_LINE>// directories before files<NEW_LINE>if (fs1.isDir())<NEW_LINE>return fs2.<MASK><NEW_LINE>if (fs2.isDir())<NEW_LINE>return fs1....
isDir() ? 0 : -1;
1,474,006
private boolean isAmbiguous(STNode node) {<NEW_LINE>switch(node.kind) {<NEW_LINE>case SIMPLE_NAME_REFERENCE:<NEW_LINE>case QUALIFIED_NAME_REFERENCE:<NEW_LINE>case NIL_LITERAL:<NEW_LINE>case NULL_LITERAL:<NEW_LINE>case NUMERIC_LITERAL:<NEW_LINE>case STRING_LITERAL:<NEW_LINE>case BOOLEAN_LITERAL:<NEW_LINE>case BRACKETED_...
item = keys.childInBucket(i);
1,828,002
private boolean matchNonProxy(final URL url) {<NEW_LINE>final String host = url.getHost();<NEW_LINE>// code partially from org.apache.maven.plugins.site.AbstractDeployMojo#getProxyInfo<NEW_LINE>final String nonProxyHosts = settings.getString(Settings.KEYS.PROXY_NON_PROXY_HOSTS);<NEW_LINE>if (null != nonProxyHosts) {<NE...
nonProxies = nonProxyHosts.split("(,)|(;)|(\\|)");
1,554,937
public <T> T doGet(String url, Class<T> tClass) throws Throwable {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>CloseableHttpClient httpClient = getCloseableHttpClient();<NEW_LINE>CloseableHttpResponse response = null;<NEW_LINE>try {<NEW_LINE>HttpGet httpGet = new HttpGet(url);<NEW_LINE>RequestConfig requ...
response = httpClient.execute(httpGet);
558,139
public void startMoving(final double finalLat, final double finalLon, final Pair<Integer, Double> finalZoom, final boolean pendingRotation, final Float finalRotation, final boolean notifyListener) {<NEW_LINE>stopAnimatingSync();<NEW_LINE>final RotatedTileBox rb = tileView.getCurrentRotatedTileBox().copy();<NEW_LINE>dou...
double startLon = rb.getLongitude();
1,269,909
private void processPreviewFrame(PreviewFrame previewFrame) {<NEW_LINE>Result[] results = {};<NEW_LINE>Mat frame = previewFrame.getFrame();<NEW_LINE>try {<NEW_LINE>results = zxing(frame);<NEW_LINE>} catch (ChecksumException | FormatException e) {<NEW_LINE>// TODO Auto-generated catch block<NEW_LINE>e.printStackTrace();...
boolean autoMode = previewFrame.isAutoMode();
1,804,606
protected StructureElement parseStructureElement(JsonObject object, boolean parsingMethods) throws CommonException {<NEW_LINE>String name = helper.getString(object, "name");<NEW_LINE>String posString = helper.getString(object, "pos");<NEW_LINE>SourceFileLocation elementSourceFileLoc = SourceFileLocation.parseSourceRang...
substring("method ".length());
1,135,112
public static Node create(Config config) {<NEW_LINE>LoggingOptions loggingOptions = new LoggingOptions(config);<NEW_LINE>EventBusOptions eventOptions = new EventBusOptions(config);<NEW_LINE>BaseServerOptions serverOptions = new BaseServerOptions(config);<NEW_LINE>SecretOptions secretOptions = new SecretOptions(config);...
).map(String::toLowerCase);
1,295,581
public Status update(String table, String key, Map<String, ByteIterator> values) {<NEW_LINE>setTable(table);<NEW_LINE>if (debug) {<NEW_LINE>System.out.println("Setting up put for key: " + key);<NEW_LINE>}<NEW_LINE>final byte[][] qualifiers = new byte[values.size()][];<NEW_LINE>final byte[][] byteValues = new byte[value...
.toArray()) + " to put request");
1,199,880
public void deserialize(ByteBuffer buffer) {<NEW_LINE>int storageGroupTTLMapSize = buffer.getInt();<NEW_LINE>storageGroupTTLMap = new HashMap<>(storageGroupTTLMapSize);<NEW_LINE>for (int i = 0; i < storageGroupTTLMapSize; i++) {<NEW_LINE>try {<NEW_LINE>storageGroupTTLMap.put(new PartialPath(SerializeUtils.deserializeSt...
int roleMapSize = buffer.getInt();
608,491
public void run(RegressionEnvironment env) {<NEW_LINE>String[] <MASK><NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#length(10) " + "match_recognize (" + " partition by value" + " measures E1.value as value" + " pattern (E1 E2 | E2 E1 ) " + " define " + " E1 as E1.theString = 'A', " + " E2...
fields = "value".split(",");
176,455
protected <S extends StylingString> S format(CommandStream.Node element, S string, Follower.Prefetcher<String> follower) {<NEW_LINE>Service.CommandTreeNode data = element.getData();<NEW_LINE>if (data == null) {<NEW_LINE>string.append("Loading...", string.structureStyle());<NEW_LINE>} else {<NEW_LINE>if (data.getGroup()...
string, string.identifierStyle());
1,577,567
public static void main(String[] args) {<NEW_LINE>int seed = 43;<NEW_LINE>double learningRate = 0.4;<NEW_LINE>int nEpochs = 100;<NEW_LINE>int numInputs = XOR_INPUT[0].length;<NEW_LINE>int numOutputs = XOR_IDEAL[0].length;<NEW_LINE>int numHiddenNodes = 4;<NEW_LINE>// Setup training data.<NEW_LINE>INDArray xorInput = Nd4...
setListeners(new ScoreIterationListener(1));
1,723,025
// autogenerated by CtBiScannerGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public <T> void visitCtArrayRead(final spoon.reflect.code.CtArrayRead<T> arrayRead) {<NEW_LINE>spoon.reflect.code.CtArrayRead other = ((spoon.reflect.code.CtArrayRead) (this.stack.peek()));<NEW_LINE>enter(arrayRead);<NEW_LINE>biScan(spoon.re...
), other.getComments());
1,403,707
// ///////////////////////////// INITIALIZING UI PART ///////////////////////////////////<NEW_LINE>public void init(@NonNull final Context ctx, int w, int h) {<NEW_LINE>application = (OsmandApplication) ctx.getApplicationContext();<NEW_LINE>settings = application.getSettings();<NEW_LINE>paintGrayFill = new Paint();<NEW...
ctx.getSystemService(Context.WINDOW_SERVICE);
215,093
public void actionPerformed(ActionEvent e) {<NEW_LINE>// ParseDetails<NEW_LINE>try {<NEW_LINE>parseDetails();<NEW_LINE>} catch (Exception e2) {<NEW_LINE>System.err.println("Details are not valid");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CleanBuilding building = SimulationFrame.this.parent.parent.building;<NEW_LINE>datase...
System.err.println("Algorithm doesn't exist");
1,062,338
public static String diagramToXml(Diagram diagram) {<NEW_LINE>Document doc = XMLParser.createDocument();<NEW_LINE>Element diagramElement = doc.createElement(DIAGRAM);<NEW_LINE>diagramElement.setAttribute(ATTR_PROGRAM, "umletino");<NEW_LINE>diagramElement.setAttribute(ATTR_VERSION, BuildInfoProperties.getVersion());<NEW...
String xml = doc.toString();
101,013
public void decode(BitReader _in, ICSInfo info, Profile profile) throws AACException {<NEW_LINE>lag = 0;<NEW_LINE>if (profile.equals(Profile.AAC_LD)) {<NEW_LINE>lagUpdate = _in.readBool();<NEW_LINE>if (lagUpdate)<NEW_LINE>lag = _in.readNBit(10);<NEW_LINE>} else<NEW_LINE>lag = _in.readNBit(11);<NEW_LINE>if (lag > (frame...
w] = _in.readBool();
320,090
final DescribeDBProxyEndpointsResult executeDescribeDBProxyEndpoints(DescribeDBProxyEndpointsRequest describeDBProxyEndpointsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBProxyEndpointsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
(super.beforeMarshalling(describeDBProxyEndpointsRequest));
99,822
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>getSerializedSize();<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeInt64(1, size_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeInt64(2, ...
, mapIndex_.get(i));
277,040
private JClass generateChangeListener(JDefinedClass cls, Map<String, JVar> fieldMap) throws JClassAlreadyExistsException {<NEW_LINE>final JClass changeListenerInterface = getCodeModel().ref(CheckedMap.ChangeListener.class);<NEW_LINE>final JDefinedClass changeListenerClass = cls._class(JMod.PRIVATE | JMod.STATIC, "Chang...
method.annotate(Override.class);
1,506,209
public ParsedLine parse(String line, int cursor, ParseContext context) throws SyntaxError {<NEW_LINE>if (line.isBlank())<NEW_LINE>return simplest(line, cursor, 0, Collections.emptyList());<NEW_LINE>var tokensRaw = new CommonTokenStream(CommonCliRepl.createLexer(line, new BaseErrorListener()));<NEW_LINE>tokensRaw.fill()...
(word), line, cursor);
964,358
private static void modifyOffset(final CpcSketch sketch, final int newOffset) {<NEW_LINE>assert ((newOffset >= 0) && (newOffset <= 56));<NEW_LINE>assert (newOffset == (sketch.windowOffset + 1));<NEW_LINE>assert (newOffset == CpcUtil.determineCorrectOffset(sketch.lgK, sketch.numCoupons));<NEW_LINE>assert (sketch.sliding...
= (1L << newOffset) - 1L;
1,436,551
public static ItemStack staticParse(@NotNull String input) throws ArgumentSyntaxException {<NEW_LINE>final int nbtIndex = input.indexOf("{");<NEW_LINE>if (nbtIndex == 0)<NEW_LINE>throw new ArgumentSyntaxException("The item needs a material", input, NO_MATERIAL);<NEW_LINE>if (nbtIndex == -1) {<NEW_LINE>// Only material ...
ArgumentSyntaxException("Item NBT is invalid", input, INVALID_NBT);
1,841,976
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>searchHelper = new WikivoyageSearchHelper(app);<NEW_LINE>final View mainView = inflate(R.layout.fragment_wikivoyage_search_...
pos = rv.getChildAdapterPosition(v);
1,091,915
protected void initialize() {<NEW_LINE>super.initialize();<NEW_LINE>assert imageView != null : "fx:id=\"imageView\" was not injected: check your FXML file 'DrawableTile.fxml'.";<NEW_LINE>// set up properties and binding<NEW_LINE>setCache(true);<NEW_LINE>setCacheHint(CacheHint.SPEED);<NEW_LINE>nameLabel.prefWidthPropert...
bind(imageView.fitWidthProperty());
458,534
public static Optional<CitationStyle> createCitationStyleFromFile(final String styleFile) {<NEW_LINE>if (!isCitationStyleFile(styleFile)) {<NEW_LINE>LOGGER.error("Can only load style files: {}", styleFile);<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String text;<NEW_LINE>String internalFile = ...
CitationStyle.class.getResource(internalFile);
25,977
public Collection<ErrorDescription> check(JPAProblemContext ctx, HintContext hc, AttributeWrapper attrib) {<NEW_LINE>Set<Modifier> fieldModifiers = attrib.getInstanceVariable() == null ? null : attrib<MASK><NEW_LINE>Set<Modifier> accesorModifiers = attrib.getAccesor() == null ? null : attrib.getAccesor().getModifiers()...
.getInstanceVariable().getModifiers();
146,282
public static void start(@NonNull Activity activity, @NonNull EditParams params) {<NEW_LINE>Statistics.INSTANCE.trackUGCStart(false, params.isFromPP(), params.isFromNotification());<NEW_LINE>UserActionsLogger.logUgcEditorOpened();<NEW_LINE>final Intent i = new Intent(activity, UGCEditorActivity.class);<NEW_LINE>Bundle ...
ARG_DEFAULT_RATING, params.getDefaultRating());
1,142,327
public Request<SendAlexaOfferToMasterRequest> marshall(SendAlexaOfferToMasterRequest sendAlexaOfferToMasterRequest) {<NEW_LINE>if (sendAlexaOfferToMasterRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(SendAlexaOfferToMasterRequest)");<NEW_LINE>}<NEW_LINE>Request<SendAlex...
String channelARN = sendAlexaOfferToMasterRequest.getChannelARN();
1,069,060
public List<CompletableFuture<StreamBucket>> prepareOnHandler(SessionSettings sessionInfo, Collection<? extends NodeOperation> nodeOperations, RootTask.Builder taskBuilder, List<Tuple<ExecutionPhase, RowConsumer>> handlerPhases, SharedShardContexts sharedShardContexts) {<NEW_LINE>Context context = new Context(clusterSe...
add(phase.phaseId());
1,493,143
private Mono<Response<DataBoxEdgeDeviceInner>> updateWithResponseAsync(String deviceName, String resourceGroupName, DataBoxEdgeDevicePatch parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requ...
error(new IllegalArgumentException("Parameter deviceName is required and cannot be null."));
637,065
public Promise<int[]> run(final Context ctx) {<NEW_LINE>if (_range.size() == 0) {<NEW_LINE>return Promises.value(new int[0]);<NEW_LINE>} else if (_range.size() == 1) {<NEW_LINE>return Promises.value(new int[] { _toSort[_range.start()] });<NEW_LINE>} else {<NEW_LINE>// Neither base case applied, so recursively split thi...
ctx.run(fst, snd);
1,470,011
private void processModificationEvent(WatchKey key, WatchEvent<?> event, Path resolvedPath, AbstractWatchService service) {<NEW_LINE>synchronized (futures) {<NEW_LINE>logger.trace("Modification event for {} ", resolvedPath);<NEW_LINE>ScheduledFuture<?> previousFuture = removeScheduledJob(key, resolvedPath);<NEW_LINE>if...
logger.trace("Executing job for {}", resolvedPath);
109,069
public ValueDerivatives apply(DoublesPair x) {<NEW_LINE>double t = x.getFirst();<NEW_LINE>double k = x.getSecond();<NEW_LINE>double r = interestRate.apply(t);<NEW_LINE>double q = dividendRate.apply(t);<NEW_LINE>double price = callPriceSurface.zValue(t, k);<NEW_LINE>DoubleArray priceSensi = callPriceSurface.zValueParame...
t, k).getSensitivity();