idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,367,204
public List<String> suggestionList(final String query) throws IOException, ExtractionException {<NEW_LINE>final Downloader dl = NewPipe.getDownloader();<NEW_LINE>final List<String> suggestions = new ArrayList<>();<NEW_LINE>final String url = // "firefox" for JSON, 'toolbar' for xml<NEW_LINE>"https://suggestqueries.goog...
) suggestion).getString(0);
1,295,993
public void testCriteriaQuery_double(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Asser...
"Entity0006_STRING03", findEntity.getEntity0006_string03());
423,332
public Composite createTab(Composite parent) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>TableColumnLayout layout = new TableColumnLayout();<NEW_LINE>container.setLayout(layout);<NEW_LINE>bookmarks = new TableViewer(container, SWT.FULL_SELECTION | SWT.MULTI);<NEW_LINE>ColumnEditingSupport...
getSettings().getBookmarks());
170,413
public static void main(String[] args) {<NEW_LINE>List<Integer> app0 = new ArrayList<Integer>();<NEW_LINE>app0.add(10);<NEW_LINE>app0.add(11);<NEW_LINE>app0.add(13);<NEW_LINE>List<Integer> app1 <MASK><NEW_LINE>app1.add(10);<NEW_LINE>List<Integer> app2 = new ArrayList<Integer>();<NEW_LINE>app2.add(12);<NEW_LINE>List<Int...
= new ArrayList<Integer>();
935,830
private Sequence fetch(Sequence src, Expression[] exps, IndexTable it, Expression[] newExps, String[] newNames, Context ctx) {<NEW_LINE>int pkCount = exps.length;<NEW_LINE>int newCount = newExps.length;<NEW_LINE>Object[] pkValues = new Object[pkCount];<NEW_LINE>DataStruct ds = new DataStruct(newNames);<NEW_LINE>int len...
ComputeStack stack = ctx.getComputeStack();
405,298
protected Long readCountAllActiveSkusInternal(Date currentDate) {<NEW_LINE>// Set up the criteria query that specifies we want to return a Long<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> criteria = builder.createQuery(Long.class);<NEW_LINE>// The root of our search is sku<N...
.class), currentDate)));
393,311
public void updateConfiguration(Configuration config) {<NEW_LINE>// re-map filesystem schemes to match Amazon Elastic MapReduce<NEW_LINE>config.set("fs.s3.impl", PrestoS3FileSystem.class.getName());<NEW_LINE>config.set("fs.s3a.impl", PrestoS3FileSystem.class.getName());<NEW_LINE>config.set("fs.s3n.impl", PrestoS3FileSy...
S3_STORAGE_CLASS, s3StorageClass.name());
939,150
public static PlayerData createUnloadedPlayerData(final AVManagerInterface avModule, final Context context, final ReadableArguments source, final Bundle status) {<NEW_LINE>final String <MASK><NEW_LINE>Map requestHeaders = null;<NEW_LINE>if (source.containsKey(STATUS_HEADERS_KEY_PATH)) {<NEW_LINE>requestHeaders = source...
uriString = source.getString(STATUS_URI_KEY_PATH);
326,248
private String transformSingleDescriptor(String desc, boolean isObject) {<NEW_LINE>IActivity descriptorActivity = this.activities.begin("desc=%s", desc);<NEW_LINE>boolean isArray = false;<NEW_LINE>String type = desc;<NEW_LINE>while (type.startsWith("[") || type.startsWith("L")) {<NEW_LINE>if (type.startsWith("[")) {<NE...
typeInfo = ClassInfo.forName(type);
276,350
static PTuple codecsInfo(PythonModule self, String encoding, PythonContext context, PythonObjectFactory factory) {<NEW_LINE>PythonModule codecsModule = (PythonModule) AbstractImportNode.importModule("codecs");<NEW_LINE>CodecsTruffleModuleBuiltins codecsTruffleBuiltins = (CodecsTruffleModuleBuiltins) self.getBuiltins();...
factory.createPythonObject(codecsTruffleBuiltins.applyEncodingClass);
337,355
public synchronized void createDirectMessage(DirectMessage status, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>long time = status.getCreatedAt().getTime();<NEW_LINE>values.put(DMSQLiteHelper.COLUMN_ACCOUNT, account);<NEW_LINE>values.put(DMSQLiteHelper.COLUMN_TEXT, TweetLinkUtils.getLink...
COLUMN_RETWEETER, status.getRecipientScreenName());
724,094
protected QueryIterator execute(BasicPattern pattern, ReorderTransformation reorder, QueryIterator input, ExecutionContext execCxt) {<NEW_LINE>Explain.explain(pattern, execCxt.getContext());<NEW_LINE>if (!input.hasNext())<NEW_LINE>return input;<NEW_LINE>if (reorder != null && pattern.size() >= 2) {<NEW_LINE>// If patte...
reorderProc = reorder.reorderIndexes(bgp2);
1,744,790
public static Request parseRequest(String modelId, boolean deferDefinitionValidation, XContentParser parser) {<NEW_LINE>TrainedModelConfig.Builder builder = TrainedModelConfig.STRICT_PARSER.apply(parser, null);<NEW_LINE>if (builder.getModelId() == null) {<NEW_LINE>builder.<MASK><NEW_LINE>} else if (Strings.isNullOrEmpt...
setModelId(modelId).build();
1,062,268
final void onExecuteWrite(@NonNull final BluetoothGattServer server, @NonNull final BluetoothDevice device, final int requestId, final boolean execute) {<NEW_LINE>log(Log.DEBUG, () -> "[Server callback] Execute write request (requestId=" + <MASK><NEW_LINE>if (execute) {<NEW_LINE>final Deque<Pair<Object, byte[]>> values...
requestId + ", execute=" + execute + ")");
731,749
private Forwardable<ThingVertex, Order.Asc> createIterator(int pos) {<NEW_LINE>StructureEdge<?, ?> edge = edges.get(pos);<NEW_LINE>ThingVertex player = answer.get(edge.to().id().asVariable().<MASK><NEW_LINE>return SortedIterators.Forwardable.merge(iterate(edge.asNative().asRolePlayer().types()).map(roleLabel -> {<NEW_L...
asRetrievable()).asThing();
608,491
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "value".split(",");<NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#length(10) " + "match_recognize (" + " partition by value" + " measures E1.value as value" + " pattern (E1 E2 | E2 E1 ) " + " define " + " E1 as E1.theStr...
new SupportRecogBean("B", 7));
189,655
protected void addFormDefinitionToCollection(List<FormDefinition> formDefinitions, String formKey, CaseDefinition caseDefinition) {<NEW_LINE>FormDefinitionQuery formDefinitionQuery = formRepositoryService.createFormDefinitionQuery().formDefinitionKey(formKey);<NEW_LINE>CmmnDeployment deployment = CommandContextUtil.get...
findById(caseDefinition.getDeploymentId());
1,470,738
public void unparse(final SqlWriter writer, final SqlCall call, final int leftPrec, final int rightPrec) {<NEW_LINE>final SqlWriter.Frame frame = writer.startFunCall(this.getName());<NEW_LINE>if (call.operandCount() == 1) {<NEW_LINE>writer.endFunCall(frame);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (int i = 1; i < call...
(0)).getValue();
422,531
protected static ClasspathImportServiceCompileTime makeClasspathImportService(Configuration configuration) {<NEW_LINE>TimeAbacus timeAbacus = TimeAbacusFactory.make(configuration.getCommon().getTimeSource().getTimeUnit());<NEW_LINE>ConfigurationCompilerExpression expression = configuration.getCompiler().getExpression()...
ex.getMessage(), ex);
1,456,651
public void onSurfaceCreated(GL10 unused, EGLConfig config) {<NEW_LINE>program = GlUtil.compileProgram(VERTEX_SHADER, FRAGMENT_SHADER);<NEW_LINE>GLES20.glUseProgram(program);<NEW_LINE>int posLocation = GLES20.glGetAttribLocation(program, "in_pos");<NEW_LINE>GLES20.glEnableVertexAttribArray(posLocation);<NEW_LINE>GLES20...
GLES20.glGetUniformLocation(program, "mColorConversion");
267,680
protected void saveState() {<NEW_LINE>super.saveState();<NEW_LINE>Context context = parent.getContext();<NEW_LINE>if (context == null || bitmap == null || parent.getSurface().getComponent().isService())<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>// Saving current width and height to avoid restoring the screen after a scr...
FileOutputStream stream = new FileOutputStream(cacheFile);
1,438,668
protected void checkGroovyConstructorMap(final Expression receiver, final ClassNode receiverType, final MapExpression mapExpression) {<NEW_LINE>// workaround for map-style checks putting setter info on wrong AST nodes<NEW_LINE>typeCheckingContext.pushEnclosingBinaryExpression(null);<NEW_LINE>for (MapEntryExpression ent...
receiverType.getText(), receiver);
578,240
static ProcessorsInfo parseCpuInfo(String cpuInfoString) {<NEW_LINE>ProcessorsInfo pi = new ProcessorsInfo();<NEW_LINE>for (String cpu : cpuInfoString.split("\n\n")) {<NEW_LINE>int cpuId = -1;<NEW_LINE>int coreId = -1;<NEW_LINE>for (String line : cpu.split("\n")) {<NEW_LINE>String[] parts = line.split(":", 2);<NEW_LINE...
Preconditions.checkArgument(coreId >= 0);
617,550
final UpdateDashboardResult executeUpdateDashboard(UpdateDashboardRequest updateDashboardRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDashboardRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
resolvedHostPrefix = String.format("monitor.");
894,690
public void callback(JSONObject handler, String result, JasonViewActivity context) {<NEW_LINE>try {<NEW_LINE>String classname = handler.getString("class");<NEW_LINE>classname = "com.jasonette.seed.Action." + classname;<NEW_LINE>String methodname = handler.getString("method");<NEW_LINE>Object module;<NEW_LINE>if (contex...
modules.put(classname, module);
1,773,546
public List<PartitionsInfo> list(String clusterAlias, Map<String, Object> params) {<NEW_LINE>List<PartitionsInfo> topicRecords = <MASK><NEW_LINE>for (PartitionsInfo partitionInfo : topicRecords) {<NEW_LINE>Map<String, Object> spread = new HashMap<>();<NEW_LINE>spread.put("cluster", clusterAlias);<NEW_LINE>spread.put("t...
brokerService.topicRecords(clusterAlias, params);
440,477
public static <T extends ImageGray<T>> PyramidFloat<T> scaleSpacePyramid(double[] scaleSpace, Class<T> imageType) {<NEW_LINE>double[] sigmas = new double[scaleSpace.length];<NEW_LINE>sigmas[0] = scaleSpace[0];<NEW_LINE>for (int i = 1; i < scaleSpace.length; i++) {<NEW_LINE>// the desired amount of blur<NEW_LINE>double ...
] /= scaleSpace[i - 1];
1,531,986
private void loadNode458() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_TrustList_LastUpdateTime, new QualifiedName(0, "LastUpdateTime"), new LocalizedText("en", "LastUpdateTime"), LocalizedText.NULL_VALUE, UInteger.v...
(1), 0.0, false);
1,754,151
public static Haplotype createReferenceHaplotype(final AssemblyRegion activeRegion, final byte[] refBases, final SimpleInterval paddedReferenceLoc) {<NEW_LINE>Utils.nonNull(activeRegion, "null region");<NEW_LINE>Utils.nonNull(refBases, "null refBases");<NEW_LINE>Utils.nonNull(paddedReferenceLoc, "null paddedReferenceLo...
() - paddedReferenceLoc.getStart();
945,774
public static void vertical7(Kernel1D_S32 kernel, GrayU8 input, GrayI8 output, int skip, int divisor) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final byte[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LIN...
k7 = kernel.data[6];
1,831,842
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String privateZoneName, String ifMatch, 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 n...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
640,783
public void run() {<NEW_LINE>task.log("launching cmd '" + cmdString(cmd) + "' in dir '" + dir + "'");<NEW_LINE>if (msg != null) {<NEW_LINE>task.log("waiting for launch completion msg '" + msg + "'...");<NEW_LINE>} else {<NEW_LINE>task.log("not waiting for a launch completion msg.");<NEW_LINE>}<NEW_LINE>ProcessBuilder p...
BufferedReader(new InputStreamReader(consoleStream));
835,314
public static GetPatentPlanInfoListResponse unmarshall(GetPatentPlanInfoListResponse getPatentPlanInfoListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPatentPlanInfoListResponse.setRequestId(_ctx.stringValue("GetPatentPlanInfoListResponse.RequestId"));<NEW_LINE>getPatentPlanInfoListResponse.setPageNum(_ctx.integer...
(_ctx.integerValue("GetPatentPlanInfoListResponse.PageSize"));
1,094,764
final DescribeReservedCacheNodesResult executeDescribeReservedCacheNodes(DescribeReservedCacheNodesRequest describeReservedCacheNodesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedCacheNodesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
endClientExecution(awsRequestMetrics, request, response);
927,388
public static void main(final String[] args) {<NEW_LINE>final String bootstrapServers = args.length > 0 ? args[0] : "localhost:9092";<NEW_LINE>// Kafka Streams configuration<NEW_LINE>final Properties streamsConfiguration = new Properties();<NEW_LINE>// Give the Streams application a unique name. The name must be uniqu...
String().getClass());
820,199
public IpAddress allocateIP(Account ipOwner, long zoneId, Long networkId, Boolean displayIp, String ipaddress) throws ResourceAllocationException, InsufficientAddressCapacityException, ConcurrentOperationException {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>long callerUserId = CallCo...
" account " + ipOwner.getId());
846,456
private static InscriberRecipe makeNamePressRecipe(ItemStack input, ItemStack plateA, ItemStack plateB) {<NEW_LINE>String name = "";<NEW_LINE>if (!plateA.isEmpty()) {<NEW_LINE>final <MASK><NEW_LINE>name += tag.getString(NamePressItem.TAG_INSCRIBE_NAME);<NEW_LINE>}<NEW_LINE>if (!plateB.isEmpty()) {<NEW_LINE>final Compou...
CompoundTag tag = plateA.getOrCreateTag();
994,392
public FieldInitializers build() throws AttrLookupException {<NEW_LINE>Map<ResourceType, Collection<FieldInitializer>> initializers = new EnumMap<>(ResourceType.class);<NEW_LINE>Map<ResourceType, Integer> typeIdMap = chooseTypeIds();<NEW_LINE>Map<String, Integer> attrAssignments = assignAttrIds(typeIdMap.get(ResourceTy...
fields = getAttrInitializers(attrAssignments, sortedFields);
874,886
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {<NEW_LINE>if (owner.equals("com/sun/btrace/BTraceRuntime")) {<NEW_LINE>if (name.equals("enter")) {<NEW_LINE>if (desc.equals("(Lcom/sun/btrace/BTraceRuntime;)Z")) {<NEW_LINE>visitMethodInsn(INVOKESTATIC, Constants.BTRACERTACCES...
BTRACERTACCESS_INTERNAL, name, "()Z", itf);
1,422,902
public static BakedQuad createBakedQuad(VertexFormat format, Vec3[] vertices, Direction facing, TextureAtlasSprite sprite, double[] uvs, float[] colour, boolean invert, float[] alpha, boolean smartLighting, BlockPos basePos) {<NEW_LINE>BakedQuadBuilder builder = new BakedQuadBuilder(sprite);<NEW_LINE>builder.setQuadOri...
, colour, alpha[vId]);
1,223,359
protected ISerializationConverter<Point.Builder> createExternalConverter(LogicalType type) {<NEW_LINE>switch(type.getTypeRoot()) {<NEW_LINE>case VARCHAR:<NEW_LINE>return (val, index, builder) -> {<NEW_LINE>builder.addField(fieldNameList.get(index), val.getString<MASK><NEW_LINE>};<NEW_LINE>case FLOAT:<NEW_LINE>return (v...
(index).toString());
1,625,002
private static void decodeValues(Inspector values, Tensor.Builder builder) {<NEW_LINE>if (!(builder instanceof IndexedTensor.BoundBuilder))<NEW_LINE>throw new IllegalArgumentException("The 'values' field can only be used with dense tensors. " + "Use 'cells' or 'blocks' instead");<NEW_LINE>IndexedTensor.BoundBuilder ind...
(i, decoded[i]);
1,068,836
public void load(Project project) {<NEW_LINE>PropertiesComponent p = PropertiesComponent.getInstance(project);<NEW_LINE>cores = p.getInt(CORES_EVOSUITE_PARAM, 1);<NEW_LINE>memory = p.getInt(MEMORY_EVOSUITE_PARAM, 2000);<NEW_LINE>time = p.getInt(TIME_EVOSUITE_PARAM, 3);<NEW_LINE>folder = p.getValue(TARGET_FOLDER_EVOSUIT...
envJavaHome != null ? envJavaHome : "");
1,217,665
public Entry<E, P> pop() {<NEW_LINE>Node<E, P<MASK><NEW_LINE>Entry<E, P> result;<NEW_LINE>if (node == null) {<NEW_LINE>// Queue is empty<NEW_LINE>return null;<NEW_LINE>} else if (node.head.next == null) {<NEW_LINE>// There are no more entries attached to this key<NEW_LINE>// Poll from queue and remove from map.<NEW_LIN...
> node = queue.peek();
1,274,682
private ExecutionResults runJDKUninstallerWindows(Progress progress, File location) throws UninstallationException {<NEW_LINE>ExecutionResults results = null;<NEW_LINE>try {<NEW_LINE>String id = getInstallationID(location);<NEW_LINE>if (id != null) {<NEW_LINE>LogManager.log("... uninstall ID : " + id);<NEW_LINE>final F...
.class, ERROR_UNINSTALL_JDK_ERROR_KEY), e);
276,448
private void updateVisibility() {<NEW_LINE>if (mBanners == null)<NEW_LINE>throw new AssertionError("Banners must be non-null at this point!");<NEW_LINE>UiUtils.hideIf(hasErrorOccurred() || mCurrentAd == null, mContainerView);<NEW_LINE>if (mCurrentAd == null)<NEW_LINE>throw new AssertionError("Banners must be non-null a...
mActionContainer, mActionLarge, mAdsRemovalButton, mIcon);
686,741
public void updateAllProviders(List<ProviderGroup> providerGroups) {<NEW_LINE>List<ProviderGroup> oldProviderGroups = new ArrayList<ProviderGroup>(addressHolder.getProviderGroups());<NEW_LINE>int count = 0;<NEW_LINE>if (providerGroups != null) {<NEW_LINE>for (ProviderGroup providerGroup : providerGroups) {<NEW_LINE>che...
ProviderInfoUpdateAllEvent(consumerConfig, oldProviderGroups, providerGroups);
905,186
public static void toJSON(OutputWriter outputWriter, Routes.FindUrlBuilder<Long> urlBuilder, AccessToken token) {<NEW_LINE>outputWriter.addLinks(linksWriter -> {<NEW_LINE>if (token.persisted()) {<NEW_LINE>linksWriter.addLink("self", urlBuilder.find(token.getId()));<NEW_LINE>}<NEW_LINE>linksWriter.addAbsoluteLink("doc",...
) token).getDisplayValue());
1,166,613
protected void encodeInput(FacesContext context, SelectOneMenu menu, String clientId, List<SelectItem> selectItems, Object values, Object submittedValues, Converter converter) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String focusId = clientId + "_focus";<NEW_LINE>// in...
writer.startElement("div", null);
1,292,323
public void visit(ListItemNode node) {<NEW_LINE>if (node instanceof TaskListNode) {<NEW_LINE>// vsch: #185 handle GitHub style task list items, these are a bit messy because the <input> checkbox needs to be<NEW_LINE>// included inside the optional <p></p> first grand-child of the list item, first child is always RootNo...
("</li>").printchkln(startWasNewLine);
647,790
protected final ObjectMetadata updateMetadataWithContentCryptoMaterial(ObjectMetadata metadata, File file, ContentCryptoMaterial contentCryptoMaterial) {<NEW_LINE>if (metadata == null)<NEW_LINE>metadata = new ObjectMetadata();<NEW_LINE>if (file != null) {<NEW_LINE>Mimetypes mimetypes = Mimetypes.getInstance();<NEW_LINE...
] encryptedIV = contentCryptoMaterial.getEncryptedIV();
446,986
public void visitLdcInsn(Class value) {<NEW_LINE>Type type = Type.getType(ASMUtils.desc(value));<NEW_LINE>lastBytecodeOffset = code.length;<NEW_LINE>// Add the instruction to the bytecode of the method.<NEW_LINE>Symbol constantSymbol;<NEW_LINE>int typeSort = type.getSort();<NEW_LINE>if (typeSort == Type.OBJECT) {<NEW_L...
put11(Opcodes.LDC, constantIndex);
258,185
public ListJournalS3ExportsForLedgerResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListJournalS3ExportsForLedgerResult listJournalS3ExportsForLedgerResult = new ListJournalS3ExportsForLedgerResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
class).unmarshall(context));
75,489
public static void openBundleWiringError(Throwable t) {<NEW_LINE>List<Status> childStatuses = new ArrayList<>(t.getStackTrace().length);<NEW_LINE>for (StackTraceElement stackTrace : t.getStackTrace()) {<NEW_LINE>Status status = new Status(IStatus.ERROR, BootDashActivator.<MASK><NEW_LINE>childStatuses.add(status);<NEW_L...
PLUGIN_ID, stackTrace.toString());
1,531,192
default Map<String, ? extends Object> asMap() {<NEW_LINE>final Builder<String, Object> result = ImmutableMap.<String, Object>builder();<NEW_LINE>if (getCheck_NetAmtToInvoice() != null) {<NEW_LINE>// during enqueuing this result might be overwritten by a specific value<NEW_LINE>result.put(InvoicingParams.PARA_Check_NetA...
InvoicingParams.PARA_OnlyApprovedForInvoicing, isOnlyApprovedForInvoicing());
544,017
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Application app = emc.find(id, Application.class);<NEW_LINE>if (null =...
setInstalledVersion(installLog.getVersion());
1,777,907
public void executeUpgrade() throws DotDataException, DotRuntimeException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>String createTable = "Create table template_containers" + "(id varchar(36) NOT NULL primary key," + "template_id varchar(36) NOT NULL," + "container_id varchar(36) NOT NULL)";<NEW_LINE>if (Db...
> relations = dc.loadResults();
1,836,162
public void run() {<NEW_LINE>if (configurable != myQueuedConfigurable)<NEW_LINE>return;<NEW_LINE>if (configurable == null) {<NEW_LINE>myTree.getSelectionModel().clearSelection();<NEW_LINE>myContext.fireSelected(null, OptionsTree.this);<NEW_LINE>} else {<NEW_LINE>myBuilder.getReady(this).doWhenDone(() -> {<NEW_LINE>if (...
configurableNode = myConfigurable2Node.get(configurable);
1,465,916
public static ListDelegatedAdministratorsResponse unmarshall(ListDelegatedAdministratorsResponse listDelegatedAdministratorsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDelegatedAdministratorsResponse.setRequestId(_ctx.stringValue("ListDelegatedAdministratorsResponse.RequestId"));<NEW_LINE>listDelegatedAdministra...
(_ctx.longValue("ListDelegatedAdministratorsResponse.TotalCount"));
926,139
public void onClick(final DialogInterface dialog, final int which) {<NEW_LINE>int i = 0;<NEW_LINE>if (!ExtUtils.isImageOrEpub(file)) {<NEW_LINE>if (which == i++) {<NEW_LINE>showsItemsDialog(a, chooseTitle, AppState.CONVERTERS.get("EPUB"));<NEW_LINE>}<NEW_LINE>if (which == i++) {<NEW_LINE>showsItemsDialog(a, chooseTitle...
ExtUtils.sendFileTo(a, file);
640,311
public static AddBulkPhoneNumbersResponse unmarshall(AddBulkPhoneNumbersResponse addBulkPhoneNumbersResponse, UnmarshallerContext context) {<NEW_LINE>addBulkPhoneNumbersResponse.setRequestId(context.stringValue("AddBulkPhoneNumbersResponse.RequestId"));<NEW_LINE>addBulkPhoneNumbersResponse.setSuccess(context.booleanVal...
+ "].SkillGroups[" + j + "].SkillGroupId"));
1,157,947
void fillEdgesCH(AStarEntry currEdge, PriorityQueue<AStarEntry> prioQueue, IntObjectMap<AStarEntry> bestWeightMap, EdgeExplorer explorer, boolean reverse) {<NEW_LINE>EdgeIterator iter = explorer.setBaseNode(currEdge.adjNode);<NEW_LINE>while (iter.next()) {<NEW_LINE>if (!accept(iter, currEdge.edge))<NEW_LINE>continue;<N...
int traversalId = iter.getAdjNode();
1,625,180
public void visitMethodCall(@NonNull JavaContext context, @NonNull UCallExpression node, @NonNull PsiMethod method) {<NEW_LINE>super.<MASK><NEW_LINE>JavaEvaluator evaluator = context.getEvaluator();<NEW_LINE>// if we have arguments, we're not writing to stdout, so it's an OK call<NEW_LINE>boolean hasArguments = node.ge...
visitMethodCall(context, node, method);
1,064,727
public void configureEDIRoute(final DataFormat jaxb, final DecimalFormat decimalFormat) {<NEW_LINE>final String charset = Util.resolveProperty(getContext(), AbstractEDIRoute.EDI_STEPCOM_CHARSET_NAME);<NEW_LINE>final JaxbDataFormat dataFormat = new JaxbDataFormat(JAXB_INVOIC_CONTEXTPATH);<NEW_LINE>dataFormat.setCamelCon...
HEADER_ADClientValueAttr, xmlCctopInvoice.getADClientValueAttr());
323,378
public synchronized Future<Void> upgradeMetadata(ServerContext context, EventCoordinator eventCoordinator) {<NEW_LINE>if (status == UpgradeStatus.COMPLETE)<NEW_LINE>return CompletableFuture.completedFuture(null);<NEW_LINE>Preconditions.checkState(status == UpgradeStatus.UPGRADED_ZOOKEEPER, "Not currently in a suitable ...
(v).upgradeMetadata(context);
799,324
public void testServletSubmitsManagedTaskThatLooksUpBMTBean(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>Future<?> future = executor.submit(new Callable<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void call() throws Exc...
InitialContext().lookup("java:global/concurrent/ConcurrentBMTBean!java.lang.Runnable");
961,286
public static boolean cast(ZoneChangeInfo info, Game game, Ability source) {<NEW_LINE>if (maybeRemoveFromSourceZone(info, game, source)) {<NEW_LINE><MASK><NEW_LINE>// create a group zone change event if a card is moved to stack for casting (it's always only one card, but some effects check for group events (one or more...
placeInDestinationZone(info, game, 0);
1,564,764
public void read(org.apache.thrift.protocol.TProtocol iprot, getTaskAndStreamMetrics_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeFi...
TList _list288 = iprot.readListBegin();
906,830
public void implement() throws Exception {<NEW_LINE>Configuration conf = Configuration.get(snapshot.getSource().getFileObject());<NEW_LINE>if (elementContextName != null) {<NEW_LINE>// attr in context<NEW_LINE>Tag <MASK><NEW_LINE>if (tag == null) {<NEW_LINE>// no custom element found => may be html element => just crea...
tag = conf.getTag(elementContextName);
9,690
public void drawFigure(Graphics graphics) {<NEW_LINE>graphics.pushState();<NEW_LINE>Rectangle bounds = getBounds();<NEW_LINE>bounds.width--;<NEW_LINE>bounds.height--;<NEW_LINE>// Set line width here so that the whole figure is constrained, otherwise SVG graphics will have overspill<NEW_LINE>setLineWidth(graphics, 1, bo...
graphics.setAlpha(getAlpha());
847,297
private void handleTransaction(PeerConnection peer, TransactionMessage trx) {<NEW_LINE>if (peer.isDisconnect()) {<NEW_LINE>logger.warn("Drop trx {} from {}, peer is disconnect.", trx.getMessageId(), peer.getInetAddress());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (advService.getMessage(new Item(trx.getMessageId(), Inven...
peer.getInetAddress(), e);
375,484
// IntDoubleVector<NEW_LINE>private static void serializeIntDoubleVector(ByteBuf out, IntDoubleVector vector) {<NEW_LINE>IntDoubleVectorStorage storage = vector.getStorage();<NEW_LINE>if (storage.isDense()) {<NEW_LINE>serializeInt(out, DENSE_STORAGE_TYPE);<NEW_LINE>serializeDoubles(out, storage.getValues());<NEW_LINE>}...
getStorage().getClass());
1,049,261
protected Action process() throws Exception {<NEW_LINE>// Only return if EOF has previously been read and thus<NEW_LINE>// a write done with EOF=true<NEW_LINE>if (_eof) {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("EOF of {}", this);<NEW_LINE>if (!_closed) {<NEW_LINE>_closed = true;<NEW_LINE>_channel.getByte...
_buffer.capacity() - len);
842,765
public RoutingProfileQueueConfigSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE><MASK><NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>RoutingProfileQueueConfigSummary routingProfileQueueConfigSummary = new RoutingProfileQueueC...
AwsJsonReader reader = context.getReader();
1,410,551
void frameMessage(final MessageData message, final ByteBuf buf) {<NEW_LINE>final int frameSize = message.getSize() + LENGTH_MESSAGE_ID;<NEW_LINE>final int pad = padding16(frameSize);<NEW_LINE>final byte id = (byte) message.getCode();<NEW_LINE>// Generate the header data.<NEW_LINE>final byte[] h = new byte[LENGTH_HEADER...
hMac, 0, hMac, 0);
922,583
public void start(Stage primaryStage) {<NEW_LINE>primaryStage.setTitle("Tabs");<NEW_LINE>JFXTabPane tabPane = new JFXTabPane();<NEW_LINE>Tab tab = new Tab();<NEW_LINE>tab.setText(msg);<NEW_LINE>tab.setContent(new Label(TAB_0));<NEW_LINE>tabPane.getTabs().add(tab);<NEW_LINE>tabPane.setPrefSize(300, 200);<NEW_LINE>Tab ta...
getTabs().add(temp);
1,404,981
protected Shape createImage(int width, int height) {<NEW_LINE>GeneralPath path = new GeneralPath();<NEW_LINE>int arrowWidth = height / 3;<NEW_LINE>float x1 = isInput ? 0 : width;<NEW_LINE>float x2 = isInput ? 3 * width / 4f : width / 4f;<NEW_LINE>float gap = (width - arrowWidth) / 2f;<NEW_LINE>path.moveTo(x1, gap);<NEW...
7 * height / 8f + 1);
511,497
public static MutationReport testMutation(WebDriver driver, String fileName, String[] includedTags, String[] excludedTags, MutationOptions mutationOptions) throws IOException {<NEW_LINE>TestSession session = TestSession.current();<NEW_LINE>if (session == null) {<NEW_LINE>throw new UnregisteredTestSession("Cannot test m...
), report, fileName, includedTagsList);
1,141,046
private void buildDestinationItem(@NonNull View view, final TargetPoint destination, int[] startTime, final TransportRouteResultSegment segment, double walkSpeed) {<NEW_LINE>OsmandApplication app = requireMyApplication();<NEW_LINE>Typeface typeface = FontCache.getRobotoMedium(app);<NEW_LINE>FrameLayout baseItemView = n...
FrameLayout(view.getContext());
727,349
public void handle(AtmosphereFramework framework, Class<WebSocketHandler> annotatedClass) {<NEW_LINE>try {<NEW_LINE>WebSocketHandlerService m = annotatedClass.getAnnotation(WebSocketHandlerService.class);<NEW_LINE>atmosphereConfig(m.atmosphereConfig(), framework);<NEW_LINE>framework.addAtmosphereHandler(m.path(), Atmos...
getDefault().getWebSocketProcessor(framework);
325,330
protected Status doProcess() {<NEW_LINE>List<Event> events = new ArrayList<>();<NEW_LINE>Map<MessageQueue, Long> offsets = new HashMap<>();<NEW_LINE>Event event;<NEW_LINE>Map<String, String> headers;<NEW_LINE>try {<NEW_LINE>List<MessageExt> messageExts = consumer.poll();<NEW_LINE>for (MessageExt msg : messageExts) {<NE...
addToEventAcceptedCount(events.size());
514,488
public GetAlternateContactResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAlternateContactResult getAlternateContactResult = new GetAlternateContactResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
211,843
public void marshall(StartTopicsDetectionJobRequest startTopicsDetectionJobRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (startTopicsDetectionJobRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar...
startTopicsDetectionJobRequest.getInputDataConfig(), INPUTDATACONFIG_BINDING);
813,311
public void precomputeDenominatorForEvaluation() {<NEW_LINE>// if the contribution of this Gaussian is zero, then don't bother<NEW_LINE>if (pMixtureLog10 == Double.NEGATIVE_INFINITY) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>precomputeInverse();<NEW_LINE>cachedDenomLog10 = Math.log10(Math.pow(2.0 * Math.PI, -1.0 * ((doubl...
det(), -0.5));
1,184,923
public J visitBinary(J.Binary binary, ExecutionContext ctx) {<NEW_LINE>if (binary.getOperator() == J.Binary.Type.Equal || binary.getOperator() == J.Binary.Type.NotEqual) {<NEW_LINE>if (COLLECTION_SIZE.matches(binary.getLeft()) || COLLECTION_SIZE.matches(binary.getRight())) {<NEW_LINE>if (isZero(binary.getLeft()) || isZ...
) : binary.getRight());
1,702,801
private boolean renameObject(LakeFSFileStatus srcStatus, Path dst) throws IOException {<NEW_LINE>ObjectLocation srcObjectLoc = pathToObjectLocation(srcStatus.getPath());<NEW_LINE>ObjectLocation dstObjectLoc = pathToObjectLocation(dst);<NEW_LINE>if (srcStatus.isEmptyDirectory()) {<NEW_LINE>srcObjectLoc = srcObjectLoc.to...
), srcObjectLoc.getPath());
1,424,790
protected JsonNode createPostRequest(GHMRequest ghRequest, Collection<String> outArraysList) {<NEW_LINE>ObjectNode requestJson = objectMapper.createObjectNode();<NEW_LINE>if (ghRequest.identicalLists) {<NEW_LINE>putPoints(requestJson, "points", ghRequest.getFromPoints());<NEW_LINE>putStrings(requestJson, "point_hints",...
"from_point_hints", ghRequest.getFromPointHints());
1,322,823
protected AbstractBeanDefinition doParse(Element element, ParserContext parserContext, String channelName) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(RedisQueueMessageDrivenEndpoint.class);<NEW_LINE>builder.addConstructorArgValue(element.getAttribute("queue"));<NEW_LINE>Strin...
builder, element, "serializer", true);
1,154,661
public void run() {<NEW_LINE>if (task.codeGenerators.size() > 0) {<NEW_LINE>int altHeight = -1;<NEW_LINE>Point where = null;<NEW_LINE>try {<NEW_LINE>Rectangle carretRectangle = target.modelToView(target.getCaretPosition());<NEW_LINE>altHeight = carretRectangle.height;<NEW_LINE>where = new Point(carretRectangle.x, carre...
Point(-1, -1);
583,299
public Set<FileObject> instantiate() throws IOException {<NEW_LINE>FileObject dir = Templates.getTargetFolder(descriptor);<NEW_LINE>FileObject template = Templates.getTemplate(descriptor);<NEW_LINE>DataFolder <MASK><NEW_LINE>DataObject dataTemplate = DataObject.find(template);<NEW_LINE>Map<String, String> map = new Has...
dataFolder = DataFolder.findFolder(dir);
445,653
private void verifyResult(PrintWriter pw, String testName, long executionId, String expectedStatus) throws TestFailureException {<NEW_LINE>JobOperator jobOperator = BatchRuntime.getJobOperator();<NEW_LINE>if (testName.startsWith("recoverLocalJobs")) {<NEW_LINE>try {<NEW_LINE>JobExecution executionInst = jobOperator.get...
String exitStatus = executionInst.getExitStatus();
1,210,566
private Menu createMenu() {<NEW_LINE>if (!isMenuEnabled()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Menu menu = new Menu(shell, SWT.POP_UP);<NEW_LINE>cTable.addListener(SWT.MenuDetect, new Listener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleEvent(Event event) {<NEW_LINE>Composite cHeaderArea =...
fillColumnMenu(menu, column, false);
1,667,345
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>query_cfg_result result = new query_cfg_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER.error...
.apache.thrift.TApplicationException) e;
391,622
public static String strtr(@Nullable String string, @Nullable String from, @Nullable String to) {<NEW_LINE>if (string == null || string.isEmpty()) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>if ((from == null || from.isEmpty()) || (to == null || to.isEmpty())) {<NEW_LINE>return string;<NEW_LINE>}<NEW_LINE>char[<MASK><NEW...
] chars = string.toCharArray();
712,875
public static double digamma(double x) {<NEW_LINE>if (x > 0 && x <= 1.0e-5) {<NEW_LINE>// small value shortcut<NEW_LINE>return -0.5772156649 - 1.0 / x;<NEW_LINE>}<NEW_LINE>double result = 0;<NEW_LINE>double y = x;<NEW_LINE>while (y < 8.5) {<NEW_LINE>// iterate for medium or very negative values<NEW_LINE>result -= 1.0 /...
(8.3333333333e-3 - r * 3.968253968e-3));
739,041
public Optional<ModelSpecification> modelSpecificationsFor(ModelContext modelContext) {<NEW_LINE>ResolvedType propertiesHost = modelContext.alternateEvaluatedType();<NEW_LINE>if (isContainerType(propertiesHost) || isMapType(propertiesHost) || enumTypeDeterminer.isEnum(propertiesHost.getErasedType()) || ScalarTypes.buil...
propertiesHost).orElse("<null>"));
637,747
public boolean verify(PublicKey pubKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException {<NEW_LINE>Signature sig;<NEW_LINE>try {<NEW_LINE>if (provider == null) {<NEW_LINE>sig = Signature.getInstance(getSignatureName(sigAlgId));<NEW_LINE>} else {<NEW_LIN...
.getEncoded(ASN1Encoding.DER));
1,133,558
public void evaluate() throws Throwable {<NEW_LINE>PactVerifications pactVerifications = <MASK><NEW_LINE>if (pactVerifications != null) {<NEW_LINE>evaluatePactVerifications(pactVerifications, base);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PactVerification pactDef = description.getAnnotation(PactVerification.class);<NEW_LI...
description.getAnnotation(PactVerifications.class);
1,314,642
Object fromfile(VirtualFrame frame, PArray self, Object file, int n, @Cached PyObjectCallMethodObjArgs callMethod, @Cached PyObjectSizeNode sizeNode, @Cached ConditionProfile nNegativeProfile, @Cached BranchProfile notBytesProfile, @Cached BranchProfile notEnoughBytesProfile, @Cached FromBytesNode fromBytesNode) {<NEW_...
frame, file, "read", nbytes);
1,432,879
// for #149: Nitrogen support<NEW_LINE>private static void processRecordFields(@NotNull ErlangMacros macros, @NotNull List<ErlangQAtom> atoms) {<NEW_LINE>PsiReference psiReference = macros.getReference();<NEW_LINE>PsiElement macrosDefinition = psiReference != null ? psiReference.resolve() : null;<NEW_LINE>if (macrosDef...
.getQAtom().getMacros();