idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
926,894
public final KeyContext key() throws RecognitionException {<NEW_LINE>KeyContext _localctx = new KeyContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 12, RULE_key);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(71);<NEW_LINE>_errHandler.sync(this);<NEW_LINE><M...
_la = _input.LA(1);
1,127,468
public static String buildString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("Applicaiton Scoped Bean: " + ApplicationScopedState.toString() + System.lineSeparator());<NEW_LINE>sb.append("Request Scoped Bean: " + RequestScopedState.toString(<MASK><NEW_LINE>sb.append("Session Scoped Bean: " +...
) + System.lineSeparator());
321,601
static public boolean startStandardReport(ProcessInfo processInfo) {<NEW_LINE>ReportEngine re = null;<NEW_LINE>//<NEW_LINE>// Create Report Engine by using attached MPrintFormat (if any)<NEW_LINE>Object o = processInfo.getTransientObject();<NEW_LINE>if (o == null)<NEW_LINE>o = processInfo.getSerializableObject();<NEW_L...
Env.getCtx(), processInfo);
1,485,415
public JavaNode visitNewClass(JCNewClass newClass, TreeContext owner) {<NEW_LINE>TreeContext ctx = owner.down(newClass);<NEW_LINE>if (newClass == null || newClass.constructor == null) {<NEW_LINE>logger.atWarning().log("Unexpected null class or constructor: %s", newClass);<NEW_LINE>return emitDiagnostic(ctx, "error anal...
newClass.getEnclosingExpression(), ctx);
559,472
final ListEntityRecognizerSummariesResult executeListEntityRecognizerSummaries(ListEntityRecognizerSummariesRequest listEntityRecognizerSummariesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEntityRecognizerSummariesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
127,830
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().<MASK><NEW_LINE>final IOperandTreeNode registerOperand2 = instruction.getO...
getChildren().get(0);
1,509,198
private void constructRelativeNotificationPaths(Set<String> rAdded, Set<String> rModified, Set<String> rDeleted, Collection<File> createdFiles, Collection<File> modifiedFiles, Collection<File> deletedFiles) {<NEW_LINE>Map<String, List<EntryInfo>> ownerAdded = buildOwnerMapOfEntryInfo(createdFiles);<NEW_LINE>Map<String,...
>> affectedAdded = buildAffectedMapOfEntryInfo(ownerAdded);
1,005,247
public static GdbBreakpointInfo parse(GdbMiFieldList info, Integer curIid) {<NEW_LINE>GdbMiFieldList <MASK><NEW_LINE>if (bkpt != null) {<NEW_LINE>return parseBkpt(bkpt, parseLocations(info), curIid);<NEW_LINE>}<NEW_LINE>GdbMiFieldList wpt = info.getFieldList("wpt");<NEW_LINE>if (wpt != null) {<NEW_LINE>return parseWpt(...
bkpt = info.getFieldList("bkpt");
902,438
public static void closeAllConsumers() {<NEW_LINE>try {<NEW_LINE>// Shutdown all consumers<NEW_LINE>synchronized (KafkaConsumerManager.class) {<NEW_LINE>LOGGER.info("Trying to shutdown all the kafka consumers");<NEW_LINE>Iterator<ConsumerAndIterator> consumerIterator = CONSUMER_AND_ITERATOR_FOR_CONFIG_KEY.values().iter...
consumerAndIterator.getId(), e);
1,106,423
public BeginTransactionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BeginTransactionResult beginTransactionResult = new BeginTransactionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
423,054
void addUnique(Feature parsedFeature) {<NEW_LINE>String parsedFileName = getFileName(parsedFeature);<NEW_LINE>Map<String, Feature> existingFeatures = sourceToFeature.get(parsedFeature.getSource());<NEW_LINE>if (existingFeatures != null) {<NEW_LINE>// Same contents but different file names was probably<NEW_LINE>// inten...
"\n" + "If your features are on the class path consider using a class path URI.\n" + "For example: 'classpath:com/example/app.feature'\n" + "Otherwise you'll have to provide a more specific location");
1,398,254
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>Bundle bundle = getIntent().getExtras();<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>listenerTextList = findViewById(R.id.listenerTextList);<NEW_LINE>messageOutputTextList = findViewById(R.id.messageOutputTextList);<NEW_LINE>frameLayout = findViewById...
findViewById(R.id.statuslabel);
990,610
private static Object add(final Object array, final int index, final Object element, final Class<?> clss) {<NEW_LINE>if (array == null) {<NEW_LINE>if (index != 0) {<NEW_LINE>throw new IndexOutOfBoundsException("Index: " + index + ", Length: 0");<NEW_LINE>}<NEW_LINE>Object joinedArray = <MASK><NEW_LINE>Array.set(joinedA...
Array.newInstance(clss, 1);
280,448
private Symbol.MethodSymbol findConstructor(IModule module, String fqn, BasicJavacTask javacTask) {<NEW_LINE>manifold.rt.api.util.Pair<Symbol.ClassSymbol, JCTree.JCCompilationUnit> classSymbol = ClassSymbols.instance(module).getClassSymbol(javacTask, fqn);<NEW_LINE>Symbol.<MASK><NEW_LINE>Symbol.MethodSymbol ctor = null...
ClassSymbol cs = classSymbol.getFirst();
580,213
private void sendToNextURIInSequentialMode() {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "sendToNextURIInSequentialMode");<NEW_LINE>}<NEW_LINE>// sequential mode - send to next URI.<NEW_LINE>if (_activeBranchCount > 0) {<NEW_LINE>// The last branch has not completed yet. Exit...
c_logger.traceExit(this, "sendToNextURIInSequentialMode");
1,753,667
public void clearApplicationData(Context context, LogoutListener logoutListener) {<NEW_LINE>File cacheDirectory = context.getCacheDir();<NEW_LINE>File applicationDirectory = new File(cacheDirectory.getParent());<NEW_LINE>if (applicationDirectory.exists()) {<NEW_LINE>String[] fileNames = applicationDirectory.list();<NEW...
defaultPrefs.putBoolean("firstrun", false);
1,112,948
public void insertDataSample() {<NEW_LINE>try {<NEW_LINE>RestClients.create(ClientConfiguration.localhost()).rest().indices().create(new CreateIndexRequest("conference-index"), RequestOptions.DEFAULT);<NEW_LINE>} catch (IOException | ElasticsearchStatusException e) {<NEW_LINE>// just ignore it<NEW_LINE>}<NEW_LINE>var d...
19.9449799)).build());
788,656
boolean asyn_predict() {<NEW_LINE>HashMap<String, String> feed_data = new HashMap<String, String>() {<NEW_LINE><NEW_LINE>{<NEW_LINE>put("words", "i am very sad | 0");<NEW_LINE>}<NEW_LINE>};<NEW_LINE>System.out.println(feed_data);<NEW_LINE>List<String> <MASK><NEW_LINE>System.out.println(fetch);<NEW_LINE>if (StaticPipeli...
fetch = Arrays.asList("prediction");
403,438
byte[] treehash(byte[] skSeed, int s, int z, byte[] pkSeed, ADRS adrsParam) {<NEW_LINE>ADRS adrs = new ADRS(adrsParam);<NEW_LINE>LinkedList<NodeEntry> stack = new LinkedList<NodeEntry>();<NEW_LINE>if (s % (1 << z) != 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>for (int idx = 0; idx < (1 << z); idx++) {<NEW_LINE>adrs...
adrs.getTreeHeight() + 1);
936,569
public static Page newHeadPage(Checkpoint checkpoint, Queue queue, PageIO pageIO) throws IOException {<NEW_LINE>final Page p = new Page(checkpoint.getPageNum(), queue, checkpoint.getMinSeqNum(), checkpoint.getElementCount(), checkpoint.getFirstUnackedSeqNum(), new <MASK><NEW_LINE>try {<NEW_LINE>assert checkpoint.getMin...
BitSet(), pageIO, true);
352,482
private void doExperiment(int numberOfExperimentsPerConfiguration) {<NEW_LINE>int[] orderValues = { 4, 16, 64, 256 };<NEW_LINE>int[] numberOfItemValues = { 100000, 1000000, 10000000 };<NEW_LINE>StdOut.printf(<MASK><NEW_LINE>for (int order : orderValues) {<NEW_LINE>for (int numberOfItems : numberOfItemValues) {<NEW_LINE...
"%11s %17s %27s\n", "Order M | ", "Number of items | ", "AVG Number of External Pages");
344,860
public ElasticJobInstance start(Long id, JSONObject varConf, List<String> tags, List<String> traceIds, String operator) throws Exception {<NEW_LINE>varConf = varConf == null ? new JSONObject() : varConf;<NEW_LINE>tags = tags == null ? new ArrayList<>() : tags;<NEW_LINE>traceIds = traceIds == null ? new ArrayList<>() : ...
job = jobRepository.findFirstById(id);
1,701,804
private Map<String, List<Method>> collectApisByRequestMapping(List<Method> methods) {<NEW_LINE>Map<String, List<Method>> apiMethodMap = new HashMap<String<MASK><NEW_LINE>for (Method method : methods) {<NEW_LINE>RequestMapping requestMapping = findMergedAnnotation(method, RequestMapping.class);<NEW_LINE>if (requestMappi...
, List<Method>>();
1,715,092
public BatchGetBlueprintsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchGetBlueprintsResult batchGetBlueprintsResult = new BatchGetBlueprintsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
996,258
private IJsonType maybeGetSingleNullable(JsonSchemaType parent, IFile enclosing, String name, List list) {<NEW_LINE>if (list.size() != 2) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Object first = list.get(0);<NEW_LINE>if (first instanceof Pair) {<NEW_LINE>first = ((Pair) first).getSecond();<NEW_LINE>}<NEW_LINE>Object ...
nullable = "null".equals(type);
1,526,185
private void writeTXT(final NodeModel node, final Writer fileout, final int depth, String indentation) throws IOException {<NEW_LINE>String core = getTransformedTextForClipboard(node, node, node.getUserObject());<NEW_LINE>writeMultilineTXT(fileout, depth, indentation, core);<NEW_LINE>if (NodeLinks.getValidLink(node) !=...
depth + 1, indentation, details);
700,573
public void read(org.apache.thrift.protocol.TProtocol iprot, ArchiveMemberPath struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == o...
skip(iprot, schemeField.type);
460,543
public Disposable schedule(Runnable run, long delay, TimeUnit unit) {<NEW_LINE>if (run == null) {<NEW_LINE>throw new NullPointerException("run == null");<NEW_LINE>}<NEW_LINE>if (unit == null) {<NEW_LINE>throw new NullPointerException("unit == null");<NEW_LINE>}<NEW_LINE>if (disposed) {<NEW_LINE>return Disposables.dispo...
run = RxJavaPlugins.onSchedule(run);
703,780
public boolean shouldLockSceen(Activity activity) {<NEW_LINE>Log.d(TAG, "Lollipin shouldLockSceen() called");<NEW_LINE>// previously backed out of pin screen<NEW_LINE>if (pinChallengeCancelled()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// already unlock<NEW_LINE>if (activity instanceof AppLockActivity) {<NEW_LINE>A...
Log.d(TAG, "lock passcode not set.");
335,412
protected void configureNewInstance(Instance instance) {<NEW_LINE>instance.addAttributeListener();<NEW_LINE>Bounds bds = instance.getBounds();<NEW_LINE>instance.setTextField(StdAttr.LABEL, StdAttr.LABEL_FONT, bds.getX() + bds.getWidth() + 2, bds.getY() + bds.getHeight() / 2, GraphicsUtil.H_LEFT, GraphicsUtil.V_CENTER);...
0, Port.OUTPUT, 1);
5,826
public static void cleanupSchemaMeta(String schemaName, Connection metaDbConn) {<NEW_LINE>TableInfoManager tableInfoManager = new TableInfoManager();<NEW_LINE>SchemaInfoCleaner schemaInfoCleaner = new SchemaInfoCleaner();<NEW_LINE>DdlPlanAccessor ddlPlanAccessor = new DdlPlanAccessor();<NEW_LINE>try {<NEW_LINE>assert m...
PolarDbXSystemTableBaselineInfo.deleteAll(schemaName, metaDbConn);
13,339
public void run() {<NEW_LINE>try {<NEW_LINE>Thread.sleep(10);<NEW_LINE>} catch (InterruptedException e1) {<NEW_LINE>}<NEW_LINE>// Utils.platformLog("@@@@ ZebraPrinterBluetoothConnect Address :", mAdress);<NEW_LINE>BluetoothConnection connection = new BluetoothConnection(mAdress);<NEW_LINE>String zAdr = connection.toStr...
onNotConnected("cannot connect to defined Bluetooth adress: [" + mAdress + "]");
225,957
final DeleteWebhookResult executeDeleteWebhook(DeleteWebhookRequest deleteWebhookRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWebhookRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
invoke(request, responseHandler, executionContext);
1,502,328
protected void onPostResume() {<NEW_LINE>super.onPostResume();<NEW_LINE>new Thread(() -> {<NEW_LINE>if (Prefs.getLastVersionCode() < BuildConfig.VERSION_CODE) {<NEW_LINE>String titleHtml = String.format(Locale.ENGLISH, "<font color='%d'>%s <b>%s</b></font>", getTextColor(), getString(R.string.changelog), BuildConfig.VE...
Prefs.setLastVersionCode(BuildConfig.VERSION_CODE);
579,171
// ------------------------------------------------------------------------<NEW_LINE>// [NOT] BETWEEN predicates<NEW_LINE>// ------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public final BetweenAndStep11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> between(T1 t1, T2 ...
) dataType(10))));
1,021,982
public void createUser(ActionRequest request, ActionResponse response) {<NEW_LINE>Context context = request.getContext();<NEW_LINE>User user = context.asType(User.class);<NEW_LINE>EmployeeRepository employeeRepository = Beans.get(EmployeeRepository.class);<NEW_LINE>User employeeUser = new User();<NEW_LINE>employeeUser....
> contractList = employee.getEmploymentContractList();
1,674,936
private Map<String, String> parseSqlServerUrl(String jdbcUrl) {<NEW_LINE>HashMap<String, String> map = new HashMap<String, String>();<NEW_LINE>if (jdbcUrl == null || !StringUtils.startsWithIgnoreCase(jdbcUrl, "jdbc:sqlserver://")) {<NEW_LINE>return map;<NEW_LINE>}<NEW_LINE>int pos1 = jdbcUrl.indexOf(':', 5);<NEW_LINE>i...
map.put("port", port);
1,554,787
FileType maybeHandleExternalFile(RootedPath rootedPath, SkyFunction.Environment env) throws NonexistentImmutableExternalFileException, IOException, InterruptedException {<NEW_LINE>Pair<FileType, RepositoryName> pair = getFileTypeAndRepository(rootedPath);<NEW_LINE>FileType fileType = Preconditions.<MASK><NEW_LINE>switc...
checkNotNull(pair.getFirst());
1,528,303
public void onEvent(Event e) {<NEW_LINE>if (cbLanguage.getSelectedIndex() == -1) {<NEW_LINE>statusBar.setStatusLine(Msg.getMsg(Env.getCtx(), "LanguageSetupError"), true);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ValueNamePair AD_Language = (ValueNamePair) cbLanguage.getSelectedItem().toValueNamePair();<NEW_LINE>if (AD_Lang...
validateLanguage(AD_Language.getValue());
1,510,071
private void createNodes(DeleteEntitiesModel currentNode, Treechildren root, boolean isParent) {<NEW_LINE>// Load from parent<NEW_LINE>loadChilds(currentNode, root, isParent);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Collection<Treeitem> collItemChild = (Collection<Treeitem>) root.getItems();<NEW_LINE>Iterator<...
log(Level.WARNING, "Loop detected, escaping.");
115,829
final DeleteAccountCustomizationResult executeDeleteAccountCustomization(DeleteAccountCustomizationRequest deleteAccountCustomizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAccountCustomizationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
43,116
private static void validateReplaceValue(List<String> args, Column column) throws AnalysisException {<NEW_LINE>String replaceValue = null;<NEW_LINE>if (args.size() == 1) {<NEW_LINE>Column.<MASK><NEW_LINE>if (defaultValueType == Column.DefaultValueType.NULL) {<NEW_LINE>throw new AnalysisException("Column " + column.getN...
DefaultValueType defaultValueType = column.getDefaultValueType();
855,027
public Cursor handle(VirtualView virtualView, ExecutionContext executionContext, ArrayResultCursor cursor) {<NEW_LINE>final ISyncAction syncAction;<NEW_LINE>try {<NEW_LINE>syncAction = (ISyncAction) FETCH_METADATA_LOCK_SYNC_ACTION_CLASS.getConstructor().newInstance();<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new...
results = SyncManagerHelper.sync(syncAction);
1,194,759
public JsonAttributeSetInstance extractJsonAttributeSetInstance(@NonNull final ImmutableAttributeSet attributeSet, @NonNull final OrgId orgId) {<NEW_LINE>final IOrgDAO orgDAO = Services.get(IOrgDAO.class);<NEW_LINE>final JsonAttributeSetInstance.JsonAttributeSetInstanceBuilder jsonAttributeSetInstance = JsonAttributeSe...
attributeInstance(instanceBuilder.build());
1,790,688
private <T> T checkAndUpdateLowerBound(Supplier<T> timestampContainerSupplier, ToLongFunction<T> lowerBoundExtractor, ToLongFunction<T> upperBoundExtractor, OperationType operationType) {<NEW_LINE>// take snapshot before making the request<NEW_LINE>Instant wallClockTimeBeforeRequest = Instant.now();<NEW_LINE>TimestampB...
lowerFreshTimestamp = lowerBoundExtractor.applyAsLong(timestampContainer);
80,708
public static boolean archiveAsset(WebAsset currWebAsset, String userId) throws DotDataException, DotStateException, DotSecurityException {<NEW_LINE>// gets the identifier for this asset<NEW_LINE>Identifier identifier = APILocator.getIdentifierAPI().find(currWebAsset);<NEW_LINE>WebAsset workingwebasset = (WebAsset) API...
).setDeleted(workingwebasset, true);
259,492
public static IMethod findMethod(IType type, char[] selector, String[] paramTypeSignatures, boolean isConstructor) throws JavaModelException {<NEW_LINE>IMethod method = null;<NEW_LINE>int startingIndex = 0;<NEW_LINE>String[] args;<NEW_LINE>IType enclosingType = type.getDeclaringType();<NEW_LINE>// If the method is a co...
String[paramTypeSignatures.length + 1];
1,665,674
public boolean dominates(Unit champ, Unit challenger) {<NEW_LINE>if (champ == null || challenger == null) {<NEW_LINE>throw new RuntimeException("Assertion failed.");<NEW_LINE>}<NEW_LINE>// self-domination<NEW_LINE>if (champ.equals(challenger)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Map<Unit, Block> unitToBlock = t...
> dt = sf.getDominatorTree();
831,487
protected SdkFileEntry generateModelSourceFile(ServiceModel serviceModel, Map.Entry<String, Shape> shapeEntry) throws Exception {<NEW_LINE>Template template = null;<NEW_LINE>String fileName = "";<NEW_LINE>switch(shapeEntry.getKey()) {<NEW_LINE>case "GetBucketLocationResult":<NEW_LINE>{<NEW_LINE>template = velocityEngin...
put("CppViewHelper", CppViewHelper.class);
856,980
private ExpressionFunction selectExpression(FeatureArguments arguments) {<NEW_LINE>if (expressions.isEmpty())<NEW_LINE>throw new IllegalArgumentException("No expressions available in " + this);<NEW_LINE>ExpressionFunction expression = expressions.get(arguments.toName());<NEW_LINE>if (expression != null)<NEW_LINE>return...
collect(Collectors.toList());
1,599,775
public void visit(BLangStatementExpression bLangStatementExpression) {<NEW_LINE>BLangStatement exprStmt = bLangStatementExpression.stmt;<NEW_LINE>if (exprStmt.getKind() == NodeKind.BLOCK) {<NEW_LINE>BLangBlockStmt bLangBlockStmt = (BLangBlockStmt) exprStmt;<NEW_LINE>if (bLangBlockStmt.isLetExpr) {<NEW_LINE>// In let ex...
expr = rewriteExpr(bLangStatementExpression.expr);
678,152
public void validate(T values) {<NEW_LINE>for (int i = 0; i < expressions.size(); i++) {<NEW_LINE>expressions.get(i).setNextRow(values);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < inputs.size(); i++) {<NEW_LINE>Object val = inputs.get(i).value();<NEW_LINE>if (val == null) {<NEW_LINE>throw new IllegalArgumentException("\""...
.expressionStr(), values));
1,320,408
private X509Certificate generateCACert(AsymmetricKeyPairAlgorithm keyGenerationAndSigningAlgorithm, PublicKey publicKey, PrivateKey privateKey) throws Exception {<NEW_LINE>// signers name<NEW_LINE>X500Name issuerName = new X500Name("CN=" + ROOT_COMMON_NAME + ", O=" + ORGANISATION + ", L=" + LOCALITY + ", ST=" + STATE +...
purposes.add(KeyPurposeId.id_kp_serverAuth);
135,223
private HashSet<PackageInfo> extractPackageInfoMutableList(@NonNull final JsonCreateShippingPackageInfo createShippingPackageInfo, @NonNull final ImmutableMap<String, I_M_Shipper> internalName2Shipper) {<NEW_LINE>final I_M_Shipper shipper = internalName2Shipper.get(createShippingPackageInfo.getShipperInternalName());<N...
result = new HashSet<>();
795,700
public void authenticate(String email, String password) {<NEW_LINE>proxy.getGeneralThreadPool().execute(() -> {<NEW_LINE>try {<NEW_LINE>protocol = new MinecraftProtocol(email, password);<NEW_LINE>} catch (RequestException e) {<NEW_LINE>log.warn("Failed to authenticate player: " + e.getMessage());<NEW_LINE>sendMessage(T...
getRemoteServer().getPort());
777,718
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// get references to ui elements<NEW_LINE>mTileCachePreviewLayout = findViewById(R.id.mapPreviewLayout);<NEW_LINE>mPreviewMask = findViewById(R.id.previewMask);<NEW...
findViewById(R.id.mapView);
1,554,308
public okhttp3.Call commitCall(String repository, String branch, CommitCreation commitCreation, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = commitCreation;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/repositories/{repository}/branches/{branch}/com...
localVarHeaderParams.put("Accept", localVarAccept);
585,494
private Node tryFoldStringIndexOf(Node n, String functionName, Node lstringNode, Node firstArg) {<NEW_LINE>checkArgument(n.isCall());<NEW_LINE>checkArgument(lstringNode.isStringLit());<NEW_LINE>String lstring = lstringNode.getString();<NEW_LINE>boolean isIndexOf = functionName.equals("indexOf");<NEW_LINE>Node secondArg...
NodeUtil.numberNode(indexVal, n);
1,401,271
public void activateContexts(String[] contextIds) {<NEW_LINE>if (textEditor != null) {<NEW_LINE>EContextService contextService = (EContextService) textEditor.getSite().getService(EContextService.class);<NEW_LINE>if (contextService != null) {<NEW_LINE>editorContextIds.clear();<NEW_LINE>for (String contextId : contextIds...
ctxt = contextService.getContext(contextId);
590,552
public void addProposals(String dsl, ParseException exception, int detailLevel, List<CompletionProposal> collector) {<NEW_LINE>String streamName = dsl.substring(":".length());<NEW_LINE>String appName = "";<NEW_LINE>if (streamName.contains(".")) {<NEW_LINE>String[] splits = streamName.split("\\.");<NEW_LINE>streamName =...
proposals = CompletionProposal.expanding(":");
1,655,474
protected Clustering<KMeansModel> buildResultWithNoise() {<NEW_LINE>// create noisecluster if wanted<NEW_LINE>ModifiableDoubleDBIDList noiseids = null;<NEW_LINE>if (noiseFlag && heapsize > 0) {<NEW_LINE>clusters.add(noiseids = DBIDUtil.newDistanceDBIDList((minHeap.size())));<NEW_LINE>double tresh = minHeap.peek();<NEW_...
result = new Clustering<>();
812,019
private void logCameraInfoV1() {<NEW_LINE>int numberOfCameras = Camera.getNumberOfCameras();<NEW_LINE>for (int i = 0; i < numberOfCameras; ++i) {<NEW_LINE>mLog.appendLine("Camera " + i + ":");<NEW_LINE>android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo();<NEW_LINE><MASK><NEW_LINE>if (Camer...
Camera.getCameraInfo(i, info);
1,662,926
private void buildCommonVitalityImages() {<NEW_LINE>boolean canBuildStandalone = canBuildStandAlone();<NEW_LINE>if (canBuildStandalone && viPopout == null) {<NEW_LINE>// clone-able/popout-able<NEW_LINE>viPopout = addVitalityImage("popout_window");<NEW_LINE>viPopout.setToolTip(MessageText.getString("label.pop.out"));<NE...
SWTSkin skin = skinnedDialog.getSkin();
388,075
private static int countAndPutKGramsInTST(String wordsInFile, TernarySearchTrie<KGramInformation> ternarySearchTrie, int k, int fileId) {<NEW_LINE>int numberOfKGramsInFile = 0;<NEW_LINE>for (int word = 0; word <= wordsInFile.length() - k; word++) {<NEW_LINE>StringBuilder kGram = new StringBuilder();<NEW_LINE>numberOfKG...
String kGramValue = kGram.toString();
1,603,821
public static QueryIncomeTrendResponse unmarshall(QueryIncomeTrendResponse queryIncomeTrendResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryIncomeTrendResponse.setRequestId(_ctx.stringValue("QueryIncomeTrendResponse.RequestId"));<NEW_LINE>queryIncomeTrendResponse.setSuccess<MASK><NEW_LINE>queryIncomeTrendResponse.se...
(_ctx.booleanValue("QueryIncomeTrendResponse.Success"));
125,610
final SuggestResult executeSuggest(SuggestRequest suggestRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(suggestRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
(super.beforeMarshalling(suggestRequest));
1,495,933
void adjustSize(MetricsRow row) {<NEW_LINE>int samples = seriesSize(row);<NEW_LINE>final int n = getMaximumSamples();<NEW_LINE>while (samples > n) {<NEW_LINE>for (int i = 0; i < row.series.size(); ++i) {<NEW_LINE>XYChart.Series<Number, Number> series = row.series.get(i);<NEW_LINE>while (series.getData().size() > 0 && s...
getData().remove(0);
107,182
public final Flatzinc_modelContext flatzinc_model(Model aModel, Datas datas) throws RecognitionException {<NEW_LINE>Flatzinc_modelContext _localctx = new Flatzinc_modelContext(_ctx, getState(), aModel, datas);<NEW_LINE>enterRule(_localctx, 0, RULE_flatzinc_model);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt...
_la = _input.LA(1);
410,971
public boolean shouldBeIgnored(MouseWheelEvent event) {<NEW_LINE>var source = (JScrollPane) event.getSource();<NEW_LINE>// do not process any event from JBScrollPane with this option<NEW_LINE>if (UIUtil.isClientPropertyTrue(getViewportView(source), JBScrollPane.IGNORE_SCROLL_LATCHING)) {<NEW_LINE>return false;<NEW_LINE...
var iterator = myScrollEvents.iterator();
641,716
final DisassociateClientVpnTargetNetworkResult executeDisassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest disassociateClientVpnTargetNetworkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateClientVpnTargetNetworkRequest);<NEW_LINE>AWSRequestMetrics awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
951,623
public void logExperimentCodeVersion(LogExperimentCodeVersion request, StreamObserver<LogExperimentCodeVersion.Response> responseObserver) {<NEW_LINE>try {<NEW_LINE>final var requestValidationFuture = InternalFuture.runAsync(() -> {<NEW_LINE>if (request.getId().isEmpty()) {<NEW_LINE>var errorMessages = "Experiment ID n...
).build(), executor);
1,086,361
protected Long timesCompletedWork(Business business, DateRange dateRange, String applicationId, String processId, String unit, String person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(TaskCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>Criteri...
root)).where(p);
737,221
public void apply(Project project) {<NEW_LINE>TaskProvider<Task> precommit = project.getTasks().register(PrecommitPlugin.PRECOMMIT_TASK_NAME, t -> {<NEW_LINE>t.setGroup(JavaBasePlugin.VERIFICATION_GROUP);<NEW_LINE>t.setDescription("Runs all non-test checks");<NEW_LINE>});<NEW_LINE>project.getPluginManager().withPlugin(...
sourceSet.getClassesTaskName())));
894,089
private void createAndHandleAddDetailRequest(@NonNull final DetailDataRecordIdentifier identifier, @NonNull final ShipmentScheduleCreatedEvent shipmentScheduleCreatedEvent) {<NEW_LINE>final DocumentLineDescriptor //<NEW_LINE>//<NEW_LINE>documentLineDescriptor = shipmentScheduleCreatedEvent.getDocumentLineDescriptor();<...
bPartnerId(subscriptionLineDescriptor.getSubscriptionBillBPartnerId());
829,739
protected ActionResult<List<Wo>> execute(HttpServletRequest request, EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<List<Wo>>();<NEW_LINE>List<Wo> wrapOutSubjectAttachmentList = null;<NEW_LINE>List<BBSSubjectAttachment> fileInfoList = null;<NEW_L...
exception, effectivePerson, request, null);
818,852
protected void resolveSystem(ConstraintWidgetContainer layout, int optimizationLevel, int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int widthMode = MeasureSpec.getMode(widthMeasureSpec);<NEW_LINE>int widthSize = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int heightMode = MeasureSpec.getMode(heightMeasure...
widthMode, widthSize, heightMode, heightSize);
1,527,612
public boolean add(Long aLong) {<NEW_LINE>// Find the largest LongSegment with a min value of less than or equal to aLong<NEW_LINE>Map.Entry<Long, LongSegment> lowerEntry = map.floorEntry(aLong);<NEW_LINE>// This value is already added<NEW_LINE>if (lowerEntry != null && lowerEntry.getValue().contains(aLong)) {<NEW_LINE...
, upperSegment.getMax()));
1,684,558
public static HttpCookiePair parseCookiePair(final CharSequence cookieString, final CharSequence cookiePairName) {<NEW_LINE>int start = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>int equalsIndex = indexOf(cookieString, '=', start);<NEW_LINE>if (equalsIndex <= 0 || cookieString.length() - 1 <= equalsIndex) {<NEW_LINE>break;<NEW_...
cookieString, ';', equalsIndex + 1);
1,346,860
protected void processThermostatModeReport(SerialMessage serialMessage, int offset, int endpoint) {<NEW_LINE>int value = serialMessage.getMessagePayloadByte(offset + 1);<NEW_LINE>logger.debug("NODE {}: Thermostat Mode report, value = {}", this.getNode().getNodeId(), value);<NEW_LINE>ModeType modeType = ModeType.getMode...
).getNodeId(), value);
1,350,057
public void refreshNeighbor(BlockState state, Direction side) {<NEW_LINE>// for below, only thing that needs to invalidate is if we are no longer connected down, remove the listener below<NEW_LINE>if (side == Direction.DOWN) {<NEW_LINE>if (!state.getValue(ChannelBlock.DOWN)) {<NEW_LINE>neighborTanks.remove(Direction.DO...
handler = emptySideHandler.remove(side);
158,262
final ListQueueTagsResult executeListQueueTags(ListQueueTagsRequest listQueueTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listQueueTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,041,920
private static DocumentId parse(String serialized) {<NEW_LINE>int i, j = -1;<NEW_LINE>if ((j = serialized.indexOf(':', i = j + 1)) < i)<NEW_LINE>return null;<NEW_LINE>if (!"id".equals(serialized.substring(i, j)))<NEW_LINE>return null;<NEW_LINE>if ((j = serialized.indexOf(':', i = j + 1)) <= i)<NEW_LINE>return null;<NEW...
of(namespace, documentType, userSpecific);
1,654,846
private void preloadTransitiveClosure(Iterable<Target> targets, OptionalInt maxDepth, QueryExpression callerForError) throws InterruptedException, QueryException {<NEW_LINE>if (QueryEnvironment.shouldVisit(maxDepth, MAX_DEPTH_FULL_SCAN_LIMIT) && queryTransitivePackagePreloader != null) {<NEW_LINE>// Only do the full vi...
isPresent() ? null : callerForError);
1,205,083
private ParticleController createDefaultModelInstanceController() {<NEW_LINE>// Emission<NEW_LINE>RegularEmitter emitter = new RegularEmitter();<NEW_LINE>emitter.getDuration().setLow(3000);<NEW_LINE>emitter.getEmission().setHigh(80);<NEW_LINE>emitter.getLife().setHigh(500, 1000);<NEW_LINE>emitter.getLife().setTimeline(...
SpawnInfluencer spawnSource = new SpawnInfluencer(spawnShapeValue);
268,173
private Mono<Response<Void>> updateSubscriptionLevelStateToResolveWithResponseAsync(String ascLocation, String alertName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<...
error(new IllegalArgumentException("Parameter ascLocation is required and cannot be null."));
1,333,640
public void marshall(QuickConnectConfig quickConnectConfig, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (quickConnectConfig.getQuickConnectType() != null) {<NEW_LINE><MASK><NEW_LINE>jsonWriter.name("QuickConnectType");<NEW_LINE>jsonWriter.value(quickConnectType);<NEW_LINE...
String quickConnectType = quickConnectConfig.getQuickConnectType();
31,446
public DBRecord translateRecord(DBRecord oldRec) {<NEW_LINE>if (oldRec == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DBRecord rec = TypedefDBAdapter.SCHEMA.createRecord(oldRec.getKey());<NEW_LINE>rec.setLongValue(TYPEDEF_DT_ID_COL, oldRec.getLongValue(V1_TYPEDEF_DT_ID_COL));<NEW_LINE>// default TYPEDEF_FLAGS_COL...
, oldRec.getLongValue(V1_TYPEDEF_CAT_COL));
1,478,491
public void marshal(Path samplesRoot, Path imagesRoot) {<NEW_LINE>logger.debug("Marshalling {}", this);<NEW_LINE>try {<NEW_LINE>{<NEW_LINE>// Samples<NEW_LINE>final Path folderPath = samplesRoot.resolve(descriptor.getName());<NEW_LINE>Files.createDirectories(folderPath);<NEW_LINE>final Path <MASK><NEW_LINE>Jaxb.marshal...
samplesPath = folderPath.resolve(SAMPLES_FILE_NAME);
1,099,103
private void readHeader() throws IOException {<NEW_LINE>seekBlock(0, 0);<NEW_LINE>// Check magic number<NEW_LINE>long magicNumber = raf.readLong();<NEW_LINE>if (magicNumber != MAGIC_NUMBER) {<NEW_LINE>throw new IOException("Unrecognized file format");<NEW_LINE>}<NEW_LINE>// Read file ID<NEW_LINE>fileId = raf.readLong()...
), raf.readInt());
1,184,235
public Concrete.Expression visitFieldCall(FieldCallExpression expr, Void params) {<NEW_LINE>Concrete.Expression letResult = simplifyLetClause(expr);<NEW_LINE>if (letResult != null)<NEW_LINE>return letResult;<NEW_LINE>Expression argument = expr.getArgument();<NEW_LINE>if (argument instanceof ReferenceExpression && ((Ref...
param = param.getNextTyped(null);
959,263
static String prettyPrint(ConstraintDescriptor constraintDescriptor, TokenNameLookup tokenNameLookup) {<NEW_LINE>SchemaDescriptor schema = constraintDescriptor.schema();<NEW_LINE>int[] entityTokenIds = schema.getEntityTokenIds();<NEW_LINE>if (entityTokenIds.length != 1) {<NEW_LINE>throw new IllegalArgumentException("Ca...
+ entityTypeName + " ]-() ASSERT " + properties + " IS NOT NULL";
934,846
private void drawBitmap(String text, int startIndex, int endIndex) {<NEW_LINE>BitmapFontData data = bitmapFont.getData();<NEW_LINE>int padY = paddingTop + paddingBottom + paddingAdvanceY;<NEW_LINE>data.setLineHeight(data.lineHeight + padY);<NEW_LINE>layout.setText(bitmapFont, text);<NEW_LINE>data.setLineHeight(data.lin...
setText(layout, paddingLeft, paddingRight);
736,479
private Object createRangeWithThreeGivenArguments(Object[] args) {<NEW_LINE>Object firstArg = args[0];<NEW_LINE>Object secondArg = args[1];<NEW_LINE>Object thirdArg = args[2];<NEW_LINE>// Deal with negative integers first<NEW_LINE>if (firstArg != null && firstArg instanceof Double && (Double) firstArg % 1 == 0) {<NEW_L...
createRange(rangeStart, rangeEnd, rangeStep);
1,018,272
public static void endMethod(Object localContext, Throwable thr) {<NEW_LINE>if (localContext == null)<NEW_LINE>return;<NEW_LINE>LocalContext lctx = (LocalContext) localContext;<NEW_LINE>if (lctx.service) {<NEW_LINE>endService(lctx, null, thr);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MethodStep step = (MethodStep) lctx.ste...
tctx.startTime) - step.start_time;
479,837
final GetThreatIntelSetResult executeGetThreatIntelSet(GetThreatIntelSetRequest getThreatIntelSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getThreatIntelSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,545,361
public static StartExecutionResponse unmarshall(StartExecutionResponse startExecutionResponse, UnmarshallerContext _ctx) {<NEW_LINE>startExecutionResponse.setRequestId(_ctx.stringValue("StartExecutionResponse.RequestId"));<NEW_LINE>Execution execution = new Execution();<NEW_LINE>execution.setExecutionId(_ctx.stringValu...
("StartExecutionResponse.Execution.CurrentTasks[" + i + "].TaskExecutionId"));
424,809
public BaseLastAnalysisResultVO processBiz(ToolLastAnalysisResultVO arg, boolean isLast) {<NEW_LINE>long taskId = arg.getTaskId();<NEW_LINE>String toolName = arg.getToolName();<NEW_LINE>String buildId = arg.getBuildId();<NEW_LINE>LintStatisticEntity statisticEntity;<NEW_LINE>if (isLast) {<NEW_LINE>statisticEntity = lin...
findByTaskIdAndToolNameAndBuildId(taskId, toolName, buildId);
523,904
public boolean isLocalStorageActiveOnHost(Long hostId) {<NEW_LINE>List<StoragePoolHostVO> storagePoolHostRefs = _storagePoolHostDao.listByHostId(hostId);<NEW_LINE>for (StoragePoolHostVO storagePoolHostRef : storagePoolHostRefs) {<NEW_LINE>StoragePoolVO PrimaryDataStoreVO = _storagePoolDao.findById(storagePoolHostRef.ge...
), SearchCriteria.Op.EQ);
1,621,734
private boolean tryResolve(Concrete.ReferenceExpression expr, ExpressionResolveNameVisitor exprVisitor) {<NEW_LINE>Referable ref = expr.getReferent();<NEW_LINE>while (ref instanceof RedirectingReferable) {<NEW_LINE>ref = ((<MASK><NEW_LINE>}<NEW_LINE>if (ref instanceof UnresolvedReference) {<NEW_LINE>List<Referable> res...
RedirectingReferable) ref).getOriginalReferable();
590,027
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String solutionName, SolutionInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required ...
solutionName, parameters, accept, context);