idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,418,722
public static void register(Application application) {<NEW_LINE>Desktop desktop = Desktop.getDesktop();<NEW_LINE>if (desktop.isSupported(Desktop.Action.APP_ABOUT)) {<NEW_LINE>desktop.setAboutHandler(e -> {<NEW_LINE>DataManager dataManager = DataManager.getInstance();<NEW_LINE>Window window = WindowManager.getInstance()...
Application app = Application.get();
47,753
final ListThingTypesResult executeListThingTypes(ListThingTypesRequest listThingTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listThingTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListThingTypes");
509,549
public void saveParam(ConnectionParam options) {<NEW_LINE>options.<MASK><NEW_LINE>SocksProxy oldSocksProxy = options.getSocksProxy();<NEW_LINE>if (!oldSocksProxy.getHost().equals(hostTextField.getText()) || oldSocksProxy.getPort() != portNumberSpinner.getValue() || oldSocksProxy.getVersion() != getSelectedVersion() || ...
setUseSocksProxy(useSocksCheckBox.isSelected());
10,721
public double[] Solve(double[] value) {<NEW_LINE>if (value == null) {<NEW_LINE>throw new MatrixError("value");<NEW_LINE>}<NEW_LINE>if (value.length != this.LU.length) {<NEW_LINE>throw new MatrixError("Invalid matrix dimensions.");<NEW_LINE>}<NEW_LINE>if (!this.isNonsingular()) {<NEW_LINE>throw new MatrixError("Matrix i...
[j] * X[j];
71,903
public void saveScreenHistory(Screen frameOwner) {<NEW_LINE>WindowContext windowContext = frameOwner.getWindow().getContext();<NEW_LINE>if (security.isEntityOpPermitted(ScreenHistoryEntity.class, EntityOp.CREATE) && (frameOwner instanceof EditorScreen) && windowContext.getLaunchMode() != OpenMode.DIALOG && (screenIds.c...
getTools().getInstanceName(entity);
987,585
public Component buildOverviewPanel(WsdlMockService mockService) {<NEW_LINE>JPropertiesTable<WsdlMockService> table = new JPropertiesTable<WsdlMockService>("MockService Properties");<NEW_LINE>table.addProperty("Name", "name", true);<NEW_LINE>table.addProperty("Description", "description", true);<NEW_LINE><MASK><NEW_LIN...
table.addProperty("Path", "path");
416,322
public static List<TextAlignmentAction> createActions(IWorkbenchPart part) {<NEW_LINE>List<TextAlignmentAction> list = new ArrayList<TextAlignmentAction>();<NEW_LINE>list.add(new TextAlignmentAction(part, ITextAlignment.TEXT_ALIGNMENT_LEFT, ACTION_LEFT_ID, ACTION_LEFT_TEXT, IArchiImages.ImageFactory.getImageDescriptor(...
getImageDescriptor(IArchiImages.ICON_ALIGN_TEXT_CENTER)));
1,821,026
public CorpUserProperties apply(@Nonnull final com.linkedin.identity.CorpUserInfo info) {<NEW_LINE>final CorpUserProperties result = new CorpUserProperties();<NEW_LINE>result.setDisplayName(info.getDisplayName());<NEW_LINE>result.setTitle(info.getTitle());<NEW_LINE>result.setActive(info.isActive());<NEW_LINE>result.set...
setEmail(info.getEmail());
649,038
public Response requestFileAccess(@PathParam("id") String fileToRequestAccessId, @Context HttpHeaders headers) {<NEW_LINE>DataverseRequest dataverseRequest;<NEW_LINE>DataFile dataFile;<NEW_LINE>try {<NEW_LINE>dataFile = findDataFileOrDie(fileToRequestAccessId);<NEW_LINE>} catch (WrappedResponse ex) {<NEW_LINE>List<Stri...
asList(wr.getLocalizedMessage());
224,740
private void updateAtmWithLub(AnnotatedTypeMirror sourceCodeATM, AnnotatedTypeMirror jaifATM) {<NEW_LINE>switch(sourceCodeATM.getKind()) {<NEW_LINE>case TYPEVAR:<NEW_LINE>updateAtmWithLub(((AnnotatedTypeVariable) sourceCodeATM).getLowerBound(), ((AnnotatedTypeVariable) jaifATM).getLowerBound());<NEW_LINE>updateAtmWithL...
amJaif = jaifATM.getAnnotationInHierarchy(amSource);
579,212
public void refreshPreview() {<NEW_LINE>JEditorPane pane = (JEditorPane) getPreviewComponent();<NEW_LINE>try {<NEW_LINE>int rm = previewPrefs.getInt(rightMargin, provider.getDefaultAsInt(rightMargin));<NEW_LINE>// NOI18N<NEW_LINE>pane.putClientProperty("TextLimitLine", rm);<NEW_LINE>} catch (NumberFormatException e) {<...
Rectangle visibleRectangle = pane.getVisibleRect();
941,341
private void renderStream(Context context, Publisher<? extends ServerSentEvent> events) {<NEW_LINE>Response response = context.getResponse();<NEW_LINE>response.getHeaders().add(HttpHeaderConstants.CONTENT_TYPE, HttpHeaderConstants.TEXT_EVENT_STREAM_CHARSET_UTF_8);<NEW_LINE>response.getHeaders().add(HttpHeaderConstants....
executor, byteBufAllocator, bufferSettings, clock);
429,593
public BatchInferenceJobOutput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchInferenceJobOutput batchInferenceJobOutput = new BatchInferenceJobOutput();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
().unmarshall(context));
641,131
public Object call() {<NEW_LINE>try {<NEW_LINE>LOGGER.debug("GAME WORKER started gameId " + game.getId());<NEW_LINE>Thread.currentThread().setName("GAME " + game.getId());<NEW_LINE>game.start(choosingPlayerId);<NEW_LINE>game.fireUpdatePlayersEvent();<NEW_LINE>gameController.<MASK><NEW_LINE>game.cleanUp();<NEW_LINE>} ca...
gameResult(game.getWinner());
156,030
public void run(Optional<Pair<String, String>> basicAuth, Predicate<Properties> authenticator, Consumer<FinishedRequest> callback, FileHandler homepage, boolean https, AtomicBoolean live) {<NEW_LINE>try {<NEW_LINE>if (https) {<NEW_LINE>// 0 is the default 'backlog'<NEW_LINE>server = addSSLContext(HttpsServer.create(new...
new ShutdownHandler()), basicAuth);
1,790,768
public TerminologyData unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TerminologyData terminologyData = new TerminologyData();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
777,090
protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_TX_DIGEST, new ColumnMeta(COLUMN_TX_DIGEST, "varchar(1024)", false));<NEW_LINE>columnsType.put(COLUMN_TX_DIGEST, Fields.FIELD_TYPE_VAR_STRING);<NEW_LINE>columns.put(COLUMN_EXEC, new ColumnMeta(COLUMN_EXEC, "int(11)", false));<NEW_LINE>columnsType.put(COLU...
(COLUMN_USER, "varchar(20)", false));
925,267
final CreateDetectorResult executeCreateDetector(CreateDetectorRequest createDetectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDetectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
invoke(request, responseHandler, executionContext);
1,171,657
public boolean process(List<Point2D_F64> observations, List<Se3_F64> listWorldToView, Point3D_F64 worldPt, Point3D_F64 refinedPt) {<NEW_LINE><MASK><NEW_LINE>minimizer.setFunction(func, null);<NEW_LINE>param[0] = worldPt.x;<NEW_LINE>param[1] = worldPt.y;<NEW_LINE>param[2] = worldPt.z;<NEW_LINE>minimizer.initialize(param...
func.setObservations(observations, listWorldToView);
1,143,070
protected CommandExecutionResult executeNow(AbstractEntityDiagram diagram, BlocLines lines) throws NoSuchColorException {<NEW_LINE>lines = lines.trimSmart(1);<NEW_LINE>final RegexResult line0 = getStartingPattern().matcher(lines.getFirst().getTrimmed().getString());<NEW_LINE>final String symbol = StringUtils.goUpperCas...
code.getName() + ") is already defined");
1,113,948
// Visible for testing<NEW_LINE>// Visible for testing<NEW_LINE>void loadDependentInfo() {<NEW_LINE>if (m_vo.TableName.equals("C_Order")) {<NEW_LINE>int C_DocTyp_ID = 0;<NEW_LINE>Integer target = (Integer) getValue("C_DocTypeTarget_ID");<NEW_LINE>if (target != null)<NEW_LINE>C_DocTyp_ID = target.intValue();<NEW_LINE>if...
Level.SEVERE, sql, e);
593,241
public static GetJournalResponse unmarshall(GetJournalResponse getJournalResponse, UnmarshallerContext _ctx) {<NEW_LINE>getJournalResponse.setRequestId(_ctx.stringValue("GetJournalResponse.RequestId"));<NEW_LINE>Journal journal = new Journal();<NEW_LINE>journal.setJournalId(_ctx.stringValue("GetJournalResponse.Journal....
= new ArrayList<String>();
1,408,181
public static <D extends ImageGray<D>> HoughTransformGradient<D> houghLinePolar(ConfigHoughGradient configHough, ConfigParamPolar configParam, Class<D> derivType) {<NEW_LINE>HoughParametersPolar param = new HoughParametersPolar(<MASK><NEW_LINE>NonMaxSuppression extractor = FactoryFeatureExtractor.nonmax(new ConfigExtra...
configParam.resolutionRange, configParam.numBinsAngle);
1,787,727
private void loadNode117() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.ProgramStateMachineType_Halt, new QualifiedName(0, "Halt"), new LocalizedText("en", "Halt"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>node.addReference(new Reference(Iden...
.expanded(), false));
1,102,420
public ManagedJobTemplateSummary 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>ManagedJobTemplateSummary managedJobTemplateSummary = new Mana...
String name = reader.nextName();
1,416,066
public List<Map<String, Object>> invoke() {<NEW_LINE>NodeList nodes = null;<NEW_LINE>File d = new File(webGoatHomeDirectory, "ClientSideFiltering/employees.xml");<NEW_LINE>XPathFactory factory = XPathFactory.newInstance();<NEW_LINE>XPath path = factory.newXPath();<NEW_LINE>try (InputStream is = new FileInputStream(d)) ...
employeeJson = new HashMap<>();
762,267
void fibLookup(Ip dstIp, String currentNodeName, String lookupVrf, Fib fib, BiConsumer<FlowTracer, FibForward> forwardOutInterfaceHandler, Stack<Breadcrumb> intraHopBreadcrumbs) {<NEW_LINE>// Loop detection<NEW_LINE>Breadcrumb breadcrumb = newBreadcrumb(<MASK><NEW_LINE>if (_breadcrumbs.contains(breadcrumb)) {<NEW_LINE>...
currentNodeName, _vrfName, _ingressInterface, _currentFlow);
21,716
public int[] queryFanSpeeds() {<NEW_LINE>if (!IS_PI) {<NEW_LINE>String fanStr = this.sensorsMap.get(FAN);<NEW_LINE>if (fanStr != null) {<NEW_LINE>List<Integer> speeds = new ArrayList<>();<NEW_LINE>int fan = 1;<NEW_LINE>for (; ; ) {<NEW_LINE>String fanPath = String.format("%s%d_input", fanStr, fan);<NEW_LINE>if (!new Fi...
(FileUtil.getIntFromFile(fanPath));
749,642
final BatchDeleteResult executeBatchDelete(BatchDeleteRequest batchDeleteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
236,734
public Object run(List<Object> fetchParam) {<NEW_LINE>if (fetchParam.isEmpty())<NEW_LINE>throw new ElException("'by' must have params");<NEW_LINE>String p = (String) fetchParam.remove(0);<NEW_LINE>String className = p;<NEW_LINE>String methodName = null;<NEW_LINE>if (p.contains("#")) {<NEW_LINE>String[] tmp = p.split("#...
klass.newInstance(), args);
378,832
final GetBotsResult executeGetBots(GetBotsRequest getBotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBotsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetBotsRequest> request = null;<NEW_LINE>Response<GetBotsResult> respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
614,972
private static PyObject _reload(PyModule m, PyObject modules, Map<String, PyModule> modules_reloading) {<NEW_LINE>String name = m.__getattr__("__name__").toString().intern();<NEW_LINE>PyModule nm = (PyModule) modules.__finditem__(name);<NEW_LINE>if (nm == null || !nm.__getattr__("__name__").toString().equals(name)) {<N...
PyList) pkg.__getattr__("__path__");
1,766,984
public void jimplify(DexBody body) {<NEW_LINE>if (!(instruction instanceof Instruction23x)) {<NEW_LINE>throw new IllegalArgumentException("Expected Instruction23x but got: " + instruction.getClass());<NEW_LINE>}<NEW_LINE>Instruction23x cmpInstr = (Instruction23x) instruction;<NEW_LINE>int dest = cmpInstr.getRegisterA()...
getOp2Box(), type, true);
1,072,705
public okhttp3.Call connectDeleteNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/pro...
localVarHeaderParams.put("Content-Type", localVarContentType);
587,535
protected void doSetInput(IEditorInput editorInput) {<NEW_LINE>// Check for file existence<NEW_LINE>try {<NEW_LINE>if (editorInput instanceof IFileEditorInput) {<NEW_LINE>final IFile file = ((<MASK><NEW_LINE>if (!file.exists()) {<NEW_LINE>file.create(new ByteArrayInputStream(new byte[] {}), true, new NullProgressMonito...
IFileEditorInput) editorInput).getFile();
1,329,445
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {<NEW_LINE>final View view = inflater.inflate(R.layout.sweep_wallet_fragment, container, false);<NEW_LINE>messageView = view.findViewById(R.id.sweep_wallet_fragment_message);<NEW_LINE>passwordViewGroup = ...
sweepTransactionView.setVisibility(View.GONE);
1,187,151
public void acquireReadLock() {<NEW_LINE>final OModifiableInteger lHolds = lockHolds.get();<NEW_LINE>final int holds = lHolds.intValue();<NEW_LINE>if (holds > 0) {<NEW_LINE>// we have already acquire read lock<NEW_LINE>lHolds.increment();<NEW_LINE>return;<NEW_LINE>} else if (holds < 0) {<NEW_LINE>// write lock is acqui...
currentThread(), Boolean.TRUE);
327,698
public void syncJsonToLocal(boolean isWriteToLocal) throws Exception {<NEW_LINE>XmlProcessBase xmlProcess = new XmlProcessBase();<NEW_LINE>xmlProcess.addParseClass(Shardings.class);<NEW_LINE>xmlProcess.addParseClass(DbGroups.class);<NEW_LINE><MASK><NEW_LINE>// init xml<NEW_LINE>xmlProcess.initJaxbClass();<NEW_LINE>// s...
xmlProcess.addParseClass(Users.class);
1,343,893
public List<List<Integer>> Hashmap(int[] nums, int target) {<NEW_LINE>Arrays.sort(nums);<NEW_LINE>Set<List<Integer>> ts = new HashSet();<NEW_LINE>HashMap<Integer, Integer> hm = new HashMap<>();<NEW_LINE>for (int i = 0; i < nums.length; i++) {<NEW_LINE>hm.put(nums[i], i);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < nums.len...
[i] - nums[j];
765,167
public String physToPhysFmtString(Number physValue, String format) {<NEW_LINE>String result;<NEW_LINE>switch(cnvId) {<NEW_LINE>case // * 20 : Bitdarstellung<NEW_LINE>20:<NEW_LINE>result = Integer.toBinaryString(physValue.intValue());<NEW_LINE>break;<NEW_LINE>// * 21 : 2 Ascii-Zeichen<NEW_LINE>case 21:<NEW_LINE>...
physValue.intValue() % 0x100);
814,709
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("align" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>IParam tgtParam;<NEW_LINE>Expression fltExp = null;<NEW_LINE>if (param.getType() == IParam.Comma) {...
MessageManager mm = EngineMessage.get();
823,495
public byte[] box(double minLon, double maxLon, double minLat, double maxLat) throws IOException {<NEW_LINE>final int minX = Math.max(0, lon(minLon));<NEW_LINE>if (minX > extent) {<NEW_LINE>return EMPTY;<NEW_LINE>}<NEW_LINE>final int minY = Math.min<MASK><NEW_LINE>if (minY > extent) {<NEW_LINE>return EMPTY;<NEW_LINE>}<...
(extent, lat(minLat));
489,617
final AddInstanceGroupsResult executeAddInstanceGroups(AddInstanceGroupsRequest addInstanceGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addInstanceGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,234,738
public void onOpen(Session session, EndpointConfig config) {<NEW_LINE>if (LOG.isLoggable(Level.FINE))<NEW_LINE>LOG.fine("Websocket session open: " + session.getId());<NEW_LINE>// TODO We never expire idle websocket sessions, the assumption is that only authenticated clients can<NEW_LINE>// open a session and if their S...
getId() + " message received: " + message);
340,210
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case android.R.id.home:<NEW_LINE>finish();<NEW_LINE>break;<NEW_LINE>case R.id.play_data:<NEW_LINE>if (isPlaying) {<NEW_LINE>isPlaying = false;<NEW_LINE>item.setIcon(ResourcesCompat.getDrawable(getResources(), R.drawable.i...
.drawable.ic_pause_white_24dp, null));
1,489,618
public boolean updateTenantCapacity(String tenant, Integer quota, Integer maxSize, Integer maxAggrCount, Integer maxAggrSize) {<NEW_LINE>List<Object> argList = Lists.newArrayList();<NEW_LINE>StringBuilder sql = new StringBuilder("update tenant_capacity set");<NEW_LINE>if (quota != null) {<NEW_LINE>sql.append(" quota = ...
argList.toArray()) == 1;
491,841
public Matrix4 absolute() {<NEW_LINE>final Matrix4 r = new Matrix4();<NEW_LINE>final double[] rStorage = r._m4storage;<NEW_LINE>rStorage[0] = Math.abs(_m4storage[0]);<NEW_LINE>rStorage[1] = Math.abs(_m4storage[1]);<NEW_LINE>rStorage[2] = Math.abs(_m4storage[2]);<NEW_LINE>rStorage[3] = Math.abs(_m4storage[3]);<NEW_LINE>...
.abs(_m4storage[12]);
269,033
public I_C_Invoice createInvoiceForRecurrentPaymentLine(final MRecurrentPaymentLine line) {<NEW_LINE>final I_C_RecurrentPayment header = line.getC_RecurrentPayment();<NEW_LINE>final MInvoice invoice = new MInvoice(line.getCtx(), 0, line.get_TrxName());<NEW_LINE>invoice.setAD_Org_ID(line.getAD_Org_ID());<NEW_LINE>final ...
Timestamp dateInvoiced = SystemTime.asTimestamp();
230,174
public EntityTypesEvaluationMetrics 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>EntityTypesEvaluationMetrics entityTypesEvaluationMetrics =...
().unmarshall(context));
1,450,962
public com.amazonaws.services.codecommit.model.TargetsRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.TargetsRequiredException targetsRequiredException = new com.amazonaws.services.codecommit.model.TargetsRequiredException(null...
String currentParentElement = context.getCurrentParentElement();
303,053
public PlanWithConsumedDynamicFilters visitSemiJoin(SemiJoinNode node, Set<String> allowedDynamicFilterIds) {<NEW_LINE>JoinDynamicFilterResult joinDynamicFilterResult = extractDynamicFilterFromJoin(node, allowedDynamicFilterIds);<NEW_LINE>if (!joinDynamicFilterResult.getProbe().equals(node.getSource()) || !joinDynamicF...
(joinDynamicFilterResult.getConsumed()));
1,602,123
private Mono<Response<ConnectionSettingInner>> listWithSecretsWithResponseAsync(String resourceGroupName, String resourceName, String connectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,174,447
private AuthnRequest createAuthnRequest(Saml2AuthenticationRequestContext context) {<NEW_LINE>String issuer = context.getIssuer();<NEW_LINE>String destination = context.getDestination();<NEW_LINE>String assertionConsumerServiceUrl = context.getAssertionConsumerServiceUrl();<NEW_LINE>String protocolBinding = context.get...
auth, context.getRelyingPartyRegistration());
800,519
private void testBoolSetOper(int t, String s1, String op, String s2, String exp) {<NEW_LINE>showTest(t);<NEW_LINE>String s = "0:" + s1 + "->1";<NEW_LINE>TNFAStateTable st = new TNFAStateTable();<NEW_LINE>st.stringToGraph(s);<NEW_LINE>BoolSet set1 = new BoolSet();<NEW_LINE>set1.assignArr(st.head.transList.sym.symset);<N...
trc("set", exp, actual);
1,583,727
private static void load(EscapeMode e, String pointsData, int size) {<NEW_LINE>e.nameKeys = new String[size];<NEW_LINE>e.codeVals = new int[size];<NEW_LINE>e.codeKeys = new int[size];<NEW_LINE>e.nameVals = new String[size];<NEW_LINE>int i = 0;<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>while (!reader.isEmpty()) {<NEW_LINE...
CharacterReader reader = new CharacterReader(pointsData);
87,694
private boolean zzRefill() throws java.io.IOException {<NEW_LINE>zzEndRead -= zzStartRead;<NEW_LINE>zzCurrentPos -= zzStartRead;<NEW_LINE>zzMarkedPos -= zzStartRead;<NEW_LINE>zzStartRead = 0;<NEW_LINE>}<NEW_LINE>if (numRead == 0) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>if (numRead > 0) {<NEW_LINE>zzEndRead += n...
java.io.IOException("Reader returned 0 characters. See JFlex examples/zero-reader for a workaround.");
1,167,298
public PCollection<KV<K, Iterable<V>>> expand(PCollection<KV<K, Iterable<WindowedValue<V>>>> input) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>KvCoder<K, Iterable<WindowedValue<V>>> inputKvCoder = (KvCoder<K, Iterable<WindowedValue<V>>>) input.getCoder();<NEW_LINE>Coder<K> keyCoder = inputKvCoder.getKeyCoder();...
input.isBounded(), outputKvCoder);
272,300
public void immediateSuspend(Object eventThread, byte suspendPolicy, Callable<Void> callBack) {<NEW_LINE>assert eventThread == context.<MASK><NEW_LINE>switch(suspendPolicy) {<NEW_LINE>case SuspendStrategy.ALL:<NEW_LINE>// suspend all but the current thread<NEW_LINE>// at next execution point<NEW_LINE>for (Object thread...
asGuestThread(Thread.currentThread());
318,855
static UInt128 multiply(long first, long second) {<NEW_LINE>long secondLow = second & 0xFFFFFFFFL;<NEW_LINE>long secondHigh = second >>> 32;<NEW_LINE>long firstLow = first & 0xFFFFFFFFL;<NEW_LINE>long firstHigh = first >>> 32;<NEW_LINE>// The upper 64 bits of the output is a combination of several factors<NEW_LINE>long...
+= (p10 >>> 32);
1,848,746
public void run(final ICompilationUnit unit) {<NEW_LINE>if (!(unit instanceof GroovyCompilationUnit)) {<NEW_LINE>super.run(unit);<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>JavaEditor editor = getEditor();<NEW_LINE>if (editor == null) {<NEW_LINE>IEditorPart openEditor = EditorUtility.isOpenInEditor(unit);<NEW_LINE>if (!...
) unit, newChooseImportQuery(editor));
489,270
public Object inBinding(Object contract, RpcBinding binding, SofaRuntimeContext sofaRuntimeContext) {<NEW_LINE>ApplicationContext applicationContext = sofaRuntimeContext.getSofaRuntimeManager().getRootApplicationContext();<NEW_LINE>ConsumerConfigHelper consumerConfigHelper = applicationContext.getBean(ConsumerConfigHel...
consumerConfigContainer.addConsumerConfig(binding, consumerConfig);
1,054,684
public static XContentType xContentType(CharSequence content) {<NEW_LINE>int length = content.length() < GUESS_HEADER_LENGTH <MASK><NEW_LINE>if (length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>char first = content.charAt(0);<NEW_LINE>if (JsonXContent.jsonXContent.detectContent(content)) {<NEW_LINE>return XCont...
? content.length() : GUESS_HEADER_LENGTH;
1,129,753
protected void generateCoercerOverrides(JDefinedClass wrapperClass, ClassTemplateSpec itemSpec, DataSchema itemSchema, CustomInfoSpec customInfoSpec, boolean tolerateNullForCoerceOutput) {<NEW_LINE>JClass valueType = generate(itemSpec);<NEW_LINE>// Generate coerce input only for direct types. Wrapped types will just ca...
coerceOutput.annotate(Override.class);
78,531
public void save() {<NEW_LINE>List<String> local = installs;<NEW_LINE>String[] encodedInstalls = new String[local.size()];<NEW_LINE>for (int i = 0; i < encodedInstalls.length; i++) {<NEW_LINE>encodedInstalls[i] = encodeInstall(local.get(i));<NEW_LINE>}<NEW_LINE>String encoded = ArrayEncoder.encode(encodedInstalls);<NEW...
prefs.put(DEFAULT_NGROK_INSTALL, di);
1,156,972
private QueryBuilder buildQueryFromTokenizedIds(String[] idTokens, String resourceName) {<NEW_LINE>BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery().filter(QueryBuilders.termQuery(TransformField.INDEX_DOC_TYPE.getPreferredName(), resourceName));<NEW_LINE>if (Strings.isAllOrWildcard(idTokens) == false) {<NEW_LIN...
terms = new ArrayList<>();
182,580
static int polygonText(AttributeStreamOfDbl zs, AttributeStreamOfDbl ms, AttributeStreamOfDbl position, AttributeStreamOfInt32 paths, AttributeStreamOfInt8 path_flags, int total_point_count, WktParser wkt_parser) {<NEW_LINE>// At start of PolygonText<NEW_LINE><MASK><NEW_LINE>if (current_token == WktParser.WktToken.empt...
int current_token = wkt_parser.currentToken();
1,379,365
public List<SearchHit> innerRun() throws IOException, SqlParseException {<NEW_LINE>Map<String, Map<String, List<Object>>> optimizationTermsFilterStructure = initOptimizationStructure();<NEW_LINE>updateFirstTableLimitIfNeeded();<NEW_LINE>TableInJoinRequestBuilder firstTableRequest = requestBuilder.getFirstTable();<NEW_L...
.getSecondTable().getAlias();
1,614,331
protected void buildUI() {<NEW_LINE>SignatureValidationStatus signatureValidationStatus = new SignatureValidationStatus(messageBundle, signatureWidgetAnnotation, signatureValidator);<NEW_LINE>setTitle(messageBundle.getString("viewer.annotation.signature.validation.dialog.title"));<NEW_LINE>// simple close<NEW_LINE>fina...
.getLibrary().getSignatureHandler();
505,388
public static ListEntitiesForPolicyResponse unmarshall(ListEntitiesForPolicyResponse listEntitiesForPolicyResponse, UnmarshallerContext _ctx) {<NEW_LINE>listEntitiesForPolicyResponse.setRequestId(_ctx.stringValue("ListEntitiesForPolicyResponse.RequestId"));<NEW_LINE>List<Group> groups = new ArrayList<Group>();<NEW_LINE...
("ListEntitiesForPolicyResponse.Groups[" + i + "].AttachDate"));
14,907
boolean validateVersion() throws SamlException {<NEW_LINE>SAMLVersion version = null;<NEW_LINE>boolean isLogoutMessage = false;<NEW_LINE>if (samlResponse != null) {<NEW_LINE>version = samlResponse.getVersion();<NEW_LINE>} else if (samlLogoutResponse != null) {<NEW_LINE>version = samlLogoutResponse.getVersion();<NEW_LIN...
{ version.toString() });
502,959
public Node storeToXML(Document doc) {<NEW_LINE>Object value = getValue();<NEW_LINE>org.w3c.dom.Element el = null;<NEW_LINE>if (value instanceof FormTableColumnModel) {<NEW_LINE>FormTableColumnModel model = (FormTableColumnModel) value;<NEW_LINE>el = doc.createElement(XML_TABLE_COLUMN_MODEL);<NEW_LINE>el.setAttribute(A...
(model.getSelectionModel()));
1,192,024
private WriteResult tryWriteLockOnce(StaticBuffer key, StaticBuffer del, StoreTransaction txh) {<NEW_LINE>Throwable t = null;<NEW_LINE>final Timer writeTimer = times.getTimer().start();<NEW_LINE>StaticBuffer newLockCol = serializer.toLockCol(writeTimer.<MASK><NEW_LINE>Entry newLockEntry = StaticArrayEntry.of(newLockCol...
getStartTime(), rid, times);
266,927
private void enforceRelationshipPropertyExistenceConstraint(RelationTypeSchemaDescriptor schema) throws KernelException {<NEW_LINE>var index = allStoreHolder.findUsableTokenIndex(RELATIONSHIP);<NEW_LINE>if (index != IndexDescriptor.NO_INDEX) {<NEW_LINE>try (var fullAccessIndexCursor = cursors.allocateFullAccessRelation...
), propertyCursor, schema, token);
1,531,568
public static EventBean[] sortWOrderKeys(EventBean[] outgoingEvents, Object[] orderKeys, Comparator<Object> comparator) {<NEW_LINE>TreeMap<Object, Object> sort = new TreeMap<>(comparator);<NEW_LINE>if (outgoingEvents == null || outgoingEvents.length < 2) {<NEW_LINE>return outgoingEvents;<NEW_LINE>}<NEW_LINE>for (int i ...
i], outgoingEvents[i]);
1,711,219
public static String prettyPrint2D(Edit[][] m) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int rows = m.length;<NEW_LINE>int columns = m[0].length;<NEW_LINE>// ins(1,2,3,4) --> size is 12<NEW_LINE>int size = 12 + 4;<NEW_LINE>for (int i = 0; i < size / 2; i++) sb.append(" ");<NEW_LINE>String spaces = sb....
append(underscores + underscores + "_");
301,578
public IRubyObject transform(ThreadContext context, IRubyObject[] args) {<NEW_LINE>Ruby runtime = context.getRuntime();<NEW_LINE>argumentTypeCheck<MASK><NEW_LINE>NokogiriXsltErrorListener elistener = new NokogiriXsltErrorListener();<NEW_LINE>DOMSource domSource = new DOMSource(((XmlDocument) args[0]).getDocument());<NE...
(runtime, args[0]);
1,232,813
void init(ChannelPipeline pipeline) {<NEW_LINE>pipeline.addFirst("idleStateHandler", new IdleStateHandler(nettyChannelTimeoutSeconds, 0, 0));<NEW_LINE>pipeline.addAfter("idleStateHandler", "idleEventHandler", timeoutHandler);<NEW_LINE>// pipeline.addLast("logger", new LoggingHandler("Netty", LogLevel.ERROR));<NEW_LINE>...
"bytemetrics", new BytesMetricsHandler(m_bytesMetricsCollector));
1,055,343
public static AbstractGeometry align(AbstractGeometry geometry, Point position, String hAlign, String vAlign) {<NEW_LINE>if (geometry == null)<NEW_LINE>return null;<NEW_LINE>double x = position.x;<NEW_LINE>double y = position.y;<NEW_LINE>Rect bounds = geometry.getBounds();<NEW_LINE>double dx, dy;<NEW_LINE>if (hAlign.eq...
.y - bounds.height / 2;
1,456,275
private static void drawPeerLoadPicture(final int width, final int height, final CircleThreadPiece[] pieces, final CircleThreadPiece fillRest) {<NEW_LINE>// prepare image<NEW_LINE>peerloadPicture = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);<NEW_LINE>final Graphics2D g = peerloadPicture.createGraphics...
" %)", fillRest.getColor());
922,605
public static File archiveTARFiles(File base, Iterable<File> files, String archiveNameWithOutExtension) throws IOException {<NEW_LINE>File tarFile = new File(FileUtils.getTempDirectoryPath(), archiveNameWithOutExtension + ".tar");<NEW_LINE>tarFile.deleteOnExit();<NEW_LINE>try (TarArchiveOutputStream tos = new TarArchiv...
tos.setLongFileMode(TarArchiveOutputStream.LONGFILE_POSIX);
1,406,613
private Map<String, String> discover() throws Exception {<NEW_LINE>if (SystemEnvProperties.VIP_SATURN_CONSOLE_URI_LIST.isEmpty()) {<NEW_LINE>throw new Exception("Please configure the parameter " + SystemEnvProperties.NAME_VIP_SATURN_CONSOLE_URI + " with env or -D");<NEW_LINE>}<NEW_LINE>int size = SystemEnvProperties.VI...
LogEvents.ExecutorEvent.INIT, "ZK connection string is blank!");
1,360,807
public void printActiveWork(PrintWriter writer) {<NEW_LINE>final Instant now = Instant.now();<NEW_LINE>// The max number of keys in COMMITTING or COMMIT_QUEUED status to be shown.<NEW_LINE>final int maxCommitPending = 50;<NEW_LINE>int commitPendingCount = 0;<NEW_LINE>writer.println("<table border=\"1\" " + "style=\"bor...
Work work = queue.peek();
1,804,467
public void execute(DelegateExecution execution) throws Exception {<NEW_LINE>Date now = new Date();<NEW_LINE>List<String> serializable <MASK><NEW_LINE>serializable.add("one");<NEW_LINE>serializable.add("two");<NEW_LINE>serializable.add("three");<NEW_LINE>byte[] bytes = "somebytes".getBytes();<NEW_LINE>// 2 for binary;<...
= new ArrayList<String>();
136,072
public final // rendering.<NEW_LINE>void appendSummaryHtml(PrintWriter writer) {<NEW_LINE>appendSpecificHtml(writer);<NEW_LINE>if (errorCount.get() > 0) {<NEW_LINE>writer.format(", %d errors, last error [ %s ]", errorCount.get(), lastError.get());<NEW_LINE>}<NEW_LINE>if (clientClosed.get()) {<NEW_LINE>writer.write(", c...
, lastResponseTimeMs.get()));
967,177
public static // TODO support formats of SIMULATOR and DFID<NEW_LINE>StateSpaceInformationItem parse(String outputMessage) {<NEW_LINE>final String OB = "(";<NEW_LINE>final String AT = ") at ";<NEW_LINE>final String COLON = ": ";<NEW_LINE>final String GENERATED = " states generated (";<NEW_LINE>final String SPM = " s/mi...
), i[3]));
1,338,736
public ClusterServicePlanResource usePlan(String externalName) {<NEW_LINE>ClusterServiceClass item = get();<NEW_LINE>Map<String, String> fields = new HashMap<>();<NEW_LINE>fields.put("spec.clusterServiceClassRef.name", item.getMetadata().getName());<NEW_LINE>fields.put("spec.externalName", externalName);<NEW_LINE>List<...
).getExternalName() + ".");
1,197,568
protected String doIt() throws Exception {<NEW_LINE>ITableRecordReference recordToAttach = null;<NEW_LINE>if (adTable != null && recordId > 0) {<NEW_LINE>recordToAttach = TableRecordReference.of(<MASK><NEW_LINE>}<NEW_LINE>final PartitionConfig config = dlmService.loadPartitionConfig(configDB);<NEW_LINE>final CreatePart...
adTable.getAD_Table_ID(), recordId);
436,817
public void run() {<NEW_LINE>parentCommand.parentCommand.configureLogging(false);<NEW_LINE>blockImportFiles.addAll(blockImportFileOption);<NEW_LINE>checkCommand(parentCommand);<NEW_LINE>checkNotNull(parentCommand.rlpBlockImporter);<NEW_LINE>checkNotNull(parentCommand.jsonBlockImporterFactory);<NEW_LINE>if (blockImportF...
format, blockImportFiles.size());
314,169
public DataQualityConfiguration parse(Map<String, String> inputParameterValue, DataQualityTaskExecutionContext context) throws DataQualityException {<NEW_LINE>List<DqRuleExecuteSql> dqRuleExecuteSqlList = JSONUtils.toList(context.getExecuteSqlList(), DqRuleExecuteSql.class);<NEW_LINE>DqRuleExecuteSql statisticsSql = Ru...
RuleParserUtils.getReaderConfigList(inputParameterValue, context);
1,785,163
default String formatValue(final Value value) {<NEW_LINE>if (value == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>TypeRepresentation type = (TypeRepresentation) value.type();<NEW_LINE>switch(type.constructor()) {<NEW_LINE>case LIST:<NEW_LINE>return listAsString(value.asList(this::formatValue));<NEW_LINE>case MAP:<N...
nodeAsString(value.asNode());
1,458,209
List<WFCMessage.Message> loadRemoteMessages(String user, WFCMessage.Conversation conversation, long beforeUid, int count, Collection<Integer> contentTypes, String channelOwner) {<NEW_LINE>List<WFCMessage.Message> messages = new ArrayList<>();<NEW_LINE>long[] before = new long[1];<NEW_LINE>before[0] = beforeUid;<NEW_LIN...
), messages, contentTypes, channelOwner);
1,797,715
private void cmd_select() {<NEW_LINE>log.info("");<NEW_LINE>WarehouseId warehouseId = attributeContext.getWarehouseId();<NEW_LINE>final <MASK><NEW_LINE>if (docTypeId != null) {<NEW_LINE>final I_C_DocType docType = Services.get(IDocTypeDAO.class).getById(docTypeId);<NEW_LINE>String docBaseType = docType.getDocBaseType()...
DocTypeId docTypeId = attributeContext.getDocTypeId();
1,270,461
public Chunk readChunk(int x, int z) throws IOException {<NEW_LINE>int index = getChunkOffset(x, z);<NEW_LINE>if (index < 0 || index >= 4096) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>this.lastUsed = System.currentTimeMillis();<NEW_LINE>if (!this.isChunkGenerated(index)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>tr...
getLogger().error("Invalid compression type");
1,056,882
private static void runPing(final Aeron aeron) throws InterruptedException {<NEW_LINE>System.out.println("Publishing Ping at " + PING_CHANNEL + " on stream id " + PING_STREAM_ID);<NEW_LINE>System.out.println("Subscribing Pong at " + PONG_CHANNEL + " on stream id " + PONG_STREAM_ID);<NEW_LINE>System.out.println("Message...
ContinueBarrier barrier = new ContinueBarrier("Execute again?");
1,451,148
public // that apply here<NEW_LINE>long processSyncReadRequest(long numBytes, int timeout) throws IOException {<NEW_LINE>long bytesRead = 0;<NEW_LINE>boolean freeJIT = false;<NEW_LINE>IOException exThisTime = null;<NEW_LINE>immedTimeoutRequested = false;<NEW_LINE>setJITAllocateAction(false);<NEW_LINE>this.jITAllocatedD...
.allocateDirect(getJITAllocateSize()));
1,087,746
public void deleteSubscription(String subId, boolean force) throws SINotAuthorizedException, SIDurableSubscriptionNotFoundException, SIDestinationLockedException, SIResourceException, SIIncorrectCallException, SINotPossibleInCurrentConfigurationException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntry...
exit(tc, "deleteSubscription", "SubId is null");
496,812
final ExportImageResult executeExportImage(ExportImageRequest exportImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
336,847
List<OrderDecorator> buildCustomFilterList(Element element, ParserContext pc) {<NEW_LINE>List<Element> customFilterElts = DomUtils.getChildElementsByTagName(element, Elements.CUSTOM_FILTER);<NEW_LINE>List<OrderDecorator> customFilters = new ArrayList<>();<NEW_LINE>for (Element elt : customFilterElts) {<NEW_LINE>String ...
before = elt.getAttribute(ATT_BEFORE);
513,144
public Range unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>Range range = new Range();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<NEW_LINE>XMLE...
().unmarshall(context));
1,448,316
final UpdateDocumentResult executeUpdateDocument(UpdateDocumentRequest updateDocumentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDocumentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());