id int64 22 34.9k | original_code stringlengths 31 107k | code_wo_comment stringlengths 29 77.3k | cleancode stringlengths 25 62.1k | repo stringlengths 6 65 | label listlengths 4 4 |
|---|---|---|---|---|---|
18,505 | public void testPaintContentBorderLeftEdge() {
// Note: painting code, cannot test
} | public void testPaintContentBorderLeftEdge() {
} | public void testpaintcontentborderleftedge() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,506 | public void testPaintContentBorderRightEdge() {
// Note: painting code, cannot test
} | public void testPaintContentBorderRightEdge() {
} | public void testpaintcontentborderrightedge() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,507 | public void testPaintContentBorderTopEdge() {
// Note: painting code, cannot test
} | public void testPaintContentBorderTopEdge() {
} | public void testpaintcontentbordertopedge() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,508 | public void testPaintFocusIndicator() {
// Note: painting code, cannot test
} | public void testPaintFocusIndicator() {
} | public void testpaintfocusindicator() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,509 | public void testPaintTabBackground() {
// Note: painting code, cannot test
} | public void testPaintTabBackground() {
} | public void testpainttabbackground() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,510 | public void testPaintTabBorder() {
// Note: painting code, cannot test
} | public void testPaintTabBorder() {
} | public void testpainttabborder() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,511 | public void testPaintHighlightBelowTab() {
// Note: painting code, cannot test
} | public void testPaintHighlightBelowTab() {
} | public void testpainthighlightbelowtab() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,512 | public void testPaintBottomTabBorder() {
// Note: painting code, cannot test
} | public void testPaintBottomTabBorder() {
} | public void testpaintbottomtabborder() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,513 | public void testPaintLeftTabBorder() {
// Note: painting code, cannot test
} | public void testPaintLeftTabBorder() {
} | public void testpaintlefttabborder() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,514 | public void testPaintRightTabBorder() {
// Note: painting code, cannot test
} | public void testPaintRightTabBorder() {
} | public void testpaintrighttabborder() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,515 | public void testPaintTopTabBorder() {
// Note: painting code, cannot test
} | public void testPaintTopTabBorder() {
} | public void testpainttoptabborder() { } | qinFamily/freeVM | [
0,
0,
0,
1
] |
18,636 | @Override
public Set<JavaPlatform> instantiate() throws IOException {
//TODO: Download (in background?)
String downloadedFolder = (String) wizard.getProperty(DiscoPlatformIt.PROP_DOWNLOAD);
if (downloadedFolder != null) {
File f = new File(downloadedFolder);
if (!f.is... | @Override
public Set<JavaPlatform> instantiate() throws IOException {
String downloadedFolder = (String) wizard.getProperty(DiscoPlatformIt.PROP_DOWNLOAD);
if (downloadedFolder != null) {
File f = new File(downloadedFolder);
if (!f.isDirectory()) {
... | @override public set<javaplatform> instantiate() throws ioexception { string downloadedfolder = (string) wizard.getproperty(discoplatformit.prop_download); if (downloadedfolder != null) { file f = new file(downloadedfolder); if (!f.isdirectory()) { desktop.getdesktop().open(f.getparentfile()); return collections.empty_... | oyarzun/incubator-netbeans | [
1,
1,
0,
0
] |
2,277 | @SuppressWarnings("unused")
private void receive() {
// TODO 7: [Optional] Fill with your own implementation for handling
// asynchronous data from the driver layer to the device service
ModbusDevice device = null;
String result = "";
ResourceOperation operation = null;
objectCache.putReadings(device, oper... | @SuppressWarnings("unused")
private void receive() {
ModbusDevice device = null;
String result = "";
ResourceOperation operation = null;
objectCache.putReadings(device, operation, result);
} | @suppresswarnings("unused") private void receive() { modbusdevice device = null; string result = ""; resourceoperation operation = null; objectcache.putreadings(device, operation, result); } | pk-80/device-modbus | [
0,
1,
0,
0
] |
18,772 | private void initState(){
//TODO Switch s and w
this.s = BigDecimal.ONE; //new BigDecimal(this.cloudsNum); // @todo ERRO? (x = BigDecimal.ONE)
this.w = super.getInitValue();
//Clear message received buffer
this.msgRcvBuffer = new HashMap<String, Message<?>>();
} | private void initState(){
this.s = BigDecimal.ONE;
this.w = super.getInitValue();
this.msgRcvBuffer = new HashMap<String, Message<?>>();
} | private void initstate(){ this.s = bigdecimal.one; this.w = super.getinitvalue(); this.msgrcvbuffer = new hashmap<string, message<?>>(); } | pcjesus/NetworkSimulator | [
1,
1,
0,
0
] |
10,767 | @Override
public void shutdown() throws Exception {
synchronized (shutDownLock) {
// This is problematic as the user code class loader is not
// available at this point.
for (Savepoint savepoint : savepoints.values()) {
try {
savepoint.dispose();
} catch (Throwable t) {
LOG.warn("Failed to... | @Override
public void shutdown() throws Exception {
synchronized (shutDownLock) {
for (Savepoint savepoint : savepoints.values()) {
try {
savepoint.dispose();
} catch (Throwable t) {
LOG.warn("Failed to dispose savepoint " + savepoint.getCheckpointId(), t);
}
}
savepoints.clear()... | @override public void shutdown() throws exception { synchronized (shutdownlock) { for (savepoint savepoint : savepoints.values()) { try { savepoint.dispose(); } catch (throwable t) { log.warn("failed to dispose savepoint " + savepoint.getcheckpointid(), t); } } savepoints.clear(); if (shutdownhook != null && shutdownho... | qingdao81/flink | [
0,
0,
1,
0
] |
2,671 | public void beginStep() {
// TODO: probably, we don't need to synchronize data here,
// because this method is always called from the same thread
// Synchronize all cached data
synchronized (readData) {
synchronized (writeData) {
super.beginStep();
... | public void beginStep() {
synchronized (readData) {
synchronized (writeData) {
super.beginStep();
}
}
} | public void beginstep() { synchronized (readdata) { synchronized (writedata) { super.beginstep(); } } } | monadius/spark-abm | [
1,
0,
0,
0
] |
2,740 | public static String jsDtobasestr(int base, double dParam) {
if (!(2 <= base && base <= 36)) {
throw new IllegalArgumentException("Bad base: " + base);
}
double d = dParam;
/* Check for Infinity and NaN */
if (Double.isNaN(d)) {
return "NaN";
} els... | public static String jsDtobasestr(int base, double dParam) {
if (!(2 <= base && base <= 36)) {
throw new IllegalArgumentException("Bad base: " + base);
}
double d = dParam;
if (Double.isNaN(d)) {
return "NaN";
} else if (Double.isInfinite(d)) {
... | public static string jsdtobasestr(int base, double dparam) { if (!(2 <= base && base <= 36)) { throw new illegalargumentexception("bad base: " + base); } double d = dparam; if (double.isnan(d)) { return "nan"; } else if (double.isinfinite(d)) { return (d > 0.0) ? "infinity" : "-infinity"; } else if (d == 0) { return "0... | pitbox46/graaljs-forge | [
1,
0,
0,
0
] |
11,112 | @Override
public final boolean equals(final Object other) {
if (!(other instanceof Production)) {
return false;
}
// XXX NOTE: this assumes that the reference of the generator value does not change!
final Production otherProduction = (Production) other;
return this.id == otherProduction.id
... | @Override
public final boolean equals(final Object other) {
if (!(other instanceof Production)) {
return false;
}
final Production otherProduction = (Production) other;
return this.id == otherProduction.id
&& this.ownClass.equals(otherProduction.ownClass)
&& this.generatorVal... | @override public final boolean equals(final object other) { if (!(other instanceof production)) { return false; } final production otherproduction = (production) other; return this.id == otherproduction.id && this.ownclass.equals(otherproduction.ownclass) && this.generatorvalue == otherproduction.generatorvalue; } | mskamp/StarSmith | [
1,
0,
0,
0
] |
2,951 | private boolean shouldRollToNewFile() {
// TODO: ORC file now not support target file size before closed
return !format.equals(FileFormat.ORC) &&
currentRows % ROWS_DIVISOR == 0 && length(currentWriter) >= targetFileSize;
} | private boolean shouldRollToNewFile() {
return !format.equals(FileFormat.ORC) &&
currentRows % ROWS_DIVISOR == 0 && length(currentWriter) >= targetFileSize;
} | private boolean shouldrolltonewfile() { return !format.equals(fileformat.orc) && currentrows % rows_divisor == 0 && length(currentwriter) >= targetfilesize; } | rajarshisarkar/iceberg | [
0,
1,
0,
0
] |
19,374 | boolean isAlreadyLogged(StackTraceElement[] stack)
{
HashStackTraceElement hse = new HashStackTraceElement(stack);
// Ok, it's block the code, but for a small period
synchronized (this)
{
// Detect with the precalculated hash value
return !logged.add(hse);
}
} | boolean isAlreadyLogged(StackTraceElement[] stack)
{
HashStackTraceElement hse = new HashStackTraceElement(stack);
synchronized (this)
{
return !logged.add(hse);
}
} | boolean isalreadylogged(stacktraceelement[] stack) { hashstacktraceelement hse = new hashstacktraceelement(stack); synchronized (this) { return !logged.add(hse); } } | octo-online/reactive-aud | [
1,
0,
0,
0
] |
2,992 | public int doEndTag()
throws JspTagException
{
HttpServletRequest request = (HttpServletRequest)super.pageContext.getRequest();
RequestProperties reqState = (RequestProperties)request.getAttribute(SECTION_REQUESTPROPS);
PrivateLabel privLabel = (reqState != null)? reqState.getPri... | public int doEndTag()
throws JspTagException
{
HttpServletRequest request = (HttpServletRequest)super.pageContext.getRequest();
RequestProperties reqState = (RequestProperties)request.getAttribute(SECTION_REQUESTPROPS);
PrivateLabel privLabel = (reqState != null)? reqState.getPri... | public int doendtag() throws jsptagexception { httpservletrequest request = (httpservletrequest)super.pagecontext.getrequest(); requestproperties reqstate = (requestproperties)request.getattribute(section_requestprops); privatelabel privlabel = (reqstate != null)? reqstate.getprivatelabel() : requestproperties.nullpriv... | paragp/GTS-PreUAT | [
1,
0,
0,
0
] |
19,480 | synchronized boolean acceptFrame(
@NotNull VP8Frame frame,
int incomingIndex,
int externalTargetIndex, long receivedMs)
{
// We make local copies of the externalTemporalLayerIdTarget and the
// externalEncodingTarget (as they may be updated by some other
// thread).
... | synchronized boolean acceptFrame(
@NotNull VP8Frame frame,
int incomingIndex,
int externalTargetIndex, long receivedMs)
{
int externalTemporalLayerIdTarget
= RtpLayerDesc.getTidFromIndex(externalTargetIndex);
int externalEncodingIdTarget
... | synchronized boolean acceptframe( @notnull vp8frame frame, int incomingindex, int externaltargetindex, long receivedms) { int externaltemporallayeridtarget = rtplayerdesc.gettidfromindex(externaltargetindex); int externalencodingidtarget = rtplayerdesc.geteidfromindex(externaltargetindex); if (externalencodingidtarget ... | ngi-nix/jitsi-videobridge | [
1,
0,
0,
0
] |
19,563 | public static List getCRLs(X509Extension cert) {
// What follows is a poor man's CRL extractor, for those lacking
// a BouncyCastle "bcprov.jar" in their classpath.
// It's a very basic state-machine: look for a standard URL scheme
// (such as http), and then start looking for a termina... | public static List getCRLs(X509Extension cert) {
byte[] bytes = cert.getExtensionValue(CRL_EXTENSION);
LinkedList httpCRLS = new LinkedList();
LinkedList ftpCRLS = new LinkedList();
LinkedList otherCRLS = new LinkedL... | public static list getcrls(x509extension cert) { byte[] bytes = cert.getextensionvalue(crl_extension); linkedlist httpcrls = new linkedlist(); linkedlist ftpcrls = new linkedlist(); linkedlist othercrls = new linkedlist(); if (bytes == null) { return httpcrls; } else { string s; try { s = new string(bytes, "utf-8"); } ... | rcbj/apigee-jwt-aad-timeapi-proxy | [
0,
0,
1,
0
] |
11,379 | public static int XColorByName(String nm) {
for (int i=0; i<data.length; i++) {
Setting d = data[i];
// System.out.println("Looking for " + nm + "; trying " + d.name);
if (nm.equalsIgnoreCase(d.name)) {
return d.value;
}
}
// How sad... none of the 752 color names matched...
throw new IllegalArg... | public static int XColorByName(String nm) {
for (int i=0; i<data.length; i++) {
Setting d = data[i];
if (nm.equalsIgnoreCase(d.name)) {
return d.value;
}
}
throw new IllegalArgumentException("Unknown color " + nm);
} | public static int xcolorbyname(string nm) { for (int i=0; i<data.length; i++) { setting d = data[i]; if (nm.equalsignorecase(d.name)) { return d.value; } } throw new illegalargumentexception("unknown color " + nm); } | oritelad/libro-de-actividades | [
0,
0,
0,
0
] |
11,380 | public static String XColorByValue(int val) {
for (int i=0; i<data.length; i++) {
Setting d = data[i];
// System.out.println("Looking for " + nm + "; trying " + d.name);
if (val == d.value) {
return d.name;
}
}
// How sad... none of the 752 color names matched...
return "XColor(" + val + ")";
} | public static String XColorByValue(int val) {
for (int i=0; i<data.length; i++) {
Setting d = data[i];
if (val == d.value) {
return d.name;
}
}
return "XColor(" + val + ")";
} | public static string xcolorbyvalue(int val) { for (int i=0; i<data.length; i++) { setting d = data[i]; if (val == d.value) { return d.name; } } return "xcolor(" + val + ")"; } | oritelad/libro-de-actividades | [
0,
0,
0,
0
] |
11,618 | private static final boolean isHalfUlp (final double x) {
// TODO: do we need to check for NaN and infinity?
return (0.0 != x) && (0L == Doubles.significand(x)); } | private static final boolean isHalfUlp (final double x) {
return (0.0 != x) && (0L == Doubles.significand(x)); } | private static final boolean ishalfulp (final double x) { return (0.0 != x) && (0l == doubles.significand(x)); } | palisades-lakes/xfp-jmh | [
1,
0,
0,
0
] |
11,619 | private static final double halfUlp (final double x) {
// TODO: do we need to check for NaN and infinity?
// TODO: compare to c++ implementation
// TODO: return zero when x is zero?
if (0.0 == x) { return 0.0; }
return 0.5 * Math.ulp(x); } | private static final double halfUlp (final double x) {
if (0.0 == x) { return 0.0; }
return 0.5 * Math.ulp(x); } | private static final double halfulp (final double x) { if (0.0 == x) { return 0.0; } return 0.5 * math.ulp(x); } | palisades-lakes/xfp-jmh | [
1,
0,
0,
0
] |
11,774 | @Override
protected void parseSynchronusly() throws IOException {
final Optional<RDFFormat> formatByMimeType = getContentType().flatMap(Rio::getParserFormatForMIMEType);
final String base = getBase().map(IRI::getIRIString).orElse(null);
final ParserConfig parserConfig = getParserConfig();
... | @Override
protected void parseSynchronusly() throws IOException {
final Optional<RDFFormat> formatByMimeType = getContentType().flatMap(Rio::getParserFormatForMIMEType);
final String base = getBase().map(IRI::getIRIString).orElse(null);
final ParserConfig parserConfig = getParserConfig();
... | @override protected void parsesynchronusly() throws ioexception { final optional<rdfformat> formatbymimetype = getcontenttype().flatmap(rio::getparserformatformimetype); final string base = getbase().map(iri::getiristring).orelse(null); final parserconfig parserconfig = getparserconfig(); final rdfloader loader = new r... | nikosnikolaidis/commons-rdf | [
1,
1,
0,
0
] |
20,076 | int denybble(byte[] data, int pos)
{
// The spec is wrong: it's LSB, then MSB
// int v = (data[pos] << 4) | data[pos+1];
int v = (data[pos + 1] << 4) | data[pos];
// Some of the dark star stuff is 8-bit, so we have to make sure we're positive
if (v < 0) v += 256;
... | int denybble(byte[] data, int pos)
{
int v = (data[pos + 1] << 4) | data[pos];
if (v < 0) v += 256;
return v;
} | int denybble(byte[] data, int pos) { int v = (data[pos + 1] << 4) | data[pos]; if (v < 0) v += 256; return v; } | oco27/edisyn | [
0,
0,
1,
0
] |
20,077 | void addData(byte[] data, int pos, int val)
{
// The spec is wrong: it's LSB, then MSB
data[pos] = (byte)((val >> 0) & 0x0F);
data[pos + 1] = (byte)((val >> 4) & 0x0F);
//data[pos + 1] = (byte)((val >> 0) & 0x0F);
//data[pos] = (byte)((val >> 4) & 0x0F);
} | void addData(byte[] data, int pos, int val)
{
data[pos] = (byte)((val >> 0) & 0x0F);
data[pos + 1] = (byte)((val >> 4) & 0x0F);
} | void adddata(byte[] data, int pos, int val) { data[pos] = (byte)((val >> 0) & 0x0f); data[pos + 1] = (byte)((val >> 4) & 0x0f); } | oco27/edisyn | [
0,
0,
1,
0
] |
11,963 | protected void paint(GraphicsContext gc) {
// Get a sorted copy of the series data. Once we have this we can release locks.
Rectangle2D rectViewport = viewport;
HashMap<Series, LinkedList<T>> data = new HashMap<>();
for(Series<T> series : this.series) {
LinkedList<T> seriesD... | protected void paint(GraphicsContext gc) {
Rectangle2D rectViewport = viewport;
HashMap<Series, LinkedList<T>> data = new HashMap<>();
for(Series<T> series : this.series) {
LinkedList<T> seriesData = new LinkedList<>(series.getData());
seriesData.sort((o1, o2) -> ... | protected void paint(graphicscontext gc) { rectangle2d rectviewport = viewport; hashmap<series, linkedlist<t>> data = new hashmap<>(); for(series<t> series : this.series) { linkedlist<t> seriesdata = new linkedlist<>(series.getdata()); seriesdata.sort((o1, o2) -> fnxvalue.apply(o1).compareto(fnxvalue.apply(o2))); data.... | nathanawmk/ICS-Security-Tools | [
1,
1,
0,
0
] |
12,044 | private void createView() {
FontIcon closeBtn = Controls.fontIcon(Material2AL.CLOSE, "close-icon");
closeBtn.setCursor(Cursor.HAND);
closeBtn.setOnMouseClicked(e -> close());
GridPane.setValignment(closeBtn, VPos.TOP);
GridPane.setHalignment(closeBtn, HPos.RIGHT);
TextFlo... | private void createView() {
FontIcon closeBtn = Controls.fontIcon(Material2AL.CLOSE, "close-icon");
closeBtn.setCursor(Cursor.HAND);
closeBtn.setOnMouseClicked(e -> close());
GridPane.setValignment(closeBtn, VPos.TOP);
GridPane.setHalignment(closeBtn, HPos.RIGHT);
TextFlo... | private void createview() { fonticon closebtn = controls.fonticon(material2al.close, "close-icon"); closebtn.setcursor(cursor.hand); closebtn.setonmouseclicked(e -> close()); gridpane.setvalignment(closebtn, vpos.top); gridpane.sethalignment(closebtn, hpos.right); textflow textflow = containers.create(textflow::new, "t... | mkpaz/telek | [
0,
0,
0,
0
] |
12,086 | public static void main(String[] args) {
// TODO code application logic here
// cria o objeto Scanner
Scanner input = new Scanner(System.in);
// entrada de dados
System.out.print("Digite três números de ponto-flutuante: ");
double numero1 = input.nextDouble(); // primeiro... | public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Digite três números de ponto-flutuante: ");
double numero1 = input.nextDouble(); double numero2 = input.nextDouble(); double numero3 = input.nextDouble(); ... | public static void main(string[] args) { scanner input = new scanner(system.in); system.out.print("digite três números de ponto-flutuante: "); double numero1 = input.nextdouble(); double numero2 = input.nextdouble(); double numero3 = input.nextdouble(); double resultado = maiorvalor( numero1, numero2, numero3 ); system... | pedro-filho-81/LivrosDeJava | [
0,
1,
0,
0
] |
20,687 | @Test
public void fetchExistingAggregateById_populatesValues()
{
try(PhotonTransaction transaction = photon.beginTransaction())
{
PhotonTestTable photonTestTable = transaction.query(PhotonTestTable.class).fetchById(1);
// The database does not store a time zone, so we ass... | @Test
public void fetchExistingAggregateById_populatesValues()
{
try(PhotonTransaction transaction = photon.beginTransaction())
{
PhotonTestTable photonTestTable = transaction.query(PhotonTestTable.class).fetchById(1);
int currentUtcOffset = TimeZo... | @test public void fetchexistingaggregatebyid_populatesvalues() { try(photontransaction transaction = photon.begintransaction()) { photontesttable photontesttable = transaction.query(photontesttable.class).fetchbyid(1); int currentutcoffset = timezone.getdefault().getoffset(new date().gettime()); assertnotnull(photontes... | molcikas/photon | [
0,
0,
1,
0
] |
12,596 | public static BufferedImage boofCVBinarization(BufferedImage image, int threshold) {
GrayU8 input8 = ConvertBufferedImage.convertFrom(image,(GrayU8)null);
GrayF32 input32 = ConvertBufferedImage.convertFromSingle(image, null, GrayF32.class);
GrayU8 binary8 = new GrayU8(input8.getWidth(), input8.getHeight());
// G... | public static BufferedImage boofCVBinarization(BufferedImage image, int threshold) {
GrayU8 input8 = ConvertBufferedImage.convertFrom(image,(GrayU8)null);
GrayF32 input32 = ConvertBufferedImage.convertFromSingle(image, null, GrayF32.class);
GrayU8 binary8 = new GrayU8(input8.getWidth(), input8.getHeight());
boo... | public static bufferedimage boofcvbinarization(bufferedimage image, int threshold) { grayu8 input8 = convertbufferedimage.convertfrom(image,(grayu8)null); grayf32 input32 = convertbufferedimage.convertfromsingle(image, null, grayf32.class); grayu8 binary8 = new grayu8(input8.getwidth(), input8.getheight()); boolean dow... | nuest/ami3 | [
0,
0,
1,
0
] |
20,812 | static int examineVar(final int var, final ArrayList<Read> list, final IntList collection, final int[] rvector, LinkedHashMap<Integer, ArrayList<Read>> map){
collection.clear();
for(Read r : list){
final ReadKey rk=(ReadKey) r.obj;
final IntList vars=rk.vars;
for(int i=0; i<vars.size; i++){
final int v... | static int examineVar(final int var, final ArrayList<Read> list, final IntList collection, final int[] rvector, LinkedHashMap<Integer, ArrayList<Read>> map){
collection.clear();
for(Read r : list){
final ReadKey rk=(ReadKey) r.obj;
final IntList vars=rk.vars;
for(int i=0; i<vars.size; i++){
final int v... | static int examinevar(final int var, final arraylist<read> list, final intlist collection, final int[] rvector, linkedhashmap<integer, arraylist<read>> map){ collection.clear(); for(read r : list){ final readkey rk=(readkey) r.obj; final intlist vars=rk.vars; for(int i=0; i<vars.size; i++){ final int v2=vars.get(i); if... | nedru004/LibraryAnalysis2 | [
1,
0,
0,
0
] |
12,626 | @RequestMapping(path = "/0/admin/applications/{appId}/block", method = RequestMethod.POST)
public ResponseEntity<Boolean> updateDeveloperApplication(
@PathVariable String appId
) {
// Let's get the user from principal and validate the userId against it.
User user = userService.findAuthenticatedUser();
if (us... | @RequestMapping(path = "/0/admin/applications/{appId}/block", method = RequestMethod.POST)
public ResponseEntity<Boolean> updateDeveloperApplication(
@PathVariable String appId
) {
User user = userService.findAuthenticatedUser();
if (user == null)
return new ResponseEntity<>(HttpStatus.FORBIDDEN);
App... | @requestmapping(path = "/0/admin/applications/{appid}/block", method = requestmethod.post) public responseentity<boolean> updatedeveloperapplication( @pathvariable string appid ) { user user = userservice.findauthenticateduser(); if (user == null) return new responseentity<>(httpstatus.forbidden); application applicati... | niuyiming/alpha-umi | [
1,
1,
0,
0
] |
13,141 | private boolean useSwitchingProvider() {
if (!isFastInit) {
return false;
}
switch (binding.kind()) {
case BOUND_INSTANCE:
case COMPONENT:
case COMPONENT_DEPENDENCY:
case DELEGATE:
case MEMBERS_INJECTOR: // TODO(b/199889259): Consider optimizing this for fastInit mode.
... | private boolean useSwitchingProvider() {
if (!isFastInit) {
return false;
}
switch (binding.kind()) {
case BOUND_INSTANCE:
case COMPONENT:
case COMPONENT_DEPENDENCY:
case DELEGATE:
case MEMBERS_INJECTOR:
return false;
case MULTIBOUND_SET:
... | private boolean useswitchingprovider() { if (!isfastinit) { return false; } switch (binding.kind()) { case bound_instance: case component: case component_dependency: case delegate: case members_injector: return false; case multibound_set: case multibound_map: case optional: return !binding.dependencies().isempty(); cas... | priamm/dagger | [
1,
0,
0,
0
] |
13,305 | @Test
public void openPrivateRepository() {
//TODO : need to implement. first need to figure out a way to hide the credentials dialog.
} | @Test
public void openPrivateRepository() {
} | @test public void openprivaterepository() { } | mvm-sap/ADT_Frontend | [
0,
1,
0,
0
] |
13,339 | @Override
public void validateDataOnEntry()
throws DataModelException {
// TODO auto-generated method stub, to be implemented by parser
} | @Override
public void validateDataOnEntry()
throws DataModelException {
} | @override public void validatedataonentry() throws datamodelexception { } | onekeynet/OConf | [
0,
1,
0,
0
] |
13,382 | private boolean writeResponseBodyToDisk(ResponseBody body) {
try {
// todo change the file location/name according to your needs
File futureStudioIconFile = new File(mOtaSaveFilePath);
InputStream inputStream = null;
OutputStream outputStream = null;
t... | private boolean writeResponseBodyToDisk(ResponseBody body) {
try {
File futureStudioIconFile = new File(mOtaSaveFilePath);
InputStream inputStream = null;
OutputStream outputStream = null;
try {
byte[] fileReader = new byte[1024];
... | private boolean writeresponsebodytodisk(responsebody body) { try { file futurestudioiconfile = new file(motasavefilepath); inputstream inputstream = null; outputstream outputstream = null; try { byte[] filereader = new byte[1024]; long filesize = body.contentlength(); long filesizedownloaded = 0; inputstream = body.byt... | qiaolw/AndroidTest | [
1,
0,
0,
0
] |
21,838 | @Override
public void operate(OpContext context) throws ProcessingException {
final TableDataSource table = (TableDataSource)context.get(tableInput);
int ipaTidx = super.getColumnIndex(table, SystemTierType.IPATarget.getName());
if(ipaTidx < 0) {
throw new ProcessingException(null, "Table has no " + SystemTie... | @Override
public void operate(OpContext context) throws ProcessingException {
final TableDataSource table = (TableDataSource)context.get(tableInput);
int ipaTidx = super.getColumnIndex(table, SystemTierType.IPATarget.getName());
if(ipaTidx < 0) {
throw new ProcessingException(null, "Table has no " + SystemTie... | @override public void operate(opcontext context) throws processingexception { final tabledatasource table = (tabledatasource)context.get(tableinput); int ipatidx = super.getcolumnindex(table, systemtiertype.ipatarget.getname()); if(ipatidx < 0) { throw new processingexception(null, "table has no " + systemtiertype.ipat... | phon-ca/phon | [
1,
0,
0,
0
] |
30,178 | public static String[] split( String value, Font font, int firstLineWidth, int lineWidth ) {
return wrap(value, font, firstLineWidth, lineWidth);
} | public static String[] split( String value, Font font, int firstLineWidth, int lineWidth ) {
return wrap(value, font, firstLineWidth, lineWidth);
} | public static string[] split( string value, font font, int firstlinewidth, int linewidth ) { return wrap(value, font, firstlinewidth, linewidth); } | mobabel/MoMeGo | [
0,
0,
0,
0
] |
13,831 | private void removeDanglingTransitions(AbstractWorkflow workflow) {
if (workflow.getTransitions() == null || workflow.getTransitions().isEmpty()) {
return;
}
Set<String> activityIds = new HashSet<>();
for (Activity activity : workflow.getActivities()) {
activityIds.add(activity.getId());
... | private void removeDanglingTransitions(AbstractWorkflow workflow) {
if (workflow.getTransitions() == null || workflow.getTransitions().isEmpty()) {
return;
}
Set<String> activityIds = new HashSet<>();
for (Activity activity : workflow.getActivities()) {
activityIds.add(activity.getId());
... | private void removedanglingtransitions(abstractworkflow workflow) { if (workflow.gettransitions() == null || workflow.gettransitions().isempty()) { return; } set<string> activityids = new hashset<>(); for (activity activity : workflow.getactivities()) { activityids.add(activity.getid()); list<timer> activitytimers = ac... | pharod/effektif | [
1,
0,
0,
0
] |
14,220 | @Override
public void startElement (String uri, String name, String qName, Attributes atts) throws SAXException {
try {
//log.debug("S: '" + uri + "' " + qName);
// ----- <xfml> -----------------------------------------------------------
if (EL_XFML.equals(qName)) {
String version = atts.getValu... | @Override
public void startElement (String uri, String name, String qName, Attributes atts) throws SAXException {
try {
if (EL_XFML.equals(qName)) {
String version = atts.getValue("version");
if (version == null)
log.warn("No version attribute on 'xfml' element");
if (!"1.0".... | @override public void startelement (string uri, string name, string qname, attributes atts) throws saxexception { try { if (el_xfml.equals(qname)) { string version = atts.getvalue("version"); if (version == null) log.warn("no version attribute on 'xfml' element"); if (!"1.0".equals(version)) log.warn("unsupported xfml ... | ontopia/ontopia | [
1,
0,
1,
0
] |
22,550 | public T dequeue(){
//TODO resolve queue with single element
T result = current.get();
current = current.next();
return result;
} | public T dequeue(){
T result = current.get();
current = current.next();
return result;
} | public t dequeue(){ t result = current.get(); current = current.next(); return result; } | pcordemans/exampleAlgorithms | [
0,
1,
0,
0
] |
22,632 | public void copyResourcesToCacheIfRequired1(Activity activity){
if( ContextCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED )
return;
String sigFilePath = resFolderPath + "/sarvamoola/aitareya.txt";
... | public void copyResourcesToCacheIfRequired1(Activity activity){
if( ContextCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED )
return;
String sigFilePath = resFolderPath + "/sarvamoola/aitareya.txt";
... | public void copyresourcestocacheifrequired1(activity activity){ if( contextcompat.checkselfpermission(activity, manifest.permission.write_external_storage) != packagemanager.permission_granted ) return; string sigfilepath = resfolderpath + "/sarvamoola/aitareya.txt"; file sigfile = new file(sigfilepath); if(!sigfile.ex... | openmuthu/jaya | [
0,
1,
0,
0
] |
14,534 | public RawMessage handleCborRequest(ChannelId channelId, byte[] payload) {
if (payload.length == 0) {
return RawMessage.error(channelId, HidError.INVALID_LEN);
}
Ctap2Method method = Ctap2Method.from(payload[0]);
byte[] params = new byte[payload.length - 1];
System.arraycopy(payload, 1, params, 0, payload.... | public RawMessage handleCborRequest(ChannelId channelId, byte[] payload) {
if (payload.length == 0) {
return RawMessage.error(channelId, HidError.INVALID_LEN);
}
Ctap2Method method = Ctap2Method.from(payload[0]);
byte[] params = new byte[payload.length - 1];
System.arraycopy(payload, 1, params, 0, payload.... | public rawmessage handlecborrequest(channelid channelid, byte[] payload) { if (payload.length == 0) { return rawmessage.error(channelid, hiderror.invalid_len); } ctap2method method = ctap2method.from(payload[0]); byte[] params = new byte[payload.length - 1]; system.arraycopy(payload, 1, params, 0, payload.length - 1); ... | mphi-rc/pi-zero-security-key | [
1,
0,
0,
0
] |
22,750 | @Test
public void acceptedRequestIsFullyApplied() throws EngineException
{
RegistrationContext defContext = new RegistrationContext(false, TriggeringMode.manualAtLogin);
initAndCreateForm(false, null);
RegistrationRequest request = getRequest();
String id3 = registrationsMan.submitRegistrationRequest(request,... | @Test
public void acceptedRequestIsFullyApplied() throws EngineException
{
RegistrationContext defContext = new RegistrationContext(false, TriggeringMode.manualAtLogin);
initAndCreateForm(false, null);
RegistrationRequest request = getRequest();
String id3 = registrationsMan.submitRegistrationRequest(request,... | @test public void acceptedrequestisfullyapplied() throws engineexception { registrationcontext defcontext = new registrationcontext(false, triggeringmode.manualatlogin); initandcreateform(false, null); registrationrequest request = getrequest(); string id3 = registrationsman.submitregistrationrequest(request, defcontex... | olivier-maury/unity | [
0,
0,
1,
0
] |
23,007 | public static boolean isAlreadySubtitled( Downloadable videoDownloadable, Language subtitlesLanguage ) throws IOException, InterruptedException {
List<DownloadableFile> allFiles = DownloadableManager.getInstance().getAllFiles( videoDownloadable.getId() );
Path mainVideoFilePath;
String filename;
Optional<Path> ... | public static boolean isAlreadySubtitled( Downloadable videoDownloadable, Language subtitlesLanguage ) throws IOException, InterruptedException {
List<DownloadableFile> allFiles = DownloadableManager.getInstance().getAllFiles( videoDownloadable.getId() );
Path mainVideoFilePath;
String filename;
Optional<Path> ... | public static boolean isalreadysubtitled( downloadable videodownloadable, language subtitleslanguage ) throws ioexception, interruptedexception { list<downloadablefile> allfiles = downloadablemanager.getinstance().getallfiles( videodownloadable.getid() ); path mainvideofilepath; string filename; optional<path> optpath ... | mozvip/dynamo | [
0,
0,
1,
0
] |
14,893 | public void addBlock(Set<CFANode> nodes, CFANode blockHead) {
Set<ReferencedVariable> referencedVariables = collectReferencedVariables(nodes);
Set<CFANode> callNodes = collectCallNodes(nodes);
Set<CFANode> returnNodes = collectReturnNodes(nodes);
Set<FunctionEntryNode> innerFunctionCalls = collectInnerF... | public void addBlock(Set<CFANode> nodes, CFANode blockHead) {
Set<ReferencedVariable> referencedVariables = collectReferencedVariables(nodes);
Set<CFANode> callNodes = collectCallNodes(nodes);
Set<CFANode> returnNodes = collectReturnNodes(nodes);
Set<FunctionEntryNode> innerFunctionCalls = collectInnerF... | public void addblock(set<cfanode> nodes, cfanode blockhead) { set<referencedvariable> referencedvariables = collectreferencedvariables(nodes); set<cfanode> callnodes = collectcallnodes(nodes); set<cfanode> returnnodes = collectreturnnodes(nodes); set<functionentrynode> innerfunctioncalls = collectinnerfunctioncalls(nod... | prokopk1n/cpachecker-1 | [
0,
1,
0,
0
] |
23,121 | @Test
public void isJson_shouldReturnTrue_whenStringIsJsonArray() throws JSONException {
assertTrue(validateTor.isJSON("[]"));
assertTrue(validateTor.isJSON("[{\"id\":1}]"));
} | @Test
public void isJson_shouldReturnTrue_whenStringIsJsonArray() throws JSONException {
assertTrue(validateTor.isJSON("[]"));
assertTrue(validateTor.isJSON("[{\"id\":1}]"));
} | @test public void isjson_shouldreturntrue_whenstringisjsonarray() throws jsonexception { asserttrue(validatetor.isjson("[]")); asserttrue(validatetor.isjson("[{\"id\":1}]")); } | nisrulz/validatetor | [
0,
0,
1,
0
] |
23,144 | private static FieldImpl makePointObs(FlatField timeStep, DateTime dt)
throws VisADException, RemoteException {
if (timeStep == null) {
return null;
}
SampledSet domain = getSpatialDomain(timeStep);
int numPoints = domain.getLength();
Integer1DSe... | private static FieldImpl makePointObs(FlatField timeStep, DateTime dt)
throws VisADException, RemoteException {
if (timeStep == null) {
return null;
}
SampledSet domain = getSpatialDomain(timeStep);
int numPoints = domain.getLength();
Integer1DSe... | private static fieldimpl makepointobs(flatfield timestep, datetime dt) throws visadexception, remoteexception { if (timestep == null) { return null; } sampledset domain = getspatialdomain(timestep); int numpoints = domain.getlength(); integer1dset points = new integer1dset(realtype.getrealtype("index"), numpoints); tup... | oxelson/IDV | [
1,
0,
0,
0
] |
23,145 | private static FieldImpl makePointObs(FlatField timeStep, DateTime dt, String function)
throws VisADException, RemoteException {
final boolean doMax = function.equals(FUNC_MAX);
final boolean doMin = function.equals(FUNC_MIN);
if (timeStep == null) {
return null;
... | private static FieldImpl makePointObs(FlatField timeStep, DateTime dt, String function)
throws VisADException, RemoteException {
final boolean doMax = function.equals(FUNC_MAX);
final boolean doMin = function.equals(FUNC_MIN);
if (timeStep == null) {
return null;
... | private static fieldimpl makepointobs(flatfield timestep, datetime dt, string function) throws visadexception, remoteexception { final boolean domax = function.equals(func_max); final boolean domin = function.equals(func_min); if (timestep == null) { return null; } sampledset domain = getspatialdomain(timestep); int nu... | oxelson/IDV | [
1,
0,
0,
0
] |
23,146 | private static FieldImpl makePointObs(FlatField timeStep, DateTime dt, double min, double max)
throws VisADException, RemoteException {
if (timeStep == null) {
return null;
}
SampledSet domain = getSpatialDomain(timeStep);
int numPoints = domain.getLengt... | private static FieldImpl makePointObs(FlatField timeStep, DateTime dt, double min, double max)
throws VisADException, RemoteException {
if (timeStep == null) {
return null;
}
SampledSet domain = getSpatialDomain(timeStep);
int numPoints = domain.getLengt... | private static fieldimpl makepointobs(flatfield timestep, datetime dt, double min, double max) throws visadexception, remoteexception { if (timestep == null) { return null; } sampledset domain = getspatialdomain(timestep); int numpoints = domain.getlength(); integer1dset points = new integer1dset(realtype.getrealtype("... | oxelson/IDV | [
1,
0,
0,
0
] |
14,974 | @Nullable
@Deprecated
public static Character max(@Nullable CharSequence charSequence) {
return maxOrNull(charSequence);
} | @Nullable
@Deprecated
public static Character max(@Nullable CharSequence charSequence) {
return maxOrNull(charSequence);
} | @nullable @deprecated public static character max(@nullable charsequence charsequence) { return maxornull(charsequence); } | panpf/tools4j | [
0,
0,
0,
0
] |
14,975 | @Nullable
@Deprecated
public static <R extends Comparable<R>> Character maxBy(@Nullable CharSequence charSequence, @NotNull Transformer<Character, R> selector) {
return maxByOrNull(charSequence, selector);
} | @Nullable
@Deprecated
public static <R extends Comparable<R>> Character maxBy(@Nullable CharSequence charSequence, @NotNull Transformer<Character, R> selector) {
return maxByOrNull(charSequence, selector);
} | @nullable @deprecated public static <r extends comparable<r>> character maxby(@nullable charsequence charsequence, @notnull transformer<character, r> selector) { return maxbyornull(charsequence, selector); } | panpf/tools4j | [
0,
0,
0,
0
] |
14,976 | @Nullable
@Deprecated
public static Character min(@Nullable CharSequence charSequence) {
return minOrNull(charSequence);
} | @Nullable
@Deprecated
public static Character min(@Nullable CharSequence charSequence) {
return minOrNull(charSequence);
} | @nullable @deprecated public static character min(@nullable charsequence charsequence) { return minornull(charsequence); } | panpf/tools4j | [
0,
0,
0,
0
] |
14,977 | @Nullable
@Deprecated
public static <R extends Comparable<R>> Character minBy(@Nullable CharSequence charSequence, @NotNull Transformer<Character, R> selector) {
return minByOrNull(charSequence, selector);
} | @Nullable
@Deprecated
public static <R extends Comparable<R>> Character minBy(@Nullable CharSequence charSequence, @NotNull Transformer<Character, R> selector) {
return minByOrNull(charSequence, selector);
} | @nullable @deprecated public static <r extends comparable<r>> character minby(@nullable charsequence charsequence, @notnull transformer<character, r> selector) { return minbyornull(charsequence, selector); } | panpf/tools4j | [
0,
0,
0,
0
] |
23,182 | public static void main(String[] args) {
// TODO code application logic her
// Hola Onasis
int num = 0;
// Holaaaaa
// QQUE ONDASS
switch(num){
case 1:
case 2:
default:
}
//
} | public static void main(String[] args) {
int num = 0;
switch(num){
case 1:
case 2:
default:
}
} | public static void main(string[] args) { int num = 0; switch(num){ case 1: case 2: default: } } | monicastle/Prueba | [
0,
1,
0,
0
] |
31,571 | private Object convertNullValue(RdsTableColumnDetails theColumnDetail) {
if (theColumnDetail.isNullable()) {
return null;
}
// For integral number type things, need to convert "null" into 0.
if (theColumnDetail.isIntegralType()) {
return new Integer(0);
}
... | private Object convertNullValue(RdsTableColumnDetails theColumnDetail) {
if (theColumnDetail.isNullable()) {
return null;
}
if (theColumnDetail.isIntegralType()) {
return new Integer(0);
}
if (theColumnDetail.isDecimalType()) {
... | private object convertnullvalue(rdstablecolumndetails thecolumndetail) { if (thecolumndetail.isnullable()) { return null; } if (thecolumndetail.isintegraltype()) { return new integer(0); } if (thecolumndetail.isdecimaltype()) { return new double(0.0); } return null; } | ogreflow/ogre | [
1,
0,
0,
0
] |
23,738 | @Override
public void validateStatusOnUpdate(Post post) {
// TODO Implement a method
} | @Override
public void validateStatusOnUpdate(Post post) {
} | @override public void validatestatusonupdate(post post) { } | reckue/note-api | [
0,
1,
0,
0
] |
32,092 | private boolean validParameters(List<String> parameters) {
// TODO: throw a parsing error exception on the YAML parser when params size is less than 2.
return CollectionUtils.isNotEmpty(parameters) && parameters.size() >= 2;
} | private boolean validParameters(List<String> parameters) {
return CollectionUtils.isNotEmpty(parameters) && parameters.size() >= 2;
} | private boolean validparameters(list<string> parameters) { return collectionutils.isnotempty(parameters) && parameters.size() >= 2; } | ngouagna/alien4cloud-cloudify2-provider | [
0,
1,
0,
0
] |
15,833 | private String get_location ()
{
final StackTraceElement[] stackTrace = new Throwable ().getStackTrace ();
for (int i = 2 /* skip this+serviceChanged */; i < stackTrace.length; i++)
{
StackTraceElement ste = stackTrace [i];
String class_name = ste.getClassName ();
... | private String get_location ()
{
final StackTraceElement[] stackTrace = new Throwable ().getStackTrace ();
for (int i = 2; i < stackTrace.length; i++)
{
StackTraceElement ste = stackTrace [i];
String class_name = ste.getClassName ();
if (!class_name.starts... | private string get_location () { final stacktraceelement[] stacktrace = new throwable ().getstacktrace (); for (int i = 2; i < stacktrace.length; i++) { stacktraceelement ste = stacktrace [i]; string class_name = ste.getclassname (); if (!class_name.startswith ("org.apache.felix.framework.") && !class_name.equals (this... | neoautus/lucidj-core | [
1,
0,
0,
0
] |
7,735 | public static void main(String[] args) {
// TODO(pdex): why are we making our own threadpool?
final List<ListeningExecutorService> l =
Spez.ServicePoolGenerator(THREAD_POOL, "Spanner Tailer Event Worker");
final SpannerTailer tailer = new SpannerTailer(THREAD_POOL, 200000000);
// final EventPubl... | public static void main(String[] args) {
final List<ListeningExecutorService> l =
Spez.ServicePoolGenerator(THREAD_POOL, "Spanner Tailer Event Worker");
final SpannerTailer tailer = new SpannerTailer(THREAD_POOL, 200000000);
final ThreadLocal<EventPublisher> publisher =
ThreadLocal.w... | public static void main(string[] args) { final list<listeningexecutorservice> l = spez.servicepoolgenerator(thread_pool, "spanner tailer event worker"); final spannertailer tailer = new spannertailer(thread_pool, 200000000); final threadlocal<eventpublisher> publisher = threadlocal.withinitial( () -> { return new event... | olavloite/spez2 | [
1,
0,
0,
0
] |
24,154 | @Test
public void trouble_maker() {
Mono<String> trouble = null; //todo: change this line
StepVerifier.create(trouble)
.expectError(IllegalStateException.class)
.verify();
} | @Test
public void trouble_maker() {
Mono<String> trouble = null;
StepVerifier.create(trouble)
.expectError(IllegalStateException.class)
.verify();
} | @test public void trouble_maker() { mono<string> trouble = null; stepverifier.create(trouble) .expecterror(illegalstateexception.class) .verify(); } | nicolasbelfis/practical-reactor | [
1,
0,
0,
0
] |
24,160 | @Test
public void repeat() {
AtomicInteger counter = new AtomicInteger(0);
Flux<Integer> repeated = null; //todo: change this line
System.out.println("Repeat: ");
StepVerifier.create(repeated.doOnNext(System.out::println))
.expectNext(1, 2, 3, 4, 5, 6, 7, 8, 9, 10... | @Test
public void repeat() {
AtomicInteger counter = new AtomicInteger(0);
Flux<Integer> repeated = null;
System.out.println("Repeat: ");
StepVerifier.create(repeated.doOnNext(System.out::println))
.expectNext(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
.ve... | @test public void repeat() { atomicinteger counter = new atomicinteger(0); flux<integer> repeated = null; system.out.println("repeat: "); stepverifier.create(repeated.doonnext(system.out::println)) .expectnext(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) .verifycomplete(); } | nicolasbelfis/practical-reactor | [
1,
0,
0,
0
] |
7,823 | private static double EvalSegmentedFn(final cmsToneCurve g, double R)
{
int i;
for (i = g.nSegments-1; i >= 0 ; --i)
{
// Check for domain
if ((R > g.Segments[i].x0) && (R <= g.Segments[i].x1))
{
// Type == 0 means segment is sampled
if (g.Segments[i]... | private static double EvalSegmentedFn(final cmsToneCurve g, double R)
{
int i;
for (i = g.nSegments-1; i >= 0 ; --i)
{
if ((R > g.Segments[i].x0) && (R <= g.Segments[i].x1))
{
if (g.Segments[i].Type == 0)
{
float R1 = (fl... | private static double evalsegmentedfn(final cmstonecurve g, double r) { int i; for (i = g.nsegments-1; i >= 0 ; --i) { if ((r > g.segments[i].x0) && (r <= g.segments[i].x1)) { if (g.segments[i].type == 0) { float r1 = (float)(r - g.segments[i].x0); float[] out = new float[1]; g.seginterp[i].table = g.segments[i].sample... | rcmaniac25/little-cms-for-blackberry | [
1,
0,
0,
0
] |
16,061 | @Override
protected BufferedDataTable[] execute(final BufferedDataTable[] inData,
final ExecutionContext exec) throws Exception {
DataColumnSpec[] allColSpecs = new DataColumnSpec[1];
allColSpecs[0] =
new DataColumnSpecCreator("url", StringCell.TYPE).createSpec();
D... | @Override
protected BufferedDataTable[] execute(final BufferedDataTable[] inData,
final ExecutionContext exec) throws Exception {
DataColumnSpec[] allColSpecs = new DataColumnSpec[1];
allColSpecs[0] =
new DataColumnSpecCreator("url", StringCell.TYPE).createSpec();
D... | @override protected buffereddatatable[] execute(final buffereddatatable[] indata, final executioncontext exec) throws exception { datacolumnspec[] allcolspecs = new datacolumnspec[1]; allcolspecs[0] = new datacolumnspeccreator("url", stringcell.type).createspec(); datatablespec outputspec = new datatablespec(allcolspec... | openphacts/OPS-Knime | [
0,
1,
1,
0
] |
16,088 | private void parseNamespaceOrTypes() throws FeatureNotSupportedException {
while (!curtok.equals(EOF)) {
// todo: account for assembly attributes
parsePossibleAttributes(true);
if (curAttributes.size() > 0) {
for (AttributeNode an : curAttributes) {
... | private void parseNamespaceOrTypes() throws FeatureNotSupportedException {
while (!curtok.equals(EOF)) {
parsePossibleAttributes(true);
if (curAttributes.size() > 0) {
for (AttributeNode an : curAttributes) {
cu.attributes.add(an);
... | private void parsenamespaceortypes() throws featurenotsupportedexception { while (!curtok.equals(eof)) { parsepossibleattributes(true); if (curattributes.size() > 0) { for (attributenode an : curattributes) { cu.attributes.add(an); } curattributes.clear(); } switch (curtok.id) { case tokenid.using: parseusingdirectives... | osoco/comprendiendo-software-creando-herramientas | [
0,
1,
0,
0
] |
16,089 | private PPNode parsePreprocessorDirective() throws FeatureNotSupportedException {
PPNode result = null;
int startLine = lineCount;
inPPDirective = true;
advance(); // over hash
IdentifierExpression ie = parseIdentifierOrKeyword();
String ppKind = ie.Identifier[0];
... | private PPNode parsePreprocessorDirective() throws FeatureNotSupportedException {
PPNode result = null;
int startLine = lineCount;
inPPDirective = true;
advance();
IdentifierExpression ie = parseIdentifierOrKeyword();
String ppKind = ie.Identifier[0];
byte id = Pr... | private ppnode parsepreprocessordirective() throws featurenotsupportedexception { ppnode result = null; int startline = linecount; inppdirective = true; advance(); identifierexpression ie = parseidentifierorkeyword(); string ppkind = ie.identifier[0]; byte id = preprocessorid.empty; if (preprocessor.containskey(ppkind)... | osoco/comprendiendo-software-creando-herramientas | [
0,
1,
0,
0
] |
16,146 | public void create(File dstFolder, List<ExcelTable> tables, ExcelSproutOptions options) {
Random rnd = new Random(options.getRandomSeed());
//there are many tables
//we have to decide: what table to what sheet, and what sheet to what workbook
//we should not repeat tables about the same ... | public void create(File dstFolder, List<ExcelTable> tables, ExcelSproutOptions options) {
Random rnd = new Random(options.getRandomSeed());
List<List<ExcelTable>> workbookClusters = getWorkbookClusters(tables, rnd);
List<List<List<E... | public void create(file dstfolder, list<exceltable> tables, excelsproutoptions options) { random rnd = new random(options.getrandomseed()); list<list<exceltable>> workbookclusters = getworkbookclusters(tables, rnd); list<list<list<exceltable>>> workbooksheettables = new arraylist<>(); for (list<exceltable> workbooktabl... | mschroeder-github/datasprout | [
1,
1,
0,
0
] |
16,159 | @Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ParameterizedTypeImpl that = (ParameterizedTypeImpl) o;
// Probably incorrect - comparing Object[] arrays with Arrays.equals
if (!Arrays.equals(a... | @Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ParameterizedTypeImpl that = (ParameterizedTypeImpl) o;
if (!Arrays.equals(actualTypeArguments, that.actualTypeArguments)) return false;
... | @override public boolean equals(object o) { if (this == o) return true; if (o == null || getclass() != o.getclass()) return false; parameterizedtypeimpl that = (parameterizedtypeimpl) o; if (!arrays.equals(actualtypearguments, that.actualtypearguments)) return false; if (ownertype != null ? !ownertype.equals(that.owner... | osglworks/java-di | [
0,
0,
1,
0
] |
8,062 | @Override // ObjectEventListener
public Object addingObject (Object obj, int index)
{
ObjectRenderer renderer = rendererFactory.newRenderer (obj);
// TODO: VAADIN SESSION HANDLING
layout.addComponent (renderer, index);
active_renderers.put (get_object_hash (obj), renderer);
... | @Override public Object addingObject (Object obj, int index)
{
ObjectRenderer renderer = rendererFactory.newRenderer (obj);
layout.addComponent (renderer, index);
active_renderers.put (get_object_hash (obj), renderer);
log.info ("<<RENDERER>> addingObject() layout height ... | @override public object addingobject (object obj, int index) { objectrenderer renderer = rendererfactory.newrenderer (obj); layout.addcomponent (renderer, index); active_renderers.put (get_object_hash (obj), renderer); log.info ("<<renderer>> addingobject() layout height = {} {}", layout.getheight (), layout.getheightu... | neoautus/lucidj | [
0,
1,
0,
0
] |
8,063 | @Override // ObjectEventListener
public void removingObject (Object obj, int index)
{
String hash = get_object_hash (obj);
ObjectRenderer renderer = active_renderers.get (hash);
log.info ("removingObject: obj={} or={} layout={} /// active_renderers={}", hash, renderer, layout, active_ren... | @Override public void removingObject (Object obj, int index)
{
String hash = get_object_hash (obj);
ObjectRenderer renderer = active_renderers.get (hash);
log.info ("removingObject: obj={} or={} layout={} /// active_renderers={}", hash, renderer, layout, active_renderers);
... | @override public void removingobject (object obj, int index) { string hash = get_object_hash (obj); objectrenderer renderer = active_renderers.get (hash); log.info ("removingobject: obj={} or={} layout={} /// active_renderers={}", hash, renderer, layout, active_renderers); if (renderer != null) { layout.removecomponent... | neoautus/lucidj | [
0,
1,
0,
0
] |
161 | protected final void addSequences(List<String> seqNames, Long seqDefaultValue, boolean ignoreFailure) throws SQLException{
// ToDo: rewrite function to use one SQL call per select/insert for all items
for (String seqName: seqNames){
addSequence(seqName, seqDefaultValue, ignoreFailure);
}
} | protected final void addSequences(List<String> seqNames, Long seqDefaultValue, boolean ignoreFailure) throws SQLException{
for (String seqName: seqNames){
addSequence(seqName, seqDefaultValue, ignoreFailure);
}
} | protected final void addsequences(list<string> seqnames, long seqdefaultvalue, boolean ignorefailure) throws sqlexception{ for (string seqname: seqnames){ addsequence(seqname, seqdefaultvalue, ignorefailure); } } | shavi71/ambari | [
1,
0,
0,
0
] |
24,756 | public static void addChatMessageFixed(ICommandSender sender, IChatComponent message) {
if (sender == null || message == null) return;
if (sender instanceof EntityPlayerMP) {
if (((EntityPlayerMP)sender).playerNetServerHandler != null) {
sender.addChatMessage(message);
... | public static void addChatMessageFixed(ICommandSender sender, IChatComponent message) {
if (sender == null || message == null) return;
if (sender instanceof EntityPlayerMP) {
if (((EntityPlayerMP)sender).playerNetServerHandler != null) {
sender.addChatMessage(message);
... | public static void addchatmessagefixed(icommandsender sender, ichatcomponent message) { if (sender == null || message == null) return; if (sender instanceof entityplayermp) { if (((entityplayermp)sender).playernetserverhandler != null) { sender.addchatmessage(message); } else { } } else { sender.addchatmessage(message)... | repo-alt/MyEssentials-Core | [
0,
1,
0,
0
] |
33,024 | public Node addNode(String s) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException {
return null;
} | public Node addNode(String s) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException {
return null;
} | public node addnode(string s) throws itemexistsexception, pathnotfoundexception, versionexception, constraintviolationexception, lockexception, repositoryexception { return null; } | sohaniwso2/carbon-registry-1 | [
0,
1,
0,
0
] |
33,065 | private List<DataPoint> getIntersectedSetUsingQuadTree(List<DataPoint> dataset, Rectangle rect) {
throw new UnsupportedOperationException("Not Yet Implemented");
} | private List<DataPoint> getIntersectedSetUsingQuadTree(List<DataPoint> dataset, Rectangle rect) {
throw new UnsupportedOperationException("Not Yet Implemented");
} | private list<datapoint> getintersectedsetusingquadtree(list<datapoint> dataset, rectangle rect) { throw new unsupportedoperationexception("not yet implemented"); } | smozely/QuadTree | [
0,
1,
0,
0
] |
8,490 | private static String getSampleWithLineBreak(){
StringBuilder sb = new StringBuilder();
sb.append("[");
for(int i = 1; i < 4; i++){
sb.append(getTypicalElement(i));
sb.append(",");
}
sb.append("{\"id\" : 4," +
"\"author\" : \"With line\\n b... | private static String getSampleWithLineBreak(){
StringBuilder sb = new StringBuilder();
sb.append("[");
for(int i = 1; i < 4; i++){
sb.append(getTypicalElement(i));
sb.append(",");
}
sb.append("{\"id\" : 4," +
"\"author\" : \"With line\\n b... | private static string getsamplewithlinebreak(){ stringbuilder sb = new stringbuilder(); sb.append("["); for(int i = 1; i < 4; i++){ sb.append(gettypicalelement(i)); sb.append(","); } sb.append("{\"id\" : 4," + "\"author\" : \"with line\\n break\"," + "\"title\" : \"book title 4\"," + "\"publish_date\" : \"2010-05-26\""... | sbalineni19/OpenRefine | [
0,
0,
1,
0
] |
24,911 | @ParameterizedTest
@MethodSource("data") // bug in junit csvsource parsing - it does a trim, using a manual parsing as workaround
void parse(final String csv) {
final String[] parts = csv.split(",");
parse(parser, parts[0], parseInt(parts[1]), parseBoolean(parts[2]), null, parseInt(parts[3]));
... | @ParameterizedTest
@MethodSource("data")
void parse(final String csv) {
final String[] parts = csv.split(",");
parse(parser, parts[0], parseInt(parts[1]), parseBoolean(parts[2]), null, parseInt(parts[3]));
} | @parameterizedtest @methodsource("data") void parse(final string csv) { final string[] parts = csv.split(","); parse(parser, parts[0], parseint(parts[1]), parseboolean(parts[2]), null, parseint(parts[3])); } | rmannibucau/access-log-stats | [
0,
0,
1,
0
] |
380 | @Override
public boolean accept(File pathname)
{
// TODO: More checking here - actually parse out tile coord
return pathname.isFile() && pathname.getName().endsWith(".tile");
} | @Override
public boolean accept(File pathname)
{
return pathname.isFile() && pathname.getName().endsWith(".tile");
} | @override public boolean accept(file pathname) { return pathname.isfile() && pathname.getname().endswith(".tile"); } | snuk182/tectonicus | [
0,
1,
0,
0
] |
386 | public static <T> MetricStorage doubleAsynchronousAccumulator(
View view,
InstrumentDescriptor instrument,
Consumer<ObservableDoubleMeasurement> metricUpdater) {
final MetricDescriptor metricDescriptor = MetricDescriptor.create(view, instrument);
Aggregator<T> aggregator =
view.getAggr... | public static <T> MetricStorage doubleAsynchronousAccumulator(
View view,
InstrumentDescriptor instrument,
Consumer<ObservableDoubleMeasurement> metricUpdater) {
final MetricDescriptor metricDescriptor = MetricDescriptor.create(view, instrument);
Aggregator<T> aggregator =
view.getAggr... | public static <t> metricstorage doubleasynchronousaccumulator( view view, instrumentdescriptor instrument, consumer<observabledoublemeasurement> metricupdater) { final metricdescriptor metricdescriptor = metricdescriptor.create(view, instrument); aggregator<t> aggregator = view.getaggregation().createaggregator(instrum... | svalaskevicius/opentelemetry-java | [
1,
0,
0,
0
] |
387 | public static <T> MetricStorage longAsynchronousAccumulator(
View view,
InstrumentDescriptor instrument,
Consumer<ObservableLongMeasurement> metricUpdater) {
final MetricDescriptor metricDescriptor = MetricDescriptor.create(view, instrument);
Aggregator<T> aggregator =
view.getAggregat... | public static <T> MetricStorage longAsynchronousAccumulator(
View view,
InstrumentDescriptor instrument,
Consumer<ObservableLongMeasurement> metricUpdater) {
final MetricDescriptor metricDescriptor = MetricDescriptor.create(view, instrument);
Aggregator<T> aggregator =
view.getAggregat... | public static <t> metricstorage longasynchronousaccumulator( view view, instrumentdescriptor instrument, consumer<observablelongmeasurement> metricupdater) { final metricdescriptor metricdescriptor = metricdescriptor.create(view, instrument); aggregator<t> aggregator = view.getaggregation().createaggregator(instrument,... | svalaskevicius/opentelemetry-java | [
1,
0,
0,
0
] |
395 | @Override
public Path getPath(URI uri) {
FileSystem fileSystem = getFileSystem(uri);
/**
* TODO: set as a list. one s3FileSystem by region
*/
return fileSystem.getPath(uri.getPath());
} | @Override
public Path getPath(URI uri) {
FileSystem fileSystem = getFileSystem(uri);
return fileSystem.getPath(uri.getPath());
} | @override public path getpath(uri uri) { filesystem filesystem = getfilesystem(uri); return filesystem.getpath(uri.getpath()); } | skashin/Amazon-S3-FileSystem-NIO2 | [
1,
1,
0,
0
] |
24,980 | protected void runInContextInternal() {
if (s_logger.isInfoEnabled()) {
s_logger.info("starting usage job...");
}
// how about we update the job exec time when the job starts???
long execTime = _jobExecTime.getTimeInMillis();
long now = System.currentTimeMillis() + 20... | protected void runInContextInternal() {
if (s_logger.isInfoEnabled()) {
s_logger.info("starting usage job...");
}
long execTime = _jobExecTime.getTimeInMillis();
long now = System.currentTimeMillis() + 2000;
if (execTime < now) {
... | protected void runincontextinternal() { if (s_logger.isinfoenabled()) { s_logger.info("starting usage job..."); } long exectime = _jobexectime.gettimeinmillis(); long now = system.currenttimemillis() + 2000; if (exectime < now) { _jobexectime.add(calendar.minute, _aggregationduration); } usagejobvo job = _usagejobdao.i... | serbaut/cloudstack | [
1,
0,
1,
0
] |
24,981 | @Override
public void parse(UsageJobVO job, long startDateMillis, long endDateMillis) {
// TODO: Shouldn't we also allow parsing by the type of usage?
boolean success = false;
long timeStart = System.currentTimeMillis();
try {
if ((endDateMillis == 0) || (endDateMillis > ... | @Override
public void parse(UsageJobVO job, long startDateMillis, long endDateMillis) {
boolean success = false;
long timeStart = System.currentTimeMillis();
try {
if ((endDateMillis == 0) || (endDateMillis > timeStart)) {
endDateMillis = timeStart;
... | @override public void parse(usagejobvo job, long startdatemillis, long enddatemillis) { boolean success = false; long timestart = system.currenttimemillis(); try { if ((enddatemillis == 0) || (enddatemillis > timestart)) { enddatemillis = timestart; } long lastsuccess = _usagejobdao.getlastjobsuccessdatemillis(); if (l... | serbaut/cloudstack | [
1,
1,
0,
0
] |
33,175 | @SuppressWarnings("unchecked")
public static <T> T[] toArray(List<T> list){
return (T[]) list.toArray();
} | @SuppressWarnings("unchecked")
public static <T> T[] toArray(List<T> list){
return (T[]) list.toArray();
} | @suppresswarnings("unchecked") public static <t> t[] toarray(list<t> list){ return (t[]) list.toarray(); } | sisbell/appia | [
1,
0,
0,
0
] |
408 | @SuppressWarnings("nls")
@Override
protected FilterResult doFilterInternal(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response = new IgnoreContentWrapper(response);
response.addHeader("P3P", "CP=\"CAO PSA OUR\"");
response.setHeader("X-Content-... | @SuppressWarnings("nls")
@Override
protected FilterResult doFilterInternal(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response = new IgnoreContentWrapper(response);
response.addHeader("P3P", "CP=\"CAO PSA OUR\"");
response.setHeader("X-Content-... | @suppresswarnings("nls") @override protected filterresult dofilterinternal(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { response = new ignorecontentwrapper(response); response.addheader("p3p", "cp=\"cao psa our\""); response.setheader("x-content-type-options", "nosnif... | rmathis/openEQUELLA | [
0,
0,
1,
0
] |
16,797 | public static Listener createListener(boolean ads,
io.envoyproxy.envoy.api.v2.core.ApiVersion rdsTransportVersion,
io.envoyproxy.envoy.api.v2.core.ApiVersion rdsResourceVersion, String listenerName,
int port, String routeName) {
ConfigSource.Builder configSourceBuilder = ConfigSource.newBuilder()
... | public static Listener createListener(boolean ads,
io.envoyproxy.envoy.api.v2.core.ApiVersion rdsTransportVersion,
io.envoyproxy.envoy.api.v2.core.ApiVersion rdsResourceVersion, String listenerName,
int port, String routeName) {
ConfigSource.Builder configSourceBuilder = ConfigSource.newBuilder()
... | public static listener createlistener(boolean ads, io.envoyproxy.envoy.api.v2.core.apiversion rdstransportversion, io.envoyproxy.envoy.api.v2.core.apiversion rdsresourceversion, string listenername, int port, string routename) { configsource.builder configsourcebuilder = configsource.newbuilder() .setresourceapiversion... | smtilden/java-control-plane | [
0,
0,
0,
0
] |
24,996 | @Override
public void performInitialization(Object model) {
setFieldBindingObjectPath(getBindingInfo().getBindingObjectPath());
super.performInitialization(model);
if (bindingInfo != null) {
bindingInfo.setDefaults(ViewLifecycle.getActiveLifecycle().getView(), getPropertyName());... | @Override
public void performInitialization(Object model) {
setFieldBindingObjectPath(getBindingInfo().getBindingObjectPath());
super.performInitialization(model);
if (bindingInfo != null) {
bindingInfo.setDefaults(ViewLifecycle.getActiveLifecycle().getView(), getPropertyName());... | @override public void performinitialization(object model) { setfieldbindingobjectpath(getbindinginfo().getbindingobjectpath()); super.performinitialization(model); if (bindinginfo != null) { bindinginfo.setdefaults(viewlifecycle.getactivelifecycle().getview(), getpropertyname()); } } | ricepanda/rice | [
0,
1,
0,
0
] |
25,027 | @Override
public Map<String, String> getOptionList(String id) {
// TODO: Return genre map
return super.getOptionList(id);
} | @Override
public Map<String, String> getOptionList(String id) {
return super.getOptionList(id);
} | @override public map<string, string> getoptionlist(string id) { return super.getoptionlist(id); } | stuckless/sagetv-phoenix-core | [
0,
1,
0,
0
] |
16,873 | private List<InferenceInOutSequence> getInputOutputAssets() throws IOException {
// TODO: Caching, don't read inputs for every inference
List<InferenceInOutSequence> inOutList =
getInputOutputAssets(mContext, mInputOutputAssets, mInputOutputDatasets);
Boolean lastGolden = null;
... | private List<InferenceInOutSequence> getInputOutputAssets() throws IOException {
List<InferenceInOutSequence> inOutList =
getInputOutputAssets(mContext, mInputOutputAssets, mInputOutputDatasets);
Boolean lastGolden = null;
for (InferenceInOutSequence sequence : inOutList)... | private list<inferenceinoutsequence> getinputoutputassets() throws ioexception { list<inferenceinoutsequence> inoutlist = getinputoutputassets(mcontext, minputoutputassets, minputoutputdatasets); boolean lastgolden = null; for (inferenceinoutsequence sequence : inoutlist) { mhasgoldenoutputs = sequence.hasgoldenoutput(... | riscv-android-src/platform-test-mlts-benchmark | [
0,
1,
0,
0
] |
16,874 | public static List<InferenceInOutSequence> getInputOutputAssets(Context context,
InferenceInOutSequence.FromAssets[] inputOutputAssets,
InferenceInOutSequence.FromDataset[] inputOutputDatasets) throws IOException {
// TODO: Caching, don't read inputs for every inference
List<Infe... | public static List<InferenceInOutSequence> getInputOutputAssets(Context context,
InferenceInOutSequence.FromAssets[] inputOutputAssets,
InferenceInOutSequence.FromDataset[] inputOutputDatasets) throws IOException {
List<InferenceInOutSequence> inOutList = new ArrayList<>();
... | public static list<inferenceinoutsequence> getinputoutputassets(context context, inferenceinoutsequence.fromassets[] inputoutputassets, inferenceinoutsequence.fromdataset[] inputoutputdatasets) throws ioexception { list<inferenceinoutsequence> inoutlist = new arraylist<>(); if (inputoutputassets != null) { for (inferen... | riscv-android-src/platform-test-mlts-benchmark | [
0,
1,
0,
0
] |
33,261 | @Test
public void testJMeterJtlFileWithTransactionsAndTransactionsBug() throws Exception {
String[] runArgs = {
"--report.dir",
temporaryFolder.getRoot().getPath(),
"jmeter",
"--report-logline-type",
"transaction",
"-gt",
"-gh",
"-gr",
"-gp",
"-group-by-http-status",
"src/test/resour... | @Test
public void testJMeterJtlFileWithTransactionsAndTransactionsBug() throws Exception {
String[] runArgs = {
"--report.dir",
temporaryFolder.getRoot().getPath(),
"jmeter",
"--report-logline-type",
"transaction",
"-gt",
"-gh",
"-gr",
"-gp",
"-group-by-http-status",
"src/test/resour... | @test public void testjmeterjtlfilewithtransactionsandtransactionsbug() throws exception { string[] runargs = { "--report.dir", temporaryfolder.getroot().getpath(), "jmeter", "--report-logline-type", "transaction", "-gt", "-gh", "-gr", "-gp", "-group-by-http-status", "src/test/resources/jmeter/result_with_url_and_sampl... | stokpop/lograter | [
0,
0,
0,
0
] |
33,268 | @Override
public CustomProfile extractUserProfile(User user) throws InvalidDefinitionException {
// fetch custom attributes
List<UserAttributes> userAttributes = user.getAttributes().stream()
.filter(ua -> !ua.getIdentifier().startsWith("aac."))
.collect(Collectors.to... | @Override
public CustomProfile extractUserProfile(User user) throws InvalidDefinitionException {
List<UserAttributes> userAttributes = user.getAttributes().stream()
.filter(ua -> !ua.getIdentifier().startsWith("aac."))
.collect(Collectors.toList());
Co... | @override public customprofile extractuserprofile(user user) throws invaliddefinitionexception { list<userattributes> userattributes = user.getattributes().stream() .filter(ua -> !ua.getidentifier().startswith("aac.")) .collect(collectors.tolist()); collection<useridentity> identities = user.getidentities(); if (identi... | smartcommunitylab/AAC | [
1,
0,
0,
0
] |
16,896 | public TypeUse getTypeUse(XSSimpleType owner) {
if(typeUse!=null)
return typeUse;
JCodeModel cm = getCodeModel();
JDefinedClass a;
try {
a = cm._class(adapter);
a.hide(); // we assume this is given by the user
... | public TypeUse getTypeUse(XSSimpleType owner) {
if(typeUse!=null)
return typeUse;
JCodeModel cm = getCodeModel();
JDefinedClass a;
try {
a = cm._class(adapter);
a.hide();
a._extends(cm.ref(XmlAdapter.class)... | public typeuse gettypeuse(xssimpletype owner) { if(typeuse!=null) return typeuse; jcodemodel cm = getcodemodel(); jdefinedclass a; try { a = cm._class(adapter); a.hide(); a._extends(cm.ref(xmladapter.class).narrow(string.class).narrow( cm.ref(type))); } catch (jclassalreadyexistsexception e) { a = e.getexistingclass();... | renshuaibing-aaron/jdk1.8-source-analysis | [
1,
0,
0,
0
] |
8,710 | public EntityIdentifier[] searchForGroups(
final String query,
final SearchMethod method,
@SuppressWarnings("unchecked") final Class leaftype) {
// only search for groups
if (leaftype != IPerson.class) {
return new EntityIdentifier[] {};
}
... | public EntityIdentifier[] searchForGroups(
final String query,
final SearchMethod method,
@SuppressWarnings("unchecked") final Class leaftype) {
if (leaftype != IPerson.class) {
return new EntityIdentifier[] {};
}
if (LOGGER.isDebugEnabled(... | public entityidentifier[] searchforgroups( final string query, final searchmethod method, @suppresswarnings("unchecked") final class leaftype) { if (leaftype != iperson.class) { return new entityidentifier[] {}; } if (logger.isdebugenabled()) { logger.debug("searching grouper for groups matching query: " + query); } li... | shreeshreee/Uport | [
1,
0,
0,
0
] |
33,289 | @Override
public void run(RunNotifier runNotifier) {
runNotifier.fireTestRunStarted(topLevelDesc);
for (SelfTest selfTest : selfTests) {
for (SelfTestCase selfTestCase : selfTest.getSelfTestCases()) {
Description currentDesc = createTestCaseDescription(selfTestCase);
runNotifier.fireTest... | @Override
public void run(RunNotifier runNotifier) {
runNotifier.fireTestRunStarted(topLevelDesc);
for (SelfTest selfTest : selfTests) {
for (SelfTestCase selfTestCase : selfTest.getSelfTestCases()) {
Description currentDesc = createTestCaseDescription(selfTestCase);
runNotifier.fireTest... | @override public void run(runnotifier runnotifier) { runnotifier.firetestrunstarted(topleveldesc); for (selftest selftest : selftests) { for (selftestcase selftestcase : selftest.getselftestcases()) { description currentdesc = createtestcasedescription(selftestcase); runnotifier.fireteststarted(currentdesc); try { self... | scottmcmaster/blogcode | [
0,
1,
0,
0
] |
8,757 | @Override
public void notifyChildrenChanged(final RemoteUserInfo remoteUserInfo,
final String parentId, final Bundle options) {
// TODO(Post-P): Need a way to notify to a specific browser in framework.
notifyChildrenChangedForCompat(remoteUserInfo, parentId, options);
... | @Override
public void notifyChildrenChanged(final RemoteUserInfo remoteUserInfo,
final String parentId, final Bundle options) {
notifyChildrenChangedForCompat(remoteUserInfo, parentId, options);
} | @override public void notifychildrenchanged(final remoteuserinfo remoteuserinfo, final string parentid, final bundle options) { notifychildrenchangedforcompat(remoteuserinfo, parentid, options); } | svasilinets/androidx | [
1,
0,
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.