idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
119,035
private String[] determineQName(Tag tag) {<NEW_LINE>TagAttribute attr = tag.getAttributes().get("jsfc");<NEW_LINE>if (attr != null) {<NEW_LINE>if (log.isLoggable(Level.FINE)) {<NEW_LINE>log.fine(attr + " JSF Facelet Compile Directive Found");<NEW_LINE>}<NEW_LINE>String value = attr.getValue();<NEW_LINE>String namespace...
tag, attr, "No Namespace matched for: " + prefix);
1,795,219
private static List<ClientThread> initDb(String dbname, Properties props, int threadcount, double targetperthreadperms, Workload workload, Tracer tracer, CountDownLatch completeLatch) {<NEW_LINE>boolean initFailed = false;<NEW_LINE>boolean dotransactions = Boolean.valueOf(props.getProperty(DO_TRANSACTIONS_PROPERTY, Str...
System.out.println("Warning: the threadcount is bigger than recordcount, the threadcount will be recordcount!");
192,700
public void onReceive(Context context, Intent intent) {<NEW_LINE>LogManager.d(TAG, "onReceive called in startup broadcast receiver");<NEW_LINE>if (Build.VERSION.SDK_INT < 18) {<NEW_LINE>LogManager.w(TAG, "Not starting up beacon service because we do not have API version 18 (Android 4.3). We have: %s", Build.VERSION.SD...
(BluetoothLeScanner.EXTRA_ERROR_CODE, -1);
388,872
private MInOut createShipment(MDocType dt, Timestamp movementDate) {<NEW_LINE>log.info("For " + dt);<NEW_LINE>MInOut shipment = new MInOut(this, dt.getC_DocTypeShipment_ID(), movementDate);<NEW_LINE><MASK><NEW_LINE>//<NEW_LINE>MOrderLine[] oLines = getLines(true, null);<NEW_LINE>for (int i = 0; i < oLines.length; i++) ...
shipment.saveEx(get_TrxName());
784,618
protected static String literalBitsComment(CstLiteralBits value, int width) {<NEW_LINE>StringBuilder sb = new StringBuilder(20);<NEW_LINE>sb.append("#");<NEW_LINE>long bits;<NEW_LINE>if (value instanceof CstLiteral64) {<NEW_LINE>bits = value.getLongBits();<NEW_LINE>} else {<NEW_LINE>bits = value.getIntBits();<NEW_LINE>...
u2((int) bits));
848,325
private static void addErrorFileAppender(LoggerContext context, String logErrorFile) {<NEW_LINE>// More documentation is available at: https://github.com/logstash/logstash-logback-encoder<NEW_LINE>final RollingFileAppender<ILoggingEvent> errorFileAppender = new RollingFileAppender<>();<NEW_LINE>errorFileAppender.setCon...
.ROOT_LOGGER_NAME).addAppender(errorFileAppender);
629,203
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> Result<Record18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> newResult(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field...
, field16, field17, field18 });
118,795
private void collectIndex(Class entity) {<NEW_LINE>List<Field> fs;<NEW_LINE>Class superClass = entity.getSuperclass();<NEW_LINE>if (superClass.isAnnotationPresent(Entity.class) || entity.isAnnotationPresent(EO.class)) {<NEW_LINE>// parent class or EO class is also an entity, it will take care of its foreign key,<NEW_LI...
= new ArrayList<IndexInfo>();
179,734
static ShaderProgram createDefaultShader() {<NEW_LINE>//<NEW_LINE>String //<NEW_LINE>vertexShader = //<NEW_LINE>"attribute vec4 " + ShaderProgram.POSITION_ATTRIBUTE + ";\n" + "attribute vec4 " + ShaderProgram.COLOR_ATTRIBUTE + ";\n" + "attribute vec2 " + //<NEW_LINE>ShaderProgram.TEXCOORD_ATTRIBUTE + //<NEW_LINE>"0;\n"...
"Error compiling shader: " + shader.getLog());
1,750,465
public void marshall(Partition partition, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (partition == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(partition.getValues(), VALUES_BINDING);<NEW_LINE>protocol...
partition.getStorageDescriptor(), STORAGEDESCRIPTOR_BINDING);
541,395
public static void addCopyPaste(ActionListener copyListener, ActionListener pasteListener, JComponent panel) {<NEW_LINE>// TODO ideally support paste and copy with control or command<NEW_LINE>KeyStroke copy = KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_MASK, false);<NEW_LINE>KeyStroke copy2 = KeyStroke.getKey...
VK_C, InputEvent.META_MASK, false);
47,100
protected void run(BookKeeper bk, Flags flags) throws Exception {<NEW_LINE>// test data<NEW_LINE>byte[] data = new byte[100];<NEW_LINE>try (WriteHandle wh = result(bk.newCreateLedgerOp().withEnsembleSize(flags.ensembleSize).withWriteQuorumSize(flags.writeQuorumSize).withAckQuorumSize(flags.ackQuorumSize).withDigestType...
"Ledger ID: " + wh.getId());
303,814
private void readHeader() throws IOException {<NEW_LINE>assertInput();<NEW_LINE>if (header == null) {<NEW_LINE>header = PSDHeader.read(imageInput);<NEW_LINE>if (!header.hasValidDimensions()) {<NEW_LINE>processWarningOccurred(String.format("Dimensions exceed maximum allowed for %s: %dx%d (max %dx%d)", header.largeFormat...
out.println("header: " + header);
1,277,098
private double onehHat(int t, double[] data, double[] h, double[] alpha, double[] beta, double c) {<NEW_LINE>double result = c * c;<NEW_LINE>if (t < alpha.length) {<NEW_LINE>for (int i = 0; i < t; i++) {<NEW_LINE>result += alpha[i] * alpha[i] * h[t - i - 1];<NEW_LINE>}<NEW_LINE>for (int i = t; i < alpha.length - t; i++...
data[t - i - 1];
626,752
private Quantity addQtyShipped(final DDOrderLineToAllocate ddOrderLineToAllocate, final I_M_HU hu, final Quantity qtyToAllocate, final boolean force) {<NEW_LINE>final ProductId productId = ddOrderLineToAllocate.getProductId();<NEW_LINE>//<NEW_LINE>// Get how much we can allocate (maximum)<NEW_LINE>final Quantity qtyToA...
(qtyShippedConv).build());
891,353
private List<CSVBind> createCSVBinding(String column, FileField fileField, Mapper mapper, List<CSVBind> allBindings) throws ClassNotFoundException {<NEW_LINE>Property prop = mapper.getProperty(fileField.getImportField().getName());<NEW_LINE>if (prop == null) {<NEW_LINE>return allBindings;<NEW_LINE>}<NEW_LINE>CSVBind du...
fileField, parentBind, dummyBind, isSameParentExist);
1,034,771
public SslContext deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {<NEW_LINE>ObjectNode node = jp.readValueAsTree();<NEW_LINE>try {<NEW_LINE>String keyStoreFile = node.path("keystoreFile").asText();<NEW_LINE>String keyStorePassword = node.path("keystorePassword").asText();<NEW_LINE>String tru...
builder = SslContextBuilder.forServer(keyManagerFactory);
905,899
private void handleSwitchType(SwitchSelection selection) {<NEW_LINE>ContextMenu menu = new ContextMenu();<NEW_LINE>Menu refs = new Menu<MASK><NEW_LINE>for (AST ast : root.getChildren()) {<NEW_LINE>if (ast instanceof LabelAST) {<NEW_LINE>String name = ((LabelAST) ast).getName().getName();<NEW_LINE>String key = selection...
(LangUtil.translate("ui.edit.method.follow"));
1,521,550
protected void importPhoneNumber(Person googlePerson, Partner partner, Boolean updateContactField) {<NEW_LINE>if (googlePerson.getPhoneNumbers() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PhoneNumber googleNumb = Mapper.toBean(PhoneNumber.class, googlePerson.getPhoneNumbers().get(0));<NEW_LINE>if (!Strings.isNullO...
getCanonicalForm().trim());
1,816,773
protected void applyDye(BlockState state, Level world, BlockPos pos, @Nullable DyeColor color) {<NEW_LINE>BlockState newState = (color == null ? AllBlocks.SAIL_FRAME : AllBlocks.DYED_SAILS.get(color)).getDefaultState();<NEW_LINE>newState = BlockHelper.copyProperties(state, newState);<NEW_LINE>// Dye the block itself<NE...
offset = pos.relative(d);
899,266
private static Template transform(Map<String, Object> map) {<NEW_LINE>final Template template;<NEW_LINE>template = new Template();<NEW_LINE>template.setInode(String.valueOf(map.get("inode")));<NEW_LINE>template.setOwner(String.valueOf(map.get("owner")));<NEW_LINE>template.setIDate((Date) map.get("create_date"));<NEW_LI...
get("add_container_links"), 0));
945,372
public int transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp) throws CannotCompileException {<NEW_LINE>int index;<NEW_LINE>int c = iterator.byteAt(pos);<NEW_LINE>if (c == NEW) {<NEW_LINE>index = iterator.u16bitAt(pos + 1);<NEW_LINE>if (cp.getClassInfo(index).equals(classname)) {<NEW_LINE>if (iterato...
).getAttribute(StackMap.tag);
1,525,692
public synchronized void createTweet(Status status, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>String originalName = "";<NEW_LINE>long id = status.getId();<NEW_LINE>long time = status.getCreatedAt().getTime();<NEW_LINE>String[] html = TweetLinkUtils.getLinksInStatus(status);<NEW_LINE>S...
getUser().getName());
828,342
final ListFlowsResult executeListFlows(ListFlowsRequest listFlowsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFlowsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
invoke(request, responseHandler, executionContext);
1,055,915
public Object execute(final Map<Object, Object> iArgs) {<NEW_LINE>if (schemaClass == null)<NEW_LINE>throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet");<NEW_LINE>final long recs = schemaClass.count(deep);<NEW_LINE>if (recs > 0 && !unsafe) {<NEW_LINE>if (schemaClass.isSu...
long subclassRecs = schemaClass.count();
1,021,614
static // http://www.ecb.europa.eu/press/pr/date/2000/html/pr001214_4.en.html<NEW_LINE>ImmutableHolidayCalendar generateEuropeanTarget() {<NEW_LINE>List<LocalDate> holidays = new ArrayList<>(2000);<NEW_LINE>for (int year = 1997; year <= 2099; year++) {<NEW_LINE>if (year >= 2000) {<NEW_LINE>holidays.add(date(year, 1, 1)...
(year, 5, 1));
330,072
protected int encodeLogViewLink(MessageTree tree, Message message, ByteBuf buf, int level, LineCounter counter) {<NEW_LINE>BufferHelper helper = m_bufferHelper;<NEW_LINE>Map<String, String> links = parseLinks(message.getData().toString());<NEW_LINE>int count = 0;<NEW_LINE>for (Map.Entry<String, String> e : links.entryS...
count += helper.td1(buf);
1,480,078
public Observable<T> subscribeChannel(String channelName, Object... args) {<NEW_LINE>final String channelId = getSubscriptionUniqueId(channelName, args);<NEW_LINE>LOG.info("Subscribing to channel {}", channelId);<NEW_LINE>return Observable.<T>create(e -> {<NEW_LINE>if (webSocketChannel == null || !webSocketChannel.isOp...
Subscription(e, channelName, args);
895,712
private void mergeOrdinal(int i) {<NEW_LINE>boolean addFromDelta = additionsReader.nextElement() == i;<NEW_LINE>boolean removeData = removalsReader.nextElement() == i;<NEW_LINE>for (int fieldIndex = 0; fieldIndex < numMergeFields; fieldIndex++) {<NEW_LINE>int deltaFieldIndex = deltaFieldIndexMapping[fieldIndex];<NEW_LI...
currentWriteFixedLengthStartBit, currentFromStateReadVarLengthDataPointers, currentWriteVarLengthDataPointers, removeData);
1,043,010
final public CompletableFuture<Integer> write(ChunkHandle handle, long offset, int length, InputStream data) {<NEW_LINE>Exceptions.checkNotClosed(this.closed.get(), this);<NEW_LINE>// Validate parameters<NEW_LINE>Preconditions.checkArgument(null != handle, "handle must not be null");<NEW_LINE>checkChunkName(handle.getC...
offset, length, data, opContext);
510,848
private void decodeRows() throws EOFException {<NEW_LINE>decodedLength = decodedRows.length;<NEW_LINE>for (int u = 0; u < units; u++) {<NEW_LINE>if (bufferPos >= bufferLength) {<NEW_LINE>throw new EOFException("Unexpected end of stream");<NEW_LINE>}<NEW_LINE>// Decode one unit<NEW_LINE>byte cb1 = buffer[bufferPos + uni...
decodedRows[pixelOff + 5] = cr2;
291,015
private void saveSettings() {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();<NEW_LINE>Document document = documentBuilder.newDocument();<NEW_LINE>Element settingsElement = document.createElement("settings");<NEW_LINE>document.appendChild(settingsEl...
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
1,572,103
private Mono<Response<List<VnetInfoInner>>> listVnetConnectionsWithResponseAsync(String resourceGroupName, String name, 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."));<NE...
getApiVersion(), accept, context);
1,304,764
final EnterStandbyResult executeEnterStandby(EnterStandbyRequest enterStandbyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enterStandbyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<EnterStandbyRequest> ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,517,749
public PrivateKey parse() throws GeneralSecurityException, IOException {<NEW_LINE>Path path = pemFile.toPath();<NEW_LINE>String privateKeyPem = new String(Files.readAllBytes(path));<NEW_LINE>if (privateKeyPem.contains(PEM_PRIVATE_START)) {<NEW_LINE>// PKCS#8 format<NEW_LINE>privateKeyPem = privateKeyPem.replace(PEM_PRI...
.read().getBigInteger();
1,455,792
private static Object replaceMotifLazyInputMaps(Object k, Object v) {<NEW_LINE>if (!(v instanceof UIDefaults.LazyInputMap))<NEW_LINE>return v;<NEW_LINE>return new UIDefaults.LazyValue() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object createValue(UIDefaults table) {<NEW_LINE>Object value = ((UIDefaults.LazyInputMa...
, inputMap.get(keyStrokePaste));
443,890
public void applyMigrationScripts(@NonNull final RolloutMigrationConfig config, @NonNull final DBConnectionSettings dbConnectionSettings, @NonNull final String dbName) {<NEW_LINE>logger.info("Just mark the script as executed: " + config.isJustMarkScriptAsExecuted());<NEW_LINE>logger.info("Script file: " + config.getScr...
String filename = config.getScriptFileName();
1,275,272
private void loadNode964() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_HistoryUpdateCount, new QualifiedName(0, "HistoryUpdateCount"), new LocalizedText("en", "HistoryUpdateCount"), LocalizedText.NULL_VALUE, UInteger.v...
this.nodeManager.addNode(node);
429,011
public static void splitSameNamedVariablesOfDiffTypes(MethodNode node) {<NEW_LINE>if (node.localVariables == null)<NEW_LINE>return;<NEW_LINE>Map<Integer, LocalVariableNode> indexToVar = new HashMap<>();<NEW_LINE>Map<Integer, String> indexToName = new HashMap<>();<NEW_LINE>Map<String, Integer> nameToIndex = new HashMap<...
put(lvn.name, index);
647,992
protected void write(ClassWriter classWriter, MethodWriter methodWriter, WriteScope writeScope) {<NEW_LINE>methodWriter.writeStatementOffset(getLocation());<NEW_LINE>Variable variable = writeScope.defineVariable(variableType, variableName);<NEW_LINE>Variable iterator = writeScope.defineInternalVariable(iteratorType, it...
"iterator", methodType, DefBootstrap.ITERATOR);
848,712
public boolean rawInvocation(Request request, Response response) throws Exception {<NEW_LINE>// Mark an evolution as resolved<NEW_LINE>if (Play.mode.isDev() && request.method.equals("POST") && request.url.matches("^/@evolutions/force/[a-zA-Z0-9]+/[0-9]+$")) {<NEW_LINE>int index = request.url.lastIndexOf("/@evolutions/f...
), moduleRoot.getValue());
1,011,785
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>titleLabel = new javax.swing.JLabel();<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>viewsList = new java...
= java.awt.GridBagConstraints.HORIZONTAL;
1,003,918
private static SqlRexConvertlet coalesceConvertlet() {<NEW_LINE>return (cx, call) -> {<NEW_LINE><MASK><NEW_LINE>if (operandsCount == 1) {<NEW_LINE>return cx.convertExpression(call.operand(0));<NEW_LINE>} else {<NEW_LINE>List<RexNode> caseOperands = new ArrayList<>();<NEW_LINE>for (int i = 0; i < operandsCount - 1; i++)...
int operandsCount = call.operandCount();
692,878
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>// handle library not being set<NEW_LINE>if (additionalProperties.get(CodegenConstants.SERIALIZATION_LIBRARY) == null) {<NEW_LINE>this.library = SERIALIZATION_LIBRARY_NATIVE;<NEW_LINE>LOGGER.debug("Serialization library not set, using default {}", SERIA...
("api_helper.mustache", libFolder, "api_helper.dart"));
1,382,486
public TaskStatus<?> scheduleWithFixedDelay(Runnable runnable, long initialDelay, long delay, TimeUnit unit) {<NEW_LINE>int compare = <MASK><NEW_LINE>initialDelay = // no conversion needed<NEW_LINE>initialDelay <= 0 ? // no conversion needed<NEW_LINE>0 : // no conversion needed<NEW_LINE>compare == 0 ? // round up to ne...
unit.compareTo(TimeUnit.MILLISECONDS);
1,315,593
public CompletableFuture<WebSocket> buildAsync(Listener listener) {<NEW_LINE>Request request = builder.build();<NEW_LINE>CompletableFuture<WebSocket> future = new CompletableFuture<>();<NEW_LINE>httpClient.newWebSocket(request, new WebSocketListener() {<NEW_LINE><NEW_LINE>private volatile boolean opened;<NEW_LINE><NEW_...
new OkHttpWebSocketImpl(webSocket), t);
1,186,788
static Object CreateSwappedType(VirtualFrame frame, Object type, Object[] args, PKeyword[] kwds, Object proto, FieldDesc fmt, TypeNode typeNew, InternStringNode internStringNode, CastToJavaStringNode toString, GetDictIfExistsNode getDict, SetDictNode setDict, HashingStorageLibrary hlib, PythonObjectFactory factory) {<N...
.size = fmt.pffi_type.size;
434,828
private Mono<Response<NatGatewayInner>> updateTagsWithResponseAsync(String resourceGroupName, String natGatewayName, TagsObject parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
958,529
public MappeableContainer ior(MappeableArrayContainer x) {<NEW_LINE>if (isFull()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>final int nbrruns = this.nbrruns;<NEW_LINE>final int offset = Math.max(nbrruns, x.getCardinality());<NEW_LINE>copyToOffset(offset);<NEW_LINE>char[] vl = this.valueslength.array();<NEW_LINE>int r...
PeekableCharIterator i = x.getCharIterator();
29,924
private Object callAction(String apiStr, String outputStr, Map<String, Object> params) {<NEW_LINE>List<String> o = Arrays.asList(outputStr.split("\\."));<NEW_LINE>if (o.isEmpty()) {<NEW_LINE>throw new OperationFailureException(Platform.operr("output from [%s] is empty", apiStr));<NEW_LINE>}<NEW_LINE>String apiName = "o...
result = call.invoke(action);
854,553
final GetIPSetResult executeGetIPSet(GetIPSetRequest getIPSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getIPSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetIPSetRequest> request = null;<NEW_LINE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
77,325
public boolean apply(Game game, Ability source) {<NEW_LINE>Card card = game.getCard(source.getSourceId());<NEW_LINE>if (card == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Player player;<NEW_LINE>if (ownerControl) {<NEW_LINE>player = game.<MASK><NEW_LINE>} else {<NEW_LINE>player = game.getPlayer(source.getContro...
getPlayer(card.getOwnerId());
1,582,054
protected void handleUnresolvedReferences(String modelKey, Model model, Map<String, List<String>> unresolvedReferencesMap, Map<String, Model> keyToModelMap, String referenceProperyName) {<NEW_LINE>if (unresolvedReferencesMap.containsKey(modelKey)) {<NEW_LINE>List<String> referencingModelKeys = unresolvedReferencesMap.g...
throw new FlowableException("Could not read model json", e);
1,234,120
public GetMasterAccountResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetMasterAccountResult getMasterAccountResult = new GetMasterAccountResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
1,764,115
public DefaultConfigurationCustomizer jooqProvidersDefaultConfigurationCustomizer(ObjectProvider<TransactionProvider> transactionProvider, ObjectProvider<RecordMapperProvider> recordMapperProvider, ObjectProvider<RecordUnmapperProvider> recordUnmapperProvider, ObjectProvider<Settings> settings, ObjectProvider<RecordLis...
(TransactionListenerProvider[]::new));
1,072,159
private boolean detectTwoFaceTriangles(HashMapVirtualObject ifcProduct, IntBuffer indicesAsInt, DoubleBuffer verticesAsDouble, float margin) {<NEW_LINE>Set<ComplexLine2> complexLines = new TreeSet<>();<NEW_LINE>for (int i = 0; i < indicesAsInt.capacity(); i += 3) {<NEW_LINE>for (int j = 0; j < 3; j++) {<NEW_LINE>int in...
index1, index2, verticesAsDouble, margin);
600,376
public void benchmarkCglib(Blackhole blackHole) {<NEW_LINE>blackHole.consume(cglibInstance.method(booleanValue));<NEW_LINE>blackHole.consume(cglibInstance.method(byteValue));<NEW_LINE>blackHole.consume(cglibInstance.method(shortValue));<NEW_LINE>blackHole.consume(cglibInstance.method(intValue));<NEW_LINE>blackHole.cons...
(cglibInstance.method(stringValue));
1,402,684
// Supply invalid arguments to various ExecutorService methods and verify the behavior matches the requirements of the JavaDoc.<NEW_LINE>// Also supply some values as the top and bottom of the valid range.<NEW_LINE>@Test<NEW_LINE>public void testInvalidArguments() throws Exception {<NEW_LINE>ExecutorService executor = ...
long start = System.nanoTime();
47,187
private RubyBigDecimal multImpl(final Ruby runtime, RubyBigDecimal val) {<NEW_LINE>if (isNaN() || val.isNaN())<NEW_LINE>return newNaN(runtime);<NEW_LINE>if (isZero() || val.isZero()) {<NEW_LINE>if ((isInfinity() && val.isZero()) || (isZero() && val.isInfinity()))<NEW_LINE>return newNaN(runtime);<NEW_LINE>int sign1 = is...
newInfinity(runtime, sign1 * sign2);
972,987
public AttackResult completed(@RequestParam String[] question_0_solution, @RequestParam String[] question_1_solution, @RequestParam String[] question_2_solution, @RequestParam String[] question_3_solution, @RequestParam String[] question_4_solution) throws IOException {<NEW_LINE>int correctAnswers = 0;<NEW_LINE>String[...
failed(this).build();
462,698
public SnapshotFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SnapshotFilter snapshotFilter = new SnapshotFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<...
String currentParentElement = context.getCurrentParentElement();
120,322
private void processDeferredConcepts() {<NEW_LINE>int codeCount = 0, relCount = 0;<NEW_LINE>StopWatch stopwatch = new StopWatch();<NEW_LINE>int count = Math.min(1000, myDeferredConcepts.size());<NEW_LINE>ourLog.debug("Saving {} deferred concepts...", count);<NEW_LINE>while (codeCount < count && myDeferredConcepts.size(...
1000, myConceptLinksToSaveLater.size());
618,485
public static void openInCustomTabsOrBrowser(@NonNull Context context, @NonNull String url) {<NEW_LINE>if (StringUtils.isBlank(url)) {<NEW_LINE>Toasty.warning(context, context.getString(R.string.invalid_url), Toast.LENGTH_LONG).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check http prefix<NEW_LINE>if (!url.contains...
context, R.drawable.ic_arrow_back_title);
1,748,311
public okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".re...
(namespace.toString()));
934,141
private // ---------------------//<NEW_LINE>void processArticulation(ArticulationInter articulation) {<NEW_LINE>try {<NEW_LINE>logger.debug("Visiting {}", articulation);<NEW_LINE>JAXBElement<?> element = getArticulationObject(articulation.getShape());<NEW_LINE>// Staff?<NEW_LINE>Staff staff = current.note.getStaff();<N...
.getCenter(), staff));
1,724,380
private static Integer determineIndent(PsiFile file, Editor editor, int offset, CommonCodeStyleSettings settings) {<NEW_LINE>if (offset == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Document doc = editor.getDocument();<NEW_LINE>PsiElement element = getRelevantElement(file, doc, offset);<NEW_LINE>PsiElement parent =...
? element.getParent() : null;
283,430
public CompletableFuture<Either<List<? extends Location>, List<? extends LocationLink>>> definition(DefinitionParams params) {<NEW_LINE>try {<NEW_LINE>String uri = params.getTextDocument().getUri();<NEW_LINE>Document doc = server.getOpenedDocuments().getDocument(uri);<NEW_LINE>if (doc instanceof LineDocument) {<NEW_LIN...
(Collections.emptyList()));
1,463,681
static void normalMenuStartUp(MainActivity mainActivity, Class[] activitiesDemo) {<NEW_LINE>String[] layouts = getLayouts(s -> s.matches(LAYOUTS_MATCHES));<NEW_LINE>ScrollView sv = new ScrollView(mainActivity);<NEW_LINE>LinearLayout linearLayout = new LinearLayout(mainActivity);<NEW_LINE>linearLayout.setOrientation(Lin...
.setTag(layouts[i]);
754,291
public void onClose(Status status, Metadata trailers) {<NEW_LINE>if (status.getCode().equals(Code.DEADLINE_EXCEEDED)) {<NEW_LINE>// TODO(zdapeng:) check effective deadline locally, and<NEW_LINE>// do the following only if the local deadline is exceeded.<NEW_LINE>// (If the server sends DEADLINE_EXCEEDED for its own dea...
).onClose(status, trailers);
526,290
private void checkSubtype(TypeMirror expected, Object givenValue) {<NEW_LINE>if (expected.getKind().isPrimitive()) {<NEW_LINE>expected = types.boxedClass((PrimitiveType) expected).asType();<NEW_LINE>}<NEW_LINE>if (expected.getKind() == TypeKind.DECLARED && TypesUtils.isClass(expected) && givenValue instanceof TypeMirro...
) found).asElement());
1,505,965
public void testJMSProducerSendTextMessage_B_SecOn(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>boolean exceptionFlag = false;<NEW_LINE>JMSContext jmsContext = QCFBindings.createContext();<NEW_LINE>emptyQueue(QCFBindings, queue2);<NEW_LINE>JMSConsumer <MASK><NEW_LINE>JMSProducer...
jmsConsumer = jmsContext.createConsumer(queue2);
531,662
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite main = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.marginWidth = 0;<NEW_LINE>layout.marginHeight = 0;<NEW_LINE>layout.verticalSpacing = 0;<NEW_LINE>layout.horizontalSpacing = 0;<NEW_LINE>main.se...
.FILL, true, true));
1,850,722
final UpdateApprovalRuleTemplateNameResult executeUpdateApprovalRuleTemplateName(UpdateApprovalRuleTemplateNameRequest updateApprovalRuleTemplateNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApprovalRuleTemplateNameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.SERVICE_ID, "CodeCommit");
822,332
public ArtifactContainer convertToContainer(boolean local) {<NEW_LINE>if (!local) {<NEW_LINE>// See if the container factory can create a container from us<NEW_LINE>File newCacheDir = null;<NEW_LINE>String relativeLocation = getEnclosingContainer().getPath();<NEW_LINE>if (relativeLocation.equals("/")) {<NEW_LINE>newCac...
), this, this.bundleUrl);
850,930
private void copyFieldTrl(final int targetFieldId, final int sourceFieldId) {<NEW_LINE>Check.assumeGreaterThanZero(targetFieldId, "targetFieldId");<NEW_LINE>Check.assumeGreaterThanZero(sourceFieldId, "sourceFieldId");<NEW_LINE>final String sqlDelete = "DELETE FROM AD_Field_Trl WHERE AD_Field_ID = " + targetFieldId;<NEW...
logger.debug("AD_Field_Trl deleted: {}", countDelete);
338,299
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol from " + "SupportMarketDataBean#length(10) as one, " + "SupportBeanString#length(100) as two " + "where one.symbol = two.theString " + "order by price";<NEW_LINE>SymbolPr...
spv.symbols.add("KGB");
1,177,686
public static ListDistributedProductResponse unmarshall(ListDistributedProductResponse listDistributedProductResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDistributedProductResponse.setRequestId(_ctx.stringValue("ListDistributedProductResponse.RequestId"));<NEW_LINE>listDistributedProductResponse.setSuccess(_ctx.b...
(_ctx.stringValue("ListDistributedProductResponse.Code"));
970,832
public com.amazonaws.services.mediaconnect.model.NotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.mediaconnect.model.NotFoundException notFoundException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<...
mediaconnect.model.NotFoundException(null);
1,366,057
public void whenStatsOnNotInitializedSubscriptionThenCorrectResponse() throws IOException {<NEW_LINE>final String et = createEventType().getName();<NEW_LINE>final Subscription s = createSubscriptionForEventType(et);<NEW_LINE>final Response response = when().get("/subscriptions/{sid}/stats", s.getId()).thenReturn();<NEW...
"unassigned", partition.getState());
465,027
public void loadAdditinalData(long stime, long etime, final boolean reverse) {<NEW_LINE>collectObj();<NEW_LINE>Iterator<Integer> serverIds = serverObjMap<MASK><NEW_LINE>final TreeSet<XLogData> tempSet = new TreeSet<XLogData>(new XLogDataComparator());<NEW_LINE>int limit = PManager.getInstance().getInt(PreferenceConstan...
.keySet().iterator();
1,227,410
protected byte[] generateGlue(Collection<Executable> members) {<NEW_LINE>ClassWriter cw = new ClassWriter(COMPUTE_MAXS);<NEW_LINE>MethodVisitor mv;<NEW_LINE>// target Java8 because that's all we need for the generated trampoline code<NEW_LINE>cw.visit(V1_8, PUBLIC | FINAL | ACC_SUPER, proxyName, null, "java/lang/Object...
mv.visitVarInsn(ALOAD, 2);
759,231
public INDArray leverage() {<NEW_LINE>WorkspaceUtils.assertValidArray(this, "Cannot leverage INDArray to new workspace");<NEW_LINE>if (!isAttached())<NEW_LINE>return this;<NEW_LINE>MemoryWorkspace workspace = Nd4j.getMemoryManager().getCurrentWorkspace();<NEW_LINE>if (workspace == null) {<NEW_LINE>return this.detach();...
buffer, this.data());
661,371
public static String transformName(@NotNull DBPDataSource dataSource, @Nullable String value) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final SQLDialect dialect = dataSource.getSQLDialect();<NEW_LINE>final boolean isNameCaseSensitive = dataSource.getContainer().getPreferenceStore().getBo...
storesUnquotedCase().transform(value);
1,734,761
public void partitionUpdate(PartitionUpdateParam partParam) {<NEW_LINE>GeneralPartUpdateParam param = (GeneralPartUpdateParam) partParam;<NEW_LINE>ServerLongAnyRow row = GraphMatrixUtils.getPSLongKeyRow(psContext, param);<NEW_LINE>ILongKeyAnyValuePartOp keyValuePart = (ILongKeyAnyValuePartOp) param.getKeyValuePart();<N...
(nodeIds[i], graphNode);
1,788,553
protected void createBeanPool() {<NEW_LINE>ObjectFactory sessionCtxFactory = new SessionContextFactory();<NEW_LINE>iased = ejbDescriptor.getIASEjbExtraDescriptors();<NEW_LINE>if (iased != null) {<NEW_LINE>beanPoolDes = iased.getBeanPool();<NEW_LINE>}<NEW_LINE>poolProp <MASK><NEW_LINE>String val = ejbDescriptor.getEjbBu...
= new PoolProperties(ejbContainer, beanPoolDes);
921,093
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParameter();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>String name = para[i].getParameterName();<NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("C_AcctSchema_ID"))<NEW_LINE>p_C_AcctSchema_ID = ((B...
get(getCtx(), p_C_AcctSchema_ID);
511,894
public boolean instantiateTo(int value, ICause cause) throws ContradictionException {<NEW_LINE>assert cause != null;<NEW_LINE>boolean done = false;<NEW_LINE>if (!this.contains(value)) {<NEW_LINE>model.getSolver().getEventObserver().instantiateTo(this, value, cause, getLB(), getUB());<NEW_LINE><MASK><NEW_LINE>} else if ...
this.contradiction(cause, MSG_EMPTY);
415,321
public StopFlowResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StopFlowResult stopFlowResult = new StopFlowResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
1,641,849
protected void executeActionInvocation(ActionInvocation invocation) {<NEW_LINE>if (invocation != null) {<NEW_LINE>new ActionCallback.Default(invocation, upnpService.getControlPoint()).run();<NEW_LINE>ActionException anException = invocation.getFailure();<NEW_LINE>if (anException != null && anException.getMessage() != n...
newArgument = result.get(variable);
1,719,521
private void renderPeak(Graphics2D gr) {<NEW_LINE>if (peakColor == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int position = getPosition(peak);<NEW_LINE>int decrement = 0;<NEW_LINE>int left = 0;<NEW_LINE>int right = 0;<NEW_LINE>do {<NEW_LINE>left = Math.round(position - ((peakMarkSize - decrement) / 2f));<NEW_LINE>ri...
(int) canvasDimension.getWidth();
1,139,979
public ListRoomMembershipsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListRoomMembershipsResult listRoomMembershipsResult = new ListRoomMembershipsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
862,191
public ReplaceContentEntry unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ReplaceContentEntry replaceContentEntry = new ReplaceContentEntry();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
140,591
public List<User> executeList(CommandContext commandContext) {<NEW_LINE>// GET /{realm}/users<NEW_LINE>// Query parameters: username, email, firstName, lastName, search(email, first, last or username)<NEW_LINE>// paging first, max<NEW_LINE>UriComponentsBuilder builder = prepareQuery("/users");<NEW_LINE>if (getMaxResult...
getRealm()).toUri();
1,132,127
protected org.activiti.engine.impl.persistence.entity.JobEntity convertToActiviti5JobEntity(final JobEntity job) {<NEW_LINE>org.activiti.engine.impl.persistence.entity.JobEntity activity5Job = new org.activiti.engine.impl.persistence.entity.JobEntity();<NEW_LINE>activity5Job.<MASK><NEW_LINE>activity5Job.setDuedate(job....
setJobType(job.getJobType());
1,433,843
protected NodesReloadSecureSettingsResponse.NodeResponse nodeOperation(NodeRequest nodeReloadRequest) {<NEW_LINE>try (KeyStoreWrapper keystore = KeyStoreWrapper.load(environment.configFile())) {<NEW_LINE>// reread keystore from config file<NEW_LINE>if (keystore == null) {<NEW_LINE>return new NodesReloadSecureSettingsRe...
clusterService.localNode(), null);
1,587,286
public boolean doMonitor(ServiceEmitter emitter) {<NEW_LINE>FireDepartmentMetrics metrics = fireDepartment.getMetrics().snapshot();<NEW_LINE>RowIngestionMetersTotals rowIngestionMetersTotals = rowIngestionMeters.getTotals();<NEW_LINE>final ServiceMetricEvent.Builder builder = new ServiceMetricEvent.Builder().setDimensi...
log.error("[%,d] unparseable events discarded. Turn on debug logging to see exception stack trace.", unparseable);
363,809
public static Map<String, byte[]> compile(ClassPath compile, final String code) throws IOException {<NEW_LINE>DiagnosticListener<JavaFileObject> devNull = (Diagnostic<? extends JavaFileObject> diagnostic) -> {<NEW_LINE>};<NEW_LINE>StandardJavaFileManager sjfm = ToolProvider.getSystemJavaCompiler().getStandardFileManage...
class2BAOS = new HashMap<>();
1,608,662
private void initVerticalToolbar(ActionListener outputListener) {<NEW_LINE>// NOI18N<NEW_LINE>URL url = getClass().getResource(IMG_PREFIX + "row_add.png");<NEW_LINE>insert = new JButton(new ImageIcon(url));<NEW_LINE>insert.setToolTipText(NbBundle.getMessage(DataViewUI.class, "TOOLTIP_insert") + " (Alt+I)");<NEW_LINE>in...
(DataViewUI.class, "TOOLTIP_commit_all"));
159,928
// Binary Search<NEW_LINE>public static void main(String[] args) {<NEW_LINE>// Creating Scanner Object for taking Inputs from the USER<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>// Take the SIZE of the Array from the USER<NEW_LINE>System.out.print(" Enter SIZE of the Array: ");<NEW_LINE>int n = sc.nextInt()...
(Arrays.toString(arr));
749,366
public void syncObjects(Object... objects) {<NEW_LINE>if (vm == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Event[] events = new Event[objects.length];<NEW_LINE>for (int i = 0; i < objects.length; i++) {<NEW_LINE>Object object = objects[i];<NEW_LINE>events[i] = syncObjectInner(object);<NEW_LINE>}<NEW_LINE>for (Event e...
.getObjectState(objects[i]);