idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
683,817
public void updateList(List<AztecCode> detected, List<AztecCode> failures) {<NEW_LINE>BoofSwingUtil.checkGuiThread();<NEW_LINE>this.listDetected.removeListSelectionListener(this);<NEW_LINE>DefaultListModel<String> model = (DefaultListModel) listDetected.getModel();<NEW_LINE>model.clear();<NEW_LINE>this.detected.clear()...
).substring(0, 4);
901,359
/*<NEW_LINE>private static final Set warnedAboutDupeKids = new HashSet(1); // Set<String><NEW_LINE>*/<NEW_LINE>public String[] children(String f) {<NEW_LINE>TreeElement el = findElement(f);<NEW_LINE>if (el == null) {<NEW_LINE>// System.err.println("children <" + f + ">: none, no such element");<NEW_LINE>return new Stri...
= new ArrayList<String>();
1,680,828
public boolean blockLocation(Location location) {<NEW_LINE>final float inaccuracy = location.getAccuracy();<NEW_LINE>final double altitude = location.getAltitude();<NEW_LINE>final float bearing = location.getBearing();<NEW_LINE>final double latitude = location.getLatitude();<NEW_LINE>final double longitude = location.g...
= System.currentTimeMillis() + MILLISECONDS_PER_DAY;
447,604
public GetKeyGroupConfigResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GetKeyGroupConfigResult getKeyGroupConfigResult = new GetKeyGroupConfigResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocu...
XMLEvent xmlEvent = context.nextEvent();
1,727,805
private static <T> boolean containsRow(TableView<T> tableView, Object... cells) {<NEW_LINE>if (tableView.getItems().isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Map<Integer, List<ObservableValue<?>>> rowValuesMap = new HashMap<>(tableView.<MASK><NEW_LINE>for (int j = 0; j < tableView.getItems().size(); j++) ...
getColumns().size());
1,092,998
Node processObjectLiteral(ObjectLiteralExpressionTree objTree) {<NEW_LINE>Node node = newNode(Token.OBJECTLIT);<NEW_LINE>node.setTrailingComma(objTree.hasTrailingComma);<NEW_LINE>boolean maybeWarn = false;<NEW_LINE>for (ParseTree el : objTree.propertyNameAndValues) {<NEW_LINE>if (el.type == ParseTreeType.DEFAULT_PARAME...
, lineno(el), 0);
797,642
public void onGameObjectSpawned(GameObjectSpawned event) {<NEW_LINE>GameObject gameObject = event.getGameObject();<NEW_LINE>TitheFarmPlantType type = TitheFarmPlantType.getPlantType(gameObject.getId());<NEW_LINE>if (type == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TitheFarmPlantState state = TitheFarmPlantState.get...
setPlanted(oldPlant.getPlanted());
1,855,539
private // The derivatives are [0] spot, [1] strike, [2] rate, [3] cost-of-carry, [4] volatility, [5] timeToExpiry, [6] spot twice<NEW_LINE>ValueDerivatives priceDerivatives(ResolvedFxSingleBarrierOption option, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities) {<NEW_LINE>validate(option, ratesProvid...
relativeTime(underlyingOption.getExpiry());
1,299,500
public Document makeDocument(InputDoc input) throws Exception {<NEW_LINE>List<List<Mention>> mentions = new ArrayList<>();<NEW_LINE>if (CorefProperties.useGoldMentions(props)) {<NEW_LINE>List<CoreMap> sentences = input.annotation.get(CoreAnnotations.SentencesAnnotation.class);<NEW_LINE>for (int i = 0; i < sentences.siz...
md.findHead(sentence, sentenceMentions);
426,002
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>// Target opponent loses 2 life for each Swamp you control<NEW_LINE>Player opponent = game.getPlayer(getTargetPointer().getFirst(game, source));<NEW_LINE>i...
2, game, source, false);
384,254
private String checkDefaultBinding(String action, SoapMessage message, RequestData data) throws WSSecurityException {<NEW_LINE>action = addToAction(action, "Signature", true);<NEW_LINE>action = addToAction(action, "Encrypt", true);<NEW_LINE>Object s = SecurityUtils.getSecurityPropertyValue(SecurityConstants.SIGNATURE_C...
getSecurityPropertyValue(SecurityConstants.SIGNATURE_PROPERTIES, message);
1,172,266
public <I> void hear(TypeLiteral<I> type, TypeEncounter<I> encounter) {<NEW_LINE>for (final Method method : type.getRawType().getMethods()) {<NEW_LINE>final Gauge annotation = method.getAnnotation(Gauge.class);<NEW_LINE>if (annotation != null) {<NEW_LINE>boolean validMethod = true;<NEW_LINE>if (method.getParameterTypes...
<>(gaugeTag, method));
1,784,814
protected IThanos create() {<NEW_LINE>if (localService != null) {<NEW_LINE>return localService;<NEW_LINE>}<NEW_LINE>IThanos thanos = IThanos.Stub.asInterface(ServiceManager.getService(T.serviceInstallName()));<NEW_LINE>if (thanos != null) {<NEW_LINE>return thanos;<NEW_LINE>}<NEW_LINE>Parcel data = Parcel.obtain();<NEW_...
IBinder binder = reply.readStrongBinder();
1,443,463
public Void visitLabeledStatement(LabeledStatementTree labelledStatement, Trees trees) {<NEW_LINE>Tree parent = getParent(MethodTree.class);<NEW_LINE>if (parent == null) {<NEW_LINE>parent = getParent(BlockTree.class);<NEW_LINE>while (parent != null && getParent(BlockTree.class, parent) != null) {<NEW_LINE>parent = getP...
()).print(":");
1,268,846
public void start() throws Exception {<NEW_LINE>// To simplify the development of the web components we use a Router to route all HTTP requests<NEW_LINE>// to organize our code in a reusable way.<NEW_LINE>final Router router = Router.router(vertx);<NEW_LINE>// In order to use a template we first need to create an engin...
engine = HandlebarsTemplateEngine.create(vertx);
1,268,614
public static DescribeInstanceDomainsResponse unmarshall(DescribeInstanceDomainsResponse describeInstanceDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceDomainsResponse.setRequestId(_ctx.stringValue("DescribeInstanceDomainsResponse.RequestId"));<NEW_LINE>describeInstanceDomainsResponse.setTotalIte...
("DescribeInstanceDomainsResponse.InstanceDomains[" + i + "].CreateTime"));
928,312
protected void runTask(Properties periodicTaskProperties) {<NEW_LINE>// Make it so that only one controller is responsible for cleaning up minion instances.<NEW_LINE>if (!_leadControllerManager.isLeaderForTable(TASK_NAME)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<String> offlineInstances = new ArrayList<>(_pinotHeli...
addValueToGlobalGauge(ControllerGauge.DROPPED_MINION_INSTANCES, 1);
1,111,282
public byte[] toByteArray() {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "toByteArray");<NEW_LINE>// Just in case you're wondering, if two threads race to create the<NEW_LINE>// cached arrays, we may end up with two identical arrays, one of which<NEW_LINE>// is cached, while the other thread uses the secon...
& 0x00000000000000FFL) >>> 0);
1,331,236
static Feature featureFromStarlark(StarlarkInfo featureStruct) throws EvalException {<NEW_LINE>checkRightProviderType(featureStruct, "feature");<NEW_LINE>String name = getMandatoryFieldFromStarlarkProvider(featureStruct, "name", String.class);<NEW_LINE>Boolean enabled = getMandatoryFieldFromStarlarkProvider(featureStru...
featureStruct, "A feature's name must consist solely of lowercase ASCII letters, digits, '.', " + "'_', '+', and '-', got '%s'", name);
1,828,893
public static DescribeScdnServiceResponse unmarshall(DescribeScdnServiceResponse describeScdnServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScdnServiceResponse.setRequestId(_ctx.stringValue("DescribeScdnServiceResponse.RequestId"));<NEW_LINE>describeScdnServiceResponse.setChangingAffectTime(_ctx.stringVa...
(_ctx.stringValue("DescribeScdnServiceResponse.DDoSBasic"));
1,541,427
public Injector createInjector(Collection<Module> additionalModules) {<NEW_LINE>List<Module> localModules = Lists.newArrayList();<NEW_LINE>// Add the discovered modules FIRST. The discovered modules<NEW_LINE>// are added, and will subsequently be configured, in module dependency<NEW_LINE>// order which will ensure tha...
(injector, scanner, localIgnoreClasses));
1,488,045
public void run(String[] args) {<NEW_LINE>try {<NEW_LINE>// No args is not a valid use of the command, so<NEW_LINE>// print help and exit with an error code.<NEW_LINE>if (args.length == 0) {<NEW_LINE>printMainHelp();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String argument = args[0];<NEW_LINE>if (argument.equals("-h") || a...
Parser parser = command.getParser();
1,199,816
final ListConnectionsResult executeListConnections(ListConnectionsRequest listConnectionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConnectionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
523,408
public static void main(String[] args) {<NEW_LINE>// Sequence of input pairs to produce a tree of height 4:<NEW_LINE>// 0 1<NEW_LINE>// 0 2<NEW_LINE>// 0 3<NEW_LINE>// 6 7<NEW_LINE>// 8 9<NEW_LINE>// 6 8<NEW_LINE>// 0 6<NEW_LINE>// 10 11<NEW_LINE>// 10 12<NEW_LINE>// 10 13<NEW_LINE>// 10 14<NEW_LINE>// 10 15<NEW_LINE>/...
weightedQuickUnionPathCompression.union(0, 6);
437,371
private static void updateDataRecordWithRequestQtys(final I_MD_Cockpit dataRecord, final UpdateMainDataRequest dataUpdateRequest) {<NEW_LINE>// was QtyMaterialentnahme<NEW_LINE>dataRecord.setQtyMaterialentnahme(stripTrailingDecimalZeros(dataRecord.getQtyMaterialentnahme().add(dataUpdateRequest.getDirectMovementQty())))...
, dataUpdateRequest.getQtyDemandDDOrder()));
100,533
public static String markup(@NonNls @Nonnull String textToMarkup, @Nullable String filter) {<NEW_LINE>if (filter == null || filter.length() == 0) {<NEW_LINE>return textToMarkup;<NEW_LINE>}<NEW_LINE>int bodyStart = textToMarkup.indexOf("<body>");<NEW_LINE>final int bodyEnd = textToMarkup.indexOf("</body>");<NEW_LINE>fin...
foot = textToMarkup.substring(bodyEnd);
573,025
public JsonInput next() {<NEW_LINE>try {<NEW_LINE>final JsonInput jsonInput = new JsonInput();<NEW_LINE>final int len = fields.length;<NEW_LINE>if (fields.length > propertyNames.length) {<NEW_LINE>throw new FrameworkException(422, "Line contains more fields than columns - maybe a problem with the field quoting?");<NEW_...
final String key = propertyNames[i];
1,306,885
public boolean cellsCleanedUp(Transaction t, Set<Cell> cells) {<NEW_LINE>DataStreamIdxTable usersIndex = tables.getDataStreamIdxTable(t);<NEW_LINE>Set<DataStreamIdxTable.DataStreamIdxRow> rows = Sets.newHashSetWithExpectedSize(cells.size());<NEW_LINE>for (Cell cell : cells) {<NEW_LINE>rows.add(DataStreamIdxTable.DataSt...
EMPTY_BYTE_ARRAY, PtBytes.EMPTY_BYTE_ARRAY, 1);
629,981
private Mono<Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String resourceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>...
this.client.mergeContext(context);
1,597,324
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ...
Source src = new StreamSource(respMsg);
1,399,996
private static void drawCubeQuads(MatrixStack matrixStack, IRenderTypeBuffer renderBuffer, Color color, int combinedLight) {<NEW_LINE>IVertexBuilder vertexBuilderBlockQuads = renderBuffer.getBuffer(RenderType.getEntitySolid(MBE21_CUBE_FACE_TEXTURE));<NEW_LINE>// other typical RenderTypes used by TER are:<NEW_LINE>// ge...
bottomLeftUV, UVwidth, UVheight, combinedLight);
722,661
public static List<Versioned<byte[]>> fromByteArray(byte[] bytes) {<NEW_LINE>if (bytes.length < 1)<NEW_LINE>throw new VoldemortException("Invalid value length: " + bytes.length);<NEW_LINE>if (bytes[0] != VERSION)<NEW_LINE>throw new VoldemortException("Unexpected version number in value: " + bytes[0]);<NEW_LINE>int pos ...
pos, val, 0, valueSize);
1,235,125
public Model onRemove(ModelTransformer transformer, Collection<Shape> shapes, Model model) {<NEW_LINE>Set<ShapeId> removedOperations = shapes.stream().filter(Shape::isOperationShape).map(Shape::getId).collect(Collectors.toSet());<NEW_LINE>Set<ShapeId> removedErrors = shapes.stream().filter(shape -> shape.hasTrait(Error...
= new HashSet<>(servicesToUpdate);
460,626
protected IStatus run(final IProgressMonitor monitor) {<NEW_LINE>monitor.beginTask("Loading...", IProgressMonitor.UNKNOWN);<NEW_LINE>twdata.clear();<NEW_LINE>collectObj();<NEW_LINE>Iterator<Integer> serverIds = serverObjMap.keySet().iterator();<NEW_LINE>final TreeSet<XLogData> tempSet = new TreeSet<XLogData>(new XLogDa...
param.put("stime", stime);
1,059,918
public void validateUndeploymentTarget(String target, String name) {<NEW_LINE>List<String> <MASK><NEW_LINE>if (referencedTargets.size() > 1) {<NEW_LINE>Application app = applications.getApplication(name);<NEW_LINE>if (!DeploymentUtils.isDomainTarget(target) && domain.getDeploymentGroupNamed(target) == null) {<NEW_LINE>...
referencedTargets = domain.getAllReferencedTargetsForApplication(name);
662,527
public static void main(String[] args) throws Exception {<NEW_LINE>String inputfilepath = System.getProperty("user.dir") + "/sample-docs/Hier2Level.glox";<NEW_LINE>// inputfilepath = System.getProperty("user.dir") + "/sample-docs/extracted/SmartArt-BasicChevronProcess.pptx.glox";<NEW_LINE>// String inputfilepath = Syst...
, dataRelId, colorsRelId, styleRelId));
490,432
public Symbol apply(Function operator, Captures captures, NodeContext nodeCtx, Symbol parentNode) {<NEW_LINE>var literal = operator.arguments().get(0);<NEW_LINE>var castFunction = captures.get(castCapture);<NEW_LINE>var reference = castFunction.arguments().get(0);<NEW_LINE>DataType<?> targetType = reference.valueType()...
var operatorName = operator.name();
341,807
final GetTrafficPolicyInstanceCountResult executeGetTrafficPolicyInstanceCount(GetTrafficPolicyInstanceCountRequest getTrafficPolicyInstanceCountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTrafficPolicyInstanceCountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,486,428
private Optional<IntegerSpace> toPorts(PortSpec portSpec) {<NEW_LINE>// TODO: rewrite to allow for better tracing?<NEW_LINE>return portSpec.accept(new PortSpecVisitor<Optional<IntegerSpace>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Optional<IntegerSpace> visitLiteralPortSpec(LiteralPortSpec literalPortSpec) {<N...
of(literalPortSpec.getPorts());
904,000
public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>switch(targetController) {<NEW_LINE>case YOU:<NEW_LINE>boolean yours = event.getPlayerId().equals(this.controllerId);<NEW_LINE>if (yours && setTargetPointer) {<NEW_LINE>if (getTargets().isEmpty()) {<NEW_LINE>this.getEffects().forEach(effect -> {<NEW_LIN...
(event.getPlayerId()));
1,756,318
private // ----------------//<NEW_LINE>GradeImpacts computeImpacts(SegmentInter s1, SegmentInter s2, boolean rev) {<NEW_LINE>// Intrinsic segments impacts<NEW_LINE>GradeImpacts imp1 = s1.getImpacts();<NEW_LINE>double d1 = imp1.getGrade() / imp1.getIntrinsicRatio();<NEW_LINE>GradeImpacts imp2 = s2.getImpacts();<NEW_LINE...
- (invSlope / params.openMaxBias);
619,915
bbBlock truncate(Object caller, int version, int pos) {<NEW_LINE>assert mutation_in_progress(caller, version);<NEW_LINE>if (0 > pos || pos > this._buf_limit)<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>// clear out all the blocks in use from the last in use<NEW_LINE>// to the block where the eof will be loc...
._next_block_position = b._idx + 1;
1,081,058
private JPanel createXPathQueryPanel() {<NEW_LINE>JPanel p = new JPanel();<NEW_LINE>p.setLayout(new BorderLayout());<NEW_LINE>xpathQueryArea.setBorder(BorderFactory.createLineBorder(Color.black));<NEW_LINE>makeTextComponentUndoable(xpathQueryArea);<NEW_LINE>JScrollPane scrollPane = new JScrollPane(xpathQueryArea);<NEW_...
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
1,217,879
private void populatePathToRoot(File file, SVNUrl rootUrl) throws SVNClientException {<NEW_LINE>Map<File, SVNUrl> <MASK><NEW_LINE>for (Entry<File, SVNUrl> e : m.entrySet()) {<NEW_LINE>SVNUrl url = e.getValue();<NEW_LINE>if (url != null) {<NEW_LINE>String rootPath = SvnUtils.decodeToString(SVNUrlUtils.getRelativePath(ro...
m = SvnUtils.getRepositoryUrls(file);
1,334,531
public Request<ApplyPendingMaintenanceActionRequest> marshall(ApplyPendingMaintenanceActionRequest applyPendingMaintenanceActionRequest) {<NEW_LINE>if (applyPendingMaintenanceActionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ApplyPend...
request.addParameter("Version", "2014-10-31");
264,478
private void simulateSlowFileUpload(final String mediaId, final String mediaUrl) {<NEW_LINE>Thread thread = new Thread() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>sleep(5000);<NEW_LINE>float count = (float) 0.1;<NEW_LINE>while (count < 1.1) {<NEW_LINE>sleep(2000);<NEW_LINE>((Ed...
).onMediaUploadSucceeded(mediaId, mediaFile);
1,753,167
protected List<MetricDatum> counterMetricOf(MetricType type, Request<?> req, Object resp, boolean includesRequestType) {<NEW_LINE>AWSRequestMetrics m = req.getAWSRequestMetrics();<NEW_LINE>TimingInfo ti = m.getTimingInfo();<NEW_LINE>final String metricName = type.name();<NEW_LINE>Number counter = ti.getCounter(metricNa...
()).withValue(metricName);
1,696,467
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.decrypt_bip38_private_key_activity);<NEW_LINE>mbwManager = MbwManager.get...
password = savedInstanceState.getString("password");
478,737
public void call(FullAccessIntArrPointer dst, int stride, ReadOnlyIntArrPointer above, ReadOnlyIntArrPointer left) {<NEW_LINE>int i;<NEW_LINE>// outer border from bottom-left<NEW_LINE>FullAccessIntArrPointer border = new FullAccessIntArrPointer(32 + 32 - 1);<NEW_LINE>// to top-right<NEW_LINE>PositionableIntArrPointer p...
bs - 1 - i, bs);
1,292,889
public static String download(FilePath folder, String fileName) throws IOException {<NEW_LINE>// local<NEW_LINE>if (folder.getFileSystem() instanceof LocalFileSystem) {<NEW_LINE>return folder.getPathStr();<NEW_LINE>}<NEW_LINE>File localConfDir = new File(System.getProperty("java.io.tmpdir"), FileUtils.getRandomFilename...
"Could not create the dir " + localConfDir.getAbsolutePath());
465,679
private void findSruExecutedFiles(String sruDb, Content dataSource) {<NEW_LINE>org.sleuthkit.autopsy.casemodule.services.FileManager fileManager = currentCase.getServices().getFileManager();<NEW_LINE>String sqlStatement = // NON-NLS<NEW_LINE>"SELECT DISTINCT SUBSTR(LTRIM(IdBlob, '\\Device\\HarddiskVolume'), INSTR(LTRIM...
SQLiteDBConnect("org.sqlite.JDBC", "jdbc:sqlite:" + sruDb);
976,238
public long insert(@NonNull SignalServiceEnvelope envelope) {<NEW_LINE>Optional<Long> messageId = find(envelope);<NEW_LINE>if (messageId.isPresent()) {<NEW_LINE>return -1;<NEW_LINE>} else {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(TYPE, envelope.getType());<NEW_LINE>values.put(SOURCE_UUI...
SERVER_DELIVERED_TIMESTAMP, envelope.getServerDeliveredTimestamp());
1,593,412
private boolean basicReadJandex(TargetsTableImpl targetData) {<NEW_LINE>String methodName = "readJandex";<NEW_LINE><MASK><NEW_LINE>if (logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.logp(Level.FINER, CLASS_NAME, methodName, "Container [ " + getName() + " ] Jandex File [ " + getCoreDataLink() + " ]");<NEW_LINE>}<NEW_...
long readStart = System.nanoTime();
1,569,374
public View generateView(@NonNull final BaseActivity activity, @Nullable final Integer textColor, @Nullable final Float textSize, final boolean showLinkButtons) {<NEW_LINE>final LinearLayout outerLayout = new LinearLayout(activity);<NEW_LINE>final int paddingPx = General.dpToPixels(activity, 6);<NEW_LINE>outerLayout.se...
, textColor, textSize, showLinkButtons));
1,167,479
private static void initWindows2AndroidMap() {<NEW_LINE>windowsToAndroidEventMap.<MASK><NEW_LINE>windowsToAndroidEventMap.put(0x09, KeyEvent.KEYCODE_TAB);<NEW_LINE>windowsToAndroidEventMap.put(0x0C, KeyEvent.KEYCODE_CLEAR);<NEW_LINE>windowsToAndroidEventMap.put(0x0D, KeyEvent.KEYCODE_ENTER);<NEW_LINE>windowsToAndroidEv...
put(0x08, KeyEvent.KEYCODE_DEL);
1,654,491
private static void addVoidPointersAsSymbols(String structureName, long structureAddress, StructureReader structureReader, IProcess process) throws DataUnavailableException, CorruptDataException {<NEW_LINE>if (structureAddress == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<String> voidFields = getVoidPointerFieldsFr...
Logger.getLogger(LoggerNames.LOGGER_STRUCTURE_READER);
284,770
public static DescribeAntChainsResponse unmarshall(DescribeAntChainsResponse describeAntChainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAntChainsResponse.setRequestId(_ctx.stringValue("DescribeAntChainsResponse.RequestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>result.setIsExist(_ctx.booleanValu...
(_ctx.integerValue("DescribeAntChainsResponse.Result.Pagination.TotalCount"));
105,259
public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session, Location clicked, @Nullable Direction face) {<NEW_LINE>World world = (World) clicked.getExtent();<NEW_LINE>BlockVector3 origin = clicked.toVector().toBlockPoint();<NEW_LINE>BlockType initialType = world.getBlock(o...
(TranslatableComponent.of("worldedit.tool.max-block-changes"));
1,498,757
public void deserialize(ByteBuffer buffer) {<NEW_LINE>name = ReadWriteIOUtils.readString(buffer);<NEW_LINE>isAligned = ReadWriteIOUtils.readBool(buffer);<NEW_LINE>// measurements<NEW_LINE>int size = ReadWriteIOUtils.readInt(buffer);<NEW_LINE>measurements = new String[size];<NEW_LINE>for (int i = 0; i < size; i++) {<NEW...
] = ReadWriteIOUtils.readString(buffer);
1,092,845
private boolean run(final Namespace options, final Target target, final PrintStream out, final PrintStream err, final String username, final boolean json, final BufferedReader stdin) throws Exception {<NEW_LINE>final HeliosClient client = Utils.getClient(target, err, username, options);<NEW_LINE>if (client == null) {<N...
err.println("Request timed out to master in " + target);
1,161,983
public void write(JsonWriter writer, Session value) throws IOException {<NEW_LINE>if (value == null) {<NEW_LINE>writer.nullValue();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writer.beginObject();<NEW_LINE>if (value.getSessionId() != null) {<NEW_LINE>writer.name("sid").value(value.getSessionId().toString());<NEW_LINE>}<NEW_L...
State status = value.getStatus();
963,709
final BatchDeleteDelegationByAssessmentResult executeBatchDeleteDelegationByAssessment(BatchDeleteDelegationByAssessmentRequest batchDeleteDelegationByAssessmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteDelegationByAssessmentRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchDeleteDelegationByAssessment");
875,259
public void onBindViewHolder(HistoryHolder holder, int position) {<NEW_LINE>if (null == mLazyList) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GalleryInfo gi = mLazyList.get(position);<NEW_LINE>holder.thumb.load(EhCacheKeyFactory.getThumbKey(gi.gid), gi.thumb);<NEW_LINE>holder.title.setText<MASK><NEW_LINE>holder.uploader.se...
(EhUtils.getSuitableTitle(gi));
1,162,417
private List<AnalyticJob> readApps(URL url) throws IOException, AuthenticationException {<NEW_LINE>List<AnalyticJob> appList = new ArrayList<AnalyticJob>();<NEW_LINE>JsonNode rootNode = readJsonNode(url);<NEW_LINE>JsonNode apps = rootNode.path("apps").path("app");<NEW_LINE>for (JsonNode app : apps) {<NEW_LINE>String ap...
"trackingUrl").getValueAsText() : null;
1,825,431
public static void validatePMMLVsSchema(PMML pmml, InputSchema schema) {<NEW_LINE>List<Model> models = pmml.getModels();<NEW_LINE>Preconditions.checkArgument(models.size() == 1, "Should have exactly one model, but had %s", models.size());<NEW_LINE>Model model = models.get(0);<NEW_LINE>MiningFunction function = model.ge...
DataDictionary dictionary = pmml.getDataDictionary();
1,336,727
public static Bytes encryptMsgEip8(final Bytes message, final SECPPublicKey remoteKey) throws InvalidCipherTextException {<NEW_LINE>final ECIESEncryptionEngine engine = ECIESEncryptionEngine.forEncryption(remoteKey);<NEW_LINE>// Do the encryption.<NEW_LINE>final Bytes bytes = addPadding(message);<NEW_LINE>final int siz...
copyTo(answer, offset + IV_SIZE);
392,223
private void animatingZoomInThread(int zoomStart, double zoomFloatStart, int zoomEnd, double zoomFloatEnd, float animationTime, boolean notifyListener) {<NEW_LINE>try {<NEW_LINE>isAnimatingZoom = true;<NEW_LINE>// could be 0 ]-0.5,0.5], -1 ]-1,0], 1 ]0, 1]<NEW_LINE>int threshold = ((int) (zoomFloatEnd * 2));<NEW_LINE>d...
Math.abs(endZoom - beginZoom);
919,809
private void loadNode476() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultHttpsGroup_TrustList_GetPosition_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments")...
Object o = decoder.readVariantValue();
1,358,254
public io.kubernetes.client.proto.V1.PreferredSchedulingTerm buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1.PreferredSchedulingTerm result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<...
proto.V1.PreferredSchedulingTerm(this);
1,432,805
public ListDomainsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDomainsResult listDomainsResult = new ListDomainsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
1,837,126
private void resumeScreenLock(boolean force) {<NEW_LINE>KeyguardManager keyguardManager = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);<NEW_LINE>assert keyguardManager != null;<NEW_LINE>if (!keyguardManager.isKeyguardSecure()) {<NEW_LINE>Log.w(TAG, "Keyguard not secure...");<NEW_LINE>handleAuthenticated...
.string.PassphrasePromptActivity_unlock_signal), "");
362,676
private void readDictionariesFromSegment(String segmentDirectory) throws Exception {<NEW_LINE>File segmentIndexDir = new File(segmentDirectory);<NEW_LINE>SegmentMetadataImpl segmentMetadata = new SegmentMetadataImpl(segmentIndexDir);<NEW_LINE>pinotToAvroSchema(segmentMetadata);<NEW_LINE>// read dictionaries from segmen...
String columnName = entry.getKey();
1,533,159
public boolean visit(Assignment node) {<NEW_LINE>Expression leftHandSide = node.getLeftHandSide();<NEW_LINE>if (!considerBinding(resolveBinding(leftHandSide), leftHandSide)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>checkParent(node);<NEW_LINE>Expression rightHandSide = node.getRightHandSide();<NEW_LINE>if (!fIsField...
ParenthesizedExpression p = ast.newParenthesizedExpression();
518,031
Path compile() throws IOException, SourceCompilationException {<NEW_LINE>Path compilationStdOut = Files.createTempFile("compilation_stdout_", ".txt");<NEW_LINE>Path compilationStdErr = Files.createTempFile("compilation_stderr_", ".txt");<NEW_LINE>Path compiledRootDir = Files.createTempDirectory("compilation_prodout_");...
ByteStreams.copy(inputStream, jarOutputStream);
413,457
public Snapshot archiveSnapshot(Long snapshotId) {<NEW_LINE>SnapshotInfo snapshotOnPrimary = snapshotFactory.getSnapshot(snapshotId, DataStoreRole.Primary);<NEW_LINE>if (snapshotOnPrimary == null || !snapshotOnPrimary.getStatus().equals(ObjectInDataStoreStateMachine.State.Ready)) {<NEW_LINE>throw new CloudRuntimeExcept...
"Snapshot archived to Secondary Storage but there was an error deleting " + " the snapshot on Primary Storage. Please manually delete the primary snapshot " + snapshotId, e);
1,139,918
public SampleChannelDataResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SampleChannelDataResult sampleChannelDataResult = new SampleChannelDataResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
JsonToken token = context.getCurrentToken();
922,419
protected OWLAxiom trIntersectionOf(OWLClass cls, Collection<Clause> clauses) {<NEW_LINE>Set<<MASK><NEW_LINE>Set<OWLClassExpression> eSet = new HashSet<>();<NEW_LINE>eSet.add(cls);<NEW_LINE>Set<OWLClassExpression> iSet = new HashSet<>();<NEW_LINE>for (Clause clause : clauses) {<NEW_LINE>Collection<QualifierValue> qvs =...
OWLAnnotation> annotations = trAnnotations(clauses);
494,055
private void init_card_thumb_resourceURL_style() {<NEW_LINE>// Create a Card<NEW_LINE>Card card = new Card(getActivity());<NEW_LINE>// Create a CardHeader<NEW_LINE>CardHeader header = new CardHeader(getActivity());<NEW_LINE>// Set the header title<NEW_LINE>header.setTitle(getString(R.string.demo_header_basetitle));<NEW...
findViewById(R.id.carddemo_thumb_style);
980,649
protected Transferable copyBytes(ClipboardType copyType, TaskMonitor monitor) {<NEW_LINE>if (copyType == BYTE_STRING_TYPE) {<NEW_LINE>String byteString = copyBytesAsString(getSelectedAddresses(), true, monitor);<NEW_LINE>return new ByteStringTransferable(byteString);<NEW_LINE>} else if (copyType == BYTE_STRING_NO_SPACE...
), ", " + prefix, monitor);
1,263,058
public void askConfirmationMoveToRubbish(final ArrayList<Long> handleList) {<NEW_LINE>logDebug("askConfirmationMoveToRubbish");<NEW_LINE>DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(DialogInterface dialog, int whi...
(R.string.confirmation_move_to_rubbish_plural));
797,982
public void authenticate(JsonObject user, Handler<AsyncResult<User>> resultHandler) {<NEW_LINE>JsonObject object = new JsonObject();<NEW_LINE>object.put("foo", "bar").put("num", 123).put("mybool", true);<NEW_LINE>JsonArray array = new JsonArray();<NEW_LINE>array.add("foo").add(123).add(false);<NEW_LINE>DeliveryOptions ...
result().body());
1,230,820
public static ListCallEventDetailByContactIdResponse unmarshall(ListCallEventDetailByContactIdResponse listCallEventDetailByContactIdResponse, UnmarshallerContext context) {<NEW_LINE>listCallEventDetailByContactIdResponse.setRequestId(context.stringValue("ListCallEventDetailByContactIdResponse.RequestId"));<NEW_LINE>li...
(context.stringValue("ListCallEventDetailByContactIdResponse.Data.Callee"));
1,294,192
protected Tuple3<Params, Iterable<String>, Iterable<Object>> serializeModel(TreeModelDataConverter modelData) {<NEW_LINE>List<String> serialized = new ArrayList<>();<NEW_LINE>int pStart = 0, pEnd = 0;<NEW_LINE>// toString partition of stringIndexerModel<NEW_LINE>if (modelData.stringIndexerModelSerialized != null) {<NEW...
.of(pStart, pEnd));
670,746
private void handleBeanDefinitionMetadata(Builder code) {<NEW_LINE>String bdVariable = determineVariableName("bd");<NEW_LINE>MultiStatement statements = new MultiStatement();<NEW_LINE>if (this.beanDefinition.isPrimary()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>String scope = this.beanDefinition.getScope();<NEW_LINE>if (S...
statements.add("$L.setPrimary(true)", bdVariable);
1,697,499
private void buildDependencyDashboard(Model model, Payload payload, Date reportTime) {<NEW_LINE>ProductLinesDashboard dashboardGraph = m_graphManager.buildDependencyDashboard(reportTime.getTime());<NEW_LINE>Map<String, List<TopologyNode>> nodes = dashboardGraph.getNodes();<NEW_LINE>SimpleDateFormat sdf = new SimpleDate...
String domain = node.getId();
668,244
public void processFlushQuery(ControlAreYouFlushed flushQuery) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "processFlushQuery", new Object[] { flushQuery });<NEW_LINE>SIBUuid12 streamID = flushQuery.getGuaranteedStreamUUID();<NEW_LINE>t...
SIBUuid8 requestor = flushQuery.getGuaranteedSourceMessagingEngineUUID();
1,287,614
public FormInfo execute(CommandContext commandContext) {<NEW_LINE>CmmnEngineConfiguration cmmnEngineConfiguration = CommandContextUtil.getCmmnEngineConfiguration(commandContext);<NEW_LINE>FormService formService = CommandContextUtil.getFormService(commandContext);<NEW_LINE>if (formService == null) {<NEW_LINE>throw new ...
getCaseById(caseDefinition.getKey());
1,400,066
public void displayChatNotification(ChatNotification chatNotification) {<NEW_LINE>// We need to specify these parameters so that the data returned<NEW_LINE>// from the launching intent is processed correctly.<NEW_LINE>// https://github.com/keybase/client/blob/95959e12d76612f455ab4a90835debff489eacf4/shared/actions/plat...
NotificationManagerCompat.from(this.context);
836,593
public void simpleQueries() {<NEW_LINE>// [START simple_queries]<NEW_LINE>// Create a reference to the cities collection<NEW_LINE>CollectionReference citiesRef = db.collection("cities");<NEW_LINE>// Create a query against the collection.<NEW_LINE>Query query = citiesRef.whereEqualTo("state", "CA");<NEW_LINE>// [END sim...
citiesRef.whereNotEqualTo("capital", false);
1,616,211
public AuthConfig updateAuthConfig(AuthConfig body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling updateAut...
HashMap<String, Object>();
875,277
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {<NEW_LINE>if (XposedBridge.disableHooks) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logD("SystemServer#startBootstrapServices() starts");<NEW_LINE>try {<NEW_LINE>XposedInit.loadedPackagesInProcess.add("android");<NEW_LINE>XC_LoadPackage.LoadPackageP...
Hookers.logE("error when hooking startBootstrapServices", t);
979,125
public int compareTo(FullRuleKey other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetKey()).compareTo(other.isSetKey());<NEW_LINE>if ...
compareTo(other.isSetValues());
82,893
public static Map<String, Object> putModelUniversalOmni(CameraUniversalOmni parameters, @Nullable Map<String, Object> map) {<NEW_LINE>if (map == null)<NEW_LINE>map = new HashMap<>();<NEW_LINE>map.put("model", MODEL_OMNIDIRECTIONAL_UNIVERSAL);<NEW_LINE>map.put(VERSION, 0);<NEW_LINE>map.put("pinhole", putParamsPinhole(pa...
map.put("radial_tangential", mapDistort);
1,339,898
void updateProgress(int progressUnits) {<NEW_LINE>// Only do the percentage calculation if the result would be logged.<NEW_LINE>if (!logger.isLoggable(logLevel)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!timerStarted) {<NEW_LINE>throw new IllegalStateException("#updateProgress() called before #startTimer().");<NEW_LI...
.format("%d%% complete (ETR: ?)", displayedPercentage));
1,203,371
final CreatePolicyVersionResult executeCreatePolicyVersion(CreatePolicyVersionRequest createPolicyVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPolicyVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(createPolicyVersionRequest));
592,633
public static ListProofChainResponse unmarshall(ListProofChainResponse listProofChainResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProofChainResponse.setRequestId(_ctx.stringValue("ListProofChainResponse.RequestId"));<NEW_LINE>listProofChainResponse.setCode(_ctx.integerValue("ListProofChainResponse.Code"));<NEW_LI...
(_ctx.integerValue("ListProofChainResponse.Data.Total"));
248,905
public <B extends BlockStateHolder<B>> BlockStateHolder<?> updateNBT(B block, Map<String, Tag> values) {<NEW_LINE>Tag typeTag = values.get("color");<NEW_LINE>if (typeTag instanceof IntTag) {<NEW_LINE>String bedType = convertBedType(((IntTag) typeTag).getValue());<NEW_LINE>if (bedType != null) {<NEW_LINE>BlockType type ...
, block.getState(FACING_PROPERTY));
1,057,900
public SelectionResults renderSelectionResultsWithOrdering(boolean preserveType) {<NEW_LINE>LinkedList<Serializable[]> rowsInSelectionResults = new LinkedList<>();<NEW_LINE>int[] columnIndices = SelectionOperatorUtils.getColumnIndices(_selectionColumns, _dataSchema);<NEW_LINE>int numColumns = columnIndices.length;<NEW_...
.convertAndFormat(row[columnIndex]);
176,735
private FieldValueReader createReader(String mapping) {<NEW_LINE>FieldValueReader reader = null;<NEW_LINE>if (mapping.startsWith(MAPPING_INDEX_PREFIX)) {<NEW_LINE>int propertySepIdx = mapping.indexOf(MAPPING_INDEX_PROPERTY_SEP, MAPPING_INDEX_PREFIX_LENGTH + 1);<NEW_LINE>if (propertySepIdx < 0) {<NEW_LINE>String indexSt...
= new IndexReader(index - 1);
1,176,916
private void countComponentsInCollectionRecursively(Project project, CollectionDesc.Builder builder, Map<String, Integer> target) throws IOException, CompileExceptionError {<NEW_LINE>for (InstanceDesc inst : builder.getInstancesList()) {<NEW_LINE>IResource res = project.getResource(inst.getPrototype());<NEW_LINE><MASK>...
countComponentInResource(project, res, target);