Get Graphite URL.
6836
def get_graph_url(self, target, graphite_url=None):
        """"""
        return self._graphite_url(target, graphite_url=graphite_url, raw_data=False)
148903
def url(self):
        
        return self.get_url(server_url=self._session.server_url, pipeline_name=self.data.name)
351450
def get_url(
    width, height=None, background_color="cccccc",
    text_color="969696", text=None, random_background_color=False
):
    
    if random_background_color:
        background_color = _get_random_color()

    # If height is not provided, presume it is will be a square
    if not height:
        height = width
    d = dict(
        width=width,
        height=height,
        bcolor=background_color,
        tcolor=text_color
    )
    url = URL % d
    if text:
        text = text.replace(" ", "+")
        url = url + "?text=" + text
    return url
513931
def getIndexStripUrl(self, index):
        """"""
        chapter, num = index.split('-')
        return self.stripUrl % (chapter, chapter, num)
630903
def handle_GET_ttablegraph(self,params):
    """"""
    schedule = self.server.schedule
    marey = MareyGraph()
    trip = schedule.GetTrip(params.get('trip', None))
    route = schedule.GetRoute(trip.route_id)
    height = int(params.get('height', 300))

    if not route:
      print('no such route')
      self.send_error(404)
      return

    pattern_id_trip_dict = route.GetPatternIdTripDict()
    pattern_id = trip.pattern_id
    if pattern_id not in pattern_id_trip_dict:
      print('no pattern %s found in %s' % (pattern_id, pattern_id_trip_dict.keys()))
      self.send_error(404)
      return
    triplist = pattern_id_trip_dict[pattern_id]

    pattern_start_time = min((t.GetStartTime() for t in triplist))
    pattern_end_time = max((t.GetEndTime() for t in triplist))

    marey.SetSpan(pattern_start_time,pattern_end_time)
    marey.Draw(triplist[0].GetPattern(), triplist, height)

    content = marey.Draw()

    self.send_response(200)
    self.send_header('Content-Type', 'image/svg+xml')
    self.send_header('Content-Length', str(len(content)))
    self.end_headers()
    self.wfile.write(content)
1016468
def _url(self):
        """"""
        if self.ID_NAME not in self.route.keys() and "id" in self.data.keys():
            self.route[self.ID_NAME] = self.data["id"]
        return self.config.BASE + self.PATH.format(**self.route)
314710
def get_url(url, catch_exception=False):
    
    return _get_url(url, catch_exception, urlopen=urllib2.urlopen)
158753
def cache(self):
        """"""
        if not self._cache:
            self._cache = self.graph.get('%s' % self.id)

        return self._cache
851934
def load_graphdef(model_url, reset_device=True):
  """"""
  graph_def = load(model_url)

  if reset_device:
    for n in graph_def.node:
      n.device = ""

  return graph_def
1055560
@RestrictTo(LIBRARY)
  public String url() {
    StringBuilder sb = new StringBuilder();

    sb.append("path");
    if (strokeWidth() != null) {
      sb.append("-").append(strokeWidth());
    }
    if (strokeColor() != null) {
      sb.append("+").append(strokeColor());
    }
    if (strokeOpacity() != null) {
      sb.append("-").append(strokeOpacity());
    }
    if (fillColor() != null) {
      sb.append("+").append(fillColor());
    }
    if (fillOpacity() != null) {
      sb.append("-").append(fillOpacity());
    }
    sb.append("(").append(polyline()).append(")");
    return sb.toString();
  }
493026
def get_urls(self):
        """"""
        from django.conf.urls import patterns, url
        from views import DashboardWelcomeView

        urls = super(AdminMixin, self).get_urls()
        del urls[0]
        custom_url = patterns(
            '',
            url(r'^$', self.admin_view(DashboardWelcomeView.as_view()), name="index")
        )

        return custom_url + urls
1086549
def get(self, callback):
        '''
        
        '''
        derived_path = self.context.request.url
        logger.debug('[{log_prefix}]: get.derived_path: {path}'.format(
            log_prefix=LOG_PREFIX, path=derived_path))
        callback(self.storage.get(self.result_key_for(derived_path)))
482748
def url(self):
        """"""
        if not self._url[2].endswith('/'):
            self._url[2] += '/'
        return RestURL.url.__get__(self)
660005
def get_urls(self):
        """"""
        urls = super(BaseDjangoObjectActions, self).get_urls()
        return self._get_action_urls() + urls
950231
def get_graph(graph, conn, **kwargs):
    
    sparql = render_without_request("sparqlGraphDataTemplate.rq",
                                    prefix=NSM.prefix(),
                                    graph=graph)
    return conn.query(sparql, **kwargs)
390961
def getRenderModelThumbnailURL(self, pchRenderModelName, pchThumbnailURL, unThumbnailURLLen):
        """"""

        fn = self.function_table.getRenderModelThumbnailURL
        peError = EVRRenderModelError()
        result = fn(pchRenderModelName, pchThumbnailURL, unThumbnailURLLen, byref(peError))
        return result, peError
1008960
def get_machine_graph_url(start, end):
    

    filename = get_machine_graph_filename(start, end)
    urls = {
        'graph_url': urlparse.urljoin(GRAPH_URL, filename + ".png"),
        'data_url': urlparse.urljoin(GRAPH_URL, filename + ".csv"),
    }

    return urls