idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,843,150
public void recover() {<NEW_LINE>// Always recover in the default mode -- otherwise, the parser can get stuck in an infinite<NEW_LINE>// loop, e.g. if separator is not valid in the current mode.<NEW_LINE>_lexer._mode = Lexer.DEFAULT_MODE;<NEW_LINE>int tokenStartMarker = _lexer._input.mark();<NEW_LINE>try {<NEW_LINE>_le...
).consume(_lexer._input);
541,785
public static DateTime civilDate(ThreadContext context, final int y, final int m, final int d, final Chronology chronology) {<NEW_LINE>DateTime dt;<NEW_LINE>try {<NEW_LINE>if (d >= 0) {<NEW_LINE>// let d == 0 fail (raise 'invalid date')<NEW_LINE>dt = new DateTime(y, m, <MASK><NEW_LINE>} else {<NEW_LINE>dt = new DateTim...
d, 0, 0, chronology);
819,645
private void addUsedByExtensionAttribute(HttpServletRequest request, AttributeList attributeList, HttpServletResponse response) throws OAuth20BadParameterException {<NEW_LINE>String usedBy = <MASK><NEW_LINE>if (usedBy == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!checkParamLength(OAuth20Constants.USED_BY, usedBy...
request.getParameter(OAuth20Constants.USED_BY);
172,001
// snippet-start:[workdocs.java2.upload_user_doc.main]<NEW_LINE>public static void uploadDoc(WorkDocsClient workDocs, String orgId, String userEmail, String docName, String docPath) {<NEW_LINE>String docId;<NEW_LINE>String versionId;<NEW_LINE>String uploadUrl;<NEW_LINE>int statusValue = 0;<NEW_LINE>Map<String, String> ...
completeUpload(workDocs, docId, versionId);
1,406,518
final BatchStopJobRunResult executeBatchStopJobRun(BatchStopJobRunRequest batchStopJobRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchStopJobRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Glue");
912,198
public static long parseLong(final CharSequence s) {<NEW_LINE>if (s == null)<NEW_LINE>throw new NumberFormatException("Null string");<NEW_LINE>// Check for a sign.<NEW_LINE>long num = 0;<NEW_LINE>long sign = -1;<NEW_LINE>final int len = s.length();<NEW_LINE>final char ch = s.charAt(0);<NEW_LINE>if (ch == '-') {<NEW_LIN...
throw new NumberFormatException("Over/underflow: " + s);
948,160
private void sendAppendRequest(final RaftMemberContext member, final AppendRequest request) {<NEW_LINE>// If this is a heartbeat message and a heartbeat is already in progress, skip the request.<NEW_LINE>if (request.entries().isEmpty() && !member.canHeartbeat()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Start the appen...
getMember().memberId());
789,961
private int find(MethodNode method, InjectionPoint injectionPoint, int defaultValue, int failValue, String description) {<NEW_LINE>if (injectionPoint == null) {<NEW_LINE>return defaultValue;<NEW_LINE>}<NEW_LINE>Deque<AbstractInsnNode> nodes <MASK><NEW_LINE>InsnListReadOnly insns = new InsnListReadOnly(method.instructio...
= new LinkedList<AbstractInsnNode>();
1,439,151
public State convertToState(RFXComValueSelector valueSelector) throws RFXComException {<NEW_LINE>org.openhab.core.types.State state = UnDefType.UNDEF;<NEW_LINE>if (valueSelector.getItemClass() == NumberItem.class) {<NEW_LINE>if (valueSelector == RFXComValueSelector.SIGNAL_LEVEL) {<NEW_LINE>state = new DecimalType(signa...
" to " + valueSelector.getItemClass());
258,412
final ListEventIntegrationsResult executeListEventIntegrations(ListEventIntegrationsRequest listEventIntegrationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventIntegrationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,808,203
static <K, A, E> MapDifference<K, A, E> create(Map<? extends K, ? extends A> actual, Map<? extends K, ? extends E> expected, boolean allowUnexpected, ValueTester<? super A, ? super E> valueTester) {<NEW_LINE>Map<K, A> unexpected = new LinkedHashMap<>(actual);<NEW_LINE>Map<K, E> missing = new LinkedHashMap<>();<NEW_LINE...
, expected.keySet()));
587,588
protected void channelRead0(ChannelHandlerContext ctx, FullHttpRequest msg) throws Exception {<NEW_LINE>String uri = msg.uri();<NEW_LINE>HttpMethod httpMethod = msg.method();<NEW_LINE>HttpHeaders headers = msg.headers();<NEW_LINE>if (HttpMethod.GET == httpMethod) {<NEW_LINE>String[] uriComponents = uri.split("[?]");<NE...
[1].split("&");
321,010
public void updatePet(Pet body, final Response.Listener<String> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>VolleyError error = new VolleyError("Missing the required paramet...
MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();
1,063,913
public void onMessage(Message message) {<NEW_LINE>if (!endpoint.isAlive()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!(message instanceof DataAwareMessage)) {<NEW_LINE>throw new IllegalArgumentException("Expecting: DataAwareMessage, Found: " + message.getClass().getSimpleName());<NEW_LINE>}<NEW_LINE>DataAwareMessage d...
getPartitionService().getPartitionCount());
1,007,771
protected void loadConstraints(ParsedNode constraintsNode) throws ParsedNodeException {<NEW_LINE>if (constraintsNode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ConstraintsConfig constraints = new ConstraintsConfig();<NEW_LINE>constraints.setNullable(constraintsNode.getChildValue(null, "nullable", Boolean.class));<...
, "referencedTableSchemaName", String.class));
1,032,239
public ResourceEntity createDiagramForProcessDefinition(ProcessDefinitionEntity processDefinition, BpmnParse bpmnParse) {<NEW_LINE>if (StringUtils.isEmpty(processDefinition.getKey()) || StringUtils.isEmpty(processDefinition.getResourceName())) {<NEW_LINE>throw new IllegalStateException("Provided process definition must...
ProcessEngineConfiguration processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration();
1,558,854
// InitDNSName should be called to initialize the DNSName before calling this function<NEW_LINE>byte[] generateClientContext(byte[] pin, boolean[] done) throws SQLServerException {<NEW_LINE>byte[] pOut;<NEW_LINE>// This is where the size of the filled data returned<NEW_LINE>int[] outsize;<NEW_LINE>outsize = new int[1];...
toString() + " Authentication failed code : " + failure);
838,219
protected void writeFrame() {<NEW_LINE>if (pixelWriter != null) {<NEW_LINE>while (!imageState.compareAndSet(WAITING_STATE, RUNNING_STATE)) {<NEW_LINE>if (imageState.get() == DISPOSED_STATE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final int[] imageDataBuffer = getImageByteBuffer();<NEW_LINE>sync...
colorModel, raster, false, null);
1,573,824
protected void updatePlayer(final Server server, final CommandSource sender, final User user, final String[] args) throws PlayerExemptException {<NEW_LINE>try {<NEW_LINE>final Player player = user.getBase();<NEW_LINE>if (player.getHealth() == 0) {<NEW_LINE>throw new PlayerExemptException(tl("healDead"));<NEW_LINE>}<NEW...
, user.getDisplayName()));
957,455
// ---------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>// Log.i("DEBUGGER_TAG", "onCreateOptionsMenu");<NEW_LINE>// We don't use Qt menu system, since it does not support ActionBar.<NEW_LINE>// We handle ActionB...
findItem(R.id.ocpn_action_track_toggle_ison);
714,741
private void generateBitwiseOrIns(BIRNonTerminator.BinaryOp binaryIns) {<NEW_LINE>BType opType1 = JvmCodeGenUtil.getReferredType(binaryIns.rhsOp1.variableDcl.type);<NEW_LINE>BType opType2 = JvmCodeGenUtil.getReferredType(<MASK><NEW_LINE>if (opType1.tag == TypeTags.BYTE && opType2.tag == TypeTags.BYTE) {<NEW_LINE>this.l...
binaryIns.rhsOp2.variableDcl.type);
1,517,207
private void remove() {<NEW_LINE>preview.removeAll();<NEW_LINE>preview.revalidate();<NEW_LINE>preview.repaint();<NEW_LINE>int dpi = DPIS[this.dpi.getSelectedIndex()];<NEW_LINE>int[] dpis = multi.getDpi();<NEW_LINE>com.codename1.ui.EncodedImage[] imgs = multi.getInternalImages();<NEW_LINE>for (int iter = 0; iter < dpis....
[x] = dpis[originalOffset];
363,873
public static void encodeCheckbox(FacesContext context, boolean checked, boolean partialSelected, boolean disabled, String styleClass) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String icon;<NEW_LINE>String boxClass = disabled ? HTML.CHECKBOX_BOX_CLASS + " ui-state-disab...
writeAttribute("class", boxClass, null);
807,389
public static void main(String[] args) throws Exception {<NEW_LINE>// String s = new String(FileUtil.readAll(new File("d:/tmp/sample-query2.sql")), "EUC_KR");<NEW_LINE>// new<NEW_LINE>String s = "select aa_1 ,( a - b) as b from tab";<NEW_LINE>// String(FileUtil.readAll(new<NEW_LINE>// File("d:/tmp/sample-query2.sql")...
println("PARAM: " + ec.param);
224,338
public void crossValidateSetSigma(GeneralDataset<L, F> dataset, int kfold, final Scorer<L> scorer, LineSearcher minimizer) {<NEW_LINE>logger.info("##in Cross Validate, folds = " + kfold);<NEW_LINE>logger.info("##Scorer is " + scorer);<NEW_LINE>featureIndex = dataset.featureIndex;<NEW_LINE>labelIndex = dataset.labelInde...
> trainSet = fold.first();
1,829,488
private void forEachReplicatedRecord(List keyRecordExpiry, MapContainer mapContainer, RecordStore recordStore, boolean populateIndexes, long nowInMillis) {<NEW_LINE>long ownedEntryCountOnThisNode = entryCountOnThisNode(mapContainer);<NEW_LINE>EvictionConfig evictionConfig = mapContainer.getMapConfig().getEvictionConfig...
&& evictionConfig.getMaxSizePolicy() == PER_NODE;
771,102
public void execute(JavaBasePlugin javaBasePlugin) {<NEW_LINE>final TaskProvider<GenerateEclipseClasspath> task = project.getTasks().register(ECLIPSE_CP_TASK_NAME, GenerateEclipseClasspath.class, model.getClasspath());<NEW_LINE>task.configure(new Action<GenerateEclipseClasspath>() {<NEW_LINE><NEW_LINE>@Override<NEW_LIN...
.class).getSourceSets());
1,599,242
public static void vertical9(Kernel1D_F64 kernel, GrayF64 src, GrayF64 dst) {<NEW_LINE>final double[] dataSrc = src.data;<NEW_LINE>final double[] dataDst = dst.data;<NEW_LINE>final double k1 = kernel.data[0];<NEW_LINE>final double k2 = kernel.data[1];<NEW_LINE>final double k3 = kernel.data[2];<NEW_LINE>final double k4 ...
(dataSrc[indexSrc]) * k9;
317,819
public TBigInteger divide(TBigInteger divisor) {<NEW_LINE>if (divisor.sign == 0) {<NEW_LINE>throw new ArithmeticException("BigInteger divide by zero");<NEW_LINE>}<NEW_LINE>int divisorSign = divisor.sign;<NEW_LINE>if (divisor.isOne()) {<NEW_LINE>return divisor.sign > 0 ? this : this.negate();<NEW_LINE>}<NEW_LINE>int thi...
.digits[0] & 0xFFFFFFFFL);
738,537
final DeletePermissionPolicyResult executeDeletePermissionPolicy(DeletePermissionPolicyRequest deletePermissionPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePermissionPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
invoke(request, responseHandler, executionContext);
1,448,160
public Pack read(DataInputX din) throws IOException {<NEW_LINE>DataInputX d = new <MASK><NEW_LINE>readInternal(d);<NEW_LINE>if (this.sqlTotalCnt > 0) {<NEW_LINE>this.sqlStats = new ArrayList<MapValue>((int) this.sqlTotalCnt);<NEW_LINE>MapValue value;<NEW_LINE>for (int i = 0; i < this.sqlTotalCnt; i++) {<NEW_LINE>value ...
DataInputX(din.readBlob());
1,273,314
private List<Call.CallDetail> buildServiceRelation(SearchBuilder sourceBuilder, String indexName, DetectPoint detectPoint) {<NEW_LINE>sourceBuilder.aggregation(Aggregation.terms(Metrics.ENTITY_ID).field(Metrics.ENTITY_ID).subAggregation(Aggregation.terms(ServiceRelationServerSideMetrics.COMPONENT_ID).field(ServiceRelat...
index, sourceBuilder.build());
1,640,557
public MappeableContainer xor(MappeableBitmapContainer value2) {<NEW_LINE>int newCardinality = 0;<NEW_LINE>if (BufferUtil.isBackedBySimpleArray(this.bitmap) && BufferUtil.isBackedBySimpleArray(value2.bitmap)) {<NEW_LINE>long[] b = this.bitmap.array();<NEW_LINE>long[] v2 = value2.bitmap.array();<NEW_LINE>int len = this....
[k] ^ v2[k];
406,755
public InputWhitelistRule unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputWhitelistRule inputWhitelistRule = new InputWhitelistRule();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get...
String currentParentElement = context.getCurrentParentElement();
511,885
public com.amazonaws.services.codecommit.model.ApprovalRuleNameRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.ApprovalRuleNameRequiredException approvalRuleNameRequiredException = new com.amazonaws.services.codecommit.model.Ap...
JsonToken token = context.getCurrentToken();
1,746,489
protected void initConfigs() {<NEW_LINE>jobName = System.getenv(Constants.JOB_NAME);<NEW_LINE>appIdString = <MASK><NEW_LINE>taskIndex = Integer.parseInt(System.getenv(Constants.TASK_INDEX));<NEW_LINE>numTasks = Integer.parseInt(System.getenv(Constants.TASK_NUM));<NEW_LINE>taskId = jobName + ":" + taskIndex;<NEW_LINE>LO...
System.getenv(Constants.APPID);
1,777,695
private static <T> void checkTemplateContracts(CtClass<T> c) {<NEW_LINE>for (CtField f : c.getFields()) {<NEW_LINE>Parameter templateParamAnnotation = f.getAnnotation(Parameter.class);<NEW_LINE>if (templateParamAnnotation != null && !templateParamAnnotation.value().isEmpty()) {<NEW_LINE>String proxyName = templateParam...
throw new TemplateException("proxy template parameter must be typed as String or CtTypeReference, but it is " + fieldTypeQName);
517,395
public static TagUrn createFromUrn(Urn urn) throws URISyntaxException {<NEW_LINE>if (!"li".equals(urn.getNamespace())) {<NEW_LINE>throw new URISyntaxException(urn.toString(), "Urn namespace type should be 'li'.");<NEW_LINE>} else if (!ENTITY_TYPE.equals(urn.getEntityType())) {<NEW_LINE>throw new URISyntaxException(urn....
TupleKey key = urn.getEntityKey();
618,735
public void encodeTbody(FacesContext context, TreeTable tt, TreeNode root, boolean dataOnly) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = tt.getClientId(context);<NEW_LINE>boolean empty = (root == null || root.getChildCount() == 0);<NEW_LINE>UIComponent e...
"class", TreeTable.EMPTY_MESSAGE_ROW_CLASS, null);
1,147,377
public void processKeyEvent(KeyEvent evt) {<NEW_LINE>if (evt.getID() == KeyEvent.KEY_TYPED) {<NEW_LINE><MASK><NEW_LINE>JTextComponent component = (JTextComponent) evt.getSource();<NEW_LINE>if (confirmChars == null) {<NEW_LINE>confirmChars = getConfirmChars(component);<NEW_LINE>}<NEW_LINE>if (confirmChars.indexOf(c) != ...
char c = evt.getKeyChar();
1,846,280
private void renewExpiration() {<NEW_LINE>timeoutTask = commandExecutor.getConnectionManager().newTimeout(t -> {<NEW_LINE>RFuture<Boolean> future = commandExecutor.evalWriteAsync(getRawName(), StringCodec.INSTANCE, RedisCommands.EVAL_BOOLEAN, "if redis.call('zscore', KEYS[1], ARGV[2]) == false then " + "return 0; " + "...
getRawName() + " expiration time", e);
466,516
public String WSTXLPS09FVT(String test) {<NEW_LINE>XAResourceImpl.clear();<NEW_LINE>final ExtendedTransactionManager TM = TransactionManagerFactory.getTransactionManager();<NEW_LINE>boolean result1 = false, result2 = false, result3 = false, result4 = false, result5 = false;<NEW_LINE>try {<NEW_LINE>final Serializable xa...
xaResInfo3 = XAResourceInfoFactory.getXAResourceInfo(2);
1,297,399
public RenderableNode parse(Token token, Parser parser) {<NEW_LINE>TokenStream stream = parser.getStream();<NEW_LINE>int lineNumber = token.getLineNumber();<NEW_LINE>// skip the 'filter' token<NEW_LINE>stream.next();<NEW_LINE>List<Expression<?>> filterInvocationExpressions = new ArrayList<>();<NEW_LINE>filterInvocation...
getExpressionParser().parseFilterInvocationExpression());
1,034,591
private int sortTriangles(int l, int r, float split, int axis) {<NEW_LINE>int pivot = l;<NEW_LINE>int j = r;<NEW_LINE><MASK><NEW_LINE>Vector3f v1 = vars.vect1, v2 = vars.vect2, v3 = vars.vect3;<NEW_LINE>while (pivot <= j) {<NEW_LINE>getTriangle(pivot, v1, v2, v3);<NEW_LINE>v1.addLocal(v2).addLocal(v3).multLocal(FastMat...
TempVars vars = TempVars.get();
584,456
public void updatePreferences() {<NEW_LINE>Matcher matcher = ID_PREFIX_PATTERN.matcher(policy.getIdPrefix());<NEW_LINE>if (!matcher.matches()) {<NEW_LINE>logger.warn("[IdRanges] Cannot process prefix {}", policy.getIdPrefix());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.info("[IdRanges] Setting id digit count to {}", ...
setAutoIDDigitCount(policy.getIdDigitCount());
890,979
private static OperandTreeNode createNewOperand(final INaviModule module, final ICodeNodeProvider dataset) throws ParserException {<NEW_LINE>final <MASK><NEW_LINE>final int type = dataset.getExpressionTreeType();<NEW_LINE>final String value = getValue(dataset, type);<NEW_LINE>final Integer parentId = dataset.getParentI...
int expressionId = dataset.getExpressionTreeId();
1,712,113
private List<VariantContext> referenceModelForNoVariation(final AssemblyRegion region) {<NEW_LINE>// don't correct overlapping base qualities because we did that upstream<NEW_LINE>// take off soft clips and low Q tails before we calculate likelihoods<NEW_LINE>AssemblyBasedCallerUtils.finalizeRegion(region, false, true,...
header, samplesList, false, false);
1,764,582
public void apply(MovieBox mov) {<NEW_LINE>TrakBox vt = mov.getVideoTrack();<NEW_LINE>vt.setPAR(newPAR);<NEW_LINE>Box box = NodeBox.findFirstPath(vt, SampleDescriptionBox.class, Box.path("mdia.minf.stbl.stsd")).getBoxes().get(0);<NEW_LINE>if (box != null && (box instanceof VideoSampleEntry)) {<NEW_LINE>VideoSampleEntry...
new Size(displayWidth, codedHeight));
71,835
public static long round(double a) {<NEW_LINE>long longBits = Double.doubleToRawLongBits(a);<NEW_LINE>long biasedExp = (longBits & DoubleConsts.EXP_BIT_MASK) ><MASK><NEW_LINE>long shift = (DoubleConsts.SIGNIFICAND_WIDTH - 2 + DoubleConsts.EXP_BIAS) - biasedExp;<NEW_LINE>if ((shift & -64) == 0) {<NEW_LINE>// shift >= 0 ...
> (DoubleConsts.SIGNIFICAND_WIDTH - 1);
1,782,369
private static void mapFireAndForget(FireAndForgetClause fireAndForgetClause, StatementSpecRaw raw, StatementSpecMapContext mapContext) {<NEW_LINE>if (fireAndForgetClause instanceof FireAndForgetDelete) {<NEW_LINE>raw.setFireAndForgetSpec(new FireAndForgetSpecDelete());<NEW_LINE>} else if (fireAndForgetClause instanceo...
pair.getValue(), mapContext);
19,450
public void handle(PCmdRequest request, ProfilerCommandServiceGrpc.ProfilerCommandServiceStub profilerCommandServiceStub) {<NEW_LINE>logger.info("simpleCommandService:{}", request);<NEW_LINE>PCmdActiveThreadDump commandActiveThreadDump = request.getCommandActiveThreadDump();<NEW_LINE>PCmdActiveThreadDumpRes.Builder bui...
getType().name());
429,423
public ImmutableList<I_C_BP_SupplierApproval> retrieveBPSupplierApprovalsAboutToExpire(final int maxMonthsUntilExpirationDate) {<NEW_LINE>final <MASK><NEW_LINE>final LocalDate maxExpirationDate = today.plusMonths(maxMonthsUntilExpirationDate);<NEW_LINE>final IQueryFilter<I_C_BP_SupplierApproval> filterThreeYears = quer...
LocalDate today = SystemTime.asLocalDate();
969,302
public void run(WorkingCopy workingCopy) throws Exception {<NEW_LINE>boolean changed = false;<NEW_LINE>workingCopy.toPhase(Phase.RESOLVED);<NEW_LINE>TreeMaker make = workingCopy.getTreeMaker();<NEW_LINE>CompilationUnitTree cut = workingCopy.getCompilationUnit();<NEW_LINE>CompilationUnitTree copy = cut;<NEW_LINE>if (!fo...
workingCopy.rewrite(cut, copy);
1,626,180
public void generateCode(ClassFile classFile) {<NEW_LINE>classFile.generateMethodInfoHeader(this.binding);<NEW_LINE>int methodAttributeOffset = classFile.contentsOffset;<NEW_LINE>int attributeNumber = classFile.generateMethodInfoAttributes(this.binding);<NEW_LINE>if ((!this.binding.isNative()) && (!this.binding.isAbstr...
.arguments[i].binding);
1,255,007
public void evaluateCodeSnippet(String codeSnippet, String[] localVariableTypeNames, String[] localVariableNames, int[] localVariableModifiers, IType declaringType, boolean isStatic, boolean isConstructorCall, ICodeSnippetRequestor requestor, IProgressMonitor progressMonitor) throws org.eclipse.jdt.core.JavaModelExcept...
CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.IGNORE);
474,070
public CorrelationAnalysisSolution run(Relation<V> relation) {<NEW_LINE>if (LOG.isVerbose()) {<NEW_LINE>LOG.verbose("retrieving database objects...");<NEW_LINE>}<NEW_LINE>Centroid centroid = Centroid.make(relation, relation.getDBIDs());<NEW_LINE>NumberVector.Factory<V> factory = RelationUtil.getNumberVectorFactory(rela...
), sampleSize, RandomFactory.DEFAULT);
358,833
public ScimGroupExternalMember unmapExternalGroup(final String groupId, final String externalGroup, final String origin, final String zoneId) throws ScimResourceNotFoundException {<NEW_LINE>ScimGroup group = scimGroupProvisioning.retrieve(groupId, zoneId);<NEW_LINE>ScimGroupExternalMember result = getExternalGroupMap(g...
+ count, new SQLException());
1,344,750
private void drawOutline(MatrixStack matrixStack, int x1, int x2, int y1, int y2) {<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>float[] acColor = gui.getAcColor();<NEW_LINE>RenderSystem.setShaderColor(acColor[0...
y2, 0).next();
1,661,199
public void marshall(KnowledgeBaseData knowledgeBaseData, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (knowledgeBaseData == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(knowledgeBaseData.getDescription(...
knowledgeBaseData.getTags(), TAGS_BINDING);
107,221
static ImmutableSet<Instrument> provideInstruments(CaliperOptions options, final CaliperConfig config, Map<Class<? extends Instrument>, Provider<Instrument>> availableInstruments, ImmutableSet<VmType> vmTypes, @Stderr PrintWriter stderr) throws InvalidCommandException {<NEW_LINE>ImmutableSet.Builder<Instrument> builder...
instrumentProvider = availableInstruments.get(clazz);
775,374
public static void main(String[] args) {<NEW_LINE>BloomFilter b = new BloomFilter(15);<NEW_LINE>System.out.println("FNV hash of 'hello' = " + BloomFilter.fnv("hello".getBytes()) % b.bitvector.length);<NEW_LINE>System.out.println("FNV-1a hash of 'hello' = " + BloomFilter.fnv1a("hello".getBytes()) % b.bitvector.length);<...
check(() -> "helloWorld"));
72,904
protected void performNestedSearch(String userDn, String username, Set<GrantedAuthority> authorities, int depth) {<NEW_LINE>if (depth == 0) {<NEW_LINE>// back out of recursion<NEW_LINE>logger.debug("Search aborted, max depth reached," + " for roles for user '" + username + "', DN = " + "'" + userDn + "', with filter " ...
(SpringSecurityLdapTemplate.DN_KEY)[0];
852,727
public static NewInstanceResult newInstance(@NonNull final Context context, @NonNull final ReportInfo reportInfo) {<NEW_LINE>long size = DataUtils.getSerializedSize(reportInfo);<NEW_LINE>if (size > DataUtils.TRANSACTION_SIZE_LIMIT_IN_BYTES) {<NEW_LINE>String reportInfoDirectoryPath = getReportInfoDirectoryPath(context)...
.getMinimalErrorString(error), true);
1,601,716
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean canGetClassFileVersion(com.sun.jdi.VirtualMachine a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugg...
new Object[] { a });
283,772
public static void main(String[] args) throws Exception {<NEW_LINE>LOG.info("------------program params-------------------------");<NEW_LINE>Arrays.stream(args).forEach(arg -> LOG.info("{}", arg));<NEW_LINE>LOG.info("-------------------------------------------");<NEW_LINE>Options options = new OptionParser(args).getOpt...
parseConf(options.getConfProp());
1,514,951
private VirtualRouterVmInventory findVirtualRouterVm(String lbUuid, List<String> vmNics) {<NEW_LINE>if (vmNics.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<VirtualRouterVmVO> vrs = getAllVirtualRouters(lbUuid);<NEW_LINE>if (LoadBalancerSystemTags.SEPARATE_VR.hasTag(lbUuid)) {<NEW_LINE>Optional<VirtualRou...
Collectors.toList())));
1,593,827
private static void updateErrorsInFile(@NonNull final Callback callback, @NonNull final FileObject root, @NonNull final FileObject file) {<NEW_LINE>final List<Task> tasks = new ArrayList<Task>();<NEW_LINE>for (WhiteListIndex.Problem problem : WhiteListIndex.getDefault().getWhiteListViolations(root, file)) {<NEW_LINE>fi...
callback.setTasks(file, tasks);
293,263
public Object doQuery(Object[] objs) {<NEW_LINE>try {<NEW_LINE>if (objs.length == 1) {<NEW_LINE>ArrayList<File> rFile = new ArrayList<File>();<NEW_LINE>ArrayList<File> rDir = new ArrayList<File>();<NEW_LINE>List<String> ls = new ArrayList<String>();<NEW_LINE>List<String> filters = ImUtils.getFilter(objs[0]);<NEW_LINE>S...
+ mm.getMessage("zipadd param error"));
454,163
private XmlTiers createXmlTiers(@NonNull final GarantType garantType) {<NEW_LINE>final XmlTiersBuilder xtiers = XmlTiers.builder();<NEW_LINE>xtiers.type(Tiers.GARANT);<NEW_LINE>xtiers.paymentPeriod(garantType.getPaymentPeriod());<NEW_LINE>xtiers.biller(createXmlBiller(garantType.getBiller()));<NEW_LINE>xtiers.provider(...
(garantType.getReferrer()));
1,719,391
protected void dynamicUpdateBrokerConfig(int podId, Admin ac, KafkaBrokerConfigurationDiff configurationDiff, KafkaBrokerLoggingConfigurationDiff logDiff) throws ForceableProblem, InterruptedException {<NEW_LINE>Map<ConfigResource, Collection<AlterConfigOp>> updatedConfig = new HashMap<>(2);<NEW_LINE>updatedConfig.put(...
reconciliation, "Altering broker configuration {} with {}", podId, updatedConfig);
933,674
private Set<T> findIn(File windowsKitDir, DiscoveryType discoveryType) {<NEW_LINE>Set<T> found = new LinkedHashSet<T>();<NEW_LINE>String[] versionDirs = getComponentVersionDirs(windowsKitDir);<NEW_LINE>for (String versionDir : versionDirs) {<NEW_LINE>VersionNumber version = VersionNumber.withPatchNumber().parse(version...
File(windowsKitDir, "bin/" + versionDir);
1,291,283
protected void onSelectedChanged(@Nullable EpoxyViewHolder viewHolder, int actionState) {<NEW_LINE><MASK><NEW_LINE>if (viewHolder != null) {<NEW_LINE>EpoxyModel<?> model = viewHolder.getModel();<NEW_LINE>if (!isTouchableModel(model)) {<NEW_LINE>throw new IllegalStateException("A model was selected that is not a valid t...
super.onSelectedChanged(viewHolder, actionState);
36,755
// testargumentContainsExceptionInTwoCallbackClasses<NEW_LINE>public void testargumentContainsExceptionInTwoCallbackClasses(String BASE_URL, StringBuilder sb) throws Exception {<NEW_LINE>Client client = ClientBuilder.newClient();<NEW_LINE>invokeClear(client, BASE_URL);<NEW_LINE>invokeReset(client, BASE_URL);<NEW_LINE>F...
.class.getName()));
1,065,317
public static DVSMacManagementPolicy createDVSMacManagementPolicy(Map<NetworkOffering.Detail, String> nicDetails) {<NEW_LINE>if (nicDetails == null) {<NEW_LINE>nicDetails = getDefaultSecurityDetails();<NEW_LINE>}<NEW_LINE>DVSMacManagementPolicy macManagementPolicy = new DVSMacManagementPolicy();<NEW_LINE>macManagementP...
Detail.ForgedTransmits, "false")));
85,968
public Model read(final Reader input, final Map<String, ?> options) throws IOException, ModelParseException {<NEW_LINE>assert manager != null;<NEW_LINE>Optional<File> optionalPomXml = getPomXmlFile(options);<NEW_LINE>if (optionalPomXml.isPresent()) {<NEW_LINE>File pom = optionalPomXml.get();<NEW_LINE>log.debug(pom.toSt...
reader = manager.getReaderFor(options);
157,135
public IStatus install(String packageName, String displayName, boolean global, char[] password, IPath workingDirectory, IProgressMonitor monitor) {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 10);<NEW_LINE>String globalPrefixPath = null;<NEW_LINE>try {<NEW_LINE>// If we are doing a global install we will fetc...
password, workingDirectory, sub, globalPrefixPath);
1,822,173
// obtains the data and calculates the grid of results<NEW_LINE>private static void calculate(CalculationRunner runner) {<NEW_LINE>// the trades that will have measures calculated<NEW_LINE>List<Trade> trades = createSwapTrades();<NEW_LINE>// the columns, specifying the measures to be calculated<NEW_LINE>List<Column> co...
reportTemplate = ExampleData.loadTradeReportTemplate("swap-report-template");
1,796,105
final CreateDatasetGroupResult executeCreateDatasetGroup(CreateDatasetGroupRequest createDatasetGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDatasetGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(createDatasetGroupRequest));
1,680,767
public static Ticker adaptTicker(CurrencyPair currencyPair, GateioTicker gateioTicker) {<NEW_LINE>BigDecimal ask = gateioTicker.getLowestAsk();<NEW_LINE>BigDecimal bid = gateioTicker.getHighestBid();<NEW_LINE>BigDecimal last = gateioTicker.getLast();<NEW_LINE>BigDecimal low = gateioTicker.getLow24hr();<NEW_LINE>BigDeci...
BigDecimal percentageChange = gateioTicker.getPercentChange();
777,726
public void initialise() {<NEW_LINE><MASK><NEW_LINE>// TODO: Remove this screen when AutoConfig UI is in place<NEW_LINE>UISlider sound = find("sound", UISlider.class);<NEW_LINE>if (sound != null) {<NEW_LINE>sound.setIncrement(0.05f);<NEW_LINE>sound.setPrecision(2);<NEW_LINE>sound.setMinimum(0);<NEW_LINE>sound.setRange(...
setAnimationSystem(MenuAnimationSystems.createDefaultSwipeAnimation());
470,596
public static DescribeCdnDeletedDomainsResponse unmarshall(DescribeCdnDeletedDomainsResponse describeCdnDeletedDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCdnDeletedDomainsResponse.setRequestId(_ctx.stringValue("DescribeCdnDeletedDomainsResponse.RequestId"));<NEW_LINE>describeCdnDeletedDomainsResponse...
(_ctx.longValue("DescribeCdnDeletedDomainsResponse.PageNumber"));
860,563
public void loadModel(List<Row> modelRows) {<NEW_LINE>final XGBoostModelDataConverter xgBoostModelDataConverter = new XGBoostModelDataConverter();<NEW_LINE>xgBoostModelDataConverter.load(modelRows);<NEW_LINE>labels = xgBoostModelDataConverter.labels;<NEW_LINE>XGBoost xgBoost = XGBoostClassLoaderFactory.create(xgBoostCl...
findColIndicesWithAssertAndHint(getDataSchema(), featureCols);
1,716,243
public void finishedToExecuteTask(Queueable msg) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>StringBuffer buff = new StringBuffer();<NEW_LINE>buff.append("QId=");<NEW_LINE><MASK><NEW_LINE>buff.append(" Message = ");<NEW_LINE>buff.append(msg);<NEW_LINE>// buff.append("Queue size =");<NEW_LINE>// buff....
buff.append(getId());
1,110,681
public static void addOrUpdateRoleLDAPMappers(RealmModel realm, ComponentModel providerModel, LDAPGroupMapperMode mode) {<NEW_LINE>ComponentModel mapperModel = getSubcomponentByName(realm, providerModel, "realmRolesMapper");<NEW_LINE>if (mapperModel != null) {<NEW_LINE>mapperModel.getConfig().putSingle(RoleMapperConfig...
MODE, mode.toString());
1,612,708
final PutRecordResult executePutRecord(PutRecordRequest putRecordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putRecordRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,742,449
private T waitUntilScaled(final int count) {<NEW_LINE>final AtomicReference<Integer> replicasRef <MASK><NEW_LINE>final String name = checkName(getItem());<NEW_LINE>final String namespace = checkNamespace(getItem());<NEW_LINE>try {<NEW_LINE>return waitUntilCondition(t -> {<NEW_LINE>// If the resource is gone, we shouldn...
= new AtomicReference<>(0);
1,159,539
public void marshall(TranscriptionJob transcriptionJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (transcriptionJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(transcriptionJob.getTranscriptionJob...
transcriptionJob.getCompletionTime(), COMPLETIONTIME_BINDING);
669,684
protected boolean receiveAndExecute(Object invoker, @Nullable Session session, @Nullable MessageConsumer consumer) throws JMSException {<NEW_LINE>if (this.transactionManager != null) {<NEW_LINE>// Execute receive within transaction.<NEW_LINE>TransactionStatus status = this.transactionManager.getTransaction(this.transac...
this.transactionManager.commit(status);
188,846
private static boolean decodePointVar(byte[] p, int pOff, boolean negate, PointExt r) {<NEW_LINE>byte[] py = copy(p, pOff, POINT_BYTES);<NEW_LINE>if (!checkPointVar(py)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int x_0 = (py[POINT_BYTES - 1<MASK><NEW_LINE>py[POINT_BYTES - 1] &= 0x7F;<NEW_LINE>F.decode(py, 0, r.y);<...
] & 0x80) >>> 7;
863,767
public synchronized void broadcast(INDArray array) {<NEW_LINE>if (array == null)<NEW_LINE>return;<NEW_LINE>Preconditions.checkArgument(!array.isView() || array.elementWiseStride() != 1, "View can't be used in DeviceLocalNDArray");<NEW_LINE>Nd4j.getExecutioner().commit();<NEW_LINE>val config = OpProfiler<MASK><NEW_LINE>...
.getInstance().getConfig();
503,260
public void evict(Object key) {<NEW_LINE>isNotNull(key, "key");<NEW_LINE>long startNanos = Timer.nanos();<NEW_LINE>V oldValue;<NEW_LINE>K marshalledKey = (K) marshall(key);<NEW_LINE>InternalReplicatedMapStorage<K, V> storage = getStorage();<NEW_LINE>ReplicatedRecord<K, V> current = storage.get(marshalledKey);<NEW_LINE>...
name, nodeEngine.getThisAddress());
1,687,860
public byte[] uncompress(final byte[] content, final int offset, final int length) {<NEW_LINE>try {<NEW_LINE>final ByteArrayInputStream memoryInputStream = new ByteArrayInputStream(content, offset, length);<NEW_LINE>// 16KB<NEW_LINE>final ZipInputStream gzipInputStream = new ZipInputStream(memoryInputStream);<NEW_LINE>...
] buffer = new byte[1024];
490,957
protected void translateObservableDataToView(Entity item) {<NEW_LINE>physicsComponent = item.getComponent(PhysicsBodyComponent.class);<NEW_LINE>viewComponent.setBodyType(physicsComponent.bodyType);<NEW_LINE>viewComponent.getMassField().setText(physicsComponent.mass + "");<NEW_LINE>viewComponent.getCenterOfMassXField()....
setText(physicsComponent.density + "");
1,804,006
protected void addAdditionalOperationHandlers() {<NEW_LINE>addOperationHandler(AddElementsFromHdfs.class, new AddElementsFromHdfsHandler());<NEW_LINE>addOperationHandler(GetElementsBetweenSets.class, new GetElementsBetweenSetsHandler());<NEW_LINE>addOperationHandler(GetElementsWithinSet.class, new GetElementsWithinSetH...
.class, new SummariseGroupOverRangesHandler());
1,507,438
private void assign_types_1_2() throws TypeException {<NEW_LINE>for (Iterator<Local> localIt = stmtBody.getLocals().iterator(); localIt.hasNext(); ) {<NEW_LINE>final Local local = localIt.next();<NEW_LINE>TypeVariable var = typeVariable(local);<NEW_LINE>if (var == null) {<NEW_LINE>local.setType(RefType.v("java.lang.Obj...
setType(NullType.v());
494,165
private void iterate(Platform platform, String[] registryNames, Registry registry, Product[] combination, int index, List<Product> products, int start) throws ManagerException {<NEW_LINE>for (int i = start; i < products.size(); i++) {<NEW_LINE>combination[index] = products.get(i);<NEW_LINE>if (index == combination.leng...
createBundle(platform, registryNames, components);
1,254,189
public Request<ListUserImportJobsRequest> marshall(ListUserImportJobsRequest listUserImportJobsRequest) {<NEW_LINE>if (listUserImportJobsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListUserImportJobsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListUserImportJobsRequest> r...
request.addHeader("Content-Type", "application/x-amz-json-1.1");
420,259
public static void main(String[] args) throws IOException, NoSuchAlgorithmException {<NEW_LINE>String buildName = "build-test";<NEW_LINE>String buildNumber = "2";<NEW_LINE>String artifactoryURL = "http://localhost:8081/artifactory";<NEW_LINE>// optional. Only used when deploying the actual artifacts (in addition to the...
format(new Date()));
504,424
public ApiResponse<String> eventsGet_0WithHttpInfo(DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'fromDate' is set<NEW_LINE>if (fromDate == null) {<NEW_LINE>throw new ApiException(...
("", "toDate", toDate));
1,048,246
public void run() {<NEW_LINE>setScalingOnce();<NEW_LINE>setStyle(ctx, styleAtDrawingCall);<NEW_LINE>double centerX = (int) (x * zoomFactor + width * zoomFactor / 2) + HALF_PX;<NEW_LINE>double centerY = (int) (y * zoomFactor + height * zoomFactor / 2) + HALF_PX;<NEW_LINE>ctx.save();<NEW_LINE>// translate the arc and don...
styleAtDrawingCall.getLineWidth() > 0);