/dports/misc/rump/buildrump.sh-b914579/src/external/bsd/flex/dist/src/ |
H A D | filter.c | 244 FILE *to_c = NULL, *to_h = NULL; in filter_tee_header() local 263 to_h = stdout; in filter_tee_header() 270 fputs (check_4_gnu_m4, to_h); in filter_tee_header() 271 fputs ("m4_changecom`'m4_dnl\n", to_h); in filter_tee_header() 276 to_h); in filter_tee_header() 280 fprintf (to_h, in filter_tee_header() 300 fputs (buf, to_h); in filter_tee_header() 304 fprintf (to_h, "\n"); in filter_tee_header() 313 fflush (to_h); in filter_tee_header() 314 if (ferror (to_h)) in filter_tee_header() [all …]
|
/dports/textproc/flex/flex-2.6.4/src/ |
H A D | filter.c | 236 FILE *to_c = NULL, *to_h = NULL; in filter_tee_header() local 255 to_h = stdout; in filter_tee_header() 262 fputs (check_4_gnu_m4, to_h); in filter_tee_header() 263 fputs ("m4_changecom`'m4_dnl\n", to_h); in filter_tee_header() 268 to_h); in filter_tee_header() 272 fprintf (to_h, in filter_tee_header() 292 fputs (buf, to_h); in filter_tee_header() 296 fprintf (to_h, "\n"); in filter_tee_header() 306 fflush (to_h); in filter_tee_header() 307 if (ferror (to_h)) in filter_tee_header() [all …]
|
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/array/ |
H A D | to_h_spec.rb | 6 [].to_h.should == {} 10 hash = [[:a, 1], [:b, 2]].to_h 15 hash = [[:a, 1], [:b, 2], [:a, 3]].to_h 22 hash = [[:a, 1], pair].to_h 27 lambda { [:x].to_h }.should raise_error(TypeError) 31 lambda { [[:x]].to_h }.should raise_error(ArgumentError) 35 lambda { [].to_h(:a, :b) }.should raise_error(ArgumentError) 41 [:a, :b].to_h {|k| [k, i += 1]}.should == { a: 1, b: 2 }
|
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/enumerable/ |
H A D | to_h_spec.rb | 7 enum.to_h.should == {} 12 enum.to_h.should == { a: 1, b: 2 } 17 enum.to_h.should == { a: 3, b: 2 } 24 enum.to_h.should == { a: 1, b: 2 } 34 enum.to_h(:a, 1).should == { a: 1, b: 2 } 39 lambda { enum.to_h }.should raise_error(TypeError) 44 lambda { enum.to_h }.should raise_error(ArgumentError) 51 enum.to_h {|k| [k, i += 1]}.should == { a: 1, b: 2 }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/tooling/rspec_flaky/ |
H A D | flaky_example_spec.rb | 49 attrs = flaky_example.to_h 91 expect(flaky_example.to_h[:first_flaky_at]).to eq(Time.now) 97 expected_first_flaky_at = flaky_example.to_h[:first_flaky_at] 101 expect(flaky_example.to_h[:first_flaky_at]).to eq(expected_first_flaky_at) 110 expect(flaky_example.to_h[:last_flaky_at]).to eq(the_future) 115 …expected_flaky_reports = flaky_example.to_h[:first_flaky_at] ? flaky_example.to_h[:flaky_reports] … 117 … expect { flaky_example.update_flakiness! }.to change { flaky_example.to_h[:flaky_reports] }.by(1) 118 expect(flaky_example.to_h[:flaky_reports]).to eq(expected_flaky_reports) 125 expect(flaky_example.to_h[:last_attempts_count]).to eq(42) 139 expect(flaky_example.to_h[:last_flaky_job]).to eq(job_url) [all …]
|
H A D | report_spec.rb | 55 …expect(described_class.load(report_file.path).flaky_examples.to_h).to eq(suite_flaky_example_repor… 65 …expect(described_class.load_json(report_json).flaky_examples.to_h).to eq(suite_flaky_example_repor… 116 .to eq(JSON.pretty_generate(report.flaky_examples.to_h)) # rubocop:disable Gitlab/Json 123 new_report = flaky_examples.to_h.dup.tap { |r| r.delete(:b) } 127 expect(new_flaky_examples.to_h).to eq(new_report) 134 expect(new_flaky_examples.to_h).to eq(report.to_h)
|
H A D | listener_spec.rb | 67 expect(listener.suite_flaky_examples.to_h).to eq(expected_suite_flaky_examples) 92 expect(described_class.new.suite_flaky_examples.to_h).to eq(report.flaky_examples.to_h) 103 expect(described_class.new.suite_flaky_examples.to_h).to eq({}) 141 .to change { listener.flaky_examples[new_example.uid].to_h } 142 expect(listener.flaky_examples[new_example.uid].to_h) 167 .to change { listener.flaky_examples[new_example.uid].to_h } 168 expect(listener.flaky_examples[new_example.uid].to_h)
|
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/hash/ |
H A D | to_h_spec.rb | 7 h.to_h.should equal(h) 12 {a: 1, b: 2}.to_h {|k, v| [k.to_s, v*v]}.should == { "a" => 1, "b" => 4 } 23 @h.to_h.should be_an_instance_of(Hash) 24 @h.to_h.should == @h 30 @h.to_h.default.should == 42 36 @h.to_h.default_proc.should == prc
|
/dports/sysutils/vector/vector-0.10.0/scripts/util/metadata/ |
H A D | installation.rb | 21 @downloads_list ||= downloads.to_h.values.sort_by(&:name) 25 @interfaces_list ||= interfaces.to_h.values.sort_by(&:title) 29 @operating_systems_list ||= operating_systems.to_h.values.sort_by(&:title) 33 @package_managers_list ||= package_managers.to_h.values.sort_by(&:title) 37 @platforms_list ||= platforms.to_h.values.sort_by(&:title) 50 @strategies_list ||= strategies.to_h.values.sort_by(&:title) 53 def to_h method in Installation
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/gitaly_client/ |
H A D | diff_stitcher_spec.rb | 36 msg_1 = OpenStruct.new(diff_1.to_h.except(:patch)) 40 msg_2 = OpenStruct.new(diff_2.to_h.except(:patch)) 46 msg_4 = OpenStruct.new(diff_3.to_h.except(:patch)) 53 Gitlab::GitalyClient::Diff.new(diff_1.to_h), 54 Gitlab::GitalyClient::Diff.new(diff_2.to_h), 55 Gitlab::GitalyClient::Diff.new(diff_3.to_h)
|
/dports/sysutils/vector/vector-0.10.0/scripts/generate/templates/_partials/ |
H A D | _full_config_spec.toml.erb | 26 <%= config_spec(metadata.options.to_h.values.sort) %> 33 <% metadata.sources.to_h.values.sort.each do |source| %> 35 <%= config_spec(source.options.to_h.values.sort, path: "sources.#{source.name}") %> 42 <% metadata.transforms.to_h.values.sort.each do |transform| %> 44 <%= config_spec(transform.options.to_h.values.sort, path: "transforms.#{transform.name}") %> 51 <% metadata.sinks.to_h.values.sort.each do |sink| %> 53 <%= config_spec(sink.options.to_h.values.sort, path: "sinks.#{sink.name}") %>
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/diff/ |
H A D | position.rb | 45 coder['attributes'] = formatter.to_h 60 def to_h method in Gitlab.Diff.Position 61 formatter.to_h 65 %(#<#{self.class}:#{object_id} #{to_h}>) 73 Gitlab::Json.generate(formatter.to_h, opts) 77 to_h.as_json(opts)
|
/dports/lang/ruby26/ruby-2.6.9/test/ostruct/ |
H A D | test_ostruct.rb | 8 assert_equal h, OpenStruct.new(h).to_h 9 assert_equal h, OpenStruct.new(OpenStruct.new(h)).to_h 10 assert_equal h, OpenStruct.new(Struct.new(*h.keys).new(*h.values)).to_h 134 to_h = os.to_h 135 assert_equal(h, to_h) 137 to_h[:age] = 71 141 assert_equal(h, OpenStruct.new("name" => "John Smith", "age" => 70, pension: 300).to_h) 147 os.to_h {|name, value| [name.to_s, value.upcase]})
|
/dports/lang/perl5.34/perl-5.34.0/lib/File/ |
H A D | Copy.pm | 164 my $to_h; 166 $to_h = $to; 168 $to_h = \do { local *FH }; # XXX is this line obsolete? 169 open $to_h, ">", $to or goto fail_open2; 170 binmode $to_h or die "($!,$^E)"; 181 $t = syswrite($to_h, $buf, $r - $w, $w) 186 close($to_h) || goto fail_open2 if $closeto; 197 close $to_h;
|
/dports/lang/perl5.30/perl-5.30.3/lib/File/ |
H A D | Copy.pm | 164 my $to_h; 166 $to_h = $to; 168 $to_h = \do { local *FH }; # XXX is this line obsolete? 169 open $to_h, ">", $to or goto fail_open2; 170 binmode $to_h or die "($!,$^E)"; 181 $t = syswrite($to_h, $buf, $r - $w, $w) 186 close($to_h) || goto fail_open2 if $closeto; 197 close $to_h;
|
/dports/lang/perl5.32/perl-5.32.1/lib/File/ |
H A D | Copy.pm | 164 my $to_h; 166 $to_h = $to; 168 $to_h = \do { local *FH }; # XXX is this line obsolete? 169 open $to_h, ">", $to or goto fail_open2; 170 binmode $to_h or die "($!,$^E)"; 181 $t = syswrite($to_h, $buf, $r - $w, $w) 186 close($to_h) || goto fail_open2 if $closeto; 197 close $to_h;
|
/dports/sysutils/usermin/usermin-1.830/authentic-theme/lib/File/ |
H A D | Copy.pm | 164 my $to_h; 166 $to_h = $to; 168 $to_h = \do { local *FH }; # XXX is this line obsolete? 169 open $to_h, ">", $to or goto fail_open2; 170 binmode $to_h or die "($!,$^E)"; 181 $t = syswrite($to_h, $buf, $r - $w, $w) 186 close($to_h) || goto fail_open2 if $closeto; 197 close $to_h;
|
/dports/sysutils/webmin/webmin-1.981/authentic-theme/lib/File/ |
H A D | Copy.pm | 164 my $to_h; 166 $to_h = $to; 168 $to_h = \do { local *FH }; # XXX is this line obsolete? 169 open $to_h, ">", $to or goto fail_open2; 170 binmode $to_h or die "($!,$^E)"; 181 $t = syswrite($to_h, $buf, $r - $w, $w) 186 close($to_h) || goto fail_open2 if $closeto; 197 close $to_h;
|
/dports/lang/perl5-devel/perl5-5.35.4-102-ge43d289c7c/lib/File/ |
H A D | Copy.pm | 163 my $to_h; 165 $to_h = $to; 167 $to_h = \do { local *FH }; # XXX is this line obsolete? 168 open $to_h, ">", $to or goto fail_open2; 169 binmode $to_h or die "($!,$^E)"; 180 $t = syswrite($to_h, $buf, $r - $w, $w) 185 close($to_h) || goto fail_open2 if $closeto; 196 close $to_h;
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/support/graphql/ |
H A D | arguments.rb | 11 def to_h method in Graphql.Arguments 16 to_h == other&.to_h 55 self.class.new(@values.merge(other.to_h))
|
/dports/games/mangband/mangband-1.5.3/src/server/ |
H A D | randart.c | 102 if ((a_ptr->to_h > 0) && (rand_int (2) == 0)) a_ptr->to_h = -a_ptr->to_h; in do_curse() 108 if ((a_ptr->to_h < 0) && (rand_int (2) == 0)) a_ptr->to_h -= 3 + randint0(6); in do_curse() 164 p += (a_ptr->to_h + 3 * sign (a_ptr->to_h)) / 4; in artifact_power() 200 p += (a_ptr->to_h + 3 * sign (a_ptr->to_h)) / 4; in artifact_power() 218 p += (a_ptr->to_h + sign (a_ptr->to_h)) / 2; in artifact_power() 1137 a_ptr->to_h = o_ptr->to_h; in randart_make() 1143 a_ptr->to_h = k_ptr->to_h; in randart_make() 1191 a_ptr->to_h = 0; in randart_make() 1199 a_ptr->to_h += randint1(6); in randart_make() 1331 if (a_ptr->to_h > 6) a_ptr->to_h = 6; in randart_make() [all …]
|
/dports/sysutils/vector/vector-0.10.0/scripts/util/core_ext/ |
H A D | object.rb | 4 to_h.sort.to_h.deep_to_h 14 to_h.sort.to_h
|
/dports/devel/flyspray/flyspray-0.9.9.7_4/plugins/dokuwiki/lib/exe/ |
H A D | fetch.php | 284 function resize_imageIM($ext,$from,$from_w,$from_h,$to,$to_w,$to_h){ argument 292 $cmd .= ' -resize '.$to_w.'x'.$to_h.'!'; 308 function resize_imageGD($ext,$from,$from_w,$from_h,$to,$to_w,$to_h){ argument 314 if(!is_mem_available(($from_w * $from_h * 4) + ($to_w * $to_h * 4))){ 333 $newimg = @imagecreatetruecolor ($to_w, $to_h); 335 if(!$newimg) $newimg = @imagecreate($to_w, $to_h); 349 if(!@imagecopyresampled($newimg, $image, 0, 0, 0, 0, $to_w, $to_h, $from_w, $from_h)) { 350 imagecopyresized($newimg, $image, 0, 0, 0, 0, $to_w, $to_h, $from_w, $from_h); 353 imagecopyresized($newimg, $image, 0, 0, 0, 0, $to_w, $to_h, $from_w, $from_h);
|
/dports/games/tomenet/tomenet-4.6.0/src/server/ |
H A D | randart.c | 133 if ((a_ptr->to_h > 0) && (rand_int (2) == 0)) a_ptr->to_h = -a_ptr->to_h; in do_curse() 268 p += (a_ptr->to_h + sign(a_ptr->to_h)) / 2; in artifact_power() 1274 if (a_ptr->to_h > 6) a_ptr->to_h = 6; in artifact_fix_limits_inbetween() 1304 if (a_ptr->to_h > 30) a_ptr->to_h = 30; in artifact_fix_limits_inbetween() 1511 if (a_ptr->to_h > 6) a_ptr->to_h = 6; in artifact_fix_limits_afterwards() 1541 if (a_ptr->to_h > 30) a_ptr->to_h = 30; in artifact_fix_limits_afterwards() 1554 if (a_ptr->to_h > 10) a_ptr->to_h = 10; in artifact_fix_limits_afterwards() 1557 if (a_ptr->to_h > 15) a_ptr->to_h = 15; in artifact_fix_limits_afterwards() 1927 a_ptr->to_h = o_ptr->to_h; in randart_make() 1944 a_ptr->to_h = k_ptr->to_h; in randart_make() [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/kubernetes/kubeconfig/ |
H A D | template_spec.rb | 23 subject { described_class.new.to_h } 39 it { is_expected.to eq(YAML.dump(template.to_h.deep_stringify_keys)) } 43 let(:entry) { instance_double(entry_class, to_h: attributes) } 48 subject { template.to_h }
|