idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,164,254
private void extractTypes(final Node node) {<NEW_LINE>// first try: labels<NEW_LINE>// AM 2015-06-26: Changed the behaviour here: In case of multiple labels, don't put them all<NEW_LINE>// into the set of potential types but rather create a combined type.<NEW_LINE>// E.g. a node with the two labels 'Person' and 'Entity...
add(buf.toString());
1,666,775
public void execute(BufferedWriter bufferedWriter) {<NEW_LINE>// Rewrite swiftc generated YAML file with our understanding of the current state of<NEW_LINE>// swift sources. This doesn't use Yaml.dump because snakeyaml produces a YAML file<NEW_LINE>// that swiftc cannot read.<NEW_LINE>PrintWriter pw = new PrintWriter(b...
"options: \"" + swiftDeps.options + "\"");
1,335,410
private static EFun createFunForMethod(Method method, String module) {<NEW_LINE>assert (Modifier.isStatic(method.getModifiers()));<NEW_LINE>assert (!Modifier.isPrivate<MASK><NEW_LINE>Class<?>[] parameterTypes = method.getParameterTypes();<NEW_LINE>int ary = parameterTypes.length;<NEW_LINE>boolean proc = (ary > 0 && par...
(method.getModifiers()));
1,152,639
private void init(ContentLayout contentLayout) {<NEW_LINE>mNextPageScrollSize = LayoutUtils.dp2pix(contentLayout.getContext(), 48);<NEW_LINE>mProgressView = contentLayout.mProgressView;<NEW_LINE>mTipView = contentLayout.mTipView;<NEW_LINE>mContentView = contentLayout.mContentView;<NEW_LINE>mRefreshLayout = contentLayou...
), R.drawable.big_sad_pandroid);
1,074,820
public double distance(SparseNumberVector v1, SparseNumberVector v2) {<NEW_LINE>// Get the bit masks<NEW_LINE>double accu = 0.;<NEW_LINE>int i1 = v1.iter(), i2 = v2.iter();<NEW_LINE>while (v1.iterValid(i1) && v2.iterValid(i2)) {<NEW_LINE>final int d1 = v1.iterDim(i1), <MASK><NEW_LINE>if (d1 < d2) {<NEW_LINE>// In first...
d2 = v2.iterDim(i2);
1,531,171
private static CrashlyticsReport.Session parseSession(@NonNull JsonReader jsonReader) throws IOException {<NEW_LINE>final CrashlyticsReport.Session.Builder builder = CrashlyticsReport.Session.builder();<NEW_LINE>jsonReader.beginObject();<NEW_LINE>while (jsonReader.hasNext()) {<NEW_LINE><MASK><NEW_LINE>switch(name) {<NE...
String name = jsonReader.nextName();
490,348
public static boolean verifyTopology(TopologyAPI.Topology topology) {<NEW_LINE>if (!topology.hasName() || topology.getName().isEmpty()) {<NEW_LINE>LOG.severe("Missing topology name");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (topology.getName().contains(".") || topology.getName().contains("/")) {<NEW_LINE>LOG.seve...
outputStreams = new HashSet<>();
810,098
public BehaviorModelTrainingSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>BehaviorModelTrainingSummary behaviorModelTrainingSummary =...
().unmarshall(context));
284,916
final DisassociateTrunkInterfaceResult executeDisassociateTrunkInterface(DisassociateTrunkInterfaceRequest disassociateTrunkInterfaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateTrunkInterfaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
invoke(request, responseHandler, executionContext);
1,292,000
public BeginCheckoutResponse beginCheckout(final Payment payment, final String successUrl, final String cancelUrl) throws FrameworkException {<NEW_LINE>final List<PaymentDetailsType> paymentDetailList = new LinkedList<>();<NEW_LINE>final List<PaymentDetailsItemType> lineItems = new LinkedList<>();<NEW_LINE>final Paymen...
paymentDetails.setPaymentAction(PaymentActionCodeType.SALE);
672,113
public Document toXml(XmlWriterContext ctx) {<NEW_LINE>String self = ctx.pipelineXmlLink(instance.getName(), instance.getCounter());<NEW_LINE>DocumentBuilder builder = DocumentBuilder.withRoot("pipeline").attr("name", instance.getName()).attr("counter", instance.getCounter()).link(self, "self").cdataNode("id", instance...
PipelineTimelineEntry pipelineAfter = instance.getPipelineAfter();
933,878
final ListProvisionedProductPlansResult executeListProvisionedProductPlans(ListProvisionedProductPlansRequest listProvisionedProductPlansRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProvisionedProductPlansRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
invoke(request, responseHandler, executionContext);
673,297
// GEN-LAST:event_runGCActionPerformed<NEW_LINE>private void refreshFrameActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_refreshFrameActionPerformed<NEW_LINE>componentHierarchy.setModel(new ComponentTreeModel(Display.getInstance().getCurrent()));<NEW_LINE>componentHierarchy.setCellRenderer...
.getUIID() + ": " + s;
407,231
public CodeHookSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CodeHookSpecification codeHookSpecification = new CodeHookSpecification();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
209,621
public void updateBannerInProgress() {<NEW_LINE>BasicProgressAsyncTask<?, ?, ?, ?> basicProgressAsyncTask = ctx.getDownloadThread().getCurrentRunningTask();<NEW_LINE>final boolean isFinished = basicProgressAsyncTask == null || basicProgressAsyncTask.getStatus() == AsyncTask.Status.FINISHED;<NEW_LINE>if (isFinished) {<N...
boolean indeterminate = basicProgressAsyncTask.isIndeterminate();
868,106
protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// Create Trees<NEW_LINE>if (newRecord) {<NEW_LINE>MTree_Base tree = new MTree_Base(getCtx(), getName() + MTree_Base.TREETYPE_CMContainer, MTree_Base.TREETYPE_CMContainer, get_TrxName());<NEW_LINE>if (!tree.save())<NEW_LINE>return false;<NEW_LINE>setAD_TreeCMC_...
MTree_Base.TREETYPE_CMContainerStage, get_TrxName());
1,346,592
private Optional<RelationType> analyzeBaseTableForRefreshMaterializedView(Table baseTable, Optional<Scope> scope) {<NEW_LINE>checkState(analysis.getStatement() instanceof RefreshMaterializedView, "Not analyzing RefreshMaterializedView statement");<NEW_LINE>RefreshMaterializedView refreshMaterializedView = (RefreshMater...
, baseTable.getName()));
1,813,894
public com.amazonaws.services.codedeploy.model.InvalidDeploymentWaitTypeException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.InvalidDeploymentWaitTypeException invalidDeploymentWaitTypeException = new com.amazonaws.services.codedeploy.model...
JsonToken token = context.getCurrentToken();
292,936
private ItemStack generateFirework(int color) {<NEW_LINE>ItemStack stack = new ItemStack(Items.FIREWORK_ROCKET);<NEW_LINE>CompoundTag explosion = new CompoundTag();<NEW_LINE>explosion.putIntArray("Colors", new int[] { color });<NEW_LINE>int type = 1;<NEW_LINE>double rand = Math.random();<NEW_LINE>if (rand > 0.25) {<NEW...
explosion.putBoolean("Flicker", true);
1,151,514
public PlanNode visitQuery(QueryStatement queryStatement, MPPQueryContext context) {<NEW_LINE>PlanBuilder planBuilder = planSelectComponent(queryStatement);<NEW_LINE>if (queryStatement.getWhereCondition() != null) {<NEW_LINE>planBuilder = planQueryFilter(planBuilder, queryStatement.getWhereCondition().getQueryFilter())...
planBuilder, queryStatement.getRowLimit());
298,034
public void train(RegressionDataSet dataSet, boolean parallel) {<NEW_LINE>this.dataSet = dataSet;<NEW_LINE>int N = dataSet.size();<NEW_LINE>Vec Y = new DenseVector(N + 1);<NEW_LINE>Matrix V = new DenseMatrix(N + 1, N + 1);<NEW_LINE><MASK><NEW_LINE>setUpVectorMatrix(N, dataSet, V, Y, parallel);<NEW_LINE>for (int i = 0; ...
vari.train(dataSet, nugget);
202,969
private String buildNativeImagePath(VisitorContext visitorContext) {<NEW_LINE>String group = visitorContext.getOptions().get(VisitorContext.MICRONAUT_PROCESSING_GROUP);<NEW_LINE>String module = visitorContext.getOptions().get(VisitorContext.MICRONAUT_PROCESSING_MODULE);<NEW_LINE>if (group != null && module != null) {<N...
basePackage.substring(i + 1);
372,587
public static void init(String esInfo, String context) {<NEW_LINE>if (null == info) {<NEW_LINE>info = JSONHelper.toObject(esInfo, Map.class);<NEW_LINE>}<NEW_LINE>if (null == httpAsyncClient) {<NEW_LINE>Map<String, Integer> httpParamsMap = JSONHelper.toObject(context, Map.class);<NEW_LINE>httpAsyncClient = HttpAsyncClie...
).replace("\r", "");
212,651
public void caretUpdate(CaretEvent evt) {<NEW_LINE>if (text.getDocument() instanceof SyntaxDocument) {<NEW_LINE>try {<NEW_LINE>if (text.getSelectionStart() == text.getSelectionEnd()) {<NEW_LINE>int pos = evt.getDot();<NEW_LINE>String loc = String.format("%d:%d (%d)", ActionUtils.getLineNumber(text, pos) + 1, ActionUtil...
"Ex: " + ex.getMessage());
401,179
private void processActionConstraints() {<NEW_LINE>Vect names = this.config.getActionConstraints();<NEW_LINE>this.actionConstraints = new ExprNode[names.size()];<NEW_LINE>int idx = 0;<NEW_LINE>for (int i = 0; i < names.size(); i++) {<NEW_LINE>String name = (String) names.elementAt(i);<NEW_LINE>Object constr = <MASK><NE...
this.defns.get(name);
576,577
private Object convertType(Object value) {<NEW_LINE>if (nullValues.contains(value) || value == null)<NEW_LINE>return null;<NEW_LINE>switch(// Destination Type<NEW_LINE>type) {<NEW_LINE>case STRING:<NEW_LINE>if (value instanceof TemporalAccessor && !dateFormat.isEmpty()) {<NEW_LINE>return dateFormat((TemporalAccessor) v...
), ZonedDateTime.class, dateParse);
1,784,680
protected void onRequest(RoutingContext context) {<NEW_LINE>URLMappedConfigurationItem configurationItem = findConfigurationItem(context.request().uri());<NEW_LINE>if (configurationItem == null) {<NEW_LINE>context.next();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String uri = Utils.findActualPath(context.request().uri(), co...
getEndpoint().getEndpoint());
249,560
private PHPParseResult sanitize(final Context context, final Sanitize sanitizing, PHP5ErrorHandler errorHandler) throws Exception {<NEW_LINE>switch(sanitizing) {<NEW_LINE>case NONE:<NEW_LINE>case MISSING_CURLY:<NEW_LINE>return parseBuffer(<MASK><NEW_LINE>case REQUIRE_FUNCTION_INCOMPLETE:<NEW_LINE>return parseBuffer(con...
context, Sanitize.REQUIRE_FUNCTION_INCOMPLETE, errorHandler);
1,308,281
public void notifyToBeResumedAll() {<NEW_LINE>List<? extends JPDAThreadImpl> threads = threadsTranslation.getTranslated((o) -> (o instanceof JPDAThreadImpl) ? (JPDAThreadImpl) o : null);<NEW_LINE>int n = threads.size();<NEW_LINE>if (n > 0) {<NEW_LINE>processInParallel(n, (i) -> {<NEW_LINE>JPDAThreadImpl thread = thread...
STATE_UNKNOWN || status == JPDAThread.STATE_ZOMBIE);
758,014
public void marshall(CreateBudgetActionRequest createBudgetActionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createBudgetActionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createBud...
createBudgetActionRequest.getDefinition(), DEFINITION_BINDING);
579,648
private boolean analyzeIn(AliasTranslator translator, IntrinsicModel model, ExpressionNode node, RecordMetadata metadata, FunctionParser functionParser, SqlExecutionContext executionContext, boolean latestByMultiColumn) throws SqlException {<NEW_LINE>if (node.paramCount < 2) {<NEW_LINE>throw SqlException.$(node.positio...
col.position, col.token);
227,252
private static // It's lying; we need the "redundant" casts (as of 2014-09-08)<NEW_LINE>Object buildDependencyTree(SemanticGraph graph) {<NEW_LINE>if (graph != null) {<NEW_LINE>return // Roots<NEW_LINE>Stream.// Roots<NEW_LINE>concat(graph.getRoots().stream().map((IndexedWord root) -> (Consumer<Writer>) dep -> {<NEW_LI...
"dependent", root.index());
718,135
private void handleAsynchTimeOut(SipTransaction transaction) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "handleAsynchTimeOut");<NEW_LINE>}<NEW_LINE>// get the tu from the original request, at this stage it is not found on the response<NEW_LINE>TransactionUserWrapper transact...
transactionUser.invalidateTU(true, true);
579,637
/*<NEW_LINE>* This method will fetch all the predefined roles in the organization along<NEW_LINE>* with permissions assoicated with it.<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>public Set<Role> fetchPredefinedRoles() throws IOException, GeneralSecurityException {<NEW_LINE>iamService = getIamClient();<NEW_LINE>// All predefined ...
setPageToken(response.getNextPageToken());
1,496,995
public SimulationEvent apply(EventLogEntry event) {<NEW_LINE>if (FlowableEngineEventType.TASK_COMPLETED.toString().equals(event.getType())) {<NEW_LINE>ObjectMapper objectMapper = new ObjectMapper();<NEW_LINE>Map<String, Object> data;<NEW_LINE>try {<NEW_LINE>data = objectMapper.readValue(event.getData(), new TypeReferen...
throw new CrystalballException("unable to parse JSON string.", e);
1,577,687
public void writePushParameters(Collection<ExprStmtToken> parameters, boolean useConstants, Memory... additional) {<NEW_LINE>if (parameters.isEmpty()) {<NEW_LINE>code.<MASK><NEW_LINE>stackPush(Memory.Type.REFERENCE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (useConstants && additional == null || additional.length == 0) ...
add(new InsnNode(ACONST_NULL));
319,345
// ----- private methods -----<NEW_LINE>private boolean handleWatchEvent(final boolean registerWatchKey, final WatchEventItem item) throws IOException {<NEW_LINE>final WatchEvent event = item.getEvent();<NEW_LINE>final Path root = item.getRoot();<NEW_LINE>final Path parent = item.getPath();<NEW_LINE>// default is "don'...
onCreate(root, parent, path);
118,529
public void connectionError(Throwable e, Object attachment) {<NEW_LINE>RouteResultsetNode rrn = (RouteResultsetNode) attachment;<NEW_LINE>ErrorPacket errPacket = new ErrorPacket();<NEW_LINE>errPacket.setErrNo(ErrorCode.ER_DB_INSTANCE_ABORTING_CONNECTION);<NEW_LINE>String errMsg = "can't connect to shardingNode[" + rrn....
().getResults()));
213,937
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
327,902
public ECFieldElement sqrt() {<NEW_LINE>int[] x1 = this.x;<NEW_LINE>if (Nat160.isZero(x1) || Nat160.isOne(x1)) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>int[] x2 = Nat160.create();<NEW_LINE>SecP160R1Field.square(x1, x2);<NEW_LINE>SecP160R1Field.multiply(x2, x1, x2);<NEW_LINE>int[] x4 = Nat160.create();<NEW_LINE>SecP1...
squareN(x64, 64, x128);
981,422
private LayoutFeeder createFeeder(LayoutComponent[] components, LayoutComponent targetContainer) {<NEW_LINE>assert components.length == 1 || (components.length > 1 && components[0].getParent() == null);<NEW_LINE>LayoutFeeder feeder = new LayoutFeeder(components, targetContainer, operations, dragger);<NEW_LINE>unresized...
setUndo(start, end, dim);
1,670,597
// Visitor methods<NEW_LINE>@Override<NEW_LINE>public void visit(BLangPackage pkgNode) {<NEW_LINE>if (pkgNode.completedPhases.contains(CompilerPhase.DEFINE)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Create PackageSymbol<NEW_LINE>BPackageSymbol pkgSymbol;<NEW_LINE>if (Symbols.isFlagOn(Flags.asMask(pkgNode.flagSet), Fla...
-> defineTestablePackage(testablePackage, pkgEnv));
1,200,883
private Mono<Response<Void>> deleteWithResponseAsync(String policySetDefinitionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (policySetDefi...
this.client.mergeContext(context);
1,455,182
protected Object mapAttribute(Object attribute) {<NEW_LINE>if (attribute instanceof TargetObject) {<NEW_LINE>TraceObject traceObject = toTrace((TargetObject) attribute);<NEW_LINE>if (traceObject == null) {<NEW_LINE>Msg.error(this, "Unknown object appeared as an attribute: " + attribute);<NEW_LINE>}<NEW_LINE>return trac...
error(this, "Unmappable address appeared as an attribute: " + attribute);
1,230,638
public void logSerialPort() {<NEW_LINE>if (mSerialPort != null) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("\nPort:\t\t\t").append(mSerialPort.getSystemPortName()).append("\n");<NEW_LINE>sb.append("Name:\t\t\t").append(mSerialPort.getDescriptivePortName()).append("\n");<NEW_LINE>sb.append("Ba...
()).append("\n");
468,501
public void write(org.apache.thrift.protocol.TProtocol prot, changeLocalUserPassword_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (...
oprot.writeString(struct.principal);
449,323
public void run(ITextSelection currentSelection) {<NEW_LINE>if (currentSelection != null && editor != null) {<NEW_LINE>GroovyCompilationUnit unit = editor.getGroovyCompilationUnit();<NEW_LINE>if (unit != null) {<NEW_LINE>ModuleNode node = unit.getModuleNode();<NEW_LINE>if (node != null) {<NEW_LINE>FindSurroundingNode f...
result = finder.doVisitSurroundingNode(node);
1,118,474
public double[][] transformToDoubleValuesMV(ProjectionBlock projectionBlock) {<NEW_LINE>if (_resultMetadata.getDataType().getStoredType() != DataType.DOUBLE) {<NEW_LINE>return super.transformToDoubleValuesMV(projectionBlock);<NEW_LINE>}<NEW_LINE>int length = projectionBlock.getNumDocs();<NEW_LINE>if (_doubleMVResults =...
(_functionInvoker.invoke(_arguments));
297,778
public static Object initializeBaseModules(List<File> files, final ClassLoader targetClassLoader, ContainerLogger containerLogger, Java9ModuleProcessor processor) {<NEW_LINE>Object moduleFinder = moduleFinderOf(files);<NEW_LINE>List<String> toResolve = new ArrayList<String>();<NEW_LINE>containerLogger.info("Java 9 modu...
(ourConsuloModulePathBoot ? "enabled" : "disabled"));
542,328
// ~ Methods ------------------------------------------------------------------------------------<NEW_LINE>// ----------//<NEW_LINE>// doSystem //<NEW_LINE>// ----------//<NEW_LINE>@Override<NEW_LINE>public void doSystem(SystemInfo system, Void context) throws StepException {<NEW_LINE>StopWatch watch = new StopWatch("L...
system, false).reduceLinks();
471,092
private static Object doConvertToJavaObject(ReadCellData<?> cellData, Class<?> clazz, ExcelContentProperty contentProperty, Map<ConverterKey, Converter<?>> converterMap, AnalysisContext context, Integer rowIndex, Integer columnIndex) {<NEW_LINE>Converter<?> converter = null;<NEW_LINE>if (contentProperty != null) {<NEW_...
EMPTY && !(converter instanceof NullableObjectConverter);
520,030
void generateConfigSources(List<RunTimeConfigurationSourceBuildItem> runTimeSources, final BuildProducer<GeneratedClassBuildItem> generatedClass, LiveReloadBuildItem liveReloadBuildItem) {<NEW_LINE>if (liveReloadBuildItem.isLiveReload()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ClassOutput classOutput = new GeneratedClas...
[].class), array);
1,197,271
final GetAdministratorAccountResult executeGetAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAdministratorAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Macie2");
122,362
final DeleteConnectionResult executeDeleteConnection(DeleteConnectionRequest deleteConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<D...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
828,807
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>SystemInformation systemInformation = new SystemInformation();<NEW_LINE>systemInformation.setAppBase(getContainerWrapper().getTomcatContainer().getAppBase().getAbsolutePath());<NEW_LINE>sys...
sysProps.put(propertyName, propertyValue);
1,689,907
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<Wo> wos = emc.fe...
fetchAll(Stat.class, statCopier);
238,657
private static void bdd_printset_rec(BDDFactory f, StringBuffer sb, BDD r, int[] set) {<NEW_LINE>int n;<NEW_LINE>boolean first;<NEW_LINE>if (r.isZero()) {<NEW_LINE>return;<NEW_LINE>} else if (r.isOne()) {<NEW_LINE>sb.append('<');<NEW_LINE>first = true;<NEW_LINE>for (n = 0; n < set.length; n++) {<NEW_LINE>if (set[n] > 0...
.var())] = 1;
1,592,628
public ActionResult useOnBlock(ItemUsageContext context) {<NEW_LINE>PlayerEntity playerEntity = context.getPlayer();<NEW_LINE>BlockPos blockPos = context.getBlockPos();<NEW_LINE>CachedBlockPosition cachedBlockPosition = new CachedBlockPosition(context.getWorld(), blockPos, false);<NEW_LINE>if (playerEntity != null && !...
BlockPos pos = b.getPosition();
398,034
public ViewHolderNotifications onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>logDebug("onCreateViewHolder");<NEW_LINE>View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_notification_list, parent, false);<NEW_LINE>holder = new ViewHolderNotifications(v);<NEW_LINE>holder.itemLayout = ...
findViewById(R.id.notifications_separator);
1,149,054
public void marshall(CreateBotLocaleRequest createBotLocaleRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createBotLocaleRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createBotLocaleReq...
createBotLocaleRequest.getVoiceSettings(), VOICESETTINGS_BINDING);
1,355,524
public byte[] decrypt(byte[] cipherTextWithIv) throws Exception {<NEW_LINE>checkHeader(cipherTextWithIv);<NEW_LINE>Cipher cipher = Cipher.getInstance(CIPHER_NAME);<NEW_LINE>int bufferLength = cipherTextWithIv.length - HEADER.length;<NEW_LINE>ByteBuffer buffer = ByteBuffer.wrap(cipherTextWithIv, HEADER.length, bufferLen...
.position() - mark - 1;
1,780,184
final GetRuleGroupResult executeGetRuleGroup(GetRuleGroupRequest getRuleGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRuleGroupRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetRuleGroupRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
705,656
public static ListDataCorrectPreCheckDBResponse unmarshall(ListDataCorrectPreCheckDBResponse listDataCorrectPreCheckDBResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDataCorrectPreCheckDBResponse.setRequestId(_ctx.stringValue("ListDataCorrectPreCheckDBResponse.RequestId"));<NEW_LINE>listDataCorrectPreCheckDBResponse...
("ListDataCorrectPreCheckDBResponse.PreCheckDBList[" + i + "].SearchName"));
1,387,687
public static boolean checkPlatform(Platform platform, Properties properties, boolean acceptAllExtensions, String... defaultNames) {<NEW_LINE>if (platform == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (defaultNames == null) {<NEW_LINE>defaultNames = new String[0];<NEW_LINE>}<NEW_LINE>String platform2 = proper...
), platform.pattern() };
1,810,685
private void loadNode974() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_PublishCount, new QualifiedName(0, "PublishCount"), new LocalizedText("en", "PublishCount"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UIntege...
this.nodeManager.addNode(node);
1,704,518
private void loadNode1138() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.ServerStatusType_BuildInfo_BuildNumber, new QualifiedName(0, "BuildNumber"), new LocalizedText("en", "BuildNumber"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataV...
.expanded(), false));
127,593
protected void parseCreateField(ParseContext context, List<IndexableField> fields) throws IOException {<NEW_LINE>Object addressAsObject;<NEW_LINE>if (context.externalValueSet()) {<NEW_LINE>addressAsObject = context.externalValue();<NEW_LINE>} else {<NEW_LINE>addressAsObject = context.parser().textOrNull();<NEW_LINE>}<N...
.encode(address))));
975,184
public ResponseEntity<AttackResult> checkout(@RequestHeader(value = "Authorization", required = false) String token) {<NEW_LINE>if (token == null) {<NEW_LINE>return ResponseEntity.status(HttpStatus.UNAUTHORIZED).build();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Jwt jwt = Jwts.parser().setSigningKey(JWT_PASSWORD).parse(token....
("jwt-invalid-token").build());
1,832,666
public void run(OpcUaClient client, CompletableFuture<OpcUaClient> future) throws Exception {<NEW_LINE>// synchronous connect<NEW_LINE>client<MASK><NEW_LINE>List<NodeId> nodeIds = ImmutableList.of(new NodeId(2, "HelloWorld/ScalarTypes/Int32"));<NEW_LINE>for (int i = 0; i < 10; i++) {<NEW_LINE>Variant v = new Variant(i)...
.connect().get();
126,159
public Outcome<VirtualMachine> migrateVmAwayThroughJobQueue(final String vmUuid, final long srcHostId) {<NEW_LINE>VMInstanceVO vm = _vmDao.findByUuid(vmUuid);<NEW_LINE>Long vmId = vm.getId();<NEW_LINE>String commandName = VmWorkMigrateAway.class.getName();<NEW_LINE>Pair<VmWorkJobVO, Long> pendingWorkJob = retrievePendi...
(VmWorkSerializer.serialize(workInfo));
1,421,690
public TriggerDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TriggerDetails triggerDetails = new TriggerDetails();<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();
1,764,703
public void generateKey(Context context, String password) {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>SQLiteDatabase.loadLibs(context);<NEW_LINE>String dbPath = context.getDatabasePath("key0.db").getPath();<NEW_LINE>File dbPathFile = new File(dbPath);<NEW_LINE>if (!dbPathFile.exists()) {<NEW_LINE>dbPathFile.getParentFile(...
this, "An database error occurred.", Toast.LENGTH_LONG);
529,003
byte[] toDnsQuestionData() throws IOException {<NEW_LINE>if (host == null || host.length() == 0) {<NEW_LINE>throw new IOException("host can not empty");<NEW_LINE>}<NEW_LINE>if (opCode != OpCodeQuery && opCode != OpCodeIQuery && opCode != OpCodeStatus && opCode != OpCodeUpdate) {<NEW_LINE>throw new IOException("opCode i...
dos.write(buffer.length);
1,321,181
public Filter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Filter filter = new Filter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE>if ...
JsonToken token = context.getCurrentToken();
461,590
final DescribeBudgetNotificationsForAccountResult executeDescribeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest describeBudgetNotificationsForAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeBudgetNotificationsForAccountRequest);<NEW_LINE>AWSReque...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,318,015
private SignallingData.DataInfo convert2DataInfo(Map<String, Object> dataMap) {<NEW_LINE>SignallingData.DataInfo dataInfo = new SignallingData.DataInfo();<NEW_LINE>try {<NEW_LINE>if (dataMap.containsKey(CallModel.KEY_CMD)) {<NEW_LINE>Object cmd = dataMap.get(CallModel.KEY_CMD);<NEW_LINE>if (cmd instanceof String) {<NEW...
.setCmd((String) cmd);
1,066,231
public void onStyleLoaded(@NonNull Style style) {<NEW_LINE>// Set up a SymbolManager instance<NEW_LINE>symbolManager = new <MASK><NEW_LINE>symbolManager.setIconAllowOverlap(true);<NEW_LINE>symbolManager.setTextAllowOverlap(true);<NEW_LINE>// Add symbol at specified lat/lon<NEW_LINE>symbol = symbolManager.create(new Sym...
SymbolManager(mapView, mapboxMap, style);
1,597,681
private XObject eval(String expression, Object contextItem) throws javax.xml.transform.TransformerException {<NEW_LINE>org.apache.xpath.XPath xpath = new org.apache.xpath.XPath(expression, null, prefixResolver, org.apache.xpath.XPath.SELECT);<NEW_LINE>org.apache.xpath.XPathContext xpathSupport = null;<NEW_LINE>// Creat...
xpathSupport, DTM.NULL, prefixResolver);
656,108
public List<Period> generatePeriods(Year year) throws AxelorException {<NEW_LINE>List<Period> periods = new ArrayList<Period>();<NEW_LINE>Integer duration = year.getPeriodDurationSelect();<NEW_LINE><MASK><NEW_LINE>LocalDate toDate = year.getToDate();<NEW_LINE>LocalDate periodToDate = fromDate;<NEW_LINE>Integer periodNu...
LocalDate fromDate = year.getFromDate();
707,905
private ClassLoadContext createDeclarationContext(Collection<VariableDeclarationSnippet> variableDeclarations, Collection<Identifier> variableNames, Map<Identifier, ModuleMemberDeclarationSnippet> moduleDeclarations) {<NEW_LINE>// Load current declarations<NEW_LINE>Map<Identifier, VariableContext> oldVarDclns = globalV...
variableNames.forEach(oldVarDclns::remove);
784,329
private boolean handleWakeUp() {<NEW_LINE>assert holdsLock() : "PeerFinder mutex not held";<NEW_LINE>final boolean peersRemoved = peersByAddress.values(<MASK><NEW_LINE>if (active == false) {<NEW_LINE>logger.trace("not active");<NEW_LINE>return peersRemoved;<NEW_LINE>}<NEW_LINE>logger.trace("probing cluster-manager node...
).removeIf(Peer::handleWakeUp);
1,380,969
public void printPreamble(String nameConcurrent) {<NEW_LINE>out.print(<MASK><NEW_LINE>if (typeInput.compareTo(typeOutput) != 0)<NEW_LINE>out.print("import boofcv.struct.image." + typeOutput + ";\n");<NEW_LINE>out.print("import boofcv.struct.image." + typeInput + ";\n" + "import org.ddogleg.struct." + workType + ";\n" +...
"import boofcv.misc.BoofMiscOps;\n" + "import boofcv.struct.convolve.*;\n" + "import pabeles.concurrency.GrowArray;\n" + "import org.jetbrains.annotations.Nullable;\n");
715,792
public static void generateJLRF_Get(ClassWriter cw, String classname) {<NEW_LINE>FieldVisitor fv = cw.visitField(ACC_PUBLIC + ACC_STATIC, jlrfGetMember, "Ljava/lang/reflect/Method;", null, null);<NEW_LINE>fv.visitEnd();<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PRIVATE + ACC_STATIC, jlrfGetMember, jlrfGetDescripto...
mv.visitVarInsn(ALOAD, 1);
727,875
public Object list(DataCommandsParam dataCommandsParam) {<NEW_LINE>jedis.select(dataCommandsParam.getDatabase());<NEW_LINE>String command = dataCommandsParam.getCommand();<NEW_LINE>String[] list = SignUtil.splitBySpace(command);<NEW_LINE>String cmd = command.toUpperCase();<NEW_LINE>String key = list[1];<NEW_LINE>String...
parseInt(list[2]));
520,491
UserPropertiesStatus importOldProperties() {<NEW_LINE>final <MASK><NEW_LINE>if (userPreferencesFile.exists()) {<NEW_LINE>return UserPropertiesStatus.CURRENT_VERSION_FOUND;<NEW_LINE>}<NEW_LINE>File previousPropertyDirectory = copyUserFilesFromPreviousVersionTo(userPreferencesFile.getParentFile());<NEW_LINE>if (userPrefe...
File userPreferencesFile = ApplicationResourceController.getUserPreferencesFile();
89,058
protected Set<RuleTemplate> importData(URL url, Parser<RuleTemplate> parser, InputStreamReader inputStreamReader) throws ParsingException {<NEW_LINE>Set<RuleTemplate> providedObjects = parser.parse(inputStreamReader);<NEW_LINE>if (providedObjects != null && !providedObjects.isEmpty()) {<NEW_LINE>List<String> portfolio ...
= new ArrayList<ParsingNestedException>();
1,091,442
private void extractParameters(ResultPoint[] bullsEyeCorners) throws NotFoundException {<NEW_LINE>if (!isValid(bullsEyeCorners[0]) || !isValid(bullsEyeCorners[1]) || !isValid(bullsEyeCorners[2]) || !isValid(bullsEyeCorners[3])) {<NEW_LINE>throw NotFoundException.getNotFoundInstance();<NEW_LINE>}<NEW_LINE>int length = 2...
shift = getRotation(sides, length);
175,327
public static DescribeScdnRefreshTasksResponse unmarshall(DescribeScdnRefreshTasksResponse describeScdnRefreshTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScdnRefreshTasksResponse.setRequestId(_ctx.stringValue("DescribeScdnRefreshTasksResponse.RequestId"));<NEW_LINE>describeScdnRefreshTasksResponse.setPa...
("DescribeScdnRefreshTasksResponse.Tasks[" + i + "].CreationTime"));
526,387
public static void init(GeyserBootstrap bootstrap) {<NEW_LINE>String defaultLocale = formatLocale(Locale.getDefault().getLanguage() + "_" + Locale.getDefault().getCountry());<NEW_LINE>String loadedLocale = loadGeyserLocale(defaultLocale, bootstrap);<NEW_LINE>if (loadedLocale != null) {<NEW_LINE>DEFAULT_LOCALE = loadedL...
DEFAULT_LOCALE = loadGeyserLocale("en_US", bootstrap);
1,011,908
protected void serialiseSizeAndPropertyValue(final String propertyName, final SchemaElementDefinition elementDefinition, final Properties properties, final ByteArrayOutputStream stream) {<NEW_LINE>try {<NEW_LINE>final TypeDefinition typeDefinition = elementDefinition.getPropertyTypeDef(propertyName);<NEW_LINE>final ToB...
(ToBytesSerialiser) typeDefinition.getSerialiser();
52,360
public static void mainHmmVoiceConversion() throws IOException {<NEW_LINE>String baseInputFolder = "D:/Oytun/DFKI/voices/hmmVoiceConversionTest2/output/final/";<NEW_LINE>String baseOutputFolder = "D:/Oytun/DFKI/voices/hmmVoiceConversionTest2/objective_test/";<NEW_LINE>boolean isBark = true;<NEW_LINE>String method1, met...
+ method1 + "_" + method2 + ".txt";
1,636,404
private static WXModule findModule(String instanceId, String moduleStr, ModuleFactory factory) {<NEW_LINE>// find WXModule<NEW_LINE>WXModule wxModule = sGlobalModuleMap.get(moduleStr);<NEW_LINE>// not global module<NEW_LINE>if (wxModule == null) {<NEW_LINE>Map<String, WXModule> moduleMap = sInstanceModuleMap.get(instan...
moduleMap.put(moduleStr, wxModule);
77,277
private void updateMockExpectConfigs(MockConfig mockConfig, List<MockExpectConfigWithBLOBs> list, SqlSession sqlSession) {<NEW_LINE>int batchCount = 0;<NEW_LINE>for (MockExpectConfigWithBLOBs mockExpect : list) {<NEW_LINE>MockExpectConfig expectInDb = this.findMockExpectConfigByMockConfigIdAndExpectNum(mockConfig.getId...
setId(expectInDb.getId());
1,211,232
private Object executeOverrideTarget(Method o, Object ctx, Object elCtx, VariableResolverFactory vars) {<NEW_LINE>// this local field is required to make sure exception block works with the same coercionNeeded value<NEW_LINE>// and it is not changed by another thread while setter is invoked<NEW_LINE>boolean attemptedCo...
? "yes" : "no") + ")");
821,680
public CreateCustomMetricResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateCustomMetricResult createCustomMetricResult = new CreateCustomMetricResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
class).unmarshall(context));
120,737
public void testReceiveBodyWithTimeOutUnspecifiedType_B_SecOn(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>exceptionFlag = false;<NEW_LINE>jmsContext = jmsQCFBindings.createContext();<NEW_LINE>emptyQueue(jmsQCFBindings, jmsQueue);<NEW_LINE>jmsConsumer = jmsContext.createConsumer...
byte[].class, DEFAULT_TIMEOUT);
1,545,507
private void cmd_Ok() {<NEW_LINE>log.config("OK=" + true);<NEW_LINE>m_ok = true;<NEW_LINE>saveResultSelection(detail);<NEW_LINE>saveSelection(detail);<NEW_LINE>// Is Process ok<NEW_LINE>boolean isOk = false;<NEW_LINE>// Valid Process, Selected Keys and process parameters<NEW_LINE>if (getAD_Process_ID() > 0 && getSelect...
.getAppDesktop().closeActiveWindow();
134,574
public Map<String, Object> summary() {<NEW_LINE>Map<String, Object> summary = Maps.newHashMap();<NEW_LINE>summary.put("totalRows", Long.valueOf(totalRows));<NEW_LINE>summary.put("loadedRows", Long.valueOf(totalRows - this.errorRows - this.unselectedRows));<NEW_LINE>summary.put("errorRows", Long.valueOf(this.errorRows))...
.valueOf(this.abortedTaskNum));
924,810
private void createPO() {<NEW_LINE>int noOrders = 0;<NEW_LINE>String info = "";<NEW_LINE>//<NEW_LINE>MOrder order = null;<NEW_LINE>MWarehouse warehouse = null;<NEW_LINE>List<X_T_Replenish> replenishList = getReplenish("M_WarehouseSource_ID IS NULL", true);<NEW_LINE>for (X_T_Replenish replenish : replenishList) {<NEW_LI...
setAD_Org_ID(warehouse.getAD_Org_ID());
1,288,666
public void insert(List<String> items) {<NEW_LINE>YAMLValue yamlCompoundValue = argumentsKeyValue.getValue();<NEW_LINE>if (!(yamlCompoundValue instanceof YAMLCompoundValue)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int appendEndOffset = -1;<NEW_LINE>String insertString = null;<NEW_LINE>if (yamlCompoundValue instanceof YA...
arrayList = new ArrayList<>();