idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
842,673
private void cleanupRecentHandshakes(int calls) {<NEW_LINE>boolean started = false;<NEW_LINE>long time = ClockUtil.nanoRealtime();<NEW_LINE>int loop = 0;<NEW_LINE>int count = 0;<NEW_LINE>int size = recentHandshakesCounter.get();<NEW_LINE>int log = Math.max(10000, size / 5);<NEW_LINE>boolean full = (calls % 6) == 0;<NEW...
.toMillis(time), qualifier);
285,983
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>logger.debug(effectivePerson.getDistinguishedName());<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>HotPictureInfoService hotPictureInfoService = new HotPictureInfoService();<NEW_LINE>Wi wi...
convertToWrapIn(jsonElement, Wi.class);
1,382,479
private void configureChannelPipelineHandlers() {<NEW_LINE>Configs configs = this.httpClientConfig.getConfigs();<NEW_LINE>if (this.httpClientConfig.getProxy() != null) {<NEW_LINE>this.httpClient = this.httpClient.proxy(typeSpec -> typeSpec.type(ProxyProvider.Proxy.HTTP).address(this.httpClientConfig.getProxy().getAddre...
wiretap(REACTOR_NETWORK_LOG_CATEGORY, LogLevel.INFO);
507,161
public void validateJoinRequest(JoinMessage joinMessage) {<NEW_LINE>// check joining member's major.minor version is same as current cluster version's major.minor numbers<NEW_LINE>MemberVersion memberVersion = joinMessage.getMemberVersion();<NEW_LINE>Version clusterVersion = node.getClusterService().getClusterVersion()...
= "Joining node's version " + memberVersion + " is not compatible with cluster version " + clusterVersion;
369,072
private boolean parseFile(File directory, String file) {<NEW_LINE>BufferedInputStream inputStream;<NEW_LINE>CharStream input;<NEW_LINE>try {<NEW_LINE>inputStream = new BufferedInputStream(new FileInputStream(new File(directory, file)));<NEW_LINE>currentFile = file;<NEW_LINE>input = CharStreams.fromStream(inputStream);<...
"':\n" + e.getMessage());
1,561,505
private void denormalizeSdata(Sdata theSdata) {<NEW_LINE>Map<String, Room> roomMap = new HashMap<String, Room>();<NEW_LINE>for (Room i : theSdata.getRooms()) roomMap.put(i.getId(), i);<NEW_LINE>Map<String, Categorie> categoryMap = new HashMap<String, Categorie>();<NEW_LINE>for (Categorie i : theSdata.getCategoriess()) ...
()).getName());
570,621
private Criterion mergeCriteria(final Criterion one, final Criterion two) throws IllegalArgumentException {<NEW_LINE>final Criterion.Builder builder = new Criterion.Builder();<NEW_LINE>builder.withId(this.mergeCriteriaStrings(one.getId().orElse(null), two.getId().orElse(null), ID_FIELD));<NEW_LINE>builder.withName(this...
orElse(null), VERSION_FIELD));
337,905
private void processJarFile(String filename) {<NEW_LINE>File f = findJarFile(filename);<NEW_LINE>if (f == null) {<NEW_LINE>ErrorUtil.error("No such file: " + filename);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Warn if source debugging is specified for a jar file, since native debuggers<NEW_LINE>// don't support Java-lik...
error(e.getMessage());
1,031,098
public boolean isSystem64Bit() {<NEW_LINE>if (isSystem64Bit == null) {<NEW_LINE>isSystem64Bit = false;<NEW_LINE>try {<NEW_LINE>Process p = Runtime.getRuntime().exec("uname -m");<NEW_LINE>// Try if command exited. Wait max 1s.<NEW_LINE>for (int i = 0; i < 5; i++) {<NEW_LINE>try {<NEW_LINE>p.exitValue();<NEW_LINE>break;<...
String line = br.readLine();
1,721,917
public byte[] encode(final int[] ld) {<NEW_LINE>final BitCoderContext ctx = ctxEndode;<NEW_LINE>ctx.reset();<NEW_LINE>int skippedTags = 0;<NEW_LINE>int nonNullTags = 0;<NEW_LINE>// (skip first bit ("reversedirection") )<NEW_LINE>// all others are generic<NEW_LINE>for (int inum = 1; inum < lookupValues.size(); inum++) {...
final int d = ld[inum];
1,181,114
private JComponent buildWadlContentTab() {<NEW_LINE>partTabs = new JTabbedPane();<NEW_LINE>partTabs.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);<NEW_LINE>rootNode = new DefaultMutableTreeNode(restService.getName());<NEW_LINE>treeModel = new DefaultTreeModel(rootNode);<NEW_LINE>tree = new JTree(treeModel);<NEW_LIN...
JScrollPane scrollPane = new JScrollPane(tree);
1,168,562
private synchronized void initBloomFilter(AccumuloConfiguration acuconf, boolean useAccumuloStart) {<NEW_LINE>numKeys = acuconf.getCount(Property.TABLE_BLOOM_SIZE);<NEW_LINE>// vector size should be <code>-kn / (ln(1 - c^(1/k)))</code> bits for<NEW_LINE>// single key, where <code> is the number of hash functions,<NEW_L...
.getDeclaredConstructor().newInstance();
774,835
public void write(JsonWriter out, FruitReq value) throws IOException {<NEW_LINE>if (value == null || value.getActualInstance() == null) {<NEW_LINE>elementAdapter.write(out, null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check if the actual instance is of the type `AppleReq`<NEW_LINE>if (value.getActualInstance() instan...
elementAdapter.write(out, obj);
517,120
public MaryData process(MaryData d) throws Exception {<NEW_LINE>String phoneString = d.getPlainText();<NEW_LINE>MaryData result = new MaryData(getOutputType(), d.getLocale(), true);<NEW_LINE>Document doc = result.getDocument();<NEW_LINE>Element root = doc.getDocumentElement();<NEW_LINE>root.setAttribute("xml:lang", Mar...
createElement(doc, MaryXML.SYLLABLE);
1,528,982
public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>PathConstraint constraint = skeleton.pathConstraints.get(pathConstraintIndex);<NEW_LINE>if (!constraint.active)<NEW_LINE>return;<NEW_LINE>float[] frames = this.fram...
rotate = frames[i + ROTATE];
700,668
protected void updateVelocity(int particleIndex, double[] particlePosition) {<NEW_LINE>int i = particleIndex;<NEW_LINE>double[] vtmp = new double[particlePosition.length];<NEW_LINE>// Standard PSO formula<NEW_LINE>// inertia weight<NEW_LINE>m_va.mul<MASK><NEW_LINE>// cognitive term<NEW_LINE>m_va.copy(vtmp, m_bestVector...
(m_velocities[i], m_inertiaWeight);
66,100
private void generateBinarySearch(List<TableEntry> entries, int lower, int upper, WasmBlock consumer, WasmBlock defaultTarget, WasmLocal conditionVar) {<NEW_LINE>if (upper - lower == 0) {<NEW_LINE>int label = entries.get(lower).label;<NEW_LINE>WasmExpression condition = new WasmIntBinary(WasmIntType.INT32, WasmIntBinar...
add(new WasmBreak(defaultTarget));
1,119,601
public boolean isLaxType(BType type, Map<BType, Boolean> visited) {<NEW_LINE>if (visited.containsKey(type)) {<NEW_LINE>return visited.get(type);<NEW_LINE>}<NEW_LINE>switch(type.tag) {<NEW_LINE>case TypeTags.JSON:<NEW_LINE>case TypeTags.XML:<NEW_LINE>case TypeTags.XML_ELEMENT:<NEW_LINE><MASK><NEW_LINE>return true;<NEW_L...
visited.put(type, true);
953,932
public static void main(String[] args) {<NEW_LINE>Map<Integer, String> L = new HashMap<Integer, String>();<NEW_LINE>L.put(1, "Sun");<NEW_LINE>L.put(2, "Mon");<NEW_LINE>L.put(3, "Tue");<NEW_LINE>L.put(4, "Wed");<NEW_LINE>L.put(5, "Thurs");<NEW_LINE>L.put(6, "Fri");<NEW_LINE>L.put(7, "Sat");<NEW_LINE>// Start at Monday, ...
y = findDays(month, yr);
903,080
public final int[] executeBatch() throws SQLException {<NEW_LINE>if (this.isClosed())<NEW_LINE>throw new SQLException("The Statement is closed");<NEW_LINE>// Issue warning where appropriate<NEW_LINE>if (this.commands.size() > 1 && this.autoCommit && this.holdability == ResultSet.CLOSE_CURSORS_AT_COMMIT) {<NEW_LINE>this...
this.results.add(null);
1,817,039
private void jbInit() throws Exception {<NEW_LINE>this.setLayout(mainLayout);<NEW_LINE>CompiereColor.setBackground(this);<NEW_LINE>southPanel.setLayout(southLayout);<NEW_LINE>// Center<NEW_LINE>this.add(new JScrollPane(centerPanel), BorderLayout.CENTER);<NEW_LINE>// Info<NEW_LINE>infoScrollPane.getViewport().add(infoTe...
buttonPanel.add(wfNext, null);
717,562
public void resetAllCalibrations(View v) {<NEW_LINE>final AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle(gs(R.string.are_you_sure));<NEW_LINE>builder.setMessage(gs(R.string.do_you_want_to_delete_and_reset_the_calibrations_for_this_sensor));<NEW_LINE>builder.setNegativeButton(gs(R...
.create().show();
1,035,280
private boolean loadFacesInitPluginsJDK6() {<NEW_LINE>String[] pluginEntries = null;<NEW_LINE>try {<NEW_LINE>Class serviceLoader = ClassUtils.getContextClassLoader().loadClass("java.util.ServiceLoader");<NEW_LINE>Method m = serviceLoader.getDeclaredMethod("load", Class.class, ClassLoader.class);<NEW_LINE>Object loader ...
e.getMessage(), e);
1,161,235
private // TODO Use identity type to determine if this check should be performed<NEW_LINE>boolean isSameIdentityAsInServicesXml(ApplicationId applicationId, String domain, String service) {<NEW_LINE>Optional<ApplicationInfo> applicationInfo = superModelProvider.getSuperModel().getApplicationInfo(applicationId);<NEW_LIN...
, applicationId.serializedForm()));
1,672,588
public boolean saveEvent(Event e) {<NEW_LINE>Util.assertEvent(e);<NEW_LINE>CqlSession cqlSession = getCqlSession();<NEW_LINE>BatchStatementBuilder batchBuilder = new BatchStatementBuilder(BatchType.LOGGED);<NEW_LINE>BoundStatement bsInsertEvent = psInsertEvent.bind();<NEW_LINE>bsInsertEvent = bsInsertEvent.setUuid(AUDI...
AUDIT_ATT_TYPE, e.getType());
1,740,600
private static void parseCompoundSortField(XContentParser parser, List<SortBuilder<?>> sortFields) throws IOException {<NEW_LINE>XContentParser.Token token;<NEW_LINE>while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {<NEW_LINE>if (token == XContentParser.Token.FIELD_NAME) {<NEW_LINE>String fieldNa...
fieldName).order(order));
592,189
private List<SeriesSpec> toSeriesSpecs(AggregationConfigDTO config) {<NEW_LINE>return config.series().stream().map(seriesDTO -> {<NEW_LINE>String function = seriesDTO.function();<NEW_LINE>Pattern pattern = Pattern.compile("\\((.*?)\\)");<NEW_LINE>Matcher matcher = pattern.matcher(function);<NEW_LINE>String field = "";<...
builder().id(function);
900,274
public Void migrateProcessInstance(CommandContext commandContext, String processInstanceId, MigrationPlan migrationPlan, ProcessDefinitionEntity targetProcessDefinition, boolean skipJavaSerializationFormatCheck) {<NEW_LINE>ensureNotNull(BadUserRequestException.class, "Process instance id cannot be null", "process insta...
getExecutionManager().findExecutionById(processInstanceId);
139,323
public static ListSnapshotResponse unmarshall(ListSnapshotResponse listSnapshotResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSnapshotResponse.setRequestId(_ctx.stringValue("ListSnapshotResponse.RequestId"));<NEW_LINE>listSnapshotResponse.setTotalCount(_ctx.integerValue("ListSnapshotResponse.TotalCount"));<NEW_LINE...
("ListSnapshotResponse.Snapshots[" + i + "].SnapshotType"));
553,829
public void run() {<NEW_LINE>if (roomChat.getMultiUserChat() != multiUserChat) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>roomChat.setState(RoomState.error);<NEW_LINE>addAuthorizationError(account, room);<NEW_LINE>XMPPError xmppError = e.getXMPPError();<NEW_LINE>if (xmppError != null && xmppError.getCondition() == XMPPErro...
, UserJid.from(room));
1,229,073
public void queueForPumping(BlockPos pos, Set<BlockPos> visitedBlocks, Deque<BlockPos> fluidsFound, Fluid pumpingFluid) {<NEW_LINE>BlockPos index = new BlockPos(pos);<NEW_LINE>if (visitedBlocks.add(index)) {<NEW_LINE>if ((pos.getX() - this.pos.getX()) * (pos.getX() - this.pos.getX()) + (pos.getZ() - this.pos.getZ()) * ...
BlockUtil.getBlockState(worldObj, pos);
695,748
public void onCreate(Bundle icicle) {<NEW_LINE>super.onCreate(icicle);<NEW_LINE>try {<NEW_LINE>View view;<NEW_LINE>String packageName = Utils.pName(this);<NEW_LINE>CustomClientConfigFileReader configFileReader = new CustomClientConfigFileReader(getAssets().open(packageName + ".yaml"));<NEW_LINE>Map<String, Map> configD...
Log.d(TAG, s);
779,127
public static void resolve(String dbName, int revision, String moduleKey) throws SQLException {<NEW_LINE>Connection connection = getNewConnection(dbName);<NEW_LINE>PreparedStatement <MASK><NEW_LINE>ps.setString(1, EvolutionState.APPLIED.getStateWord());<NEW_LINE>ps.setString(2, "");<NEW_LINE>ps.setString(3, EvolutionSt...
ps = connection.prepareStatement("update play_evolutions set state = ?, last_problem = ? where state = ? and id = ? and module_key = ?");
1,621,355
private boolean checkSimilarConstMatchPattern(BLangConstPattern firstConstMatchPattern, BLangConstPattern secondConstMatchPattern) {<NEW_LINE>Object firstConstValue = getConstValue(firstConstMatchPattern).keySet().iterator().next();<NEW_LINE>Object secondConstValue = getConstValue(secondConstMatchPattern).keySet()<MASK...
.iterator().next();
678,780
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View rootView = inflater.inflate(R.layout.fragment_folder_browser, container, false);<NEW_LINE>unbinder = ButterKnife.bind(this, rootView);<NEW_LINE>if (displayedInTabs) {<NEW_LINE>breadcrumbsView = new Breadcru...
updateMenuItems(toolbar.getMenu());
1,148,028
public synchronized void startDiscovery() {<NEW_LINE>if (running) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>serverSocket = new ServerSocket(0);<NEW_LINE>logger.debug("Creating Harmony server on port {}", serverSocket.getLocalPort());<NEW_LINE>server = new HarmonyServer(serverSocket);<NEW_LINE>server.start()...
, serverSocket.getLocalPort()));
26,563
private StarPredicate makeUnaryPredicate(RolapCubeMember member, RolapCube baseCube, Evaluator evaluator) {<NEW_LINE>TupleConstraintStruct constraint = new TupleConstraintStruct();<NEW_LINE>SqlConstraintUtils.expandSupportedCalculatedMember(member, evaluator, constraint);<NEW_LINE>List<Member> expandedMemberList = cons...
r = predicates.get(0);
965,158
public static MessageData decode(JSONObject data, Map<String, String> userIds) throws ParseException {<NEW_LINE>if (data == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String topic = (<MASK><NEW_LINE>String message = (String) data.get("message");<NEW_LINE>Debugging.println("pubsub-msg", "%s: %s", topic, message);...
String) data.get("topic");
1,387,624
private SqlDynamicParam visitOneDynamicParam(SqlDynamicParam dynamicParam) {<NEW_LINE>if (autoIncrementColumn != curFieldIndex) {<NEW_LINE>return SqlNode.clone(dynamicParam);<NEW_LINE>}<NEW_LINE>final Map<Integer, ParameterContext> curParams = parameterSettings.getCurrentParameter();<NEW_LINE>final int dynamicParamInde...
put(dynamicParamIndex + 1, newPc);
1,113,204
private void chunkize(BufferedImage image) throws IOException {<NEW_LINE>for (int scaleIndex = 0; scaleIndex < getScaleCount(); scaleIndex++) {<NEW_LINE>int chunksX = getChunkCountX(scaleIndex);<NEW_LINE>int chunksY = getChunkCountY(scaleIndex);<NEW_LINE>double scaledChunkSize = CHUNK_SIZE / getScaleArray()[scaleIndex]...
Graphics2D g = tmpImage.createGraphics();
341,447
public static void convertToBoof(Picture input, ImageBase output) {<NEW_LINE>output.reshape(input.getWidth(), input.getHeight());<NEW_LINE>if (input.getColor() == ColorSpace.RGB) {<NEW_LINE>ImplConvertJCodecPicture.RGB_to_PLU8(input, (Planar<GrayU8>) output);<NEW_LINE>} else if (input.getColor() == ColorSpace.YUV420) {...
(input, (GrayF32) output);
1,554,830
public boolean isTargetInterceptor(HttpServletRequest req) throws WebTrustAssociationException {<NEW_LINE><MASK><NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "openidClientConfig:(" + openidClientConfig + ")");<NEW_LINE>}<NEW_LINE>if (openidClientConfig == null)<NEW_L...
OpenidClientConfig openidClientConfig = openidClientConfigRef.getService();
1,271,766
public final ClassdefContext classdef() throws RecognitionException {<NEW_LINE>ClassdefContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 154, RULE_classdef);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1551);<NEW_LINE>match(CLASS);<NEW_LINE>setState(155...
ClassdefContext(_ctx, getState());
1,674,131
public static double dotProduct(Long2DoubleMap v1, Long2DoubleMap v2) {<NEW_LINE>if (v1.size() > v2.size()) {<NEW_LINE>// compute dot product the other way around for speed<NEW_LINE>return dotProduct(v2, v1);<NEW_LINE>}<NEW_LINE>if (v1 instanceof Long2DoubleSortedArrayMap && v2 instanceof Long2DoubleSortedArrayMap) {<N...
long k = e.getLongKey();
1,721,512
// The following code was copied from the jumpToLocation<NEW_LINE>// method in UIHelper.java<NEW_LINE>IDocument moduleNameToIDocument(String moduleName) {<NEW_LINE>IDocument result = this.moduleNameToDoc.get(moduleName);<NEW_LINE>if (result == null) {<NEW_LINE>IFile moduleIFile = (IFile) ResourceHelper.getResourceByMod...
result = moduleFileDocProvider.getDocument(fileEditorInput);
1,338,029
final GetComponentVersionArtifactResult executeGetComponentVersionArtifact(GetComponentVersionArtifactRequest getComponentVersionArtifactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getComponentVersionArtifactRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
(super.beforeMarshalling(getComponentVersionArtifactRequest));
1,015,080
private void initComponents() {<NEW_LINE>Font labelEstimatedFont = new Font(Font.SANS_SERIF, Font.PLAIN, 12);<NEW_LINE>navigationButtons = new NavigationButtons(getBackend(), 1.0, (int) getBackend().getSettings().getJogFeedRate());<NEW_LINE>buttonUpdateSettingsX = new JButton(Localization.getString("platform.plugin.set...
(Axis.Z, textFieldSettingStepsZ));
66,100
private void generateBinarySearch(List<TableEntry> entries, int lower, int upper, WasmBlock consumer, WasmBlock defaultTarget, WasmLocal conditionVar) {<NEW_LINE>if (upper - lower == 0) {<NEW_LINE>int label = entries.get(lower).label;<NEW_LINE>WasmExpression condition = new WasmIntBinary(WasmIntType.INT32, WasmIntBinar...
get(lower).target));
582,829
private static void calculateSubTypes() {<NEW_LINE>if (subTypes != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>subTypes = new ArrayList<>(1000);<NEW_LINE>FacadeItem itemFacade = AEItems.FACADE.asItem();<NEW_LINE>for (var b : Registry.BLOCK) {<NEW_LINE>try {<NEW_LINE>var item = Item.byBlock(b);<NEW_LINE>if (item == Ite...
> tmpList = NonNullList.create();
1,801,398
private DrillIndexDescriptor buildIndexDescriptor(String tableName, IndexDesc desc) throws InvalidIndexDefinitionException {<NEW_LINE>if (desc.isExternal()) {<NEW_LINE>// External index is not currently supported<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IndexDescriptor.IndexType idxType = IndexDescriptor.IndexType.NAT...
collationContext = buildCollationContext(indexFields, indexFieldCollations);
1,094,108
public void uploadFile(String httpMethod, String urlString, String localFileName) throws Exception {<NEW_LINE>HttpURLConnection conn = getRawHTTPConnection(urlString);<NEW_LINE>conn.setDoOutput(true);<NEW_LINE>conn.setUseCaches(false);<NEW_LINE>conn.setChunkedStreamingMode(ChunkSize);<NEW_LINE>conn.setRequestMethod(htt...
conn.setRequestProperty("Connection", "Keep-Alive");
192,267
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>contentView = View.inflate(getContext(), R.layout.bottom_sheet_contact_attachment_item, null);<NEW_LINE>itemsLayout = contentView.findViewById(R.id.items_layout);<NEW_LINE>if (savedI...
savedInstanceState.getLong(MESSAGE_ID, INVALID_HANDLE);
191,843
private static Map<Integer, String> make() {<NEW_LINE>final Map<Integer, String> map = new HashMap<>(0);<NEW_LINE>map.put(HttpURLConnection.HTTP_OK, "OK");<NEW_LINE>map.put(HttpURLConnection.HTTP_CREATED, "Created");<NEW_LINE>map.put(HttpURLConnection.HTTP_ACCEPTED, "Accepted");<NEW_LINE>map.put(HttpURLConnection.HTTP_...
put(HttpURLConnection.HTTP_PROXY_AUTH, "Proxy Authentication Required");
1,051,844
final CancelElasticsearchServiceSoftwareUpdateResult executeCancelElasticsearchServiceSoftwareUpdate(CancelElasticsearchServiceSoftwareUpdateRequest cancelElasticsearchServiceSoftwareUpdateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelElasticsearchServiceSoftwareUpdateRequest);<NE...
false), new CancelElasticsearchServiceSoftwareUpdateResultJsonUnmarshaller());
1,459,687
private void decodePulseData(BitReader _in) throws AACException {<NEW_LINE>pulseCount = _in.readNBit(2) + 1;<NEW_LINE>pulseStartSWB = _in.readNBit(6);<NEW_LINE>if (pulseStartSWB >= info.getSWBCount())<NEW_LINE>throw new AACException("pulse SWB out of range: " + pulseStartSWB + " > " + info.getSWBCount());<NEW_LINE>if (...
) + pulseOffset[i - 1];
863,247
public boolean isEnabledForContext(ActionContext context) {<NEW_LINE>if (!(context instanceof DecompilerActionContext)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>DecompilerActionContext decompilerContext = (DecompilerActionContext) context;<NEW_LINE>return decompilerContext.checkActionEnablement(() -> {<NEW_LINE>Fun...
DecompilerPanel decompilerPanel = controller.getDecompilerPanel();
983,026
void shareScreen(final Bitmap bitmap) {<NEW_LINE>try {<NEW_LINE>final File file = new File(getExternalCacheDir(), "screen.png");<NEW_LINE>final FileOutputStream fileOutputStream = new FileOutputStream(file);<NEW_LINE>bitmap.compress(Bitmap.CompressFormat.PNG, 100, fileOutputStream);<NEW_LINE>fileOutputStream.flush();<N...
putExtra(Intent.EXTRA_STREAM, fileUri);
180,057
public void run() {<NEW_LINE>while (rpcService != null) {<NEW_LINE>try {<NEW_LINE>// Batch up sync tasks so we use fewer, larger messages<NEW_LINE>// XXX - todo - handle hints targeted to specific nodes<NEW_LINE>storeRegistry.takeHints(tasks, 50);<NEW_LINE>for (Hint task : tasks) {<NEW_LINE>counterHints.increment();<NE...
SyncValueMessage svm = bsm.getSyncValue();
1,213,439
protected PwEntry populateNewEntry(PwEntry entry) {<NEW_LINE>PwEntry newEntry;<NEW_LINE>if (entry == null) {<NEW_LINE>newEntry = mEntry.clone(true);<NEW_LINE>} else {<NEW_LINE>newEntry = entry;<NEW_LINE>}<NEW_LINE>Date now = Calendar.getInstance().getTime();<NEW_LINE>newEntry.setLastAccessTime(now);<NEW_LINE>newEntry.s...
.id.entry_title), db);
418,930
public emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify result = new emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify(this);<NEW_LINE>int from_bitField0...
bitField0_ = (bitField0_ & ~0x00000002);
758,839
public RScheduledFuture<?> scheduleAtFixedRateAsync(Runnable task, long initialDelay, long period, TimeUnit unit) {<NEW_LINE>check(task);<NEW_LINE>ClassBody classBody = getClassBody(task);<NEW_LINE>byte[] state = encode(task);<NEW_LINE>long startTime = System.currentTimeMillis() + unit.toMillis(initialDelay);<NEW_LINE>...
scheduleAtFixedRate(params).toCompletableFuture();
1,752,587
private TransferSettings askPluginSettings(TransferSettings settings, Map<String, String> knownPluginSettings) throws StorageException {<NEW_LINE>if (isInteractive) {<NEW_LINE>out.println();<NEW_LINE>out.println("Connection details for " + settings.getType() + " connection:");<NEW_LINE>} else {<NEW_LINE>logger.log(Leve...
settings, option, knownPluginSettings, "");
38,377
private String stripOffVariableKeys(String rawProvider) {<NEW_LINE>String[] keys = getVariableKeys();<NEW_LINE>if (keys == null || keys.length == 0) {<NEW_LINE>return rawProvider;<NEW_LINE>}<NEW_LINE>for (String key : keys) {<NEW_LINE>int <MASK><NEW_LINE>if (idxStart == -1) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>int ...
idxStart = rawProvider.indexOf(key);
718,002
final DescribeDefaultEncryptionConfigurationResult executeDescribeDefaultEncryptionConfiguration(DescribeDefaultEncryptionConfigurationRequest describeDefaultEncryptionConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDefaultEncryptionConfigurationRequest);<NEW_LINE>AWS...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,632,847
public static void upload(VideoFrame vf, ByteBuffer buffer, int texture) {<NEW_LINE>GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, texture);<NEW_LINE>try (VideoStreamProfile profile = vf.getProfile()) {<NEW_LINE>switch(profile.getFormat()) {<NEW_LINE>case RGB8:<NEW_LINE>case BGR8:<NEW_LINE>GLES10.glTexImage2D(GLES10.GL_TEX...
GL_LUMINANCE, GLES10.GL_UNSIGNED_BYTE, buffer);
101,538
private DisposerInfo findDisposer(Set<Type> beanTypes, BeanInfo declaringBean, AnnotationTarget annotationTarget, List<DisposerInfo> disposers) {<NEW_LINE>List<DisposerInfo> found = new ArrayList<>();<NEW_LINE>Set<AnnotationInstance> qualifiers = new HashSet<>();<NEW_LINE>Collection<AnnotationInstance> allAnnotations =...
throw new DefinitionException("Multiple disposer methods found for " + annotationTarget);
259,049
final DeleteUserPermissionsBoundaryResult executeDeleteUserPermissionsBoundary(DeleteUserPermissionsBoundaryRequest deleteUserPermissionsBoundaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserPermissionsBoundaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
invoke(request, responseHandler, executionContext);
1,282,818
protected void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) {<NEW_LINE>long queryArrivalTimeMs = 0;<NEW_LINE>InstanceRequest instanceRequest = null;<NEW_LINE>byte[] requestBytes = null;<NEW_LINE>String tableNameWithType = null;<NEW_LINE>try {<NEW_LINE>// Put all code inside try block to catch all exceptions.<NE...
addMeteredGlobalValue(ServerMeter.REQUEST_DESERIALIZATION_EXCEPTIONS, 1);
1,581,641
private boolean addTransition(ArrayList<Transition> transitions, Transition tr) {<NEW_LINE>int size = transitions.size();<NEW_LINE>if (size == 0) {<NEW_LINE>// System.out.println("Adding " + tr);<NEW_LINE>transitions.add(tr);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Transition last = transitions.get(size - 1);<NEW_L...
= last.getMillis() + offsetForLast;
1,450,081
public void sendRequest(final MetaInfoRequest request) {<NEW_LINE>try {<NEW_LINE>String metaServer = queryMetaServerAddress();<NEW_LINE>if (metaServer == null)<NEW_LINE>return;<NEW_LINE>final Channel channel = getOrCreateChannel(metaServer);<NEW_LINE>final Datagram datagram = RemotingBuilder.buildRequestDatagram(Comman...
LOGGER.debug("request meta info send success. {}", request);
932,124
private void scanFile(File file) {<NEW_LINE>if (!file.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (file.isDirectory()) {<NEW_LINE>File[] files = file.listFiles();<NEW_LINE>if (files != null) {<NEW_LINE>for (File file1 : files) {<NEW_LINE>scanFile(file1);<NEW_LINE>if (Thread.interrupted()) {<NEW_LINE>Thread<MASK...
.currentThread().interrupt();
1,803,222
public void write(org.apache.thrift.protocol.TProtocol prot, bulkImport_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.isSetT...
getKey().write(oprot);
853,171
public static void main(String... args) throws Exception {<NEW_LINE>OkHttpClient client = new OkHttpClient();<NEW_LINE>// Create request for remote resource.<NEW_LINE>Request request = new Request.Builder().url(ENDPOINT).build();<NEW_LINE>// Execute the request and retrieve the response.<NEW_LINE>try (Response response...
c2.contributions - c1.contributions);
1,040,681
public CreateJobResult createJob(CreateJobRequest createJobRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMet...
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
1,369,871
public void flatMap(BaseRow value, Collector<BaseRow> out) throws Exception {<NEW_LINE>GenericRow genericRow = (GenericRow) value;<NEW_LINE>List<Object> inputParams = Lists.newArrayList();<NEW_LINE>for (Integer conValIndex : sideInfo.getEqualValIndex()) {<NEW_LINE>Object equalObj = genericRow.getField(conValIndex);<NEW...
sendOutputRow(value, null, out);
728,236
private void update_bmatrix(List<Config> configs, TDFAstate fromState, XclosureResult res) {<NEW_LINE>int[][] bmatrix = null;<NEW_LINE>if (fromState != null) {<NEW_LINE>bmatrix = fromState.bmatrix;<NEW_LINE>}<NEW_LINE>int N = configs.size();<NEW_LINE>int M = 0;<NEW_LINE>M = N;<NEW_LINE>int m = 0;<NEW_LINE>M++;<NEW_LINE...
compare_posix(c1, c2, fromState);
40,785
protected void updateStatus(boolean report_change) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (download_ok) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long downloaded = file.getDownloaded();<NEW_LINE>long length = file.getLength();<NEW_LINE>if (download == null || downloaded == length) {<NEW_LINE>download_ok = true;<NEW_...
int connected_leechers = stats.getConnectedLeechers();
1,791,169
private void collectSelectedItems() {<NEW_LINE>for (String filePath : selectedItems.keySet()) {<NEW_LINE>SelectedGpxFile sf;<NEW_LINE>if (!filePath.equals(CURRENT_TRACK)) {<NEW_LINE>sf = getSelectedFileByPath(filePath);<NEW_LINE>if (sf == null) {<NEW_LINE>sf = new SelectedGpxFile();<NEW_LINE>sf.setGpxFile(new GPXFile(n...
visible = selectedItems.get(filePath);
1,439,095
private Map<String, Object> processUserListWithPermissionOnInode(String assetInode, String permission, String query, int start, int limit) {<NEW_LINE>Map<String, Object> results;<NEW_LINE>try {<NEW_LINE>final int permissionType = toInt(permission, 0);<NEW_LINE>results = new UsersListTemplate(assetInode, permissionType,...
("::getUsersList -> Invalid parameters inode(%s) permission(%s).", assetInode, permission));
1,353,203
public com.amazonaws.services.devopsguru.model.ServiceQuotaExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.devopsguru.model.ServiceQuotaExceededException serviceQuotaExceededException = new com.amazonaws.services.devopsguru.model.ServiceQuotaEx...
int originalDepth = context.getCurrentDepth();
1,392,004
public ServiceStatus update(String userId, String json) {<NEW_LINE>JSONObject jsonObject = JSONObject.parseObject(json);<NEW_LINE>DashboardJob job = new DashboardJob();<NEW_LINE>job.setId(jsonObject.getLong("id"));<NEW_LINE>job.setName(jsonObject.getString("name"));<NEW_LINE>job.setConfig(jsonObject.getString("config")...
ServiceStatus.Status.Success, "success");
789,115
protected void genSemPred(String pred, int line) {<NEW_LINE>// translate $ and # references<NEW_LINE>ActionTransInfo tInfo = new ActionTransInfo();<NEW_LINE>pred = processActionForSpecialSymbols(pred, line, currentRule, tInfo);<NEW_LINE>// ignore translation info...we don't need to do anything with it.<NEW_LINE>String ...
println("if (!(" + pred + ")):");
955,803
public static final Optional<IProductPriceAware> ofModel(final Object model) {<NEW_LINE>if (model == null) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>if (model instanceof IProductPriceAware) {<NEW_LINE><MASK><NEW_LINE>return Optional.of(productPriceAware);<NEW_LINE>}<NEW_LINE>// If model does not have prod...
final IProductPriceAware productPriceAware = (IProductPriceAware) model;
188,896
private void addVariable(String name, Object value, QueryOperator operator, boolean localScope) {<NEW_LINE>if (name == null) {<NEW_LINE>throw new ActivitiIllegalArgumentException("name is null");<NEW_LINE>}<NEW_LINE>if (value == null || isBoolean(value)) {<NEW_LINE>// Null-values and booleans can only be used in EQUALS...
, value, operator, localScope));
507,372
private Object binarySearchNames(int firstIndex, int lastIndex, String name) {<NEW_LINE>if (firstIndex > lastIndex)<NEW_LINE>return NOT_FOUND;<NEW_LINE>int pivot = firstIndex + ((lastIndex - firstIndex) / 2);<NEW_LINE>// Clear LSB to ensure even index<NEW_LINE>pivot &= 0xFFFFFFFE;<NEW_LINE>// System.out.print("binarySe...
.getObject((Reference) ob);
89,049
public int compareTo(submitTopology_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = Boolean.valueOf(is_set_success()).compareTo(other.is_set_success());<...
this.ite, other.ite);
1,579,836
public void refresh() {<NEW_LINE>// Setup trees for each resource<NEW_LINE>List<JavaResource> resources = resources();<NEW_LINE>if (resources.size() > 1) {<NEW_LINE>boolean firstTime = false;<NEW_LINE>// Resource switcher<NEW_LINE>if (comboResources == null) {<NEW_LINE>firstTime = true;<NEW_LINE>comboResources = new Re...
getItems().setAll(resources);
445,725
private boolean isAnnotationEnabled(Class<? extends Annotation> clazz) {<NEW_LINE>LookupResult<? extends Annotation> lookupResult = lookupAnnotation(beanClass, method, clazz);<NEW_LINE>if (lookupResult == null) {<NEW_LINE>// not present<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String value;<NEW_LINE>final String anno...
value = getParameter(annotationType, "enabled");
1,459,736
private ServiceModuleEnum cover(Business business, Wi wi) throws Exception {<NEW_LINE>List<JpaObject> persistObjects = new ArrayList<>();<NEW_LINE>List<JpaObject> removeObjects = new ArrayList<>();<NEW_LINE>ServiceModuleEnum serviceModuleEnum = ServiceModuleEnum.getEnumByValue(wi.getId());<NEW_LINE>if (null == serviceM...
CacheManager.notify(Invoke.class);
1,085,321
public void measureChild(@NonNull View child, int widthUsed, int heightUsed) {<NEW_LINE>int columnPosition = getPosition(child);<NEW_LINE>// Get cached width size of column and cell<NEW_LINE>int cacheWidth = mCellLayoutManager.getCacheWidth(mYPosition, columnPosition);<NEW_LINE>int columnCacheWidth = mColumnHeaderLayou...
mCellLayoutManager.fitWidthSize(columnPosition, true);
1,105,430
private String createJikesClasspath(String string, String javaHomePath) {<NEW_LINE>StringBuffer classpath = new StringBuffer();<NEW_LINE>classpath.append(javaHomePath + File.separator + "lib" + File.<MASK><NEW_LINE>classpath.append(javaHomePath + File.separator + "lib" + File.separator + "graphics.jar" + File.pathSepar...
separator + "core.jar" + File.pathSeparatorChar);
1,132,250
protected void asMap(boolean full, Map<String, Object> props) {<NEW_LINE>super.asMap(full, props);<NEW_LINE>props.put("imageName", imageName);<NEW_LINE>props.put("imageNameTransform", imageNameTransform);<NEW_LINE>props.put("archiveFormat", archiveFormat);<NEW_LINE>Map<String, Map<String, Object>> mappedJdks = new Link...
props.put("graalJdks", mappedJdks);
1,766,430
public // }<NEW_LINE>void startStopRouteAnimation(@Nullable Activity activity, boolean useGpx, final Runnable runnable) {<NEW_LINE>if (!isRouteAnimating()) {<NEW_LINE>if (useGpx) {<NEW_LINE>if (activity == null) {<NEW_LINE>stop();<NEW_LINE>if (runnable != null) {<NEW_LINE>runnable.run();<NEW_LINE>}<NEW_LINE>return;<NEW...
R.string.shared_string_cancel, null);
54,267
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent target = game.getPermanent(targetPointer<MASK><NEW_LINE>boolean scepter = false;<NEW_LINE>boolean throne = false;<NEW_LINE>for (Permanent permanent : game.getBattlefield().getAllActivePermanents(source.getControllerId())) {<NEW_LINE>if (CardUtil.haveS...
.getFirst(game, source));
1,089,478
private void initialize() {<NEW_LINE>// setup<NEW_LINE>iStreamCoder.setNumPicturesInGroupOfPictures(25);<NEW_LINE>iStreamCoder.setBitRate(200000);<NEW_LINE>iStreamCoder.setBitRateTolerance(10000);<NEW_LINE>iStreamCoder.setPixelType(Type.YUV420P);<NEW_LINE>iStreamCoder.setHeight(dimension.height);<NEW_LINE>iStreamCoder....
iStreamCoder.open(codecOptions, null);
1,020,303
public void run() {<NEW_LINE>final VirtualFile[] files = virtualFile.getChildren();<NEW_LINE>try {<NEW_LINE>for (final VirtualFile inspectionFile : files) {<NEW_LINE>if (inspectionFile.isDirectory())<NEW_LINE>continue;<NEW_LINE>final String shortName = inspectionFile.getNameWithoutExtension();<NEW_LINE>final <MASK><NEW...
String extension = inspectionFile.getExtension();
1,015,537
private static void searchWithAsyncClient() {<NEW_LINE>SearchAsyncClient client = new SearchClientBuilder().endpoint(ENDPOINT).credential(new AzureKeyCredential(API_KEY)).indexName(INDEX_NAME).buildAsyncClient();<NEW_LINE>// Add additional options for the search<NEW_LINE>SearchOptions parameters = // items having a geo...
(5).setIncludeTotalCount(true);
361,131
protected void onContentViewCreated(View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onContentViewCreated(view, savedInstanceState);<NEW_LINE>setTitle(R.string.auto_theme_title);<NEW_LINE>getNegativeButton().setOnClickListener(v -> dismiss());<NEW_LINE>getPositiveButton().setOnClickListener(v -> {<NEW_L...
setMessage(R.string.auto_theme_selection_hint);
641,533
private void executeTest(String testName, CommandLineProgramTester testClass, String args, Class<?> expectedException) {<NEW_LINE>String[] command = Utils.escapeExpressions(args);<NEW_LINE>// run the executable<NEW_LINE>boolean gotAnException = false;<NEW_LINE>try {<NEW_LINE>final String now = LocalDateTime.now().forma...
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
437,534
private static void runEveryDistinctOverFollowedBy(RegressionEnvironment env, String expression, AtomicInteger milestone) {<NEW_LINE>env.compileDeploy(expression).addListener("s0");<NEW_LINE>env.milestoneInc(milestone);<NEW_LINE>env.sendEventBean(new SupportBean("A1", 1));<NEW_LINE>env.assertListenerNotInvoked("s0");<N...
new SupportBean("A3", 10));