methods for clients
184013
@MainThread
    public void startRangingBeaconsInRegion(Region region, Callback callback) {
        synchronized (mScanHelper.getRangedRegionState()) {
            if (mScanHelper.getRangedRegionState().containsKey(region)) {
                LogManager.i(TAG, "Already ranging that region -- will replace existing region.");
                mScanHelper.getRangedRegionState().remove(region); // need to remove it, otherwise the old object will be retained because they are .equal //FIXME That is not true
            }
            mScanHelper.getRangedRegionState().put(region, new RangeState(callback));
            LogManager.d(TAG, "Currently ranging %s regions.", mScanHelper.getRangedRegionState().size());
        }
        if (mScanHelper.getCycledScanner() != null) {
            mScanHelper.getCycledScanner().start();
        }
    }
379485
function mergeMethods(builder) {
      var methods = builder.methods();
      _.each(methods, function (fn, methodName) {
        // e.g.: users.getUserInfo
        self._methods[util.format('%s.%s', name, methodName)] = fn;
      });
    }
1204381
function(methods) {
        var api;
        for (var name in methods) {
            if (methods.hasOwnProperty(name)) {
                api = this._addMethod(name, methods[name]);
            }
        }
        return api;
    }
1273266
def _make_methods():
    ""
    for k, v in PokeAPI().get_endpoints().items():
        string = "\t@BaseAPI._memoize\n"
        string += ("\tdef get_{0}(self, id_or_name='', limit=None,"
                   .format(k.replace('-', '_')) + ' offset=None):\n')
        string += ("\t\tparams = self._parse_params(locals().copy(), " +
                   "['id_or_name'])\n")
        string += "\t\tquery_string = '{0}/'\n".format(v.split('/')[-2])
        string += "\t\tquery_string += str(id_or_name) + '?'\n"
        string += '\t\tquery_string += params\n'
        string += '\t\treturn self._get(query_string)\n'
        print(string)
650912
private function generateMethods(): void
    {
        $this->printer->writeln('Generating methods.');
        $this->generator->setChildNamespace('Method');

        /** @var Method $method */
        foreach ($this->wsdl->getMethods() as $name => $method) {
            $this->printer->writeln(" |\-Generating method $name");
            $code = $method->visit($this->generator);
            $className = $this->findClassName($code);
            $filename = $this->destination . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php';

            $this->writer->writeFile($filename, $code);
            $this->printer->writeln("  |- Wrote $className to $filename");
        }
    }
857466
def method_missing(m, *args)
      # note that 'href' method is not defined on this class; use 'path' instead.
      client.send(:do_post, [ path, m.to_s ].join('/'), *args)
    end
1154712
function UserProviderMethods(models) {
      this.models = models;
      this.getUserFromProvider = bind(this.getUserFromProvider, this);
      Hoek.assert(this.models, i18n.assertModelsRequired);
    }
767918
function exposePanopticonMethod(method) {
	exports[method] = function () {
		for (var i = 0; i < panoptica.length; i++) {
			var panopticon = panoptica[i];

			panopticon[method].apply(panopticon, arguments);
		}
	};
}
904287
def method_missing(method, *args)
      super unless args.empty?
      super unless methods.include?(method)
      @exif.send method if defined?(@exif) && @exif
    end
123789
public function forClients()
    {
        $this->router->group(['middleware' => ['web', 'auth']], function ($router) {
            $router->get('/clients', [
                'uses' => 'ClientController@forUser',
                'as' => 'passport.clients.index',
            ]);

            $router->post('/clients', [
                'uses' => 'ClientController@store',
                'as' => 'passport.clients.store',
            ]);

            $router->put('/clients/{client_id}', [
                'uses' => 'ClientController@update',
                'as' => 'passport.clients.update',
            ]);

            $router->delete('/clients/{client_id}', [
                'uses' => 'ClientController@destroy',
                'as' => 'passport.clients.destroy',
            ]);
        });
    }
473557
def method_missing(m, *args)
      # the method href would have been defined while initializing the object
      client.send(:do_post, [ href, m.to_s ].join('/'), *args)
    end
478978
function ()
	{
		for ( var cli in ZeroClipboard_TableTools.clients )
		{
			if ( cli )
			{
				var client = ZeroClipboard_TableTools.clients[cli];
				if ( typeof client.domElement != 'undefined' &&
					 client.domElement.parentNode )
				{
					client.positionElement();
				}
			}
		}
	}
1227607
public void executeMethods(final List<Method> methods) throws Exception {

        for (final Method method : methods) {

            // TODO - curious about the findSuitableInstancesOf ? won't
            // method.getDeclaringClass be ok??

            for (final Object object : findSuitableInstancesOf(method.getDeclaringClass())) {

                method.invoke(object);

            }
        }
    }
895440
def client
      @client ||= (client = Clients.with_name(client_name)
                    client = client.use(database_name) if database_name_option
                    client.with(client_options))
    end
806633
def method_missing(method, *args)
      request = RequestBuilder.new(@client)
      request.send(method, *args)
      request
    end
676032
def write_client(captures, options):
    
    with open("{}/_client.py".format(options.output_dir), "w") as f:
        f.write(HEADER)
        f.write("from juju.client._definitions import *\n\n")
        clients = ", ".join("_client{}".format(v) for v in captures)
        f.write("from juju.client import " + clients + "\n\n")
        f.write(CLIENT_TABLE.format(clients=",\n    ".join(
            ['"{}": _client{}'.format(v, v) for v in captures])))
        f.write(LOOKUP_FACADE)
        f.write(TYPE_FACTORY)
        for key in sorted([k for k in factories.keys() if "Facade" in k]):
            print(factories[key], file=f)
801170
function() {
            var newMethods = $._.$.iot.extraCAMethods();
            $._.$.log && $._.$.log.debug('Adding CA methods:' +
                                         JSON.stringify(Object
                                                        .keys(newMethods)));
            myUtils.mixin($.handler, newMethods, true);
        }