idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
978,045
public StartMedicalTranscriptionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartMedicalTranscriptionJobResult startMedicalTranscriptionJobResult = new StartMedicalTranscriptionJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
().unmarshall(context));
1,272,679
public Node call() {<NEW_LINE>Node node = null;<NEW_LINE>Map<String, Object> params = new HashMap<>();<NEW_LINE>String cypher = buildCypher(entry.getKey().getUri(), entry.getKey().getGraphUri(), params);<NEW_LINE>Result result = txInThread.execute(cypher, params);<NEW_LINE>if (result.hasNext()) {<NEW_LINE>node = (Node)...
node = txInThread.createNode(RESOURCE);
857,735
public Thumb[] scrapeExtraFanart() {<NEW_LINE>String urlOfCurrentPage = document.location();<NEW_LINE>if (urlOfCurrentPage != null && urlOfCurrentPage.contains("moviepages")) {<NEW_LINE>urlOfCurrentPage = urlOfCurrentPage.replaceFirst(Pattern.quote("http://en.caribbeancompr.com/eng/moviepages/"), "");<NEW_LINE>String m...
.quote("/index.html"), "");
1,564,312
void addGroup(RelationshipGroupRecord groupRecord, StripedLatches latches) {<NEW_LINE>// One long for the type + "has external degrees" bits<NEW_LINE>// One long for the next pointer<NEW_LINE>// One long for the groupId<NEW_LINE>// N longs for the count slots<NEW_LINE>int slotsForCounts = slotsForDegrees(groupRecord);<...
nodeCache.set(owningNode, groupIndex);
1,163,470
private void emitLiteralEnum(TsEnumModel enumModel, boolean exportKeyword, boolean declareKeyword) {<NEW_LINE>writeNewLine();<NEW_LINE>emitComments(enumModel.getComments());<NEW_LINE>final <MASK><NEW_LINE>final String constText = enumModel.isNonConstEnum() ? "" : "const ";<NEW_LINE>writeIndentedLine(exportKeyword, decl...
String declareText = declareKeyword ? "declare " : "";
1,234,106
public static String upload(final String string) throws IOException {<NEW_LINE>final URL url = new URL(BIN_URL);<NEW_LINE>final HttpURLConnection connection = <MASK><NEW_LINE>connection.setRequestMethod("POST");<NEW_LINE>connection.setRequestProperty("User-Agent", USER_AGENT);<NEW_LINE>connection.setDoOutput(true);<NEW...
(HttpURLConnection) url.openConnection();
20,468
protected void onBeforeArrayLoad(int opcode) {<NEW_LINE>Type arrtype = TypeUtils.getArrayType(opcode);<NEW_LINE>Type <MASK><NEW_LINE>if (locationTypeMismatch(loc, arrtype, retType))<NEW_LINE>return;<NEW_LINE>addExtraTypeInfo(om.getSelfParameter(), Type.getObjectType(className));<NEW_LINE>addExtraTypeInfo(om.getTargetIn...
retType = TypeUtils.getElementType(opcode);
1,786,565
public void call(SourceUnit source, GeneratorContext context, ClassNode classNode) throws CompilationFailedException {<NEW_LINE><MASK><NEW_LINE>List<ClassNode> classNodes = source.getAST().getClasses();<NEW_LINE>ClassNode mainClassNode = MainClass.get(classNodes);<NEW_LINE>// Additional auto configuration<NEW_LINE>for ...
ImportCustomizer importCustomizer = new SmartImportCustomizer(source);
906,473
public void write(JmeExporter ex) throws IOException {<NEW_LINE>OutputCapsule capsule = ex.getCapsule(this);<NEW_LINE>capsule.write(wheelSpatial, "wheelSpatial", null);<NEW_LINE>capsule.write(frontWheel, "frontWheel", false);<NEW_LINE>capsule.write(location, "wheelLocation", new Vector3f());<NEW_LINE>capsule.write(dire...
, "wheelDirection", new Vector3f());
165,540
private void ensureLayout(@Nonnull EditorView view, BidiRun run, int line) {<NEW_LINE>if (isReal()) {<NEW_LINE>view.getTextLayoutCache().onChunkAccess(this);<NEW_LINE>}<NEW_LINE>if (fragments != null)<NEW_LINE>return;<NEW_LINE>assert isReal();<NEW_LINE><MASK><NEW_LINE>int lineStartOffset = view.getEditor().getDocument(...
fragments = new ArrayList<>();
1,275,095
public FeedOperation read() throws Exception {<NEW_LINE>int read = readExact(in, prefix);<NEW_LINE>if (read != prefix.length) {<NEW_LINE>return FeedOperation.INVALID;<NEW_LINE>}<NEW_LINE>ByteBuffer header = ByteBuffer.wrap(prefix);<NEW_LINE>int sz = header.getInt();<NEW_LINE>int type = header.getInt();<NEW_LINE>long ha...
"Hash mismatch, expected " + hash + ", got " + computedHash);
1,558,075
public com.amazonaws.services.simpleworkflow.model.WorkflowExecutionAlreadyStartedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simpleworkflow.model.WorkflowExecutionAlreadyStartedException workflowExecutionAlreadyStartedException = new com.amazonaws...
String currentParentElement = context.getCurrentParentElement();
1,333,000
protected CommonAppListFilterViewModel.ListModelLoader onCreateListModelLoader() {<NEW_LINE>return index -> {<NEW_LINE>ThanosManager thanos = ThanosManager.from(getApplicationContext());<NEW_LINE>if (!thanos.isServiceInstalled()) {<NEW_LINE>return Lists.newArrayListWithCapacity(0);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>L...
PackageManager pm = thanos.getPkgManager();
893,885
public static ListenableFuture<?> toWhenHasSplitQueueSpaceFuture(Set<InternalNode> blockedNodes, List<RemoteTask> existingTasks, long weightSpaceThreshold) {<NEW_LINE>if (blockedNodes.isEmpty()) {<NEW_LINE>return immediateFuture(null);<NEW_LINE>}<NEW_LINE>Map<String, RemoteTask> nodeToTaskMap = new HashMap<>();<NEW_LIN...
).collect(toImmutableList());
1,370,496
public static PendingMessages parse(List<?> xpendingOutput) {<NEW_LINE>LettuceAssert.notNull(xpendingOutput, "XPENDING output must not be null");<NEW_LINE>LettuceAssert.isTrue(xpendingOutput.size() == 4, "XPENDING output must have exactly four output elements");<NEW_LINE>Long count = (Long) xpendingOutput.get(0);<NEW_L...
, Collections.unmodifiableMap(counts));
180,859
public synchronized void mute(TrackType muteType) {<NEW_LINE>MediaElement sink = passThru;<NEW_LINE>if (!elements.isEmpty()) {<NEW_LINE><MASK><NEW_LINE>if (!elements.containsKey(sinkId)) {<NEW_LINE>throw new OpenViduException(Code.MEDIA_ENDPOINT_ERROR_CODE, "This endpoint (" + getEndpointName() + ") has no media elemen...
String sinkId = elementIds.peekLast();
1,419,831
ASTNode clone0(AST target) {<NEW_LINE>SingleVariableDeclaration result = new SingleVariableDeclaration(target);<NEW_LINE>result.setSourceRange(<MASK><NEW_LINE>if (this.ast.apiLevel == AST.JLS2_INTERNAL) {<NEW_LINE>result.setModifiers(getModifiers());<NEW_LINE>} else {<NEW_LINE>result.modifiers().addAll(ASTNode.copySubt...
getStartPosition(), getLength());
958,592
protected void handleAddSubscriptionToTxn(CommandAddSubscriptionToTxn command) {<NEW_LINE>final TxnID txnID = new TxnID(command.getTxnidMostBits(), command.getTxnidLeastBits());<NEW_LINE>final long requestId = command.getRequestId();<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Receive add published partiti...
.pulsar().getTransactionMetadataStoreService();
842,092
final AssociateSoftwareTokenResult executeAssociateSoftwareToken(AssociateSoftwareTokenRequest associateSoftwareTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateSoftwareTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateSoftwareToken");
1,555,085
public DataMatchResult verify(QueryObjectBundle control, QueryObjectBundle test, Optional<QueryResult<Void>> controlQueryResult, Optional<QueryResult<Void>> testQueryResult, ChecksumQueryContext controlChecksumQueryContext, ChecksumQueryContext testChecksumQueryContext) {<NEW_LINE>List<Column> controlColumns = getColum...
.ifPresent(controlChecksumQueryContext::setChecksumQueryId));
1,209,817
public void transfer() throws Exception {<NEW_LINE>cursor = srcDB.openCursor(null, null);<NEW_LINE>DatabaseEntry keyEntry = new DatabaseEntry();<NEW_LINE>DatabaseEntry valueEntry = new DatabaseEntry();<NEW_LINE>VersionedSerializer<byte[]> versionedSerializer = new VersionedSerializer<byte[]>(new IdentitySerializer());<...
- startTime) / 1000 + " secs");
151,779
ActionResult<Wo> execute(String id, String path0, JsonElement jsonElement) throws Exception {<NEW_LINE>Callable<ActionResult<Wo>> callable = new Callable<ActionResult<Wo>>() {<NEW_LINE><NEW_LINE>public ActionResult<Wo> call() throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.in...
setId(dict.getId());
1,753,781
Object doCached(PolyglotLanguageContext languageContext, Object receiver, Object[] args, @CachedLibrary("receiver") InteropLibrary iterators, @Cached PolyglotToHostNode toHost, @Cached BranchProfile error, @Cached BranchProfile stop) {<NEW_LINE>TriState lastHasNext = (TriState) args[ARGUMENT_OFFSET];<NEW_LINE>try {<NEW...
cache.valueClass, cache.valueType);
316,214
private Intent createOpenFileIntent(OCFile file) {<NEW_LINE>String storagePath = file.getStoragePath();<NEW_LINE>Uri fileUri = getFileUri(file, MainApp.getAppContext().getResources().getStringArray(R.array.ms_office_extensions));<NEW_LINE>Intent openFileWithIntent = null;<NEW_LINE>int lastIndexOfDot = storagePath.lastI...
= new Intent(Intent.ACTION_VIEW);
1,300,311
public void finishMessageSending() {<NEW_LINE>for (int i = 0; i < fragNum; ++i) {<NEW_LINE>long bytesWriten = cacheOut[i].bytesWriten();<NEW_LINE>cacheOut[i].finishSetting();<NEW_LINE>cacheOut[i].writeLong(0, bytesWriten - SIZE_OF_LONG);<NEW_LINE>if (bytesWriten == SIZE_OF_LONG) {<NEW_LINE>logger.debug(<MASK><NEW_LINE>...
"[Finish msg] sending skip msg from {} -> {}, since msg size: {}", fragId, i, bytesWriten);
1,848,533
public Executor createExecutor(ExecutionContext context, int index) {<NEW_LINE>Executor ret;<NEW_LINE>RelCollation collation = sourceNode.getRelCollation();<NEW_LINE>if (mergeSort) {<NEW_LINE>List<RelFieldCollation> sortList = collation.getFieldCollations();<NEW_LINE>List<OrderByOption> orderBys = ExecUtils.convertFrom...
registerStatForExec(sourceNode, ret, context);
898,256
public int compare(CtElement o1, CtElement o2) {<NEW_LINE>if (!o1.getPosition().isValidPosition() && !o2.getPosition().isValidPosition()) {<NEW_LINE>return o1.equals(o2) ? 0 : ((o1.hashCode() < o2.hashCode()) ? -1 : 1);<NEW_LINE>}<NEW_LINE>if (!o1.getPosition().isValidPosition()) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LI...
< pos2) ? -1 : 1;
507,167
// Private methods ---------------------------------------------------------<NEW_LINE>private static boolean doOpen(FileObject fo, int offset, String search) {<NEW_LINE>try {<NEW_LINE>DataObject od = DataObject.find(fo);<NEW_LINE>EditorCookie ec = od.getCookie(EditorCookie.class);<NEW_LINE>LineCookie lc = od.getCookie(...
notify(ErrorManager.INFORMATIONAL, e);
1,087,337
// Waits until the cluster is available<NEW_LINE>public static void waitForClusterReady(RedshiftClient redshiftClient, String clusterId) {<NEW_LINE>Boolean clusterReady = false;<NEW_LINE>String clusterReadyStr = "";<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>DescribeClustersRequest clustersRequest = DescribeClustersReques...
System.out.println("Waiting for cluster to become available.");
397,974
public static void main(String[] args) {<NEW_LINE>Logo.print(true);<NEW_LINE>System.out.println("Scouter Batch Agent Version " + Version.getServerFullVersion());<NEW_LINE>Logger.println("A01", "Scouter Batch Agent Version " + Version.getServerFullVersion());<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>UdpLocalServer.getIns...
ReqestHandlingProxy.load(ReqestHandlingProxy.class);
1,831,988
private static void outputConfigurationToLog(final PwmApplication pwmApplication) {<NEW_LINE>final Instant startTime = Instant.now();<NEW_LINE>final Function<Map.Entry<String, String>, String> valueFormatter = entry -> {<NEW_LINE>final String spacedValue = entry.getValue(<MASK><NEW_LINE>return " " + entry.getKey() + "\...
).replace("\n", "\n ");
1,262,460
static void validateIdentifierField(int fieldId, Map<Integer, Types.NestedField> idToField, Map<Integer, Integer> idToParent) {<NEW_LINE>Types.NestedField <MASK><NEW_LINE>Preconditions.checkArgument(field != null, "Cannot add fieldId %s as an identifier field: field does not exist", fieldId);<NEW_LINE>Preconditions.che...
field = idToField.get(fieldId);
1,779,789
public Set<K> keySet() {<NEW_LINE>return new AbstractSet<K>() {<NEW_LINE><NEW_LINE>final List<String> keys = data.getPropertyKeys();<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Iterator<K> iterator() {<NEW_LINE>return new Iterator<K>() {<NEW_LINE><NEW_LINE>final Iterator<String<MASK><NEW_LINE><NEW_LINE>String lastEnco...
> it = keys.iterator();
1,461,832
public void marshall(UpdateComponentData updateComponentData, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateComponentData == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateComponentData.getBind...
updateComponentData.getEvents(), EVENTS_BINDING);
1,266,271
public void run() {<NEW_LINE>SelectionManager manager = VizController.getInstance().getSelectionManager();<NEW_LINE>if (manager.isSelectionEnabled()) {<NEW_LINE>if (manager.isRectangleSelection()) {<NEW_LINE>configureLink.setVisible(false);<NEW_LINE>statusLabel.setText(NbBundle.getMessage(SelectionBar.class, "Selection...
(SelectionBar.class, "SelectionBar.statusLabel.dragging"));
83,435
protected void layoutPeer() {<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!superPeerMode) {<NEW_LINE>// called by Codename One EDT to position the native component.<NEW_LINE>activity.runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>if (layoutWrapper != nu...
.this.relativeLayout.requestLayout();
389,522
protected void addVars(CodegenModel m, Map<String, Schema> properties, List<String> required, Map<String, Schema> allProperties, List<String> allRequired) {<NEW_LINE>m.hasRequired = false;<NEW_LINE>if (properties != null && !properties.isEmpty()) {<NEW_LINE>m.hasVars = true;<NEW_LINE>Set<String> mandatory = required ==...
: new TreeSet<>(allRequired);
377,990
public void updateTracks(PyramidDiscrete<I> pyramid, D[] derivX, D[] derivY) {<NEW_LINE>this.imageWidth = pyramid.getInputWidth();<NEW_LINE>this.imageHeight = pyramid.getInputWidth();<NEW_LINE>this.tracksDropped.clear();<NEW_LINE>this.tracksSpawned.clear();<NEW_LINE>if (frameID == -1)<NEW_LINE>associate.initializeAssoc...
track = tracksActive.get(i);
982,261
protected void initFormPanel(boolean searchAndReplace) {<NEW_LINE>formPanel = new SearchFormPanel();<NEW_LINE>formPanel.addRow(lblTextToFind, cboxTextToFind.getComponent(), true);<NEW_LINE>JPanel hintAndButtonPanel = initHintAndButtonPanel();<NEW_LINE>formPanel.addRow(new JLabel(), hintAndButtonPanel);<NEW_LINE>initCon...
lblScope, cboxScope.getComponent());
201,455
private void findResourceMethods(Object theProvider) {<NEW_LINE>ourLog.debug("Scanning type for RESTful methods: {}", theProvider.getClass());<NEW_LINE>int count = 0;<NEW_LINE>Class<?> clazz = theProvider.getClass();<NEW_LINE>Class<?> supertype = clazz.getSuperclass();<NEW_LINE>while (!Object.class.equals(supertype)) {...
count += findResourceMethods(theProvider, supertype);
1,331,802
protected void read(CompoundTag compound, boolean clientPacket) {<NEW_LINE>boolean overStressedBefore = overStressed;<NEW_LINE>clearKineticInformation();<NEW_LINE>// DO NOT READ kinetic information when placed after movement<NEW_LINE>if (wasMoved) {<NEW_LINE>super.read(compound, clientPacket);<NEW_LINE>return;<NEW_LINE...
< stress && StressImpact.isEnabled();
430,745
protected void drawLineWithText(Canvas canvas, int startX, int startY, int endX, int endY, int endPointSpace) {<NEW_LINE>if (startX == endX && startY == endY) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (startX > endX) {<NEW_LINE>int tempX = startX;<NEW_LINE>startX = endX;<NEW_LINE>endX = tempX;<NEW_LINE>}<NEW_LINE>if (s...
+ getTextHeight(text) / 2);
1,772,097
public <T extends ImageBase<T>> SimpleImageSequence<T> load(String fileName, ImageType<T> imageType) {<NEW_LINE>URL url = UtilIO.ensureURL(fileName);<NEW_LINE>if (url == null)<NEW_LINE>throw new RuntimeException("Can't open " + fileName);<NEW_LINE>String protocol = url.getProtocol();<NEW_LINE>// See if it's a directory...
err.println("WARNING: Using JCodec to read movie files as a last resort. " + "Great that it works, but it's very slow. Might want to look at alternatives.");
801,169
public boolean isMessageSimilar(String message) {<NEW_LINE>// raw message includes {i} params<NEW_LINE>String raw = get();<NEW_LINE>List<String> parts = new ArrayList<>();<NEW_LINE>int iLast = 0;<NEW_LINE>int iClose = 0;<NEW_LINE>while (iClose < raw.length()) {<NEW_LINE>int iOpen = <MASK><NEW_LINE>if (iOpen < 0) {<NEW_...
raw.indexOf('{', iClose);
1,277,034
public static ArrayList<HttpCookie> parseRawCookie(String rawCookie) {<NEW_LINE>String[] rawCookieParams = rawCookie.split(";");<NEW_LINE>ArrayList<HttpCookie> cookies = new ArrayList<HttpCookie>();<NEW_LINE>for (String rawCookieParam : rawCookieParams) {<NEW_LINE>String[] rawCookieNameAndValue = rawCookieParam.split("...
= new HttpCookie(cookieName, cookieValue);
1,848,869
private void verifySelection() {<NEW_LINE>logger.debug("--- Verifying selection ---");<NEW_LINE>OWLSelectionModel selectionModel = getOWLSelectionModel();<NEW_LINE>OWLClass lastSelectedClass = selectionModel.getLastSelectedClass();<NEW_LINE>logger.debug("Last selected class: {}", lastSelectedClass);<NEW_LINE>OWLObjectP...
logger.debug("Last selected individual: {}", lastSelectedIndividual);
1,381,471
private static void trackFiredRule(Rule firedRule, HttpServletRequest req) {<NEW_LINE>FiredRulesList firedRulesRequest = (FiredRulesList) req.getAttribute(WebKeys.RULES_ENGINE_FIRE_LIST);<NEW_LINE>HttpSession <MASK><NEW_LINE>FiredRulesList firedRulesSession = (session == null) ? new FiredRulesList() : (FiredRulesList) ...
session = req.getSession(false);
1,582,089
protected String doIt() throws Exception {<NEW_LINE>// Instance current Payment Selection<NEW_LINE>if (getRecord_ID() > 0) {<NEW_LINE>// Already exists<NEW_LINE>paymentSelection = new MPaySelection(getCtx(), getRecord_ID(), get_TrxName());<NEW_LINE>seqNo = paymentSelection.getLastLineNo();<NEW_LINE>} else {<NEW_LINE>//...
AmtSource = getSelectionAsBigDecimal(key, "INV_AmtSource");
165,987
private void createScrollDelegate(Context context, AttributeSet attrs, int defStyle) {<NEW_LINE>if (attrs != null) {<NEW_LINE>TypedArray a = context.obtainStyledAttributes(attrs, R.<MASK><NEW_LINE>mThumbDrawable = a.getDrawable(R.styleable.CustomScrollView_android_fastScrollThumbDrawable);<NEW_LINE>if (mThumbDrawable =...
styleable.CustomScrollView, 0, defStyle);
694,674
public static boolean checkVersion(String groupId, String artifactId, String separator, boolean logWarnings, Class cls) {<NEW_LINE>try {<NEW_LINE>String javacppVersion = getVersion();<NEW_LINE>String version = getVersion(groupId, artifactId, cls);<NEW_LINE>if (version == null) {<NEW_LINE>if (logWarnings && isLoadLibrar...
javacppVersions = javacppVersion.split(separator);
628,483
public void createGetterForField(AccessLevel level, JavacNode fieldNode, JavacNode source, boolean whineIfExists, boolean lazy, List<JCAnnotation> onMethod) {<NEW_LINE>if (fieldNode.getKind() != Kind.FIELD) {<NEW_LINE>source.addError(GETTER_NODE_NOT_SUPPORTED_ERR);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JCVariableDecl fi...
("Not generating %s(): A method with that name already exists%s", methodName, altNameExpl));
759,786
public static void init(BiConsumer<Block, RenderType> consumer) {<NEW_LINE>consumer.accept(ModBlocks.defaultAltar, RenderType.cutout());<NEW_LINE>consumer.accept(ModBlocks.<MASK><NEW_LINE>consumer.accept(ModBlocks.plainsAltar, RenderType.cutout());<NEW_LINE>consumer.accept(ModBlocks.mountainAltar, RenderType.cutout());...
forestAltar, RenderType.cutout());
1,189,483
public static void main(String[] args) {<NEW_LINE>if (args.length < 1) {<NEW_LINE>System.out.println("Please specify a SSM OpsItem ID value. You can obtain this value using the AWS Console.");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>// snippet-start:[ssm.Java1.get_ops.main]<NEW_LINE>// Get the OpsItem ID value<NEW...
println(item.getDescription());
1,258,766
public void testContextInfoExactMatchDisableDefault() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 5s , hung : 10s> <timing - Slow : 120s , hung : 120s>");<NEW_LINE>server.setServerConfigurationFile("contextInfoPattern/server_timing_7...
) - startTime, TimeUnit.NANOSECONDS);
951,334
public List<LimitOrder> openOrders() {<NEW_LINE>Map<String, List<Map<String, String>>> map = exmo.userOpenOrders(signatureCreator, apiKey, exchange.getNonceFactory());<NEW_LINE>List<LimitOrder> openOrders = new ArrayList<>();<NEW_LINE>for (String market : map.keySet()) {<NEW_LINE>CurrencyPair currencyPair = adaptMarket...
type = ExmoAdapters.adaptOrderType(order);
631,610
private ContentValues toContentValues(final DepictedItem depictedItem) {<NEW_LINE>final List<String> namesOfCommonsCategories = new ArrayList<>();<NEW_LINE>for (final CategoryItem category : depictedItem.getCommonsCategories()) {<NEW_LINE>namesOfCommonsCategories.add(category.getName());<NEW_LINE>}<NEW_LINE>final List<...
.COLUMN_CATEGORIES_THUMBNAIL_LIST, ArrayToString(thumbnailsOfCommonsCategories));
677,723
protected void afterObjectNew(String desc) {<NEW_LINE>if (loc.getWhere() == Where.AFTER) {<NEW_LINE>String extName = desc.replace('/', '.');<NEW_LINE>if (matches(loc.getClazz(), extName)) {<NEW_LINE>Type instType = Type.getObjectType(desc);<NEW_LINE>addExtraTypeInfo(om.getSelfParameter(), Type.getObjectType(className))...
Type.getObjectType(className)));
244,642
public static void splitV3CommandExecutableForV4(final Connection con) throws Exception {<NEW_LINE>try (PreparedStatement commandsQuery = con.prepareStatement(V3_COMMAND_EXECUTABLE_QUERY);<NEW_LINE>PreparedStatement insertCommandArgument = con.prepareStatement(V4_COMMAND_ARGUMENT_SQL);<NEW_LINE>ResultSet rs = commandsQ...
insertCommandArgument.setLong(V4_COMMAND_ID_INDEX, commandId);
397,127
public static void renderOrderA(Graphics2D g2, double scale, List<PointIndex2D_F64> points) {<NEW_LINE>g2.setStroke(new BasicStroke(5));<NEW_LINE>Color[] colorsSquare = new Color[4];<NEW_LINE>colorsSquare[0] = new Color(0, 255, 0);<NEW_LINE>colorsSquare[1] = new Color(100, 180, 0);<NEW_LINE>colorsSquare[2] = new Color(...
x, scale * p1.y);
770,389
private static void uploadProduct(String tableName, String productIndex) {<NEW_LINE>try {<NEW_LINE>// Add a book.<NEW_LINE>Map<String, AttributeValue> item = new HashMap<String, AttributeValue>();<NEW_LINE>item.put("Id", new AttributeValue().withN(productIndex));<NEW_LINE>item.put("Title", new AttributeValue().withS<MA...
("Book " + productIndex + " Title"));
1,499,750
public static void main(String[] arg) {<NEW_LINE>if (arg.length != 1 && arg.length != 2) {<NEW_LINE>System.err.println("Usage - java " + Password.class.getName() + " [<user>] <password>");<NEW_LINE>System.err.println("If the password is ?, the user will be prompted for the password");<NEW_LINE>System.exit(1);<NEW_LINE>...
Password pw = new Password(p);
504,078
public com.amazonaws.services.devopsguru.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.devopsguru.model.ConflictException conflictException = new com.amazonaws.services.devopsguru.model.ConflictException(null);<NEW_LINE><MASK><NEW_LINE>...
int originalDepth = context.getCurrentDepth();
794,040
private void initTypeName() {<NEW_LINE>this.importsResolver = new ImportsTypeStringResolver(protoclass().declaringType().orNull(), getDeclaringType());<NEW_LINE>this.importsResolver.hierarchyTraversalForUnresolvedTypes(protoclass().environment().round(), this.containingType.extendedClasses(), this.containingType.implem...
.returnTypeName = provider.returnTypeName();
56,871
private void doPopulatePerson(PersonAccount personObject, Map<String, Object> userInfoProps, Set<String> requestPropNames) {<NEW_LINE>System.out.println(CLASS_NAME + " <doPopulatePerson>, entry, personObject: \n" + personObject.toString());<NEW_LINE>System.out.println(" userInfoProps: " + userInfoProps.toString());<...
personObject.set(propName, propValue);
858,467
public static void printMap(int loglevel, Map m) {<NEW_LINE>if (debug) {<NEW_LINE>String timestr = "";<NEW_LINE>String[] data = getTraceElements();<NEW_LINE>if (debugging(data[0], loglevel)) {<NEW_LINE>if (timing) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>timestr = "{" + (now - last) + "} ";<NEW_LINE>l...
Object key = i.next();
873,866
public static GalenActionMutateArguments parse(String[] args) {<NEW_LINE>args = ArgumentsUtils.processSystemProperties(args);<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption("i", "include", true, "Tags for sections that should be included in test run");<NEW_LINE>options.addOption("e", "exclude", tr...
cmd.getOptionValue("i")));
1,428,815
private boolean tryParseTimeZoneNumericUTCOffset() {<NEW_LINE>Matcher matcher = createMatch(patternTimeZoneNumericUTCOffset, rest, true);<NEW_LINE>if (matcher.matches()) {<NEW_LINE>offsetSign = group(rest, matcher, 1);<NEW_LINE>offsetHour = group(rest, matcher, 2);<NEW_LINE>offsetMinute = group(rest, matcher, 4);<NEW_L...
group(rest, matcher, 5);
715,191
public void configure(B http) throws Exception {<NEW_LINE>OAuth2AuthorizationRequestRedirectFilter authorizationRequestFilter;<NEW_LINE>if (this.authorizationEndpointConfig.authorizationRequestResolver != null) {<NEW_LINE>authorizationRequestFilter = new OAuth2AuthorizationRequestRedirectFilter(this.authorizationEndpoi...
setAuthorizationRequestRepository(this.authorizationEndpointConfig.authorizationRequestRepository);
915,901
private void defineRecordTypeNode(BLangRecordTypeNode recordTypeNode) {<NEW_LINE>BRecordType recordType = (BRecordType) recordTypeNode.symbol.type;<NEW_LINE>recordTypeNode.setBType(recordType);<NEW_LINE>// Define all the fields<NEW_LINE>resolveFields(recordType, recordTypeNode);<NEW_LINE>resolveFieldsIncluded(recordTyp...
resolveTypeNode(recordTypeNode.restFieldType, env);
723,856
public static Object unpod(Pod.Value o) {<NEW_LINE>switch(o.getValCase()) {<NEW_LINE>case FLOAT32:<NEW_LINE>return o.getFloat32();<NEW_LINE>case FLOAT64:<NEW_LINE>return o.getFloat64();<NEW_LINE>case UINT:<NEW_LINE>return UnsignedLong.fromLongBits(o.getUint());<NEW_LINE>case SINT:<NEW_LINE>return o.getSint();<NEW_LINE>...
float[a.getValCount()];
1,413,192
private static Object wrap(final Object obj, final Object homeGlobal, final boolean jsonCompatible) {<NEW_LINE>if (obj instanceof ScriptObject) {<NEW_LINE>if (!(homeGlobal instanceof Global)) {<NEW_LINE>return obj;<NEW_LINE>}<NEW_LINE>final ScriptObject sobj = (ScriptObject) obj;<NEW_LINE>final Global global = (Global)...
return new JSONListAdapter(mirror, global);
341,967
public void visitClass(final ClassNode node) {<NEW_LINE>this.classNode = node;<NEW_LINE>// GRECLIPSE add -- GROOVY-5106<NEW_LINE>checkForDuplicateInterfaces(node);<NEW_LINE>// GRECLIPSE end<NEW_LINE>if (classNode.isInterface() || Traits.isTrait(node)) {<NEW_LINE>// maybe possible to have this true in joint compilation ...
= new ConstructorNode(0, null);
1,340,007
public static Documentation parseSection(@NonNull final String html, @NonNull final URL url) {<NEW_LINE>final String ref = url.getRef();<NEW_LINE>if (ref != null && !ref.isEmpty()) {<NEW_LINE>// NOI18N<NEW_LINE>final Pattern p = Pattern.compile("<h(\\d)\\s+id\\s*=\\s*[\"']" + Pattern.quote(ref) + "[\"']");<NEW_LINE>fin...
() : end), url);
800,564
private void attemptCompositeUniqueSpProcessing(@Nonnull SearchParameterMap theParams, RequestDetails theRequest) {<NEW_LINE>// Since we're going to remove elements below<NEW_LINE>theParams.values().forEach(nextAndList -> ensureSubListsAreWritable(nextAndList));<NEW_LINE>List<RuntimeSearchParam> activeUniqueSearchParam...
nextOrValue = nextOr.getValueAsQueryToken(myContext);
1,416,882
public void mergeChildren(Path source, Path target, CopyOption... options) throws IOException {<NEW_LINE>Path resolvedSource = resolve(source);<NEW_LINE>Path resolvedTarget = resolve(target);<NEW_LINE>walkFileTree(resolvedSource, new FileVisitor<Path>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public FileVisitResult pre...
move(dir, destDir, options);
1,517,579
private void writeChaptersChunks(WrapOutputStream wos) throws IOException {<NEW_LINE>byte[] allContents = contents.toByteArray();<NEW_LINE>byte[] zero16 = new byte[16];<NEW_LINE>Arrays.fill(zero16, 0, zero16.length, (byte) 0);<NEW_LINE>// write each package of content<NEW_LINE>int startPos = 0;<NEW_LINE>int len = 0;<NE...
ArrayList<byte[]>();
1,371,521
private static OutputEventArguments convertToOutputEventArguments(String message, String category, DebugAdapterContext context) {<NEW_LINE>Matcher matcher = STACKTRACE_PATTERN.matcher(message);<NEW_LINE>if (matcher.find()) {<NEW_LINE>String methodField = matcher.group(1);<NEW_LINE>String locationField = matcher.<MASK><...
group(matcher.groupCount());
1,302,711
public static void jacobian_Control3(DMatrixRMaj L_full, double[] beta, DMatrixRMaj A) {<NEW_LINE>// @formatter:off<NEW_LINE>int indexA = 0;<NEW_LINE>double b0 = beta[0], b1 = beta[1], b2 = beta[2];<NEW_LINE>final double[] ld = L_full.data;<NEW_LINE>for (int i = 0; i < 3; i++) {<NEW_LINE>int li = L_full.numCols * i;<NE...
ld[li + 2] * b2;
704,554
private List<Point2D> routeUpwardLoop(LayoutLocationMap<FGVertex, FGEdge> layoutToGridMap, Vertex2dFactory vertex2dFactory, Vertex2d start, Vertex2d end, DecompilerBlock loop) {<NEW_LINE>Set<FGVertex> loopVertices = loop.getVertices();<NEW_LINE>FGVertex rightmostLoopVertex = getRightmostVertex(layoutToGridMap, vertex2d...
start.columnIndex, end.columnIndex);
661,705
public static void asyncHttpRequest(String url, List<String> headers, Map<String, String> paramValues, Callback<String> callback, String method) throws Exception {<NEW_LINE>Query query = Query.newInstance().initParams(paramValues);<NEW_LINE>query.addParam(FieldsConstants.ENCODING, ENCODING);<NEW_LINE>query.addParam(Fie...
paramValues, String.class, callback);
1,459,656
public void startListening(Project project, J2eeModuleProvider j2eeProvider) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (compileListeners.containsKey(j2eeProvider)) {<NEW_LINE>// this is due to EAR childs :(<NEW_LINE>if (j2eeProvider instanceof J2eeApplicationProvider) {<NEW_LINE>stopListening(project, j2eeProvider);...
) j2eeProvider).getChildModuleProviders());
700,300
public void createControl(Composite composite) {<NEW_LINE>controlModifyListener = new ControlsListener();<NEW_LINE>Composite addrGroup = new Composite(composite, SWT.NONE);<NEW_LINE>addrGroup.setLayout(new GridLayout(1, false));<NEW_LINE>addrGroup.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>UIUtils.create...
new GridData(GridData.FILL_HORIZONTAL));
1,029,075
final ModifyCacheParameterGroupResult executeModifyCacheParameterGroup(ModifyCacheParameterGroupRequest modifyCacheParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyCacheParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ModifyCacheParameterGroup");
925,475
public void onrequest(HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "p", required = false) String p) {<NEW_LINE>Payload payload = new Payload(request, response);<NEW_LINE>payload.setPattern("/afx/worker/");<NEW_LINE>String finalURI = payload.getFinalURI();<NEW_LINE>Optional<String> opt...
getForObject(finalURI, String.class);
1,074,059
public RequestFuture requestFuture(Request request) throws NacosException {<NEW_LINE>Payload grpcRequest = GrpcUtils.convert(request);<NEW_LINE>final ListenableFuture<Payload> requestFuture = grpcFutureServiceStub.request(grpcRequest);<NEW_LINE>return new RequestFuture() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public b...
get(timeout, TimeUnit.MILLISECONDS);
256,901
private List<PHPDocVarTypeTag> findMethodParams(String description, int startOfDescription) {<NEW_LINE>List<PHPDocVarTypeTag> result = new ArrayList();<NEW_LINE>int position = startOfDescription;<NEW_LINE>ParametersExtractor parametersExtractor = ParametersExtractorImpl.create();<NEW_LINE>String parameters = parameters...
, token, types, paramNameNode));
1,834,556
public ApiResponse<List<InvoiceInfo>> billingGetInvoiceHeadersWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/billing/invoices";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pa...
HashMap<String, String>();
1,290,439
private boolean updateDisplayText(ListCell<T> cell, T item, boolean empty) {<NEW_LINE>if (empty) {<NEW_LINE>// create empty cell<NEW_LINE>if (cell == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>cell.setGraphic(null);<NEW_LINE>cell.setText(null);<NEW_LINE>return true;<NEW_LINE>} else if (item instanceof Node) {<NE...
Node currentNode = cell.getGraphic();
190,996
private Map<String, Integer> assignAttrIds(int attrTypeId) {<NEW_LINE>// Attrs are special, since they can be defined within a declare-styleable. Those are sorted<NEW_LINE>// after top-level definitions.<NEW_LINE>if (!innerClasses.containsKey(ResourceType.ATTR)) {<NEW_LINE>return ImmutableMap.of();<NEW_LINE>}<NEW_LINE>...
nextFreeId(nextId + 1, assignedIds);
1,643,387
protected String doIt() throws Exception {<NEW_LINE>if (migration == null || migration.getAD_Migration_ID() <= 0) {<NEW_LINE>throw new AdempiereException("@NotFound@ @AD_Migration_ID@");<NEW_LINE>}<NEW_LINE>final SingletonMigrationLoggerContext migrationCtx = new SingletonMigrationLoggerContext(migration);<NEW_LINE>mig...
Services.get(IMigrationLogger.class);
517,980
public VertexLabel readVertexLabel(HugeGraph graph, BackendEntry backendEntry) {<NEW_LINE>if (backendEntry == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TextBackendEntry entry = this.convertEntry(backendEntry);<NEW_LINE>Id id = readId(entry.id());<NEW_LINE>String name = JsonUtil.fromJson(entry.column(HugeKeys<MA...
.NAME), String.class);
681,292
private void addCreateNewImageProposal(final JavaContentAssistInvocationContext javaContext, ArrayList<ICompletionProposal> proposals, String prefix, int offset, int length) {<NEW_LINE>final IContainer parent = UmletPluginUtils.getCompilationUnitParent(javaContext.getCompilationUnit());<NEW_LINE>if (parent == null) {<N...
getFolder(new Path("doc-files"));
1,463,368
public String createUpdateQuery(KunderaQuery kunderaQuery) {<NEW_LINE><MASK><NEW_LINE>MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(metadata.getPersistenceUnit());<NEW_LINE>CQLTranslator translator = new CQLTranslator();<NEW_LINE>String update_Query = translator.UPDATE_...
EntityMetadata metadata = kunderaQuery.getEntityMetadata();
1,725,004
public static UnSubscribeRequestHeader buildHeader(Map<String, Object> headerParam) {<NEW_LINE>UnSubscribeRequestHeader header = new UnSubscribeRequestHeader();<NEW_LINE>header.setCode(MapUtils.getString(headerParam, ProtocolKey.REQUEST_CODE));<NEW_LINE>header.setVersion(ProtocolVersion.get(MapUtils.getString(headerPar...
, ProtocolKey.ClientInstanceKey.PASSWD));
1,407,255
final RemoveNotificationChannelResult executeRemoveNotificationChannel(RemoveNotificationChannelRequest removeNotificationChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeNotificationChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
684,453
private IQualityInvoiceLineGroup createQualityInvoiceLineGroup_WithholdingAmount() {<NEW_LINE>final ILagerKonfQualityBasedConfig config = getQualityBasedConfig();<NEW_LINE>if (config.getOverallNumberOfInvoicings() < 2) {<NEW_LINE>logger.debug("Nothing to do as ILagerKonfQualityBasedConfig {} has OverallNumberOfInvoicin...
.of(ONE, withholdingPriceUOM));
1,450,821
// transactionNames is passed in empty, and populated synchronously by this method<NEW_LINE>private ListenableFuture<?> rollupTransactionSummaryFromChildren(RollupParams rollup, AggregateQuery query, Collection<String> childAgentRollupIds, Multimap<String, String> transactionNames) throws Exception {<NEW_LINE>Map<Strin...
insertTransactionSummaries(rollup, query, summaries);
335,835
public CloseableIterator<E> createIterator(int skip, int take) {<NEW_LINE>try {<NEW_LINE>StatementListener listener = configuration.getStatementListener();<NEW_LINE>listener.beforeExecuteQuery(statement, sql, boundParameters);<NEW_LINE>ResultSet results = statement.executeQuery();<NEW_LINE>listener.afterExecuteQuery(st...
attributes = new LinkedHashSet<>();
232,912
public void run(FlowTrigger trigger, Map data) {<NEW_LINE>String hostUuid = getAvailableHostUuidForOperation();<NEW_LINE>if (hostUuid == null) {<NEW_LINE>trigger.next();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HostVO hvo = dbf.<MASK><NEW_LINE>DeleteVolumeBitsOnPrimaryStorageMsg dmsg = new DeleteVolumeBitsOnPrimaryStorageM...
findByUuid(hostUuid, HostVO.class);
1,521,217
private void doRebase(final Rebase rebase) {<NEW_LINE>final HgProgressSupport supp = this;<NEW_LINE>OutputLogger logger = getLogger();<NEW_LINE>try {<NEW_LINE>logger.<MASK><NEW_LINE>logger.outputInRed(Bundle.MSG_Rebase_Title_Sep());<NEW_LINE>logger.output(Bundle.MSG_Rebase_Started());<NEW_LINE>HgUtils.runWithoutIndexin...
outputInRed(Bundle.MSG_Rebase_Title());