idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,247,638
final StartMatchmakingResult executeStartMatchmaking(StartMatchmakingRequest startMatchmakingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startMatchmakingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,643,782
final PutFeedbackResult executePutFeedback(PutFeedbackRequest putFeedbackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putFeedbackRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<PutFeedbackRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
121,116
public boolean onOptionsItemSelected(final MenuItem item) {<NEW_LINE>// handle my own menus<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case CONTEXT_MENU_SHORTCUT:<NEW_LINE>{<NEW_LINE>AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();<NEW_LINE>final Intent shortcutIntent = item.getIntent();<NEW...
targetView.getTag()).item;
385,143
final UpdateJobShipmentStateResult executeUpdateJobShipmentState(UpdateJobShipmentStateRequest updateJobShipmentStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJobShipmentStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
false), new UpdateJobShipmentStateResultJsonUnmarshaller());
1,790,215
final UpdateObjectAttributesResult executeUpdateObjectAttributes(UpdateObjectAttributesRequest updateObjectAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateObjectAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
726,097
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.DeviceManagementGrpc.DeviceManagementImplBase#<NEW_LINE>* listDeviceGroups(com.sitewhere.grpc.service.GListDeviceGroupsRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void listDev...
setResults(results.build());
675,091
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (player == null || sourcePermanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (play...
getName(), cards, game);
1,353,175
private String outputModifiedBitmap(Bitmap bitmap, Uri uri, String mimeTypeOfOriginalFile) throws IOException {<NEW_LINE>// Some content: URIs do not map to file paths (e.g. picasa).<NEW_LINE>String realPath = FileHelper.<MASK><NEW_LINE>String fileName = calculateModifiedBitmapOutputFileName(mimeTypeOfOriginalFile, rea...
getRealPath(uri, this.cordova);
669,696
public void readCustomNBT(CompoundTag nbt, boolean descPacket) {<NEW_LINE>int[] <MASK><NEW_LINE>for (int i = 0; i < 6; ++i) {<NEW_LINE>Direction curDir = Direction.from3DDataValue(i);<NEW_LINE>if (i < config.length) {<NEW_LINE>boolean connected = config[i] != 0;<NEW_LINE>sideConfig.put(curDir, connected);<NEW_LINE>if (...
config = nbt.getIntArray("sideConfig");
1,115,699
public int run(String launcherVersion, String launcherMd5, ServerUrlGenerator urlGenerator, Map<String, String> environmentVariables, Map context) {<NEW_LINE>String agentProcessParentClassName = JarUtil.getManifestKey(Downloader.AGENT_BINARY_JAR, GO_AGENT_BOOTSTRAP_CLASS);<NEW_LINE>String tempDirSuffix = new BigInteger...
aClass = urlClassLoader.loadClass(agentProcessParentClassName);
1,264,585
public static OpenTag query(Node base, String path, boolean caseInsensitive) {<NEW_LINE>StringTokenizer st = new StringTokenizer(path, Character.toString(ELEMENT_PATH_ELEMENTS_DELIMITER));<NEW_LINE>Node found = base;<NEW_LINE>while (st.hasMoreTokens()) {<NEW_LINE>String token = st.nextToken();<NEW_LINE>int indexDelim =...
nodeName.toLowerCase(Locale.ENGLISH);
50,402
public static boolean isAllVariablesDefined(Evaluatee source, String logic) {<NEW_LINE>if (logic == null || logic.length() == 0)<NEW_LINE>return true;<NEW_LINE>//<NEW_LINE>int pos = 0;<NEW_LINE>while (pos < logic.length()) {<NEW_LINE>int first = logic.indexOf('@', pos);<NEW_LINE>if (first == -1)<NEW_LINE>return true;<N...
indexOf('@', first + 1);
1,707,169
public static void main(String[] args) {<NEW_LINE>int n;<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println();<NEW_LINE>// Taking Array size from the user<NEW_LINE>System.out.print("Enter the size of array: ");<NEW_LINE>n = sc.nextInt();<NEW_LINE>int[] arr = new int[n];<NEW_LINE>System.out.printl...
i] = sc.nextInt();
1,475,639
private static void buildFileForCompliance(String file, int length, String[] tokens) {<NEW_LINE>byte[] result = new byte[length * 8];<NEW_LINE>for (int i = 0; i < tokens.length; i = i + 3) {<NEW_LINE>if ("2".equals(tokens[i])) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>int index = Integer.parseInt(tokens[i + 1]);<NEW_LINE>Stri...
) (compliance >>> 32);
1,591,471
private static int readSimpleHuffmanCode(int alphabetSizeMax, int alphabetSizeLimit, int[] tableGroup, int tableIdx, State s) {<NEW_LINE>// TODO(eustas): Avoid allocation?<NEW_LINE>int[] codeLengths = new int[alphabetSizeLimit];<NEW_LINE>int[] symbols = new int[4];<NEW_LINE>int maxBits = 1 + log2floor(alphabetSizeMax -...
[symbols[1]] = 2;
658,109
public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));<NEW_LINE>if (targetPlayer != null) {<NEW_LINE>ContinuousEffect effect = new GainControlTargetEffect(Duration.EndOfTurn, targetPlayer.getId());<NEW_LINE>effect.setTargetPointer(new ...
game.addEffect(effect, source);
1,526,556
public WebSocket write(AtmosphereResponse r, String data) throws IOException {<NEW_LINE>firstWrite.set(true);<NEW_LINE>if (data == null) {<NEW_LINE>logger.<MASK><NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (!isOpen())<NEW_LINE>throw new IOException("Connection remotely closed for " + uuid);<NEW_LINE>logger.trace("WebS...
error("Cannot write null value for {}", resource());
1,526,399
private void extractJavaDoc(Class<?> clazz) {<NEW_LINE>ASTParser parser = ASTParser.newParser(AST.JLS4);<NEW_LINE>parser.setSource(sourceCodeFetcher.get(clazz).toCharArray());<NEW_LINE>parser.setKind(ASTParser.K_COMPILATION_UNIT);<NEW_LINE>final CompilationUnit cu = (CompilationUnit) parser.createAST(null);<NEW_LINE>cu...
).getIdentifier() + " not found in class");
1,658,661
public void apply(Project project) {<NEW_LINE>Provider<ValidateJsonAgainstSchemaTask> validateRestSpecTask = project.getTasks().register("validateRestSpec", ValidateJsonAgainstSchemaTask.class, task -> {<NEW_LINE>task.setInputFiles(Util.getJavaTestAndMainSourceResources(project, filter -> {<NEW_LINE>filter.include(DOUB...
DOUBLE_STAR + "/rest-api-spec/api/" + DOUBLE_STAR + "/*.json");
360,063
public IRubyObject op_aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1) {<NEW_LINE>if (arg0 instanceof RubyFixnum) {<NEW_LINE>return op_aset(context, RubyNumeric.fix2int((RubyFixnum) arg0), arg1);<NEW_LINE>} else if (arg0 instanceof RubyRegexp) {<NEW_LINE>subpatSet(context, (RubyRegexp) arg0, null, arg1);...
.num2int(arg0), arg1);
612,159
public Object lookup(String name) throws NamingException {<NEW_LINE>final String methodName = "lookup(): ";<NEW_LINE>name = CorbanameUrlContextFactory.Escaper.escapeCorbanameUrlIfNecessary(name);<NEW_LINE>if (tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, methodName + "");<NEW_LINE>org.omg.CORBA.Object result = orb.string_...
tc, methodName + ": " + e);
1,517,773
final UpdateSecurityGroupRuleDescriptionsIngressResult executeUpdateSecurityGroupRuleDescriptionsIngress(UpdateSecurityGroupRuleDescriptionsIngressRequest updateSecurityGroupRuleDescriptionsIngressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSecurityGroupRuleDescriptionsIngressRe...
(super.beforeMarshalling(updateSecurityGroupRuleDescriptionsIngressRequest));
11,847
private List<SqlArgument> buildAllParams(final List<SqlArgument> argTypeList, final AggregateFunctionInitArguments initArgs) {<NEW_LINE>if (initArgs.args().isEmpty()) {<NEW_LINE>return argTypeList;<NEW_LINE>}<NEW_LINE>final List<SqlArgument> allParams = new ArrayList<>(argTypeList.size() + initArgs.args().size());<NEW_...
) + ", but got " + arg, e);
940,915
public static DescribeInstanceSpecificationsResponse unmarshall(DescribeInstanceSpecificationsResponse describeInstanceSpecificationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceSpecificationsResponse.setRequestId(_ctx.stringValue("DescribeInstanceSpecificationsResponse.RequestId"));<NEW_LINE>describe...
(_ctx.booleanValue("DescribeInstanceSpecificationsResponse.Success"));
441,817
static Class<?> findEnclosingLibraryClass(Class<?> cls) {<NEW_LINE>if (cls == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Check for direct-mapped libraries, which won't necessarily<NEW_LINE>// implement com.sun.jna.Library.<NEW_LINE>Map<String, ?> libOptions = typeOptions.get(cls);<NEW_LINE>if (libOptions != n...
cls = CallbackReference.findCallbackClass(cls);
796,201
public static AlertMessage fromByteArray(final byte[] byteArray) throws HandshakeException {<NEW_LINE>DatagramReader reader = new DatagramReader(byteArray);<NEW_LINE>byte levelCode = reader.readNextByte();<NEW_LINE>byte descCode = reader.readNextByte();<NEW_LINE>AlertLevel level = AlertLevel.getLevelByCode(levelCode);<...
return new AlertMessage(level, description);
369,275
private JMenu createPluginsMenu() {<NEW_LINE>final List<IMainWindowMenuPlugin> plugins = new ArrayList<IMainWindowMenuPlugin>();<NEW_LINE>for (@SuppressWarnings("rawtypes") final IPlugin plugin : PluginInterface.instance().getPluginRegistry()) {<NEW_LINE>if (plugin instanceof IMainWindowMenuPlugin) {<NEW_LINE>plugins<M...
.add((IMainWindowMenuPlugin) plugin);
1,167,951
public BufferedImage generateIdenticons(String id, int image_width, int image_height) throws NoSuchAlgorithmException {<NEW_LINE>int width = 5;<NEW_LINE>int height = 5;<NEW_LINE>byte[] hash = hash(id);<NEW_LINE>BufferedImage identicon = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);<NEW_LINE>WritableRas...
op.filter(identicon, finalImage);
1,109,630
final DescribeNetworkInterfacesResult executeDescribeNetworkInterfaces(DescribeNetworkInterfacesRequest describeNetworkInterfacesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeNetworkInterfacesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
(super.beforeMarshalling(describeNetworkInterfacesRequest));
63,709
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#findIdsByColumn(java.lang.String,<NEW_LINE>* java.lang.String, java.lang.String, java.lang.String, java.lang.Object,<NEW_LINE>* java.lang.Class)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public Object[] findIdsByColumn(String schemaN...
getIdAttribute().getJavaMember());
270,208
public static void energyAnalysis(BaselineAdaptationSet fileSet, EnergyFileHeader energyParams, boolean isForcedAnalysis) throws UnsupportedAudioFileException, IOException {<NEW_LINE>System.err.println("Starting energy analysis...");<NEW_LINE>boolean bAnalyze;<NEW_LINE>EnergyContourRms e = null;<NEW_LINE>for (int i = 0...
.items[i].energyFile);
23,510
public void configurationPropertyUsage() {<NEW_LINE>Map<String, String> properties = new HashMap<>();<NEW_LINE>properties.put("azure.sdk.sample.timeout", "1000");<NEW_LINE>properties.put("azure.sdk.sample.retry-count", "3");<NEW_LINE>properties.put("azure.sdk.sample.is-enabled", "true");<NEW_LINE>properties.put("azure....
ofBoolean("is-enabled").build();
386,037
private ListNode<Set<V>> lookupImpl(@NotNull Iterator<T> key) {<NEW_LINE>if (!key.hasNext()) {<NEW_LINE>if (root.values.size() > 0) {<NEW_LINE>return <MASK><NEW_LINE>} else {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// walk down the tree while terms of the key path sequence match the corresponding keys of t...
ListNode.of(root.values);
148,197
private static void addToEnumMap(RootNode root, EnumMapAttr mapAttr, InsnNode aputInsn) {<NEW_LINE>InsnArg litArg = aputInsn.getArg(2);<NEW_LINE>if (!litArg.isLiteral()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EnumMapInfo mapInfo = checkEnumMapAccess(root, aputInsn);<NEW_LINE>if (mapInfo == null) {<NEW_LINE>return;<NEW_...
.resolveField((FieldInfo) index);
86,272
private static <T> T invokeStatic(Class<?> target, String name, Class<T> returnType) {<NEW_LINE>Method method;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (NoSuchMethodException e) {<NEW_LINE>throw new IllegalStateException("Unable to find method '" + name + "' on " + target, e);<NEW_LINE>}<NEW_LINE>if (!method.isA...
method = target.getMethod(name);
862,337
private void verifySchema() throws SQLException {<NEW_LINE>String lastpart = "";<NEW_LINE>if (!tblprefix.equals(""))<NEW_LINE>lastpart = "AND owner = '" + tblprefix.substring(0, tblprefix.length() - 1) + "'";<NEW_LINE>boolean present = JDBCUtils.queryHasResult(stmt, "select * from " + dbtype.getMetaTableName() + " " + ...
tblprefix + "links_ix_id2 on " + tblprefix + "links (id2)");
434,107
public static void main(String[] args) throws IOException {<NEW_LINE>// Model converters will be loaded based on naming convention.<NEW_LINE>// Previously it would be loaded through ServiceLoader.load,<NEW_LINE>// which is still an option if dsljson.configuration name is specified.<NEW_LINE>// DSL-JSON loads all servic...
.asList(123, 456));
740,987
public final int start(Path homeDir, Path configFile, Map<String, String> configOverrides, boolean expandCommands) {<NEW_LINE>addShutdownHook();<NEW_LINE>installSignalHandlers();<NEW_LINE>Config config = Config.newBuilder().commandExpansion(expandCommands).setDefaults(GraphDatabaseSettings.SERVER_DEFAULTS).fromFileNoTh...
config.get(BootloaderSettings.pid_file);
860,623
public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>Log.d(TAG, "onMenuItemClick: Setting" + item);<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.allowlist_default_on_vpn:<NEW_LINE>Log.d(TAG, "onMenuItemClick: OnVpn");<NEW_LINE>MainActivity.config.allowlist<MASK><NEW_LINE>break;<NEW_LINE>case R.id.allowlis...
.defaultMode = Configuration.Allowlist.DEFAULT_MODE_ON_VPN;
929,250
public static ClientMessage encodeRequest(java.lang.String name, java.util.UUID txnId, long threadId, com.hazelcast.internal.serialization.Data key, com.hazelcast.internal.serialization.Data value) {<NEW_LINE><MASK><NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationName("TransactionalMap.Re...
ClientMessage clientMessage = ClientMessage.createForEncode();
381,607
public static Histogram add(Histogram... histograms) {<NEW_LINE>int buckets = histograms[0].buckets;<NEW_LINE>int resolution = histograms[0].resolution;<NEW_LINE>int <MASK><NEW_LINE>for (Histogram histogram : histograms) {<NEW_LINE>assert buckets == histogram.buckets;<NEW_LINE>assert resolution == histogram.resolution;...
ordersOfMagnitude = histograms[0].ordersOfMagnitude;
1,412,803
private void completionOnLocalOrArgumentName(ASTNode astNode, Scope scope) {<NEW_LINE>if (!this.requestor.isIgnored(CompletionProposal.VARIABLE_DECLARATION)) {<NEW_LINE>LocalDeclaration variable = (LocalDeclaration) astNode;<NEW_LINE>int kind;<NEW_LINE>if (variable instanceof CompletionOnLocalName) {<NEW_LINE>this.comp...
((BlockScope) scope, variable);
1,560,505
final EngineDefaults executeDescribeEngineDefaultParameters(DescribeEngineDefaultParametersRequest describeEngineDefaultParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEngineDefaultParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,733,552
private static void checksumResourceFilePath(final PwmDomain pwmDomain, final CrcChecksumOutputStream checksumStream) {<NEW_LINE>if (pwmDomain.getPwmApplication().getPwmEnvironment().getContextManager() != null) {<NEW_LINE>try {<NEW_LINE>final Optional<File> webInfPath = pwmDomain.getPwmApplication().getPwmEnvironment(...
"public" + File.separator + "resources");
823,193
private void handleRequest(final ServerOutput serverOutput, final int partitionId, final long requestId, final DirectBuffer buffer, final int offset, final int length) {<NEW_LINE>requestReader.reset();<NEW_LINE>responseWriter.reset();<NEW_LINE>errorResponseWriter.reset();<NEW_LINE>try {<NEW_LINE>requestReader.<MASK><NE...
wrap(buffer, offset, length);
1,089,210
private void generateDigraphsAndDoExperiments(int experiments, int vertices, int edges) {<NEW_LINE>StdOut.printf("%25s %15s %8s %8s %31s %20s\n", "Digraph type | ", "Experiments | ", "Vertices | ", "Edges | ", "Probability of finding path | ", "Average path length");<NEW_LINE>int totalPathsFound = 0;<NEW_LINE>int total...
exercise46_randomSimpleDigraphs.randomDigraph(vertices, edges);
964,079
public void factoryAdded(Class<?> factoryType, Object factory) {<NEW_LINE>if (factory instanceof RequestTransportFactory) {<NEW_LINE>RequestTransportFactory transportFactory = (RequestTransportFactory) factory;<NEW_LINE>addTransport(transportFactory.getProtocol(), transportFactory.newRequestTransport());<NEW_LINE>}<NEW...
transport = transports.get(protocol);
1,257,516
public void onDrawOver(@NonNull Canvas c, @NonNull RecyclerView parent, @NonNull RecyclerView.State state) {<NEW_LINE>if (!(prefs.getShowBounds() || prefs.getShowOffsets()))<NEW_LINE>return;<NEW_LINE>int childCount = parent.getChildCount();<NEW_LINE>for (int i = 0; i < childCount; i++) {<NEW_LINE>View <MASK><NEW_LINE>R...
child = parent.getChildAt(i);
1,127,773
protected String doIt() throws Exception {<NEW_LINE>StringBuffer sql = new StringBuffer("");<NEW_LINE>int cnt = 0;<NEW_LINE>log.info("Set Print Format");<NEW_LINE>try {<NEW_LINE>sql.append("UPDATE AD_PrintFormat pf " + "SET AD_PrintPaper_ID = " + p_Record_ID + " " + "WHERE EXISTS (SELECT * FROM AD_PrintPaper pp " + "WH...
Level.SEVERE, "set print format", e);
1,218,059
final ReadJobResult executeReadJob(ReadJobRequest readJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(readJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
797,905
protected Object computeValueAt(int row, int col) {<NEW_LINE>long value;<NEW_LINE>switch(col) {<NEW_LINE>case 0:<NEW_LINE>return flatProfileContainer.getMethodNameAtRow(row);<NEW_LINE>case 1:<NEW_LINE>return (float) flatProfileContainer.getTimeInMcs0AtRow(row);<NEW_LINE>case 2:<NEW_LINE>value = flatProfileContainer.get...
value = flatProfileContainer.getTotalTimeInMcs0AtRow(row);
1,277,007
private AnAction processActionElement(@Nonnull SimpleXmlElement element, @Nonnull PluginDescriptor plugin, @Nonnull LocalizeHelper localizeHelper) {<NEW_LINE>PluginId pluginId = plugin.getPluginId();<NEW_LINE>String className = element.getAttributeValue(CLASS_ATTR_NAME);<NEW_LINE>if (className == null || className.isEm...
KeymapManagerEx keymapManager = KeymapManagerEx.getInstanceEx();
418,785
public InstrumentInterval instrumentGetActiveIntervals() throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/instrument/activeIntervals";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryPa...
] contentTypes = { "application/json", "application/x-www-form-urlencoded" };
698,699
final ListReceivedLicensesResult executeListReceivedLicenses(ListReceivedLicensesRequest listReceivedLicensesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReceivedLicensesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,315,763
public void testMSExcel() throws IOException {<NEW_LINE>File demoDocument = null;<NEW_LINE>MSExcel msExcel = null;<NEW_LINE>try {<NEW_LINE>msExcel = new MSExcel();<NEW_LINE>System.out.println("MSExcel version: " + msExcel.getVersion());<NEW_LINE>msExcel.setVisible(true);<NEW_LINE>Helper.sleep(5);<NEW_LINE>demoDocument ...
openExcelBook(demoDocument.getAbsolutePath());
1,259,975
public static void vertical11(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final int[] dataSrc = src.data;<NEW_LINE>final int[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k...
k10 = kernel.data[9];
1,223,191
private static List<Datum> convertToGrid(List<RealVector> anchors) {<NEW_LINE>// TODO: Currently only supports 1D and 2D grids.<NEW_LINE>int size = 1;<NEW_LINE>for (RealVector v : anchors) {<NEW_LINE>size *= v.getDimension();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>List<Datum> grid = new ArrayList<>(size);<NEW_LINE>double[...
int dimension = anchors.size();
518,068
private long addFilesInDir(Path path, List<FileStatus> files, boolean logExcludedFiles) throws IOException {<NEW_LINE>final FileSystem fs = FileSystemUtils.getFlinkFileSystem(this.fs, path.toString());<NEW_LINE>long length = 0;<NEW_LINE>for (FileStatus dir : fs.listStatus(path)) {<NEW_LINE>if (dir.isDir()) {<NEW_LINE>i...
toString() + " did not pass the file-filter and is excluded" + ".");
621,087
private void readMapIndex(MapIndex index, boolean onlyInitEncodingRules) throws IOException {<NEW_LINE>int defaultId = 1;<NEW_LINE>int oldLimit;<NEW_LINE>int encodingRulesSize = 0;<NEW_LINE>while (true) {<NEW_LINE>int t = codedIS.readTag();<NEW_LINE>int tag = WireFormat.getTagFieldNumber(t);<NEW_LINE>switch(tag) {<NEW_...
= readMapLevel(new MapRoot());
173,141
final UpdateMailboxQuotaResult executeUpdateMailboxQuota(UpdateMailboxQuotaRequest updateMailboxQuotaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMailboxQuotaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
989,426
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.wsspi.runtime.component.WsComponent#destroy()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void destroy() throws Exception {<NEW_LINE>String thisMethodName = CLASS_NAME + ".destroy()";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
SibTr.exception(tc, e);
529,355
private String createAppClientProfileData(ActionContext context, MonitorDataFrame mdf, String appid, String appurl, String appgroup, Map<String, Object> appProfile) {<NEW_LINE>List<Map> clients = mdf.getElemInstances(appid, "clients");<NEW_LINE>long checkTime = System.currentTimeMillis();<NEW_LINE>long expireTime = 600...
client = clients.get(i);
516,562
public static GetCustomFieldsByTemplateIdResponse unmarshall(GetCustomFieldsByTemplateIdResponse getCustomFieldsByTemplateIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCustomFieldsByTemplateIdResponse.setRequestId(_ctx.stringValue("GetCustomFieldsByTemplateIdResponse.RequestId"));<NEW_LINE>getCustomFieldsByTempla...
("GetCustomFieldsByTemplateIdResponse.Data[" + i + "].UpdatedAt"));
525,602
final PutDraftAppVersionTemplateResult executePutDraftAppVersionTemplate(PutDraftAppVersionTemplateRequest putDraftAppVersionTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putDraftAppVersionTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,816,344
private void processFiles(RootModule rootModule, final SeverityLevelCounter warningCounter, final String checkstyleVersion) {<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>final List<File> files = getFilesToCheck();<NEW_LINE>final long endTime = System.currentTimeMillis();<NEW_LINE>log("To locate...
+ numErrs + " errors and " + numWarnings + " warnings.";
976,303
public boolean retryRequest(IOException exception, int executionCount, HttpContext ctx) {<NEW_LINE>log.fine(() -> String.format("retryRequest(exception='%s', executionCount='%d', ctx='%s'", exception.getClass().getName(), executionCount, ctx));<NEW_LINE>HttpClientContext clientCtx = HttpClientContext.adapt(ctx);<NEW_LI...
onRetryFailed(exception, executionCount, clientCtx);
1,416,665
static MongoDatabase createMongoDatabase(JaversMongoProperties properties, Optional<MongoClientSettings> mongoClientSettings) {<NEW_LINE>if (properties.getMongodb().getUri() != null) {<NEW_LINE>ConnectionString connectionString = new ConnectionString(properties.getMongodb().getUri());<NEW_LINE>MongoClient mongoClient =...
getMongodb().getDatabase());
1,792,635
public synchronized void fit(MultiDataSetIterator multi) {<NEW_LINE>if (flattenedGradients == null) {<NEW_LINE>initGradientsView();<NEW_LINE>}<NEW_LINE>if (!multi.hasNext() && multi.resetSupported()) {<NEW_LINE>multi.reset();<NEW_LINE>}<NEW_LINE>for (TrainingListener tl : trainingListeners) {<NEW_LINE>tl.onEpochStart(t...
set((time2 - time1));
1,123,562
public void createNewSibling() {<NEW_LINE>O property <MASK><NEW_LINE>if (property == null) {<NEW_LINE>// Shouldn't really get here, because the<NEW_LINE>// action should be disabled<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// We need to apply the changes in the active ontology<NEW_LINE>OWLEntityCreationSet<O> creationSet =...
= getTree().getSelectedOWLObject();
622,874
public void run(RegressionEnvironment env) {<NEW_LINE>sendTimeEvent(env, 1, 8, 0, 0, 0);<NEW_LINE>env.compileDeploy("on SupportBean set myint = intPrimitive, mystring = theString");<NEW_LINE>String expression = "@name('s0') select symbol from SupportMarketDataBean#length(2) output when myint = 1 and mystring like 'F%'"...
.getVariableValue(null, "mystring"));
854,023
public void initSubDevices() {<NEW_LINE>ModelFactory factory = ModelFactory.eINSTANCE;<NEW_LINE>AccelerometerDirection x = factory.createAccelerometerDirection();<NEW_LINE>x.setDirection(AccelerometerCoordinate.X);<NEW_LINE>x.setUid(getUid());<NEW_LINE>String subIdX = "x";<NEW_LINE>logger.debug("{} addSubDevice {}", Lo...
AccelerometerDirection z = factory.createAccelerometerDirection();
145,602
private Object createFeature(FeatureFlagConfigurationSetting item) {<NEW_LINE>String key = getFeatureSimpleName(item);<NEW_LINE>Feature feature = new Feature(key, item);<NEW_LINE>Map<Integer, FeatureFlagFilter> featureEnabledFor = feature.getEnabledFor();<NEW_LINE>// Setting Enabled For to null, but enabled = true will...
, parameters.get(DEFAULT_ROLLOUT_PERCENTAGE_CAPS));
1,016,977
public List<Event> findRelatedEvents(String parentEvent, Date fromDate, Date toDate) throws DotDataException, DotSecurityException, PortalException, SystemException {<NEW_LINE>Logger.debug(this, "findRelatedEvents: parentEvent = " + parentEvent + <MASK><NEW_LINE>// Retrieving the current user<NEW_LINE>User user = Porta...
", fromDate: " + fromDate + ", toDate = " + toDate);
883,309
private void makeUnidirectional(DeployBeanPropertyAssocMany<?> oneToMany) {<NEW_LINE>DeployBeanDescriptor<?> targetDesc = targetDescriptor(oneToMany);<NEW_LINE>Class<?> owningType = oneToMany.getOwningType();<NEW_LINE>if (!oneToMany.getCascadeInfo().isSave()) {<NEW_LINE>// The property MUST have persist cascading so th...
targetDesc, owningType, beanTable, oneToManyJoin);
1,484,560
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>String epl = "@name('s0') create window NW#expr(sum(intPrimitive) < 10) as SupportBean;\n" + "insert into NW select * from SupportBean;\n" + "on SupportBean_A delete from NW where theString = id;\n";<NEW_LINE>...
sendEventBean(new SupportBean_A("E2"));
1,655,244
public final Object sendResponse(final Map<String, Object> event, final Context context, final String responseStatus, ObjectNode responseData) {<NEW_LINE>String responseUrl = (String) event.get("ResponseURL");<NEW_LINE>LOGGER.info("ResponseURL: {}", responseUrl);<NEW_LINE>try {<NEW_LINE>URL url = new URL(responseUrl);<...
connection.setRequestProperty("Content-Type", "");
1,672,787
private Computer makeBigIntegerComputer(EPTypeClass typeOne, EPTypeClass typeTwo) {<NEW_LINE>if ((typeOne.getType() == BigDecimal.class) && (typeTwo.getType() == BigDecimal.class)) {<NEW_LINE>return computers.get(new MathArithDesc(EPTypePremade.BIGDECIMAL.getEPType(), this));<NEW_LINE>}<NEW_LINE>if ((typeOne.getType() ...
convertorTwo = SimpleNumberCoercerFactory.getCoercerBigInteger(typeTwo);
1,399,564
private List<PartitionMeta> loadPartitionInfoFromHDFS(String path, MatrixContext matrixContext, Configuration conf) throws IOException {<NEW_LINE>Path meteFilePath = new Path(new Path(path, matrixContext.getName<MASK><NEW_LINE>MatrixFilesMeta meta = new MatrixFilesMeta();<NEW_LINE>FileSystem fs = meteFilePath.getFileSy...
()), ModelFilesConstent.modelMetaFileName);
1,039,695
public static ExtensionElement parseExtensionElement(XMLStreamReader xtr) throws Exception {<NEW_LINE>ExtensionElement extensionElement = new ExtensionElement();<NEW_LINE>BpmnXMLUtil.addXMLLocation(extensionElement, xtr);<NEW_LINE>extensionElement.setName(xtr.getLocalName());<NEW_LINE>if (StringUtils.isNotEmpty(xtr.get...
(xtr.getAttributeValue(i));
1,144,037
public static Map<String, Map<String, List<Pair<Integer, List<Object>>>>> buildResultForShardingTable(String schemaName, String logicalTableName, List<List<Object>> values, List<ColumnMeta> skMetas, Mapping skMapping, Mapping pkMapping, ExecutionContext ec, boolean isGetShardResultForReplicationTable) {<NEW_LINE>// tar...
result = new HashMap<>();
1,389,759
private static void addTorRules(List<String> cmds, List<Integer> uids, Boolean whitelist, Boolean ipv6) {<NEW_LINE>for (Integer uid : uids) {<NEW_LINE>if (uid != null && uid >= 0) {<NEW_LINE>if (G.enableInbound() || ipv6) {<NEW_LINE>cmds.add("-A " + AFWALL_CHAIN_NAME + "-tor-reject -m owner --uid-owner " + uid + " -j a...
add("-t nat -A " + AFWALL_CHAIN_NAME + "-tor-filter -j MARK --set-mark 0x500");
1,842,736
protected RequestTemplate resolve(Object[] argv, RequestTemplate mutable, Map<String, Object> variables) {<NEW_LINE>boolean alwaysEncodeBody = mutable.methodMetadata().alwaysEncodeBody();<NEW_LINE>Object body = null;<NEW_LINE>if (!alwaysEncodeBody) {<NEW_LINE>body = argv[metadata.bodyIndex()];<NEW_LINE>checkArgument(bo...
Object[].class, mutable);
1,498,983
public SipMediaApplicationLoggingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SipMediaApplicationLoggingConfiguration sipMediaApplicationLoggingConfiguration = new SipMediaApplicationLoggingConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String ...
JsonToken token = context.getCurrentToken();
1,179,899
@Produces({ "application/rdf+xml", "text/plain", "text/turtle", "text/n3", "application/trig", "application/ld+json", "application/n-quads", "text/x-turtlestar", "application/x-trigstar" })<NEW_LINE>public Response exportOnto(@Context DatabaseManagementService gds, @PathParam("dbname") String dbNameParam, @QueryParam("...
(writer.getRDFFormat()));
705,663
public static IsNullValue merge(IsNullValue a, IsNullValue b) {<NEW_LINE>if (a == b) {<NEW_LINE>return a;<NEW_LINE>}<NEW_LINE>if (a.equals(b)) {<NEW_LINE>return a;<NEW_LINE>}<NEW_LINE>int aKind = a.kind & 0xff;<NEW_LINE><MASK><NEW_LINE>int aFlags = a.getFlags();<NEW_LINE>int bFlags = b.getFlags();<NEW_LINE>int combined...
int bKind = b.kind & 0xff;
1,665,559
private void printEntityInstantiation(HDLNodeBuildIn node, int num, File root) throws IOException, HDLException {<NEW_LINE>String entityName = node.getHdlEntityName();<NEW_LINE>out.print("gate").print(num).print(": entity work.").print(entityName);<NEW_LINE>final String label = node.getElementAttributes().getLabel();<N...
= new Separator(out, ",\n");
470,577
private void generateEncoderGroups(final StringBuilder sb, final String outerClassName, final List<Token> tokens, final String indent, final boolean isSubGroup) throws IOException {<NEW_LINE>for (int i = 0, size = tokens.size(); i < size; i++) {<NEW_LINE>final Token groupToken = tokens.get(i);<NEW_LINE>if (groupToken.s...
sb, indent + INDENT, groupToken);
497,266
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (!getIdBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);<NEW_LINE>}<NEW_LINE>if (!getNameBytes().isEmpty()) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.<MASK><...
writeString(output, 2, name_);
999,871
private void testSubmit(ExecutorService xsvc) throws Exception {<NEW_LINE>AtomicInteger counter = new AtomicInteger();<NEW_LINE>Callable<Integer> task1 = new CounterTask(counter);<NEW_LINE>Runnable task2 = new CounterTask(counter);<NEW_LINE>Future<Integer> <MASK><NEW_LINE>Future<?> future2 = xsvc.submit(task2);<NEW_LIN...
future1 = xsvc.submit(task1);
1,208,674
public void endTransfer() {<NEW_LINE>pgl.deleteSync(fences[tail]);<NEW_LINE>pgl.bindBuffer(PGL.PIXEL_PACK_BUFFER, pbos[tail]);<NEW_LINE>ByteBuffer readBuffer = pgl.mapBuffer(<MASK><NEW_LINE>if (readBuffer != null) {<NEW_LINE>int format = primaryGraphics ? OPENGL_NATIVE_OPAQUE : OPENGL_NATIVE;<NEW_LINE>PImage target = a...
PGL.PIXEL_PACK_BUFFER, PGL.READ_ONLY);
58,618
private static void appendLength(ByteBuffer buffer, int length, boolean masked) {<NEW_LINE>if (length < 0) {<NEW_LINE>throw new IllegalArgumentException("Length cannot be negative");<NEW_LINE>}<NEW_LINE>byte b = (masked ? (byte) 0x80 : 0x00);<NEW_LINE>if (length > 0xFFFF) {<NEW_LINE>buffer.put((byte) (b | 0x7F));<NEW_L...
>> 16) & 0xFF));
1,388,661
public static SendMessageBatchV2RequestHeader buildHeader(final Map<String, Object> headerParam) {<NEW_LINE>SendMessageBatchV2RequestHeader header = new SendMessageBatchV2RequestHeader();<NEW_LINE>header.setCode(MapUtils.getString(headerParam, ProtocolKey.REQUEST_CODE));<NEW_LINE>header.setVersion(ProtocolVersion.get(M...
getString(headerParam, ProtocolKey.LANGUAGE);
1,746,698
private List<NameValueCountPair> groupByCreatorPerson(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Review.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LIN...
(o.get(pathCreatorPerson));
1,080,367
public Object unwrap(Object obj) {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!(obj instanceof JsonValue)) {<NEW_LINE>return obj;<NEW_LINE>}<NEW_LINE>switch(((JsonValue) obj).getValueType()) {<NEW_LINE>case ARRAY:<NEW_LINE>if (mutableJson && obj instanceof JsonArrayProxy) {<NEW_LINE>retur...
JsonString) obj).getString();
331,558
private void learnTransition(final HiddenMarkovModel hmm) {<NEW_LINE>for (int i = 0; i < hmm.getStateCount(); i++) {<NEW_LINE>for (int j = 0; j < hmm.getStateCount(); j++) {<NEW_LINE>hmm.setTransitionProbability(i, j, 0.);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (final MLDataSet obsSeq : this.sequnces.getSequences()) {<NEW_...
(first_state, second_state) + 1.);
756,028
public void translateTransform(PTransform<PCollection<T>, PCollection<T>> transform, AbstractTranslationContext context) {<NEW_LINE>Window.Assign<T> assignTransform = (Window.Assign<T>) transform;<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final PCollection<T> input = (PCollection<T>) context.getInput();<NEW_LINE...
> windowFn = assignTransform.getWindowFn();
1,583,144
public static void main(String[] args) throws Exception {<NEW_LINE>Exchange itbit = ItBitDemoUtils.createExchange();<NEW_LINE>AccountService account = itbit.getAccountService();<NEW_LINE>TradeService tradeService = itbit.getTradeService();<NEW_LINE>AccountInfo accountInfo = account.getAccountInfo();<NEW_LINE>System.<MA...
out.println("Account Info: " + accountInfo);
1,066,711
public String createNewWSReliableMessagingRequest(WsdlRequest wsrmContainer, String identifier, long msgNumber, String endpoint) {<NEW_LINE>try {<NEW_LINE>Element header = getHeader();<NEW_LINE>header.setAttribute("xmlns:" + "wsrm", wsrmContainer.getWsrmConfig().getVersionNameSpace());<NEW_LINE>Element sequence = heade...
).getVersionNameSpace(), "MessageNumber");
83,843
public PlanFragment visitPhysicalTopN(PhysicalTopN<? extends Plan> topN, PlanTranslatorContext context) {<NEW_LINE>PlanFragment <MASK><NEW_LINE>SortNode sortNode = (SortNode) childFragment.getPlanRoot();<NEW_LINE>sortNode.setOffset(topN.getOffset());<NEW_LINE>sortNode.setLimit(topN.getLimit());<NEW_LINE>// isPartitione...
childFragment = visitAbstractPhysicalSort(topN, context);
952,577
public static QueryPictureSearchJobResultResponse unmarshall(QueryPictureSearchJobResultResponse queryPictureSearchJobResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPictureSearchJobResultResponse.setRequestId(_ctx.stringValue("QueryPictureSearchJobResultResponse.RequestId"));<NEW_LINE>queryPictureSearchJobRe...
("QueryPictureSearchJobResultResponse.Data.PageData[" + i + "].DeviceNickName"));