idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
321,345
protected String buildString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String ls = System.getProperty("line.separator");<NEW_LINE>sb.append("[SSH2 KEX init Header (").append(length()).append(" bytes)]").append(ls);<NEW_LINE>sb.append(" Message Number: ").append(messageNumber).append(ls);<NEW_LINE>s...
(macAlgorithmsServerToClient).append(ls);
455,221
protected String toDisplayString(boolean allowSideEffects) {<NEW_LINE>final <MASK><NEW_LINE>final ConditionProfile profile = ConditionProfile.getUncached();<NEW_LINE>String result = "SpecialVariableStorage($~: ";<NEW_LINE>if (lastMatch != null) {<NEW_LINE>try {<NEW_LINE>result += interop.asString(interop.toDisplayStrin...
InteropLibrary interop = InteropLibrary.getUncached();
1,053,867
public static boolean containsItems(EditorOperator editor, String... items) {<NEW_LINE>Set<String> actItems = new HashSet<String>();<NEW_LINE>List<String> expItems = Arrays.asList(items);<NEW_LINE>editor.pushKey(KeyEvent.VK_INSERT, KeyEvent.ALT_DOWN_MASK);<NEW_LINE>JDialogOperator jdo = new JDialogOperator();<NEW_LINE>...
CodeGenerator) lm.getElementAt(i);
461,156
public static void main(String[] args) {<NEW_LINE>System.out.println("Starting minimizer test...");<NEW_LINE>List<List<String>> pathList = new ArrayList<>();<NEW_LINE>TransducerGraph randomFA = TransducerGraph.createRandomGraph(5000, 5, 1.0, 5, pathList);<NEW_LINE>List<Double> outputs = randomFA.getPathOutputs(pathList...
+ outputs.equals(minOutputs));
1,270,349
protected boolean isCollectionEmpty(MetaProperty property) {<NEW_LINE>MetaProperty inverseProperty = property.getInverse();<NEW_LINE>if (inverseProperty == null) {<NEW_LINE><MASK><NEW_LINE>Collection<Entity> value = entity.getValue(property.getName());<NEW_LINE>return value == null || value.isEmpty();<NEW_LINE>}<NEW_LI...
log.warn("Inverse property not found for property {}", property);
1,486,933
public void acceptEx(Configuration configuration) throws Exception {<NEW_LINE>try {<NEW_LINE>configuration.setBoolean(FileInputFormat.INPUT_DIR_NONRECURSIVE_IGNORE_SUBDIRS, true);<NEW_LINE>configuration.setBoolean(FileInputFormat.INPUT_DIR_RECURSIVE, false);<NEW_LINE>configuration.setBoolean(HadoopSources.SHARED_LOCAL_...
throw new JetException("Could not create a source", e);
1,775,191
public Object calculate(Context ctx) {<NEW_LINE>ArrayList<Number> num = new ArrayList<Number>();<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("gcd" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object result = ...
Sequence) result).length();
1,107,294
public void testFlowableRxInvoker_getIbmReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>...
= System.currentTimeMillis() - startTime;
118,522
void writeFiles() throws IOException {<NEW_LINE>int numFiles = pkg.files.size();<NEW_LINE>if (numFiles == 0)<NEW_LINE>return;<NEW_LINE>int options = archiveOptions;<NEW_LINE>boolean haveSizeHi = testBit(options, AO_HAVE_FILE_SIZE_HI);<NEW_LINE>boolean haveModtime = testBit(options, AO_HAVE_FILE_MODTIME);<NEW_LINE>boole...
(len >>> 32));
1,609,565
private void contribute(Map<String, Object> details, Dependency dependency) {<NEW_LINE>if (!ObjectUtils.isEmpty(dependency.getMappings())) {<NEW_LINE>Map<String, VersionRange> dep = new LinkedHashMap<>();<NEW_LINE>dependency.getMappings().forEach((it) -> {<NEW_LINE>if (it.getRange() != null && it.getVersion() != null) ...
(k, "Spring Boot " + r));
1,195,623
public void readFully(long pos, ByteBuffer buffer) {<NEW_LINE>checkOpen();<NEW_LINE>if (pos < 0 || pos > size) {<NEW_LINE>throw new IAE("pos %d out of range [%d, %d]", pos, 0, size);<NEW_LINE>}<NEW_LINE>int ourBufferIndex = Ints.checkedCast(pos / BUFFER_SIZE);<NEW_LINE>int ourBufferOffset = Ints.checkedCast(pos % BUFFE...
ourBuffer = buffers.get(ourBufferIndex);
429,710
private static int[][] unpackFromString(int size1, int size2, String st) {<NEW_LINE>int colonIndex = -1;<NEW_LINE>String lengthString;<NEW_LINE>int sequenceLength = 0;<NEW_LINE>int sequenceInteger = 0;<NEW_LINE>int commaIndex;<NEW_LINE>String workString;<NEW_LINE>int[][] res = new int[size1][size2];<NEW_LINE>for (int i...
] = Integer.parseInt(workString);
204,450
public static void main(String[] args) {<NEW_LINE>Locale.setDefault(Locale.ENGLISH);<NEW_LINE><MASK><NEW_LINE>System.setProperty(FlatSystemProperties.UI_SCALE, "1x");<NEW_LINE>File dir = new File("dumps/uidefaults");<NEW_LINE>dump(FlatLightLaf.class.getName(), dir, false);<NEW_LINE>dump(FlatDarkLaf.class.getName(), dir...
System.setProperty("sun.java2d.uiScale", "1x");
1,081,612
public Map<String, Object> invoke() {<NEW_LINE>Map<String, Object> details = new HashMap<>();<NEW_LINE>try {<NEW_LINE>if (userSessionData.getValue("idor-authenticated-as").equals("tom")) {<NEW_LINE>// going to use session auth to view this one<NEW_LINE>String authUserId = (String) userSessionData.getValue("idor-authent...
"role", userProfile.getRole());
1,478,528
protected Promise<List<T>> run(final Context context) throws Exception {<NEW_LINE>if (_tasks.length == 0) {<NEW_LINE>return Promises.value(Collections.emptyList());<NEW_LINE>}<NEW_LINE>final SettablePromise<List<T>> result = Promises.settable();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final PromiseListener<?> ...
T) task.get());
1,102,778
private void importIntoTrieLog(final TrieLogLayer layer, final Hash blockHash) {<NEW_LINE>layer.setBlockHash(blockHash);<NEW_LINE>for (final Map.Entry<Address, BonsaiValue<BonsaiAccount>> updatedAccount : accountsToUpdate.entrySet()) {<NEW_LINE>final BonsaiValue<BonsaiAccount> bonsaiValue = updatedAccount.getValue();<N...
BonsaiAccount newValue = bonsaiValue.getUpdated();
1,610,382
public static FileObject createJaxWsFileObject(final Project project) throws IOException {<NEW_LINE>try {<NEW_LINE>return ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<FileObject>() {<NEW_LINE><NEW_LINE>public FileObject run() throws IOException {<NEW_LINE>retrieveJaxWsFromResource(project.getProjectDire...
(IOException) e.getException();
207,005
public ConsumeQueue findConsumeQueue(String topic, int queueId) {<NEW_LINE>ConcurrentMap<Integer, ConsumeQueue> map = consumeQueueTable.get(topic);<NEW_LINE>if (null == map) {<NEW_LINE>ConcurrentMap<Integer, ConsumeQueue> newMap = new ConcurrentHashMap<Integer, ConsumeQueue>(128);<NEW_LINE>ConcurrentMap<Integer, Consum...
consumeQueueTable.putIfAbsent(topic, newMap);
1,804,354
private int deducePropertyCategory(Exp memberExp, Exp propertyNameExp) {<NEW_LINE>if (!(propertyNameExp instanceof Literal)) {<NEW_LINE>return Category.Value;<NEW_LINE>}<NEW_LINE>String propertyName = (String) ((Literal) propertyNameExp).getValue();<NEW_LINE>Hierarchy hierarchy = memberExp.getType().getHierarchy();<NEW...
badValue(property.getType());
264,993
private void handleCryptoOperationSuccess(MimeBodyPart outputPart) {<NEW_LINE>OpenPgpDecryptionResult decryptionResult = currentCryptoResult.getParcelableExtra(OpenPgpApi.RESULT_DECRYPTION);<NEW_LINE>OpenPgpSignatureResult signatureResult = currentCryptoResult.getParcelableExtra(OpenPgpApi.RESULT_SIGNATURE);<NEW_LINE>i...
pendingIntent, insecureWarningPendingIntent, outputPart, overrideCryptoWarning);
1,544,213
public Object visitInheritDoc(IType currentType, ITypeHierarchy typeHierarchy) throws JavaModelException {<NEW_LINE>ArrayList<IType> visited = new ArrayList<>();<NEW_LINE>visited.add(currentType);<NEW_LINE>Object result = visitInheritDocInterfaces(visited, currentType, typeHierarchy);<NEW_LINE>if (result != InheritDocV...
visitInheritDocInterfaces(visited, superClass, typeHierarchy);
1,839,598
protected <T> HttpResponse<T> validateFile(String executionId, URI path, String redirect) {<NEW_LINE>Optional<Execution> execution = executionRepository.findById(executionId);<NEW_LINE>if (execution.isEmpty()) {<NEW_LINE>throw new NoSuchElementException("Unable to find execution id '" + executionId + "'");<NEW_LINE>}<N...
), execution.get());
493,725
public void run(RegressionEnvironment env) {<NEW_LINE>EPStage stageA = env.stageService().getStage("ST");<NEW_LINE>tryIllegalArgument(() <MASK><NEW_LINE>tryOp(() -> stageA.stage(Collections.emptyList()));<NEW_LINE>tryIllegalArgument(() -> stageA.stage(Arrays.asList(new String[] { null })));<NEW_LINE>tryIllegalArgument(...
-> stageA.stage(null));
215,772
public static Bech32Data decode(final String str) throws AddressFormatException {<NEW_LINE>boolean lower = false, upper = false;<NEW_LINE>if (str.length() < 8)<NEW_LINE>throw new AddressFormatException.InvalidDataLength("Input too short: " + str.length());<NEW_LINE>if (str.length() > 90)<NEW_LINE>throw new AddressForma...
c, i + pos + 1);
457,683
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.stockName, convLabelName("Stock Name"));<NEW_LINE>i...
ValidatorFactory.getInstance(Validator.MAX_LENGTH);
623,145
public static boolean isDatabaseOK(Properties ctx) {<NEW_LINE>// Validate UUID supported<NEW_LINE>DB.validateSupportedUUIDFromDB();<NEW_LINE>// Check Version<NEW_LINE>String version = "?";<NEW_LINE>String sql = "SELECT Version FROM AD_System";<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_L...
{ Adempiere.DB_VERSION, version });
62,645
Packet toNormalResponsePacket(long callId, int backupAcks, boolean urgent, Object value) {<NEW_LINE>byte[] bytes;<NEW_LINE>boolean isData = value instanceof Data;<NEW_LINE>if (isData) {<NEW_LINE>Data data = (Data) value;<NEW_LINE>int dataLengthInBytes = data.totalSize();<NEW_LINE>bytes = new byte[OFFSET_DATA_PAYLOAD + ...
toBytes(value, OFFSET_NOT_DATA, false);
1,591,122
public void perform(final TimerEvent event) {<NEW_LINE>if (shell.isDisposed()) {<NEW_LINE>event.cancel();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Utils.execSWTThread(new AERunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSupport() {<NEW_LINE>if (shell.isDisposed()) {<NEW_LINE>event.cancel();<NEW_LINE>retu...
getDisplay().getCursorLocation());
987,734
public static DescribeNASFileSystemsResponse unmarshall(DescribeNASFileSystemsResponse describeNASFileSystemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNASFileSystemsResponse.setRequestId(_ctx.stringValue("DescribeNASFileSystemsResponse.RequestId"));<NEW_LINE>describeNASFileSystemsResponse.setNextToken(_ctx...
("DescribeNASFileSystemsResponse.FileSystems[" + i + "].OfficeSiteId"));
574,812
public com.amazonaws.services.lookoutforvision.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lookoutforvision.model.ConflictException conflictException = new com.amazonaws.services.lookoutforvision.model.ConflictException(null);<NEW_LIN...
class).unmarshall(context));
1,458,838
public static ListFunctionFilesResponse unmarshall(ListFunctionFilesResponse listFunctionFilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionFilesResponse.setRequestId(_ctx.stringValue("ListFunctionFilesResponse.RequestId"));<NEW_LINE>FileList fileList = new FileList();<NEW_LINE>Pagination pagination = new ...
("ListFunctionFilesResponse.FileList.Files[" + i + "].Id"));
1,621,943
private void initLayout() {<NEW_LINE>parent.setLayout(new FillLayout());<NEW_LINE>Composite comp = new Composite(parent, SWT.NONE);<NEW_LINE>tableColumnLayout = new TableColumnLayout();<NEW_LINE>comp.setLayout(tableColumnLayout);<NEW_LINE>viewer = new TableViewer(comp, SWT.FULL_SELECTION | SWT.BORDER | SWT.V_SCROLL | S...
yyyymmdd, data.objHash, serverId);
1,679,737
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>// Inflate the layout for this fragment<NEW_LINE>View view = inflater.inflate(R.layout.fragment_arp_replay_dialog, container, false);<NEW_LINE>getDialog().setTitle("ARP Replay Attack");<NEW_LINE>btnArpStart = (B...
intent.putExtra("ATTACK", ob);
1,237,330
public com.amazonaws.services.waf.model.WAFInternalErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.waf.model.WAFInternalErrorException wAFInternalErrorException = new com.amazonaws.services.waf.model.WAFInternalErrorException(null);<NEW_LINE>int o...
JsonToken token = context.getCurrentToken();
1,201,440
public byte[] decodeMessage() {<NEW_LINE>byte[] data = new byte[12];<NEW_LINE>data[0] = 0x0B;<NEW_LINE>data[1] = LIGHTING2.toByte();<NEW_LINE>data[<MASK><NEW_LINE>data[3] = seqNbr;<NEW_LINE>data[4] = (byte) ((sensorId >> 24) & 0xFF);<NEW_LINE>data[5] = (byte) ((sensorId >> 16) & 0xFF);<NEW_LINE>data[6] = (byte) ((senso...
2] = subType.toByte();
1,562,276
protected Control createCustomArea(Composite parent) {<NEW_LINE>loadable = new LoadablePanel<Text>(parent, widgets, panel -> new Text(panel, SWT.MULTI | SWT.READ_ONLY | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL));<NEW_LINE>loadable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));<NEW_LINE>loadable.startLoadi...
error(e.getMessage());
1,692,891
@RequestMapping(value = "/persistent/{rpcId}", method = RequestMethod.DELETE)<NEW_LINE>@ResponseBody<NEW_LINE>public void deleteRpc(@ApiParam(value = RPC_ID_PARAM_DESCRIPTION, required = true) @PathVariable(RPC_ID) String strRpc) throws ThingsboardException {<NEW_LINE>checkParameter("RpcId", strRpc);<NEW_LINE>try {<NEW...
rpc.setStatus(RpcStatus.DELETED);
651,317
public void moveChild(String name, int index) throws NotFoundException {<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>checkDeleted();<NEW_LINE>int currentIndex = 0;<NEW_LINE>boolean foundName = false;<NEW_LINE>Group group = null;<NEW_LINE>// TODO: this could be slow and may need monitor<NEW_LINE>List<DBRecord> list...
= fragmentAdapter.getFragmentRecord(-childID);
1,492,658
private Tree fixNonUnaryRoot(Tree t, TreeFactory tf) {<NEW_LINE>List<Tree> kids = t.getChildrenAsList();<NEW_LINE>if (kids.size() == 2 && t.firstChild().isPhrasal() && tlp.isSentenceFinalPunctuationTag(t.lastChild().value())) {<NEW_LINE>List<Tree> grandKids = t.firstChild().getChildrenAsList();<NEW_LINE>grandKids.add(t...
, Collections.singletonList(t));
1,559,743
public void onSaveInstanceState(@NonNull Bundle outState) {<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>outState.putInt(KEY_SELECTED_YEAR, mCalendar.get(Calendar.YEAR));<NEW_LINE>outState.putInt(KEY_SELECTED_MONTH, mCalendar.get(Calendar.MONTH));<NEW_LINE>outState.putInt(KEY_SELECTED_DAY, mCalendar.get(Calen...
outState.putInt(KEY_ACCENT, mAccentColor);
619,475
public PutObjectResult handleRequest(Object input, Context context) {<NEW_LINE>String filename = "java11.tgz";<NEW_LINE>String cmd = "tar -cpzf /tmp/" + filename + " --numeric-owner --ignore-failed-read /var/runtime /var/lang";<NEW_LINE>AmazonS3 s3client = AmazonS3ClientBuilder.standard().withRegion("us-east-1").build(...
println(stdoutScanner.nextLine());
1,760,188
final ListExplainabilityExportsResult executeListExplainabilityExports(ListExplainabilityExportsRequest listExplainabilityExportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listExplainabilityExportsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,495,853
private static String prettyPrint(SkyFunctionName skyFunctionName, Object arg) {<NEW_LINE>if (arg instanceof Artifact) {<NEW_LINE>return prettyPrintArtifact(((Artifact) arg));<NEW_LINE>} else if (arg instanceof ActionLookupData) {<NEW_LINE>return "action from: " + arg;<NEW_LINE>} else if (arg instanceof TopLevelActionL...
throw new IllegalStateException("Argument is not Action, TargetCompletion, AspectCompletion, or TestCompletion: " + arg);
193,634
public CreateUserImportJobResult createUserImportJob(CreateUserImportJobRequest createUserImportJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createUserImportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
1,317,435
final void tryRemoveAndExec(ForkJoinTask<?> task) {<NEW_LINE>ForkJoinTask<?>[] wa;<NEW_LINE>int s, wal;<NEW_LINE>if (// traverse from top<NEW_LINE>base - (s = top) < 0 && (wa = array) != null && (wal = wa.length) > 0) {<NEW_LINE>for (int m = wal - 1, ns = s - 1, i = ns; ; --i) {<NEW_LINE>int index = i & m;<NEW_LINE>lon...
putOrderedObject(wa, jOffset, f);
790,031
public KafkaAction 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>KafkaAction kafkaAction = new KafkaAction();<NEW_LINE>reader.beginObject();<...
().unmarshall(context));
1,351,443
protected void showDialog(Bundle state) {<NEW_LINE>Context context = getContext();<NEW_LINE>Resources res = context.getResources();<NEW_LINE>int topOffset = res.getDimensionPixelOffset(R.dimen.settings_fragment_dialog_vertical_inset);<NEW_LINE>AlertDialog.Builder builder = new MaterialAlertDialogBuilder(context).setBac...
(topOffset).setBackgroundInsetBottom(topOffset);
802,505
private SearchResponse doSearch(Object[] searchAfterValues) {<NEW_LINE>SearchRequest searchRequest = new SearchRequest(index);<NEW_LINE>searchRequest.indicesOptions(MlIndicesUtils.addIgnoreUnavailable(SearchRequest.DEFAULT_INDICES_OPTIONS));<NEW_LINE>SearchSourceBuilder sourceBuilder = (new SearchSourceBuilder().size(b...
.sort(sortField()));
72,327
public ResourcePath unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourcePath resourcePath = new ResourcePath();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,613,837
private void runBuilder(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>try {<NEW_LINE>pw = appUtils.<MASK><NEW_LINE>String configId = request.getParameter(JWTBuilderConstants.JWT_BUILDER_PARAM_BUILDER_ID);<NEW_LINE>createBuilder(configId);<NEW_LINE>// we should now have a popula...
outputEntry(response, JWTBuilderConstants.JWT_BUILDER_CREATE_ENDPOINT);
165,753
public List<? super PsiElement> process(@NotNull PsiClass psiClass, @Nullable String nameHint) {<NEW_LINE>final Optional<<MASK><NEW_LINE>final Optional<PsiAnnotation> builderAnnotation = parentClass.map(this::getSupportedAnnotation);<NEW_LINE>if (builderAnnotation.isPresent()) {<NEW_LINE>final PsiClass psiParentClass =...
PsiClass> parentClass = getSupportedParentClass(psiClass);
1,448,520
final PutMailboxPermissionsResult executePutMailboxPermissions(PutMailboxPermissionsRequest putMailboxPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putMailboxPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
246,186
private AndroidManifest parse(File androidManifestFile, boolean libraryProject) throws AndroidManifestNotFoundException {<NEW_LINE>DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>Document doc;<NEW_LINE>try {<NEW_LINE>DocumentBuilder docBuilder = docBuilderFactory.newDocumentBui...
String> usesPermissionQualifiedNames = extractUsesPermissionNames(usesPermissionNodes);
1,630,438
private void doExec(String args) throws IOException, InterruptedException, ConfigurationException {<NEW_LINE>int pos = args.indexOf(',');<NEW_LINE>if (pos == -1) {<NEW_LINE>// weird stuff<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Everything after the "," is what we're supposed to run<NEW_LINE>// First make note of jars w...
"PROFILE_PATH", CONFIGURATION.getProfilePath());
1,528,787
public void execute() throws UserException {<NEW_LINE>if (MailSystem.isValidEmailAddress(user.getUsername())) {<NEW_LINE>EmailMessage message = bimServer.getMailSystem().createMessage();<NEW_LINE>String body = null;<NEW_LINE>String subject = null;<NEW_LINE>try {<NEW_LINE>InternetAddress addressFrom = new InternetAddres...
UserException(e.getMessage());
782,906
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>com.goog...
writeMessage(9, getControllerExpandSecretRef());
479,131
private void checkAndNormalizeBackupObjs() throws AnalysisException {<NEW_LINE>for (TableRef tblRef : tblRefs) {<NEW_LINE>if (!Strings.isNullOrEmpty(tblRef.getName().getDb())) {<NEW_LINE>throw new AnalysisException("Cannot specify database name on backup objects: " + tblRef.getName().getTbl() + ". Sepcify database name...
tblPartsMap.put(tblName, tblRef);
1,599,267
public void marshall(SharePointConfiguration sharePointConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sharePointConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sharePointConfi...
sharePointConfiguration.getInclusionPatterns(), INCLUSIONPATTERNS_BINDING);
173,980
public void marshall(UpdateAppRequest updateAppRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateAppRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateAppRequest.getAppId(), APPID_B...
updateAppRequest.getEnableBranchAutoDeletion(), ENABLEBRANCHAUTODELETION_BINDING);
132,296
private void loadRemote(String parent, byte level, ArrayList<String> patterns) throws Exception {<NEW_LINE>if (!parent.endsWith("/"))<NEW_LINE>parent = parent + "/";<NEW_LINE>Vector fs = chSftp.ls(parent);<NEW_LINE>System.out.println(parent + ", " + fs.size());<NEW_LINE>// String status = ftp.getStatus(parent);<NEW_LIN...
.getAttrs().isDir();
1,763,071
public void handleChunkUnload(ChunkEvent.Unload event) {<NEW_LINE>if (!onchunkgenerate)<NEW_LINE>return;<NEW_LINE>IWorld w = event.getWorld();<NEW_LINE>if (!(w instanceof ServerWorld))<NEW_LINE>return;<NEW_LINE>IChunk c = event.getChunk();<NEW_LINE>if ((c != null) && (c.getStatus() == ChunkStatus.FULL)) {<NEW_LINE>Forg...
fw = getWorld(w, false);
257,855
public boolean processCommandLineArgs(String[] cliArgs) throws IOException, DatabusException {<NEW_LINE>CommandLineParser cliParser = new GnuParser();<NEW_LINE>_cmd = null;<NEW_LINE>try {<NEW_LINE>_cmd = cliParser.parse(_cliOptions, cliArgs);<NEW_LINE>} catch (ParseException pe) {<NEW_LINE>System.err.println(NAME + ": ...
_outputDirectory = _cmd.getOptionValue(OUTPUT_DIRECTORY_LONG_STR);
1,377,612
protected void configureGraphicalViewer() {<NEW_LINE>super.configureGraphicalViewer();<NEW_LINE>this.getGraphicalViewer().getControl().setBackground(UIUtils.getColorRegistry().get(ERDUIConstants.COLOR_ERD_DIAGRAM_BACKGROUND));<NEW_LINE>GraphicalViewer graphicalViewer = getGraphicalViewer();<NEW_LINE>DBPPreferenceStore ...
IAction zoomIn = new ZoomInAction(zoomManager);
1,558,627
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>if (controller == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl();<NEW_LIN...
.getTopCards(game, xValue));
731,622
public static byte[] writeTime(Date date, Calendar cal) {<NEW_LINE>if (date == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>byte[] buf = new byte[5];<NEW_LINE>if (cal == null) {<NEW_LINE>cal = Calendar.getInstance();<NEW_LINE>}<NEW_LINE>cal.setTime(date);<NEW_LINE>int year = cal.get(Calendar.YEAR);<NEW_LINE>// Fil...
>> 4) & 0x00000001));
379,273
public AwsElasticBeanstalkEnvironmentTier unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsElasticBeanstalkEnvironmentTier awsElasticBeanstalkEnvironmentTier = new AwsElasticBeanstalkEnvironmentTier();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
class).unmarshall(context));
400,856
// OPERATIONS<NEW_LINE>public MessagingSubscription[] listSubscriptions() throws Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "getSubscriptions");<NEW_LINE>List list = new ArrayList();<NEW_LINE>Iterator iter = _c.getTopicSpace().getLocalSubscriptionItera...
.createSIBSubscription((SIMPLocalSubscriptionControllable) o);
1,012,950
public void preparedData() {<NEW_LINE>AlterTableGroupModifyPartition alterTableGroupModifyPartition = (AlterTableGroupModifyPartition) relDdl;<NEW_LINE>String tableGroupName = alterTableGroupModifyPartition.getTableGroupName();<NEW_LINE>String tableName = alterTableGroupModifyPartition<MASK><NEW_LINE>SqlAlterTableGroup...
.getTableName().toString();
118,294
public static List<Column> createQueryColumnTemplateList(String[] cols, Query theQuery, String[] querySQLOutput) {<NEW_LINE>ArrayList<Column> columnTemplateList = new ArrayList<>();<NEW_LINE>theQuery.prepare();<NEW_LINE>// String array of length 1 is to receive extra 'output' field in<NEW_LINE>// addition to<NEW_LINE>/...
> withExpressions = theQuery.getExpressions();
132,080
public void showHomeFollowingArticles(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject user = (JSONObject) context.attr(User.USER);<NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context, "home/following-articles.ftl");<NEW_LINE>fina...
(followingArticleCnt / (double) pageSize);
384,439
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle bundle) {<NEW_LINE>final View view = inflater.inflate(R.layout.conversation_fragment, container, false);<NEW_LINE>list = ViewUtil.findById(view, android.R.id.list);<NEW_LINE>scrollToBottomButton = ViewUtil.findById(view, R.id.scroll_...
setOnClickListener(v -> scrollToBottom());
1,449,468
public ArrayList<Character> transaction(int[] data, int listen, int timeout) throws IOException {<NEW_LINE><MASK><NEW_LINE>packetHandler.sendByte(commandsProto.NRF_TRANSACTION);<NEW_LINE>packetHandler.sendByte(data.length);<NEW_LINE>packetHandler.sendInt(timeout);<NEW_LINE>for (int _data : data) {<NEW_LINE>packetHandle...
packetHandler.sendByte(commandsProto.NRFL01);
103,729
private static Vector apply(CompIntLongVector v1, IntDummyVector v2, Binary op) {<NEW_LINE>IntLongVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getStorage...
getStorage().getValues());
1,516,359
@SuppressWarnings("FutureReturnValueIgnored")<NEW_LINE>public void run() {<NEW_LINE>if (evicts()) {<NEW_LINE>long weightedSize = weightedSize();<NEW_LINE>setWeightedSize(weightedSize + weight);<NEW_LINE>setWindowWeightedSize(windowWeightedSize() + weight);<NEW_LINE>node.setPolicyWeight(node.getPolicyWeight() + weight);...
? data.mappingCount() : maximum;
616,375
private BackupState fetchAndBackupItems(BackupConfig config) {<NEW_LINE>BackupCursors cursors = null;<NEW_LINE>try {<NEW_LINE>final ContactGroupIds groupIds = contactAccessor.getGroupContactIds(service.getContentResolver(), config.groupToBackup);<NEW_LINE>cursors = new BulkFetcher(fetcher).fetch(config.<MASK><NEW_LINE>...
typesToBackup, groupIds, config.maxItemsPerSync);
1,324,289
protected void onBindPreferenceViewHolder(Preference preference, PreferenceViewHolder holder) {<NEW_LINE>super.onBindPreferenceViewHolder(preference, holder);<NEW_LINE>String key = preference.getKey();<NEW_LINE>if (key == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final View itemView = holder.itemView;<NEW_LINE>if (p...
getString(mode.getDescription());
1,525,591
public CompletableFuture<JobResponse> nodeOperation(final JobRequest request) {<NEW_LINE>RootTask.Builder contextBuilder = tasksService.newBuilder(request.jobId(), request.sessionSettings().userName(), request.coordinatorNodeId(), Collections.emptySet());<NEW_LINE>SharedShardContexts sharedShardContexts = maybeInstrume...
request.enableProfiling(), contextBuilder);
1,444,063
// for api level >=23<NEW_LINE>public static Object makeNativeLibraryElement(File dir) throws IOException {<NEW_LINE>if (Build.VERSION.SDK_INT > 25 || Build.VERSION.SDK_INT == 25 && Build.VERSION.PREVIEW_SDK_INT > 0) {<NEW_LINE>try {<NEW_LINE>Class NativeLibraryElement = Class.forName("dalvik.system.DexPathList$NativeL...
cons = getElementConstructor(Element, constructorArgs1);
1,513,545
protected void onPollingResponse(HttpClientRequest request, Response response, AttributeRef attributeRef, HTTPAgentLink agentLink) {<NEW_LINE>int responseCode = response != null ? response.getStatus() : 500;<NEW_LINE>Object value = null;<NEW_LINE>if (response != null && response.hasEntity() && response.getStatusInfo()....
) : ProtocolUtil.bytesToBinaryString(bytes);
567,250
public void lazyEnlist(LazyEnlistableConnectionManager lazyEnlistableConnectionManager) throws ResourceException {<NEW_LINE>if (tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "lazyEnlist", this);<NEW_LINE>}<NEW_LINE>// Signal the ConnectionManager directly to lazily enlist.<NEW_LINE>// ['if/else' block added under LIDB21...
Boolean.TRUE : Boolean.FALSE);
1,196,156
public static void validateBiomeNames() {<NEW_LINE>Set<ResourceLocation> invalids = new HashSet<>();<NEW_LINE>addInvalidBiomeNames(excessiveBiomes, invalids);<NEW_LINE>addInvalidBiomeNames(excludedBiomes, invalids);<NEW_LINE>addInvalidBiomeNames(surfaceDepositBiomes, invalids);<NEW_LINE>if (invalids.isEmpty()) {<NEW_LI...
.comparing(ResourceLocation::toString));
1,365,638
public AdminUserGlobalSignOutResult adminUserGlobalSignOut(AdminUserGlobalSignOutRequest adminUserGlobalSignOutRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminUserGlobalSignOutRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
827,181
String dumpTx(ZooStore<FateCommand> zs, String[] args) {<NEW_LINE>List<Long> txids;<NEW_LINE>if (args.length == 1) {<NEW_LINE>txids = zs.list();<NEW_LINE>} else {<NEW_LINE>txids = new ArrayList<>();<NEW_LINE>for (int i = 1; i < args.length; i++) {<NEW_LINE>txids.add(parseTxid(args[i]));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>G...
txStacks = new ArrayList<>();
1,254,959
private static Timestamp<?> on(@SuppressWarnings("rawtypes") Map map, boolean meta) {<NEW_LINE>String tsField = meta ? MongoDBRiver.LAST_TIMESTAMP_FIELD : MongoDBRiver.OPLOG_TIMESTAMP;<NEW_LINE>Object timestamp = map.get(tsField);<NEW_LINE>if (timestamp == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (timestamp...
throw new IllegalStateException("Missing property: " + gtidField);
78,485
private void copyDeclarations(JavascriptClass superClass, JavascriptClass subClass, Node inheritsCall) {<NEW_LINE>for (Node staticGetProp : superClass.staticFieldAccess) {<NEW_LINE>checkState(staticGetProp.isGetProp());<NEW_LINE>String memberName = staticGetProp.getString();<NEW_LINE>// We only copy declarations that h...
Node parent = inheritsCall.getParent();
1,761,515
private void generateRangeCoordinatesRecursive(final List<String> vars, final int idx, final String praefix, final List<Pair<String, Geopoint>> result) {<NEW_LINE>if (idx < vars.size()) {<NEW_LINE>final String var = vars.get(idx);<NEW_LINE>final VariableMap.VariableState <MASK><NEW_LINE>for (int i = 0; i < Objects.requ...
state = varList.getState(var);
746,868
private static void validateArgumentCombination(CommandLine args) throws CliArgumentsException {<NEW_LINE>if (!args.hasOption(HELP_OPTION) && !args.hasOption(VERSION_OPTION)) {<NEW_LINE>if (!args.hasOption(ENDPOINT_OPTION)) {<NEW_LINE>throw new CliArgumentsException("Endpoint must be specified");<NEW_LINE>}<NEW_LINE>if...
("Both '%s' and '%s' must be specified together", CERTIFICATE_OPTION, PRIVATE_KEY_OPTION));
1,604,554
public static ValueSetAutocompleteOptions validateAndParseOptions(DaoConfig theDaoConfig, IPrimitiveType<String> theContext, IPrimitiveType<String> theFilter, IPrimitiveType<Integer> theCount, IIdType theId, IPrimitiveType<String> theUrl, IBaseResource theValueSet) {<NEW_LINE>boolean haveId = theId <MASK><NEW_LINE>bool...
!= null && theId.hasIdPart();
768,596
public FileEntity postFoldersPath(String path) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'path' is set<NEW_LINE>if (path == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'path' when calling postFoldersPath");<NEW_LINE>}<NEW_LI...
localVarAuthNames = new String[] {};
1,564,550
private void genBitSet(BitSet p, int id) {<NEW_LINE>int _tabs_ = tabs;<NEW_LINE>// wanna have bitsets on module scope, so they are available<NEW_LINE>// when module gets loaded.<NEW_LINE>tabs = 0;<NEW_LINE>println("");<NEW_LINE>println("### generate bit set");<NEW_LINE>println("def mk" + getBitsetName(id) + "(): ");<NE...
int n = p.lengthInLongWords();
1,499,556
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 4 && args.length != 5) {<NEW_LINE>System.err.printf("Expected 4 or 5 parameters, got %d\n", args.length);<NEW_LINE>System.err.println("Usage: java AeadExample encrypt/decrypt key-file input-file output-file" + " [associated-data]");<N...
new File(args[3]);
653,819
public void run(Transaction tx, Key userKey, Void arg) {<NEW_LINE>Entity user = tx.get(userKey);<NEW_LINE>if (user == null) {<NEW_LINE>System.out.printf("User '%s' does not exist.%n", userKey.getName());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (user.contains("contact")) {<NEW_LINE>FullEntity<IncompleteKey> contact = us...
setLimit(limit).build();
727,592
final CreateEventTrackerResult executeCreateEventTracker(CreateEventTrackerRequest createEventTrackerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEventTrackerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
invoke(request, responseHandler, executionContext);
1,026,280
private BaseBottomSheetItem createAddNewCategoryItem() {<NEW_LINE>OsmandApplication app = requiredMyApplication();<NEW_LINE>View container = UiUtilities.getInflater(app, nightMode).inflate(R.layout.bottom_sheet_item_with_descr_64dp, null);<NEW_LINE>container.setMinimumHeight(getResources().getDimensionPixelSize(R.dimen...
.id.description), false);
7,159
public static DescribeHotDbListResponse unmarshall(DescribeHotDbListResponse describeHotDbListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeHotDbListResponse.setRequestId(_ctx.stringValue("DescribeHotDbListResponse.RequestId"));<NEW_LINE>describeHotDbListResponse.setSuccess(_ctx.booleanValue("DescribeHotDbList...
= new ArrayList<String>();
1,102,225
public void testCopyFuture() throws Exception {<NEW_LINE>ManagedExecutor executor = ManagedExecutor.builder().propagated(TestContextTypes.STATE).cleared(ThreadContext.ALL_REMAINING).build();<NEW_LINE>CurrentLocation.setLocation("Minneapolis", "Minnesota");<NEW_LINE>CompletableFuture<String> unmanagedFuture = new Comple...
(TIMEOUT_NS, TimeUnit.NANOSECONDS));
1,630,228
// TODO: convert to for loops?<NEW_LINE>@Override<NEW_LINE>public boolean fillTemplate(IFilledTemplate filledTemplate, IStatementParameter[] params) {<NEW_LINE>PatternParameterYDir yDir = getParam(0, params, PatternParameterYDir.UP);<NEW_LINE>PatternParameterXZDir xzDir = getParam(1, params, PatternParameterXZDir.EAST)...
PatternParameterYDir.UP ? 1 : -1;
263,632
public Block readBlock(SliceInput sliceInput) {<NEW_LINE>SliceType dataType = null;<NEW_LINE>CharsetName charsetName = Optional.of(sliceInput.readInt()).map(i -> {<NEW_LINE>byte[] bs = new byte[i];<NEW_LINE>sliceInput.readBytes(bs);<NEW_LINE>String c = new String(bs, UTF8);<NEW_LINE>return c;<NEW_LINE>}).map(CharsetNam...
= new SliceType(charsetName, collationName);
852,562
private List<Wo> listLike(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isEmpty(wi.getKey())) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey()));<NEW_LINE>EntityManager em = business....
CriteriaBuilder cb = em.getCriteriaBuilder();
717,579
// fill tuple life cycle time to edges<NEW_LINE>private static void fillTLCValue2Edge(List<MetricInfo> componentMetrics, Map<String, TopologyEdge> edges) {<NEW_LINE>String EDGE_DIM = "." + MetricDef.TUPLE_LIEF_CYCLE;<NEW_LINE>for (MetricInfo info : componentMetrics) {<NEW_LINE>if (info == null)<NEW_LINE>continue;<NEW_L...
split_name = name.split("@");