idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,077,165
void quickTest(final int lgK, final long cA, final long cB) {<NEW_LINE>final CpcSketch skA = new CpcSketch(lgK);<NEW_LINE>final CpcSketch skB = new CpcSketch(lgK);<NEW_LINE>// direct sketch<NEW_LINE>final CpcSketch skD = new CpcSketch(lgK);<NEW_LINE>final long t0, t1, t2, t3, t4, t5;<NEW_LINE>t0 = System.nanoTime();<NE...
Flavor fA = skA.getFlavor();
531,228
private List<AttributesChangedEvent> createMaterialEvent(final HUAttributeChanges changes) {<NEW_LINE>if (changes.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>final HuId huId = changes.getHuId();<NEW_LINE>final I_M_HU hu = handlingUnitsBL.getById(huId);<NEW_LINE>//<NEW_LINE>// Consider only thos...
toAttributesKeyWithASI(changes.getOldAttributesKey());
864,819
private static Entry scanStandaloneSource(Map<String, Object> properties, Project project) throws IOException {<NEW_LINE>// Not a standalone module<NEW_LINE>if (properties.get("project") == null)<NEW_LINE>return null;<NEW_LINE>File basedir = new File((String) properties.get("project"));<NEW_LINE>Entry entry = STANDALON...
entries = new HashMap<>();
1,209,592
public void writeAdditionalFiles(GoSettings settings, Model model, SymbolProvider symbolProvider, GoDelegator goDelegator) {<NEW_LINE>ShapeId serviceId = settings.getService();<NEW_LINE>if (!SERVICE_TO_OPERATION_MAP.containsKey(serviceId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ServiceShape service = model.expectShape(...
ProtocolUtils.expectInput(model, operation);
551,636
public static Vector apply(IntLongVector v1, IntDummyVector v2, Binary op) {<NEW_LINE>if (v1.isDense()) {<NEW_LINE>long[] resValues = v1.getStorage().getValues();<NEW_LINE>for (int i = 0; i < v1.getDim(); i++) {<NEW_LINE>resValues[i] = op.apply(resValues[i], v2.get(i));<NEW_LINE>}<NEW_LINE>} else if (v1.isSparse()) {<N...
.getStorage().getValues();
1,134,107
/*<NEW_LINE>* Instruct the build manager that this project is involved in a cycle and<NEW_LINE>* needs to propagate structural changes to the other projects in the cycle.<NEW_LINE>*/<NEW_LINE>void mustPropagateStructuralChanges() {<NEW_LINE>LinkedHashSet cycleParticipants = new LinkedHashSet(3);<NEW_LINE>this.javaProje...
= this.javaProject.getPath();
1,285,534
protected void prepareBuffer() {<NEW_LINE>// bufferToSend now is the header ByteBuf, it will store serialized header, without blob content and crc<NEW_LINE>bufferToSend = PooledByteBufAllocator.DEFAULT.ioBuffer(sizeExcludingBlobAndCrcSize());<NEW_LINE>writeHeader();<NEW_LINE>int crcStart = bufferToSend.writerIndex();<N...
writeBytes(blobId.toBytes());
916,257
private void onDirectMessageItemLongPress(View view, int position) {<NEW_LINE>if (getOtherUserId() == null) {<NEW_LINE>onDirectMessageItemSingleTap(view, position);<NEW_LINE>} else {<NEW_LINE>boolean isChecked = mConversationListView.getRefreshableView().getCheckedItemPositions().get(position);<NEW_LINE>DirectMessageIt...
.setItemChecked(position, !isChecked);
11,918
private void applyEnabled(MacroOption.EnabledOption enabledOption, String argumentOrigin) {<NEW_LINE>Path imageJarsDirectory = enabledOption.getOption().getOptionDirectory();<NEW_LINE>if (imageJarsDirectory == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BuildConfiguration config = nativeImage.config;<NEW_LINE>enabledO...
addPlainImageBuilderArg(nativeImage.oHClass + imageClass);
1,164,321
public Integer implicitCast(Object value) throws IllegalArgumentException, ClassCastException {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>} else if (value instanceof Integer) {<NEW_LINE>return (Integer) value;<NEW_LINE>} else if (value instanceof String) {<NEW_LINE>return Integer.parseInt((String) va...
BigDecimal) value).intValue();
787,362
public List<MethodMetadata> parseAndValidateMetadata(Class<?> targetType) {<NEW_LINE>checkState(targetType.getTypeParameters().length == 0, "Parameterized types unsupported: %s", targetType.getSimpleName());<NEW_LINE>checkState(targetType.getInterfaces().length <= 1, "Only single inheritance supported: %s", targetType....
Types.resolveReturnType(existingReturnType, overridingReturnType);
823,555
public static void test() {<NEW_LINE>int spout_Parallelism_hint = JStormUtils.parseInt(conf.get(TOPOLOGY_SPOUT_PARALLELISM_HINT), 1);<NEW_LINE>int split_Parallelism_hint = JStormUtils.parseInt(conf.get(TOPOLOGY_SPLIT_PARALLELISM_HINT), 1);<NEW_LINE>int count_Parallelism_hint = JStormUtils.parseInt(conf.get(TOPOLOGY_COU...
"split", new Fields("word"));
1,453,617
public static SearchTableResponse unmarshall(SearchTableResponse searchTableResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchTableResponse.setRequestId(_ctx.stringValue("SearchTableResponse.RequestId"));<NEW_LINE>searchTableResponse.setTotalCount(_ctx.longValue("SearchTableResponse.TotalCount"));<NEW_LINE>searchTab...
= new ArrayList<SearchTable>();
709,415
public String viewEntityTab(HttpServletRequest request, HttpServletResponse response, Model model, @PathVariable Map<String, String> pathVars, @PathVariable(value = "id") String id, @PathVariable(value = "tabName") String tabName, @ModelAttribute(value = "entityForm") EntityForm entityForm, @ModelAttribute(value = "ent...
model.addAttribute("viewType", "entityEdit");
678,210
final CreateAuditSuppressionResult executeCreateAuditSuppression(CreateAuditSuppressionRequest createAuditSuppressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAuditSuppressionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAuditSuppression");
1,330,537
public ListContactReferencesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListContactReferencesResult listContactReferencesResult = new ListContactReferencesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
)).unmarshall(context));
1,798,085
Expr atom() {<NEW_LINE>Tok tok = peek();<NEW_LINE>switch(tok.sym) {<NEW_LINE>case LPAREN:<NEW_LINE>move();<NEW_LINE>Expr expr = expr();<NEW_LINE>match(Sym.RPAREN);<NEW_LINE>return expr;<NEW_LINE>case ID:<NEW_LINE>move();<NEW_LINE>return new <MASK><NEW_LINE>case STR:<NEW_LINE>move();<NEW_LINE>return new Const(tok.sym, t...
Id(tok.value());
1,690,765
public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(DateTime.parseDefaultMSec("2002-05-01T09:00:00.000"));<NEW_LINE>String epl = "@name('ctx') create context MyCtx start SupportScheduleSimpleEvent as sse;\n" + "@name('s0') context MyCtx\n" + "select count(*) as c \n" + "from SupportBean_S0\n" + "outpu...
(DateTime.parseDefaultMSec("2002-05-01T10:15:00.000"));
336,574
public ValidationErrors checkRequiredField(String requiredFieldName, Object value, String postfix, boolean allowEmptyValue) {<NEW_LINE>String err = null;<NEW_LINE>if (value == null) {<NEW_LINE>err = requiredFieldName + " is required";<NEW_LINE>}<NEW_LINE>if (!allowEmptyValue) {<NEW_LINE>if ((value instanceof Collection...
== null ? "" : postfix));
504,249
public DocumentEdits createEdit(DocumentRegion query, String template) {<NEW_LINE>IDocument doc = query.getDocument();<NEW_LINE>IndentUtil indentUtil = new IndentUtil(doc);<NEW_LINE>DocumentEdits edit = new DocumentEdits(doc, true);<NEW_LINE>// PT 162103145 - Avoid creating a snippet with double `@` if the query is inv...
query.getStart(), doc);
1,741,894
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>COConfigurationManager.initialise();<NEW_LINE>COConfigurationManager.setParameter("IPV6 Enable Support", true);<NEW_LINE>boolean v6 = true;<NEW_LINE>// Test connectivity.<NEW_LINE>if (true) {<NEW_LINE>// System.out.println( "UDP: " + getSingleton().getEx...
System.out.println("-----------");
74,216
private static Collection<EraseAndSet> orEraseAndSets(List<EraseAndSet> eraseAndSets) {<NEW_LINE>checkArgument(!eraseAndSets.isEmpty(), "orEraseAndSets: eraseAndSets must be non-empty");<NEW_LINE>if (eraseAndSets.size() == 1) {<NEW_LINE>return eraseAndSets;<NEW_LINE>}<NEW_LINE>Map<BDD, List<BDD>> eraseVarsToSetValue = ...
, factory.orAll(setValues));
1,348,457
public OCompositeKey preprocess(OCompositeKey value, Object... hints) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final OType[] types = getKeyTypes(hints);<NEW_LINE>final List<Object<MASK><NEW_LINE>final OCompositeKey compositeKey = new OCompositeKey();<NEW_LINE>final OBinarySerializerFact...
> keys = value.getKeys();
421,060
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>{<NEW_LINE>// build source<NEW_LINE>builder.startObject("source");<NEW_LINE>if (remoteInfo != null) {<NEW_LINE>builder.field("remote", remoteInfo);<NEW_LINE>builder.rawField("query", r...
().versionType()));
1,732,142
public static PrivateKey loadPrivateKey(Path privateKeyFile, String passPhrase) throws IOException {<NEW_LINE>if (passPhrase == null) {<NEW_LINE>passPhrase = "";<NEW_LINE>}<NEW_LINE>try (PEMParser r = new PEMParser(Files.newBufferedReader(privateKeyFile))) {<NEW_LINE>Object pemObject = r.readObject();<NEW_LINE>final Jc...
(decProv)).getPrivate();
1,296,762
private void read() {<NEW_LINE>org.w3c.dom.Document document;<NEW_LINE>File file;<NEW_LINE>InputStream is;<NEW_LINE>int avail = 0;<NEW_LINE>try {<NEW_LINE>file = trackingFile;<NEW_LINE>if (!file.isFile()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>is = new FileInputStream(file);<NEW_LINE>avail = is.available();<NEW_LINE>In...
DUMMY_ERROR_HANDLER, XMLUtil.createAUResolver());
176,850
public Resource findResource(String name) {<NEW_LINE>String[] parts = split(name);<NEW_LINE>try {<NEW_LINE>Map<String, ZipUtils.Info> folderContent = getResourceMap()<MASK><NEW_LINE>if (folderContent == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ZipUtils.Info info = folderContent.get(parts[1]);<NEW_LINE>if (info...
.get(parts[0]);
221,762
private void findFieldsAndMethodsFromFavorites(char[] token, Scope scope, InvocationSite invocationSite, Scope invocationScope, ObjectVector localsFound, ObjectVector fieldsFound, ObjectVector methodsFound) {<NEW_LINE>ObjectVector methodsFoundFromFavorites = new ObjectVector();<NEW_LINE>ImportBinding[] favoriteBindings...
fieldBinding.declaringClass, invocationSite, invocationScope);
1,000,013
public void stat(int loop, int start, int end, int bufStart, int bufEnd) {<NEW_LINE>int f0, f1, h, p;<NEW_LINE>Arrays.fill(<MASK><NEW_LINE>if (baggingFeatureCount() != nFeatureCol) {<NEW_LINE>int[] baggingFeature = loopBuffer[loop].baggingFeatures;<NEW_LINE>for (int i = 0; i < baggingFeatureCount(); ++i) {<NEW_LINE>f0 ...
hist, bufStart, bufEnd, 0.);
520,686
private Node lookupOrCreateGlobalComponent(Node node, Injector fallbackInjector, Class<?> clazz, Key<?> key) {<NEW_LINE>Optional<<MASK><NEW_LINE>if (component.isEmpty()) {<NEW_LINE>Object instance;<NEW_LINE>try {<NEW_LINE>Level level = hasExplicitBinding(fallbackInjector, key) ? Level.FINE : Level.WARNING;<NEW_LINE>log...
Node> component = lookupGlobalComponent(key);
526,255
public boolean isLastExecutionFinished(ScheduledTask task, long now) {<NEW_LINE>EntityManager em = persistence.getEntityManager();<NEW_LINE>Query query = em.createQuery("select e.finishTime from sys$ScheduledExecution e where e.task.id = ?1 and e.startTime = ?2");<NEW_LINE>query.setParameter(1, task.getId());<NEW_LINE>...
List list = query.getResultList();
123,282
protected boolean createSubstitutes(List<ParseTreeNode> substitutes, Map<String, ParseTreeNode> bindings) {<NEW_LINE>int subsSize = substitutes.size();<NEW_LINE>if (getKey().createSubstitutes(substitutes, bindings)) {<NEW_LINE>int subsSizeKey = substitutes.size();<NEW_LINE>if (subsSizeKey == subsSize + 1 && substitutes...
substitutes.get(subsSize + 1);
729,241
public void tableChanged(WTableModelEvent e) {<NEW_LINE>if (e.getColumn() != 0)<NEW_LINE>return;<NEW_LINE>log.config("Row=" + e.getFirstRow() + "-" + e.getLastRow() + ", Col=" + e.getColumn() + ", Type=" + e.getType());<NEW_LINE>// Matched From<NEW_LINE>int matchedRow = xMatchedTable.getSelectedRow();<NEW_LINE>KeyNameP...
bProcess.setEnabled(noRows != 0);
924,810
private void createPO() {<NEW_LINE>int noOrders = 0;<NEW_LINE>String info = "";<NEW_LINE>//<NEW_LINE>MOrder order = null;<NEW_LINE>MWarehouse warehouse = null;<NEW_LINE>List<X_T_Replenish> replenishList = getReplenish("M_WarehouseSource_ID IS NULL", true);<NEW_LINE>for (X_T_Replenish replenish : replenishList) {<NEW_LI...
fine(order.toString());
1,514,176
void parseIcon(ElementStyleDslContext context, Tokens tokens, boolean restricted) {<NEW_LINE><MASK><NEW_LINE>if (tokens.hasMoreThan(FIRST_PROPERTY_INDEX)) {<NEW_LINE>throw new RuntimeException("Too many tokens, expected: icon <file|url>");<NEW_LINE>}<NEW_LINE>if (tokens.includes(FIRST_PROPERTY_INDEX)) {<NEW_LINE>String...
ElementStyle style = context.getStyle();
1,011,426
public TwitterTimeline reduceToMaxsize(final int maxsize) {<NEW_LINE>List<TwitterTweet> m = new ArrayList<>();<NEW_LINE>TwitterTimeline t = new TwitterTimeline(this.order);<NEW_LINE>if (maxsize < 0)<NEW_LINE>return t;<NEW_LINE>// remove tweets from this timeline<NEW_LINE>synchronized (this.posts) {<NEW_LINE>while (this...
add(me.getScreenName());
1,117,298
public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context) throws IOException {<NEW_LINE>LambdaLogger logger = context.getLogger();<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, Charset.forName("US-ASCII")));<NEW_LINE>PrintWriter writer = new ...
fromJson(reader, HashMap.class);
1,298,529
private void updateLocalData(MySQLPrivilege privilege, boolean isGrant, boolean withGrantOption, MySQLCatalog curCatalog, MySQLTableBase curTable) {<NEW_LINE>// Modify local grants (and clear grants cache in user objects)<NEW_LINE>getDatabaseObject().clearGrantsCache();<NEW_LINE>boolean found = false;<NEW_LINE>for (MyS...
privileges = new ArrayList<>();
851,284
public File runFilter(File file, Map<String, String[]> parameters) {<NEW_LINE>boolean flip = false;<NEW_LINE>try {<NEW_LINE>flip = parameters.get(getPrefix() + "flip") != null ? true : false;<NEW_LINE>} catch (Exception e) {<NEW_LINE>}<NEW_LINE>File resultFile = getResultsFile(file, parameters);<NEW_LINE>FlipFilter fil...
write(dst, "png", tempResultFile);
74,421
public void read(org.apache.thrift.protocol.TProtocol iprot, getSummarizedTopologyMetrics_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (sch...
struct.success.add(_elem297);
826,828
public TypeVar inlineAsVar(UTypeVar var) throws CouldNotResolveImportException {<NEW_LINE>TypeVar typeVar = typeVarCache.get(var.getName());<NEW_LINE>if (typeVar != null) {<NEW_LINE>return typeVar;<NEW_LINE>}<NEW_LINE>Name name = <MASK><NEW_LINE>TypeSymbol sym = new TypeVariableSymbol(0, name, null, symtab().noSymbol);...
asName(var.getName());
699,786
private static PathMatchesPatternPredicate stringToPredicate(String path, boolean includeDescendants) {<NEW_LINE>// Discard the initial / character if present<NEW_LINE>if (path.length() > 0 && path.charAt(0) == DataElement.SEPARATOR) {<NEW_LINE>path = path.substring(1);<NEW_LINE>}<NEW_LINE>String[] components = path.sp...
+ (includeDescendants ? 1 : 0);
963,970
public void saveInventoryLineHURecords(@NonNull final InventoryLine inventoryLine, @NonNull final InventoryId inventoryId) {<NEW_LINE>if (inventoryLine.isSingleHUAggregation()) {<NEW_LINE>if (inventoryLine.getId() != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>final HashMap<InventoryLineHUId, I_M_Inve...
deleteInventoryLineHUs(inventoryLine.getId());
1,215,297
private PulsarDeserializationSchema<RowData> createPulsarDeserialization(DeserializationSchema<RowData> keyDeserialization, DeserializationSchema<RowData> valueDeserialization, TypeInformation<RowData> producedTypeInfo) {<NEW_LINE>final DynamicPulsarDeserializationSchema.MetadataConverter[] metadataConverters = metadat...
DynamicPulsarDeserializationSchema.MetadataConverter[]::new);
858,615
public void loadFromProject() {<NEW_LINE>NetbeansActionMapping m;<NEW_LINE>if (run == null) {<NEW_LINE>run = getMapping(ActionProvider.COMMAND_RUN);<NEW_LINE>}<NEW_LINE>if (debug == null) {<NEW_LINE>debug = getMapping(ActionProvider.COMMAND_DEBUG);<NEW_LINE>}<NEW_LINE>if (profile == null) {<NEW_LINE>profile = getMappin...
oldMainClass = fallbackParams(RUN_MAIN_CLASS, false);
1,617,546
private static SpeedStat calculateStat(List<IOTaskResult.Point> points) {<NEW_LINE>SpeedStat result = new SpeedStat();<NEW_LINE>if (points.size() == 0) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>double totalDuration = 0.0;<NEW_LINE>long totalSize = 0L;<NEW_LINE>double[] speeds = new double[points.size()];<NEW_LINE>d...
Math.max(maxSpeed, speed);
1,362,945
public void moveDataFiles(final File destination, final String new_name, final boolean live) throws DownloadManagerException {<NEW_LINE>if (destination == null && new_name == null) {<NEW_LINE>throw new NullPointerException("destination and new name are both null");<NEW_LINE>}<NEW_LINE>if (!canMoveDataFiles()) {<NEW_LIN...
this, destination, target, this);
613,530
public void fetchResultsFromTargetApp() throws ClientUtils.TargetAppOrVMTerminated {<NEW_LINE>HeapHistogram histogram = runner<MASK><NEW_LINE>ClassInfo[] classInfoArray = histogram.getHeapHistogram().toArray(new ClassInfo[0]);<NEW_LINE>classNames = new String[classInfoArray.length];<NEW_LINE>totalLiveObjectsSize = new ...
.getProfilerClient().getHeapHistogram();
1,620,037
public static ListUserPermissionsResponse unmarshall(ListUserPermissionsResponse listUserPermissionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listUserPermissionsResponse.setRequestId(_ctx.stringValue("ListUserPermissionsResponse.RequestId"));<NEW_LINE>listUserPermissionsResponse.setTotalCount(_ctx.longValue("ListU...
(_ctx.stringValue("ListUserPermissionsResponse.ErrorCode"));
1,338,776
private void dispatchInstanceTask(Service service, boolean ephemeral) {<NEW_LINE>ServiceStorage serviceStorage = ApplicationUtils.getBean(ServiceStorage.class);<NEW_LINE>InstanceUpgradeHelper instanceUpgradeHelper = ApplicationUtils.getBean(InstanceUpgradeHelper.class);<NEW_LINE>ServiceInfo serviceInfo = serviceStorage...
(transfer(service, ephemeral));
957,276
protected boolean member(Object target, TruffleString name, @Shared("interop") @CachedLibrary(limit = "InteropLibraryLimit") InteropLibrary interop) {<NEW_LINE>if (context.getContextOptions().hasForeignHashProperties() && interop.hasHashEntries(target)) {<NEW_LINE>try {<NEW_LINE>interop.removeHashEntry(target, name);<N...
target, e, "delete", this);
62,941
private void updateColors(int position) {<NEW_LINE>for (int i = 0; i < mItems.size(); i++) {<NEW_LINE>TextView textView = (TextView) mItems.get(i).<MASK><NEW_LINE>ImageView imageView = (ImageView) mItems.get(i).findViewById(R.id.imageview);<NEW_LINE>ImageView arrow = (ImageView) mItems.get(i).findViewById(R.id.arrow);<...
findViewById(R.id.textview);
907,620
protected TConsumer4<Node> add() {<NEW_LINE>return (first, second, third, fourth) -> {<NEW_LINE>debug("Adding four-tuple: {} {} {} {} .", first, second, third, fourth);<NEW_LINE>final FourTupleMap fourTuples = local().get();<NEW_LINE>ThreeTupleMap threeTuples = fourTuples.get(first).orElse(new ThreeTupleMap());<NEW_LIN...
).plus(third, oneTuples);
908,194
private String createDBLog(final String dbHome) throws Exception {<NEW_LINE>// dbHome must exist and have write permission<NEW_LINE>final File fDBHome = new File(dbHome);<NEW_LINE>String dbLogFilePath;<NEW_LINE>final StringManager localManager = StringManager.getManager(this.getClass());<NEW_LINE>if (fDBHome.isDirecto...
, getLogFileName(), dbLogFilePath));
1,557,289
public void customizeCellRenderer(JTable table, final Object value, boolean isSelected, boolean hasFocus, final int row, final int column) {<NEW_LINE>final int modelColumn = myTable.convertColumnIndexToModel(column);<NEW_LINE>final M memberInfo = myTable.myMemberInfos.get(row);<NEW_LINE>setToolTipText(myTable.myMemberI...
myTable.myMemberInfoModel.isMemberEnabled(memberInfo);
725,176
private void connect(String serverId, PulseaudioServerConfig serverConfig) {<NEW_LINE>if (serverConfig.host != null && serverConfig.port > 0) {<NEW_LINE>try {<NEW_LINE>clients.put(serverId, new PulseaudioClient(serverConfig.host, serverConfig.port));<NEW_LINE>boolean isConnected = clients.get(serverId).isConnected();<N...
serverConfig.host, serverConfig.port);
1,656,848
public void run() {<NEW_LINE>// set valid hour & minutes<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {<NEW_LINE>view.setHour(hourOfDay);<NEW_LINE>view.setMinute(correctedMinutes);<NEW_LINE>} else {<NEW_LINE>view.setCurrentHour(hourOfDay);<NEW_LINE>// we need to set minutes to 0 for this to work on olde...
final EditText textInput = (EditText) maybeTextInput;
943,062
static private void printValues(String value, String loc) {<NEW_LINE>// for debug printing<NEW_LINE>char[] buffervalue = value.toCharArray();<NEW_LINE>byte[] bytevalue = new byte[buffervalue.length];<NEW_LINE>for (int ivalue = 0; ivalue < bytevalue.length; ivalue++) {<NEW_LINE>bytevalue[ivalue] <MASK><NEW_LINE>if (com....
= (byte) buffervalue[ivalue];
133,915
public static void main(String[] args) {<NEW_LINE>String sentence = String.join(" ", args);<NEW_LINE>for (int iter = 0; iter < ITERATIONS; iter++) {<NEW_LINE>if (ITERATIONS != 1)<NEW_LINE>System.out.println("-- iteration " + (iter + 1) + " --");<NEW_LINE>long total = 0, start = System.currentTimeMillis(), last = start;...
Character::isUpperCase).count();
583,399
private void arclight$portalCreate(BlockPos pos, Direction.Axis axis, CallbackInfoReturnable<Optional<BlockUtil.FoundRectangle>> cir) {<NEW_LINE>CraftWorld craftWorld = ((WorldBridge) this.level).bridge$getWorld();<NEW_LINE>List<org.bukkit.block.BlockState> blockStates;<NEW_LINE>if (this.arclight$populator == null) {<N...
getPluginManager().callEvent(event);
583,992
public static synchronized FileObject readOnlyLocalRepositoryFile(FileObject file) {<NEW_LINE>File f = FileUtil.toFile(file);<NEW_LINE>if (f == null || !file.isData()) {<NEW_LINE>return file;<NEW_LINE>}<NEW_LINE>LocalFileSystem fs = repoFS != null ? repoFS.get() : null;<NEW_LINE>if (fs == null) {<NEW_LINE>fs = new Loca...
new WeakReference<LocalFileSystem>(fs);
1,295,025
public static <M extends DataFrameClassifier> ClassificationValidation<M> of(Formula formula, DataFrame train, DataFrame test, BiFunction<Formula, DataFrame, M> trainer) {<NEW_LINE>int[] y = formula.y(train).toIntArray();<NEW_LINE>int[] testy = formula.y(test).toIntArray();<NEW_LINE>long start = System.nanoTime();<NEW_...
i), posteriori[i]);
960,015
private void initCustomizedApis() {<NEW_LINE>Set<ApiDefinition> definitions = new HashSet<>();<NEW_LINE>ApiDefinition api1 = new ApiDefinition("some_customized_api").setPredicateItems(new HashSet<ApiPredicateItem>() {<NEW_LINE><NEW_LINE>{<NEW_LINE>add(new ApiPathPredicateItem().setPattern("/images"));<NEW_LINE>add(new ...
.setMatchStrategy(SentinelGatewayConstants.URL_MATCH_STRATEGY_PREFIX));
864,175
private void mockHeader(ServerHttpRequest request, String xAuthApp, String xAuthKey, String xAuthUser, String xAuthPwd, String empId, String oauth2Token, String emailAddr) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("mutateHeader:requestId={},xAuthApp={},xAuthKey={},xAuthUser={},empId={}", request.getId()...
new String[] { empId });
1,596,407
protected Query createQuery(EntityManager em, LoadContext<?> context, boolean singleResult, boolean countQuery) {<NEW_LINE>LoadContext.<MASK><NEW_LINE>JpqlQueryBuilder queryBuilder = AppBeans.get(JpqlQueryBuilder.NAME);<NEW_LINE>queryBuilder.setId(context.getId()).setIds(context.getIds()).setEntityName(context.getMetaC...
Query contextQuery = context.getQuery();
190,862
// BenchMark IntStack vs ArrayDeque.<NEW_LINE>private static void benchMarkTest() {<NEW_LINE>int n = 10000000;<NEW_LINE>IntStack intStack = new IntStack(n);<NEW_LINE>// IntStack times at around 0.0324 seconds<NEW_LINE>long start = System.nanoTime();<NEW_LINE>for (int i = 0; i < n; i++) intStack.push(i);<NEW_LINE>for (i...
++) listStack.push(i);
1,399,420
/*<NEW_LINE>hash is MD5<NEW_LINE>h(0) <- hash(passphrase, iv);<NEW_LINE>h(n) <- hash(h(n-1), passphrase, iv);<NEW_LINE>key <- (h(0),...,h(n))[0,..,key.length];<NEW_LINE>*/<NEW_LINE>@SuppressWarnings({ "static" })<NEW_LINE>synchronized byte[] genKey(byte[] passphrase, byte[] iv) {<NEW_LINE>if (cipher == null)<NEW_LINE>c...
passphrase, 0, passphrase.length);
1,589,903
private static void printData(PrintStream writer, String title, ResultTable results) {<NEW_LINE>writer.println("Report: " + title);<NEW_LINE>if (results.getRows() == null || results.getRows().isEmpty()) {<NEW_LINE>writer.println("No results Found.");<NEW_LINE>} else {<NEW_LINE>// Print column headers.<NEW_LINE>for (Col...
getColumnHeaders().get(colNum);
701,259
private Pair<KeyspaceMetadata, CQL3Type.Raw> buildObject(final KeyspaceMetadata ksm, final String cfName, final String name, final ObjectMapper objectMapper, final Collection<Mutation> mutations, final Collection<Event.SchemaChange> events) throws RequestExecutionException {<NEW_LINE>switch(objectMapper.cqlStruct()) {<...
ConfigurationException("Cannot build UDT for empty object [" + name + "]");
1,273,447
protected void handleVCSNotification(final VCSKenaiNotification notification) {<NEW_LINE>if (notification.getService() != VCSKenaiAccessor.Service.VCS_HG) {<NEW_LINE>// NOI18N<NEW_LINE>Mercurial.LOG.fine("rejecting VCS notification " + notification + " because not from hg");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File pr...
" will notify " + file + ", " + notification);
416,840
public Request<AssociateTrackerConsumerRequest> marshall(AssociateTrackerConsumerRequest associateTrackerConsumerRequest) {<NEW_LINE>if (associateTrackerConsumerRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(AssociateTrackerConsumerRequest)");<NEW_LINE>}<NEW_LINE>Reques...
request.addHeader("Content-Type", "application/x-amz-json-1.1");
752,286
public void change(Event e, @Nullable Object[] delta, ChangeMode mode) {<NEW_LINE>ItemType[] source = items.getArray(e);<NEW_LINE>EnchantmentType[] enchants = new EnchantmentType[delta != null ? delta.length : 0];<NEW_LINE>if (delta != null && delta.length != 0) {<NEW_LINE>for (int i = 0; i < delta.length; i++) {<NEW_L...
(Enchantment) delta[i]);
976,393
public void prepare(Map<String, Object> conf, TopologyContext context, OutputCollector collector) {<NEW_LINE>String mdF = ConfUtils.getString(conf, metadataFilterParamName);<NEW_LINE>if (StringUtils.isNotBlank(mdF)) {<NEW_LINE>// split it in key value<NEW_LINE>int equals = mdF.indexOf('=');<NEW_LINE>if (equals != -1) {...
equals = mapping.indexOf('=');
1,570,469
private void mergeDependentCcCompilationContexts(Iterable<CcCompilationContext> exportedCcCompilationContexts, Iterable<CcCompilationContext> ccCompilationContexts, TransitiveSetHelper<String> allDefines, NestedSetBuilder<Artifact> transitiveModules, NestedSetBuilder<Artifact> transitivePicModules, Set<Artifact> direct...
CppModuleMap moduleMap = ccCompilationContext.getCppModuleMap();
1,677,239
public static final <V> V executeDirect(Callable<V> exe, Duration totalWaitTime) throws BackendException {<NEW_LINE>Preconditions.checkArgument(!totalWaitTime.isZero(), "Need to specify a positive waitTime: %s", totalWaitTime);<NEW_LINE>long maxTime = System.currentTimeMillis() + totalWaitTime.toMillis();<NEW_LINE>Dura...
sleep(waitTime.toMillis());
1,202,150
public List<MetricFamilySamples> collect() {<NEW_LINE>List<MetricFamilySamples> mfs = new ArrayList<>();<NEW_LINE>// Datasource<NEW_LINE>GaugeMetricFamily datasourceStatus = new GaugeMetricFamily("mysql_datasource_status", "jdbc datasource status", Collections.singletonList("type"));<NEW_LINE>DataSource datasource = (D...
), datasource.getMaxIdle());
136,478
private void parallelizationReplacement(StructuredGraph graph, InductionVariable inductionVar, int loopIndex, ValueNode maxIterations, List<IntegerLessThanNode> conditions) throws TornadoCompilationException {<NEW_LINE>if (inductionVar.isConstantInit() && inductionVar.isConstantStride()) {<NEW_LINE>final ConstantNode n...
, maxIterations, offset, stride));
1,730,964
private CallableStatement bindStmt(PersistRequestCallableSql request, boolean batchThisRequest) throws SQLException {<NEW_LINE>request.startBind(batchThisRequest);<NEW_LINE>SpiCallableSql callableSql = request.callableSql();<NEW_LINE>SpiTransaction t = request.transaction();<NEW_LINE>String sql = callableSql.getSql();<...
setQueryTimeout(callableSql.getTimeout());
342,011
public void generateDatabase(SQLite3GlobalState globalState) throws Exception {<NEW_LINE>Randomly r = new Randomly(SQLite3SpecialStringGenerator::generate);<NEW_LINE>globalState.setRandomly(r);<NEW_LINE>if (globalState.getDbmsSpecificOptions().generateDatabase) {<NEW_LINE>addSensiblePragmaDefaults(globalState);<NEW_LIN...
().size() == nrTablesToCreate;
1,131,599
private static Map<String, Field> fieldsByElementName(Map<Class<?>, Map<String, Field>> fieldsByClass, Class<?> type) {<NEW_LINE>Map<String, Field> result = fieldsByClass.get(type);<NEW_LINE>if (result == null) {<NEW_LINE>result = new <MASK><NEW_LINE>fieldsByClass.put(type, result);<NEW_LINE>for (Field child : type.get...
HashMap<String, Field>();
753,921
protected int doStartUpServer() {<NEW_LINE>// Create the war directory if it doesn't exist<NEW_LINE><MASK><NEW_LINE>if (!warDir.exists() && !warDir.mkdirs()) {<NEW_LINE>getTopLogger().log(TreeLogger.ERROR, "Unable to create war directory " + warDir);<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>Event jettyStartupEvent = Spe...
File warDir = options.getWarDir();
286,356
// Private methods ---------------------------------------------------------<NEW_LINE>private static Set<URL> readRoots(JavadocRegistry jdr, Set<ClassPath> classpaths, Set<JavadocForBinaryQuery.Result> results) {<NEW_LINE>Set<URL> roots = new HashSet<URL>();<NEW_LINE>List<ClassPath> paths = new LinkedList<ClassPath>();...
findJavadoc(ccpRoot.getURL());
286,679
public int runCmd(CommandLine cmdLine) throws Exception {<NEW_LINE>String[] leftArgs = cmdLine.getArgs();<NEW_LINE>if (leftArgs.length <= 0) {<NEW_LINE>System.err.println("ERROR: missing entry log id or entry log file name");<NEW_LINE>printUsage();<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>ReadLogCommand cmd = new ReadLo...
(result) ? 0 : -1;
1,100,890
public Answer copyVolumeFromImageCacheToPrimary(CopyCommand cmd) {<NEW_LINE>VolumeObjectTO srcVolume = (VolumeObjectTO) cmd.getSrcTO();<NEW_LINE>VolumeObjectTO destVolume = (VolumeObjectTO) cmd.getDestTO();<NEW_LINE>VmwareContext context = hostService.getServiceContext(cmd);<NEW_LINE>try {<NEW_LINE>NfsTO srcStore = (Nf...
.createLogMessageException(t, cmd));
1,602,855
public static MDLocalVariable create32(long[] args, Metadata md) {<NEW_LINE>final long lineAndArg = ParseUtil.asInt(args, ARGINDEX_32_LINEARG, md);<NEW_LINE>final long line = lineAndArg & DW_TAG_LOCAL_VARIABLE_LINE_MASK;<NEW_LINE>final long arg = (lineAndArg & DW_TAG_LOCAL_VARIABLE_ARG_MASK) >> DW_TAG_LOCAL_VARIABLE_AR...
, ARGINDEX_32_NAME, localVariable, md));
949,084
protected static Map<String, String> makeUnabbreviateMap() {<NEW_LINE>Map<String, String> result = new HashMap<>();<NEW_LINE>result.put("x", "RDF/XML");<NEW_LINE>result.put("rdf", "RDF/XML");<NEW_LINE>result.put("rdfxml", "RDF/XML");<NEW_LINE>result.put("xml", "RDF/XML");<NEW_LINE><MASK><NEW_LINE>result.put("n", "N3");...
result.put("n3", "N3");
1,387,950
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
661,469
/* Build call for tagsGet */<NEW_LINE>private com.squareup.okhttp.Call tagsGetCall(Integer limit, Integer offset, String xWSO2Tenant, String accept, String ifNoneMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExce...
"/tags".replaceAll("\\{format\\}", "json");
244,769
private String runForbiddenAPIsCli() throws IOException {<NEW_LINE>ByteArrayOutputStream errorOut = new ByteArrayOutputStream();<NEW_LINE>ExecResult result = getProject().javaexec(spec -> {<NEW_LINE>if (javaHome != null) {<NEW_LINE>spec.setExecutable(javaHome + "/bin/java");<NEW_LINE>}<NEW_LINE>spec.classpath(getForbid...
throw new IllegalStateException("Forbidden APIs cli failed: " + forbiddenApisOutput);
1,488,373
private void onPreTick(TickEvent.Pre event) {<NEW_LINE>// Update last rotation<NEW_LINE>didRotateThisTick = false;<NEW_LINE>lastRotationTimer++;<NEW_LINE>// Decrement placing timer<NEW_LINE>if (placing) {<NEW_LINE>if (placingTimer > 0)<NEW_LINE>placingTimer--;<NEW_LINE>else<NEW_LINE>placing = false;<NEW_LINE>}<NEW_LINE...
ticks = waitingToExplode.get(id);
1,806,927
public static IntObjectMap<Value> convertSchemaRuleToMap(SchemaRule rule, TokenHolders tokenHolders) throws KernelException {<NEW_LINE>// The dance we do in here with map to arrays to another map, allows us to resolve (and allocate) all of the tokens in a single batch operation.<NEW_LINE>Map<String, Value> stringlyMap ...
int size = stringlyMap.size();
977,470
public <T2, R1, R2, R3, R> SingleT<W, R> forEach4M(Function<? super T, ? extends SingleT<W, R1>> value1, BiFunction<? super T, ? super R1, ? extends SingleT<W, R2>> value2, Function3<? super T, ? super R1, ? super R2, ? extends SingleT<W, R3>> value3, Function4<? super T, ? super R1, ? super R2, ? super R3, Boolean> fi...
in3, in4)))));
1,232,798
private void pruneOutdatedEntries() {<NEW_LINE>ExternalSystemManager<?, ?, ?, ?, ?> manager = ExternalSystemApiUtil.getManager(myExternalSystemId);<NEW_LINE>assert manager != null;<NEW_LINE>Set<String> pathsToForget = ContainerUtilRt.newHashSet();<NEW_LINE>for (ExternalProjectPojo pojo : myAvailableProjects.get().keySe...
(module, ExternalSystemConstants.LINKED_PROJECT_PATH_KEY));
1,159,994
void train(int n, float[] x) {<NEW_LINE>if (n < ksub_) {<NEW_LINE>throw new IllegalArgumentException("Matrix too small for quantization, must have > 256 rows. But it is " + n);<NEW_LINE>}<NEW_LINE>IntVector perm = new IntVector(new int[n]);<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>perm.safeSet(i, i);<NEW_LINE>}<...
= new float[np * dsub_];
603,621
public static boolean visit(SQLEvalVisitor visitor, SQLCaseExpr x) {<NEW_LINE>Object value;<NEW_LINE>if (x.getValueExpr() != null) {<NEW_LINE>x.getValueExpr().accept(visitor);<NEW_LINE>if (!x.getValueExpr().getAttributes().containsKey(EVAL_VALUE)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>value = x.getValueExpr().ge...
getValueExpr().accept(visitor);
1,584,107
private void showPopup(MouseEvent e) {<NEW_LINE>Point pt = e.getPoint();<NEW_LINE>NodePort nodePort = getInputPortAt(inverseViewTransformPoint(pt), false);<NEW_LINE>if (nodePort != null) {<NEW_LINE>JPopupMenu pMenu = new JPopupMenu();<NEW_LINE>pMenu.<MASK><NEW_LINE>if (findNodeWithName(nodePort.getNode()).hasPublishedI...
add(new PublishAction(nodePort));
871,961
public List<Route> listRouteWithManual(String id) throws Exception {<NEW_LINE>List<Route> list = new ArrayList<>();<NEW_LINE>CacheCategory cacheCategory <MASK><NEW_LINE>CacheKey cacheKey = new CacheKey(id, Manual.class.getName());<NEW_LINE>Optional<?> optional = CacheManager.get(cacheCategory, cacheKey);<NEW_LINE>if (o...
= new CacheCategory(Route.class);
1,352,592
protected boolean doInsert(TimerJobEntity jobEntity, boolean fireCreateEvent) {<NEW_LINE>// add link to execution<NEW_LINE>if (jobEntity.getExecutionId() != null) {<NEW_LINE>ExecutionEntity execution = getExecutionEntityManager().findById(jobEntity.getExecutionId());<NEW_LINE>if (execution != null) {<NEW_LINE>execution...
setTenantId(execution.getTenantId());
550,495
final ModifyVpcAttributeResult executeModifyVpcAttribute(ModifyVpcAttributeRequest modifyVpcAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyVpcAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
550,895
public void onBackPressed() {<NEW_LINE>// Toast.makeText(this, "onBackPressed", Toast.LENGTH_SHORT).show();<NEW_LINE>if (isInterstialShown()) {<NEW_LINE>onFinishActivity();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (dc != null && dc.floatingBookmark != null) {<NEW_LINE>dc.floatingBookmark = null;<NEW_LINE>onRefresh.run()...
id.closePopup).performClick();