idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,713,630
public Locale unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Locale locale = new Locale();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_...
String currentParentElement = context.getCurrentParentElement();
997,370
protected WebRtcServiceState handleOrientationChanged(@NonNull WebRtcServiceState currentState, boolean isLandscapeEnabled, int orientationDegrees) {<NEW_LINE>Camera camera = currentState.getVideoState().getCamera();<NEW_LINE>if (camera != null) {<NEW_LINE>camera.setOrientation(orientationDegrees);<NEW_LINE>}<NEW_LINE>...
= isLandscapeEnabled ? BroadcastVideoSink.DEVICE_ROTATION_IGNORE : orientationDegrees;
380,064
private void handleJMXPage(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws IOException {<NEW_LINE>final Page page = newPage(req, resp, session, "azkaban/webapp/servlet/velocity/jmxpage.vm");<NEW_LINE>page.add("mbeans", this.server.getMBeanRegistrationManager().getMBeanNames()...
executorMBeans = new HashMap<>();
939,515
private void transferDataToNode(int index, Object value) {<NEW_LINE>int nodeType = relatedNode.getNodeType();<NEW_LINE>switch(nodeType) {<NEW_LINE>case CommonTreeNode.PAGE_NODE:<NEW_LINE>((ProductPage) relatedNode.getUserObject()).setData(index, value);<NEW_LINE>break;<NEW_LINE>case CommonTreeNode.PLOT_NODE:<NEW_LINE>(...
).setData(index, value);
1,150,581
public static AssignRolesToUserResponse unmarshall(AssignRolesToUserResponse assignRolesToUserResponse, UnmarshallerContext context) {<NEW_LINE>assignRolesToUserResponse.setRequestId(context.stringValue("AssignRolesToUserResponse.RequestId"));<NEW_LINE>assignRolesToUserResponse.setSuccess(context.booleanValue("AssignRo...
("AssignRolesToUserResponse.User.Roles[" + i + "].InstanceId"));
137,538
public DescribePatchGroupsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribePatchGroupsResult describePatchGroupsResult = new DescribePatchGroupsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
3,503
public void preprocessOpenAPI(OpenAPI openAPI) {<NEW_LINE>super.preprocessOpenAPI(openAPI);<NEW_LINE>if (openAPI.getInfo() != null) {<NEW_LINE><MASK><NEW_LINE>if (StringUtils.isBlank(jsProjectName) && info.getTitle() != null) {<NEW_LINE>// when jsProjectName is not specified, generate it from info.title<NEW_LINE>jsProj...
Info info = openAPI.getInfo();
330,488
private void processEJBModulePersistenceXml(JPAApplInfo applInfo, ContainerInfo module, ClassLoader appClassloader) {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "processEJBModulePersistenceXml : " + applInfo.getApplName()...
String archiveName = module.getName();
1,231,355
public Events queryEvents(List<EventQueryCondition> conditionList) throws Exception {<NEW_LINE>// This method maybe have poor efficiency. It queries all data which meets a condition without select function.<NEW_LINE>// https://github.com/apache/iotdb/discussions/3888<NEW_LINE>StringBuilder query = new StringBuilder();<...
.DES : condition.getOrder();
1,846,366
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {<NEW_LINE>for (Callback c : callbacks) {<NEW_LINE>if (c instanceof NameCallback) {<NEW_LINE>LOG.debug("name callback");<NEW_LINE>} else if (c instanceof PasswordCallback) {<NEW_LINE>LOG.debug("password callback");<NEW_LINE>LOG.wa...
" 'kinit -k -t <keytab> <princ>' (where <princ> is the name of the Kerberos principal, and" + " <keytab> is the location of the keytab file). After manually refreshing your cache," + " restart this client. If you continue to see this message after manually refreshing" + " your cache, ensure that your KDC host's clock i...
1,164,190
public static void convert(InterleavedS8 input, InterleavedI8 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>final int N = input.width * input.getNumBands();<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_L...
input.getIndex(0, y);
1,285,132
protected void internalDeleteTenantForcefully(AsyncResponse asyncResponse, String tenant) {<NEW_LINE>if (!pulsar().getConfiguration().isForceDeleteTenantAllowed()) {<NEW_LINE>asyncResponse.resume(new RestException(Status.METHOD_NOT_ALLOWED, "Broker doesn't allow forced deletion of tenants"));<NEW_LINE>return;<NEW_LINE>...
clientAppId(), namespaces, e);
784,570
public void enableWaypointType(int type, boolean enable) {<NEW_LINE>// An item will be displayed in the Waypoint list if either "Show..." or "Announce..." is selected for it in the Navigation settings<NEW_LINE>// Keep both "Show..." and "Announce..." Nav settings in sync when user changes what to display in the Waypoin...
).SHOW_WPT.set(enable);
1,748,281
public void run(WorkingCopy workingCopy) throws Exception {<NEW_LINE>workingCopy.toPhase(Phase.RESOLVED);<NEW_LINE>CompilationUnitTree tree = workingCopy.getCompilationUnit();<NEW_LINE>TreeMaker maker = workingCopy.getTreeMaker();<NEW_LINE>ExpressionTree exceptionTree = // NOI18N<NEW_LINE>JavaSourceHelper.// NOI18N<NEW...
maker.addClassMember(classTree, methodTree);
1,746,560
private static int dbInstanceUrlCheck(String stmt, int offset) throws SQLSyntaxErrorException {<NEW_LINE>if (stmt.length() > offset + 11) {<NEW_LINE>char c2 = stmt.charAt(++offset);<NEW_LINE>char c3 = stmt.charAt(++offset);<NEW_LINE>char c4 = stmt.charAt(++offset);<NEW_LINE>char c5 = stmt.charAt(++offset);<NEW_LINE>cha...
= stmt.charAt(++offset);
1,100,730
public void repair(final OrientBaseGraph graph, final OCommandOutputListener outputListener, final Map<String, List<String>> options) {<NEW_LINE>message(outputListener, "Repair of graph '" + graph.getRawGraph().getURL() + "' is started ...\n");<NEW_LINE>final long beginTime = System.currentTimeMillis();<NEW_LINE>final ...
stats, outputListener, options, false);
1,516,580
public GetSagemakerServicecatalogPortfolioStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetSagemakerServicecatalogPortfolioStatusResult getSagemakerServicecatalogPortfolioStatusResult = new GetSagemakerServicecatalogPortfolioStatusResult();<NEW_LINE>int originalDepth = context.get...
JsonToken token = context.getCurrentToken();
1,709,344
public static ListTLSCipherPoliciesResponse unmarshall(ListTLSCipherPoliciesResponse listTLSCipherPoliciesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTLSCipherPoliciesResponse.setRequestId(_ctx.stringValue("ListTLSCipherPoliciesResponse.RequestId"));<NEW_LINE>listTLSCipherPoliciesResponse.setNextToken<MASK><NEW_...
(_ctx.stringValue("ListTLSCipherPoliciesResponse.NextToken"));
1,245,863
public boolean onPreferenceChange(Preference preference, Object newValue) {<NEW_LINE>Statistics.INSTANCE.trackEvent(Statistics.EventName.Settings.VOICE_ENABLED, Statistics.params().add(Statistics.EventParam.ENABLED, newValue.toString()));<NEW_LINE>Preference root = findPreference(getString<MASK><NEW_LINE>boolean set = ...
(R.string.pref_tts_screen));
1,672,203
public static KeyValuePart[] splitIntFloatVector(MatrixMeta matrixMeta, IntFloatVector vector) {<NEW_LINE>IntFloatVectorStorage storage = vector.getStorage();<NEW_LINE>if (storage.isSparse()) {<NEW_LINE>// Get keys and values<NEW_LINE>IntFloatSparseVectorStorage sparseStorage = (IntFloatSparseVectorStorage) storage;<NE...
] values = sortStorage.getValues();
1,241,401
public boolean handleMessage(@NonNull Message message) {<NEW_LINE>Log.d(TAG, "Handle message: " + message.what);<NEW_LINE>switch(message.what) {<NEW_LINE>case START_CLIENT:<NEW_LINE>startWifiDirect();<NEW_LINE>break;<NEW_LINE>case STOP_CLIENT:<NEW_LINE>shutdown();<NEW_LINE>break;<NEW_LINE>case START_NETWORK_CLIENT:<NEW...
((String) message.obj);
289,599
public JMethod overrideAnnotatedMethod(ExecutableElement executableElement, GeneratedClassHolder holder) {<NEW_LINE>TypeMirror annotatedClass = holder.getAnnotatedElement().asType();<NEW_LINE>DeclaredType baseClass = (DeclaredType) executableElement.getEnclosingElement().asType();<NEW_LINE>Types typeUtils = environment...
bounds, typeDeclaration.getKey());
1,334,195
public void marshall(S3DestinationUpdate s3DestinationUpdate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (s3DestinationUpdate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(s3DestinationUpdate.getRole...
s3DestinationUpdate.getCompressionFormat(), COMPRESSIONFORMAT_BINDING);
646,039
private void extractSearchIndexParametersForContainedResources(RequestDetails theRequestDetails, ResourceIndexedSearchParams theParams, IBaseResource theResource, ResourceTable theEntity, Collection<IBaseResource> theContainedResources, Collection<IBaseResource> theAlreadySeenResources) {<NEW_LINE>// 2. Find referenced...
= new HashSet<>(theAlreadySeenResources);
42,713
public void render(OWLOntology o, PrintWriter _w) throws OWLRendererException {<NEW_LINE>try {<NEW_LINE>LatexWriter w = new LatexWriter(_w);<NEW_LINE>w.write("\\documentclass{article}\n");<NEW_LINE>w.write("\\usepackage{breqn}\n");<NEW_LINE>w.write("\\parskip 0pt\n");<NEW_LINE>w.write("\\parindent 0pt\n");<NEW_LINE>w.w...
.axioms(prop))));
1,788,887
void initialize(World world, Injector injector, AspectSubscriptionManager asm) {<NEW_LINE>if (invocationStrategy == null)<NEW_LINE>invocationStrategy = new InvocationStrategy();<NEW_LINE>invocationStrategy.setWorld(world);<NEW_LINE>world.invocationStrategy = invocationStrategy;<NEW_LINE>systems.set(COMPONENT_MANAGER_ID...
systems.set(ASPECT_SUBSCRIPTION_MANAGER_IDX, asm);
445,145
public static void passiveTDAgentDemo() {<NEW_LINE>System.out.println("======================");<NEW_LINE>System.out.println("DEMO: Passive-TD-Agent");<NEW_LINE>System.out.println("======================");<NEW_LINE>System.out.println("Figure 21.5");<NEW_LINE>System.out.println("-----------");<NEW_LINE>CellWorld<Double...
, 3), CellWorldAction.Right);
1,425,627
public List<HistoricProcessInstance> findHistoricProcessInstancesAndVariablesByQueryCriteria(HistoricProcessInstanceQueryImpl historicProcessInstanceQuery) {<NEW_LINE>// paging doesn't work for combining process instances and variables<NEW_LINE>// due to an outer join, so doing it in-memory<NEW_LINE>if (historicProcess...
instanceList.size() - firstResult);
454,050
private Map<String, LoadBalancerStrategyFactory<?>> createDefaultLoadBalancerStrategyFactories() {<NEW_LINE>final Map<String, LoadBalancerStrategyFactory<? extends LoadBalancerStrategy>> loadBalancerStrategyFactories = new HashMap<>(_config.loadBalancerStrategyFactories);<NEW_LINE>final RandomLoadBalancerStrategyFactor...
loadBalancerStrategyFactories.putIfAbsent("degraderV2_1", degraderStrategyFactoryV3);
1,540,994
public View onCreateView(LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) {<NEW_LINE>View view = layoutInflater.inflate(R.layout.cat_toc_fragment, viewGroup, false);<NEW_LINE>Toolbar toolbar = view.<MASK><NEW_LINE>AppCompatActivity activity = (AppCompatActivity) getActivity();<NEW_...
findViewById(R.id.toolbar);
1,793,420
public MethodAndImports generateMethodAndImports() {<NEW_LINE>Set<FullyQualifiedJavaType> imports = new HashSet<>();<NEW_LINE>FullyQualifiedJavaType parameterType = new // $NON-NLS-1$<NEW_LINE>FullyQualifiedJavaType("org.mybatis.dynamic.sql.select.CountDSLCompleter");<NEW_LINE>imports.add(parameterType);<NEW_LINE>// $N...
addGeneralMethodAnnotation(method, introspectedTable, imports);
358,637
public List<Candidate> retrieveCandidates(StaffHeader.Range range, KeyRoi roi, List<KeyPeak> peaks, Set<Shape> shapes) {<NEW_LINE><MASK><NEW_LINE>// Key-signature area pixels<NEW_LINE>ByteProcessor keyBuf = roi.getAreaPixels(staffFreeSource, range);<NEW_LINE>RunTable runTable = new RunTableFactory(VERTICAL).createTable...
logger.debug("retrieveCandidates for staff#{}", id);
184,704
public static void testConnection(final Window parent, final CDatabaseConfiguration configuration) {<NEW_LINE>// ESCA-JAVA0166: Catching Exception here is OK because we show<NEW_LINE>// the same error message no matter what exception happened.<NEW_LINE>try {<NEW_LINE>connect(configuration).closeConnection();<NEW_LINE>C...
CDatabaseCreator.createDatabase(parent, configuration);
1,191,116
public static TFE_Context createEagerSession(boolean async, int devicePlacementPolicy, ConfigProto config) {<NEW_LINE>try (PointerScope ignored = new PointerScope()) {<NEW_LINE><MASK><NEW_LINE>TF_Status status = TF_Status.newStatus();<NEW_LINE>if (config != null) {<NEW_LINE>BytePointer configBytes = new BytePointer(con...
TFE_ContextOptions opts = TFE_ContextOptions.newContextOptions();
1,418,798
private void copyStructArgumentsToFrame(List<LLVMStatementNode> initializers, NodeFactory nodeFactory, int slot, int argIndex, PointerType topLevelPointerType, Type currentType, ArrayDeque<Long> indices) {<NEW_LINE>if (currentType instanceof StructureType || currentType instanceof ArrayType) {<NEW_LINE>AggregateType t ...
createStore(targetAddress, sourceLoadNode, currentType);
114,434
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,467,443
public org.python.Object __le__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Tuple) {<NEW_LINE>org.python.types.Tuple otherTuple = (org.python.types.Tuple) other;<NEW_LINE>int size = this.value.size();<NEW_LINE>int otherSize = otherTuple.value.size();<NEW_LINE>int count = <MASK><NEW_LINE>//...
Math.min(size, otherSize);
1,138,200
private static String readLineOptimized(ByteBuf undecodedChunk, Charset charset) {<NEW_LINE>int readerIndex = undecodedChunk.readerIndex();<NEW_LINE>ByteBuf line = null;<NEW_LINE>try {<NEW_LINE>if (undecodedChunk.isReadable()) {<NEW_LINE>int posLfOrCrLf = QuarkusHttpPostBodyUtil.findLineBreak(undecodedChunk, undecodedC...
line.writeBytes(undecodedChunk, posLfOrCrLf);
1,446,133
public PortableIpRangeVO doInTransaction(final TransactionStatus status) {<NEW_LINE>PortableIpRangeVO portableIpRange = new PortableIpRangeVO(regionId, vlanIdFinal, gateway, netmask, startIP, endIP);<NEW_LINE>portableIpRange = _portableIpRangeDao.persist(portableIpRange);<NEW_LINE>long startIpLong = NetUtils.ip2Long(st...
, NetUtils.long2Ip(startIpLong));
1,782,846
final DeleteNetworkInsightsAccessScopeAnalysisResult executeDeleteNetworkInsightsAccessScopeAnalysis(DeleteNetworkInsightsAccessScopeAnalysisRequest deleteNetworkInsightsAccessScopeAnalysisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNetworkInsightsAccessScopeAnalysisRequest);<NE...
(super.beforeMarshalling(deleteNetworkInsightsAccessScopeAnalysisRequest));
563,029
private Mono<Response<Flux<ByteBuffer>>> stopWithResponseAsync(String resourceGroupName, String networkWatcherName, String connectionMonitorName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required ...
error(new IllegalArgumentException("Parameter connectionMonitorName is required and cannot be null."));
1,070,358
final ImportApiKeysResult executeImportApiKeys(ImportApiKeysRequest importApiKeysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importApiKeysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
112,575
private OQueryOperator extractConditionOperator() {<NEW_LINE>if (!parserSkipWhiteSpaces())<NEW_LINE>// END OF PARSING: JUST RETURN<NEW_LINE>return null;<NEW_LINE>if (parserGetCurrentChar() == ')')<NEW_LINE>// FOUND ')': JUST RETURN<NEW_LINE>return null;<NEW_LINE>final OQueryOperator[] operators = OSQLEngine.getInstance...
paramBeginPos, -1, params));
620,591
public static DescribeSecurityGroupsResponse unmarshall(DescribeSecurityGroupsResponse describeSecurityGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSecurityGroupsResponse.setRequestId(_ctx.stringValue("DescribeSecurityGroupsResponse.RequestId"));<NEW_LINE>describeSecurityGroupsResponse.setPageSize(_ctx....
("DescribeSecurityGroupsResponse.SecurityGroups[" + i + "].SecurityGroupId"));
220,322
private void loadUsers() throws SQLException {<NEW_LINE>Connection c = ds.getConnection();<NEW_LINE>Statement statement = c.createStatement();<NEW_LINE>statement.execute("CREATE TABLE IF NOT EXISTS LOG(time TIMESTAMP AS CURRENT_TIMESTAMP NOT NULL, log CLOB);");<NEW_LINE>statement.execute("CREATE TABLE IF NOT EXISTS USE...
"INSERT INTO user_roles (user_id, username, ROLE)\n" + "VALUES (1, 'admin', 'ROLE_ADMIN');" + "INSERT INTO user_roles (user_id, username, ROLE)\n" + "VALUES (2, 'smith', 'ROLE_USER');");
1,426,016
final ListUseCasesResult executeListUseCases(ListUseCasesRequest listUseCasesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUseCasesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
invoke(request, responseHandler, executionContext);
670,250
private Pass createPassInner(ProgramBuilder builder, IdMap map, ProgramDirectives programDirectives, PackDirectives packDirectives) {<NEW_LINE>CommonUniforms.addCommonUniforms(builder, map, packDirectives, updateNotifier);<NEW_LINE>Supplier<ImmutableSet<Integer>> flipped = () -> isBeforeTranslucent ? flippedAfterPrepar...
addRenderTargetImages(builder, flipped, renderTargets);
948,483
private ResponseSpec testClientModelRequestCreation(Client client) throws WebClientResponseException {<NEW_LINE>Object postBody = client;<NEW_LINE>// verify the required parameter 'client' is set<NEW_LINE>if (client == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'client' when c...
HashMap<String, Object>();
376,109
public static Order adaptOrder(GeminiOrderStatusResponse geminiOrderStatusResponse) {<NEW_LINE>Long id = geminiOrderStatusResponse.getId();<NEW_LINE>CurrencyPair currencyPair = adaptCurrencyPair(geminiOrderStatusResponse.getSymbol());<NEW_LINE>BigDecimal averageExecutionPrice = geminiOrderStatusResponse.getAvgExecution...
orderStatus, geminiOrderStatusResponse.getClientOrderId());
562,060
@Produces(MediaType.TEXT_PLAIN)<NEW_LINE>public String cancelQuery(@PathParam("queryid") String queryId) {<NEW_LINE>QueryId <MASK><NEW_LINE>// Prevent XSS<NEW_LINE>String encodedQueryID = forHtml(queryId);<NEW_LINE>// first check local running<NEW_LINE>if (work.getBee().cancelForeman(id, principal)) {<NEW_LINE>return S...
id = QueryIdHelper.getQueryIdFromString(queryId);
1,670,395
protected void style(final TextPresentation textPresentation, final boolean merge, final Representation rep) {<NEW_LINE>if (!isRoot()) {<NEW_LINE><MASK><NEW_LINE>// IRegion<NEW_LINE>rs.start = region.getOffset();<NEW_LINE>rs.length = region.getLength();<NEW_LINE>// Background Color<NEW_LINE>rs.background = rep.getColor...
final StyleRange rs = new StyleRange();
1,377,997
public static void drawCheckmark(Canvas canvas, RectF targetFrame, ResizingBehavior resizing, int checkmarkColor, float percentage) {<NEW_LINE>// General Declarations<NEW_LINE>Paint paint = CacheForCheckmark.paint;<NEW_LINE>// Local Variables<NEW_LINE>float checkmarkVisibility = percentage * 20f;<NEW_LINE>// Resize to ...
resizedFrame.left, resizedFrame.top);
1,270,464
private void completeIt_ActivityControl() {<NEW_LINE>final IPPOrderRoutingRepository orderRoutingsRepo = Services.get(IPPOrderRoutingRepository.class);<NEW_LINE>final IPPCostCollectorBL costCollectorBL = Services.get(IPPCostCollectorBL.class);<NEW_LINE>if (isReversal()) {<NEW_LINE>// NOTE: not allowing to reverse an ac...
orderRouting.getActivityById(getActivityId());
739,011
private void printTaskAttribute(StyledTextOutput output, String attributeHeader, List<Task> tasks, Transformer<String, Task> transformer) {<NEW_LINE>int count = collect(tasks, new HashSet<>(), transformer).size();<NEW_LINE>final LinePrefixingStyledTextOutput attributeOutput = createIndentedOutput(output, INDENT);<NEW_L...
value = transformer.transform(task);
1,119,598
public static void init() throws SlickException, FontFormatException, IOException {<NEW_LINE>float fontBase <MASK><NEW_LINE>Font javaFontMain = Font.createFont(Font.TRUETYPE_FONT, ResourceLoader.getResourceAsStream(Options.FONT_MAIN));<NEW_LINE>Font javaFontBold = Font.createFont(Font.TRUETYPE_FONT, ResourceLoader.getR...
= 12f * GameImage.getUIscale();
375,775
public void onSaveInstanceState(Bundle outState) {<NEW_LINE>logDebug("onSaveInstance");<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>outState.putLong("idChat", idChat);<NEW_LINE>outState.putLong("selectedMessageId", selectedMessageId);<NEW_LINE>outState.putInt("selectedPosition", selectedPosition);<NEW_LINE>o...
outState.putLong(GENERAL_UNREAD_COUNT, generalUnreadCount);
1,748,225
private void createSnowFlakes() {<NEW_LINE>Random rng = new Random();<NEW_LINE>snowFlakes.clear();<NEW_LINE>for (int i = 0; i < MAX_SNOW_FLAKES_COUNT; i++) {<NEW_LINE>float startX = rng.nextFloat() * surfaceWidth;<NEW_LINE>float startY = 0 - rng.nextFloat() * surfaceHeight;<NEW_LINE>int snowFlakeShapeIndex = rng.nextIn...
() + rng.nextFloat();
1,089,456
public void fillOval(int x, int y, int width, int height) {<NEW_LINE>DebugGraphicsInfo info = info();<NEW_LINE>if (debugLog()) {<NEW_LINE>info().log(toShortString() + " Filling oval: " + new Rectangle(x, y, width, height));<NEW_LINE>}<NEW_LINE>if (isDrawingBuffer()) {<NEW_LINE>if (debugBuffered()) {<NEW_LINE>Graphics d...
x, y, width, height);
115,654
private void annotateMatched(List<CoreLabel> tokens) {<NEW_LINE>List<SequenceMatchResult<CoreMap>> matched = multiPatternMatcher.findNonOverlapping(tokens);<NEW_LINE>for (SequenceMatchResult<CoreMap> m : matched) {<NEW_LINE>Entry entry = patternToEntry.get(m.pattern());<NEW_LINE>// Check if we will overwrite the existi...
, entry.types[j]);
1,520,804
private double[][] optimizeQ(InstanceList data, Classifier p, boolean firstIter) {<NEW_LINE>int numLabels = data<MASK><NEW_LINE>double[][] base;<NEW_LINE>if (firstIter) {<NEW_LINE>base = null;<NEW_LINE>} else {<NEW_LINE>base = new double[data.size()][numLabels];<NEW_LINE>for (int ii = 0; ii < data.size(); ii++) {<NEW_L...
.getTargetAlphabet().size();
728,155
final SuspendProcessesResult executeSuspendProcesses(SuspendProcessesRequest suspendProcessesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(suspendProcessesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,387,258
public void printList(ParserWalker walker, ArrayList<Object> list) throws MemoryAccessException {<NEW_LINE>int opSymbolCnt = 0;<NEW_LINE>FixedHandle lastHandle = null;<NEW_LINE>int lastHandleIndex = -1;<NEW_LINE>for (String element : printpiece) {<NEW_LINE>int prevSize = list.size();<NEW_LINE>if (element.length() != 0)...
obj = list.get(n);
1,222,900
public static Ifc4Package init() {<NEW_LINE>if (isInited)<NEW_LINE>return (Ifc4Package) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI);<NEW_LINE>// Obtain or create and register package<NEW_LINE>Object registeredIfc4Package = EPackage.Registry.INSTANCE.get(eNS_URI);<NEW_LINE>Ifc4PackageImpl theIfc4Package ...
GeometryPackageImpl ? registeredPackage : GeometryPackage.eINSTANCE);
1,522,800
public static CloudObjectTranslator<NullableCoder> nullable() {<NEW_LINE>return new CloudObjectTranslator<NullableCoder>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public CloudObject toCloudObject(NullableCoder target, SdkComponents sdkComponents) {<NEW_LINE>CloudObject base = CloudObject.forClass(NullableCoder.class);<...
), componentList.size());
1,590,527
private List<VTMatchInfo> transform(VTMatchSet matchSet, Address destinationAddress, LSHCosineVectorAccum destinationVector, Set<DominantPair<Address, LSHCosineVectorAccum>> neighbors, double threshold, TaskMonitor monitor) {<NEW_LINE>List<VTMatchInfo> result = new ArrayList<VTMatchInfo>();<NEW_LINE>Listing sourceListi...
VTMatchInfo match = new VTMatchInfo(matchSet);
1,594,572
public void visit(BLangMatchStatement matchStatement) {<NEW_LINE>BLangOnFailClause currentOnFailClause = this.onFailClause;<NEW_LINE>BLangBlockStmt matchBlockStmt = (BLangBlockStmt) TreeBuilder.createBlockNode();<NEW_LINE>matchBlockStmt.pos = matchStatement.pos;<NEW_LINE>matchBlockStmt.failureBreakMode = matchStatement...
rewrite(matchStatement.onFailClause, env);
1,800,379
static <T> Stream<T> stream(final DbmsHandlerComponent dbmsHandlerComponent, final Project project, final List<Stage<?>> stages, final SqlFunction<ResultSet, T> rsMapper, final boolean allowStreamIteratorAndSpliterator) {<NEW_LINE>requireNonNull(project);<NEW_LINE>requireNonNull(dbmsHandlerComponent);<NEW_LINE>requireN...
sqlInfo, stages, predicateSql, values);
1,239,736
public void invokeOnVariable(PsiVariable psiVariable) {<NEW_LINE>Project project = psiVariable.getProject();<NEW_LINE>psiVariable.normalizeDeclaration();<NEW_LINE>PsiTypeElement typeElement = psiVariable.getTypeElement();<NEW_LINE>if (typeElement == null || typeElement.isInferredType()) {<NEW_LINE>return;<NEW_LINE>}<NE...
elementFactory = JavaPsiFacade.getElementFactory(project);
667,583
private VarKeyNode balanceChild(VarKeyInteriorNode leftNode, VarKeyInteriorNode rightNode) throws IOException {<NEW_LINE>int leftKeyCount = leftNode.keyCount;<NEW_LINE>int rightKeyCount = rightNode.keyCount;<NEW_LINE>int len = buffer.length();<NEW_LINE>int leftKeySpace = len - leftNode.getKeyOffset(leftKeyCount - 1);<N...
rightNode.getOffsetIndex(len - halfKeySpace);
115,976
public boolean singleRestRequest(HTTPRequestReader request) {<NEW_LINE>final ResultObject target = DBRestInFlight.headObject();<NEW_LINE>if (null != target && -1 == target.getStatus()) {<NEW_LINE>target.<MASK><NEW_LINE>target.setSequenceId(request.getSequenceCode());<NEW_LINE>// waiting for work<NEW_LINE>assert (target...
setConnectionId(request.getConnectionId());
680,059
private boolean checkDubboInterface(JavaClass cls) {<NEW_LINE>// Exclude DubboSwaggerService from dubbo 2.7.x<NEW_LINE>if (DocGlobalConstants.DUBBO_SWAGGER.equals(cls.getCanonicalName())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<JavaAnnotation> classAnnotations = cls.getAnnotations();<NEW_LINE>for (JavaAnnotat...
> docletTags = cls.getTags();
1,710,230
void preinitializeRouter(CoreVertxBuildItem vertx, VertxHttpRecorder recorder, BuildProducer<InitialRouterBuildItem> initialRouter, BuildProducer<SyntheticBeanBuildItem> syntheticBeans) {<NEW_LINE>// We need to initialize the routers that are exposed as synthetic beans in a separate build step to avoid cycles in the bu...
mutinyRouter = recorder.createMutinyRouter(httpRouteRouter);
821,931
public com.amazonaws.services.iot1clickdevices.model.ResourceConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iot1clickdevices.model.ResourceConflictException resourceConflictException = new com.amazonaws.services.iot1clickdevices.model.Resource...
JsonToken token = context.getCurrentToken();
1,562,537
// Suppress high Cognitive Complexity warning<NEW_LINE>@SuppressWarnings("squid:S3776")<NEW_LINE>public RestorableTsFileIOWriter recover(boolean needRedoWal, Supplier<ByteBuffer[]> supplier, Consumer<ByteBuffer[]> consumer) throws StorageGroupProcessorException, IOException {<NEW_LINE>File file = FSFactoryProducer.getF...
"recover the resource file failed: " + filePath + RESOURCE_SUFFIX + e);
522,508
private void copy(final URL sourceUrl, final File cache, final boolean allowZeroSize) throws IOException {<NEW_LINE>// -- create NetworkListener<NEW_LINE>// -- request stream<NEW_LINE>// -- report success or IOException<NEW_LINE>// -- if success then do copy<NEW_LINE>// NOI18N<NEW_LINE>err.log(Level.FINE, "Processing U...
() : "Cache " + cache + " exists.";
509,812
private static void writeLockInfo(NTAG215 tag) throws IOException {<NEW_LINE>byte[] pages = tag.readPages(0);<NEW_LINE>if (null == pages || pages.length != NfcByte.PAGE_SIZE * 4)<NEW_LINE>throw new IOException(TagMo.getContext().getString(R.string.fail_read));<NEW_LINE>tag.writePage(2, new byte[] { // lock bits<NEW_LIN...
0x0F, (byte) 0xE0 });
731,074
private void innerWriteFileChunk(StoreFileMetaData fileMetaData, long position, BytesReference content, boolean lastChunk) throws IOException {<NEW_LINE>final String name = fileMetaData.name();<NEW_LINE>IndexOutput indexOutput;<NEW_LINE>if (position == 0) {<NEW_LINE>indexOutput = openAndPutIndexOutput(name, fileMetaDat...
.getFilePointer() + " != " + position;
1,814,173
public ListWebsiteCertificateAuthoritiesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListWebsiteCertificateAuthoritiesResult listWebsiteCertificateAuthoritiesResult = new ListWebsiteCertificateAuthoritiesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren...
int originalDepth = context.getCurrentDepth();
1,133,741
public DataSet loadFromMetaData(List<RecordMetaData> list) throws IOException {<NEW_LINE>if (underlying == null) {<NEW_LINE>SequenceRecord r = recordReader.loadSequenceFromMetaData(list.get(0));<NEW_LINE>initializeUnderlying(r);<NEW_LINE>}<NEW_LINE>// Two cases: single vs. multiple reader...<NEW_LINE>List<RecordMetaDat...
singletonMap(READER_KEY, m)));
434,077
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Wi wi = ...
ExceptionEntityClass(statement.getEntityClassName());
71,088
public void testJMS1AsyncSendException() throws JMSException, TestException {<NEW_LINE>// Util.setLevel(Level.FINEST);<NEW_LINE>try (QueueSession queueSession = queueConnection_.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE)) {<NEW_LINE>BasicCompletionListener completionListener = new BasicCompletionList...
"Non zero completionCount completionListener.formattedState:" + completionListener.formattedState());
1,424,493
public Request<RequestEnvironmentInfoRequest> marshall(RequestEnvironmentInfoRequest requestEnvironmentInfoRequest) {<NEW_LINE>if (requestEnvironmentInfoRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<RequestEnvironmentInfoRequest> reques...
(requestEnvironmentInfoRequest.getEnvironmentName()));
1,306,943
protected static void calculateNObjAndAge(RuntimeMemoryCCTNode node, int currentEpoch, int[] nObjAndAge) {<NEW_LINE>if (node instanceof RuntimeObjLivenessTermCCTNode) {<NEW_LINE>RuntimeObjLivenessTermCCTNode thisNode = (RuntimeObjLivenessTermCCTNode) node;<NEW_LINE>int[<MASK><NEW_LINE>if (epochAndNLiveObjects != null) ...
][] epochAndNLiveObjects = thisNode.epochAndNLiveObjects;
958,100
protected JPanel materialPanel(Material.Type type, String materialString, String finishString, String partName) {<NEW_LINE>JPanel subPanel = new JPanel(new MigLayout());<NEW_LINE>JLabel label = new JLabel(materialString);<NEW_LINE>// // The component material affects the weight of the component.<NEW_LINE>label.setToolT...
, component, type, partName));
409,787
protected void configure() {<NEW_LINE>bind(PurchaseOrderRepository.class).to(PurchaseOrderManagementRepository.class);<NEW_LINE>bind(PurchaseOrderService.class).to(PurchaseOrderServiceImpl.class);<NEW_LINE>bind(AppPurchaseService.class).to(AppPurchaseServiceImpl.class);<NEW_LINE>bind(PurchaseRequestService.class).to(Pu...
).to(PurchaseOrderWorkflowServiceImpl.class);
1,609,644
public void testNoJEEMetadataContextExecSvc1() throws Exception {<NEW_LINE>final BlockingQueue<Object> results = new LinkedBlockingQueue<Object>();<NEW_LINE>final Runnable javaCompLookup = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>results.add(new ...
System.out.println("running task");
931,893
public ListenerTlsSdsCertificate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListenerTlsSdsCertificate listenerTlsSdsCertificate = new ListenerTlsSdsCertificate();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
1,642,202
private void copyHU(@NonNull final I_M_HU oldHU) {<NEW_LINE>final HuItemId oldParentItemId = HuItemId.ofRepoIdOrNull(oldHU.getM_HU_Item_Parent_ID());<NEW_LINE>final HuItemId newParentItemId;<NEW_LINE>if (oldParentItemId != null) {<NEW_LINE>newParentItemId = old2new_M_HU_Item_ID.get(oldParentItemId);<NEW_LINE>if (newPar...
ofRepoId(oldHU.getM_HU_ID());
512,297
public void updateProgress(PlaybackStateCompat playbackState, long duration) {<NEW_LINE>if (playbackState != null && mTomahawkListAdapter != null && mTomahawkListAdapter.getProgressBar() != null) {<NEW_LINE>long currentPosition = playbackState.getPosition();<NEW_LINE>if (playbackState.getState() != PlaybackStateCompat....
() - playbackState.getLastPositionUpdateTime();
664,420
public int sendAll(Iterable<Observable<Integer>> batches, final int numMetrics, long timeoutMillis) {<NEW_LINE>final <MASK><NEW_LINE>final AtomicInteger updated = new AtomicInteger(0);<NEW_LINE>LOGGER.debug("Got {} ms to send {} metrics", timeoutMillis, numMetrics);<NEW_LINE>try {<NEW_LINE>final CountDownLatch complete...
AtomicBoolean err = new AtomicBoolean(false);
1,435,113
public byte[] serialize(LedgerMetadata metadata) throws IOException {<NEW_LINE>int formatVersion = metadata.getMetadataFormatVersion();<NEW_LINE>final byte[] serialized;<NEW_LINE>switch(formatVersion) {<NEW_LINE>case METADATA_FORMAT_VERSION_3:<NEW_LINE>serialized = serializeVersion3(metadata);<NEW_LINE>break;<NEW_LINE>...
getEncoder().encodeToString(serialized);
822,308
public static void main(String[] args) {<NEW_LINE>System.setProperty("java.awt.headless", "true");<NEW_LINE>System.setProperty("org.eclipse.jetty.util.log.class", <MASK><NEW_LINE>assertAssertionsEnabled();<NEW_LINE>//<NEW_LINE>// Pass-through of arguments for Jetty<NEW_LINE>final Map<String, String> serverArgs = parseA...
JavaUtilLog.class.getName());
129,877
protected void configure(final FTPClient client) throws IOException {<NEW_LINE>client.setProtocol(host.getProtocol());<NEW_LINE>client.setSocketFactory(new ProxySocketFactory(host));<NEW_LINE>client.setControlEncoding(host.getEncoding());<NEW_LINE>final int timeout = ConnectionTimeoutFactory.get(preferences).getTimeout...
buffer = preferences.getInteger("ftp.socket.buffer");
1,498,661
private static int positionHorizontallyILBRTL(CssContext c, InlineLayoutBox current, int start, int width) {<NEW_LINE>// WARNING: This function was created mostly by trial and error!<NEW_LINE>int xAbs = start;<NEW_LINE>int xRel = width;<NEW_LINE>int w;<NEW_LINE>w = current.getRightMarginPaddingBorder(c);<NEW_LINE>xAbs ...
w = current.getLeftMarginBorderPadding(c);
370,106
final void unregister(FileObject fo) {<NEW_LINE>assert !fo.isValid() || fo.isFolder() : "If valid, it should be a folder: " + fo + " clazz: " + fo.getClass();<NEW_LINE>synchronized (LOCK) {<NEW_LINE>final NotifierKeyRef<KEY>[] equalOne = new NotifierKeyRef[1];<NEW_LINE>NotifierKeyRef<KEY> kr = new NotifierKeyRef<KEY>(f...
equalOne[0].removeWatch();
922,991
protected ItemStack doInsertItem(int internal, @Nonnull ItemStack stack, boolean simulate) {<NEW_LINE>ItemStack existing = machine.getStackInSlot(internal);<NEW_LINE>if (Prep.isValid(existing)) {<NEW_LINE>int max = Math.min(existing.getMaxStackSize(), machine.getInventoryStackLimit(internal));<NEW_LINE>if (existing.get...
internal, stack.copy());
27,381
private static void addPropertiesFrom(Class<?> domainType, Class<?> returnedType, ProjectionFactory factory, Map<PropertyPath, Boolean> filteredProperties, String inputProperty, Neo4jMappingContext mappingContext) {<NEW_LINE>ProjectionInformation <MASK><NEW_LINE>PropertyPath propertyPath;<NEW_LINE>// If this is a close...
projectionInformation = factory.getProjectionInformation(returnedType);
367,207
protected final void bindValues(SQLiteStatement stmt, Thread entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>Long id = entity.getId();<NEW_LINE>if (id != null) {<NEW_LINE>stmt.bindLong(1, id);<NEW_LINE>}<NEW_LINE>String entityID = entity.getEntityID();<NEW_LINE>if (entityID != null) {<NEW_LINE>stmt.bindString(2, enti...
7, deleted ? 1L : 0L);
1,229,059
public static ListOTATaskByJobResponse unmarshall(ListOTATaskByJobResponse listOTATaskByJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOTATaskByJobResponse.setRequestId(_ctx.stringValue("ListOTATaskByJobResponse.RequestId"));<NEW_LINE>listOTATaskByJobResponse.setSuccess(_ctx.booleanValue("ListOTATaskByJobRespons...
("ListOTATaskByJobResponse.Data[" + i + "].ProductName"));
1,623,518
final ListPackagesForDomainResult executeListPackagesForDomain(ListPackagesForDomainRequest listPackagesForDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPackagesForDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);