index < 0 means that we emphasize no point at all
346583
public void emphasizePoint( int index )
	{
		if( dots == null || dots.length < (index - 1) )
			return; // impossible !

		// if no change, nothing to do
		if( emphasizedPoint == index )
			return;

		// de-emphasize the current emphasized point
		if( emphasizedPoint >= 0 )
		{
			dots[emphasizedPoint].attr( "r", dotNormalSize );

			emphasizedPoint = -1;
		}

		if( index >= 0 )
		{
			dots[index].attr( "r", dotBigSize );

			emphasizedPoint = index;
		}
	}
80752
function nothing () {
	var params = new Parameterizer (null, null);
	params.get = function (ignore) {
		return undefined;
	};
	return params;
}
647246
def itemAt( self, index ):
        
        layout = self.widget().layout()
        if ( 0 <= index and index < (layout.count() - 1) ):
            return layout.itemAt(index).widget()
        return None
593624
def zero_pixels(self):
        
        zero_px = np.where(np.sum(self.raw_data, axis=2) == 0)
        zero_px = np.c_[zero_px[0], zero_px[1]]
        return zero_px
228054
def at_index(self, pos, predicate=None, index=None):
        
        return filter_index(self._index_dict[pos], predicate, index)
1340660
function index(list, k) {
    return defined(list) &&
      has(list, 'length') &&
      k >= 0 &&
      k < list.length;
  }
252262
def _indices(self):
        """"""
        path = self.parent
        layer = path.parent
        for path_index in range(len(layer.paths)):
            if path == layer.paths[path_index]:
                for node_index in range(len(path.nodes)):
                    if self == path.nodes[node_index]:
                        return Point(path_index, node_index)
        return None
479232
public static int indexOfNull (Object[] list)
    {
        if (list != null) {
            for (int ii=0, nn = list.length; ii < nn; ii++) {
                if (list[ii] == null) {
                    return ii;
                }
            }
        }
        return -1;
    }
946441
def clean_with_zeros(self,x):
        
        x[~np.any(np.isnan(x) | np.isinf(x),axis=1)] = 0
        return x
168034
function index(a, fn) {
  let i, l;
  for (i = 0, l = a.length; i < l; i++) {
    if (fn(a[i]))
      return i;
  }
  return -1;
}
610441
def zero(self):
        
        return self.point(self.field.zero(), self.field.zero())
42147
def index(self, sub, start=None, end=None):
        
        return self.value_no_colors.index(sub, start, end)
147423
private int binaryEmptySlotSearch() {

        int low     = 0;
        int high    = count;
        int mid     = 0;
        int compare = 0;

        while (low < high) {
            mid     = (low + high) / 2;
            compare = compare(mid);

            if (compare < 0) {
                high = mid;
            } else if (compare > 0) {
                low = mid + 1;
            } else {
                return -1;
            }
        }

        return low;
    }
543444
def each
      index = 0
      while index < i_keys.get_length
        key = i_keys.get(index)
        value = i_values.get(index)
        yield key , value
        index = index + 1
      end
      self
    end
773774
def zero(self):
        """"""
        tmp = self.element()
        self.lincomb(0, tmp, 0, tmp, tmp)
        return tmp
900760
def p_sens_empty(self, p):
        ''
        p[0] = SensList(
            (Sens(None, 'all', lineno=p.lineno(1)),), lineno=p.lineno(1))
        p.set_lineno(0, p.lineno(1))
287411
def end_index(self):
        
        return ((self.number - 1) * self.paginator.per_page +
            len(self.object_list))