idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,093,566
final CreatePermissionResult executeCreatePermission(CreatePermissionRequest createPermissionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPermissionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,768,797
private void createFileNameBrowseButtons(Composite parent) {<NEW_LINE>new Label(parent, SWT.NONE);<NEW_LINE>Composite buttonComposite = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayout layout = new GridLayout(2, false);<NEW_LINE>layout.marginHeight = 0;<NEW_LINE>layout.marginWidth = 0;<NEW_LINE>buttonComposite.setL...
Button(buttonComposite, SWT.NONE);
450,300
public static List<RawTypeSubstitution> loadRawTypeSubstitutions(final Connection connection, final INaviModule module) throws CouldntLoadDataException {<NEW_LINE>Preconditions.checkNotNull(connection, "Error: connection argument can not be null");<NEW_LINE><MASK><NEW_LINE>final String query = " SELECT * FROM load_type...
Preconditions.checkNotNull(module, "Error: module argument can not be null");
1,115,749
private boolean initializeOpenVRLibrary() {<NEW_LINE>if (initialized) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String target = "";<NEW_LINE>switch(OS.get()) {<NEW_LINE>case WINDOWS:<NEW_LINE>// Windows<NEW_LINE>target = "win32-" + (OS.IS_64 ? "x86-64" : "x86");<NEW_LINE>break;<NEW_LINE>case MACOSX:<NEW_LINE>// osx<N...
logger.info("Adding OpenVR search path: " + path);
61,280
private boolean initGrid(final GridTab mTab, final boolean onlyMultiRow, final int WindowNo, final APanel aPanel, final GridWindow mWindow, final boolean lazyInitialization) {<NEW_LINE>log.debug("Init: {}", mTab);<NEW_LINE>Check.assumeNotNull(mTab, "mTab not null");<NEW_LINE>m_mTab = mTab;<NEW_LINE>m_WindowNo = WindowN...
final SideActionsGroupsListPanel actionsSidePanel = new SideActionsGroupsListPanel();
1,208,109
private boolean parseNextBinding() {<NEW_LINE>String line;<NEW_LINE>try {<NEW_LINE>line = this.reader.readLine();<NEW_LINE>// Once EOF has been reached we'll see null for this call so we can return false because there are no further bindings<NEW_LINE>if (line == null)<NEW_LINE>return false;<NEW_LINE>this.lineNum++;<NEW...
emptyString) : BindingFactory.empty();
397,696
public Request<ListServerCertificateTagsRequest> marshall(ListServerCertificateTagsRequest listServerCertificateTagsRequest) {<NEW_LINE>if (listServerCertificateTagsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListServerCertificateTags...
(listServerCertificateTagsRequest.getMarker()));
1,836,864
private static Map<Integer, Object> buildTriTree(List<Binding> allBindings) {<NEW_LINE>Map<Integer, Object> trieTree = new HashMap<Integer, Object>();<NEW_LINE>for (Binding field : allBindings) {<NEW_LINE>for (String fromName : field.fromNames) {<NEW_LINE>byte[] fromNameBytes = fromName.getBytes();<NEW_LINE>Map<Byte, O...
HashMap<Byte, Object>();
544,533
public void addSign(byte[] privateKey, AccountStore accountStore) throws PermissionException, SignatureException, SignatureFormatException {<NEW_LINE>Transaction.Contract contract = this.transaction.<MASK><NEW_LINE>int permissionId = contract.getPermissionId();<NEW_LINE>byte[] owner = getOwner(contract);<NEW_LINE>Accou...
getRawData().getContract(0);
434,834
public static BufferedImage createFlipped(final Image pImage, final int pAxis) {<NEW_LINE>switch(pAxis) {<NEW_LINE>case FLIP_HORIZONTAL:<NEW_LINE>case FLIP_VERTICAL:<NEW_LINE>// TODO case FLIP_BOTH:?? same as rotate 180?<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>throw new IllegalArgumentException("Illegal direction: "...
.scale(1, -1);
907,875
private void putHashIndexTask(Transaction t, Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata) {<NEW_LINE>Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue> indexMap = HashM...
hiTable = tables.getHotspottyDataStreamHashAidxTable(t);
1,344,854
public void propagate(InstanceState state) {<NEW_LINE>// get attributes<NEW_LINE>final var dataWidth = state.getAttributeValue(StdAttr.FP_WIDTH);<NEW_LINE>// compute outputs<NEW_LINE>final var a = state.getPortValue(IN0);<NEW_LINE>final var b = state.getPortValue(IN1);<NEW_LINE>final var a_val = dataWidth.getWidth() ==...
.createKnown((float) out_val);
1,437,434
public void stateChanged(javax.swing.event.ChangeEvent e) {<NEW_LINE>EditorPane codePane = null;<NEW_LINE>JTabbedPane tab = (JTabbedPane) e.getSource();<NEW_LINE>int i = tab.getSelectedIndex();<NEW_LINE>if (i >= 0) {<NEW_LINE>codePane = getPaneAtIndex(i);<NEW_LINE>String fname = codePane.getCurrentSrcDir();<NEW_LINE>if...
getCurrentCodePane().getSikuliContentType());
532,071
private void createParametersGroup(Composite parent) {<NEW_LINE>Group composite = UIUtils.createControlGroup(parent, "Function parameters", 2, GridData.FILL_BOTH, SWT.DEFAULT);<NEW_LINE>parametersTable = new Table(composite, SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);<NEW_LINE>final Gri...
Text) control).getText();
782,845
public Bundle saveInstanceState() {<NEW_LINE>Bundle state = null;<NEW_LINE>// FIXME: child activities will freeze as part of onPaused. Do we<NEW_LINE>// need to do this here?<NEW_LINE>final int N = mActivityArray.size();<NEW_LINE>for (int i = 0; i < N; i++) {<NEW_LINE>final LocalActivityRecord r = mActivityArray.get(i)...
r.id, r.instanceState);
1,259,464
static Object doObject(Klass receiver, Object[] arguments, @Exclusive @Cached LookupDeclaredMethod lookupMethod, @Exclusive @Cached InvokeEspressoNode invoke) throws UnsupportedTypeException, ArityException, UnsupportedMessageException {<NEW_LINE>ObjectKlass objectKlass = (ObjectKlass) receiver;<NEW_LINE>Method.MethodV...
newObject = StaticObject.createNew(objectKlass);
103,722
final ConfigureHealthCheckResult executeConfigureHealthCheck(ConfigureHealthCheckRequest configureHealthCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(configureHealthCheckRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
131,021
public void doAction() throws Exception {<NEW_LINE>if (projectManager == null || executorManagerAdapter == null) {<NEW_LINE>throw new Exception("ExecuteFlowAction not properly initialized!");<NEW_LINE>}<NEW_LINE>final Project project = FlowUtils.getProject(projectManager, this.projectId);<NEW_LINE>final Flow flow = Flo...
) + "." + this.flowName);
53,119
public static int readLengthEncodedInteger(MySQLMessage mm) {<NEW_LINE>// should transfer byte to int to make sure it's<NEW_LINE>int result = mm.read();<NEW_LINE>// not negative<NEW_LINE>if (result == 251) {<NEW_LINE>return -1;<NEW_LINE>} else if (result == 0xfc) {<NEW_LINE>byte b2 = mm.read();<NEW_LINE>byte b3 = mm.re...
byte b2 = mm.read();
1,236,358
private AccessPath createAccessPathInMethod(Taint t, SootMethod sm) {<NEW_LINE>// Convert the taints to Soot objects<NEW_LINE>SootField[] fields = safeGetFields(t.getAccessPath());<NEW_LINE>Type[] types = safeGetTypes(t.getAccessPath(), fields);<NEW_LINE>Type baseType = TypeUtils.getTypeFromString(t.getBaseType());<NEW...
false, true, ArrayTaintType.ContentsAndLength);
1,370,670
public void configureEDIRoute(final DataFormat jaxb, final DecimalFormat decimalFormat) {<NEW_LINE>final SmooksDataFormat sdf = getSDFForConfiguration("edi.smooks.config.xml.desadv");<NEW_LINE>// FRESH-360: provide our own converter, so we don't anymore need to rely on the system's default charset when writing the EDI ...
HEADER_ADClientValueAttr, xmlDesadv.getADClientValueAttr());
328,270
private RestResultBean doDeleteChallengeData(final RestRequest restRequest, final String username) throws PwmUnrecoverableException {<NEW_LINE>final TargetUserIdentity targetUserIdentity = RestUtility.resolveRequestedUsername(restRequest, username);<NEW_LINE>try {<NEW_LINE>final ChaiUser chaiUser;<NEW_LINE>final String...
.getDomain().getCrService();
762,784
private void scheduleNextNotificationIfRepeating(Bundle bundle) {<NEW_LINE>String repeatType = bundle.getString("repeatType");<NEW_LINE>long repeatTime = (long) bundle.getDouble("repeatTime");<NEW_LINE>if (repeatType != null) {<NEW_LINE>long fireDate = (long) bundle.getDouble("fireDate");<NEW_LINE>boolean validRepeatTy...
.format("Invalid repeatType specified as %s", repeatType));
379,662
public void onClick(DialogInterface dialogInterface, int which) {<NEW_LINE>switch(which) {<NEW_LINE>case 1:<NEW_LINE>Intent getImageByCamera = new Intent("android.media.action.IMAGE_CAPTURE");<NEW_LINE>ContentValues values = new ContentValues(1);<NEW_LINE>values.put(MediaStore.<MASK><NEW_LINE>mPath = getContentResolver...
Images.Media.MIME_TYPE, "image/jpeg");
1,402,444
public static void nv21ToPlanarRgb_U8(byte[] dataNV, Planar<GrayU8> output) {<NEW_LINE>GrayU8 R = output.getBand(0);<NEW_LINE>GrayU8 G = output.getBand(1);<NEW_LINE>GrayU8 B = output.getBand(2);<NEW_LINE>final int yStride = output.width;<NEW_LINE>final int uvStride = output.width / 2;<NEW_LINE>final int startUV = yStri...
- 218 * cb) >> 10;
513,984
public void calc(ComContext context) {<NEW_LINE>Iterable<Tuple3<Double, Double, Vector>> labledVectors = <MASK><NEW_LINE>Tuple2<DenseVector, double[]> grad = context.getObj(OptimVariable.dir);<NEW_LINE>Tuple2<DenseVector, double[]> curCoef = context.getObj(OptimVariable.currentCoef);<NEW_LINE>DenseMatrix hessian = cont...
context.getObj(OptimVariable.trainData);
1,507,225
final DescribeRecoveryPointResult executeDescribeRecoveryPoint(DescribeRecoveryPointRequest describeRecoveryPointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRecoveryPointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Backup");
416,363
public AdditionalResultAttribute unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AdditionalResultAttribute additionalResultAttribute = new AdditionalResultAttribute();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
JsonToken token = context.getCurrentToken();
1,611,771
protected void calcAsync() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>Map<Integer, ServiceSummary> summaryMap = new HashMap<Integer, ServiceSummary>();<NEW_LINE>Map<Integer, List<Integer>> loadTextMap = new HashMap<Integer, List<Integer>>();<NEW_LINE>LongEnumer longEnume...
.sumTime += d.p.elapsed;
1,016,371
public static byte[] encodeGSSUPToken(Codec codec, String user, @Sensitive char[] pwd, String target) {<NEW_LINE>byte[] result = null;<NEW_LINE>try {<NEW_LINE>// create and encode a GSSUP initial context token<NEW_LINE>InitialContextToken init_token = new InitialContextToken();<NEW_LINE>init_token.<MASK><NEW_LINE>init_...
username = user.getBytes("UTF-8");
108,960
public static void main(String[] args) {<NEW_LINE>final OpenWebcamDialog.Selection s = OpenWebcamDialog.showDialog(null);<NEW_LINE>if (s == null)<NEW_LINE>return;<NEW_LINE>int windowWidth, windowHeight;<NEW_LINE>windowWidth = 200;<NEW_LINE>windowHeight = 200;<NEW_LINE>ImageZoomPanel gui = new ImageZoomPanel();<NEW_LINE...
= s.camera.getImage();
574,897
public Response session() {<NEW_LINE>if (!authenticate()) {<NEW_LINE>throw new ForbiddenClientException();<NEW_LINE>}<NEW_LINE>// Get the value of the session token<NEW_LINE>String authToken = getAuthToken();<NEW_LINE><MASK><NEW_LINE>// The guest user cannot see other sessions<NEW_LINE>if (!principal.isGuest()) {<NEW_L...
JsonArrayBuilder sessions = Json.createArrayBuilder();
1,744,139
public void rewriteServerbound(ByteBuf packet, int oldId, int newId) {<NEW_LINE>super.rewriteServerbound(packet, oldId, newId);<NEW_LINE>// Special cases<NEW_LINE>int readerIndex = packet.readerIndex();<NEW_LINE>int packetId = DefinedPacket.readVarInt(packet);<NEW_LINE>int packetIdLength = packet.readerIndex() - reader...
packet.writerIndex(readerIndex + packetIdLength);
702,713
public StepExecutionFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StepExecutionFilter stepExecutionFilter = new StepExecutionFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
1,524,241
public static Map<String, Object> convertPropertyValues(MutablePropertyValues propertyValues) {<NEW_LINE>Map<String, Object> referenceProps = new LinkedHashMap<>();<NEW_LINE>for (PropertyValue propertyValue : propertyValues.getPropertyValueList()) {<NEW_LINE>String propertyName = propertyValue.getName();<NEW_LINE>Objec...
toArray(new Object[0]);
583,449
protected void internalSetBookieAffinityGroup(BookieAffinityGroupData bookieAffinityGroup) {<NEW_LINE>validateSuperUserAccess();<NEW_LINE>log.info("[{}] Setting bookie-affinity-group {} for namespace {}", clientAppId(), bookieAffinityGroup, this.namespaceName);<NEW_LINE>if (namespaceName.isGlobal()) {<NEW_LINE>// check...
clientAppId(), namespaceName, localPolicies);
281,987
protected void checkForFire(final World worldIn, final BlockPos pos) {<NEW_LINE>if (FluidConfig.rocketFuelIsExplosive.get()) {<NEW_LINE>NNList.FACING.apply(new Callback<EnumFacing>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void apply(@Nonnull EnumFacing side) {<NEW_LINE>IBlockState neighbor = worldIn.getBlockSta...
BlockPos up = pos.up();
1,355,016
public static String patch(String source, ShaderType type, boolean hasGeometry) {<NEW_LINE>if (source.contains("iris_")) {<NEW_LINE>throw new IllegalStateException("Shader is attempting to exploit internal Iris code!");<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>// Add entity color -> overlay color attribute support.<NEW_LINE...
StringTransformations transformations = new StringTransformations(source);
200,976
public static <T> T executeDeclaredMethod(Object o, String methodName, Object... args) {<NEW_LINE>try {<NEW_LINE>Method method;<NEW_LINE>if (args != null && args.length > 0) {<NEW_LINE>Class<?>[] types = new Class<?>[args.length];<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>types[i] = args[i].getClass();<...
getClass().getDeclaredMethod(methodName);
444,391
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl();<NEW_LINE>Cards nonlands = new CardsImpl();<NEW_LINE>for (UUID opponentId : game.getOpponents(source.getControllerId())) ...
getPlayer(source.getControllerId());
578,797
public void onEnable() {<NEW_LINE>PlanSpongeComponent component = DaggerPlanSpongeComponent.builder().plan(this).abstractionLayer(abstractionLayer).game(Sponge.<MASK><NEW_LINE>try {<NEW_LINE>system = component.system();<NEW_LINE>serverShutdownSave = component.serverShutdownSave();<NEW_LINE>locale = system.getLocaleSyst...
getGame()).build();
1,557,903
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {<NEW_LINE>String dimensionIdentifier = null;<NEW_LINE>String levelName = null;<NEW_LINE>if (version.compareTo(ProtocolVersion.MINECRAFT_1_16) >= 0) {<NEW_LINE>if (version.compareTo(ProtocolVersion.MINECRAFT_1_16_2) >= 0) {<NEW_...
boolean isDebug = buf.readBoolean();
1,439,346
private Sendung createGODeliveryOrder(final DeliveryOrder request, final GOOrderStatus status) {<NEW_LINE>final OrderId orderId = request.getOrderId();<NEW_LINE>final GoDeliveryOrderData goDeliveryOrderData = GoDeliveryOrderData.ofDeliveryOrder(request);<NEW_LINE>final HWBNumber hwbNumber = goDeliveryOrderData.getHwbNu...
(request.getDeliveryDate()));
929,972
private void doSetHomePath(final String homePath, final SdkType sdkType) {<NEW_LINE>if (homePath == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setHomePathValue(homePath.replace('/', File.separatorChar));<NEW_LINE>final String newSdkName = suggestSdkName(homePath);<NEW_LINE>((SdkImpl) mySdk).setName(newSdkName);<NEW_L...
(Sdk) mySdk.clone();
1,698,826
public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedException, RuleErrorException, ActionConflictException {<NEW_LINE>androidSemantics.checkForMigrationTag(ruleContext);<NEW_LINE>// If the user didn't specify --proguard_top, go with the proguard attribute in the android_sdk<NEW_LINE>// rule. Other...
sourceProperties = ruleContext.getHostPrerequisiteArtifact("source_properties");
152,788
// Unmarshall JSON into Java object where one of the fields is an interface<NEW_LINE>// and JsonbDeserializer disambiguates which subclass should be used.<NEW_LINE>// Use JsonbProvider default provider to obtain the JsonbBuilder.<NEW_LINE>@Test<NEW_LINE>public void testJsonbDeserializer() throws Exception {<NEW_LINE>Re...
(TimeZone.getTimeZone("US/Central"));
201,197
private Map<String, String> scanModuleAdditional(org.w3c.dom.Element element) {<NEW_LINE>Map<String, String> res = new HashMap<String, String>();<NEW_LINE>org.w3c.dom.<MASK><NEW_LINE>for (int i = 0; i < nodes.getLength(); i++) {<NEW_LINE>org.w3c.dom.Node node = nodes.item(i);<NEW_LINE>if (node.getNodeType() == org.w3c....
NodeList nodes = element.getChildNodes();
1,191,225
public void onClick(View _view) {<NEW_LINE>try {<NEW_LINE>final AlertDialog.Builder Settings = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog);<NEW_LINE>String Title = "<b>".concat(open_settings.getText().toString().concat("</b>"));<NEW_LINE>String TitleColor = "1DB954";<NEW_LINE>Settings.setTitle(Html...
0xFFE0E0E0, 30, SketchwareUtil.BOTTOM);
203,684
private void definePackage(String packageName, String packagePath, URL jarURL, Manifest manifest) {<NEW_LINE>Package pkg = getPackage(packageName);<NEW_LINE>if (pkg != null) {<NEW_LINE>if (pkg.isSealed()) {<NEW_LINE>if (!pkg.isSealed(jarURL)) {<NEW_LINE>throw new SecurityException("Seal violation: Package " + packageNa...
Name.IMPLEMENTATION_TITLE, packageAttributes, mainAttributes);
1,005,277
public static void error(int WindowNo, Container c, String AD_Message, String msg) {<NEW_LINE>log.info(AD_Message + " - " + msg);<NEW_LINE>if (CLogMgt.isLevelFinest())<NEW_LINE>Trace.printStack();<NEW_LINE>Properties ctx = Env.getCtx();<NEW_LINE>StringBuffer out = new StringBuffer();<NEW_LINE>if (AD_Message != null && ...
toString(), JOptionPane.ERROR_MESSAGE);
1,091,463
protected void addPlatformSpecificLibraryLocationInformationForStatic(Artifact artifact, StringBuffer buffer) throws UMAException {<NEW_LINE>buffer.append(artifact.getTargetNameWithScope() + "_depend=" <MASK><NEW_LINE>buffer.append("ifeq ($(UMA_TARGET_TYPE),EXE)\n");<NEW_LINE>buffer.append(artifact.getTargetNameWithSco...
+ getLibName(artifact) + "\n");
716,115
protected CollectionRest put(Context context, HttpServletRequest request, String apiCategory, String model, UUID id, JsonNode jsonNode) throws RepositoryMethodNotImplementedException, SQLException, AuthorizeException {<NEW_LINE>CollectionRest collectionRest;<NEW_LINE>try {<NEW_LINE>collectionRest = new ObjectMapper().r...
collection, utils.obtainProjection());
247,872
private Map<Executable, String[]> inspectClass(Class<?> clazz) {<NEW_LINE>InputStream is = clazz.getResourceAsStream(ClassUtils.getClassFileName(clazz));<NEW_LINE>if (is == null) {<NEW_LINE>// We couldn't load the class file, which is not fatal as it<NEW_LINE>// simply means this method of discovering parameter names w...
(clazz, map), 0);
411,014
private void applyHeadersToMailMessage(MailMessage mailMessage, MessageHeaders headers) {<NEW_LINE>String subject = headers.get(MailHeaders.SUBJECT, String.class);<NEW_LINE>if (subject != null) {<NEW_LINE>mailMessage.setSubject(subject);<NEW_LINE>}<NEW_LINE>String[] to = retrieveHeaderValueAsStringArray(headers, MailHe...
MailHeaders.FROM, String.class);
1,071,682
public void addOccurrenceHighlights(@Nonnull Editor editor, @Nonnull PsiReference[] occurrences, @Nonnull TextAttributes attributes, boolean hideByTextChange, Collection<RangeHighlighter> outHighlighters) {<NEW_LINE>if (occurrences.length == 0)<NEW_LINE>return;<NEW_LINE>int flags = HIDE_BY_ESCAPE;<NEW_LINE>if (hideByTe...
InjectedLanguageUtil.openEditorFor(containingFile, project);
971,943
private void startLookup() {<NEW_LINE>contacts_to_query_mon = new AEMonitor("DHTControl:ctq");<NEW_LINE>contacts_to_query = getClosestContactsSet(lookup_id, K, false);<NEW_LINE>level_map = new LightHashMap<>();<NEW_LINE>// record the set of contacts we've queried to avoid re-queries<NEW_LINE>contacts_queried = new Byte...
lookup_id, false).getSet();
52,480
private final void accept0(Context<?> ctx) {<NEW_LINE>SelectQueryImpl<<MASK><NEW_LINE>// [#3679] [#10540] Without standardised UNION subquery column names,<NEW_LINE>// Derby projects column indexes 1, 2, 3 as names, but<NEW_LINE>// they cannot be referenced. In that case, revert to<NEW_LINE>// actual derived table usag...
R> q = selectQueryImpl(query);
905,029
private Component components() {<NEW_LINE>VerticalLayout layout = VerticalLayout.create();<NEW_LINE>FileChooserTextBoxBuilder builder = FileChooserTextBoxBuilder.create(null);<NEW_LINE>layout.add(builder.build());<NEW_LINE>ToggleSwitch toggleSwitch = ToggleSwitch.create(true);<NEW_LINE>toggleSwitch.addValueListener(eve...
"toggle")).showAsync());
1,327,719
public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException {<NEW_LINE>OResultSet upstream = getPrev().get().syncPull(ctx, nRecords);<NEW_LINE>return new OResultSet() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean hasNext() {<NEW_LINE>return upstream.hasNext();<NEW_LINE>}<NEW_LINE><NE...
? System.nanoTime() : 0;
27,890
private void processHeadOrGetAllClients(OidcOAuth20ClientProvider clientProvider, HttpServletRequest request, HttpServletResponse response) throws IOException, OidcServerException {<NEW_LINE>// If no clientId is specified, return collection of registered clients<NEW_LINE>JsonArray clientsAsJSON = GSON.toJsonTree(client...
true, true, eTag, null);
542,220
public int compareTo(update_response other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.<MASK><NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetError()).compareTo(other.isSetError());<NEW_LINE>if (lastCom...
getClass().getName());
1,463,392
private void onJoin(Session session, SessionDetails details) {<NEW_LINE>System.out.println("Joined...");<NEW_LINE>mSession = session;<NEW_LINE>SharedPreferences.Editor editor = mPrefs.edit();<NEW_LINE>editor.putString("xbr_uri", mURI);<NEW_LINE>editor.putString("xbr_realm", mRealm);<NEW_LINE>editor.apply();<NEW_LINE>mS...
String) config.get("marketmaker");
1,532,396
final RedactConversationMessageResult executeRedactConversationMessage(RedactConversationMessageRequest redactConversationMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(redactConversationMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,278,792
public static PartitionRuntimeImpl parse(SiddhiAppRuntimeBuilder siddhiAppRuntimeBuilder, Partition partition, SiddhiAppContext siddhiAppContext, int queryIndex, int partitionIndex) {<NEW_LINE>ConcurrentMap<String, AbstractDefinition> streamDefinitionMap = siddhiAppRuntimeBuilder.getStreamDefinitionMap();<NEW_LINE>Conc...
true, partitionRuntime.getPartitionName());
200,243
protected IoBuffer foldPendingMessages(int targetSize) {<NEW_LINE>log.debug("foldPendingMessages - target size: {}", targetSize);<NEW_LINE>IoBuffer result = null;<NEW_LINE>if (!pendingOutMessages.isEmpty()) {<NEW_LINE>int available = pendingOutMessages.size();<NEW_LINE>// create list to hold outgoing data<NEW_LINE>Link...
.min(164, available));
1,304,755
public CompoundTag translateToBedrock(com.github.steveice10.opennbt.tag.builtin.CompoundTag javaTag) {<NEW_LINE>CompoundTagBuilder root = CompoundTagBuilder.builder();<NEW_LINE>if (!javaTag.contains("display")) {<NEW_LINE>CompoundTagBuilder display = CompoundTagBuilder.builder();<NEW_LINE>if (javaTag.contains("name")) ...
()).getFullText());
597,865
public static File installBrokerCertificate(AsyncTestSpecification specification) throws Exception {<NEW_LINE>String caCertPem = specification.getSecret().getCaCertPem();<NEW_LINE>// First compute a stripped PEM certificate and decode it from base64.<NEW_LINE>String strippedPem = caCertPem.replaceAll(BEGIN_CERTIFICATE,...
cf = CertificateFactory.getInstance("X.509");
979,165
private <I extends ComponentInfo> List<ResolveInfo> queryComponentsInManifest(Intent intent, Function<PackageInfo, I[]> componentsInPackage, SortedMap<ComponentName, List<IntentFilter>> filters, BiConsumer<ResolveInfo, I> componentSetter) {<NEW_LINE>synchronized (lock) {<NEW_LINE>if (isExplicitIntent(intent)) {<NEW_LIN...
ComponentName componentName = componentEntry.getKey();
243,001
public void alterContents() throws IOException {<NEW_LINE>if (over == null && under == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PdfArray ar = null;<NEW_LINE>PdfObject content = PdfReader.getPdfObject(pageN.get(PdfName.CONTENTS), pageN);<NEW_LINE>if (content == null) {<NEW_LINE>ar = new PdfArray();<NEW_LINE>pageN.pu...
RESOURCES, pageResources.getResources());
436,273
public boolean process(@Nonnull VirtualFile file, IntList list) {<NEW_LINE>for (int i = 0, len = list.size(); i < len; i += 2) {<NEW_LINE>ProgressManager.checkCanceled();<NEW_LINE>if (list.get(i + 1) != myHash2)<NEW_LINE>continue;<NEW_LINE>int offset = list.get(i);<NEW_LINE>if (myFileIndex.isInSourceContent(virtualFile...
(long) myHash2 << 32));
1,670,574
private static Pair<Format, Long> parseCsdBuffer(CsdBuffer csdBuffer, String formatId) {<NEW_LINE>byte[] csdData = Arrays.copyOf(csdBuffer.data, csdBuffer.length);<NEW_LINE>int firstByte = csdData[4] & 0xFF;<NEW_LINE>int secondByte = csdData[5] & 0xFF;<NEW_LINE>int thirdByte = csdData[6] & 0xFF;<NEW_LINE>int width = (f...
secondByte & 0x0F) << 8 | thirdByte;
1,349,170
private static String modifyProgressStatusString(String step) {<NEW_LINE>if (step == null) {<NEW_LINE>return " ";<NEW_LINE>}<NEW_LINE>if (!step.startsWith("progress:")) {<NEW_LINE>return " ";<NEW_LINE>}<NEW_LINE>String[] values = step.split(":");<NEW_LINE>// the expected format is:<NEW_LINE>// progress: 87 : download a...
(DisplayFormatters.formatByteCountToKiBEtcPerSec(downAve));
204,724
void writeString(String value) throws SQLServerException {<NEW_LINE>int charsCopied = 0;<NEW_LINE>int length = value.length();<NEW_LINE>while (charsCopied < length) {<NEW_LINE>long bytesToCopy = 2 * (length - charsCopied);<NEW_LINE>if (bytesToCopy > valueBytes.length)<NEW_LINE>bytesToCopy = valueBytes.length;<NEW_LINE>...
ch >> 0) & 0xFF);
1,667,097
public static void preCheck(IFixInfo fixInfo, File baseDir) throws InstallException {<NEW_LINE>Set<UpdatedFile> updatedFiles = fixInfo.getUpdates().getFiles();<NEW_LINE>for (UpdatedFile file : updatedFiles) {<NEW_LINE>File filePath = new File(baseDir, file.getId());<NEW_LINE>isFileLocked(fixInfo.getId(), filePath);<NEW...
, fixInfo.getId()));
550,096
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);<NEW_LINE>this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);<NE...
registerListener(gravity_listener, sensor, 10000);
1,824,179
private void loadModule(ILibraryResolver resolver, IProcess proc, long textVirtualAddress, long textSize, long dataVirtualAddress, long dataSize, String fileName, String objectName, String moduleName, boolean loadingExecutable) {<NEW_LINE>// .data range will be loaded in core. .text range will be in the module itself.<...
= new LinkedList<IMemoryRange>();
1,023,580
void updateStateForPartition(Set<TrackerClient> trackerClients, int partitionId, PartitionState oldPartitionState, Long clusterGenerationId, boolean shouldForceUpdate) {<NEW_LINE>LOG.debug("Updating for partition: " + partitionId + ", state: " + oldPartitionState);<NEW_LINE>PartitionState newPartitionState = new Partit...
newPartitionState, avgClusterLatency, clusterUpdated, latestCallStatsMap);
737,782
protected void onInstruction(Instruction instruction) {<NEW_LINE>String mnemonic = instruction.getMnemonic();<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>if ("bl".equals(mnemonic) || "blx".equals(mnemonic)) {<NEW_LINE>OpInfo operands = (OpInfo) instruction.getOperands();<NEW_LINE>Operand operand ...
instruction.getSize(), args);
925,253
public Memory parse(Environment environment, Memory... args) {<NEW_LINE>if (onWarning != null)<NEW_LINE>onWarning.setTrace(environment.trace());<NEW_LINE>if (onError != null)<NEW_LINE>onError.setTrace(environment.trace());<NEW_LINE>if (onFatalError != null)<NEW_LINE>onFatalError.<MASK><NEW_LINE>InputStream stream = nul...
setTrace(environment.trace());
1,601,077
public void mouseReleased(MouseEvent e) {<NEW_LINE>editorLabel.setBorder(etchedBorder);<NEW_LINE>if (parentContainer.isEnabled()) {<NEW_LINE>if (dialog == null) {<NEW_LINE>if (parentContainer.isCanEditExp()) {<NEW_LINE>colorExpField = new JTextField();<NEW_LINE>}<NEW_LINE>final ActionListener okListener = new ActionLis...
add(tmp, BorderLayout.NORTH);
119,627
private void generateClinicians() {<NEW_LINE>Random random = new Random(999L);<NEW_LINE>for (int i = 0; i < CLINICIANS; i++) {<NEW_LINE>Person clinician = new Person(random.nextLong());<NEW_LINE>if (random.nextBoolean()) {<NEW_LINE>clinician.attributes.put(Person.GENDER, "M");<NEW_LINE>} else {<NEW_LINE>clinician.attri...
put(Person.RACE, "unknown");
1,135,591
private float[] createQuantizationMatrixFromBounds(HashMapWrappedVirtualObject boundsMm) {<NEW_LINE>float[] matrix = Matrix.identityF();<NEW_LINE>float scale = 32768;<NEW_LINE>HashMapWrappedVirtualObject min = (<MASK><NEW_LINE>HashMapWrappedVirtualObject max = (HashMapWrappedVirtualObject) boundsMm.get("max");<NEW_LINE...
HashMapWrappedVirtualObject) boundsMm.get("min");
1,390,595
private static String calculateTime(String expression, Date date) {<NEW_LINE>// After N years: $[add_months(yyyyMMdd,12*N)], the first N months: $[add_months(yyyyMMdd,-N)], etc<NEW_LINE>String value;<NEW_LINE>try {<NEW_LINE>if (expression.startsWith(Constants.TIMESTAMP)) {<NEW_LINE>String timeExpression = expression.su...
timestamp.getTime() / 1000);
558,568
public void marshall(Backup backup, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (backup == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(backup.getBackupId(), BACKUPID_BINDING);<NEW_LINE>protocolMarshall...
backup.getTagList(), TAGLIST_BINDING);
1,761,772
public synchronized void send(ClientTransactionListener listener) throws IOException {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>c_logger.traceEntry(this, "send", listener);<NEW_LINE>}<NEW_LINE>if (!isLiveMessage("send"))<NEW_LINE>return;<NEW_LINE>if (isCommitted()) {<NEW_LINE>if (c_logger.isTraceDebu...
boolean wasSent = transaction.sendRequest();
363,294
private void processUserIdentity(final UserIdentity userIdentity) throws PwmUnrecoverableException {<NEW_LINE>if (!canRunOnThisServer() || pwNotifyService.status() == PwmService.STATUS.CLOSED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>examinedCount.incrementAndGet();<NEW_LINE>final ChaiUser theUser = pwmDomain.getProxiedC...
userIdentity.toDisplayString() + "', password expiration is in the past");
1,550,576
public int toBytes(byte[] buf, int offset) {<NEW_LINE>// write the number of versions<NEW_LINE>ByteUtils.writeShort(buf, (short) versionMap.size(), offset);<NEW_LINE>offset += ByteUtils.SIZE_OF_SHORT;<NEW_LINE>// write the size of each version in bytes<NEW_LINE>byte versionSize = ByteUtils.numberOfBytesRequired(getMaxV...
offset + ByteUtils.SIZE_OF_SHORT, versionSize);
1,852,705
public void execute(DiagramHandler handler) {<NEW_LINE>super.execute(handler);<NEW_LINE>if (entities == null) {<NEW_LINE>entities = new Vector<GridElement>();<NEW_LINE>for (GridElement e : ClipBoard.getInstance().paste()) {<NEW_LINE>GridElement clone = ElementFactorySwing.createCopy(e, handler);<NEW_LINE>entities.add(c...
.getDrawPanel().getOriginAtDefaultZoom();
1,060,145
public int createHmilyParticipant(final HmilyParticipant hmilyParticipant) throws HmilyRepositoryException {<NEW_LINE>try {<NEW_LINE>byte[] transId = buildHmilyParticipantRealPath(hmilyParticipant.getTransId()).getBytes();<NEW_LINE>boolean exist = jedisClient.hexists(<MASK><NEW_LINE>if (!exist) {<NEW_LINE>hmilyParticip...
HMILY_TRANSACTION_PARTICIPANT.getBytes(), transId);
130,488
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>boolean result = super.tryReadElementFromXml(reader);<NEW_LINE>if (!result) {<NEW_LINE>if (reader.getLocalName().equals(XmlElementNames.IsContactPhoto)) {<NEW_LINE>this.isContactPhoto = reader.readElementValue(Boolean.class);<N...
.content = reader.readBase64ElementValue();
251,338
final AddProfileKeyResult executeAddProfileKey(AddProfileKeyRequest addProfileKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addProfileKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
192,047
private HBox createEntry(Environment environment) {<NEW_LINE>JFXButton renameButton = new JFXButton();<NEW_LINE>renameButton.setGraphic(new FontAwesomeIconView(FontAwesomeIcon.PENCIL, "1.5em"));<NEW_LINE>renameButton.setOnAction(e -> triggerRenameDialog(environment));<NEW_LINE>JFXButton editButton = new JFXButton();<NE...
(FontAwesomeIcon.LIST, "1.5em"));
1,494,741
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void suspend(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.debugger.jpda.JDIExcepti...
jpda.JDIExceptionReporter.report(ex);
582,224
public void createMenuItems(final Bundle savedInstanceState) {<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (args != null) {<NEW_LINE>pointType = PointType.valueOf(args.getString(POINT_TYPE_KEY));<NEW_LINE>}<NEW_LINE>if (savedInstanceState != null && savedInstanceState.getBoolean(IS_SORTED)) {<NEW_LINE>sortByDist...
= getMyApplication().getFavoritesHelper();
909,402
public Request<ModifyGlobalClusterRequest> marshall(ModifyGlobalClusterRequest modifyGlobalClusterRequest) {<NEW_LINE>if (modifyGlobalClusterRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyGlobalClusterRequest> request = new Default...
(modifyGlobalClusterRequest.getNewGlobalClusterIdentifier()));
227,114
public static MutableRoaringBitmap xor(final ImmutableRoaringBitmap x1, final ImmutableRoaringBitmap x2) {<NEW_LINE>final MutableRoaringBitmap answer = new MutableRoaringBitmap();<NEW_LINE>MappeableContainerPointer i1 = x1.highLowContainer.getContainerPointer();<NEW_LINE>MappeableContainerPointer i2 = x2.highLowContain...
), i1.getContainer());
1,619,339
public Description matchClass(ClassTree tree, VisitorState state) {<NEW_LINE>ClassSymbol symbol = getSymbol(tree);<NEW_LINE>if (symbol == null || !symbol.isEnum()) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>if (ASTHelpers.hasAnnotation(symbol, Immutable.class, state) && !implementsExemptInterface(symbol, state)) {...
).getAnnotations(), "Immutable");
1,299,736
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplWindow = "@public create window MyWindow#keepall as (theString string);\n" + "on SupportBean merge MyWindow insert select theString;\n";<NEW_LINE>env.compileDeploy(eplWindow, path);<NEW_LINE>env.sendEven...
0].get("c0"));
222,777
private void scanEntities() {<NEW_LINE>if (entityDbName != null && !entityDbName.isEmpty() && entityPackage != null && !entityPackage.isEmpty()) {<NEW_LINE>try {<NEW_LINE>List<Class<?>> entities = new DalClassScanner(new ClassScanFilter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean accept(Class<?> clazz) {<N...
entity.getAnnotation(Database.class);
339,926
public InteractionResult onItemUseFirst(ItemStack stack, UseOnContext ctx) {<NEW_LINE>Player player = ctx.getPlayer();<NEW_LINE>if (player == null)<NEW_LINE>return InteractionResult.PASS;<NEW_LINE>Level world = ctx.getLevel();<NEW_LINE><MASK><NEW_LINE>BlockState hitState = world.getBlockState(pos);<NEW_LINE>if (player....
BlockPos pos = ctx.getClickedPos();