idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
687,815
private DataStore create(@Nonnull AuthenticatedUser user, @Nonnull DataStoreOptions options, @Nullable ClientInfo clientInfo) {<NEW_LINE>Persistence.Connection connection;<NEW_LINE>if (clientInfo != null) {<NEW_LINE>connection = persistence.newConnection(clientInfo);<NEW_LINE>} else {<NEW_LINE>connection = persistence....
setCustomProperties(options.customProperties());
1,748,381
public void afterFetchNodes() {<NEW_LINE>logDebug("afterFetchNodes");<NEW_LINE>// Set toolbar<NEW_LINE>tB = findViewById(R.id.toolbar_provider);<NEW_LINE>// Set app bar layout<NEW_LINE>aBL = findViewById(R.id.app_bar_layout_provider);<NEW_LINE>AppBarLayout.LayoutParams params = (AppBarLayout.LayoutParams) tB.getLayoutP...
.file_provider_title).toUpperCase());
898,154
private void init() {<NEW_LINE>if (radiusDEG > 90) {<NEW_LINE>// --spans more than half the globe<NEW_LINE>assert enclosingBox.getWidth() == 360;<NEW_LINE>double backDistDEG = 180 - radiusDEG;<NEW_LINE>if (backDistDEG > 0) {<NEW_LINE>double backRadius = 180 - radiusDEG;<NEW_LINE>double backX = DistanceUtils.normLonDEG(...
= getCenter().getY();
1,013,197
private Collection<? extends IPath> globalFolders() {<NEW_LINE>List<IPath> dirs = new ArrayList<IPath>();<NEW_LINE>// FIXME Handle properly on Windows...<NEW_LINE>Map<String, String> env = ShellExecutable.getEnvironment(location);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String <MASK><NEW_LINE>if (nodePath != null) {<NEW_LINE>...
nodePath = env.get("NODE_PATH");
1,325,771
private BLangLambdaFunction createLambdaFunction(Location pos, TypeNode returnType, BLangReturn returnNode, boolean isPassthrough) {<NEW_LINE>// function(_Frame frame) ... and ref to frame<NEW_LINE>BType frameType = getFrameTypeSymbol().type;<NEW_LINE>BVarSymbol frameSymbol = new BVarSymbol(0, names.fromString(FRAME_PA...
frameSymbol.type, null, frameSymbol);
1,073,721
private List<String> queryArguments() {<NEW_LINE>if (ARGMAX > 0) {<NEW_LINE>// Get arguments via sysctl(3)<NEW_LINE>int[] mib = new int[4];<NEW_LINE>// CTL_KERN<NEW_LINE>mib[0] = 1;<NEW_LINE>// KERN_PROC<NEW_LINE>mib[1] = 14;<NEW_LINE>// KERN_PROC_ARGS<NEW_LINE>mib[2] = 7;<NEW_LINE>mib[3] = getProcessID();<NEW_LINE>// ...
).intValue())));
726,145
public static void main(String[] args) {<NEW_LINE>Loader.loadNativeLibraries();<NEW_LINE>// [START solver]<NEW_LINE>MPSolver solver = MPSolver.createSolver("GLOP");<NEW_LINE>// [END solver]<NEW_LINE>// [START variables]<NEW_LINE>double infinity = java.lang.Double.POSITIVE_INFINITY;<NEW_LINE>// x and y are continuous no...
objective.setCoefficient(y, 4);
1,282,928
protected java.util.Date _parseDate(JsonParser p, DeserializationContext ctxt) throws IOException {<NEW_LINE>if (_customFormat != null) {<NEW_LINE>if (p.hasToken(JsonToken.VALUE_STRING)) {<NEW_LINE>String str = p.getText().trim();<NEW_LINE>if (str.isEmpty()) {<NEW_LINE>final CoercionAction <MASK><NEW_LINE>switch(// not...
act = _checkFromStringCoercion(ctxt, str);
922,959
// ===================================================================================<NEW_LINE>// Basic Override<NEW_LINE>// ==============<NEW_LINE>@Override<NEW_LINE>protected String doBuildColumnString(String dm) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(dm).append(available);<NEW_LINE>s...
(dm).append(paths);
1,842,011
PackingPlan buildNewPackingPlan(Map<String, Integer> changeRequests, PackingPlan currentPackingPlan) {<NEW_LINE>Map<String, Integer> componentDeltas = new HashMap<>();<NEW_LINE>Map<String, Integer> componentCounts = currentPackingPlan.getComponentCounts();<NEW_LINE>for (String compName : changeRequests.keySet()) {<NEW_...
newValue = changeRequests.get(compName);
644,968
public static void sendSupportInfo(final String text, final ActivityBase context) {<NEW_LINE>Util.log(null, Log.WARN, text);<NEW_LINE>if (Util.hasValidFingerPrint(context) && !"Genymotion".equals(Build.MANUFACTURER)) {<NEW_LINE>AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);<NEW_LINE>alertDia...
AlertDialog alertDialog = alertDialogBuilder.create();
582,522
public void analyze(Analyzer analyzer) throws AnalysisException, UserException {<NEW_LINE>super.analyze(analyzer);<NEW_LINE>// check operation privilege<NEW_LINE>if (!Env.getCurrentEnv().getAuth().checkGlobalPriv(ConnectContext.get(), PrivPredicate.ADMIN)) {<NEW_LINE>ErrorReport.reportAnalysisException(ErrorCode.ERR_SP...
(entity)).findFirst();
667,816
public boolean isSubsetOf(JSONObject little, JSONObject big) {<NEW_LINE>for (Object key : little.keySet()) {<NEW_LINE>Object littleValue = little.get(key);<NEW_LINE>Object bigValue = big.get(key);<NEW_LINE>// Key is not found in JSON log data<NEW_LINE>if (littleValue != null && bigValue == null) {<NEW_LINE>return false...
) littleValue, (JSONObject) bigValue);
1,560,305
protected void doCollectElementEvaluations(JRPrintPage page, List<JRPrintElement> elements, final ElementEvaluationsCollector collector, boolean clearEmpty) {<NEW_LINE>FillPageKey pageKey = new FillPageKey(page);<NEW_LINE>for (Map.Entry<JREvaluationTime, LinkedHashMap<FillPageKey, LinkedMap<Object, EvaluationBoundActio...
super.visitFrameElements(elements, arg);
1,057,757
public static void trainAndTest(Path trainPath, Path testPath, Path modelRoot, Path reportPath) throws IOException {<NEW_LINE>NerDataSet trainingSet = NerDataSet.load(trainPath, AnnotationStyle.BRACKET);<NEW_LINE>Log.info(trainingSet.info());<NEW_LINE>NerDataSet testSet = NerDataSet.load(testPath, AnnotationStyle.BRACK...
testResult = ner.evaluate(testSet);
787,595
public ListenableFuture<BuildOutput> compile(BlazeContext context, Label label, FastBuildState buildState, Set<File> modifiedFiles) {<NEW_LINE>checkState(buildState.completedBuildOutput().isPresent());<NEW_LINE>BuildOutput buildOutput = buildState.completedBuildOutput().get();<NEW_LINE>checkState(buildOutput.blazeData(...
instructions = modification.modifyInstructions(instructions);
397,620
protected long[] readMV4x4(int miCol, int miRow, int blSz, VPXBooleanDecoder decoder, DecodingContext c, int packedRefFrames) {<NEW_LINE>int subMode0 = readInterMode(miCol, miRow, blSz, decoder, c);<NEW_LINE>long mvl0 = readSub0(miCol, miRow, blSz, <MASK><NEW_LINE>int subMode1 = readInterMode(miCol, miRow, blSz, decode...
decoder, c, subMode0, packedRefFrames);
539,061
public static HashTree generateHashTree(ApiScenarioWithBLOBs item, Map<String, String> planEnvMap, JmeterRunRequestDTO runRequest) {<NEW_LINE>HashTree jmeterHashTree = new HashTree();<NEW_LINE>MsTestPlan testPlan = new MsTestPlan();<NEW_LINE>testPlan.setHashTree(new LinkedList<>());<NEW_LINE>try {<NEW_LINE>MsThreadGrou...
getHashTree().add(group);
770,715
public void render() {<NEW_LINE>if (!cached) {<NEW_LINE>cached = true;<NEW_LINE>count = 0;<NEW_LINE>spriteCache.clear();<NEW_LINE>final float extraWidth = viewBounds.width * overCache;<NEW_LINE>final float extraHeight = viewBounds.height * overCache;<NEW_LINE>cacheBounds.x = viewBounds.x - extraWidth;<NEW_LINE>cacheBou...
.y = viewBounds.y - extraHeight;
1,275,359
public static DescribeSnapshotsResponse unmarshall(DescribeSnapshotsResponse describeSnapshotsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSnapshotsResponse.setRequestId(_ctx.stringValue("DescribeSnapshotsResponse.RequestId"));<NEW_LINE>describeSnapshotsResponse.setTotalCount(_ctx.integerValue("DescribeSnapsh...
(_ctx.integerValue("DescribeSnapshotsResponse.PageNumber"));
1,645,553
final GetContextKeysForCustomPolicyResult executeGetContextKeysForCustomPolicy(GetContextKeysForCustomPolicyRequest getContextKeysForCustomPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContextKeysForCustomPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,113,610
public static /*<NEW_LINE>// FileChannel.transferTo() seems to fail under certain linux configurations.<NEW_LINE>public static boolean copyFile( final File _source, final File _dest ) {<NEW_LINE>FileChannel source = null;<NEW_LINE>FileChannel dest = null;<NEW_LINE>try {<NEW_LINE>if( _source.length() < 1L ) {<NEW_LINE>t...
!= null) source.close();
1,074,106
public static void openBrowser(String command, final Lookup context, final AndroidBrowser.Kind kind, final Project project, final BrowserSupport support) throws IllegalArgumentException {<NEW_LINE>final WebKitDebuggingSupport build = WebKitDebuggingSupport.getDefault();<NEW_LINE>if (COMMAND_RUN.equals(command) || COMMA...
(Bundle.ERR_StartFileNotFound()));
756,222
static HttpHandler updatesHandler(DataSource db) {<NEW_LINE>Objects.requireNonNull(db);<NEW_LINE>return exchange -> {<NEW_LINE>var worlds = new World[getQueries(exchange)];<NEW_LINE>try (var connection = db.getConnection()) {<NEW_LINE>try (var statement = connection.prepareStatement("SELECT * FROM world WHERE id = ?"))...
= new World(id, randomNumber);
1,621,143
public Collection<DynamicRecord> add(long labelId, NodeStore nodeStore, DynamicRecordAllocator allocator, CursorContext cursorContext, StoreCursors storeCursors, MemoryTracker memoryTracker) {<NEW_LINE>nodeStore.ensureHeavy(node, firstDynamicLabelRecordId(node.getLabelField()), storeCursors);<NEW_LINE>long[] existingLa...
, allocator), cursorContext, memoryTracker);
1,375,435
private void exportTemplateAccounts(XmlSerializer xmlSerializer, Collection<Account> accountList) throws IOException {<NEW_LINE>for (Account account : accountList) {<NEW_LINE>xmlSerializer.startTag(null, GncXmlHelper.TAG_ACCOUNT);<NEW_LINE>xmlSerializer.attribute(null, GncXmlHelper.ATTR_KEY_VERSION, GncXmlHelper.BOOK_V...
startTag(null, GncXmlHelper.TAG_COMMODITY_SCU);
1,647,930
public void marshall(UpdateFlowOutputRequest updateFlowOutputRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateFlowOutputRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateFlowOutpu...
updateFlowOutputRequest.getDescription(), DESCRIPTION_BINDING);
1,452,876
// Convert tabular data to (nested) maps. Path access is allowed here<NEW_LINE>private Object convertToMaps(TabularData pTd, Stack<String> pExtraArgs, ObjectToJsonConverter pConverter) throws AttributeNotFoundException {<NEW_LINE>JSONObject ret = new JSONObject();<NEW_LINE>TabularType type = pTd.getTabularType();<NEW_L...
(finalIndex), null, true);
1,637,918
public Object evaluate(EditorAdaptor vim, Queue<String> command) {<NEW_LINE>if (command.isEmpty()) {<NEW_LINE>try {<NEW_LINE>new ListUserCommandsCommand().execute(vim);<NEW_LINE>} catch (CommandExecutionException e) {<NEW_LINE>vim.getUserInterfaceService().setErrorMessage(e.getMessage());<NEW_LINE>}<NEW_LINE>return nul...
(name).execute(vim);
101,702
Object readInto(VirtualFrame frame, PSSLSocket self, int len, Object bufferObj, @CachedLibrary("bufferObj") PythonBufferAcquireLibrary bufferAcquireLib, @CachedLibrary(limit = "1") PythonBufferAccessLibrary bufferLib, @Cached SSLOperationNode sslOperationNode) {<NEW_LINE>Object buffer = bufferAcquireLib.acquireWritable...
read(frame, self, output);
1,303,524
ArrayList<Object> new80() /* reduce AAfullmethodbody5MethodBody */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList3 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayLis...
TRBrace) nodeArrayList3.get(0);
1,836,518
public ModelAndView alarmAddForm(HttpSession session, HttpServletResponse response, HttpServletRequest request) {<NEW_LINE>String clusterAlias = session.getAttribute(KConstants.SessionAlias.CLUSTER_ALIAS).toString();<NEW_LINE>ModelAndView mav = new ModelAndView();<NEW_LINE>String <MASK><NEW_LINE>String topic = request....
group = request.getParameter("ke_alarm_consumer_group");
719,297
public void timeoutMethod(Timer t) {<NEW_LINE>svLogger.info("--> Entered " + CLASS_NAME + ".timeoutMethod");<NEW_LINE>try {<NEW_LINE>svLogger.info("--> Timer t = " + t);<NEW_LINE>String infoKey = (String) t.getInfo();<NEW_LINE>svLogger.info("--> infoKey = " + infoKey);<NEW_LINE>TimerData td = TimerData.svIntEventMap.ge...
TimerData.addIntEvent(t, eventTag);
1,568,712
public void visit(BLangWhile astWhileStmt) {<NEW_LINE>BIRBasicBlock currentEnclLoopBB = this.env.enclLoopBB;<NEW_LINE>BIRBasicBlock currentEnclLoopEndBB = this.env.enclLoopEndBB;<NEW_LINE>// Create a basic block for the while expression.<NEW_LINE>BIRBasicBlock whileExprBB = new BIRBasicBlock(this.env.nextBBId(names));<...
null, whileExprBB, this.currentScope);
1,437,802
public static String textLocalPlan(ExecutionContext context, RelNode relNode, ExecutorMode type) {<NEW_LINE>if (context.getMemoryPool() == null) {<NEW_LINE>context.setMemoryPool(MemoryManager.getInstance().createQueryMemoryPool(WorkloadUtil.isApWorkload(context.getWorkloadType()), context.getTraceId(), context.getExtra...
(" ").append("\n");
223,380
public void initTeam(Long teamId, String operator) {<NEW_LINE>String teamDefaultRepo = System.getenv("TEAM_DEFAULT_REPO");<NEW_LINE>String teamDefaultRegistry = System.getenv("TEAM_DEFAULT_REGISTRY");<NEW_LINE>String teamDefaultAccount = System.getenv("TEAM_DEFAULT_ACCOUNT");<NEW_LINE>if (!StringUtils.isEmpty(teamDefau...
parseObject(repo, TeamRepo.class);
151,016
private String printToken(Token token) {<NEW_LINE>int modeAsInt = _combinedParser.getTokenMode(token);<NEW_LINE>String mode = _combinedParser.getLexer().getModeNames()[modeAsInt];<NEW_LINE>String rawTokenText = token.getText();<NEW_LINE>String tokenText = BatfishCombinedParser.escape(rawTokenText);<NEW_LINE>int tokenTy...
int line = token.getLine();
1,065,820
private CookieSerializer createDefaultCookieSerializer() {<NEW_LINE>DefaultCookieSerializer cookieSerializer = new DefaultCookieSerializer();<NEW_LINE>if (this.servletContext != null) {<NEW_LINE>SessionCookieConfig sessionCookieConfig = null;<NEW_LINE>try {<NEW_LINE>sessionCookieConfig = this.servletContext.getSessionC...
setCookieMaxAge(sessionCookieConfig.getMaxAge());
1,108,658
static void countNeighbors(UByteIndexer idx) {<NEW_LINE>long iMax = idx.size(0);<NEW_LINE>long jMax = idx.size(1);<NEW_LINE>long kMax = idx.size(2);<NEW_LINE>byte[] neighbors = new byte[26];<NEW_LINE>for (long k = 0; k < kMax; k++) {<NEW_LINE>for (long i = 0; i < iMax; i++) {<NEW_LINE>for (long j = 0; j < jMax; j++) {<...
iMax, jMax, kMax, neighbors);
1,177,790
public static <T> void parseFunctionClass(Class<T> clazz) {<NEW_LINE>if (Modifier.isAbstract(clazz.getModifiers()))<NEW_LINE>throw new IllegalArgumentException("Function class must be concrete! Class: " + clazz.getSimpleName());<NEW_LINE>T instance;<NEW_LINE>try {<NEW_LINE>instance = clazz.getConstructor().newInstance(...
) + "', provided in '" + clazz + "' must not declare checked exceptions");
809,995
public void generic(Request request, StreamObserver<Response> responseObserver) {<NEW_LINE>SofaRequest sofaRequest = TracingContextKey.getKeySofaRequest().get(Context.current());<NEW_LINE>String methodName = sofaRequest.getMethodName();<NEW_LINE>String interfaceName = sofaRequest.getInterfaceName();<NEW_LINE>ClassLoade...
proxyClass.getDeclaredMethod(methodName, argTypes);
27,996
private void handleNewIntent(NewIntentData data) {<NEW_LINE>Intent intent;<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {<NEW_LINE>intent = ReferrerIntent.ctor.newInstance(<MASK><NEW_LINE>} else {<NEW_LINE>intent = data.intent;<NEW_LINE>}<NEW_LINE>if (ActivityThread.performNewIntents != null)...
data.intent, data.creator);
132,302
private // This is based heavily on the Apple sample code for dealing with this issue<NEW_LINE>void macOSXRegistration() {<NEW_LINE>if (isMacOSX()) {<NEW_LINE>try {<NEW_LINE>Class<?> osxAdapter = ClassLoader.<MASK><NEW_LINE>Class<?>[] defArgs = { TregexGUI.class };<NEW_LINE>Method registerMethod = osxAdapter.getDeclare...
getSystemClassLoader().loadClass("edu.stanford.nlp.trees.tregex.gui.OSXAdapter");
410,471
protected void doStart() throws Exception {<NEW_LINE>if (!_dsProvided) {<NEW_LINE>boolean blankCustomnamespace = StringUtil.isBlank(getNamespace());<NEW_LINE>boolean blankCustomHost = StringUtil.isBlank(getHost());<NEW_LINE>boolean blankCustomProjectId = StringUtil.isBlank(getProjectId());<NEW_LINE>if (blankCustomnames...
Builder builder = DatastoreOptions.newBuilder();
1,330,782
final CreateIngestionResult executeCreateIngestion(CreateIngestionRequest createIngestionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createIngestionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight");
1,263,933
private final void sortByNames() {<NEW_LINE>for (int i = 1; i < this.names.length; i++) {<NEW_LINE>int cmp = this.names[0].compareTo(this.names[i]);<NEW_LINE>if (cmp == 0) {<NEW_LINE>Assert.fail("Field name " + this.names[0] + " occurs multiple times" + " in set of records.", getSource());<NEW_LINE>} else if (cmp > 0) ...
ts = this.names[0];
204,776
static private List<JavaProblem> checkForMissingBraces(PreprocSketch ps) {<NEW_LINE>List<JavaProblem> problems = new ArrayList<>(0);<NEW_LINE>for (int tabIndex = 0; tabIndex < ps.tabStartOffsets.length; tabIndex++) {<NEW_LINE>int tabStartOffset = ps.tabStartOffsets[tabIndex];<NEW_LINE>int tabEndOffset = (tabIndex < ps....
, braceResult[3] + 1);
1,378,164
public SolverReturnStatus update(BoundVariables.Builder bindings) {<NEW_LINE>if (!bindings.containsTypeVariable(typeParameter)) {<NEW_LINE>if (!typeVariableConstraint.canBind(actualType)) {<NEW_LINE>return SolverReturnStatus.UNSOLVABLE;<NEW_LINE>}<NEW_LINE>bindings.setTypeVariable(typeParameter, actualType);<NEW_LINE>r...
originalType = bindings.getTypeVariable(typeParameter);
1,718,683
private List<ItemEntity> createAudioChangeItems() {<NEW_LINE>List<ItemEntity> list = new ArrayList<>();<NEW_LINE>list.add(new ItemEntity(getResources().getString(R.string.audio_effect_setting_changetype_original), R.drawable.audio_effect_setting_changetype_original_open, AUDIO_VOICECHANGER_TYPE_0));<NEW_LINE>list.add(n...
.drawable.audio_effect_setting_changetype_luoli, AUDIO_VOICECHANGER_TYPE_2));
1,785,135
final UpdateClusterConfigurationResult executeUpdateClusterConfiguration(UpdateClusterConfigurationRequest updateClusterConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateClusterConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
943,851
final AddRegionResult executeAddRegion(AddRegionRequest addRegionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addRegionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<AddRegionRequest> request = null;<NE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
125,276
private QueryIterator resultsToQueryIterator(Binding binding, Node subj, Node score, Node literal, Node graph, Node prop, Collection<TextHit> results, ExecutionContext execCxt) {<NEW_LINE>log.trace("resultsToQueryIterator CALLED with results: {}", results);<NEW_LINE>Var sVar = Var.isVar(subj) ? Var.alloc(subj) : null;<...
results.iterator(), converter);
403,129
public Request<VerifyUserAttributeRequest> marshall(VerifyUserAttributeRequest verifyUserAttributeRequest) {<NEW_LINE>if (verifyUserAttributeRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(VerifyUserAttributeRequest)");<NEW_LINE>}<NEW_LINE>Request<VerifyUserAttributeRequ...
<VerifyUserAttributeRequest>(verifyUserAttributeRequest, "AmazonCognitoIdentityProvider");
187,937
private void onFinishHelper(EVCacheEvent e, Throwable t) {<NEW_LINE>Object clientSpanObj = e.getAttribute(CLIENT_SPAN_ATTRIBUTE_KEY);<NEW_LINE>// Return if the previously saved Client Span is null<NEW_LINE>if (clientSpanObj == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Span clientSpan = (Span) clientSpanObj;<NEW_LINE...
clientSpan, EVCacheTracingTags.STATUS, status);
163,424
public void actionPerformed(ActionEvent e) {<NEW_LINE>final GPColorChooser colorChooser = new GPColorChooser();<NEW_LINE>OkAction okAction = new OkAction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent arg0) {<NEW_LINE>Color color = colorChooser.getColor();<NEW_LINE>label.setBackground...
setColor(colorButton.getBackground());
936,618
/*<NEW_LINE>* use ScopeCleanupMarker dereferencing strategy to detect scope closure, add<NEW_LINE>* new entry to scopedCleanupActions map<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public Boolean visitScope(Scope scope) {<NEW_LINE>final Provider<ScopeCleanupMarker> scopedMarkerProvider;<NEW_LINE>if (scope.equal...
new ManagedInstanceAction(injectee, lifecycleActions));
1,344,750
private void drawOutline(MatrixStack matrixStack, int x1, int x2, int y1, int y2) {<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>float[] acColor = gui.getAcColor();<NEW_LINE>RenderSystem.setShaderColor(acColor[0...
, acColor[2], 0.5F);
150,090
private void saveGameLog(GameEndView gameEndView) {<NEW_LINE>String dir = "gamelogs";<NEW_LINE>File saveDir = new File(dir);<NEW_LINE>// Here comes the existence check<NEW_LINE>if (!saveDir.exists()) {<NEW_LINE>saveDir.mkdirs();<NEW_LINE>}<NEW_LINE>// get game log<NEW_LINE>try {<NEW_LINE>if (gameEndView.getMatchView()....
print(gamePanel.getGameLog());
1,592,029
public void testSetByteProperty_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFTCP = qcfTCP.createContext();<NEW_LINE>emptyQueue(qcfTCP, queue1);<NEW_LINE>JMSConsumer jmsConsumer = jmsContextQCFTCP.createConsumer(queue1);<NEW_LINE>JMSProducer jms...
(30000).getByteProperty(propName);
618,210
// suppressed warning about method length; this is simply populating a map, which while tedious,<NEW_LINE>// isn't incredibly complex<NEW_LINE>@SuppressWarnings("java:S138")<NEW_LINE>private Map<ValueType, Mapping<?, ?>> loadValueTypes() {<NEW_LINE>final Map<ValueType, Mapping<?, ?>> mapping = new EnumMap<>(ValueType.c...
.class, MessageSubscriptionIntent.class));
141,107
static Type of(PlannerVertex.Type from, PlannerVertex.Type to, StructureEdge.Native<?, ?> structureEdge) {<NEW_LINE>Encoding.Edge.Type encoding = structureEdge.encoding().asType();<NEW_LINE>switch(encoding) {<NEW_LINE>case SUB:<NEW_LINE>return new Type.Sub(from.asType(), to.asType(), structureEdge.isTransitive());<NEW_...
), to.asType());
1,607,880
public boolean onKeyDown(int keyCode, KeyEvent event) {<NEW_LINE>switch(keyCode) {<NEW_LINE>case KeyEvent.KEYCODE_MEDIA_REWIND:<NEW_LINE>case KeyEvent.KEYCODE_DPAD_LEFT:<NEW_LINE>{<NEW_LINE>fragment = CarouselFragment.newInstance(selectedCarouselItemIndex - 1);<NEW_LINE>FragmentTransaction ft = getFragmentManager().beg...
CarouselFragment.newInstance(selectedCarouselItemIndex + 1);
869,077
static void writeVarInt(DataOutput dos, int v) throws IOException {<NEW_LINE>if (v < 0) {<NEW_LINE>throw new IllegalArgumentException("Out of bounds: " + v);<NEW_LINE>}<NEW_LINE>int val = v;<NEW_LINE>if ((val & 0xFFFFFF80) == 0) {<NEW_LINE>dos.write(val);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>dos.write(0x80 | (0x7F & va...
throw new IllegalArgumentException("Out of bounds: " + v);
468,882
public static String convert(final int n) {<NEW_LINE>// System.out.println("n = " + n);<NEW_LINE>if (n == 0) {<NEW_LINE>return "zero";<NEW_LINE>}<NEW_LINE>if (n < 0) {<NEW_LINE>return "minus " + convert(-n);<NEW_LINE>}<NEW_LINE>if (n < 20) {<NEW_LINE>return units[n];<NEW_LINE>}<NEW_LINE>if (n < 100) {<NEW_LINE>return t...
) + convert(n % 1000000000);
1,581,017
/*<NEW_LINE>* Open an asset.<NEW_LINE>*<NEW_LINE>* The data could be in any asset path. Each asset path could be:<NEW_LINE>* - A directory on disk.<NEW_LINE>* - A Zip archive, uncompressed or compressed.<NEW_LINE>*<NEW_LINE>* If the file is in a directory, it could have a .gz suffix, meaning it is compressed.<NEW_LIN...
int i = mAssetPaths.size();
34,193
public void iterationStart(LoopIterationEvent iterEvent) {<NEW_LINE>FileServer server = FileServer.getFileServer();<NEW_LINE>final JMeterContext context = getThreadContext();<NEW_LINE>String delim = getDelimiter();<NEW_LINE>if ("\\t".equals(delim)) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>// Make it easier to enter a Tab // ...
threadVars.put(var, EOFVALUE);
705,335
public void requiredActionChallenge(RequiredActionContext context) {<NEW_LINE>UserProfileProvider provider = context.getSession().getProvider(UserProfileProvider.class);<NEW_LINE>UserProfile profile = provider.create(UserProfileContext.UPDATE_PROFILE, context.getUser());<NEW_LINE>try {<NEW_LINE>profile.validate();<NEW_...
.getHttpRequest().getDecodedFormParameters();
530,857
public void invokeSlackWebhook() {<NEW_LINE>RestTemplate restTemplate = new RestTemplate();<NEW_LINE>RichMessage richMessage = new RichMessage("Just to test Slack's incoming webhooks.");<NEW_LINE>// set attachments<NEW_LINE>Attachment[] attachments = new Attachment[1];<NEW_LINE>attachments<MASK><NEW_LINE>attachments[0]...
[0] = new Attachment();
887,810
public void write(JmeExporter ex) throws IOException {<NEW_LINE>OutputCapsule oc = ex.getCapsule(this);<NEW_LINE>oc.write(components, "components", 0);<NEW_LINE>oc.write(usage, "usage", Usage.Dynamic);<NEW_LINE>oc.write(bufType, "buffer_type", null);<NEW_LINE>oc.write(format, "format", Format.Float);<NEW_LINE>oc.write(...
ByteBuffer) roData, dataName, null);
827,058
private String methodDefinition(JavaMethod method) {<NEW_LINE>StringBuilder methodBuilder = new StringBuilder();<NEW_LINE>JavaType returnType = method.getReturnType();<NEW_LINE>String simpleReturn = returnType.getCanonicalName();<NEW_LINE>String returnClass = returnType.getGenericCanonicalName();<NEW_LINE>returnClass =...
.lastIndexOf(" ") + 1);
1,794,679
final StartModelPackagingJobResult executeStartModelPackagingJob(StartModelPackagingJobRequest startModelPackagingJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startModelPackagingJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
1,320,067
public static void uninstallJdk(int version) {<NEW_LINE>Path jdkDir = JdkManager.getInstalledJdk(version);<NEW_LINE>if (jdkDir != null) {<NEW_LINE>int defaultJdk = getDefaultJdk();<NEW_LINE>if (Util.isWindows()) {<NEW_LINE>// On Windows we have to check nobody is currently using the JDK or we could<NEW_LINE>// be causi...
Files.move(jdkDir, jdkTmpDir);
1,696,120
private void testSynthesizeFromDatagrams(LinkedList<HnmDatagram> datagrams, int startIndex, int endIndex, DataOutputStream output) throws IOException {<NEW_LINE>HntmSynthesizer s = new HntmSynthesizer();<NEW_LINE>// TODO: These should come from timeline and user choices...<NEW_LINE>HntmAnalyzerParams hnmAnalysisParams ...
datagram = datagrams.get(i);
1,434,515
private List<Slice> extractSlice(MonitorDataFrame mdf) {<NEW_LINE>List<Slice> list = new ArrayList<>();<NEW_LINE>Map<String, List<Map>> frames = mdf.getDatas();<NEW_LINE>String appgroup = mdf.getExt("appgroup");<NEW_LINE>String pid = mdf.getExt("pid");<NEW_LINE>for (Map.Entry<String, List<Map>> frame : frames.entrySet(...
"RuntimeNotify Extract Slices: slices size=" + list.size());
1,530,821
void deserialize(TaskMonitor monitor) throws IOException, PdbException, CancelledException {<NEW_LINE>int streamNumber;<NEW_LINE>PdbByteReader reader;<NEW_LINE>PdbDebugInfo debugInfo = pdb.getDebugInfo();<NEW_LINE>if (debugInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>streamNumber = debugInfo.getSymbolRecordsStr...
int x = reader.parseInt();
1,014,502
private void writeImageSize(@NonNull final BluetoothGattCharacteristic characteristic, final int imageSize) throws DeviceDisconnectedException, DfuException, UploadAbortedException {<NEW_LINE>mReceivedData = null;<NEW_LINE>mError = 0;<NEW_LINE>mImageSizeInProgress = true;<NEW_LINE>characteristic.setWriteType(BluetoothG...
imageSize, BluetoothGattCharacteristic.FORMAT_UINT32, 0);
433,922
private void checkKafkaProperties() throws AnalysisException {<NEW_LINE>Optional<String> optional = properties.keySet().stream().filter(entity -> !CONFIGURABLE_PROPERTIES_SET.contains(entity)).filter(entity -> !entity.startsWith("property.")).findFirst();<NEW_LINE>if (optional.isPresent()) {<NEW_LINE>throw new Analysis...
CreateRoutineLoadStmt.analyzeKafkaOffsetProperty(kafkaOffsetsString, kafkaPartitionOffsets);
1,563,890
private void addBuildPane() {<NEW_LINE>buildTxGridPane = new GridPane();<NEW_LINE>gridPane.add(buildTxGridPane, 1, rowIndex);<NEW_LINE>int rowIndexA = 0;<NEW_LINE>buyerSignatureAsHex = addInputTextField(buildTxGridPane, ++rowIndexA, "buyerSignatureAsHex");<NEW_LINE>sellerSignatureAsHex = addInputTextField(buildTxGridPa...
Button buttonBuild = new AutoTooltipButton("Build");
976,425
public void morseCodeFinished() {<NEW_LINE>try {<NEW_LINE>logger.debug("currentSequence {}", currentSequence);<NEW_LINE>if (currentSequence >= sequenceLength) {<NEW_LINE>round++;<NEW_LINE>logger.<MASK><NEW_LINE>if (round < repeats) {<NEW_LINE>// for repeats currentSequence must be 0 because the initial Tone<NEW_LINE>cu...
debug("round {} repeat {}", round, repeats);
1,330,250
public static QueryResourceInventoryResponse unmarshall(QueryResourceInventoryResponse queryResourceInventoryResponse, UnmarshallerContext context) {<NEW_LINE>queryResourceInventoryResponse.setRequestId(context.stringValue("QueryResourceInventoryResponse.RequestId"));<NEW_LINE>queryResourceInventoryResponse.setCode(con...
+ "].ResourceInventories[" + j + "].ResourceType"));
1,488,280
public static void main(String[] args) throws TwilioRestException {<NEW_LINE>TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);<NEW_LINE>String[] randomMessages = { "Working hard", "Gotta ship this feature", "Someone fucked the system again" };<NEW_LINE>int randomIndex = new Random().nextInt(rando...
("Body", "Late at work. " + finalMessage));
1,116,541
private SolidFireUtil.SolidFireVolume createClone(SolidFireUtil.SolidFireConnection sfConnection, long dataObjectId, VolumeInfo volumeInfo, long sfAccountId, long storagePoolId, DataObjectType dataObjectType) {<NEW_LINE>String sfNewVolumeName = volumeInfo.getName();<NEW_LINE>long sfVolumeId = Long.MIN_VALUE;<NEW_LINE>l...
volumeInfo.getMaxIops(), storagePoolId);
165,814
protected void execute(Terminal terminal, OptionSet options, Environment env) throws Exception {<NEW_LINE>String username = parseUsername(arguments.values(options), env.settings());<NEW_LINE>char[] passwordHash = getPasswordHash(terminal, env, passwordOption.value(options));<NEW_LINE>Path file = FileUserPasswdStore.res...
users.put(username, passwordHash);
812,435
final DeleteCustomRoutingListenerResult executeDeleteCustomRoutingListener(DeleteCustomRoutingListenerRequest deleteCustomRoutingListenerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCustomRoutingListenerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,127,404
public static StarlarkBazelModule create(AbridgedModule module, ModuleExtension extension, RepositoryMapping repoMapping, @Nullable ModuleExtensionUsage usage) throws ExternalDepsException {<NEW_LINE>LabelConverter labelConverter = new LabelConverter(createModuleRootLabel(module.getCanonicalRepoName()), repoMapping);<N...
), tag.getLocation());
1,597,635
public static GetDBTopologyResponse unmarshall(GetDBTopologyResponse getDBTopologyResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDBTopologyResponse.setRequestId<MASK><NEW_LINE>getDBTopologyResponse.setSuccess(_ctx.booleanValue("GetDBTopologyResponse.Success"));<NEW_LINE>getDBTopologyResponse.setErrorMessage(_ctx.str...
(_ctx.stringValue("GetDBTopologyResponse.RequestId"));
823,757
public static String stringForMessageListDate(long date) {<NEW_LINE>try {<NEW_LINE>date *= 1000;<NEW_LINE>Calendar rightNow = Calendar.getInstance();<NEW_LINE>int day = <MASK><NEW_LINE>rightNow.setTimeInMillis(date);<NEW_LINE>int dateDay = rightNow.get(Calendar.DAY_OF_YEAR);<NEW_LINE>if (Math.abs(System.currentTimeMill...
rightNow.get(Calendar.DAY_OF_YEAR);
1,115,271
public void doText(SubmissionViewHolder holder, Submission submission, Context mContext, String baseSub, boolean full) {<NEW_LINE>SpannableStringBuilder t = SubmissionCache.getTitleLine(submission, mContext);<NEW_LINE>SpannableStringBuilder l = SubmissionCache.getInfoLine(submission, mContext, baseSub);<NEW_LINE>Spanna...
a.getDimensionPixelSize(1, 14);
264,232
public static boolean saveFile(File file, String[] lines, boolean append) {<NEW_LINE>boolean error = false;<NEW_LINE>if (file != null && lines != null && lines.length > 0) {<NEW_LINE>BufferedWriter bw = null;<NEW_LINE>try {<NEW_LINE>bw = new BufferedWriter(<MASK><NEW_LINE>// Add new line before appending.<NEW_LINE>if (...
new FileWriter(file, append));
8,780
public boolean visit(TypeDeclaration node) {<NEW_LINE>if (this.tm.isFake(node))<NEW_LINE>return true;<NEW_LINE>handleToken(node.getName(<MASK><NEW_LINE>List<TypeParameter> typeParameters = node.typeParameters();<NEW_LINE>handleTypeParameters(typeParameters);<NEW_LINE>if (!node.isInterface() && !node.superInterfaceTypes...
), TokenNameIdentifier, true, false);
1,049,376
// ***********************************************************************************<NEW_LINE>// METHODS<NEW_LINE>// ***********************************************************************************<NEW_LINE>@Override<NEW_LINE>public void propagate(int evtmask) throws ContradictionException {<NEW_LINE>for (int i = ...
nSets - 1 + offSet1, this);
344,073
// visible for testing<NEW_LINE>static String toJavaVersionString(int[] version) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(version[0]).append('.');<NEW_LINE>sb.append(version[<MASK><NEW_LINE>sb.append(version[2]);<NEW_LINE>if (version.length > 3 && version[3] > 0)<NEW_LINE>sb.append('_...
1]).append('.');
1,689,846
/* This function picks up itemsets that have enough outlier support and risk ratio in the current pane<NEW_LINE>* (a.k.a. itemsets that can be promoted) and starts tracking their occurrences in the window.<NEW_LINE>*<NEW_LINE>* Variables affected:<NEW_LINE>* - trackingMap: record that we start tracking new frequent i...
> itemset = iiwc.getItems();
717,169
public void marshall(ReplicationSet replicationSet, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (replicationSet == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshal...
replicationSet.getArn(), ARN_BINDING);
256,901
private List<PHPDocVarTypeTag> findMethodParams(String description, int startOfDescription) {<NEW_LINE>List<PHPDocVarTypeTag> result = new ArrayList();<NEW_LINE>int position = startOfDescription;<NEW_LINE>ParametersExtractor parametersExtractor = ParametersExtractorImpl.create();<NEW_LINE>String parameters = parameters...
description, startOfDescription, paramName, position);
501,428
public void registerScriptPlugin(String type, String objectId) {<NEW_LINE>ScriptObject <MASK><NEW_LINE>if (object == null) {<NEW_LINE>object = new ScriptObject(objectId, this);<NEW_LINE>mObjects.put(objectId, object);<NEW_LINE>}<NEW_LINE>switch(type) {<NEW_LINE>case ScriptObject.TYPE_RESOLVER:<NEW_LINE>mResolverPluginF...
object = mObjects.get(objectId);
1,682,409
public Iterable<WindowedValue<InputT>> processElementInReadyWindows(WindowedValue<InputT> elem) {<NEW_LINE>if (views.isEmpty()) {<NEW_LINE>// When there are no side inputs, we can preserve the compressed representation.<NEW_LINE>underlying.processElement(elem);<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LI...
> pushedBack = ImmutableList.builder();
526,818
protected void trainModel() throws LibrecException {<NEW_LINE>for (int iter = 1; iter <= numIterations; iter++) {<NEW_LINE>loss = 0.0d;<NEW_LINE>for (MatrixEntry matrixEntry : trainMatrix) {<NEW_LINE>// user userIdx<NEW_LINE>int userIdx = matrixEntry.row();<NEW_LINE>// item itemIdx<NEW_LINE>int itemIdx = matrixEntry.co...
predictRating = predict(userIdx, itemIdx);
1,317,297
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>Project project = <MASK><NEW_LINE>VcsLogDataPack dataPack = myFilterModel.getDataPack();<NEW_LINE>VcsLogFileFilter filter = myFilterModel.getFilter();<NEW_LINE>Collection<VirtualFile> files;<NEW_LINE>if (filter == null || filter.getStructureFilter() == nu...
e.getRequiredData(CommonDataKeys.PROJECT);
1,106,750
public R visit(final CompilationUnit n, final A arg) {<NEW_LINE>R result;<NEW_LINE>{<NEW_LINE>result = n.getImports().accept(this, arg);<NEW_LINE>if (result != null)<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>if (n.getModule().isPresent()) {<NEW_LINE>result = n.getModule().get(<MASK><NEW_LINE>if (result != null)<NEW_L...
).accept(this, arg);