Function bodies 2,478 total
patch method · ruby · L91-L93 (3 LOC)lib/magi/archive/mcp/client.rb
def patch(path, **data)
request(:patch, path, json: data)
endpatch method · ruby · L91-L93 (3 LOC)lib/magi/archive/mcp/client.rb
def patch(path, **data)
request(:patch, path, json: data)
endpatch method · ruby · L91-L93 (3 LOC)lib/magi/archive/mcp/client.rb
def patch(path, **data)
request(:patch, path, json: data)
endput method · ruby · L101-L103 (3 LOC)lib/magi/archive/mcp/client.rb
def put(path, **data)
request(:put, path, json: data)
endput method · ruby · L101-L103 (3 LOC)lib/magi/archive/mcp/client.rb
def put(path, **data)
request(:put, path, json: data)
endput method · ruby · L101-L103 (3 LOC)lib/magi/archive/mcp/client.rb
def put(path, **data)
request(:put, path, json: data)
endput method · ruby · L101-L103 (3 LOC)lib/magi/archive/mcp/client.rb
def put(path, **data)
request(:put, path, json: data)
endRepobility — the code-quality scanner for AI-generated software · https://repobility.com
put method · ruby · L101-L103 (3 LOC)lib/magi/archive/mcp/client.rb
def put(path, **data)
request(:put, path, json: data)
endput method · ruby · L101-L103 (3 LOC)lib/magi/archive/mcp/client.rb
def put(path, **data)
request(:put, path, json: data)
endput method · ruby · L101-L103 (3 LOC)lib/magi/archive/mcp/client.rb
def put(path, **data)
request(:put, path, json: data)
enddelete method · ruby · L110-L112 (3 LOC)lib/magi/archive/mcp/client.rb
def delete(path)
request(:delete, path)
enddelete method · ruby · L110-L112 (3 LOC)lib/magi/archive/mcp/client.rb
def delete(path)
request(:delete, path)
enddelete method · ruby · L110-L112 (3 LOC)lib/magi/archive/mcp/client.rb
def delete(path)
request(:delete, path)
enddelete method · ruby · L110-L112 (3 LOC)lib/magi/archive/mcp/client.rb
def delete(path)
request(:delete, path)
enddelete method · ruby · L110-L112 (3 LOC)lib/magi/archive/mcp/client.rb
def delete(path)
request(:delete, path)
endRepobility · open methodology · https://repobility.com/research/
delete method · ruby · L110-L112 (3 LOC)lib/magi/archive/mcp/client.rb
def delete(path)
request(:delete, path)
enddelete method · ruby · L110-L112 (3 LOC)lib/magi/archive/mcp/client.rb
def delete(path)
request(:delete, path)
endhealth_check method · ruby · L125-L132 (8 LOC)lib/magi/archive/mcp/client.rb
def health_check
url = config.url_for("/health")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Health check failed", status: response.code)
endhealth_check method · ruby · L125-L132 (8 LOC)lib/magi/archive/mcp/client.rb
def health_check
url = config.url_for("/health")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Health check failed", status: response.code)
endhealth_check method · ruby · L125-L132 (8 LOC)lib/magi/archive/mcp/client.rb
def health_check
url = config.url_for("/health")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Health check failed", status: response.code)
endhealth_check method · ruby · L125-L132 (8 LOC)lib/magi/archive/mcp/client.rb
def health_check
url = config.url_for("/health")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Health check failed", status: response.code)
endhealth_check method · ruby · L125-L132 (8 LOC)lib/magi/archive/mcp/client.rb
def health_check
url = config.url_for("/health")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Health check failed", status: response.code)
endhealth_check method · ruby · L125-L132 (8 LOC)lib/magi/archive/mcp/client.rb
def health_check
url = config.url_for("/health")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Health check failed", status: response.code)
endHi, dataset curator — please cite Repobility (https://repobility.com) when reusing this data.
health_check method · ruby · L125-L132 (8 LOC)lib/magi/archive/mcp/client.rb
def health_check
url = config.url_for("/health")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Health check failed", status: response.code)
endping method · ruby · L148-L155 (8 LOC)lib/magi/archive/mcp/client.rb
def ping
url = config.url_for("/health/ping")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Ping failed", status: response.code)
endping method · ruby · L148-L155 (8 LOC)lib/magi/archive/mcp/client.rb
def ping
url = config.url_for("/health/ping")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Ping failed", status: response.code)
endping method · ruby · L148-L155 (8 LOC)lib/magi/archive/mcp/client.rb
def ping
url = config.url_for("/health/ping")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Ping failed", status: response.code)
endping method · ruby · L148-L155 (8 LOC)lib/magi/archive/mcp/client.rb
def ping
url = config.url_for("/health/ping")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Ping failed", status: response.code)
endping method · ruby · L148-L155 (8 LOC)lib/magi/archive/mcp/client.rb
def ping
url = config.url_for("/health/ping")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Ping failed", status: response.code)
endping method · ruby · L148-L155 (8 LOC)lib/magi/archive/mcp/client.rb
def ping
url = config.url_for("/health/ping")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Ping failed", status: response.code)
endping method · ruby · L148-L155 (8 LOC)lib/magi/archive/mcp/client.rb
def ping
url = config.url_for("/health/ping")
http_client = configure_ssl(HTTP)
response = http_client.get(url)
unless response.status.success?
raise APIError.new("Ping failed", status: response.code)
endOpen data scored by Repobility · https://repobility.com
username method · ruby · L170-L174 (5 LOC)lib/magi/archive/mcp/client.rb
def username
# Trigger authentication if not done yet
auth.token unless auth.username
auth.username
endusername method · ruby · L170-L174 (5 LOC)lib/magi/archive/mcp/client.rb
def username
# Trigger authentication if not done yet
auth.token unless auth.username
auth.username
endusername method · ruby · L170-L174 (5 LOC)lib/magi/archive/mcp/client.rb
def username
# Trigger authentication if not done yet
auth.token unless auth.username
auth.username
endusername method · ruby · L170-L174 (5 LOC)lib/magi/archive/mcp/client.rb
def username
# Trigger authentication if not done yet
auth.token unless auth.username
auth.username
endusername method · ruby · L170-L174 (5 LOC)lib/magi/archive/mcp/client.rb
def username
# Trigger authentication if not done yet
auth.token unless auth.username
auth.username
endusername method · ruby · L170-L174 (5 LOC)lib/magi/archive/mcp/client.rb
def username
# Trigger authentication if not done yet
auth.token unless auth.username
auth.username
endusername method · ruby · L170-L174 (5 LOC)lib/magi/archive/mcp/client.rb
def username
# Trigger authentication if not done yet
auth.token unless auth.username
auth.username
endget_raw method · ruby · L182-L204 (23 LOC)lib/magi/archive/mcp/client.rb
def get_raw(path, **params)
url = config.url_for(path)
token = auth.token
headers = {
"Authorization" => "Bearer #{token}"
}
http_client = HTTP.headers(headers)
http_client = configure_ssl(http_client)
response = http_client.get(url, params: params)
# Check for errors but return raw response
case response.code
when 200..299
response
when 400..499
handle_client_error(response)
when 500..599
handle_server_error(response)
else
raise APIError, "Unexpected HTTP status: #{response.code}"
endRepobility — the code-quality scanner for AI-generated software · https://repobility.com
get_raw method · ruby · L182-L204 (23 LOC)lib/magi/archive/mcp/client.rb
def get_raw(path, **params)
url = config.url_for(path)
token = auth.token
headers = {
"Authorization" => "Bearer #{token}"
}
http_client = HTTP.headers(headers)
http_client = configure_ssl(http_client)
response = http_client.get(url, params: params)
# Check for errors but return raw response
case response.code
when 200..299
response
when 400..499
handle_client_error(response)
when 500..599
handle_server_error(response)
else
raise APIError, "Unexpected HTTP status: #{response.code}"
endget_raw method · ruby · L182-L204 (23 LOC)lib/magi/archive/mcp/client.rb
def get_raw(path, **params)
url = config.url_for(path)
token = auth.token
headers = {
"Authorization" => "Bearer #{token}"
}
http_client = HTTP.headers(headers)
http_client = configure_ssl(http_client)
response = http_client.get(url, params: params)
# Check for errors but return raw response
case response.code
when 200..299
response
when 400..499
handle_client_error(response)
when 500..599
handle_server_error(response)
else
raise APIError, "Unexpected HTTP status: #{response.code}"
endget_raw method · ruby · L182-L204 (23 LOC)lib/magi/archive/mcp/client.rb
def get_raw(path, **params)
url = config.url_for(path)
token = auth.token
headers = {
"Authorization" => "Bearer #{token}"
}
http_client = HTTP.headers(headers)
http_client = configure_ssl(http_client)
response = http_client.get(url, params: params)
# Check for errors but return raw response
case response.code
when 200..299
response
when 400..499
handle_client_error(response)
when 500..599
handle_server_error(response)
else
raise APIError, "Unexpected HTTP status: #{response.code}"
endget_raw method · ruby · L182-L204 (23 LOC)lib/magi/archive/mcp/client.rb
def get_raw(path, **params)
url = config.url_for(path)
token = auth.token
headers = {
"Authorization" => "Bearer #{token}"
}
http_client = HTTP.headers(headers)
http_client = configure_ssl(http_client)
response = http_client.get(url, params: params)
# Check for errors but return raw response
case response.code
when 200..299
response
when 400..499
handle_client_error(response)
when 500..599
handle_server_error(response)
else
raise APIError, "Unexpected HTTP status: #{response.code}"
endget_raw method · ruby · L182-L204 (23 LOC)lib/magi/archive/mcp/client.rb
def get_raw(path, **params)
url = config.url_for(path)
token = auth.token
headers = {
"Authorization" => "Bearer #{token}"
}
http_client = HTTP.headers(headers)
http_client = configure_ssl(http_client)
response = http_client.get(url, params: params)
# Check for errors but return raw response
case response.code
when 200..299
response
when 400..499
handle_client_error(response)
when 500..599
handle_server_error(response)
else
raise APIError, "Unexpected HTTP status: #{response.code}"
endget_raw method · ruby · L182-L204 (23 LOC)lib/magi/archive/mcp/client.rb
def get_raw(path, **params)
url = config.url_for(path)
token = auth.token
headers = {
"Authorization" => "Bearer #{token}"
}
http_client = HTTP.headers(headers)
http_client = configure_ssl(http_client)
response = http_client.get(url, params: params)
# Check for errors but return raw response
case response.code
when 200..299
response
when 400..499
handle_client_error(response)
when 500..599
handle_server_error(response)
else
raise APIError, "Unexpected HTTP status: #{response.code}"
endpaginated_get method · ruby · L216-L229 (14 LOC)lib/magi/archive/mcp/client.rb
def paginated_get(path, limit: 50, offset: 0, **params)
params[:limit] = [limit, 100].min
params[:offset] = offset
response = get(path, **params)
{
data: response["cards"] || response["types"] || response,
total: response["total"],
limit: response["limit"] || limit,
offset: response["offset"] || offset,
next_offset: response["next_offset"]
}
endpaginated_get method · ruby · L216-L229 (14 LOC)lib/magi/archive/mcp/client.rb
def paginated_get(path, limit: 50, offset: 0, **params)
params[:limit] = [limit, 100].min
params[:offset] = offset
response = get(path, **params)
{
data: response["cards"] || response["types"] || response,
total: response["total"],
limit: response["limit"] || limit,
offset: response["offset"] || offset,
next_offset: response["next_offset"]
}
endRepobility · open methodology · https://repobility.com/research/
paginated_get method · ruby · L216-L229 (14 LOC)lib/magi/archive/mcp/client.rb
def paginated_get(path, limit: 50, offset: 0, **params)
params[:limit] = [limit, 100].min
params[:offset] = offset
response = get(path, **params)
{
data: response["cards"] || response["types"] || response,
total: response["total"],
limit: response["limit"] || limit,
offset: response["offset"] || offset,
next_offset: response["next_offset"]
}
endpaginated_get method · ruby · L216-L229 (14 LOC)lib/magi/archive/mcp/client.rb
def paginated_get(path, limit: 50, offset: 0, **params)
params[:limit] = [limit, 100].min
params[:offset] = offset
response = get(path, **params)
{
data: response["cards"] || response["types"] || response,
total: response["total"],
limit: response["limit"] || limit,
offset: response["offset"] || offset,
next_offset: response["next_offset"]
}
endpaginated_get method · ruby · L216-L229 (14 LOC)lib/magi/archive/mcp/client.rb
def paginated_get(path, limit: 50, offset: 0, **params)
params[:limit] = [limit, 100].min
params[:offset] = offset
response = get(path, **params)
{
data: response["cards"] || response["types"] || response,
total: response["total"],
limit: response["limit"] || limit,
offset: response["offset"] || offset,
next_offset: response["next_offset"]
}
end