abliteration 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/docs/GetModelReadmeAt200Response.md +32 -0
- data/docs/ListModelReadmeDrifts200Response.md +32 -0
- data/docs/ModelsApi.md +150 -0
- data/docs/ReadmeAt.md +22 -0
- data/docs/ReadmeDrift.md +26 -0
- data/lib/abliteration/api/models_api.rb +153 -0
- data/lib/abliteration/models/get_model_readme_at200_response.rb +384 -0
- data/lib/abliteration/models/list_model_readme_drifts200_response.rb +386 -0
- data/lib/abliteration/models/readme_at.rb +169 -0
- data/lib/abliteration/models/readme_drift.rb +188 -0
- data/lib/abliteration/version.rb +1 -1
- data/lib/abliteration.rb +4 -0
- data/spec/models/get_model_readme_at200_response_spec.rb +82 -0
- data/spec/models/list_model_readme_drifts200_response_spec.rb +82 -0
- data/spec/models/readme_at_spec.rb +48 -0
- data/spec/models/readme_drift_spec.rb +60 -0
- metadata +17 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#abliteration.org Public API
|
|
3
|
+
|
|
4
|
+
#Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Abliteration
|
|
17
|
+
# One commit that changed the model's README on HF.
|
|
18
|
+
class ReadmeDrift < ApiModelBase
|
|
19
|
+
attr_accessor :commit_sha
|
|
20
|
+
|
|
21
|
+
# Unix epoch seconds.
|
|
22
|
+
attr_accessor :commit_ts
|
|
23
|
+
|
|
24
|
+
attr_accessor :commit_message
|
|
25
|
+
|
|
26
|
+
# README byte size at this commit.
|
|
27
|
+
attr_accessor :content_size
|
|
28
|
+
|
|
29
|
+
# Bytes added (positive) or removed (negative) since the previous commit. First commit gets 0.
|
|
30
|
+
attr_accessor :size_delta
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'commit_sha' => :'commit_sha',
|
|
36
|
+
:'commit_ts' => :'commit_ts',
|
|
37
|
+
:'commit_message' => :'commit_message',
|
|
38
|
+
:'content_size' => :'content_size',
|
|
39
|
+
:'size_delta' => :'size_delta'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Returns attribute mapping this model knows about
|
|
44
|
+
def self.acceptable_attribute_map
|
|
45
|
+
attribute_map
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns all the JSON keys this model knows about
|
|
49
|
+
def self.acceptable_attributes
|
|
50
|
+
acceptable_attribute_map.values
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute type mapping.
|
|
54
|
+
def self.openapi_types
|
|
55
|
+
{
|
|
56
|
+
:'commit_sha' => :'String',
|
|
57
|
+
:'commit_ts' => :'Integer',
|
|
58
|
+
:'commit_message' => :'String',
|
|
59
|
+
:'content_size' => :'Integer',
|
|
60
|
+
:'size_delta' => :'Integer'
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# List of attributes with nullable: true
|
|
65
|
+
def self.openapi_nullable
|
|
66
|
+
Set.new([
|
|
67
|
+
:'commit_message',
|
|
68
|
+
])
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Initializes the object
|
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
73
|
+
def initialize(attributes = {})
|
|
74
|
+
if (!attributes.is_a?(Hash))
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Abliteration::ReadmeDrift` initialize method"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Abliteration::ReadmeDrift`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
83
|
+
end
|
|
84
|
+
h[k.to_sym] = v
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'commit_sha')
|
|
88
|
+
self.commit_sha = attributes[:'commit_sha']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'commit_ts')
|
|
92
|
+
self.commit_ts = attributes[:'commit_ts']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'commit_message')
|
|
96
|
+
self.commit_message = attributes[:'commit_message']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'content_size')
|
|
100
|
+
self.content_size = attributes[:'content_size']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'size_delta')
|
|
104
|
+
self.size_delta = attributes[:'size_delta']
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
109
|
+
# @return Array for valid properties with the reasons
|
|
110
|
+
def list_invalid_properties
|
|
111
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
112
|
+
invalid_properties = Array.new
|
|
113
|
+
invalid_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Check to see if the all the properties in the model are valid
|
|
117
|
+
# @return true if the model is valid
|
|
118
|
+
def valid?
|
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
|
+
true
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Checks equality by comparing each attribute.
|
|
124
|
+
# @param [Object] Object to be compared
|
|
125
|
+
def ==(o)
|
|
126
|
+
return true if self.equal?(o)
|
|
127
|
+
self.class == o.class &&
|
|
128
|
+
commit_sha == o.commit_sha &&
|
|
129
|
+
commit_ts == o.commit_ts &&
|
|
130
|
+
commit_message == o.commit_message &&
|
|
131
|
+
content_size == o.content_size &&
|
|
132
|
+
size_delta == o.size_delta
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# @see the `==` method
|
|
136
|
+
# @param [Object] Object to be compared
|
|
137
|
+
def eql?(o)
|
|
138
|
+
self == o
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Calculates hash code according to all attributes.
|
|
142
|
+
# @return [Integer] Hash code
|
|
143
|
+
def hash
|
|
144
|
+
[commit_sha, commit_ts, commit_message, content_size, size_delta].hash
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Builds the object from hash
|
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
149
|
+
# @return [Object] Returns the model itself
|
|
150
|
+
def self.build_from_hash(attributes)
|
|
151
|
+
return nil unless attributes.is_a?(Hash)
|
|
152
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
153
|
+
transformed_hash = {}
|
|
154
|
+
openapi_types.each_pair do |key, type|
|
|
155
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
156
|
+
transformed_hash["#{key}"] = nil
|
|
157
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
158
|
+
# check to ensure the input is an array given that the attribute
|
|
159
|
+
# is documented as an array but the input is not
|
|
160
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
161
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
162
|
+
end
|
|
163
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
164
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
new(transformed_hash)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Returns the object in the form of hash
|
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
|
172
|
+
def to_hash
|
|
173
|
+
hash = {}
|
|
174
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
175
|
+
value = self.send(attr)
|
|
176
|
+
if value.nil?
|
|
177
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
178
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
hash[param] = _to_hash(value)
|
|
182
|
+
end
|
|
183
|
+
hash
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
end
|
data/lib/abliteration/version.rb
CHANGED
data/lib/abliteration.rb
CHANGED
|
@@ -36,6 +36,7 @@ require 'abliteration/models/get_historical_deletion_summary200_response'
|
|
|
36
36
|
require 'abliteration/models/get_index200_response'
|
|
37
37
|
require 'abliteration/models/get_method200_response'
|
|
38
38
|
require 'abliteration/models/get_model200_response'
|
|
39
|
+
require 'abliteration/models/get_model_readme_at200_response'
|
|
39
40
|
require 'abliteration/models/historical_deletion'
|
|
40
41
|
require 'abliteration/models/index'
|
|
41
42
|
require 'abliteration/models/index_detail'
|
|
@@ -45,6 +46,7 @@ require 'abliteration/models/list_delisted_models200_response'
|
|
|
45
46
|
require 'abliteration/models/list_historical_deletions200_response'
|
|
46
47
|
require 'abliteration/models/list_indices200_response'
|
|
47
48
|
require 'abliteration/models/list_methods200_response'
|
|
49
|
+
require 'abliteration/models/list_model_readme_drifts200_response'
|
|
48
50
|
require 'abliteration/models/list_models200_response'
|
|
49
51
|
require 'abliteration/models/list_timeline200_response'
|
|
50
52
|
require 'abliteration/models/method'
|
|
@@ -53,6 +55,8 @@ require 'abliteration/models/method_detail_all_of_top_authors'
|
|
|
53
55
|
require 'abliteration/models/model_detail'
|
|
54
56
|
require 'abliteration/models/model_summary'
|
|
55
57
|
require 'abliteration/models/passport'
|
|
58
|
+
require 'abliteration/models/readme_at'
|
|
59
|
+
require 'abliteration/models/readme_drift'
|
|
56
60
|
|
|
57
61
|
# APIs
|
|
58
62
|
require 'abliteration/api/authors_api'
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#abliteration.org Public API
|
|
3
|
+
|
|
4
|
+
#Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Abliteration::GetModelReadmeAt200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Abliteration::GetModelReadmeAt200Response do
|
|
21
|
+
#let(:instance) { Abliteration::GetModelReadmeAt200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of GetModelReadmeAt200Response' do
|
|
24
|
+
it 'should create an instance of GetModelReadmeAt200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Abliteration::GetModelReadmeAt200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "data"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "cost"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "credits_remaining"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "rate_limit_limit"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "rate_limit_remaining"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "rate_limit_reset"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "metering"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["preview", "billed"])
|
|
70
|
+
# validator.allowable_values.each do |value|
|
|
71
|
+
# expect { instance.metering = value }.not_to raise_error
|
|
72
|
+
# end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "request_id"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#abliteration.org Public API
|
|
3
|
+
|
|
4
|
+
#Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Abliteration::ListModelReadmeDrifts200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Abliteration::ListModelReadmeDrifts200Response do
|
|
21
|
+
#let(:instance) { Abliteration::ListModelReadmeDrifts200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListModelReadmeDrifts200Response' do
|
|
24
|
+
it 'should create an instance of ListModelReadmeDrifts200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Abliteration::ListModelReadmeDrifts200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "data"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "cost"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "credits_remaining"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "rate_limit_limit"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "rate_limit_remaining"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "rate_limit_reset"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "metering"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["preview", "billed"])
|
|
70
|
+
# validator.allowable_values.each do |value|
|
|
71
|
+
# expect { instance.metering = value }.not_to raise_error
|
|
72
|
+
# end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "request_id"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#abliteration.org Public API
|
|
3
|
+
|
|
4
|
+
#Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Abliteration::ReadmeAt
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Abliteration::ReadmeAt do
|
|
21
|
+
#let(:instance) { Abliteration::ReadmeAt.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ReadmeAt' do
|
|
24
|
+
it 'should create an instance of ReadmeAt' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Abliteration::ReadmeAt)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "commit"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "content"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#abliteration.org Public API
|
|
3
|
+
|
|
4
|
+
#Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Abliteration::ReadmeDrift
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Abliteration::ReadmeDrift do
|
|
21
|
+
#let(:instance) { Abliteration::ReadmeDrift.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ReadmeDrift' do
|
|
24
|
+
it 'should create an instance of ReadmeDrift' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Abliteration::ReadmeDrift)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "commit_sha"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "commit_ts"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "commit_message"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "content_size"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "size_delta"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: abliteration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Catyonic OU
|
|
@@ -82,6 +82,7 @@ files:
|
|
|
82
82
|
- docs/GetIndex200Response.md
|
|
83
83
|
- docs/GetMethod200Response.md
|
|
84
84
|
- docs/GetModel200Response.md
|
|
85
|
+
- docs/GetModelReadmeAt200Response.md
|
|
85
86
|
- docs/HistoricalDeletion.md
|
|
86
87
|
- docs/Index.md
|
|
87
88
|
- docs/IndexDetail.md
|
|
@@ -92,6 +93,7 @@ files:
|
|
|
92
93
|
- docs/ListHistoricalDeletions200Response.md
|
|
93
94
|
- docs/ListIndices200Response.md
|
|
94
95
|
- docs/ListMethods200Response.md
|
|
96
|
+
- docs/ListModelReadmeDrifts200Response.md
|
|
95
97
|
- docs/ListModels200Response.md
|
|
96
98
|
- docs/ListTimeline200Response.md
|
|
97
99
|
- docs/Method.md
|
|
@@ -102,6 +104,8 @@ files:
|
|
|
102
104
|
- docs/ModelSummary.md
|
|
103
105
|
- docs/ModelsApi.md
|
|
104
106
|
- docs/Passport.md
|
|
107
|
+
- docs/ReadmeAt.md
|
|
108
|
+
- docs/ReadmeDrift.md
|
|
105
109
|
- docs/TimelineApi.md
|
|
106
110
|
- git_push.sh
|
|
107
111
|
- lib/abliteration.rb
|
|
@@ -133,6 +137,7 @@ files:
|
|
|
133
137
|
- lib/abliteration/models/get_index200_response.rb
|
|
134
138
|
- lib/abliteration/models/get_method200_response.rb
|
|
135
139
|
- lib/abliteration/models/get_model200_response.rb
|
|
140
|
+
- lib/abliteration/models/get_model_readme_at200_response.rb
|
|
136
141
|
- lib/abliteration/models/historical_deletion.rb
|
|
137
142
|
- lib/abliteration/models/index.rb
|
|
138
143
|
- lib/abliteration/models/index_detail.rb
|
|
@@ -142,6 +147,7 @@ files:
|
|
|
142
147
|
- lib/abliteration/models/list_historical_deletions200_response.rb
|
|
143
148
|
- lib/abliteration/models/list_indices200_response.rb
|
|
144
149
|
- lib/abliteration/models/list_methods200_response.rb
|
|
150
|
+
- lib/abliteration/models/list_model_readme_drifts200_response.rb
|
|
145
151
|
- lib/abliteration/models/list_models200_response.rb
|
|
146
152
|
- lib/abliteration/models/list_timeline200_response.rb
|
|
147
153
|
- lib/abliteration/models/method.rb
|
|
@@ -150,6 +156,8 @@ files:
|
|
|
150
156
|
- lib/abliteration/models/model_detail.rb
|
|
151
157
|
- lib/abliteration/models/model_summary.rb
|
|
152
158
|
- lib/abliteration/models/passport.rb
|
|
159
|
+
- lib/abliteration/models/readme_at.rb
|
|
160
|
+
- lib/abliteration/models/readme_drift.rb
|
|
153
161
|
- lib/abliteration/version.rb
|
|
154
162
|
- openapi-generator-config.json
|
|
155
163
|
- openapitools.json
|
|
@@ -177,6 +185,7 @@ files:
|
|
|
177
185
|
- spec/models/get_index200_response_spec.rb
|
|
178
186
|
- spec/models/get_method200_response_spec.rb
|
|
179
187
|
- spec/models/get_model200_response_spec.rb
|
|
188
|
+
- spec/models/get_model_readme_at200_response_spec.rb
|
|
180
189
|
- spec/models/historical_deletion_spec.rb
|
|
181
190
|
- spec/models/index_detail_spec.rb
|
|
182
191
|
- spec/models/index_spec.rb
|
|
@@ -186,6 +195,7 @@ files:
|
|
|
186
195
|
- spec/models/list_historical_deletions200_response_spec.rb
|
|
187
196
|
- spec/models/list_indices200_response_spec.rb
|
|
188
197
|
- spec/models/list_methods200_response_spec.rb
|
|
198
|
+
- spec/models/list_model_readme_drifts200_response_spec.rb
|
|
189
199
|
- spec/models/list_models200_response_spec.rb
|
|
190
200
|
- spec/models/list_timeline200_response_spec.rb
|
|
191
201
|
- spec/models/method_detail_all_of_top_authors_spec.rb
|
|
@@ -194,6 +204,8 @@ files:
|
|
|
194
204
|
- spec/models/model_detail_spec.rb
|
|
195
205
|
- spec/models/model_summary_spec.rb
|
|
196
206
|
- spec/models/passport_spec.rb
|
|
207
|
+
- spec/models/readme_at_spec.rb
|
|
208
|
+
- spec/models/readme_drift_spec.rb
|
|
197
209
|
- spec/spec_helper.rb
|
|
198
210
|
homepage: https://abliteration.org/api
|
|
199
211
|
licenses:
|
|
@@ -240,6 +252,7 @@ test_files:
|
|
|
240
252
|
- spec/models/method_spec.rb
|
|
241
253
|
- spec/models/delisted_model_spec.rb
|
|
242
254
|
- spec/models/deletion_summary_timeline_inner_spec.rb
|
|
255
|
+
- spec/models/list_model_readme_drifts200_response_spec.rb
|
|
243
256
|
- spec/models/method_detail_spec.rb
|
|
244
257
|
- spec/models/author_spec.rb
|
|
245
258
|
- spec/models/list_models200_response_spec.rb
|
|
@@ -256,8 +269,11 @@ test_files:
|
|
|
256
269
|
- spec/models/event_spec.rb
|
|
257
270
|
- spec/models/list_authors200_response_spec.rb
|
|
258
271
|
- spec/models/deletion_summary_top_by_downloads_inner_spec.rb
|
|
272
|
+
- spec/models/readme_at_spec.rb
|
|
259
273
|
- spec/models/model_detail_spec.rb
|
|
260
274
|
- spec/models/method_detail_all_of_top_authors_spec.rb
|
|
261
275
|
- spec/models/get_method200_response_spec.rb
|
|
276
|
+
- spec/models/get_model_readme_at200_response_spec.rb
|
|
277
|
+
- spec/models/readme_drift_spec.rb
|
|
262
278
|
- spec/models/list_delisted_models200_response_spec.rb
|
|
263
279
|
- spec/spec_helper.rb
|