text
stringlengths
20
812k
id
stringlengths
40
40
metadata
dict
package hu.transfet.unideb.application.model.answer; import hu.transfet.unideb.application.model.questions.Question; import javax.persistence.*; /** * Választ megvalósitó osztály,mely egy {@link Question}-re ad valaszt. * * @author Transfet. */ @Entity public class Answer { /** * A válasz String tipusként. */ private String answer; /** * A vélasz ID-je a táblában. */ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; /** * A válaszhoz tartozó kérdés. * * @see Question */ @ManyToOne @JoinColumn(name = "Q_ID") private Question question; /** * Alapértelmezett konstruktor, mely létrehoz egy üres {@code Answer} objektumot. */ public Answer(){ } /** * paraméterezett konstruktor, mely létrehoz egy {@code Answer} objektumot. * @param answer Egy valasz. * @param question Egy kerdes. */ public Answer(String answer,Question question){ this.answer = answer; this.question = question; } /** * Visszaadja a választ String tipusként. * @return Egy String, ami a választ tartalmazza. */ public String getAnswer() { return answer; } /** * Bealltija a választ. * @param answer Egy String, ami a választ reprezentálja. * */ public void setAnswer(String answer) { this.answer = answer; } /** * Beálltija a válasz ID-jet. * @param id Egy int típusú ID, ami az adatbázis táblában ID-ját reprezentálja. */ public void setId(int id) { this.id = id; } /** * Visszaadja egy válasz ID-jét. * @return Egy int, ami az ID-t tartalmazza. */ public int getId() { return id; } /** * Beálltija a kérdést. * @param question Egy String, ami a kérdést reprezentálja. */ public void setQuestion(Question question) { this.question = question; } /** * Visszaadja a kérdest a válaszra. * @return Egy String, ami a kérdést tartalmazza. */ public Question getQuestion() { return question; } @Override public String toString() { return "Answer{" + "answer='" + answer + '\'' + ", id=" + id + ", question=" + question + '}'; } }
0005225d5539dcb02baaf7ec17cd3ce8eaa88f20
{ "blob_id": "0005225d5539dcb02baaf7ec17cd3ce8eaa88f20", "branch_name": "refs/heads/master", "committer_date": "2017-05-28T22:43:08", "content_id": "cca59121800c8a2f52f68b78d79b71a421d69934", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6bbc3df9b9990597b2aac5abd2946a9482743296", "extension": "java", "filename": "Answer.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 90389644, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 2436, "license": "Apache-2.0", "license_type": "permissive", "path": "/src/main/java/hu/transfet/unideb/application/model/answer/Answer.java", "provenance": "stack-edu-0024.json.gz:351603", "repo_name": "Transfet/ProgtechQuiz", "revision_date": "2017-05-28T22:43:08", "revision_id": "cf5c8598f5689e87da412eed5b45d8550169beec", "snapshot_id": "5624cc9aa68911cfc1763665bab6c2bb39a3f6b9", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/Transfet/ProgtechQuiz/cf5c8598f5689e87da412eed5b45d8550169beec/src/main/java/hu/transfet/unideb/application/model/answer/Answer.java", "visit_date": "2021-01-20T12:41:05.520387", "added": "2024-11-18T21:01:35.043693+00:00", "created": "2017-05-28T22:43:08", "int_score": 3, "score": 2.875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0042.json.gz" }
var owl = $('.owl-carousel'); owl.owlCarousel({ items:1, loop:true, margin:0, nav:true, dots:true, autoplay:true, autoplayTimeout:4000, smartSpeed: 700, autoplayHoverPause:true }); $('.play').on('click',function(){ owl.trigger('autoplay.play.owl',[4000]) }) $('.stop').on('click',function(){ owl.trigger('autoplay.stop.owl') }) $(document).ready(function() { $('#burger').bind('click', function () { $('#burger, #burger-content').toggleClass('show'); }); }); $('.continue').click(function(){ $('#burger-content').toggleClass('show'); }); $(document).ready(function() { $('.main-search-icon').bind('click', function () { $('.search-line-input, .close-header-icon').toggleClass('show'); }); }); ( function( $ ) { $( document ).ready(function() { $('#menu-left-acide li.has-sub>a').on('click', function(){ $(this).removeAttr('href'); var element = $(this).parent('li'); if (element.hasClass('open')) { element.removeClass('open'); element.find('li').removeClass('open'); element.find('ul').slideUp(); } else { element.addClass('open'); element.children('ul').slideDown(); element.siblings('li').children('ul').slideUp(); element.siblings('li').removeClass('open'); element.siblings('li').find('li').removeClass('open'); element.siblings('li').find('ul').slideUp(); } }); }); } )( jQuery ); new WOW().init();
31b46cf1852cda4d48653223168e38606222db8c
{ "blob_id": "31b46cf1852cda4d48653223168e38606222db8c", "branch_name": "refs/heads/master", "committer_date": "2019-10-29T11:51:49", "content_id": "93e40812909206bbf80096b6f51eb1caaa47b427", "detected_licenses": [ "MIT" ], "directory_id": "067cbece82da16928cea3b729d6711245ddf8b20", "extension": "js", "filename": "main.js", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 216523069, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 1632, "license": "MIT", "license_type": "permissive", "path": "/js/main.js", "provenance": "stack-edu-0043.json.gz:227963", "repo_name": "Morfiy111/paloma.github.io", "revision_date": "2019-10-29T11:51:49", "revision_id": "baab7a87217f20bae84a13ac852a731596d2a34b", "snapshot_id": "257fbcf6af49fe4762f98688e7a24a588a14c04e", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/Morfiy111/paloma.github.io/baab7a87217f20bae84a13ac852a731596d2a34b/js/main.js", "visit_date": "2020-08-23T02:22:15.231897", "added": "2024-11-19T00:40:07.843674+00:00", "created": "2019-10-29T11:51:49", "int_score": 2, "score": 2.21875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0061.json.gz" }
import CheckPermission from "@/model/page/CheckPermission"; describe('Check Page Permission', () => { it('should be able to check page permission', async () => { // then let requestFn = jest.fn().mockImplementation(async (req: any) => { const hasPermission = req.data.includes('user-001'); return { body: JSON.stringify({ hasPermission }) } }); expect(await CheckPermission('page-001', 'user-001', requestFn)).toBeTruthy(); expect(await CheckPermission('page-001', 'user-002', requestFn)).toBeFalsy(); }) })
1f52a5d4127537ad76b70df9b60dd92583eb6b3d
{ "blob_id": "1f52a5d4127537ad76b70df9b60dd92583eb6b3d", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T08:37:28", "content_id": "efb2e0b4f18b3a9cf880c140c7fd46ad2e576680", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fb235788228a7f00496fa020af093b11984e2c0e", "extension": "ts", "filename": "CheckPermission.spec.ts", "fork_events_count": 1, "gha_created_at": "2018-08-06T08:12:04", "gha_event_created_at": "2023-09-14T12:28:07", "gha_language": "JavaScript", "gha_license_id": "NOASSERTION", "github_id": 143696899, "is_generated": false, "is_vendor": false, "language": "TypeScript", "length_bytes": 575, "license": "Apache-2.0", "license_type": "permissive", "path": "/src/model/page/CheckPermission.spec.ts", "provenance": "stack-edu-0073.json.gz:789437", "repo_name": "ZenUml/confluence-plugin-cloud", "revision_date": "2023-08-31T08:37:28", "revision_id": "735a71c08d451d744ab776abff85f23427fee621", "snapshot_id": "5e653e0e29c2111c599da3b641f0c8cc22ac55ce", "src_encoding": "UTF-8", "star_events_count": 2, "url": "https://raw.githubusercontent.com/ZenUml/confluence-plugin-cloud/735a71c08d451d744ab776abff85f23427fee621/src/model/page/CheckPermission.spec.ts", "visit_date": "2023-09-03T11:15:39.301094", "added": "2024-11-19T01:58:36.610670+00:00", "created": "2023-08-31T08:37:28", "int_score": 2, "score": 2.09375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0091.json.gz" }
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Repository\UserRepository; use Validator; use Exception; use Session; use Mail; use DB; use Hash; use Cookie; use Segment; use DateTime; class ArtistController extends Controller { private $users_files; /** * Construction function * @param $request(Array), $userRepository * @return * * Created By: Ram Krishna Murthy * Created At: */ public function __construct(Request $request, UserRepository $userRepository) { $this->request = $request; $this->userRepository = $userRepository; $this->users_files = '/images/users_files/'; } /** * Function to artists listing page * @param $request(Array) * @return * * Created By: Ram Krishna Murthy * Created At: */ public function index() { $artists = $this->userRepository->getData(['role'=>'artist'],'get',[],0); return view('backend/artists', compact('artists')); } /** * Function to add artists page * @param $request(Array) * @return * * Created By: Ram Krishna Murthy * Created At: */ public function add_artist() { return view('backend/add_artist'); } /** * Function to edit artists page * @param $request(Array) * @return * * Created By: Ram Krishna Murthy * Created At: */ public function edit_artist($id) { $artist = $this->userRepository->getData(['id'=>$id],'first',[],0); return view('backend/edit_artist', compact('artist')); } /** * Function to delete artists * @param $request(Array) * @return * * Created By: Ram Krishna Murthy * Created At: */ public function delete_artist($id) { $artist = $this->userRepository->getData(['id'=>$id],'delete',[],0); \Session::flash('success_message', 'Artist Deleted Succssfully!.'); return redirect('/admin/artist'); } /** * Function to change artists status * @param $request(Array) * @return * * Created By: Ram Krishna Murthy * Created At: */ public function change_artist_status($id, $status) { if($status == 'yes'){ $data['is_active'] = 'no'; }else{ $data['is_active'] = 'yes'; } $artist = $this->userRepository->createUpdateData(['id'=> $id],$data); \Session::flash('success_message', 'Artist Status Changed Succssfully!.'); return redirect('/admin/artist'); } /** * Function to change artists status * @param $request(Array) * @return * * Created By: Ram Krishna Murthy * Created At: */ public function change_featured_status($id, $status) { if($status == 'yes'){ $data['is_featured'] = 'no'; }else{ $data['is_featured'] = 'yes'; } $artist = $this->userRepository->createUpdateData(['id'=> $id],$data); \Session::flash('success_message', 'Artist Status Changed Succssfully!.'); return redirect('/admin/artist'); } /** * Function to create/update artist * @param $request(Array) * @return * * Created By: Ram Krishna Murthy * Created At: 18Sept2019 */ public function update_artist() { $validate = $this->validate($this->request, [ 'email' => trim('required|string|email|max:255|unique:users,email,'.$this->request->id), 'first_name' => 'required|string', 'last_name' => 'required|string', ]); $artist_array = []; $artist_array['first_name'] = $this->request->first_name; $artist_array['last_name'] = $this->request->last_name; $artist_array['email'] = $this->request->email; $artist_array['alias'] = $this->request->alias; $artist_array['biography'] = $this->request->biography; $artist_array['address'] = $this->request->address; $artist_array['postal_code'] = $this->request->postal_code; $artist_array['city'] = $this->request->city; $artist_array['state'] = $this->request->state; if(!empty($this->request->password)){ $artist_array['password'] = $this->request->password; } $artist_array['country'] = $this->request->country; $artist_array['role'] ='artist'; if($this->request->hasFile('media_url')){ $media_url = $this->request->file('media_url'); $parts = pathinfo($media_url->getClientOriginalName()); $extension = strtolower($parts['extension']); $imageName = uniqid() . mt_rand(999, 9999) . '.' . $extension; $imageName = uniqid() . mt_rand(999, 9999) . '.' . $extension; $media_url->move(public_path() . $this->users_files, $imageName); $image_name = url($this->users_files . $imageName); $artist_array['media_url'] = $image_name; } $artist = $this->userRepository->createUpdateData(['id'=> $this->request->id],$artist_array); if($artist){ \Session::flash('success_message', 'Artist Details Updated Succssfully.'); return redirect('/admin/artist'); }else{ \Session::flash('error_message', 'Something went wrong.'); return back()->withInput(); } } }
6768480798648b80f9832c623dac990ff1505594
{ "blob_id": "6768480798648b80f9832c623dac990ff1505594", "branch_name": "refs/heads/master", "committer_date": "2019-12-27T15:06:45", "content_id": "ea202d53f31dcebc1113ce9a2bd702c9cbe1129d", "detected_licenses": [ "MIT" ], "directory_id": "ae552a80ea64dfbbd17ad1bdcf276b711c2616c8", "extension": "php", "filename": "ArtistController.php", "fork_events_count": 0, "gha_created_at": "2019-11-18T23:01:36", "gha_event_created_at": "2023-01-05T03:17:02", "gha_language": "HTML", "gha_license_id": null, "github_id": 222561715, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 5454, "license": "MIT", "license_type": "permissive", "path": "/app/Http/Controllers/Admin/ArtistController.php", "provenance": "stack-edu-0051.json.gz:810367", "repo_name": "ramkrishna-sdm/findmyartwork", "revision_date": "2019-12-27T15:06:45", "revision_id": "84453588bd10536b328534722692e1e06d24fe6c", "snapshot_id": "9196498817e91fb01fc02ae3421a741bf4ff911f", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/ramkrishna-sdm/findmyartwork/84453588bd10536b328534722692e1e06d24fe6c/app/Http/Controllers/Admin/ArtistController.php", "visit_date": "2023-01-10T09:04:25.855150", "added": "2024-11-19T02:32:41.761005+00:00", "created": "2019-12-27T15:06:45", "int_score": 2, "score": 2.4375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0069.json.gz" }
#include "compressed_quadtree.h" #include <chrono> using namespace std; using namespace chrono; typedef double type_point; // #define DEBUG 1 #define DIM 2 // dimension #define X 0 #define Y 1 struct Point { type_point coords[DIM]; Point() { coords[X] = 0.0; coords[Y] = 0.0; }; Point(const Point& other) { coords[X] = other.coords[X]; coords[Y] = other.coords[Y]; } type_point operator[](size_t idx) const { return coords[idx]; } type_point& operator[](size_t idx) { return coords[idx]; } }; #define WAIT() getchar(); #define END(x) WAIT(); exit(x); Point* readPoints(char* path, int& size, int& k) { FILE* file = NULL; fopen_s(&file, path, "r"); if (!file) { printf("Invalid file: %s\n", path); END(1); } if (k < 0) fscanf_s(file, "%d", &size); else fscanf_s(file, "%d %d", &size, &k); Point* points = new Point[size]; for (int i = 0; i < size; i++) fscanf_s(file, "%lf %lf", &points[i].coords[X], &points[i].coords[Y]); #ifdef DEBUG printf("%s:\n", path); for (int i = 0; i < size; i++) printf("%g %g\n", points[i].coords[X], points[i].coords[Y]); printf("\n"); #endif // DEBUG fclose(file); return points; } #define EPSILON 0.05 int main(int argc, char** argv) { /* points_file - first line: input_size - the others: inputs_coords_x inputs_coords_y queries_file - first line: query_size k - the others: queries_coords_x queries_coords_y */ // input params exception if (argc < 2) { printf("Usage: executive_file points_file [queries_file]\n"); END(-1); } // read input points int k = -1; int input_size = 0; Point* inputs = readPoints(argv[1], input_size, k); // build compressed quadtree CompressedQuadtree<Point> tree(DIM, inputs, input_size); if (argc == 2) { printf("no queries_file\n"); END(-2); } // read query points k = 0; int query_size = 0; Point* queries = readPoints(argv[2], query_size, k); double epsilon = EPSILON; // query int path_len = strlen(argv[2]) + 2; char* path = (char*)calloc(path_len, sizeof(char)); path[0] = 'a'; strcpy_s(path + 1, path_len, argv[2]); FILE* output = NULL; fopen_s(&output, path, "w"); fprintf(output, "%d\n", query_size); char* path_time = (char*)calloc(path_len, sizeof(char)); path_time[0] = 'q'; strcpy_s(path_time + 1, path_len, argv[2]); FILE* output_time = NULL; fopen_s(&output_time, path_time, "w"); system_clock::time_point start, end; duration<double> sec; printf("q:%d\n", query_size); for (int i = 0; i < query_size; i++) { start = system_clock::now(); list<pair<Point*, double>> query = tree.knn(k, queries[i], epsilon); end = system_clock::now(); sec = end - start; fprintf(output_time, "%g\n", sec); // printf("query #%d: (%g, %g)\n", i + 1, queries[i].coords[X], queries[i].coords[Y]); for (list<pair<Point*, double>>::iterator i = query.begin(); i != query.end(); i++) { // printf("(%g, %g)\n", (*i->first)[X], (*i->first)[Y]); fprintf(output, "%g %g\n", (*i->first)[X], (*i->first)[Y]); } // printf("\n"); } fclose(output); fclose(output_time); printf("done.\n"); END(0); }
92b7c821917eb2b96af534f511233fc0c79948e6
{ "blob_id": "92b7c821917eb2b96af534f511233fc0c79948e6", "branch_name": "refs/heads/master", "committer_date": "2020-09-08T05:41:58", "content_id": "8b22fb434a1ebe4ee8352af5d9cd2ea0ee19bc9a", "detected_licenses": [ "MIT" ], "directory_id": "1028f771b9808c51cd004023ae09bc63ae0c951f", "extension": "cpp", "filename": "main.cpp", "fork_events_count": 0, "gha_created_at": "2020-08-26T02:28:37", "gha_event_created_at": "2020-08-26T02:28:38", "gha_language": null, "gha_license_id": "MIT", "github_id": 290374687, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 3100, "license": "MIT", "license_type": "permissive", "path": "/dnn/NearestNeighbor/HNN/main.cpp", "provenance": "stack-edu-0007.json.gz:55891", "repo_name": "sk7755/postechDNN", "revision_date": "2020-09-08T05:41:58", "revision_id": "ad1cd62a1364e5aa5e5624c64a93f09fb18b11b8", "snapshot_id": "a0c52da6687083a81897a5c21d96b2f824b13938", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/sk7755/postechDNN/ad1cd62a1364e5aa5e5624c64a93f09fb18b11b8/dnn/NearestNeighbor/HNN/main.cpp", "visit_date": "2022-12-11T07:34:36.127330", "added": "2024-11-18T21:46:53.456688+00:00", "created": "2020-09-08T05:41:58", "int_score": 3, "score": 2.59375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0025.json.gz" }
**Archived Status** This is a previous experiment in the "DE CMS Migration Project" that didn't turn out well. Current work for the CMS backend is being developed at: https://github.com/CUCentralAdvancement/giving-backend # CU Central Advancement CMS The Central Advancement Content Management System. This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started ```bash # First, download the dependencies. yarn # Make environmental variable file. cp .env.example .env.local # Add environmental variables, usually stored in Heroku UI. open -e .env.local # Boot up Postgres service. docker-compose -f local-dev-stack.yml up -d # Prisma migrate database tables. yarn db:migrate # Create SSL keys. openssl req -x509 -out localhost.crt -keyout localhost.key \ -newkey rsa:2048 -nodes -sha256 \ -subj '/CN=localhost' -extensions EXT -config <( \ printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") # Start dev server. yarn dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the login prompt. ## User Accounts All routes on the app using the `AdminLayout` are protected and need authentication through Auth0. ## Learn More To learn more about Next.js, take a look at the following resources: - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
1d021f45e5d914a596b34227340d09b0ab8c6d50
{ "blob_id": "1d021f45e5d914a596b34227340d09b0ab8c6d50", "branch_name": "refs/heads/main", "committer_date": "2021-04-20T21:19:19", "content_id": "fb28987a6b4515b3e2470d0e250871945b359c3f", "detected_licenses": [ "MIT" ], "directory_id": "e538bc1c2be3be002386745355e9901257f7cb90", "extension": "md", "filename": "README.md", "fork_events_count": 0, "gha_created_at": "2020-12-23T20:02:11", "gha_event_created_at": "2021-04-19T15:02:18", "gha_language": "TypeScript", "gha_license_id": "MIT", "github_id": 323991408, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 1767, "license": "MIT", "license_type": "permissive", "path": "/README.md", "provenance": "stack-edu-markdown-0002.json.gz:64077", "repo_name": "CUCentralAdvancement/cms", "revision_date": "2021-04-20T21:19:19", "revision_id": "791c681b2792194390822599770c80b7e11f7cd6", "snapshot_id": "9818f650938545feee0d6311add926d37770f896", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/CUCentralAdvancement/cms/791c681b2792194390822599770c80b7e11f7cd6/README.md", "visit_date": "2023-04-11T00:01:08.755362", "added": "2024-11-18T22:59:16.499029+00:00", "created": "2021-04-20T21:19:19", "int_score": 3, "score": 3.359375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0002.json.gz" }
# encoding: UTF-8 # some of this extentions are used during bootstrapping and don't # have access to i.e. activesupport # # Methods from ruby 1.9 can be removed after migration # 1.9 adds realpath to resolve symlinks; 1.8 doesn't # have this method, so we add it so we get resolved symlinks # and compatibility unless File.respond_to?(:realpath) class File #:nodoc: def self.realpath path return realpath(File.readlink(path)) if symlink?(path) path end end end # Ruby 1.8.7 does not have a 'key' method on Hash unless Hash.new.respond_to?(:key) class Hash def key(value) matching = select{|k,v| v == value} if matching && matching[0] matching[0][0] else nil end end end end # taken from ActiveSupport - MIT licensed unless Hash.new.respond_to?(:symbolize_keys!) class Hash def symbolize_keys! keys.each do |key| self[(key.to_sym rescue key) || key] = delete(key) end self end def symbolize_keys dup.symbolize_keys! end end end # taken from ActiveSupport - MIT licensed unless String.new.respond_to?(:demodulize) class String def demodulize path = self.to_s if i = path.rindex('::') path[(i+2)..-1] else path end end end end # taken from ActiveSupport - MIT licensed module Kernel def singleton_class class << self self end end unless respond_to?(:singleton_class) end
f8cd390c216daf939e0b46f7761a4faa0da3d219
{ "blob_id": "f8cd390c216daf939e0b46f7761a4faa0da3d219", "branch_name": "refs/heads/main", "committer_date": "2023-04-19T23:39:29", "content_id": "ba2cdaadf115f89bc89ede85e2160e2e93b39a0c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3e3d0e785d15ecbc99c2b617a0739ed7407f89d5", "extension": "rb", "filename": "core_ext.rb", "fork_events_count": 231, "gha_created_at": "2014-10-22T23:57:53", "gha_event_created_at": "2023-04-26T21:36:19", "gha_language": "Ruby", "gha_license_id": "Apache-2.0", "github_id": 25610229, "is_generated": false, "is_vendor": false, "language": "Ruby", "length_bytes": 1473, "license": "Apache-2.0", "license_type": "permissive", "path": "/lib/core_ext.rb", "provenance": "stack-edu-0066.json.gz:225100", "repo_name": "aws/aws-codedeploy-agent", "revision_date": "2023-04-19T23:39:29", "revision_id": "3ba4279a7ac66df4f288b58dd4d5d9b7a6cb0bc8", "snapshot_id": "f5f4fff0c85dedba85c2ef54b4ae04e2c5e1022d", "src_encoding": "UTF-8", "star_events_count": 346, "url": "https://raw.githubusercontent.com/aws/aws-codedeploy-agent/3ba4279a7ac66df4f288b58dd4d5d9b7a6cb0bc8/lib/core_ext.rb", "visit_date": "2023-09-05T15:11:58.014126", "added": "2024-11-18T23:48:27.100963+00:00", "created": "2023-04-19T23:39:29", "int_score": 3, "score": 2.59375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0084.json.gz" }
// Licensed to Apache Software Foundation (ASF) under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Apache Software Foundation (ASF) licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package prom import ( "unsafe" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "github.com/apache/skywalking-banyandb/pkg/meter" ) // Provider is a prometheus provider. type provider struct { scope meter.Scope reg prometheus.Registerer } // NewProvider creates a new prometheus provider with given meter.Scope. func NewProvider(scope meter.Scope, reg prometheus.Registerer) meter.Provider { return &provider{ scope: scope, reg: reg, } } // Counter returns a prometheus counter. func (p *provider) Counter(name string, labels ...string) meter.Counter { return &counter{ counter: promauto.With(p.reg).NewCounterVec(prometheus.CounterOpts{ Name: p.scope.GetNamespace() + "_" + name, Help: p.scope.GetNamespace() + "_" + name, ConstLabels: convertLabels(p.scope.GetLabels()), }, labels), } } // Gauge returns a prometheus gauge. func (p *provider) Gauge(name string, labels ...string) meter.Gauge { return &gauge{ gauge: promauto.With(p.reg).NewGaugeVec(prometheus.GaugeOpts{ Name: p.scope.GetNamespace() + "_" + name, Help: p.scope.GetNamespace() + "_" + name, ConstLabels: convertLabels(p.scope.GetLabels()), }, labels), } } // Histogram returns a prometheus histogram. func (p *provider) Histogram(name string, buckets meter.Buckets, labels ...string) meter.Histogram { return &histogram{ histogram: promauto.With(p.reg).NewHistogramVec(prometheus.HistogramOpts{ Name: p.scope.GetNamespace() + "_" + name, Help: p.scope.GetNamespace() + "_" + name, ConstLabels: convertLabels(p.scope.GetLabels()), Buckets: buckets, }, labels), } } // convertLabels converts a map of labels to a prometheus.Labels. func convertLabels(labels meter.LabelPairs) prometheus.Labels { if labels == nil { return nil } return *(*prometheus.Labels)(unsafe.Pointer(&labels)) }
9a3d4dfef75adc5937e820c5b5833ea02376188a
{ "blob_id": "9a3d4dfef75adc5937e820c5b5833ea02376188a", "branch_name": "refs/heads/main", "committer_date": "2023-05-09T00:14:53", "content_id": "0ca74abec027b3ef4d95e9257934a5ba312eabdf", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1874df4f903db6fa8dd6258fcd97a9b385ae43ff", "extension": "go", "filename": "prom.go", "fork_events_count": 0, "gha_created_at": "2021-04-19T03:48:47", "gha_event_created_at": "2021-04-19T03:48:47", "gha_language": null, "gha_license_id": "Apache-2.0", "github_id": 359321125, "is_generated": false, "is_vendor": false, "language": "Go", "length_bytes": 2754, "license": "Apache-2.0", "license_type": "permissive", "path": "/pkg/meter/prom/prom.go", "provenance": "stack-edu-0015.json.gz:443702", "repo_name": "CalvinKirs/skywalking-banyandb", "revision_date": "2023-05-09T00:14:53", "revision_id": "b544c55b0fdad6044e1e14810a11f3a2663550ad", "snapshot_id": "c9dc6f09c735b57c1bd36b4ab241d26fa36f8952", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/CalvinKirs/skywalking-banyandb/b544c55b0fdad6044e1e14810a11f3a2663550ad/pkg/meter/prom/prom.go", "visit_date": "2023-05-26T03:47:09.029524", "added": "2024-11-19T03:07:07.726818+00:00", "created": "2023-05-09T00:14:53", "int_score": 2, "score": 2.0625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0033.json.gz" }
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Restaurant; use App\Order; use Illuminate\Support\Facades\DB; use Carbon\Carbon; use Illuminate\Support\Facades\Auth; class ChartJsController extends Controller { public function index(Restaurant $restaurant) { $months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ]; if(Auth::user()->id == $restaurant->user->id){ $userOrders = DB::table('orders') ->join('dish_order', 'orders.id', '=', 'dish_order.order_id') ->join('dishes', 'dish_order.dish_id', '=', 'dishes.id') ->join('restaurants', 'dishes.restaurant_id', '=', 'restaurants.id') ->join('users', 'restaurants.user_id', '=', 'users.id') ->where('restaurants.id', "=", $restaurant->id) ->select('orders.id', 'restaurants.name') ->groupBy('orders.id', 'restaurants.name') ->get() ->toArray(); $ids = []; $nameRestaurant = ''; foreach ($userOrders as $order) { $nameRestaurant = $order->name; } if($restaurant->name == $nameRestaurant ){ foreach ($userOrders as $order) { $ids[] = $order->id; } } // dd(count($ids)); $numberOrders = count($ids); } else{ abort(404); } // dd($prova); // $prova->each(function($post){ // dd($post->name); // }); // $orders = count(Order::all()); // $orders = Order::with('dishes') // ->orderByDesc('id') // ->findOrFail($ids); // dd($restaurant->name); // dump($restaurant->name); // dump('user id' . ' ' . Auth::user()->id . ' = = ' . 'restaurant id' . ' ' . $restaurant->user->id ); // dd(Auth::user()->id); // dump('numero ordini' . ' ' . $numberOrders); // dd($year,JSON_NUMERIC_CHECK); return view('admin.chartjs',compact('restaurant'))->with('months', json_encode($months))->with('numberOrders',json_encode($numberOrders),JSON_NUMERIC_CHECK); } }
1ec37987a6bf0f15e3cf70039f471901b5b3c7b1
{ "blob_id": "1ec37987a6bf0f15e3cf70039f471901b5b3c7b1", "branch_name": "refs/heads/master", "committer_date": "2021-09-15T13:38:18", "content_id": "9ea332c20fbcfab7a8ec81aedcefa45b5dbad8f7", "detected_licenses": [ "MIT" ], "directory_id": "27ce525fb519813f4ca24eb5ccd1a892b6a03988", "extension": "php", "filename": "ChartJsController.php", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 401297365, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 2474, "license": "MIT", "license_type": "permissive", "path": "/app/Http/Controllers/ChartJsController.php", "provenance": "stack-edu-0047.json.gz:597746", "repo_name": "AlessandraSchiavone/deliveBoo-project", "revision_date": "2021-09-15T13:38:18", "revision_id": "1655d98db69f930d5b8888fa4242f04975c94066", "snapshot_id": "b48481548d6687b1052f29277d76e7b44c0d884e", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/AlessandraSchiavone/deliveBoo-project/1655d98db69f930d5b8888fa4242f04975c94066/app/Http/Controllers/ChartJsController.php", "visit_date": "2023-07-27T11:19:32.690920", "added": "2024-11-18T23:25:28.635084+00:00", "created": "2021-09-15T13:38:18", "int_score": 2, "score": 2.234375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0065.json.gz" }
<?php namespace ExMachina\LaravelRouteJs\Commands; use ExMachina\LaravelRouteJs\JSRoutes; use Illuminate\Console\Command; use Illuminate\Support\Facades\Route; class CreateJsRoute extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'js-route:generate {--routes=* : Specify routes(string or regexp) to be generated in json file.} {--dir= : Directory where generated files will be written.} {--exclude : Exclude routes specified in ROUTES parameter.} {--exclude-js : Prevent the generation of action(JS) file.} {--append : Append routes to existing route list.} '; /** * The console command description. * * @var string */ protected $description = 'Create JS and JSON files of routes'; /** * JSRoute instance */ private $jsRouteService; /** * Create a new command instance. * * @return void */ public function __construct(JSRoutes $jsRoute) { parent::__construct(); $this->jsRouteService = $jsRoute; } /** * Execute the console command. * * @return mixed */ public function handle() { $this->jsRouteService->setRoutePatterns( $this->option('routes') ?: config('route-js.route.patterns') ); $this->jsRouteService->setPath($this->option('dir') ?: config('route-js.dir')); if ($this->option('exclude') || config('route-js.routes.exclude')) { $this->jsRouteService->excludePatterns(); } if ($this->option('exclude-js')) $this->jsRouteService->excludeActionJS(); if ($this->option('append')) $this->jsRouteService->append(); $this->jsRouteService->generate(); } }
c96e0d3ce669800affa3aa989958460d828df33d
{ "blob_id": "c96e0d3ce669800affa3aa989958460d828df33d", "branch_name": "refs/heads/master", "committer_date": "2020-08-09T08:54:34", "content_id": "b1ba0f6e8a6ea3cab5cda1ffb311b9335a002076", "detected_licenses": [ "MIT" ], "directory_id": "6b1d53ab0ae8f3398bb248c6013c6ad423fb6991", "extension": "php", "filename": "CreateJsRoute.php", "fork_events_count": 2, "gha_created_at": "2020-06-24T10:22:05", "gha_event_created_at": "2020-08-09T08:54:36", "gha_language": "PHP", "gha_license_id": "MIT", "github_id": 274639775, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 1827, "license": "MIT", "license_type": "permissive", "path": "/src/Commands/CreateJsRoute.php", "provenance": "stack-edu-0050.json.gz:336936", "repo_name": "exmachina00/laravel-routes-js", "revision_date": "2020-08-09T08:54:34", "revision_id": "b7797a3b2d5039a8f8ba93f5b6b2f92c6c0f441f", "snapshot_id": "7ce7ac1d0cde29ba0a5a81ad68b86225a462bd9d", "src_encoding": "UTF-8", "star_events_count": 4, "url": "https://raw.githubusercontent.com/exmachina00/laravel-routes-js/b7797a3b2d5039a8f8ba93f5b6b2f92c6c0f441f/src/Commands/CreateJsRoute.php", "visit_date": "2022-12-08T00:47:48.531740", "added": "2024-11-18T21:39:50.968065+00:00", "created": "2020-08-09T08:54:34", "int_score": 3, "score": 2.734375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0068.json.gz" }
import pytest import uuid from fancy_todo_list.application.entities import RefId, Username, User from fancy_todo_list.application.usecases import ( FindUserByRefIdRequest, ) @pytest.fixture def user(): ref_id = RefId.new() username = Username.create("user") return User(ref_id, username) class TestFindUserByRefId: def test_should_find(self, find_user_by_ref_id_uc, user_repository, user): user_repository.insert(user) request = FindUserByRefIdRequest(str(user.ref_id)) response = find_user_by_ref_id_uc.execute(request) assert response.ref_id == str(user.ref_id) assert response.username == user.username.value @pytest.mark.parametrize("username", [f"user{i}" for i in range(1,11)]) def te_should_create_and_find_10(self, find_user_by_ref_id_uc, user_repository, username): request = CreateUserRequest(username=username) response = create_user_uc.execute(request) assert response.ref_id is not None assert isinstance(uuid.UUID(response.ref_id, version=4), uuid.UUID)
073b7aff770b88c231ff883d3de033be4aad11b0
{ "blob_id": "073b7aff770b88c231ff883d3de033be4aad11b0", "branch_name": "refs/heads/main", "committer_date": "2021-02-03T11:52:57", "content_id": "7b4c6c0ff6cc089f81c4363c30a94eb0b53c6c0d", "detected_licenses": [ "MIT" ], "directory_id": "7b5519f4a2c8b7c24099a3ec7c6b1ed55e9f9d66", "extension": "py", "filename": "test_find_user_by_ref_id.py", "fork_events_count": 1, "gha_created_at": "2021-02-03T01:10:29", "gha_event_created_at": "2021-02-04T10:56:53", "gha_language": "Python", "gha_license_id": "MIT", "github_id": 335469282, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 1082, "license": "MIT", "license_type": "permissive", "path": "/tests/fancy_todo_list/application/usecases/test_find_user_by_ref_id.py", "provenance": "stack-edu-0055.json.gz:179114", "repo_name": "rcmendes/fancy_todo_list", "revision_date": "2021-02-03T11:52:57", "revision_id": "fd3862dd43ff4cadb27cc5554b8dbeb079ed27ec", "snapshot_id": "2d86886d6b7c5093ecbc246e5e00c17a5bd38210", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/rcmendes/fancy_todo_list/fd3862dd43ff4cadb27cc5554b8dbeb079ed27ec/tests/fancy_todo_list/application/usecases/test_find_user_by_ref_id.py", "visit_date": "2023-02-27T07:16:06.011820", "added": "2024-11-18T20:52:36.366849+00:00", "created": "2021-02-03T11:52:57", "int_score": 3, "score": 2.78125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0073.json.gz" }
 #region using statements using System; using System.Collections.Generic; using System.Linq; using System.Text; using DataJuggler.Regionizer.CodeModel.Objects; using DataJuggler.Regionizer.CodeModel.Enumerations; #endregion namespace DataJuggler.Regionizer.CodeModel.Util { #region class IfStatementParser /// <summary> /// This class is sued to parse IfStatements and CompountIfStatements out of the sourceCode given. /// </summary> public class IfStatementParser { #region private variables public const string OpenParenString = "("; public const string CloseParenString = ")"; #endregion #region Methods #region GetComparisonType(string op) /// <summary> /// This method returns the Comparison Type /// </summary> private static ComparisonTypeEnum GetComparisonType(string op) { // initial value ComparisonTypeEnum comparisonType = ComparisonTypeEnum.NotSet; // determine the operator switch (op) { case ">": // set the return value comparisonType = ComparisonTypeEnum.GreaterThan; // required break; case ">=": // set the return value comparisonType = ComparisonTypeEnum.GreaterThanOrEqual; // required break; case "==": // set the return value comparisonType = ComparisonTypeEnum.Equal; // required break; case "<=": // set the return value comparisonType = ComparisonTypeEnum.LessThanOrEqual; // required break; case "<": // set the return value comparisonType = ComparisonTypeEnum.LessThan; // required break; } // return value return comparisonType; } #endregion #region GetOccurrencesOfChar(string sourceString, char sourceChar) /// <summary> /// This method returns the Occurrences Of Char /// </summary> public static int GetOccurrencesOfChar(string sourceString, char sourceChar) { // initial value int count = 0; // if the sourceString exists if (!String.IsNullOrEmpty(sourceString)) { // iterate the count foreach (char c in sourceString) { // if this is the sourceChar if (c == sourceChar) { // increment count count++; } } } // return value return count; } #endregion #region IsIfStatement(string sourceCode, bool isCompoundIfStatement) /// <summary> /// This method returns true if the sourceCode given is an If Statement /// </summary> public static bool IsIfStatement(string sourceCode, ref bool isCompoundIfStatement) { // initial value bool isIfStatement = false; // local int openParenCount = 0; int closeParenCount = 0; string openParenString = "("; string closeParenString = ")"; char openParen = openParenString[0]; char closeParen = closeParenString[0]; // if the string exists if (!String.IsNullOrEmpty(sourceCode)) { // trim the sourceCode sourceCode = sourceCode.Trim(); // if this is an ifStatement if (sourceCode.StartsWith("if")) { // set the count of each character to make sure we have a valid ifStatement openParenCount = GetOccurrencesOfChar(sourceCode, openParen); closeParenCount = GetOccurrencesOfChar(sourceCode, closeParen); // if there is atleast one set of parens if ((openParenCount == closeParenCount) && (openParenCount >= 1)) { // set to true isIfStatement = true; // if there are more than one set of ()'s than this is a compound if statement if (openParenCount > 1) { // this is a compount if statement isCompoundIfStatement = true; } } } } // return value return isIfStatement; } #endregion #region ParseCompoundIfStatement(string sourceCode) /// <summary> /// This method returns the Compound If Statement /// </summary> internal static CompoundIfStatement ParseCompoundIfStatement(string sourceCode) { // initial value CompoundIfStatement compoundIfStatement = null; // locals int openParenCount = 0; char openParen = OpenParenString[0]; char closeParen = CloseParenString[0]; IfStatement ifStatement = null; // if the sourceCode exists if (!String.IsNullOrEmpty(sourceCode)) { // iterate the characters in the sourceCode foreach (char c in sourceCode) { // if this is an openParen if (c == openParen) { // increment openParenCount (openParenCount = Level) openParenCount++; // if this is the firstOpenParen if (openParenCount == 1) { // create the return value compoundIfStatement = new CompoundIfStatement(); } else if (compoundIfStatement != null) { // create a tempCompoundIfStatement object ifStatement = new IfStatement(openParenCount); // add this ifStatement to the currentCompountIfStatement compoundIfStatement.IfStatements.Add(ifStatement); } } else if (c == closeParen) { // decrement openParenCount openParenCount--; } else { // if the ifStatement exists if (ifStatement != null) { // add this character to the innerText ifStatement.InnerText += (c); } } } } // return value return compoundIfStatement; } #endregion #region ParseIfStatement(string sourceCode, int level = 1) /// <summary> /// This method attempts to parse an IfStatement object out of the sourceCode given. /// </summary> public static IfStatement ParseIfStatement(string sourceCode, int level = 1) { // initial value IfStatement ifStatement = null; // local int openParenCount = 0; int closeParenCount = 0; int openParenIndex = 0; int closeParenIndex = 0; char openParen = OpenParenString[0]; char closeParen = CloseParenString[0]; int len = 0; string innerCode = ""; string source = ""; string op = ""; string target = ""; ComparisonTypeEnum comparisonType = ComparisonTypeEnum.NotSet; // if the sourceCode exists if (!String.IsNullOrEmpty(sourceCode)) { // trim the sourceCode sourceCode = sourceCode.Trim(); // if this is an ifStatement if (sourceCode.StartsWith("if")) { // set the count of each character to make sure we have a valid ifStatement openParenCount = GetOccurrencesOfChar(sourceCode, openParen); closeParenCount = GetOccurrencesOfChar(sourceCode, closeParen); // if this is a 'Simple' IfStatement if ((openParenCount == closeParenCount) && (openParenCount == 1)) { // get the index of the openParen openParenIndex = sourceCode.IndexOf(openParen); closeParenIndex = sourceCode.IndexOf(closeParen); len = closeParenIndex - openParenIndex - 1; // set the inner code innerCode = sourceCode.Substring(openParenIndex + 1, len); // if the innerCode exists if (!String.IsNullOrEmpty(innerCode)) { // get the words List<Word> words = CSharpCodeParser.ParseWords(innerCode); // if the words collection existsre are exactly 3 words if (words != null) { // if there is only one word if (words.Count == 1) { // set the sourceWord source = words[0].Text; // if this is a NotComparison bool isEqual = (!source.StartsWith("!")); // create the ifStatement ifStatement = new IfStatement(source, isEqual, level); } // if there are exactly 3 words else if (words.Count == 3) { // parse out the items that build the ifStatement source = words[0].Text; op = words[1].Text; target = words[2].Text; // Get the comparisonType for the operator comparisonType = IfStatementParser.GetComparisonType(op); // now create the ifStatement ifStatement = new IfStatement(source, comparisonType, target, level); } } } } } } // return value return ifStatement; } #endregion #endregion } #endregion }
8848d2700d2f6f418dfab7546f738024bb48b0ec
{ "blob_id": "8848d2700d2f6f418dfab7546f738024bb48b0ec", "branch_name": "refs/heads/master", "committer_date": "2021-11-19T22:48:08", "content_id": "90cb5dde4a6d527f2d84234f3ca041b05ab334f2", "detected_licenses": [ "MIT" ], "directory_id": "f803136e0ef69e5a13fd4dbaa0ca72ab8c61afda", "extension": "cs", "filename": "IfStatementParser.cs", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 190001509, "is_generated": false, "is_vendor": false, "language": "C#", "length_bytes": 12596, "license": "MIT", "license_type": "permissive", "path": "/Regionizer/Shared/Code Model/RegionizerCodeModel/Util/IfStatementParser.cs", "provenance": "stack-edu-0012.json.gz:666312", "repo_name": "DataJuggler/Regionizer", "revision_date": "2021-11-19T22:48:08", "revision_id": "1a02abc81463449c55a952d526317dba7d86fbb7", "snapshot_id": "67d6b405bd16de256ff72d2b42d7872e74ad1d95", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/DataJuggler/Regionizer/1a02abc81463449c55a952d526317dba7d86fbb7/Regionizer/Shared/Code Model/RegionizerCodeModel/Util/IfStatementParser.cs", "visit_date": "2021-11-24T07:53:17.039837", "added": "2024-11-19T02:15:32.441592+00:00", "created": "2021-11-19T22:48:08", "int_score": 3, "score": 3.28125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0030.json.gz" }
package com.github.kbreczko.gitproxy.user.utils; import com.github.kbreczko.gitproxy.user.models.GithubUserResponse; import lombok.NonNull; import lombok.experimental.UtilityClass; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Optional; @UtilityClass public class ResponseCalculatorUtil { public static Optional<BigDecimal> calculateValue(@NonNull GithubUserResponse response) { if (response.getFollowers() == null || response.getPublicRepos() == null || response.getFollowers() == 0) { return Optional.empty(); } final BigDecimal value = BigDecimal.valueOf(6) .setScale(10, RoundingMode.HALF_UP) .divide(BigDecimal.valueOf(response.getFollowers()), RoundingMode.HALF_UP) .multiply(BigDecimal.valueOf((2 + response.getPublicRepos()))) .setScale(2, RoundingMode.HALF_UP); return Optional.of(value); } }
a72ee1a6d267c4a228ca643167a7d6c2e6a59126
{ "blob_id": "a72ee1a6d267c4a228ca643167a7d6c2e6a59126", "branch_name": "refs/heads/main", "committer_date": "2021-06-30T19:36:38", "content_id": "42e30ccee7c519d8f8794e8155e7de9a82bca4e1", "detected_licenses": [ "MIT" ], "directory_id": "6c51b31eb085e00ff5c686912f78df9506198e82", "extension": "java", "filename": "ResponseCalculatorUtil.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 380764917, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 955, "license": "MIT", "license_type": "permissive", "path": "/src/main/java/com/github/kbreczko/gitproxy/user/utils/ResponseCalculatorUtil.java", "provenance": "stack-edu-0022.json.gz:323681", "repo_name": "kbreczko/gitproxy", "revision_date": "2021-06-30T19:36:38", "revision_id": "51db38316709b26fe799c388b707ae5c8c5e00ef", "snapshot_id": "2e982c505ebbbccca721e8789bcea69e5f073001", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/kbreczko/gitproxy/51db38316709b26fe799c388b707ae5c8c5e00ef/src/main/java/com/github/kbreczko/gitproxy/user/utils/ResponseCalculatorUtil.java", "visit_date": "2023-06-17T06:34:47.464736", "added": "2024-11-19T01:59:28.603596+00:00", "created": "2021-06-30T19:36:38", "int_score": 2, "score": 2.4375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0040.json.gz" }
const alphabet = '1234567890abcdefghijklmnopqrstuvwxyz'; // Player IDs might have to be entered manually, so should be somewhat human-readable but still reasonably secure export const playerId = () => { let id = format(random, alphabet, 8); return `${id.slice(0,4)}-${id.slice(4)}`; } // Device IDs are never to be entered manually, so they can be longer export const deviceId = () => { return format(random, alphabet, 16); } /** * Crypto functions are from https://github.com/ai/nanoid The MIT License (MIT) Copyright 2017 Andrey Sitnik <andrey@sitnik.ru> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ const format = (random, alphabet, size) => { var mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1 var step = Math.ceil(1.6 * mask * size / alphabet.length) var id = '' while (true) { var bytes = random(step) for (var i = 0; i < step; i++) { var byte = bytes[i] & mask if (alphabet[byte]) { id += alphabet[byte] if (id.length === size) return id } } } } const crypto = window.crypto || window.msCrypto; const random = (bytes) => { return crypto.getRandomValues(new Uint8Array(bytes)); }
92e7cb4cd5e51ae5909dbc797b52ae49b3e401a0
{ "blob_id": "92e7cb4cd5e51ae5909dbc797b52ae49b3e401a0", "branch_name": "refs/heads/master", "committer_date": "2019-02-09T13:04:58", "content_id": "300014c1496a323eed6f3e646eb75cc4cf2dd4e0", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a8d129cb3597abe63676ecce66895d6372f392c9", "extension": "js", "filename": "id-generator.js", "fork_events_count": 0, "gha_created_at": "2018-09-24T19:40:21", "gha_event_created_at": "2019-12-22T16:30:36", "gha_language": "JavaScript", "gha_license_id": "BSD-3-Clause", "github_id": 150158529, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 2158, "license": "BSD-3-Clause", "license_type": "permissive", "path": "/src/services/id-generator.js", "provenance": "stack-edu-0038.json.gz:531435", "repo_name": "PalatinCoder/Dorfolympiade", "revision_date": "2019-02-09T13:04:58", "revision_id": "5b6fa59104f2dde3c2514cd806ef519a6314f0c2", "snapshot_id": "ea29331f38d7c711881bd7522ad46b9e26447768", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/PalatinCoder/Dorfolympiade/5b6fa59104f2dde3c2514cd806ef519a6314f0c2/src/services/id-generator.js", "visit_date": "2020-03-29T17:22:25.243765", "added": "2024-11-18T22:52:06.207593+00:00", "created": "2019-02-09T13:04:58", "int_score": 3, "score": 2.59375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0056.json.gz" }
<?php $x = 0; $y = 0; $color = ""; $validated = false; $errors = ""; if (isset($_POST['submit'])) { //data validation //getting the input $x_temp = htmlspecialchars($_POST['x']); $y_temp = htmlspecialchars($_POST['y']); $color_temp=htmlspecialchars( $_POST['clr']); if (!is_numeric($x_temp)) { echo var_export($x_temp, true) . " please enter a number", PHP_EOL; } if (!is_numeric($y_temp)) { echo var_export($y_temp, true) . " please enter a number", PHP_EOL; } switch ($color_temp) { case 'red': case 'blue': case'green': case'yellow': $color = $color_temp; break; default: echo "error your must choose a correct color"; } if($x_temp <=0){ echo'please enter number more than zero', PHP_EOL; } if($y_temp <=0){ echo'please enter number more than zero', PHP_EOL; } if($x_temp >=50){ echo'please enter number less than 50', PHP_EOL; } if($y_temp >=50){ echo'please enter number less than 50', PHP_EOL; } $x = $x_temp; $y=$y_temp; $color=$color_temp; } $validated = true; ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> intro stage Kristina</title> <link rel="stylesheet" href="public/css/style.css"> </head> <body> <?php //this is my business logic if (isset($_POST['submit'])) { for ($i = 0; $i < $y; $i++) { for ($j = 0; $j < $x; $j++) { echo "<div class='square' style='background-color:" . $color . "'></div>"; } echo "<br>"; //this makes a new line } } ?> <form method="POST"> X: <input type ="number" name="x" value="" > Y: <input type ="number" name="y" value=""> Color: <select name="clr" size=1 > <option value="red"> red </option> <option value="green">green </option> <option value="blue"> blue </option> <option value="yellow"> yellow </option> <input type="submit" name="submit" value="GO!"> </form> </body> </html>
fd57f27f7aa4f4aa6599ba042411d38cceb5a3b8
{ "blob_id": "fd57f27f7aa4f4aa6599ba042411d38cceb5a3b8", "branch_name": "refs/heads/main", "committer_date": "2021-09-16T16:02:18", "content_id": "c175cc246c143ab1d69a0929a842a6337c90b74c", "detected_licenses": [ "MIT" ], "directory_id": "6a34dd57c6ffdfb287f39c7e81ef60b9ea650ddc", "extension": "php", "filename": "index.php", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 405220509, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 2388, "license": "MIT", "license_type": "permissive", "path": "/squares_project/index.php", "provenance": "stack-edu-0052.json.gz:289379", "repo_name": "Bondarenko27/project-test", "revision_date": "2021-09-16T16:02:18", "revision_id": "3db90ea354e8ba48ca533cf0c5fb9b9fca82dc92", "snapshot_id": "ebc2af2ebb42d6a94414f63d77b13b2fb5841f08", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/Bondarenko27/project-test/3db90ea354e8ba48ca533cf0c5fb9b9fca82dc92/squares_project/index.php", "visit_date": "2023-08-07T01:59:48.718819", "added": "2024-11-18T23:23:51.260363+00:00", "created": "2021-09-16T16:02:18", "int_score": 4, "score": 3.578125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0070.json.gz" }
using UnityEngine; using System.Collections; namespace TouchControl { public class SwipeTest : MonoBehaviour { public Swipe trigger; // Use this for initialization void Start() { trigger.OnSwipe += trigger_OnSwipe; } void trigger_OnSwipe(Swipe.Gesture type) { Debug.Log("Swipe"); Debug.Log(type); } // Update is called once per frame void Update() { } } }
8e1c1646e4122b1cc9245af0b072bf48316b8bd1
{ "blob_id": "8e1c1646e4122b1cc9245af0b072bf48316b8bd1", "branch_name": "refs/heads/master", "committer_date": "2017-01-04T19:56:42", "content_id": "f14155e5d29c732a83a95ba90c771ce3d371ad07", "detected_licenses": [ "MIT" ], "directory_id": "37b04baef8d2e0e2f0141338a5a703fc528ac1a0", "extension": "cs", "filename": "SwipeTest.cs", "fork_events_count": 1, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 78047791, "is_generated": false, "is_vendor": false, "language": "C#", "length_bytes": 511, "license": "MIT", "license_type": "permissive", "path": "/Assets/TouchControl/Scripts/SwipeTest.cs", "provenance": "stack-edu-0010.json.gz:489840", "repo_name": "ManuelLoof/TouchControl", "revision_date": "2017-01-04T19:56:42", "revision_id": "8379b9dd29cd5925e7655649bb4c56f883faf3cb", "snapshot_id": "768750f95d3bf96f5b34816674192126c97f8e74", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/ManuelLoof/TouchControl/8379b9dd29cd5925e7655649bb4c56f883faf3cb/Assets/TouchControl/Scripts/SwipeTest.cs", "visit_date": "2021-04-29T03:09:33.465696", "added": "2024-11-19T02:28:26.215823+00:00", "created": "2017-01-04T19:56:42", "int_score": 2, "score": 2.296875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0028.json.gz" }
# Save Decoder/Encoder ## What Is Needed? To Use this tool all you need is: - [Node.js](https://nodejs.org/en/) installed - Zlib and fs `npm install zlib --save` `npm install fs --save` - an IDE, [this is what i use](https://code.visualstudio.com/) ## How To Use using this tool is very simple, all you need to do is place the file you want to decode/encode in the same directory as index.js ![example](https://media.discordapp.net/attachments/692142942856544288/771058089323266088/unknown.png) Functions currently useable: ````js decodeSave(/*Please insert the name of your save file*/ ) decodeLevel(/*Please insert the name of the file with your level string*/ ) ````
8e14bb414386a0b0daa83c58586cecd01bd1f1bb
{ "blob_id": "8e14bb414386a0b0daa83c58586cecd01bd1f1bb", "branch_name": "refs/heads/main", "committer_date": "2021-07-28T13:31:42", "content_id": "1cad8d9a419c85813dea5de785e64979c8197778", "detected_licenses": [ "MIT" ], "directory_id": "fc7a323db17156b8128ff7843c8176d29f337cfe", "extension": "md", "filename": "README.md", "fork_events_count": 0, "gha_created_at": "2021-07-28T13:18:04", "gha_event_created_at": "2021-07-28T13:18:05", "gha_language": null, "gha_license_id": "MIT", "github_id": 390357935, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 685, "license": "MIT", "license_type": "permissive", "path": "/tools/Save-decoder/README.md", "provenance": "stack-edu-markdown-0000.json.gz:12204", "repo_name": "benja03min/GD-Save-Tools", "revision_date": "2021-07-28T13:31:42", "revision_id": "3239d0fd06a0275fc204e6d3b307b58630241d17", "snapshot_id": "3be718dd9511f2220a67da87477477ad7f36882d", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/benja03min/GD-Save-Tools/3239d0fd06a0275fc204e6d3b307b58630241d17/tools/Save-decoder/README.md", "visit_date": "2023-06-23T18:37:11.498128", "added": "2024-11-18T22:59:21.220910+00:00", "created": "2021-07-28T13:31:42", "int_score": 3, "score": 3.109375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0000.json.gz" }
import java.io.*; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Logger; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.annotation.WebServlet; public class ScottyPerformances extends javax.servlet.http.HttpServlet { private Ass[] bunsNumber; private java.lang.String word; private static java.util.logging.Logger woodcutter = java.util.logging.Logger.getLogger("bensTheatre"); public void doGet(HttpServletRequest appeals, HttpServletResponse responsive) throws ServletException, IOException { java.io.PrintWriter impermissible = responsive.getWriter(); word = appeals.getParameter("message"); if (word != null) { if (word.equals("success")) { word = "Seat was successfully booked. We look forward to seeing you on the night."; } else if (word.equals("limitexceeded")) { word = "Unfortunately we only allow 3 bookings per user, please try again under a different name."; } } else { word = ""; } bunsNumber = new Ass[64]; java.io.File rentingDocumentation = new java.io.File(getServletContext().getRealPath("/WEB-INF/bookingData.ser")); if (rentingDocumentation.exists()) { bunsNumber = writtenFilename(); } else { for (int i = 0; i < 64; i++) { Ass babyBum = new Ass(); bunsNumber[i] = babyBum; } salvagingSubmitting(bunsNumber); } java.lang.String apartmentLayout = bringAbodeWebpage(); impermissible.println(apartmentLayout); } public Ass[] writtenFilename() { try { Ass[] vacancies; java.io.FileInputStream proponentsDatabase = new java.io.FileInputStream(getServletContext().getRealPath("/WEB-INF/bookingData.ser")); java.io.ObjectInputStream nih = new java.io.ObjectInputStream(proponentsDatabase); vacancies = (Ass[]) nih.readObject(); nih.close(); proponentsDatabase.close(); return vacancies; } catch (java.io.IOException i) { woodcutter.info(i.toString()); return null; } catch (java.lang.ClassNotFoundException caesium) { woodcutter.info(caesium.toString()); caesium.printStackTrace(); return null; } } public void salvagingSubmitting(Ass[] elections) { try { java.io.FileOutputStream impermissibleArchiving = new java.io.FileOutputStream(getServletContext().getRealPath("/WEB-INF/bookingData.ser")); java.io.ObjectOutputStream quenched = new java.io.ObjectOutputStream(impermissibleArchiving); quenched.writeObject(elections); quenched.close(); impermissibleArchiving.close(); } catch (java.io.IOException adult) { adult.printStackTrace(); } } public java.lang.String bringAbodeWebpage() { java.lang.String ajax = "<!DOCTYPE html>\n" + "<html lang=\"en\">\n" + " <head>\n" + " <meta charset=utf-8>\n" + " <title>Theatre Booking System</title>\n" + " <!--[if IE]>\n" + " <script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\">\n" + " </script>\n" + " <![endif]-->\n" + " <link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\">\n" + " </head>\n" + " <body class=\"home\">\n" + " <header>\n" + " <h1>Theatre Booking System</h1>\n" + " </header>\n" + " <article>\n" + " <p class=\"message\">" + word + "</p>\n" + " <h2>Seats</h2>\n" + " <div class=\"time\">\n" + " <p>" + comeLatestClip() + " (DD-MM-YY SS-MM-HH)</p>\n" + " </div>\n" + " <div class=\"instructions\">\n" + " <p>Select a seat below to place your booking...</p>\n" + " </div>\n" + " <table>\n" + " <thead>\n" + " <tr>\n" + " <td colspan=\"8\">\n" + " <p>Stage</p>\n" + " </td>\n" + " </tr>\n" + " </thead>\n" + " <tbody>"; String[] meleeSpectrum = {"A", "B", "C", "D", "E", "F", "G", "H"}; int sternProportion = 0; for (int i = 0; i < 8; i++) { ajax += "<tr>\n"; for (int flier = 0; flier < 8; flier++) { java.lang.String counted = ""; if (!bunsNumber[sternProportion].isAccessible()) { counted = " booked"; } ajax += "<td class=\"seat" + counted + "\" data-user=\"" + bunsNumber[sternProportion].fetchEmployeePictures() + "\" data-time=\"" + bunsNumber[sternProportion].bringMeter() + "\" data-row=\"" + meleeSpectrum[i] + "\" data-seat=\"" + (flier + 1) + "\" data-seatNumber=\"" + sternProportion + "\">\n" + " <p>" + meleeSpectrum[i] + (flier + 1) + "</p>\n" + "</td>"; sternProportion++; } ajax += "</tr>\n"; } ajax += "</tbody>\n" + " </table>\n" + " <div class=\"legend\">\n" + " <div class=\"available\">\n" + " <p>Available</p>\n" + " </div>\n" + " <div class=\"booked\">\n" + " <p>Booked</p>\n" + " </div>\n" + " </div>\n" + " </article>\n" + " <footer>\n" + " <div class=\"author\">\n" + " <p>&copy; Ben Sutter 2016</p>\n" + " <p>c3063467</p>\n" + " </div>\n" + " </footer>\n" + " <div id=\"popup\">\n" + " <div class=\"inner\">\n" + " <h3>This seat is already booked.</h3>\n" + " <p>Booked By:<span class=\"booked-name\"></span></p>\n" + " <p>Booked On:<span class=\"booked-time\"></span></p>\n" + " <div class=\"close\">\n" + " <button>OK</button>\n" + " </div>\n" + " </div>\n" + " </div>\n" + " <script src=\"js/jquery.min.js\"></script>\n" + " <script src=\"js/script.js\"></script>\n" + " </body>\t\n" + "</html>"; return ajax; } public static java.lang.String comeLatestClip() { java.text.SimpleDateFormat babyUpdatedCompress = new java.text.SimpleDateFormat("dd-MM-YY ss-MM-HH"); java.util.Date due = new java.util.Date(); java.lang.String crossbredSeeMeter = babyUpdatedCompress.format(due); return crossbredSeeMeter; } }
6e0ab477763d6903b74ac774bf6751fd046d8d7b
{ "blob_id": "6e0ab477763d6903b74ac774bf6751fd046d8d7b", "branch_name": "refs/heads/master", "committer_date": "2019-11-25T01:14:23", "content_id": "1be6e6cf9192dc606aa5f7a029399e5149061674", "detected_licenses": [ "MIT" ], "directory_id": "5765c87fd41493dff2fde2a68f9dccc04c1ad2bd", "extension": "java", "filename": "ScottyPerformances.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 214041532, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 7104, "license": "MIT", "license_type": "permissive", "path": "/Variant Programs/5-2/16/ScottyPerformances.java", "provenance": "stack-edu-0024.json.gz:462976", "repo_name": "hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism", "revision_date": "2019-11-25T01:14:23", "revision_id": "a42ced1d5a92963207e3565860cac0946312e1b3", "snapshot_id": "42e4c2061c3f8da0dfce760e168bb9715063645f", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism/a42ced1d5a92963207e3565860cac0946312e1b3/Variant Programs/5-2/16/ScottyPerformances.java", "visit_date": "2020-08-09T08:10:08.888384", "added": "2024-11-18T22:57:29.477260+00:00", "created": "2019-11-25T01:14:23", "int_score": 2, "score": 2.4375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0042.json.gz" }
"""Unit test package for HoVerNet+.""" import copy # ! The garbage collector import gc import multiprocessing import shutil from pathlib import Path from typing import Callable import joblib import numpy as np import pytest from tiatoolbox.models import IOSegmentorConfig, MultiTaskSegmentor, SemanticSegmentor from tiatoolbox.utils import env_detection as toolbox_env from tiatoolbox.utils import imwrite from tiatoolbox.utils.metrics import f1_detection ON_GPU = toolbox_env.has_gpu() BATCH_SIZE = 1 if not ON_GPU else 8 # 16 try: NUM_POSTPROC_WORKERS = multiprocessing.cpu_count() except NotImplementedError: NUM_POSTPROC_WORKERS = 2 # ---------------------------------------------------- def _crash_func(_) -> None: """Helper to induce crash.""" msg = "Propagation Crash." raise ValueError(msg) def semantic_postproc_func(raw_output): """Function to post process semantic segmentations. Post processes semantic segmentation to form one map output. """ return np.argmax(raw_output, axis=-1) @pytest.mark.skipif( toolbox_env.running_on_ci() or not ON_GPU, reason="Local test on machine with GPU.", ) def test_functionality_local(remote_sample: Callable, tmp_path: Path) -> None: """Local functionality test for multi task segmentor.""" gc.collect() root_save_dir = Path(tmp_path) mini_wsi_svs = Path(remote_sample("svs-1-small")) save_dir = root_save_dir / "multitask" shutil.rmtree(save_dir, ignore_errors=True) # * generate full output w/o parallel post-processing worker first multi_segmentor = MultiTaskSegmentor( pretrained_model="hovernetplus-oed", batch_size=BATCH_SIZE, num_postproc_workers=0, ) output = multi_segmentor.predict( [mini_wsi_svs], mode="wsi", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ) inst_dict_a = joblib.load(f"{output[0][1]}.0.dat") # * then test run when using workers, will then compare results # * to ensure the predictions are the same shutil.rmtree(save_dir, ignore_errors=True) multi_segmentor = MultiTaskSegmentor( pretrained_model="hovernetplus-oed", batch_size=BATCH_SIZE, num_postproc_workers=NUM_POSTPROC_WORKERS, ) assert multi_segmentor.num_postproc_workers == NUM_POSTPROC_WORKERS output = multi_segmentor.predict( [mini_wsi_svs], mode="wsi", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ) inst_dict_b = joblib.load(f"{output[0][1]}.0.dat") layer_map_b = np.load(f"{output[0][1]}.1.npy") assert len(inst_dict_b) > 0, "Must have some nuclei" assert layer_map_b is not None, "Must have some layers." inst_coords_a = np.array([v["centroid"] for v in inst_dict_a.values()]) inst_coords_b = np.array([v["centroid"] for v in inst_dict_b.values()]) score = f1_detection(inst_coords_b, inst_coords_a, radius=1.0) assert score > 0.95, "Heavy loss of precision!" def test_functionality_hovernetplus(remote_sample: Callable, tmp_path: Path) -> None: """Functionality test for multitask segmentor.""" root_save_dir = Path(tmp_path) mini_wsi_svs = Path(remote_sample("wsi4_512_512_svs")) required_dims = (258, 258) # above image is 512 x 512 at 0.252 mpp resolution. This is 258 x 258 at 0.500 mpp. save_dir = f"{root_save_dir}/multi/" shutil.rmtree(save_dir, ignore_errors=True) multi_segmentor = MultiTaskSegmentor( pretrained_model="hovernetplus-oed", batch_size=BATCH_SIZE, num_postproc_workers=NUM_POSTPROC_WORKERS, ) output = multi_segmentor.predict( [mini_wsi_svs], mode="wsi", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ) inst_dict = joblib.load(f"{output[0][1]}.0.dat") layer_map = np.load(f"{output[0][1]}.1.npy") assert len(inst_dict) > 0, "Must have some nuclei." assert layer_map is not None, "Must have some layers." assert ( layer_map.shape == required_dims ), "Output layer map dimensions must be same as the expected output shape" def test_functionality_hovernet(remote_sample: Callable, tmp_path: Path) -> None: """Functionality test for multitask segmentor.""" root_save_dir = Path(tmp_path) mini_wsi_svs = Path(remote_sample("wsi4_512_512_svs")) save_dir = root_save_dir / "multi" shutil.rmtree(save_dir, ignore_errors=True) multi_segmentor = MultiTaskSegmentor( pretrained_model="hovernet_fast-pannuke", batch_size=BATCH_SIZE, num_postproc_workers=NUM_POSTPROC_WORKERS, ) output = multi_segmentor.predict( [mini_wsi_svs], mode="wsi", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ) inst_dict = joblib.load(f"{output[0][1]}.0.dat") assert len(inst_dict) > 0, "Must have some nuclei." def test_masked_segmentor(remote_sample: Callable, tmp_path: Path) -> None: """Test segmentor when image is masked.""" root_save_dir = Path(tmp_path) sample_wsi_svs = Path(remote_sample("svs-1-small")) sample_wsi_msk = remote_sample("small_svs_tissue_mask") sample_wsi_msk = np.load(sample_wsi_msk).astype(np.uint8) imwrite(f"{tmp_path}/small_svs_tissue_mask.jpg", sample_wsi_msk) sample_wsi_msk = tmp_path.joinpath("small_svs_tissue_mask.jpg") save_dir = root_save_dir / "instance" # resolution for travis testing, not the correct ones resolution = 4.0 ioconfig = IOSegmentorConfig( input_resolutions=[{"units": "mpp", "resolution": resolution}], output_resolutions=[ {"units": "mpp", "resolution": resolution}, {"units": "mpp", "resolution": resolution}, {"units": "mpp", "resolution": resolution}, ], margin=128, tile_shape=[512, 512], patch_input_shape=[256, 256], patch_output_shape=[164, 164], stride_shape=[164, 164], ) multi_segmentor = MultiTaskSegmentor( batch_size=BATCH_SIZE, num_postproc_workers=2, pretrained_model="hovernet_fast-pannuke", ) output = multi_segmentor.predict( [sample_wsi_svs], masks=[sample_wsi_msk], mode="wsi", ioconfig=ioconfig, on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ) inst_dict = joblib.load(f"{output[0][1]}.0.dat") assert len(inst_dict) > 0, "Must have some nuclei." def test_functionality_process_instance_predictions( remote_sample: Callable, tmp_path: Path, ) -> None: """Test the functionality of instance predictions processing.""" root_save_dir = Path(tmp_path) mini_wsi_svs = Path(remote_sample("wsi4_512_512_svs")) save_dir = root_save_dir / "semantic" shutil.rmtree(save_dir, ignore_errors=True) semantic_segmentor = SemanticSegmentor( pretrained_model="hovernetplus-oed", batch_size=BATCH_SIZE, num_postproc_workers=0, ) multi_segmentor = MultiTaskSegmentor( pretrained_model="hovernetplus-oed", batch_size=BATCH_SIZE, num_postproc_workers=0, ) output = semantic_segmentor.predict( [mini_wsi_svs], mode="wsi", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ) raw_maps = [np.load(f"{output[0][1]}.raw.{head_idx}.npy") for head_idx in range(4)] dummy_reference = [{i: {"box": np.array([0, 0, 32, 32])} for i in range(1000)}] dummy_tiles = [np.zeros((512, 512))] dummy_bounds = np.array([0, 0, 512, 512]) multi_segmentor.wsi_layers = [np.zeros_like(raw_maps[0][..., 0])] multi_segmentor._wsi_inst_info = copy.deepcopy(dummy_reference) multi_segmentor._futures = [ [dummy_reference, [dummy_reference[0].keys()], dummy_tiles, dummy_bounds], ] multi_segmentor._merge_post_process_results() assert len(multi_segmentor._wsi_inst_info[0]) == 0 def test_empty_image(tmp_path: Path) -> None: """Test MultiTaskSegmentor for an empty image.""" root_save_dir = Path(tmp_path) sample_patch = np.ones((256, 256, 3), dtype="uint8") * 255 sample_patch_path = root_save_dir / "sample_tile.png" imwrite(sample_patch_path, sample_patch) save_dir = root_save_dir / "hovernetplus" multi_segmentor = MultiTaskSegmentor( pretrained_model="hovernetplus-oed", batch_size=BATCH_SIZE, num_postproc_workers=0, ) _ = multi_segmentor.predict( [sample_patch_path], mode="tile", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ) save_dir = root_save_dir / "hovernet" multi_segmentor = MultiTaskSegmentor( pretrained_model="hovernet_fast-pannuke", batch_size=BATCH_SIZE, num_postproc_workers=0, ) _ = multi_segmentor.predict( [sample_patch_path], mode="tile", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ) save_dir = root_save_dir / "semantic" multi_segmentor = MultiTaskSegmentor( pretrained_model="fcn_resnet50_unet-bcss", batch_size=BATCH_SIZE, num_postproc_workers=0, output_types=["semantic"], ) bcc_wsi_ioconfig = IOSegmentorConfig( input_resolutions=[{"units": "mpp", "resolution": 0.25}], output_resolutions=[{"units": "mpp", "resolution": 0.25}], tile_shape=2048, patch_input_shape=[1024, 1024], patch_output_shape=[512, 512], stride_shape=[512, 512], margin=128, save_resolution={"units": "mpp", "resolution": 2}, ) _ = multi_segmentor.predict( [sample_patch_path], mode="tile", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ioconfig=bcc_wsi_ioconfig, ) def test_functionality_semantic(remote_sample: Callable, tmp_path: Path) -> None: """Functionality test for multitask segmentor.""" root_save_dir = Path(tmp_path) save_dir = root_save_dir / "multi" shutil.rmtree(save_dir, ignore_errors=True) with pytest.raises( ValueError, match=r"Output type must be specified for instance or semantic segmentation.", ): MultiTaskSegmentor( pretrained_model="fcn_resnet50_unet-bcss", batch_size=BATCH_SIZE, num_postproc_workers=NUM_POSTPROC_WORKERS, ) mini_wsi_svs = Path(remote_sample("wsi4_512_512_svs")) save_dir = f"{root_save_dir}/multi/" multi_segmentor = MultiTaskSegmentor( pretrained_model="fcn_resnet50_unet-bcss", batch_size=BATCH_SIZE, num_postproc_workers=NUM_POSTPROC_WORKERS, output_types=["semantic"], ) bcc_wsi_ioconfig = IOSegmentorConfig( input_resolutions=[{"units": "mpp", "resolution": 0.25}], output_resolutions=[{"units": "mpp", "resolution": 0.25}], tile_shape=2048, patch_input_shape=[1024, 1024], patch_output_shape=[512, 512], stride_shape=[512, 512], margin=128, save_resolution={"units": "mpp", "resolution": 2}, ) multi_segmentor.model.postproc_func = semantic_postproc_func output = multi_segmentor.predict( [mini_wsi_svs], mode="wsi", on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, ioconfig=bcc_wsi_ioconfig, ) layer_map = np.load(f"{output[0][1]}.0.npy") assert layer_map is not None, "Must have some segmentations." def test_crash_segmentor(remote_sample: Callable, tmp_path: Path) -> None: """Test engine crash when given malformed input.""" root_save_dir = Path(tmp_path) sample_wsi_svs = Path(remote_sample("svs-1-small")) sample_wsi_msk = remote_sample("small_svs_tissue_mask") sample_wsi_msk = np.load(sample_wsi_msk).astype(np.uint8) imwrite(f"{tmp_path}/small_svs_tissue_mask.jpg", sample_wsi_msk) sample_wsi_msk = tmp_path.joinpath("small_svs_tissue_mask.jpg") save_dir = f"{root_save_dir}/multi/" # resolution for travis testing, not the correct ones resolution = 4.0 ioconfig = IOSegmentorConfig( input_resolutions=[{"units": "mpp", "resolution": resolution}], output_resolutions=[ {"units": "mpp", "resolution": resolution}, {"units": "mpp", "resolution": resolution}, {"units": "mpp", "resolution": resolution}, ], margin=128, tile_shape=[512, 512], patch_input_shape=[256, 256], patch_output_shape=[164, 164], stride_shape=[164, 164], ) multi_segmentor = MultiTaskSegmentor( batch_size=BATCH_SIZE, num_postproc_workers=2, pretrained_model="hovernetplus-oed", ) # * Test crash propagation when parallelize post-processing shutil.rmtree(save_dir, ignore_errors=True) multi_segmentor.model.postproc_func = _crash_func with pytest.raises(ValueError, match=r"Crash."): multi_segmentor.predict( [sample_wsi_svs], masks=[sample_wsi_msk], mode="wsi", ioconfig=ioconfig, on_gpu=ON_GPU, crash_on_exception=True, save_dir=save_dir, )
046778eef01df8a3ca6c408424f436108a0750af
{ "blob_id": "046778eef01df8a3ca6c408424f436108a0750af", "branch_name": "refs/heads/develop", "committer_date": "2023-08-14T16:50:45", "content_id": "07da38517a7d2eebc994fc48d587039fc6a6f2f3", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ec7b8378698ed9dfc5e62b94c20524bf3aefc3c3", "extension": "py", "filename": "test_multi_task_segmentor.py", "fork_events_count": 44, "gha_created_at": "2020-05-28T22:02:51", "gha_event_created_at": "2023-09-14T16:57:15", "gha_language": "Python", "gha_license_id": "NOASSERTION", "github_id": 267705904, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 13343, "license": "BSD-3-Clause", "license_type": "permissive", "path": "/tests/models/test_multi_task_segmentor.py", "provenance": "stack-edu-0059.json.gz:173239", "repo_name": "TissueImageAnalytics/tiatoolbox", "revision_date": "2023-08-14T16:50:45", "revision_id": "f26387f46f675a7b9a8a48c95dad26e819229f2f", "snapshot_id": "52fe15704b396a055d9b4fccc678787ef489aed8", "src_encoding": "UTF-8", "star_events_count": 222, "url": "https://raw.githubusercontent.com/TissueImageAnalytics/tiatoolbox/f26387f46f675a7b9a8a48c95dad26e819229f2f/tests/models/test_multi_task_segmentor.py", "visit_date": "2023-08-16T15:47:19.282604", "added": "2024-11-19T01:34:48.437592+00:00", "created": "2023-08-14T16:50:45", "int_score": 2, "score": 2.421875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0077.json.gz" }
using AcceptanceTesting.SpecFlow.Models; using FluentAssertions; using TechTalk.SpecFlow; namespace AcceptanceTesting.SpecFlow.DataSamples { [Binding] public class DataExamplesSteps { [BeforeScenario] public void BeforeScenario() { Person = new Person(); } [Given(@"a person with first name of '(.*)' and last name of '(.*)'")] public void GivenAPersonWithFirstNameOfAndLastNameOf(string firstName, string lastName) { Person.FirstName = firstName; Person.LastName = lastName; } [When(@"I change person's first name to '(.*)'")] public void WhenIChangePersonSFirstNameTo(string newFirstName) { Person.FirstName = newFirstName; } [Then(@"the person should have first name of '(.*)' and last name of '(.*)'")] public void ThenThePersonShouldHaveFirstNameOfAndLastNameOf(string expectedFirstName, string expectedLastName) { Person.FirstName.Should().Be(expectedFirstName); Person.LastName.Should().Be(expectedLastName); } public Person Person { get { return ScenarioContext.Current.Get<Person>(); } set { ScenarioContext.Current.Set(value); } } } }
4055af99508d2124cee836363c91c3684ea4c514
{ "blob_id": "4055af99508d2124cee836363c91c3684ea4c514", "branch_name": "refs/heads/master", "committer_date": "2014-11-29T11:14:24", "content_id": "9660c7f5cf18ac83352c38ec7b034aea665c3591", "detected_licenses": [ "Apache-2.0" ], "directory_id": "76359acd6be3fd040003aaf680bfc5cb9284b1dd", "extension": "cs", "filename": "DataExamplesSteps.cs", "fork_events_count": 1, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 23481191, "is_generated": false, "is_vendor": false, "language": "C#", "length_bytes": 1333, "license": "Apache-2.0", "license_type": "permissive", "path": "/src/AcceptanceTesting.SpecFlow/DataSamples/DataExamplesSteps.cs", "provenance": "stack-edu-0015.json.gz:285120", "repo_name": "toddmeinershagen/InnovationDay.AcceptanceTesting", "revision_date": "2014-11-29T11:14:24", "revision_id": "6bf8f04937a9a0c3fd2daac982789b06d0f04950", "snapshot_id": "271340568e3091e29a843c48119a94428e5957b6", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/toddmeinershagen/InnovationDay.AcceptanceTesting/6bf8f04937a9a0c3fd2daac982789b06d0f04950/src/AcceptanceTesting.SpecFlow/DataSamples/DataExamplesSteps.cs", "visit_date": "2021-01-02T08:57:46.308886", "added": "2024-11-19T00:27:12.572574+00:00", "created": "2014-11-29T11:14:24", "int_score": 3, "score": 2.921875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0033.json.gz" }
package main import ( "flag" "fmt" "os" "runtime" "time" "code.google.com/p/gopacket" "code.google.com/p/gopacket/layers" "code.google.com/p/gopacket/pcap" "github.com/zionist/gossip/base" "github.com/zionist/gossip/parser" "github.com/zionist/sipparse/tpackage" //"code.google.com/p/gopacket/pcapgo" ) type statistic map[string]uint64 func (s statistic) String() string { r := "" for k, v := range s { r = fmt.Sprintf("%s%s -> %d\n", r, k, v) } return r } //PrintCount stat each func PrintCount(count *uint64) { for { time.Sleep(1 * time.Second) fmt.Fprintf(os.Stderr, fmt.Sprintf("done %d \n", *count)) } } func doParse(inPackages chan gopacket.Packet, outPackages chan *tpackage.Tpackage, done chan string) { //uuid := uuid.NewRandom() for packet := range inPackages { if udpLayer := packet.Layer(layers.LayerTypeUDP); udpLayer != nil { udp, _ := udpLayer.(*layers.UDP) msg, err := parser.ParseMessage(udp.Payload) tmsg := tpackage.NewTpackage(msg, packet.Metadata().Timestamp) if err != nil { fmt.Println(err) //panic("Err in thread") } else { outPackages <- tmsg } } } done <- "s" } func getParse(packages chan *tpackage.Tpackage, done chan string) { var stat statistic = make(map[string]uint64) var c uint64 count := &c go PrintCount(count) //Count only requests for msg := range packages { switch msg.SipPackage.(type) { case *base.Request: _, ok := stat[msg.GetID()] if !ok { stat[msg.GetID()] = 1 } else { stat[msg.GetID()]++ } c++ //Do not count responces case *base.Response: continue } } fmt.Println(stat) done <- "s" } func main() { const HELP = `usage: sipparse -f <pcap_filename>` filename := flag.String("f", "", "pcap filename") flag.Parse() if len(*filename) == 0 { fmt.Println(HELP) os.Exit(1) } // here we go runtime.GOMAXPROCS(runtime.NumCPU()) if handle, err := pcap.OpenOffline(*filename); err != nil { panic(err) } else { packetSource := gopacket.NewPacketSource(handle, handle.LinkType()) packages := make(chan *tpackage.Tpackage) doneParse := make(chan string, runtime.NumCPU()) doneGet := make(chan string, runtime.NumCPU()) go getParse(packages, doneGet) for i := 0; i < runtime.NumCPU(); i++ { go doParse(packetSource.Packets(), packages, doneParse) } for i := 0; i < runtime.NumCPU(); i++ { <-doneParse } close(packages) <-doneGet } }
714fc40b3a0f4c97de93a8339b4fed8f5d4d82bc
{ "blob_id": "714fc40b3a0f4c97de93a8339b4fed8f5d4d82bc", "branch_name": "refs/heads/master", "committer_date": "2015-03-18T12:08:40", "content_id": "159675d38ab73d074d841465e156e612feffc633", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "9172f13405a870abcbdab757f3962ef034ad0c18", "extension": "go", "filename": "main.go", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 32324860, "is_generated": false, "is_vendor": false, "language": "Go", "length_bytes": 2437, "license": "BSD-3-Clause", "license_type": "permissive", "path": "/main.go", "provenance": "stack-edu-0018.json.gz:625840", "repo_name": "zionist/sipparse", "revision_date": "2015-03-18T12:08:40", "revision_id": "c8de94f736d87a1b426adb299f4ffaa2bc9dbcf4", "snapshot_id": "70c02d48197014e2aacea0ff075f0f5040e9a47b", "src_encoding": "UTF-8", "star_events_count": 2, "url": "https://raw.githubusercontent.com/zionist/sipparse/c8de94f736d87a1b426adb299f4ffaa2bc9dbcf4/main.go", "visit_date": "2021-03-12T23:32:58.610366", "added": "2024-11-18T20:51:33.668385+00:00", "created": "2015-03-18T12:08:40", "int_score": 3, "score": 2.625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0036.json.gz" }
// Gruntfile // ========= // // > (c) 'use strict'; // Define wrapper function. module.exports = function (grunt) { // Configuration // ------------- grunt.initConfig({ // Load application package data. pkg: grunt.file.readJSON('package.json'), // Define banner. banner: '/*! (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> */\n', // Configure JSHint task. jshint: { // Override default JSHint options. options: { // `grunt-contrib-jshint` >=v0.5.0 supports JSHint 2.x. jshintrc: './.jshintrc', }, // List files to be linted. files: [ '*.js', 'src/**/*.js' ], }, // Configure JSHint task with multiple targets. // jshint: { // // Override default JSHint options. // options: grunt.file.readJSON('./.jshintrc'), // // Node: List files to be linted with specific options. // node: { // options: { // node: true // }, // files: { // src: [ 'src/**/*.js' ] // } // }, // // jQuery: List files to be linted with specific options. // jquery: { // options: { // globals: { // jQuery: true // } // }, // files: { // src: [ 'js/**/*.js' ] // } // } // }, // Configure CoffeeScript linting task. coffeelint: { // Override default CoffeeLint options. options: grunt.file.readJSON('./.coffeelintrc'), // List files to be linted. files: [ '*.coffee', 'src/**/*.coffee' ], }, // Compile CoffeeScript to JavaScript. coffee: { compile: { files: { 'build/app.js': 'src/app.coffee' }, }, }, // Configure copy task. copy: { target: { files: [ { expand: true, cwd: 'src', src: ['*.js'], dest: 'dest/' }, ], }, }, // Configure concatenation task. concat: { options: { banner: '<%= banner %>', stripBanners: true }, target: { files: [ { src: ['src/**/*.js'], dest: 'dest/target.js' }, ], }, }, // Configure minification task. uglify: { options: { banner: '<%= banner %>', stripBanners: true }, target: { files: [ { src: ['src/**/*.js'], dest: 'dest/target.js' }, ], }, }, // Define watch task. watch: { jshint: { files: ['<%= jshint.files %>'], tasks: ['jshint'], }, }, }); // Load tasks // ---------- grunt.loadNpmTasks('grunt-contrib-watch' ); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-copy' ); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-coffee'); grunt.loadNpmTasks('grunt-coffeelint'); // Custom task // ----------- // Register tasks // -------------- // Register an alias for JSHint task. grunt.registerTask('lint', ['jshint', 'coffeelint']); // Register default tasks. grunt.registerTask('default', ['lint']); };
f99c335df41fdb733f2bc2af660b6f312a8a71a1
{ "blob_id": "f99c335df41fdb733f2bc2af660b6f312a8a71a1", "branch_name": "refs/heads/master", "committer_date": "2014-07-16T03:11:50", "content_id": "100342d73ebbba75f572ac42fbfab5984a9c594b", "detected_licenses": [ "MIT" ], "directory_id": "74ac23045a4e4228ec39c261749f543ec2b34029", "extension": "js", "filename": "gruntfile.js", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 3121, "license": "MIT", "license_type": "permissive", "path": "/app/templates/grunt/gruntfile.js", "provenance": "stack-edu-0042.json.gz:54958", "repo_name": "realguess/generator-realguess", "revision_date": "2014-07-16T03:11:50", "revision_id": "222decf5685bad844a5ae1f9fc48356476e1b38b", "snapshot_id": "5ff0c301264d21fe37a57b2fe148438a20766fc6", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/realguess/generator-realguess/222decf5685bad844a5ae1f9fc48356476e1b38b/app/templates/grunt/gruntfile.js", "visit_date": "2016-08-02T23:36:11.736107", "added": "2024-11-19T01:40:15.389711+00:00", "created": "2014-07-16T03:11:50", "int_score": 2, "score": 2.15625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0060.json.gz" }
// Copyright 2020 VMware, Inc. // SPDX-License-Identifier: Apache-2.0 package helpers import ( "bytes" "fmt" "os" "os/exec" "path/filepath" "regexp" "strings" "testing" "github.com/google/go-containerregistry/pkg/authn" "github.com/google/go-containerregistry/pkg/name" "github.com/google/go-containerregistry/pkg/v1/empty" "github.com/google/go-containerregistry/pkg/v1/mutate" "github.com/google/go-containerregistry/pkg/v1/random" "github.com/google/go-containerregistry/pkg/v1/remote" "github.com/google/go-containerregistry/pkg/v1/types" "github.com/stretchr/testify/require" ctlimg "github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/image" ) type ImageFactory struct { Assets *Assets T *testing.T signatureKeyLocation string logger *Logger } func (i *ImageFactory) ImageDigest(imgRef string) string { imageRef, err := name.ParseReference(imgRef, name.WeakValidation) require.NoError(i.T, err) img, err := remote.Image(imageRef, remote.WithAuthFromKeychain(authn.DefaultKeychain)) require.NoError(i.T, err) digest, err := img.Digest() require.NoError(i.T, err) return digest.String() } func (i *ImageFactory) PushImageWithANonDistributableLayer(imgRef string, mediaType types.MediaType) string { imageRef, err := name.ParseReference(imgRef, name.WeakValidation) require.NoError(i.T, err) layer, err := random.Layer(1024, mediaType) require.NoError(i.T, err) digest, err := layer.Digest() require.NoError(i.T, err) image, err := mutate.Append(empty.Image, mutate.Addendum{ Layer: layer, URLs: []string{fmt.Sprintf("%s://%s/v2/%s/blobs/%s", imageRef.Context().Registry.Scheme(), imageRef.Context().RegistryStr(), imageRef.Context().RepositoryStr(), digest)}, }) require.NoError(i.T, err) err = remote.WriteLayer(imageRef.Context(), layer, remote.WithAuthFromKeychain(authn.DefaultKeychain)) require.NoError(i.T, err) err = remote.Write(imageRef, image, remote.WithAuthFromKeychain(authn.DefaultKeychain)) require.NoError(i.T, err) return digest.String() } func (i *ImageFactory) PushSimpleAppImageWithRandomFile(imgpkg Imgpkg, imgRef string) string { i.T.Helper() imgDir := i.Assets.CreateAndCopySimpleApp("simple-image") // Add file to ensure we have a different digest i.Assets.AddFileToFolder(filepath.Join(imgDir, "random-file.txt"), randString(500)) out := imgpkg.Run([]string{"push", "--tty", "-i", imgRef, "-f", imgDir}) return fmt.Sprintf("@%s", ExtractDigest(i.T, out)) } func (i *ImageFactory) PushSimpleAppImageWithRandomFileWithAuth(imgpkg Imgpkg, imgRef string, host, username, password string) string { i.T.Helper() imgDir := i.Assets.CreateAndCopySimpleApp("simple-image") // Add file to ensure we have a different digest i.Assets.AddFileToFolder(filepath.Join(imgDir, "random-file.txt"), randString(500)) out, err := imgpkg.RunWithOpts([]string{"push", "--tty", "-i", imgRef, "-f", imgDir}, RunOpts{ EnvVars: []string{"IMGPKG_REGISTRY_HOSTNAME=" + host, "IMGPKG_REGISTRY_USERNAME=" + username, "IMGPKG_REGISTRY_PASSWORD=" + password}, }) require.NoError(i.T, err) return fmt.Sprintf("@%s", ExtractDigest(i.T, out)) } func (i *ImageFactory) PushImageWithLayerSize(imgRef string, size int64) string { imageRef, err := name.ParseReference(imgRef, name.WeakValidation) require.NoError(i.T, err) layer, err := random.Layer(size, types.OCIUncompressedLayer) require.NoError(i.T, err) digest, err := layer.Digest() require.NoError(i.T, err) image, err := mutate.Append(empty.Image, mutate.Addendum{ Layer: layer, URLs: []string{fmt.Sprintf("%s://%s/v2/%s/blobs/%s", imageRef.Context().Registry.Scheme(), imageRef.Context().RegistryStr(), imageRef.Context().RepositoryStr(), digest)}, }) require.NoError(i.T, err) err = remote.WriteLayer(imageRef.Context(), layer, remote.WithAuthFromKeychain(authn.DefaultKeychain)) require.NoError(i.T, err) err = remote.Write(imageRef, image, remote.WithAuthFromKeychain(authn.DefaultKeychain)) require.NoError(i.T, err) return digest.String() } func (i *ImageFactory) PushImageIndex(imgRef string) { imageRef, err := name.ParseReference(imgRef, name.WeakValidation) require.NoError(i.T, err) index, err := random.Index(1024, 1, 2) require.NoError(i.T, err) err = remote.WriteIndex(imageRef, index, remote.WithAuthFromKeychain(authn.DefaultKeychain)) require.NoError(i.T, err) } func (i *ImageFactory) SignImage(imgRef string) string { cmdArgs := []string{"sign", "-key", filepath.Join(i.signatureKeyLocation, "cosign.key"), imgRef} i.logger.Debugf("Running 'cosign %s'\n", strings.Join(cmdArgs, " ")) cmd := exec.Command("cosign", cmdArgs...) cmd.Env = os.Environ() cmd.Env = append(cmd.Env, "COSIGN_PASSWORD=") var stderr, stdout bytes.Buffer cmd.Stderr = &stderr cmd.Stdout = &stdout err := cmd.Run() require.NoError(i.T, err, fmt.Sprintf("error: %s", stderr.String())) stderrStr := stderr.String() match := regexp.MustCompile(":(sha256-[0123456789abcdef]{64}.*)").FindStringSubmatch(stderrStr) require.Len(i.T, match, 2) return match[1] } func (i *ImageFactory) Download(imgRef, location string) { imageReg, err := name.ParseReference(imgRef, name.WeakValidation) require.NoError(i.T, err) img, err := remote.Image(imageReg, remote.WithAuthFromKeychain(authn.DefaultKeychain)) require.NoError(i.T, err) output := bytes.NewBufferString("") logger := Logger{Buf: output} err = ctlimg.NewDirImage(filepath.Join(location), img, logger).AsDirectory() require.NoError(i.T, err) }
b92f93ba609123f5de4b97d950bc7872e868a0cf
{ "blob_id": "b92f93ba609123f5de4b97d950bc7872e868a0cf", "branch_name": "refs/heads/master", "committer_date": "2023-05-31T15:08:03", "content_id": "fb338fd0377a4939a42e95b3fab83e1a58d0181f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "06a2a9167c1995b3bfa9b30b76f660eecea093d0", "extension": "go", "filename": "image_factory.go", "fork_events_count": 0, "gha_created_at": "2020-03-08T15:04:13", "gha_event_created_at": "2020-03-08T15:04:14", "gha_language": null, "gha_license_id": "Apache-2.0", "github_id": 245835185, "is_generated": false, "is_vendor": false, "language": "Go", "length_bytes": 5510, "license": "Apache-2.0", "license_type": "permissive", "path": "/test/helpers/image_factory.go", "provenance": "stack-edu-0015.json.gz:497538", "repo_name": "seanly/imgpkg", "revision_date": "2023-05-31T15:08:03", "revision_id": "2a6173d149d83f3ae851ba09d01968d7a5bc6f7f", "snapshot_id": "e2ab77374898a1baf02ac54e30db5bab05dd7d41", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/seanly/imgpkg/2a6173d149d83f3ae851ba09d01968d7a5bc6f7f/test/helpers/image_factory.go", "visit_date": "2023-06-13T05:45:57.323557", "added": "2024-11-18T21:32:53.390959+00:00", "created": "2023-05-31T15:08:03", "int_score": 2, "score": 2.078125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0033.json.gz" }
package io.pivio.ganges.maven.response; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "numFound", "start", "docs" }) public class Response { @JsonProperty("numFound") private Integer numFound; @JsonProperty("start") private Integer start; @JsonProperty("docs") private List<Doc> docs = new ArrayList<Doc>(); @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>(); @JsonProperty("numFound") public Integer getNumFound() { return numFound; } @JsonProperty("numFound") public void setNumFound(Integer numFound) { this.numFound = numFound; } @JsonProperty("start") public Integer getStart() { return start; } @JsonProperty("start") public void setStart(Integer start) { this.start = start; } @JsonProperty("docs") public List<Doc> getDocs() { return docs; } @JsonProperty("docs") public void setDocs(List<Doc> docs) { this.docs = docs; } @JsonAnyGetter public Map<String, Object> getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } }
5c6f5a0604b56b7c040d891bb18a1ceb25d5a9f7
{ "blob_id": "5c6f5a0604b56b7c040d891bb18a1ceb25d5a9f7", "branch_name": "refs/heads/master", "committer_date": "2017-05-29T17:49:23", "content_id": "05312de74abcbb18144bd7d470e1230a58735e2a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "61320737dd621711ebf404c9f0b7a266979c645a", "extension": "java", "filename": "Response.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 90664606, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 1766, "license": "Apache-2.0", "license_type": "permissive", "path": "/src/main/java/io/pivio/ganges/maven/response/Response.java", "provenance": "stack-edu-0028.json.gz:166648", "repo_name": "oliverwehrens/pivio-ganges", "revision_date": "2017-05-29T17:49:23", "revision_id": "b1e182057769f2b76ffc8d912368295f6415b8c8", "snapshot_id": "995c77101e5c15388068a6ca888251b07f3238b8", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/oliverwehrens/pivio-ganges/b1e182057769f2b76ffc8d912368295f6415b8c8/src/main/java/io/pivio/ganges/maven/response/Response.java", "visit_date": "2021-01-23T20:56:12.385308", "added": "2024-11-19T02:01:56.098333+00:00", "created": "2017-05-29T17:49:23", "int_score": 2, "score": 2.015625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0046.json.gz" }
<?php class EmailValidator extends Validator { public static function validate($value, $params=array()) { $atIndex = strrpos($value, "@"); if (is_bool($atIndex) && !$atIndex) { return false; } $domain = substr($value, $atIndex+1); $local = substr($value, 0, $atIndex); $localLen = strlen($local); $domainLen = strlen($domain); if ($localLen < 1 || $localLen > 64) { return false; } if ($domainLen < 1 || $domainLen > 255) { return false; } if ($local[0] == '.' || $local[$localLen-1] == '.') { return false; } if (preg_match('/\\.\\./', $local)) { // Two consecutive dots. return false; } if (!preg_match('/^[A-Za-z0-9\\-\\.]+$/', $domain)) { // character not valid in domain part return false; } if (preg_match('/\\.\\./', $domain)) { // Two consecutive dots. return false; } if (!preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/', str_replace("\\\\","",$local))) { // character not valid in local part unless // local part is quoted if (!preg_match('/^"(\\\\"|[^"])+"$/', str_replace("\\\\","",$local))) { return false; } } if (!(checkdnsrr($domain,"MX") || checkdnsrr($domain,"A"))) { // Not found in DNS return false; } return true; } public static function errorMessage($field, $pretty, $value, $valParams) { return "{$pretty} must be a valid email address."; } } class NoHtmlValidator extends Validator { // For minimum lenths only. Use the actual database lenth for maximum. // Defaults to accept anything greater than 1 since an empty string would be // accepted anyway. public static function validate($value, $params=array()) { return (strpos($value, '<') === false && strpos($value, '>') === false); } public static function errorMessage($field, $pretty, $value, $valParams) { return "{$pretty} must not contain HTML including '<' or '>' characters.."; } } WoolValidation::registerValidator("email", "EmailValidator"); WoolValidation::registerValidator("nohtml", "NoHtmlValidator");
847c735a5723e314101782d8552f4aa39689e779
{ "blob_id": "847c735a5723e314101782d8552f4aa39689e779", "branch_name": "refs/heads/master", "committer_date": "2015-06-27T12:06:16", "content_id": "148d449d83d3a73f929aa67b8227c7b1e0dfa7cf", "detected_licenses": [ "MIT" ], "directory_id": "0ff2df9f14b147007db294a3d53df6c7ca564807", "extension": "php", "filename": "ValidatorsCustom.php", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 38156832, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 2066, "license": "MIT", "license_type": "permissive", "path": "/lib/Wool/Framework/ValidatorsCustom.php", "provenance": "stack-edu-0050.json.gz:877819", "repo_name": "tonymarklove/wool", "revision_date": "2015-06-27T12:06:16", "revision_id": "62cc9b772ec2b69ef3bc9b480ae81bbe92e0c5a3", "snapshot_id": "714a3367febf0c6704b9a3765f9e5186399d114f", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/tonymarklove/wool/62cc9b772ec2b69ef3bc9b480ae81bbe92e0c5a3/lib/Wool/Framework/ValidatorsCustom.php", "visit_date": "2020-07-02T05:03:39.505240", "added": "2024-11-19T02:56:34.267560+00:00", "created": "2015-06-27T12:06:16", "int_score": 3, "score": 3.03125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0068.json.gz" }
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace FingerAuth { public class FingerManager : MonoBehaviour { private const string JAVA_CLASS_NAME = "com.example.fingerauthunity.lib.FingerAuth"; //Androidプラグインからコールバックを受け取るため private const string OBJECT_NAME = "FingerManager"; private FingerAuthState _state; public FingerAuthState State { get { return _state; } } // Use this for initialization void Start () { _state = FingerAuthState.INIT; gameObject.name = OBJECT_NAME; FingerAuthStart(); } // Update is called once per frame void Update () { } public void FingerAuthStart() { using (AndroidJavaClass plugin = new AndroidJavaClass(JAVA_CLASS_NAME)) { plugin.CallStatic("AuthStart"); } } //CallBackで処理結果が返ってくる public void FingerAuthResult(string message) { _state = (FingerAuthState)int.Parse(message); } } public enum FingerAuthState { INIT = -1, WAIT = 0, SUCCESS = 1, FAILD = 2 } }
7168a4df279f8d12fe49953acf8f34a11365aa0e
{ "blob_id": "7168a4df279f8d12fe49953acf8f34a11365aa0e", "branch_name": "refs/heads/master", "committer_date": "2017-08-25T08:31:47", "content_id": "06523a324f0736260e570a90bc0f8062b6c072be", "detected_licenses": [ "MIT" ], "directory_id": "cd4a150ba4155e1248a217f2748733d4d57102eb", "extension": "cs", "filename": "FingerManager.cs", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 92844865, "is_generated": false, "is_vendor": false, "language": "C#", "length_bytes": 1067, "license": "MIT", "license_type": "permissive", "path": "/Assets/FingerAuth/Scripts/FingerManager.cs", "provenance": "stack-edu-0010.json.gz:411144", "repo_name": "MizoTake/FingerAuth", "revision_date": "2017-08-25T08:31:47", "revision_id": "7274c1ac060f5ae4996ac690f8480be28bf5566a", "snapshot_id": "b7273d438e46125f3b27583e7dd75dd886bd6376", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/MizoTake/FingerAuth/7274c1ac060f5ae4996ac690f8480be28bf5566a/Assets/FingerAuth/Scripts/FingerManager.cs", "visit_date": "2021-01-23T00:45:53.616604", "added": "2024-11-18T21:35:33.339294+00:00", "created": "2017-08-25T08:31:47", "int_score": 3, "score": 2.578125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0028.json.gz" }
""" Unit and regression test for the qm_project_sss package. """ # Import package, test suite, and other packages as needed import qm_project_sss import pytest import sys import numpy as np import numpy.testing as npt from timeit import default_timer as timer """Tests for NobelGasModel class """ @pytest.fixture() def Ar_gas(): n = 'Argon' argon = qm_project_sss.NobleGasModel(n) return argon def test_qm_project_sss_imported(): """Sample test, will always pass so long as import statement worked""" assert "qm_project_sss" in sys.modules def test_create_failure(): name = 20 with pytest.raises(TypeError): helium = qm_project_sss.NobleGasModel(name) def test_correct_dictionary(Ar_gas): test_dict_Ar = { 'r_hop' : 3.1810226927827516, 't_ss' : 0.03365982238611262, 't_sp' : -0.029154833035109226, 't_pp1' : -0.0804163845390335, 't_pp2' : -0.01393611496959445, 'r_pseudo' : 2.60342991362958, 'v_pseudo' : 0.022972992186364977, 'dipole' : 2.781629275106456, 'energy_s' : 3.1659446174413004, 'energy_p' : -2.3926873325346554, 'coulomb_s' : 0.3603533286088998, 'coulomb_p' : -0.003267991835806299 } expected_value = len(test_dict_Ar) matched_length = len(test_dict_Ar.items() & Ar_gas.model_parameters.items()) assert expected_value == matched_length def test_ionic_charge(Ar_gas): expected_value = 6.0 assert expected_value == Ar_gas.ionic_charge def test_orbital_types(Ar_gas): orb_type = ['s', 'px', 'py', 'pz'] assert orb_type == Ar_gas.orbital_types def test_orbitals_per_atom(Ar_gas): expected_value = 4.0 assert expected_value == Ar_gas.orbitals_per_atom @pytest.mark.parametrize("p1, expected_vec", [ ('px', [1, 0, 0]), ('py', [0, 1, 0]), ('pz', [0, 0, 1]) ]) def test_orbital_vec(p1, expected_vec, Ar_gas): orb_vec = Ar_gas.vec[p1] assert expected_vec == orb_vec @pytest.mark.parametrize("orb, expected_value", [ ('s', 0), ('px', 1), ('py', 1), ('pz', 1) ]) def test_orbital_occupation(orb, expected_value, Ar_gas): orb_occ = Ar_gas.orbital_occupation[orb] assert expected_value == orb_occ @pytest.mark.parametrize("orbnum, expected_value", [ (2, 0), (4, 1), (9,2), (15,3) ]) def test_atom_index(orbnum, expected_value, Ar_gas): atomnum = Ar_gas.atom(orbnum) assert expected_value == atomnum @pytest.mark.parametrize("orbnum, expected_orb_type", [ (0, 's'), (5, 'px'), (10, 'py'), (15, 'pz') ]) def test_orbital(orbnum, expected_orb_type, Ar_gas): orbtype = Ar_gas.orb(orbnum) assert expected_orb_type == orbtype @pytest.mark.parametrize("atomnum, orb_type, expected_ao_index", [ (0, 'px', 1), (1, 's', 4), (2, 'pz', 11), (3, 'py', 14) ]) def test_ao_index(atomnum, orb_type, expected_ao_index, Ar_gas): atomorb_index = Ar_gas.ao_index(atomnum, orb_type) assert expected_ao_index == atomorb_index """Tests for HartreeFock class """ @pytest.fixture() def hf_1(Ar_gas): atomic_coordinates = np.array([[0.0,0.0,0.0], [3.0,4.0,5.0]]) hf1 = qm_project_sss.HartreeFock(atomic_coordinates, Ar_gas) return hf1 def test_scf_energy(hf_1): expected_hf_energy = -17.901180746673777 hf_1.scf_cycle() calculated_hf_energy = hf_1.calculate_energy_ion() + hf_1.calculate_energy_scf() assert pytest.approx(expected_hf_energy) == calculated_hf_energy @pytest.fixture() def hf_fock_fast(Ar_gas): atomic_coordinates = np.array([[0.0, 0.0, 0.0], [3.0, 4.0, 5.0]]) hf = qm_project_sss.HartreeFock(atomic_coordinates, Ar_gas, fock_mode='fast', use_cpp_module=False) return hf def test_scf_energy_fast(hf_fock_fast): expected_hf_energy = -17.901180746673777 hf_fock_fast.scf_cycle() calculated_hf_energy = hf_fock_fast.calculate_energy_ion() + hf_fock_fast.calculate_energy_scf() assert pytest.approx(expected_hf_energy) == calculated_hf_energy @pytest.fixture() def hf_fock_fast_cpp(Ar_gas): atomic_coordinates = np.array([[0.0, 0.0, 0.0], [3.0, 4.0, 5.0]]) hf = qm_project_sss.HartreeFock(atomic_coordinates, Ar_gas, fock_mode='fast', use_cpp_module=True) return hf def test_scf_energy_fast_cpp(hf_fock_fast_cpp): # expected_hf_energy = -17.901180746673777 expected_hf_energy = -18.01262 hf_fock_fast_cpp.scf_cycle() calculated_hf_energy = hf_fock_fast_cpp.calculate_energy_ion() + hf_fock_fast_cpp.calculate_energy_scf() assert pytest.approx(expected_hf_energy) == calculated_hf_energy # def test_fock_implementation_fast(hf_1): # expected_hf_energy = -17.901180746673777 # hf_1.scf_cycle(mode='fast', cpp_module=False) # using python # calculated_hf_energy = hf_1.calculate_energy_ion() + hf_1.calculate_energy_scf() # assert pytest.approx(expected_hf_energy) == calculated_hf_energy # def test_fock_implementation_fast_cpp(hf_1): # expected_hf_energy = -17.901180746673777 # hf_1.scf_cycle(mode='fast', cpp_module=True) # calculated_hf_energy = hf_1.calculate_energy_ion() + hf_1.calculate_energy_scf() # assert pytest.approx(expected_hf_energy) == calculated_hf_energy # This test is to check the two fock matrix implementations # def test_fock_diff """Tests for MP2 class """ @pytest.fixture() def MP2_case1(Ar_gas): atomic_coordinates = np.array([[0.0, 0.0, 0.0], [3.0, 4.0, 5.0]]) MP2_obj = qm_project_sss.MP2(atomic_coordinates, Ar_gas) return MP2_obj def test_partition_orbitals(MP2_case1): expected_occupied_energy = [-0.6, -0.6, -0.6, -0.6, -0.6, -0.6] expected_virtual_energy = [5.4, 5.4] calculated_occupied_energy = MP2_case1.occupied_energy calculated_virtual_energy = MP2_case1.virtual_energy npt.assert_array_almost_equal(calculated_occupied_energy, expected_occupied_energy,decimal=1) npt.assert_array_almost_equal(calculated_virtual_energy, expected_virtual_energy,decimal=1) # def test_transform_interaction_tensor(MP2_case1): def test_calculate_energy_mp2(MP2_case1): expected_mp2_correction = -0.0012786819552120972 calculated_mp2_correction = MP2_case1.mp2_energy npt.assert_almost_equal(calculated_mp2_correction, expected_mp2_correction)
026e552d6e9ea7fc761333c75951408b22c6c883
{ "blob_id": "026e552d6e9ea7fc761333c75951408b22c6c883", "branch_name": "refs/heads/master", "committer_date": "2019-08-01T01:11:01", "content_id": "e863b4c9b1e7b46a40ee5ae764f22b0cd2a2647b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ebd343e6ab7f001e03cfbc0fa67bf6b5e2cb11f7", "extension": "py", "filename": "test_qm_project_sss.py", "fork_events_count": 5, "gha_created_at": "2019-07-23T11:09:31", "gha_event_created_at": "2019-08-01T01:11:02", "gha_language": "Python", "gha_license_id": "BSD-3-Clause", "github_id": 198414055, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 6174, "license": "BSD-3-Clause", "license_type": "permissive", "path": "/qm_project_sss/tests/test_qm_project_sss.py", "provenance": "stack-edu-0056.json.gz:177208", "repo_name": "MolSSI-Education/qm_2019_sss_4", "revision_date": "2019-08-01T01:11:01", "revision_id": "8dc79f0d450c8414b2bda94abc063399d7866a79", "snapshot_id": "55bf4963e2c61eae14e1f396157a6087a11187bf", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/MolSSI-Education/qm_2019_sss_4/8dc79f0d450c8414b2bda94abc063399d7866a79/qm_project_sss/tests/test_qm_project_sss.py", "visit_date": "2020-06-22T22:15:55.414517", "added": "2024-11-18T19:49:15.349652+00:00", "created": "2019-08-01T01:11:01", "int_score": 3, "score": 2.6875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0074.json.gz" }
#pragma once #include "QuestTriggerMaster.h" #include "QuestTriggerBounds.generated.h" class UBoxComponent; UCLASS(Blueprintable, BlueprintType) class AQuestTriggerBounds : public AQuestTriggerMaster { GENERATED_BODY() public: AQuestTriggerBounds(); protected: UPROPERTY(EditAnywhere) UBoxComponent* Box; UFUNCTION() void BeginOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult); /** * If the player leaves this area, add the step back in the array at index 0 * to force them to get back in the bounds to make progress. * Might act funny with bosses that follow the player past them, * because the player might be able to kill it outside the bounds. * This can be avoided if the boss' movement space is restricted within these bounds. */ UFUNCTION() void EndOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex); };
7d2dee6b1550cb716fd5e749345f77cf1620ca4e
{ "blob_id": "7d2dee6b1550cb716fd5e749345f77cf1620ca4e", "branch_name": "refs/heads/master", "committer_date": "2020-09-18T17:09:54", "content_id": "89308725b964916e65cf8abcb21fffa2e4e72a43", "detected_licenses": [ "MIT" ], "directory_id": "995508a0f5c6bd4beabb64a24ad8d3aaeabfc36e", "extension": "h", "filename": "QuestTriggerBounds.h", "fork_events_count": 0, "gha_created_at": "2020-08-31T16:31:02", "gha_event_created_at": "2020-08-31T16:31:02", "gha_language": null, "gha_license_id": "MIT", "github_id": 291768066, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 1079, "license": "MIT", "license_type": "permissive", "path": "/QuestSystem C++/Source/QuestSystem/Triggers/QuestTriggerBounds.h", "provenance": "stack-edu-0004.json.gz:187463", "repo_name": "Mephiztopheles/Advanced-Quest-System", "revision_date": "2020-09-18T17:09:54", "revision_id": "4c251ce2a9b29e60fa32da5e896ae3c62c17adde", "snapshot_id": "b60f7bdcc8d627648100a6f969f0b5cbfa31f872", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/Mephiztopheles/Advanced-Quest-System/4c251ce2a9b29e60fa32da5e896ae3c62c17adde/QuestSystem C++/Source/QuestSystem/Triggers/QuestTriggerBounds.h", "visit_date": "2022-12-16T07:50:30.946001", "added": "2024-11-18T22:10:19.407405+00:00", "created": "2020-09-18T17:09:54", "int_score": 2, "score": 2.171875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0022.json.gz" }
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('/', function () { return view('welcome'); }); Route::get('admin/login','AdminController@getLogin'); Route::get('admin/', 'AdminController@getLogin'); Route::get('admin/dashboard', 'AdminController@getDashboard'); Route::post('admin/dashboard','AdminController@postDashboard'); Route::get('admin/logout','AdminController@getLogout'); ////loai khoa hoc //Route::get('admin/loaikhoahoc/danhsach','LoaiKhoaHocController@getDanhSach'); //Route::get('admin/loaikhoahoc/them','LoaiKhoaHocController@getThem'); // //Route::get('deactive/{id}','LoaiKhoaHocController@getDeactive'); //Route::get('active/{id}','LoaiKhoaHocController@getActive'); // //Route::post('admin/loaikhoahoc/luu','LoaiKhoaHocController@postLuu'); Route::group(['prefix'=>'admin'],function () { Route::group(['prefix' => 'loaikhoahoc'], function () { // admin/loaikhoahoc/danhsach Route::get('danhsach','LoaiKhoaHocController@getDanhSach'); Route::get('them','LoaiKhoaHocController@getThem'); Route::post('them','LoaiKhoaHocController@postThem'); Route::get('deactive/{id}','LoaiKhoaHocController@getDeactive'); Route::get('active/{id}','LoaiKhoaHocController@getActive'); Route::get('sua/{id}','LoaiKhoaHocController@getSua'); Route::post('sua/{id}','LoaiKhoaHocController@postSua'); Route::get('xoa/{id}','LoaiKhoaHocController@getXoa'); }); Route::group(['prefix' => 'khoahoc'], function () { // admin/khoahoc/danhsach Route::get('danhsach','KhoaHocController@getDanhSach'); Route::get('them','KhoaHocController@getThem'); Route::post('them','KhoaHocController@postThem'); Route::get('deactive/{id}','KhoaHocController@getDeactive'); Route::get('active/{id}','KhoaHocController@getActive'); Route::get('sua/{id}','KhoaHocController@getSua'); Route::post('sua/{id}','KhoaHocController@postSua'); Route::get('xoa/{id}','KhoaHocController@getXoa'); }); Route::group(['prefix' => 'baihoc'], function () { // admin/baihoc/danhsach Route::get('danhsach','BaiHocController@getDanhSach'); Route::get('them','BaiHocController@getThem'); Route::post('them','BaiHocController@postThem'); Route::get('deactive/{id}','BaiHocController@getDeactive'); Route::get('active/{id}','BaiHocController@getActive'); Route::get('sua/{id}','BaiHocController@getSua'); Route::post('sua/{id}','BaiHocController@postSua'); Route::get('xoa/{id}','BaiHocController@getXoa'); }); Route::group(['prefix' => 'user'], function () { // admin/baihoc/danhsach Route::get('danhsach','UserController@getDanhSach'); Route::get('them','UserController@getThem'); Route::post('them','UserController@postThem'); Route::get('deactive/{id}','UserController@getDeactive'); Route::get('active/{id}','UserController@getActive'); Route::get('sua/{id}','UserController@getSua'); Route::post('sua/{id}','UserController@postSua'); Route::get('xoa/{id}','UserController@getXoa'); }); Route::group(['prefix' => 'slide'], function () { // admin/baihoc/danhsach Route::get('danhsach','SlideController@getDanhSach'); Route::get('them','SlideController@getThem'); Route::post('them','SlideController@postThem'); Route::get('deactive/{id}','SlideController@getDeactive'); Route::get('active/{id}','SlideController@getActive'); Route::get('sua/{id}','SlideController@getSua'); Route::post('sua/{id}','SlideController@postSua'); Route::get('xoa/{id}','SlideController@getXoa'); }); Route::group(['prefix' => 'binhluan'], function () { Route::get('xoa/{id}','BinhLuanController@getXoa'); }); Route::group(['prefix' => 'dangkikhoahoc'], function () { // admin/baihoc/danhsach Route::get('danhsach','DangKiKhoaHocController@getDanhSach'); Route::get('them','DangKiKhoaHocController@getThem'); Route::post('them','DangKiKhoaHocController@postThem'); Route::get('deactive/{id}','DangKiKhoaHocController@getDeactive'); Route::get('active/{id}','DangKiKhoaHocController@getActive'); Route::get('sua/{id}','DangKiKhoaHocController@getSua'); Route::post('sua/{id}','DangKiKhoaHocController@postSua'); Route::get('xoa/{id}','DangKiKhoaHocController@getXoa'); }); Route::group(['prefix' => 'ajax'], function () { Route::get('loaikhoahoc/{idLoai}','AjaxController@getKhoaHoc'); Route::get('dangki/{idKhoaHoc}','AjaxController@getGiaKhoaHoc'); }); // Route::get('ajax/loaikhoahoc/{idLoai}','AjaxController@getKhoaHoc'); });
f222d29182681e74b0efda7ae05eb2f983ac3767
{ "blob_id": "f222d29182681e74b0efda7ae05eb2f983ac3767", "branch_name": "refs/heads/master", "committer_date": "2019-11-07T16:33:46", "content_id": "9bbd90eb9f4563f5972f9edca8ecbe16aaa52153", "detected_licenses": [ "MIT" ], "directory_id": "16c00f0292e0ab5cd3a2f1390dee18634afee6e8", "extension": "php", "filename": "routes.php", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 217315159, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 5176, "license": "MIT", "license_type": "permissive", "path": "/app/Http/routes.php", "provenance": "stack-edu-0051.json.gz:564478", "repo_name": "vietquan170497/laravelwebhoc", "revision_date": "2019-11-07T16:33:46", "revision_id": "ebed7f0b0715a18fe01e0f04672862a1bfb13490", "snapshot_id": "05e65cd3cb8daac5a0087c306cade5b3f81ed469", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/vietquan170497/laravelwebhoc/ebed7f0b0715a18fe01e0f04672862a1bfb13490/app/Http/routes.php", "visit_date": "2020-08-27T09:21:14.329800", "added": "2024-11-19T03:20:55.894382+00:00", "created": "2019-11-07T16:33:46", "int_score": 2, "score": 2.0625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0069.json.gz" }
# Vim Notes Simply because it's used so much... ![alt text][vimcheatsheet] [vimcheatsheet]: https://github.com/rryanedwards/magento/raw/master/resources/vim-shortcuts-dark_2560x1600.png "Vim Cheat Sheet" Think of Vim as **Verb + Noun** phrases designed for repeatability, for instance <kbd>d</kbd>+<kbd>w</kbd> represents delete + word. Use <kbd>.</kbd> to repeat an action. Use <kbd>u</kbd> to undo an action. ## Verbs ### Basic Key | Action --- | --- `d` | delete `c` | change ## Nouns ### Text Objects Keys | Literally | Description --- | --- | --- `aw` | a word | includes white space `iw` | inner word| excludes white space `as` | a sentence| includes white space `is` | inner sentence | excludes white space `i"` | inner double quote | excludes quotes `i'` | inner single quote | " `i(` | inner brackets | " `it` | inner (html) tag | " `ip` | inner paragraph | " ### Parameterised Text Objects <kbd>f</kbd> + `character` (forward) or <kbd>F</kbd> + `character` (backwards) <kbd>t</kbd> + `character` (forward) or <kbd>T</kbd> + `character` (backwards) <kbd>/</kbd> + `word` E.g. <kbd>d</kbd> + <kbd>2</kbd> + <kbd>/</kbd> + `to` will delete everything between cursor and the next next occurrence of `to`. ## Tricks ### Relative Line Numbers `:set nu rnu` `set number relativenumber` `:set nonu nornu` for off, `:set nu! rnu!` for toggle ### Multi Lines Very useful for commenting and indenting, use block visual iditor: <kbd>Control</kbd>+<kbd>V</kbd> Insert text on all lines use <kbd>Shift</kbd>+<kbd>I</kbd> and to delete on all lines use <kbd>d</kbd> ### Find and Replace With confirmation use `:[range]s/search/replace/gc ` ## Resources Markdown notes (meta/ non-vim) https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet Video about Vim https://www.youtube.com/watch?v=wlR5gYd6um0 Text objects https://blog.carbonfive.com/2011/10/17/vim-text-objects-the-definitive-guide/ {% changed magento/blob/master to magento/raw/master for image to load %}
ac5a437e1fc1dfe0c5843ba394078f8ee7fab756
{ "blob_id": "ac5a437e1fc1dfe0c5843ba394078f8ee7fab756", "branch_name": "refs/heads/master", "committer_date": "2019-09-24T14:18:51", "content_id": "ef965cd9a4e251eba03db0dc459ea387bc3bed5f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d997e19feda9a4aaf9538acfcc3e0080496270a6", "extension": "md", "filename": "vim.md", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 2006, "license": "BSD-3-Clause", "license_type": "permissive", "path": "/vim.md", "provenance": "stack-edu-markdown-0003.json.gz:95478", "repo_name": "RyanRossEdwards/magento", "revision_date": "2019-09-24T14:18:51", "revision_id": "d353eb620aaf009b1398e984859c96ccc043719f", "snapshot_id": "94214438263dd9541f1bc5a39671c90181a96a20", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/RyanRossEdwards/magento/d353eb620aaf009b1398e984859c96ccc043719f/vim.md", "visit_date": "2022-02-23T17:24:15.919968", "added": "2024-11-19T01:33:37.680590+00:00", "created": "2019-09-24T14:18:51", "int_score": 4, "score": 3.578125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0003.json.gz" }
--- layout: kanji v4: 842 v6: 905 kanji: 替 keyword: exchange elements: exchange, husband, sun, day, tongue wagging, husband2 strokes: 12 image: E69BBF on-yomi: タイ kun-yomi: か.える、か.え-、か.わる permalink: /rtk/替/ prev: 規 next: 賛 --- 1) [<a href="http://kanji.koohii.com/profile/daredawg3583">daredawg3583</a>] 18-3-2007(291): A show like &quot;Trading Spouses&quot; called &quot;exchanging husbands&quot; where 2 husbands are<strong> exchange</strong>d for a day (thanks dingomick). 2) [<a href="http://kanji.koohii.com/profile/dingomick">dingomick</a>] 9-8-2007(79): Marge&#039;s dream: to<strong> exchange</strong> <em>Homer</em> for another <em>husband</em> for just <em>one day</em>. 3) [<a href="http://kanji.koohii.com/profile/mantixen">mantixen</a>] 27-9-2008(57): There will come a <em>day</em> when <em>two husbands</em> can<strong> exchange</strong> vows. 4) [<a href="http://kanji.koohii.com/profile/Asgard">Asgard</a>] 3-9-2006(22): This kanji depicts the reality TV show where two families <strong>exchange</strong> the <em>two husbands</em> for a <em>day</em> to see how they manage in another family. 5) [<a href="http://kanji.koohii.com/profile/AndamanIslander">AndamanIslander</a>] 17-4-2008(15): Think Brokeback Mountain. The <em>two husbands</em> wish they could<strong> exchange</strong> their dreary, closeted existence for just <em>one day</em> together.
28e3e1a129f7f7145da9ede0f8506d820da40b69
{ "blob_id": "28e3e1a129f7f7145da9ede0f8506d820da40b69", "branch_name": "refs/heads/master", "committer_date": "2023-01-29T17:04:40", "content_id": "d9d702dcccfd3c2af474982d9e88277111beee40", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9eab7a15c0680a3ecdb24986476ff585801a488c", "extension": "md", "filename": "0905.md", "fork_events_count": 1, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 27798278, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 1409, "license": "Apache-2.0", "license_type": "permissive", "path": "/rtk/rtk1-v6/0905.md", "provenance": "stack-edu-markdown-0007.json.gz:251872", "repo_name": "hochanh/hochanh.github.io", "revision_date": "2023-01-29T17:04:40", "revision_id": "acbfdc464e4c5eeac76cc5830eccd7528c6ab4ea", "snapshot_id": "1fe5e6d02f8effe2f00d73ef7b62230028d39ae4", "src_encoding": "UTF-8", "star_events_count": 6, "url": "https://raw.githubusercontent.com/hochanh/hochanh.github.io/acbfdc464e4c5eeac76cc5830eccd7528c6ab4ea/rtk/rtk1-v6/0905.md", "visit_date": "2023-02-05T17:15:00.316679", "added": "2024-11-18T21:30:40.948924+00:00", "created": "2023-01-29T17:04:40", "int_score": 2, "score": 2.34375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0007.json.gz" }
const bcrypt = require("bcryptjs"); exports.seed = function(knex, Promise) { // Deletes ALL existing entries return knex("users") .truncate() .then(function() { // Inserts seed entries return knex("users").insert([ { id: 1, name: "Jess", title: "Office Manager", email: "jess@soup.com", role_id: 1, loc_id: 1, username: "jesstest", password: bcrypt.hashSync("test123", 16) }, { id: 2, name: "Ed", title: "Developer", email: "ed@soup.com", role_id: 1, loc_id: 3, username: "edtest", password: bcrypt.hashSync("test123", 16) }, { id: 3, name: "Greg", title: "Chef", email: "greg@soup.com", role_id: 1, loc_id: 3, username: "gregtest", password: bcrypt.hashSync("test123", 16) }, { id: 4, name: "Mike", title: "Volunteer", email: "mike@soup.com", role_id: 2, loc_id: 1, username: "mike", password: bcrypt.hashSync("test123", 16) } ]); }); };
ea47d99187e24e56c74d4b6344763122b35d5f35
{ "blob_id": "ea47d99187e24e56c74d4b6344763122b35d5f35", "branch_name": "refs/heads/master", "committer_date": "2019-02-26T04:29:12", "content_id": "5ff28048dccdc7afdec10ff83f09beb1e75e8ecd", "detected_licenses": [ "MIT" ], "directory_id": "75d1496b222cf74384f53e4809f6b55e3ca7b08d", "extension": "js", "filename": "05users.js", "fork_events_count": 0, "gha_created_at": "2019-02-13T02:51:51", "gha_event_created_at": "2019-02-26T04:29:13", "gha_language": "JavaScript", "gha_license_id": "MIT", "github_id": 170429105, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 1258, "license": "MIT", "license_type": "permissive", "path": "/data/seeds/05users.js", "provenance": "stack-edu-0041.json.gz:423080", "repo_name": "soup-build-week-pt-project/soup-back-end", "revision_date": "2019-02-26T04:29:12", "revision_id": "68182e4d770a57e4ae46fcb2893b70ce7eb56447", "snapshot_id": "d2c239c8854f12e892c1d4809ea4f63d37f1aef3", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/soup-build-week-pt-project/soup-back-end/68182e4d770a57e4ae46fcb2893b70ce7eb56447/data/seeds/05users.js", "visit_date": "2020-04-22T14:01:22.876389", "added": "2024-11-19T01:31:59.192350+00:00", "created": "2019-02-26T04:29:12", "int_score": 2, "score": 2.078125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0059.json.gz" }
const { Parser } = require("htmlparser2"); const { DomHandler } = require("domhandler"); const { findOne, getName } = require("domutils"); const fetch = require("node-fetch"); /** * Parse website according to the input callback * @param {string} url the url string to be parse * @param {Function} cb callback function for the handler * @returns {any} result depend on callback */ async function parseURL(url, cb) { const fetchRes = await fetch(url); const rawHtmlData = await fetchRes.text(); let cbResult; const handler = new DomHandler((error, dom) => { if (error) throw new Error(`Parse Error: ${error}`); const mainDom = findOne((ele) => getName(ele) === "body", dom); cbResult = cb(mainDom); }); const parser = new Parser(handler); parser.write(rawHtmlData); parser.end(); //return callback function result return cbResult; } /** * Remove newlines and excess whitespace * @param {string} str - input string * @returns {string} */ function whitespaceTrim(str) { return str.replace(/[\n\r]+|[\s]{2,}/g, " ").trim(); } /** * Removing goodread bookString from original link * @param {string} str -input string * return {string} */ function returnBookString(str) { return str.split("?")[0].split("/").pop(); } module.exports = { parseURL, whitespaceTrim, returnBookString };
8b424b4e8036238f52da6693a8524e056de8d5d6
{ "blob_id": "8b424b4e8036238f52da6693a8524e056de8d5d6", "branch_name": "refs/heads/main", "committer_date": "2021-07-16T22:02:06", "content_id": "a6094ce1838b964de66c74c366040d21f16f1cd6", "detected_licenses": [ "MIT" ], "directory_id": "ca10db0a7e609b5929798b4283f94da88a5e5b4e", "extension": "js", "filename": "utils.js", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 378996961, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 1328, "license": "MIT", "license_type": "permissive", "path": "/controllers/utils.js", "provenance": "stack-edu-0032.json.gz:300598", "repo_name": "Adogeon/book-explorer", "revision_date": "2021-07-16T22:02:06", "revision_id": "fc1fb574fcd4188d91a3dd048977e65feee69cc6", "snapshot_id": "79ea2838a9de4acc798f97004fd8a3a5fa9ed013", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/Adogeon/book-explorer/fc1fb574fcd4188d91a3dd048977e65feee69cc6/controllers/utils.js", "visit_date": "2023-06-21T19:31:37.658676", "added": "2024-11-19T00:41:11.068036+00:00", "created": "2021-07-16T22:02:06", "int_score": 3, "score": 2.765625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0050.json.gz" }
// ========================================================================== // Project: Lebowski Framework - The SproutCore Test Automation Framework // License: Licensed under MIT license (see License.txt) // ========================================================================== /*globals TestApp */ TestApp.menuPanesController = SC.ObjectController.create({ status: '--', showShortMenuPane: function(view) { var controller = this; var items = [ { title: 'Menu item 1', isEnabled: true, target: this, action: 'clickedMenuItem' }, { title: 'Menu item 2', isEnabled: true, target: this, action: 'clickedMenuItem' }, { separator: true }, { title: 'Menu item 3', isEnabled: true, checkbox: true, target: this, action: 'clickedMenuItem' } ]; var anchor = TestApp.getPath('mainPage.menuPaneButton'); SC.MenuPane.create({ layout: { width: 200 }, items: items, itemTitleKey: 'title', itemValueKey: 'title', itemActionKey: 'action' }).popup(view); this.set('status', 'Opened SC.MenuPane'); }, showLongMenuPane: function(view) { var controller = this; var items = []; for (var i = 0; i < 100; i += 1) { items.push({ title: 'Menu item ' + i, isEnabled: true, target: this, action: 'clickedMenuItem' }); } var anchor = TestApp.getPath('mainPage.menuPaneButton'); SC.MenuPane.create({ layout: { width: 200 }, items: items, itemTitleKey: 'title', itemValueKey: 'title', itemActionKey: 'action' }).popup(view); this.set('status', 'Opened SC.MenuPane'); }, clickedMenuItem: function(pane) { this.set('status', 'Clicked %@'.fmt(pane.getPath('selectedItem.title'))); } });
29522966f178f35e26da49ac7a0045c08f237219
{ "blob_id": "29522966f178f35e26da49ac7a0045c08f237219", "branch_name": "refs/heads/master", "committer_date": "2017-04-18T06:23:10", "content_id": "b1bfcad3b9d4b7c80caa71ab46efe1b779100c99", "detected_licenses": [ "MIT" ], "directory_id": "53e6288328df2d984034f4c94ad1067f06c42d55", "extension": "js", "filename": "menu_panes.js", "fork_events_count": 0, "gha_created_at": "2017-04-18T06:23:11", "gha_event_created_at": "2017-04-18T06:23:12", "gha_language": null, "gha_license_id": null, "github_id": 88589469, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 1964, "license": "MIT", "license_type": "permissive", "path": "/examples/foundation/app/apps/sc_controls/controllers/panes/menu_panes.js", "provenance": "stack-edu-0032.json.gz:61738", "repo_name": "bryant1410/Lebowski", "revision_date": "2017-04-18T06:23:10", "revision_id": "008eba02c4e27763f86c8f118ea98f77d3ed58c3", "snapshot_id": "6b9ac59457b810e20e33c44ba29bae67b5d4a845", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/bryant1410/Lebowski/008eba02c4e27763f86c8f118ea98f77d3ed58c3/examples/foundation/app/apps/sc_controls/controllers/panes/menu_panes.js", "visit_date": "2021-01-19T21:00:30.883984", "added": "2024-11-19T00:26:37.517776+00:00", "created": "2017-04-18T06:23:10", "int_score": 2, "score": 2.1875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0050.json.gz" }
<?php namespace GhostZero\TmiCluster\Commands; use GhostZero\TmiCluster\Contracts\SupervisorRepository; use GhostZero\TmiCluster\Models\Supervisor; use GhostZero\TmiCluster\Models\SupervisorProcess; use Illuminate\Console\Command; class TmiClusterListCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'tmi-cluster:list'; /** * The console command description. * * @var string */ protected $description = 'List all active supervisors.'; /** * Execute the console command. * * @return int */ public function handle(): int { /** @var SupervisorRepository $repository */ $repository = app(SupervisorRepository::class); $supervisors = $repository->all() ->map(function (Supervisor $supervisor) { return [ $supervisor->getKey(), $supervisor->getKey(), $supervisor->last_ping_at->diffInSeconds(), $supervisor->processes()->count(), ]; }); $this->table([ 'ID', 'Name', 'Last Ping', 'Processes' ], $supervisors); $processes = SupervisorProcess::all() ->map(function (SupervisorProcess $process) { return [ $process->getKey(), $process->supervisor ? $process->supervisor->getKey() : 'N/A', $process->state, $process->last_ping_at ? $process->last_ping_at->diffInSeconds() : 'N/A', count($process->channels), $process->memory_usage, ]; }); $this->table([ 'ID', 'Supervisor', 'State', 'Last Ping', 'Channels', 'Memory Usage' ], $processes); return 0; } }
991b51538eb2827b4eac103b9141826b2981a830
{ "blob_id": "991b51538eb2827b4eac103b9141826b2981a830", "branch_name": "refs/heads/master", "committer_date": "2021-05-01T15:06:56", "content_id": "de51268a41fdb432cc96ba3e4f5dd3edb1782d90", "detected_licenses": [ "MIT" ], "directory_id": "c56d84dfe83baa1516580da5a214519b026ab36a", "extension": "php", "filename": "TmiClusterListCommand.php", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 1925, "license": "MIT", "license_type": "permissive", "path": "/src/Commands/TmiClusterListCommand.php", "provenance": "stack-edu-0051.json.gz:49737", "repo_name": "hartl3y94/tmi-cluster", "revision_date": "2021-05-01T15:06:56", "revision_id": "c0e4d54afe74d8fc2c5f090a18fa7c4fe1dfbd41", "snapshot_id": "c8793e1e82fd04e0a198a48c0703288b20617a39", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/hartl3y94/tmi-cluster/c0e4d54afe74d8fc2c5f090a18fa7c4fe1dfbd41/src/Commands/TmiClusterListCommand.php", "visit_date": "2023-04-21T01:52:40.512966", "added": "2024-11-19T02:19:57.468875+00:00", "created": "2021-05-01T15:06:56", "int_score": 2, "score": 2.5, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0069.json.gz" }
/* * Copyright (c) 2006-2011 Rogério Liesenfeld * This file is subject to the terms of the MIT license (see LICENSE.txt). */ package mockit.coverage; import java.io.*; import mockit.coverage.data.*; final class AccretionFile { private final File outputFile; private final CoverageData newData; AccretionFile(String outputDir, CoverageData newData) { String parentDir = outputDir.length() == 0 ? null : outputDir; outputFile = new File(parentDir, "coverage.ser"); newData.fillLastModifiedTimesForAllClassFiles(); this.newData = newData; } void mergeDataFromExistingFileIfAny() throws IOException, ClassNotFoundException { if (outputFile.exists()) { CoverageData previousData = CoverageData.readDataFromFile(outputFile); newData.merge(previousData); } } void generate() throws IOException { newData.writeDataToFile(outputFile); System.out.println("JMockit: Coverage data written to " + outputFile.getCanonicalPath()); } }
4f1e0d05c9d8a0b95bd0a659fc828dd6c7ed6937
{ "blob_id": "4f1e0d05c9d8a0b95bd0a659fc828dd6c7ed6937", "branch_name": "refs/heads/master", "committer_date": "2016-06-24T17:15:15", "content_id": "75fba97129f7ad9b73be0c9715e8611a0c1babf5", "detected_licenses": [ "MIT" ], "directory_id": "806a8c9fcf03de861f7a078a2eeedc671a58f0eb", "extension": "java", "filename": "AccretionFile.java", "fork_events_count": 4, "gha_created_at": "2015-09-28T05:26:27", "gha_event_created_at": "2015-10-22T22:08:35", "gha_language": "HTML", "gha_license_id": null, "github_id": 43281584, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 1030, "license": "MIT", "license_type": "permissive", "path": "/AutoBlackTest/AutoBlackTest/lib/jmockit/coverage/src/mockit/coverage/AccretionFile.java", "provenance": "stack-edu-0029.json.gz:784970", "repo_name": "SoftwareEngineeringToolDemos/ICSE-2011-AutoBlackTest", "revision_date": "2016-06-24T17:15:15", "revision_id": "5aa5e57cfdf368ffe0eec44d040aa999ce478047", "snapshot_id": "0fd43513b3209cce2d087aedb7407f5167df29c0", "src_encoding": "UTF-8", "star_events_count": 4, "url": "https://raw.githubusercontent.com/SoftwareEngineeringToolDemos/ICSE-2011-AutoBlackTest/5aa5e57cfdf368ffe0eec44d040aa999ce478047/AutoBlackTest/AutoBlackTest/lib/jmockit/coverage/src/mockit/coverage/AccretionFile.java", "visit_date": "2021-01-17T06:54:57.152115", "added": "2024-11-18T18:52:39.273771+00:00", "created": "2016-06-24T17:15:15", "int_score": 2, "score": 2.390625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0047.json.gz" }
// *** WARNING: this file was generated by crd2pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import {ObjectMeta} from "../meta/v1"; export namespace apiextensions { export namespace v1alpha1 { /** * CompositionSpec specifies the desired state of the definition. */ export interface CompositionSpec { /** * From refers to the type that this composition is compatible. The values for the underlying resources will be fetched from the instances of the From. */ from: pulumi.Input<inputs.apiextensions.v1alpha1.CompositionSpecFrom>; /** * ReclaimPolicy specifies what will happen to composite resource dynamically provisioned using this composition when their namespaced referrer is deleted. The "Delete" policy causes the composite resource to be deleted when its namespaced referrer is deleted. The "Retain" policy causes the composite resource to be retained, in binding phase "Released", when its namespaced referrer is deleted. The "Retain" policy is used when no policy is specified, however the "Delete" policy is set at dynamic provisioning time if no policy is set. */ reclaimPolicy?: pulumi.Input<string>; /** * To is the list of target resources that make up the composition. */ to: pulumi.Input<pulumi.Input<inputs.apiextensions.v1alpha1.CompositionSpecTo>[]>; /** * WriteConnectionSecretsToNamespace specifies the namespace in which the connection secrets of composite resource dynamically provisioned using this composition will be created. */ writeConnectionSecretsToNamespace: pulumi.Input<string>; } /** * From refers to the type that this composition is compatible. The values for the underlying resources will be fetched from the instances of the From. */ export interface CompositionSpecFrom { /** * APIVersion of the type. */ apiVersion: pulumi.Input<string>; /** * Kind of the type. */ kind: pulumi.Input<string>; } /** * ComposedTemplate is used to provide information about how the composed resource should be processed. */ export interface CompositionSpecTo { /** * Base is the target resource that the patches will be applied on. */ base: pulumi.Input<{[key: string]: any}>; /** * ConnectionDetails lists the propagation secret keys from this target resource to the composition instance connection secret. */ connectionDetails?: pulumi.Input<pulumi.Input<inputs.apiextensions.v1alpha1.CompositionSpecToConnectionDetails>[]>; /** * Patches will be applied as overlay to the base resource. */ patches?: pulumi.Input<pulumi.Input<inputs.apiextensions.v1alpha1.CompositionSpecToPatches>[]>; } /** * ConnectionDetail includes the information about the propagation of the connection information from one secret to another. */ export interface CompositionSpecToConnectionDetails { /** * FromConnectionSecretKey is the key that will be used to fetch the value from the given target resource. */ fromConnectionSecretKey: pulumi.Input<string>; /** * Name of the connection secret key that will be propagated to the connection secret of the composition instance. Leave empty if you'd like to use the same key name. */ name?: pulumi.Input<string>; } /** * Patch is used to patch the field on the base resource at ToFieldPath after piping the value that is at FromFieldPath of the target resource through transformers. */ export interface CompositionSpecToPatches { /** * FromFieldPath is the path of the field on the upstream resource whose value to be used as input. */ fromFieldPath: pulumi.Input<string>; /** * ToFieldPath is the path of the field on the base resource whose value will be changed with the result of transforms. Leave empty if you'd like to propagate to the same path on the target resource. */ toFieldPath?: pulumi.Input<string>; /** * Transforms are the list of functions that are used as a FIFO pipe for the input to be transformed. */ transforms?: pulumi.Input<pulumi.Input<inputs.apiextensions.v1alpha1.CompositionSpecToPatchesTransforms>[]>; } /** * Transform is a unit of process whose input is transformed into an output with the supplied configuration. */ export interface CompositionSpecToPatchesTransforms { /** * Map uses the input as a key in the given map and returns the value. */ map?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; /** * Math is used to transform the input via mathematical operations such as multiplication. */ math?: pulumi.Input<inputs.apiextensions.v1alpha1.CompositionSpecToPatchesTransformsMath>; /** * String is used to transform the input into a string or a different kind of string. Note that the input does not necessarily need to be a string. */ string?: pulumi.Input<inputs.apiextensions.v1alpha1.CompositionSpecToPatchesTransformsString>; /** * Type of the transform to be run. */ type: pulumi.Input<string>; } /** * Math is used to transform the input via mathematical operations such as multiplication. */ export interface CompositionSpecToPatchesTransformsMath { /** * Multiply the value. */ multiply?: pulumi.Input<number>; } /** * String is used to transform the input into a string or a different kind of string. Note that the input does not necessarily need to be a string. */ export interface CompositionSpecToPatchesTransformsString { /** * Format the input using a Go format string. See https://golang.org/pkg/fmt/ for details. */ fmt: pulumi.Input<string>; } /** * CompositionStatus shows the observed state of the composition. */ export interface CompositionStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.apiextensions.v1alpha1.CompositionStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface CompositionStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * InfrastructureDefinitionSpec specifies the desired state of the definition. */ export interface InfrastructureDefinitionSpec { /** * ConnectionSecretKeys is the list of keys that will be exposed to the end user of the defined kind. */ connectionSecretKeys?: pulumi.Input<pulumi.Input<string>[]>; /** * CRDSpecTemplate is the base CRD template. The final CRD will have additional fields to the base template to accommodate Crossplane machinery. */ crdSpecTemplate?: pulumi.Input<inputs.apiextensions.v1alpha1.InfrastructureDefinitionSpecCrdSpecTemplate>; } /** * CRDSpecTemplate is the base CRD template. The final CRD will have additional fields to the base template to accommodate Crossplane machinery. */ export interface InfrastructureDefinitionSpecCrdSpecTemplate { /** * additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. */ additionalPrinterColumns?: pulumi.Input<pulumi.Input<inputs.apiextensions.v1alpha1.InfrastructureDefinitionSpecCrdSpecTemplateAdditionalPrinterColumns>[]>; /** * group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). */ group: pulumi.Input<string>; /** * names specify the resource and kind names for the custom resource. */ names: pulumi.Input<inputs.apiextensions.v1alpha1.InfrastructureDefinitionSpecCrdSpecTemplateNames>; /** * validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. */ validation?: pulumi.Input<inputs.apiextensions.v1alpha1.InfrastructureDefinitionSpecCrdSpecTemplateValidation>; /** * version is the API version of the defined custom resource. The custom resources are served under `/apis/<group>/<version>/...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. */ version?: pulumi.Input<string>; } /** * CustomResourceColumnDefinition specifies a column for server side printing. */ export interface InfrastructureDefinitionSpecCrdSpecTemplateAdditionalPrinterColumns { /** * JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. */ JSONPath: pulumi.Input<string>; /** * description is a human readable description of this column. */ description?: pulumi.Input<string>; /** * format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. */ format?: pulumi.Input<string>; /** * name is a human readable name for the column. */ name: pulumi.Input<string>; /** * priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. */ priority?: pulumi.Input<number>; /** * type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. */ type: pulumi.Input<string>; } /** * names specify the resource and kind names for the custom resource. */ export interface InfrastructureDefinitionSpecCrdSpecTemplateNames { /** * categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. */ categories?: pulumi.Input<pulumi.Input<string>[]>; /** * kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. */ kind: pulumi.Input<string>; /** * listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". */ listKind?: pulumi.Input<string>; /** * plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase. */ plural: pulumi.Input<string>; /** * shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase. */ shortNames?: pulumi.Input<pulumi.Input<string>[]>; /** * singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. */ singular?: pulumi.Input<string>; } /** * validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. */ export interface InfrastructureDefinitionSpecCrdSpecTemplateValidation { /** * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. */ openAPIV3Schema?: pulumi.Input<{[key: string]: any}>; } /** * InfrastructureDefinitionStatus shows the observed state of the definition. */ export interface InfrastructureDefinitionStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.apiextensions.v1alpha1.InfrastructureDefinitionStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface InfrastructureDefinitionStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * InfrastructurePublicationSpec specifies the desired state of the definition. */ export interface InfrastructurePublicationSpec { /** * InfrastructureDefinitionReference references the InfrastructureDefinition that should be published. */ infrastructureDefinitionRef: pulumi.Input<inputs.apiextensions.v1alpha1.InfrastructurePublicationSpecInfrastructureDefinitionRef>; } /** * InfrastructureDefinitionReference references the InfrastructureDefinition that should be published. */ export interface InfrastructurePublicationSpecInfrastructureDefinitionRef { /** * Name of the referenced object. */ name: pulumi.Input<string>; } /** * InfrastructurePublicationStatus shows the observed state of the definition. */ export interface InfrastructurePublicationStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.apiextensions.v1alpha1.InfrastructurePublicationStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface InfrastructurePublicationStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } } } export namespace cache { export namespace v1alpha1 { /** * RedisClusterSpec specifies the desired state of a RedisCluster. */ export interface RedisClusterSpec { /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ classRef?: pulumi.Input<inputs.cache.v1alpha1.RedisClusterSpecClassRef>; /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ classSelector?: pulumi.Input<inputs.cache.v1alpha1.RedisClusterSpecClassSelector>; /** * EngineVersion specifies the desired Redis version. */ engineVersion?: pulumi.Input<string>; /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ resourceRef?: pulumi.Input<inputs.cache.v1alpha1.RedisClusterSpecResourceRef>; /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ writeConnectionSecretToRef?: pulumi.Input<inputs.cache.v1alpha1.RedisClusterSpecWriteConnectionSecretToRef>; } /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ export interface RedisClusterSpecClassRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ export interface RedisClusterSpecClassSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.cache.v1alpha1.RedisClusterSpecClassSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface RedisClusterSpecClassSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ export interface RedisClusterSpecResourceRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ export interface RedisClusterSpecWriteConnectionSecretToRef { /** * Name of the secret. */ name: pulumi.Input<string>; } /** * A ResourceClaimStatus represents the observed status of a resource claim. */ export interface RedisClusterStatus { /** * Phase represents the binding phase of a managed resource or claim. Unbindable resources cannot be bound, typically because they are currently unavailable, or still being created. Unbound resource are available for binding, and Bound resources have successfully bound to another resource. */ bindingPhase?: pulumi.Input<string>; /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.cache.v1alpha1.RedisClusterStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface RedisClusterStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } } } export namespace compute { export namespace v1alpha1 { /** * KubernetesClusterSpec specifies the desired state of a KubernetesCluster. */ export interface KubernetesClusterSpec { /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ classRef?: pulumi.Input<inputs.compute.v1alpha1.KubernetesClusterSpecClassRef>; /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ classSelector?: pulumi.Input<inputs.compute.v1alpha1.KubernetesClusterSpecClassSelector>; /** * ClusterVersion specifies the desired Kubernetes version, e.g. 1.15. */ clusterVersion?: pulumi.Input<string>; /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ resourceRef?: pulumi.Input<inputs.compute.v1alpha1.KubernetesClusterSpecResourceRef>; /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ writeConnectionSecretToRef?: pulumi.Input<inputs.compute.v1alpha1.KubernetesClusterSpecWriteConnectionSecretToRef>; } /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ export interface KubernetesClusterSpecClassRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ export interface KubernetesClusterSpecClassSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.compute.v1alpha1.KubernetesClusterSpecClassSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface KubernetesClusterSpecClassSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ export interface KubernetesClusterSpecResourceRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ export interface KubernetesClusterSpecWriteConnectionSecretToRef { /** * Name of the secret. */ name: pulumi.Input<string>; } /** * A ResourceClaimStatus represents the observed status of a resource claim. */ export interface KubernetesClusterStatus { /** * Phase represents the binding phase of a managed resource or claim. Unbindable resources cannot be bound, typically because they are currently unavailable, or still being created. Unbound resource are available for binding, and Bound resources have successfully bound to another resource. */ bindingPhase?: pulumi.Input<string>; /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.compute.v1alpha1.KubernetesClusterStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface KubernetesClusterStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * MachineInstanceSpec specifies the desired state of a MachineInstance. */ export interface MachineInstanceSpec { /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ classRef?: pulumi.Input<inputs.compute.v1alpha1.MachineInstanceSpecClassRef>; /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ classSelector?: pulumi.Input<inputs.compute.v1alpha1.MachineInstanceSpecClassSelector>; /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ resourceRef?: pulumi.Input<inputs.compute.v1alpha1.MachineInstanceSpecResourceRef>; /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ writeConnectionSecretToRef?: pulumi.Input<inputs.compute.v1alpha1.MachineInstanceSpecWriteConnectionSecretToRef>; } /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ export interface MachineInstanceSpecClassRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ export interface MachineInstanceSpecClassSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.compute.v1alpha1.MachineInstanceSpecClassSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface MachineInstanceSpecClassSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ export interface MachineInstanceSpecResourceRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ export interface MachineInstanceSpecWriteConnectionSecretToRef { /** * Name of the secret. */ name: pulumi.Input<string>; } /** * A ResourceClaimStatus represents the observed status of a resource claim. */ export interface MachineInstanceStatus { /** * Phase represents the binding phase of a managed resource or claim. Unbindable resources cannot be bound, typically because they are currently unavailable, or still being created. Unbound resource are available for binding, and Bound resources have successfully bound to another resource. */ bindingPhase?: pulumi.Input<string>; /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.compute.v1alpha1.MachineInstanceStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface MachineInstanceStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } } } export namespace core { export namespace v1alpha2 { /** * An ApplicationConfigurationSpec defines the desired state of a ApplicationConfiguration. */ export interface ApplicationConfigurationSpec { /** * Components of which this ApplicationConfiguration consists. Each component will be used to instantiate a workload. */ components: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationSpecComponents>[]>; } /** * An ApplicationConfigurationComponent specifies a component of an ApplicationConfiguration. Each component is used to instantiate a workload. */ export interface ApplicationConfigurationSpecComponents { /** * ComponentName specifies a component of which an ApplicationConfiguration should consist. The named component must exist. */ componentName: pulumi.Input<string>; /** * ParameterValues specify values for the the specified component's parameters. Any parameter required by the component must be specified. */ parameterValues?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationSpecComponentsParameterValues>[]>; /** * Scopes in which the specified component should exist. */ scopes?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationSpecComponentsScopes>[]>; /** * Traits of the specified component. */ traits?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationSpecComponentsTraits>[]>; } /** * A ComponentParameterValue specifies a value for a named parameter. The associated component must publish a parameter with this name. */ export interface ApplicationConfigurationSpecComponentsParameterValues { /** * Name of the component parameter to set. */ name: pulumi.Input<string>; /** * Value to set. */ value: pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationSpecComponentsParameterValuesValue>; } export interface ApplicationConfigurationSpecComponentsParameterValuesValue { } /** * A ComponentScope specifies a scope in which a component should exist. */ export interface ApplicationConfigurationSpecComponentsScopes { /** * A ScopeReference must refer to an OAM scope resource. */ scopeRef: pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationSpecComponentsScopesScopeRef>; } /** * A ScopeReference must refer to an OAM scope resource. */ export interface ApplicationConfigurationSpecComponentsScopesScopeRef { /** * APIVersion of the referenced object. */ apiVersion: pulumi.Input<string>; /** * Kind of the referenced object. */ kind: pulumi.Input<string>; /** * Name of the referenced object. */ name: pulumi.Input<string>; /** * UID of the referenced object. */ uid?: pulumi.Input<string>; } /** * A ComponentTrait specifies a trait that should be applied to a component. */ export interface ApplicationConfigurationSpecComponentsTraits { /** * A Trait that will be created for the component */ trait: pulumi.Input<{[key: string]: any}>; } /** * An ApplicationConfigurationStatus represents the observed state of a ApplicationConfiguration. */ export interface ApplicationConfigurationStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationStatusConditions>[]>; /** * Workloads created by this ApplicationConfiguration. */ workloads?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationStatusWorkloads>[]>; } /** * A Condition that may apply to a resource. */ export interface ApplicationConfigurationStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * A WorkloadStatus represents the status of a workload. */ export interface ApplicationConfigurationStatusWorkloads { /** * ComponentName that produced this workload. */ componentName?: pulumi.Input<string>; /** * Traits associated with this workload. */ traits?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationStatusWorkloadsTraits>[]>; /** * Reference to a workload created by an ApplicationConfiguration. */ workloadRef?: pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationStatusWorkloadsWorkloadRef>; } /** * A WorkloadTrait represents a trait associated with a workload. */ export interface ApplicationConfigurationStatusWorkloadsTraits { /** * Reference to a trait created by an ApplicationConfiguration. */ traitRef: pulumi.Input<inputs.core.v1alpha2.ApplicationConfigurationStatusWorkloadsTraitsTraitRef>; } /** * Reference to a trait created by an ApplicationConfiguration. */ export interface ApplicationConfigurationStatusWorkloadsTraitsTraitRef { /** * APIVersion of the referenced object. */ apiVersion: pulumi.Input<string>; /** * Kind of the referenced object. */ kind: pulumi.Input<string>; /** * Name of the referenced object. */ name: pulumi.Input<string>; /** * UID of the referenced object. */ uid?: pulumi.Input<string>; } /** * Reference to a workload created by an ApplicationConfiguration. */ export interface ApplicationConfigurationStatusWorkloadsWorkloadRef { /** * APIVersion of the referenced object. */ apiVersion: pulumi.Input<string>; /** * Kind of the referenced object. */ kind: pulumi.Input<string>; /** * Name of the referenced object. */ name: pulumi.Input<string>; /** * UID of the referenced object. */ uid?: pulumi.Input<string>; } /** * A ComponentSpec defines the desired state of a Component. */ export interface ComponentSpec { /** * Parameters exposed by this component. ApplicationConfigurations that reference this component may specify values for these parameters, which will in turn be injected into the embedded workload. */ parameters?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ComponentSpecParameters>[]>; /** * A Workload that will be created for each ApplicationConfiguration that includes this Component. Workloads must be defined by a WorkloadDefinition. */ workload: pulumi.Input<{[key: string]: any}>; } /** * A ComponentParameter defines a configurable parameter of a component. */ export interface ComponentSpecParameters { /** * Description of this parameter. */ description?: pulumi.Input<string>; /** * FieldPaths specifies an array of fields within this Component's workload that will be overwritten by the value of this parameter. The type of the parameter (e.g. int, string) is inferred from the type of these fields; All fields must be of the same type. Fields are specified as JSON field paths without a leading dot, for example 'spec.replicas'. */ fieldPaths: pulumi.Input<pulumi.Input<string>[]>; /** * Name of this parameter. OAM ApplicationConfigurations will specify parameter values using this name. */ name: pulumi.Input<string>; /** * Required specifies whether or not a value for this parameter must be supplied when authoring an ApplicationConfiguration. */ required?: pulumi.Input<boolean>; } /** * A ComponentStatus represents the observed state of a Component. */ export interface ComponentStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ComponentStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface ComponentStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * A ContainerizedWorkloadSpec defines the desired state of a ContainerizedWorkload. */ export interface ContainerizedWorkloadSpec { /** * CPUArchitecture required by this workload. */ arch?: pulumi.Input<string>; /** * Containers of which this workload consists. */ containers: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainers>[]>; /** * OperatingSystem required by this workload. */ osType?: pulumi.Input<string>; } /** * A Container represents an Open Containers Initiative (OCI) container. */ export interface ContainerizedWorkloadSpecContainers { /** * Arguments to be passed to the command run by this container. */ args?: pulumi.Input<pulumi.Input<string>[]>; /** * Command to be run by this container. */ command?: pulumi.Input<pulumi.Input<string>[]>; /** * ConfigFiles that should be written within this container. */ config?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersConfig>[]>; /** * Environment variables that should be set within this container. */ env?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersEnv>[]>; /** * Image this container should run. Must be a path-like or URI-like representation of an OCI image. May be prefixed with a registry address and should be suffixed with a tag. */ image: pulumi.Input<string>; /** * ImagePullSecret specifies the name of a Secret from which the credentials required to pull this container's image can be loaded. */ imagePullSecret?: pulumi.Input<string>; /** * A LivenessProbe assesses whether this container is alive. Containers that fail liveness probes will be restarted. */ livenessProbe?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersLivenessProbe>; /** * Name of this container. Must be unique within its workload. */ name: pulumi.Input<string>; /** * Ports exposed by this container. */ ports?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersPorts>[]>; /** * A ReadinessProbe assesses whether this container is ready to serve requests. Containers that fail readiness probes will be withdrawn from service. */ readinessProbe?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersReadinessProbe>; /** * Resources required by this container */ resources?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersResources>; } /** * A ContainerConfigFile specifies a configuration file that should be written within a container. */ export interface ContainerizedWorkloadSpecContainersConfig { /** * FromSecret is a secret key reference which can be used to assign a value to be written to the configuration file at the given path in the container. */ fromSecret?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersConfigFromSecret>; /** * Path within the container at which the configuration file should be written. */ path: pulumi.Input<string>; /** * Value that should be written to the configuration file. */ value?: pulumi.Input<string>; } /** * FromSecret is a secret key reference which can be used to assign a value to be written to the configuration file at the given path in the container. */ export interface ContainerizedWorkloadSpecContainersConfigFromSecret { /** * The key to select. */ key: pulumi.Input<string>; /** * The name of the secret. */ name: pulumi.Input<string>; } /** * A ContainerEnvVar specifies an environment variable that should be set within a container. */ export interface ContainerizedWorkloadSpecContainersEnv { /** * FromSecret is a secret key reference which can be used to assign a value to the environment variable. */ fromSecret?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersEnvFromSecret>; /** * Name of the environment variable. Must be composed of valid Unicode letter and number characters, as well as _ and -. */ name: pulumi.Input<string>; /** * Value of the environment variable. */ value?: pulumi.Input<string>; } /** * FromSecret is a secret key reference which can be used to assign a value to the environment variable. */ export interface ContainerizedWorkloadSpecContainersEnvFromSecret { /** * The key to select. */ key: pulumi.Input<string>; /** * The name of the secret. */ name: pulumi.Input<string>; } /** * A LivenessProbe assesses whether this container is alive. Containers that fail liveness probes will be restarted. */ export interface ContainerizedWorkloadSpecContainersLivenessProbe { /** * Exec probes a container's health by executing a command. */ exec?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersLivenessProbeExec>; /** * FailureThreshold specifies how many consecutive probes must fail in order for the container to be considered healthy. */ failureThreshold?: pulumi.Input<number>; /** * HTTPGet probes a container's health by sending an HTTP GET request. */ httpGet?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersLivenessProbeHttpGet>; /** * InitialDelaySeconds after a container starts before the first probe. */ initialDelaySeconds?: pulumi.Input<number>; /** * PeriodSeconds between probes. */ periodSeconds?: pulumi.Input<number>; /** * SuccessThreshold specifies how many consecutive probes must success in order for the container to be considered healthy. */ successThreshold?: pulumi.Input<number>; /** * TCPSocketProbe probes a container's health by connecting to a TCP socket. */ tcpSocket?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersLivenessProbeTcpSocket>; /** * TimeoutSeconds after which the probe times out. */ timeoutSeconds?: pulumi.Input<number>; } /** * Exec probes a container's health by executing a command. */ export interface ContainerizedWorkloadSpecContainersLivenessProbeExec { /** * Command to be run by this probe. */ command: pulumi.Input<pulumi.Input<string>[]>; } /** * HTTPGet probes a container's health by sending an HTTP GET request. */ export interface ContainerizedWorkloadSpecContainersLivenessProbeHttpGet { /** * HTTPHeaders to send with the GET request. */ httpHeaders?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersLivenessProbeHttpGetHttpHeaders>[]>; /** * Path to probe, e.g. '/healthz'. */ path: pulumi.Input<string>; /** * Port to probe. */ port: pulumi.Input<number>; } /** * A HTTPHeader to be passed when probing a container. */ export interface ContainerizedWorkloadSpecContainersLivenessProbeHttpGetHttpHeaders { /** * Name of this HTTP header. Must be unique per probe. */ name: pulumi.Input<string>; /** * Value of this HTTP header. */ value: pulumi.Input<string>; } /** * TCPSocketProbe probes a container's health by connecting to a TCP socket. */ export interface ContainerizedWorkloadSpecContainersLivenessProbeTcpSocket { /** * Port this probe should connect to. */ port: pulumi.Input<number>; } /** * A ContainerPort specifies a port that is exposed by a container. */ export interface ContainerizedWorkloadSpecContainersPorts { /** * Port number. Must be unique within its container. */ containerPort: pulumi.Input<number>; /** * Name of this port. Must be unique within its container. Must be lowercase alphabetical characters. */ name: pulumi.Input<string>; /** * Protocol used by the server listening on this port. */ protocol?: pulumi.Input<string>; } /** * A ReadinessProbe assesses whether this container is ready to serve requests. Containers that fail readiness probes will be withdrawn from service. */ export interface ContainerizedWorkloadSpecContainersReadinessProbe { /** * Exec probes a container's health by executing a command. */ exec?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersReadinessProbeExec>; /** * FailureThreshold specifies how many consecutive probes must fail in order for the container to be considered healthy. */ failureThreshold?: pulumi.Input<number>; /** * HTTPGet probes a container's health by sending an HTTP GET request. */ httpGet?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersReadinessProbeHttpGet>; /** * InitialDelaySeconds after a container starts before the first probe. */ initialDelaySeconds?: pulumi.Input<number>; /** * PeriodSeconds between probes. */ periodSeconds?: pulumi.Input<number>; /** * SuccessThreshold specifies how many consecutive probes must success in order for the container to be considered healthy. */ successThreshold?: pulumi.Input<number>; /** * TCPSocketProbe probes a container's health by connecting to a TCP socket. */ tcpSocket?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersReadinessProbeTcpSocket>; /** * TimeoutSeconds after which the probe times out. */ timeoutSeconds?: pulumi.Input<number>; } /** * Exec probes a container's health by executing a command. */ export interface ContainerizedWorkloadSpecContainersReadinessProbeExec { /** * Command to be run by this probe. */ command: pulumi.Input<pulumi.Input<string>[]>; } /** * HTTPGet probes a container's health by sending an HTTP GET request. */ export interface ContainerizedWorkloadSpecContainersReadinessProbeHttpGet { /** * HTTPHeaders to send with the GET request. */ httpHeaders?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersReadinessProbeHttpGetHttpHeaders>[]>; /** * Path to probe, e.g. '/healthz'. */ path: pulumi.Input<string>; /** * Port to probe. */ port: pulumi.Input<number>; } /** * A HTTPHeader to be passed when probing a container. */ export interface ContainerizedWorkloadSpecContainersReadinessProbeHttpGetHttpHeaders { /** * Name of this HTTP header. Must be unique per probe. */ name: pulumi.Input<string>; /** * Value of this HTTP header. */ value: pulumi.Input<string>; } /** * TCPSocketProbe probes a container's health by connecting to a TCP socket. */ export interface ContainerizedWorkloadSpecContainersReadinessProbeTcpSocket { /** * Port this probe should connect to. */ port: pulumi.Input<number>; } /** * Resources required by this container */ export interface ContainerizedWorkloadSpecContainersResources { /** * CPU required by this container. */ cpu: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersResourcesCpu>; /** * Extended resources required by this container. */ extended?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersResourcesExtended>[]>; /** * GPU required by this container. */ gpu?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersResourcesGpu>; /** * Memory required by this container. */ memory: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersResourcesMemory>; /** * Volumes required by this container. */ volumes?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersResourcesVolumes>[]>; } /** * CPU required by this container. */ export interface ContainerizedWorkloadSpecContainersResourcesCpu { /** * Required CPU count. 1.0 represents one CPU core. */ required: pulumi.Input<string>; } /** * ExtendedResource required by a container. */ export interface ContainerizedWorkloadSpecContainersResourcesExtended { /** * Name of the external resource. Resource names are specified in kind.group/version format, e.g. motionsensor.ext.example.com/v1. */ name: pulumi.Input<string>; /** * Required extended resource(s), e.g. 8 or "very-cool-widget" */ required: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersResourcesExtendedRequired>; } export interface ContainerizedWorkloadSpecContainersResourcesExtendedRequired { } /** * GPU required by this container. */ export interface ContainerizedWorkloadSpecContainersResourcesGpu { /** * Required GPU count. */ required: pulumi.Input<string>; } /** * Memory required by this container. */ export interface ContainerizedWorkloadSpecContainersResourcesMemory { /** * Required memory. */ required: pulumi.Input<string>; } /** * VolumeResource required by a container. */ export interface ContainerizedWorkloadSpecContainersResourcesVolumes { /** * AccessMode of this volume; RO (read only) or RW (read and write). */ accessMode?: pulumi.Input<string>; /** * Disk requirements of this volume. */ disk?: pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadSpecContainersResourcesVolumesDisk>; /** * MouthPath at which this volume will be mounted within its container. */ mountPath: pulumi.Input<string>; /** * Name of this volume. Must be unique within its container. */ name: pulumi.Input<string>; /** * SharingPolicy of this volume; Exclusive or Shared. */ sharingPolicy?: pulumi.Input<string>; } /** * Disk requirements of this volume. */ export interface ContainerizedWorkloadSpecContainersResourcesVolumesDisk { /** * Ephemeral specifies whether an external disk needs to be mounted. */ ephemeral?: pulumi.Input<boolean>; /** * Required disk space. */ required: pulumi.Input<string>; } /** * A ContainerizedWorkloadStatus represents the observed state of a ContainerizedWorkload. */ export interface ContainerizedWorkloadStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadStatusConditions>[]>; /** * Resources managed by this containerised workload. */ resources?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ContainerizedWorkloadStatusResources>[]>; } /** * A Condition that may apply to a resource. */ export interface ContainerizedWorkloadStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * A TypedReference refers to an object by Name, Kind, and APIVersion. It is commonly used to reference cluster-scoped objects or objects where the namespace is already known. */ export interface ContainerizedWorkloadStatusResources { /** * APIVersion of the referenced object. */ apiVersion: pulumi.Input<string>; /** * Kind of the referenced object. */ kind: pulumi.Input<string>; /** * Name of the referenced object. */ name: pulumi.Input<string>; /** * UID of the referenced object. */ uid?: pulumi.Input<string>; } /** * A ManualScalerTraitSpec defines the desired state of a ManualScalerTrait. */ export interface ManualScalerTraitSpec { /** * ReplicaCount of the workload this trait applies to. */ replicaCount: pulumi.Input<number>; /** * WorkloadReference to the workload this trait applies to. */ workloadRef: pulumi.Input<inputs.core.v1alpha2.ManualScalerTraitSpecWorkloadRef>; } /** * WorkloadReference to the workload this trait applies to. */ export interface ManualScalerTraitSpecWorkloadRef { /** * APIVersion of the referenced object. */ apiVersion: pulumi.Input<string>; /** * Kind of the referenced object. */ kind: pulumi.Input<string>; /** * Name of the referenced object. */ name: pulumi.Input<string>; /** * UID of the referenced object. */ uid?: pulumi.Input<string>; } /** * A ManualScalerTraitStatus represents the observed state of a ManualScalerTrait. */ export interface ManualScalerTraitStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.core.v1alpha2.ManualScalerTraitStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface ManualScalerTraitStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * A ScopeDefinitionSpec defines the desired state of a ScopeDefinition. */ export interface ScopeDefinitionSpec { /** * AllowComponentOverlap specifies whether an OAM component may exist in multiple instances of this kind of scope. */ allowComponentOverlap: pulumi.Input<boolean>; /** * Reference to the CustomResourceDefinition that defines this scope kind. */ definitionRef: pulumi.Input<inputs.core.v1alpha2.ScopeDefinitionSpecDefinitionRef>; } /** * Reference to the CustomResourceDefinition that defines this scope kind. */ export interface ScopeDefinitionSpecDefinitionRef { /** * Name of the referenced CustomResourceDefinition. */ name: pulumi.Input<string>; } /** * A TraitDefinitionSpec defines the desired state of a TraitDefinition. */ export interface TraitDefinitionSpec { /** * AppliesToWorkloads specifies the list of workload kinds this trait applies to. Workload kinds are specified in kind.group/version format, e.g. server.core.oam.dev/v1alpha2. Traits that omit this field apply to all workload kinds. */ appliesToWorkloads?: pulumi.Input<pulumi.Input<string>[]>; /** * Reference to the CustomResourceDefinition that defines this trait kind. */ definitionRef: pulumi.Input<inputs.core.v1alpha2.TraitDefinitionSpecDefinitionRef>; } /** * Reference to the CustomResourceDefinition that defines this trait kind. */ export interface TraitDefinitionSpecDefinitionRef { /** * Name of the referenced CustomResourceDefinition. */ name: pulumi.Input<string>; } /** * A WorkloadDefinitionSpec defines the desired state of a WorkloadDefinition. */ export interface WorkloadDefinitionSpec { /** * Reference to the CustomResourceDefinition that defines this workload kind. */ definitionRef: pulumi.Input<inputs.core.v1alpha2.WorkloadDefinitionSpecDefinitionRef>; } /** * Reference to the CustomResourceDefinition that defines this workload kind. */ export interface WorkloadDefinitionSpecDefinitionRef { /** * Name of the referenced CustomResourceDefinition. */ name: pulumi.Input<string>; } } } export namespace database { export namespace v1alpha1 { /** * MySQLInstanceSpec specifies the desired state of a MySQLInstance. */ export interface MySQLInstanceSpec { /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ classRef?: pulumi.Input<inputs.database.v1alpha1.MySQLInstanceSpecClassRef>; /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ classSelector?: pulumi.Input<inputs.database.v1alpha1.MySQLInstanceSpecClassSelector>; /** * EngineVersion specifies the desired MySQL engine version, e.g. 5.7. */ engineVersion?: pulumi.Input<string>; /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ resourceRef?: pulumi.Input<inputs.database.v1alpha1.MySQLInstanceSpecResourceRef>; /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ writeConnectionSecretToRef?: pulumi.Input<inputs.database.v1alpha1.MySQLInstanceSpecWriteConnectionSecretToRef>; } /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ export interface MySQLInstanceSpecClassRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ export interface MySQLInstanceSpecClassSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.database.v1alpha1.MySQLInstanceSpecClassSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface MySQLInstanceSpecClassSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ export interface MySQLInstanceSpecResourceRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ export interface MySQLInstanceSpecWriteConnectionSecretToRef { /** * Name of the secret. */ name: pulumi.Input<string>; } /** * A ResourceClaimStatus represents the observed status of a resource claim. */ export interface MySQLInstanceStatus { /** * Phase represents the binding phase of a managed resource or claim. Unbindable resources cannot be bound, typically because they are currently unavailable, or still being created. Unbound resource are available for binding, and Bound resources have successfully bound to another resource. */ bindingPhase?: pulumi.Input<string>; /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.database.v1alpha1.MySQLInstanceStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface MySQLInstanceStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * NoSQLInstanceSpec specifies the desired state of a NoSQLInstance. */ export interface NoSQLInstanceSpec { /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ classRef?: pulumi.Input<inputs.database.v1alpha1.NoSQLInstanceSpecClassRef>; /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ classSelector?: pulumi.Input<inputs.database.v1alpha1.NoSQLInstanceSpecClassSelector>; /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ resourceRef?: pulumi.Input<inputs.database.v1alpha1.NoSQLInstanceSpecResourceRef>; /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ writeConnectionSecretToRef?: pulumi.Input<inputs.database.v1alpha1.NoSQLInstanceSpecWriteConnectionSecretToRef>; } /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ export interface NoSQLInstanceSpecClassRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ export interface NoSQLInstanceSpecClassSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.database.v1alpha1.NoSQLInstanceSpecClassSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface NoSQLInstanceSpecClassSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ export interface NoSQLInstanceSpecResourceRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ export interface NoSQLInstanceSpecWriteConnectionSecretToRef { /** * Name of the secret. */ name: pulumi.Input<string>; } /** * A ResourceClaimStatus represents the observed status of a resource claim. */ export interface NoSQLInstanceStatus { /** * Phase represents the binding phase of a managed resource or claim. Unbindable resources cannot be bound, typically because they are currently unavailable, or still being created. Unbound resource are available for binding, and Bound resources have successfully bound to another resource. */ bindingPhase?: pulumi.Input<string>; /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.database.v1alpha1.NoSQLInstanceStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface NoSQLInstanceStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * PostgreSQLInstanceSpec specifies the desired state of a PostgreSQLInstance. PostgreSQLInstance. */ export interface PostgreSQLInstanceSpec { /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ classRef?: pulumi.Input<inputs.database.v1alpha1.PostgreSQLInstanceSpecClassRef>; /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ classSelector?: pulumi.Input<inputs.database.v1alpha1.PostgreSQLInstanceSpecClassSelector>; /** * EngineVersion specifies the desired PostgreSQL engine version. Allowed Versions: 9.6 and 11. */ engineVersion?: pulumi.Input<string>; /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ resourceRef?: pulumi.Input<inputs.database.v1alpha1.PostgreSQLInstanceSpecResourceRef>; /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ writeConnectionSecretToRef?: pulumi.Input<inputs.database.v1alpha1.PostgreSQLInstanceSpecWriteConnectionSecretToRef>; } /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ export interface PostgreSQLInstanceSpecClassRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ export interface PostgreSQLInstanceSpecClassSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.database.v1alpha1.PostgreSQLInstanceSpecClassSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface PostgreSQLInstanceSpecClassSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ export interface PostgreSQLInstanceSpecResourceRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ export interface PostgreSQLInstanceSpecWriteConnectionSecretToRef { /** * Name of the secret. */ name: pulumi.Input<string>; } /** * A ResourceClaimStatus represents the observed status of a resource claim. */ export interface PostgreSQLInstanceStatus { /** * Phase represents the binding phase of a managed resource or claim. Unbindable resources cannot be bound, typically because they are currently unavailable, or still being created. Unbound resource are available for binding, and Bound resources have successfully bound to another resource. */ bindingPhase?: pulumi.Input<string>; /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.database.v1alpha1.PostgreSQLInstanceStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface PostgreSQLInstanceStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } } } export namespace kubernetes { export namespace v1alpha1 { /** * A ProviderSpec defines the desired state of a Provider. */ export interface ProviderSpec { /** * A Secret containing connection credentials for a Kubernetes cluster client that will be used to authenticate to this Kubernetes Provider. This will typically be the connection secret of a KubernetesCluster claim, or the secret created by a Kubernetes service account, but could also be manually configured to connect to a preexisting cluster. */ credentialsSecretRef: pulumi.Input<inputs.kubernetes.v1alpha1.ProviderSpecCredentialsSecretRef>; } /** * A Secret containing connection credentials for a Kubernetes cluster client that will be used to authenticate to this Kubernetes Provider. This will typically be the connection secret of a KubernetesCluster claim, or the secret created by a Kubernetes service account, but could also be manually configured to connect to a preexisting cluster. */ export interface ProviderSpecCredentialsSecretRef { /** * Name of the secret. */ name: pulumi.Input<string>; /** * Namespace of the secret. */ namespace: pulumi.Input<string>; } } } export namespace packages { export namespace v1alpha1 { export interface ClusterPackageInstallSpec { crd?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; imagePullSecrets?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.ClusterPackageInstallSpecImagePullSecrets>[]>; package?: pulumi.Input<string>; serviceAccount?: pulumi.Input<inputs.packages.v1alpha1.ClusterPackageInstallSpecServiceAccount>; source?: pulumi.Input<string>; } export interface ClusterPackageInstallSpecImagePullSecrets { name?: pulumi.Input<string>; } export interface ClusterPackageInstallSpecServiceAccount { annotations?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface ClusterPackageInstallStatus { conditionedStatus?: pulumi.Input<inputs.packages.v1alpha1.ClusterPackageInstallStatusConditionedStatus>; installJob?: pulumi.Input<inputs.packages.v1alpha1.ClusterPackageInstallStatusInstallJob>; packageRecord?: pulumi.Input<inputs.packages.v1alpha1.ClusterPackageInstallStatusPackageRecord>; } export interface ClusterPackageInstallStatusConditionedStatus { conditions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.ClusterPackageInstallStatusConditionedStatusConditions>[]>; } export interface ClusterPackageInstallStatusConditionedStatusConditions { lastTransitionTime: pulumi.Input<string>; message?: pulumi.Input<string>; reason: pulumi.Input<string>; status: pulumi.Input<string>; type: pulumi.Input<string>; } export interface ClusterPackageInstallStatusInstallJob { apiVersion?: pulumi.Input<string>; fieldPath?: pulumi.Input<string>; kind?: pulumi.Input<string>; name?: pulumi.Input<string>; namespace?: pulumi.Input<string>; resourceVersion?: pulumi.Input<string>; uid?: pulumi.Input<string>; } export interface ClusterPackageInstallStatusPackageRecord { apiVersion?: pulumi.Input<string>; fieldPath?: pulumi.Input<string>; kind?: pulumi.Input<string>; name?: pulumi.Input<string>; namespace?: pulumi.Input<string>; resourceVersion?: pulumi.Input<string>; uid?: pulumi.Input<string>; } export interface PackageInstallSpec { crd?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; imagePullSecrets?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageInstallSpecImagePullSecrets>[]>; package?: pulumi.Input<string>; serviceAccount?: pulumi.Input<inputs.packages.v1alpha1.PackageInstallSpecServiceAccount>; source?: pulumi.Input<string>; } export interface PackageInstallSpecImagePullSecrets { name?: pulumi.Input<string>; } export interface PackageInstallSpecServiceAccount { annotations?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageInstallStatus { conditionedStatus?: pulumi.Input<inputs.packages.v1alpha1.PackageInstallStatusConditionedStatus>; installJob?: pulumi.Input<inputs.packages.v1alpha1.PackageInstallStatusInstallJob>; packageRecord?: pulumi.Input<inputs.packages.v1alpha1.PackageInstallStatusPackageRecord>; } export interface PackageInstallStatusConditionedStatus { conditions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageInstallStatusConditionedStatusConditions>[]>; } export interface PackageInstallStatusConditionedStatusConditions { lastTransitionTime: pulumi.Input<string>; message?: pulumi.Input<string>; reason: pulumi.Input<string>; status: pulumi.Input<string>; type: pulumi.Input<string>; } export interface PackageInstallStatusInstallJob { apiVersion?: pulumi.Input<string>; fieldPath?: pulumi.Input<string>; kind?: pulumi.Input<string>; name?: pulumi.Input<string>; namespace?: pulumi.Input<string>; resourceVersion?: pulumi.Input<string>; uid?: pulumi.Input<string>; } export interface PackageInstallStatusPackageRecord { apiVersion?: pulumi.Input<string>; fieldPath?: pulumi.Input<string>; kind?: pulumi.Input<string>; name?: pulumi.Input<string>; namespace?: pulumi.Input<string>; resourceVersion?: pulumi.Input<string>; uid?: pulumi.Input<string>; } export interface PackageSpec { category?: pulumi.Input<string>; company?: pulumi.Input<string>; controller?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecController>; customresourcedefinitions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecCustomresourcedefinitions>[]>; dependsOn?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecDependsOn>[]>; icons?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecIcons>[]>; keywords?: pulumi.Input<pulumi.Input<string>[]>; license?: pulumi.Input<string>; maintainers?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecMaintainers>[]>; overview?: pulumi.Input<string>; overviewShort?: pulumi.Input<string>; owners?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecOwners>[]>; packageType?: pulumi.Input<string>; permissionScope?: pulumi.Input<string>; permissions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecPermissions>; readme?: pulumi.Input<string>; source?: pulumi.Input<string>; title?: pulumi.Input<string>; version?: pulumi.Input<string>; website?: pulumi.Input<string>; } export interface PackageSpecController { deployment?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeployment>; serviceAccount?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerServiceAccount>; } export interface PackageSpecControllerDeployment { name: pulumi.Input<string>; spec: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpec>; } export interface PackageSpecControllerDeploymentSpec { minReadySeconds?: pulumi.Input<number>; paused?: pulumi.Input<boolean>; progressDeadlineSeconds?: pulumi.Input<number>; replicas?: pulumi.Input<number>; revisionHistoryLimit?: pulumi.Input<number>; selector: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecSelector>; strategy?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecStrategy>; template: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplate>; } export interface PackageSpecControllerDeploymentSpecSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecStrategy { rollingUpdate?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecStrategyRollingUpdate>; type?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecStrategyRollingUpdate { maxSurge?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecStrategyRollingUpdateMaxSurge>; maxUnavailable?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecStrategyRollingUpdateMaxUnavailable>; } export interface PackageSpecControllerDeploymentSpecStrategyRollingUpdateMaxSurge { } export interface PackageSpecControllerDeploymentSpecStrategyRollingUpdateMaxUnavailable { } export interface PackageSpecControllerDeploymentSpecTemplate { metadata?: pulumi.Input<{[key: string]: any}>; spec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpec>; } export interface PackageSpecControllerDeploymentSpecTemplateSpec { activeDeadlineSeconds?: pulumi.Input<number>; affinity?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinity>; automountServiceAccountToken?: pulumi.Input<boolean>; containers: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainers>[]>; dnsConfig?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecDnsConfig>; dnsPolicy?: pulumi.Input<string>; enableServiceLinks?: pulumi.Input<boolean>; ephemeralContainers?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainers>[]>; hostAliases?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecHostAliases>[]>; hostIPC?: pulumi.Input<boolean>; hostNetwork?: pulumi.Input<boolean>; hostPID?: pulumi.Input<boolean>; hostname?: pulumi.Input<string>; imagePullSecrets?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecImagePullSecrets>[]>; initContainers?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainers>[]>; nodeName?: pulumi.Input<string>; nodeSelector?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; overhead?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; preemptionPolicy?: pulumi.Input<string>; priority?: pulumi.Input<number>; priorityClassName?: pulumi.Input<string>; readinessGates?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecReadinessGates>[]>; restartPolicy?: pulumi.Input<string>; runtimeClassName?: pulumi.Input<string>; schedulerName?: pulumi.Input<string>; securityContext?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecSecurityContext>; serviceAccount?: pulumi.Input<string>; serviceAccountName?: pulumi.Input<string>; shareProcessNamespace?: pulumi.Input<boolean>; subdomain?: pulumi.Input<string>; terminationGracePeriodSeconds?: pulumi.Input<number>; tolerations?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecTolerations>[]>; topologySpreadConstraints?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraints>[]>; volumes?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumes>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinity { nodeAffinity?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinity>; podAffinity?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinity>; podAntiAffinity?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinity>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinity { preferredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution>[]>; requiredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { preference: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference>; weight: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions>[]>; matchFields?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { nodeSelectorTerms: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions>[]>; matchFields?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinity { preferredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution>[]>; requiredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { podAffinityTerm: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm>; weight: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector>; namespaces?: pulumi.Input<pulumi.Input<string>[]>; topologyKey: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector>; namespaces?: pulumi.Input<pulumi.Input<string>[]>; topologyKey: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinity { preferredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution>[]>; requiredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { podAffinityTerm: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm>; weight: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector>; namespaces?: pulumi.Input<pulumi.Input<string>[]>; topologyKey: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector>; namespaces?: pulumi.Input<pulumi.Input<string>[]>; topologyKey: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainers { args?: pulumi.Input<pulumi.Input<string>[]>; command?: pulumi.Input<pulumi.Input<string>[]>; env?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnv>[]>; envFrom?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvFrom>[]>; image?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; lifecycle?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecycle>; livenessProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbe>; name: pulumi.Input<string>; ports?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersPorts>[]>; readinessProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbe>; resources?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersResources>; securityContext?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersSecurityContext>; startupProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbe>; stdin?: pulumi.Input<boolean>; stdinOnce?: pulumi.Input<boolean>; terminationMessagePath?: pulumi.Input<string>; terminationMessagePolicy?: pulumi.Input<string>; tty?: pulumi.Input<boolean>; volumeDevices?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersVolumeDevices>[]>; volumeMounts?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersVolumeMounts>[]>; workingDir?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnv { name: pulumi.Input<string>; value?: pulumi.Input<string>; valueFrom?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFrom>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvFrom { configMapRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvFromConfigMapRef>; prefix?: pulumi.Input<string>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvFromSecretRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvFromConfigMapRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvFromSecretRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFrom { configMapKeyRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef>; fieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromFieldRef>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromResourceFieldRef>; secretKeyRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromSecretKeyRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromSecretKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecycle { postStart?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStart>; preStop?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStop>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStart { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartTcpSocket>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStop { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopTcpSocket>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersPorts { containerPort: pulumi.Input<number>; hostIP?: pulumi.Input<string>; hostPort?: pulumi.Input<number>; name?: pulumi.Input<string>; protocol?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersResources { limits?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; requests?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersSecurityContext { allowPrivilegeEscalation?: pulumi.Input<boolean>; capabilities?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextCapabilities>; privileged?: pulumi.Input<boolean>; procMount?: pulumi.Input<string>; readOnlyRootFilesystem?: pulumi.Input<boolean>; runAsGroup?: pulumi.Input<number>; runAsNonRoot?: pulumi.Input<boolean>; runAsUser?: pulumi.Input<number>; seLinuxOptions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextSeLinuxOptions>; windowsOptions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextWindowsOptions>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextCapabilities { add?: pulumi.Input<pulumi.Input<string>[]>; drop?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextSeLinuxOptions { level?: pulumi.Input<string>; role?: pulumi.Input<string>; type?: pulumi.Input<string>; user?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextWindowsOptions { gmsaCredentialSpec?: pulumi.Input<string>; gmsaCredentialSpecName?: pulumi.Input<string>; runAsUserName?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersVolumeDevices { devicePath: pulumi.Input<string>; name: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecContainersVolumeMounts { mountPath: pulumi.Input<string>; mountPropagation?: pulumi.Input<string>; name: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; subPath?: pulumi.Input<string>; subPathExpr?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecDnsConfig { nameservers?: pulumi.Input<pulumi.Input<string>[]>; options?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecDnsConfigOptions>[]>; searches?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecDnsConfigOptions { name?: pulumi.Input<string>; value?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainers { args?: pulumi.Input<pulumi.Input<string>[]>; command?: pulumi.Input<pulumi.Input<string>[]>; env?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnv>[]>; envFrom?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFrom>[]>; image?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; lifecycle?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecycle>; livenessProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbe>; name: pulumi.Input<string>; ports?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersPorts>[]>; readinessProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbe>; resources?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersResources>; securityContext?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContext>; startupProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbe>; stdin?: pulumi.Input<boolean>; stdinOnce?: pulumi.Input<boolean>; targetContainerName?: pulumi.Input<string>; terminationMessagePath?: pulumi.Input<string>; terminationMessagePolicy?: pulumi.Input<string>; tty?: pulumi.Input<boolean>; volumeDevices?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersVolumeDevices>[]>; volumeMounts?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersVolumeMounts>[]>; workingDir?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnv { name: pulumi.Input<string>; value?: pulumi.Input<string>; valueFrom?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFrom>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFrom { configMapRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef>; prefix?: pulumi.Input<string>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFromSecretRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFromSecretRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFrom { configMapKeyRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef>; fieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef>; secretKeyRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecycle { postStart?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStart>; preStop?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStop>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStart { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStop { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersPorts { containerPort: pulumi.Input<number>; hostIP?: pulumi.Input<string>; hostPort?: pulumi.Input<number>; name?: pulumi.Input<string>; protocol?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersResources { limits?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; requests?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContext { allowPrivilegeEscalation?: pulumi.Input<boolean>; capabilities?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextCapabilities>; privileged?: pulumi.Input<boolean>; procMount?: pulumi.Input<string>; readOnlyRootFilesystem?: pulumi.Input<boolean>; runAsGroup?: pulumi.Input<number>; runAsNonRoot?: pulumi.Input<boolean>; runAsUser?: pulumi.Input<number>; seLinuxOptions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions>; windowsOptions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextCapabilities { add?: pulumi.Input<pulumi.Input<string>[]>; drop?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions { level?: pulumi.Input<string>; role?: pulumi.Input<string>; type?: pulumi.Input<string>; user?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions { gmsaCredentialSpec?: pulumi.Input<string>; gmsaCredentialSpecName?: pulumi.Input<string>; runAsUserName?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersVolumeDevices { devicePath: pulumi.Input<string>; name: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecEphemeralContainersVolumeMounts { mountPath: pulumi.Input<string>; mountPropagation?: pulumi.Input<string>; name: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; subPath?: pulumi.Input<string>; subPathExpr?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecHostAliases { hostnames?: pulumi.Input<pulumi.Input<string>[]>; ip?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecImagePullSecrets { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainers { args?: pulumi.Input<pulumi.Input<string>[]>; command?: pulumi.Input<pulumi.Input<string>[]>; env?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnv>[]>; envFrom?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFrom>[]>; image?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; lifecycle?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecycle>; livenessProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbe>; name: pulumi.Input<string>; ports?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersPorts>[]>; readinessProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbe>; resources?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersResources>; securityContext?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContext>; startupProbe?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbe>; stdin?: pulumi.Input<boolean>; stdinOnce?: pulumi.Input<boolean>; terminationMessagePath?: pulumi.Input<string>; terminationMessagePolicy?: pulumi.Input<string>; tty?: pulumi.Input<boolean>; volumeDevices?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersVolumeDevices>[]>; volumeMounts?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersVolumeMounts>[]>; workingDir?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnv { name: pulumi.Input<string>; value?: pulumi.Input<string>; valueFrom?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFrom>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFrom { configMapRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFromConfigMapRef>; prefix?: pulumi.Input<string>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFromSecretRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFromConfigMapRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFromSecretRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFrom { configMapKeyRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef>; fieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromFieldRef>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef>; secretKeyRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecycle { postStart?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStart>; preStop?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStop>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStart { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStop { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersPorts { containerPort: pulumi.Input<number>; hostIP?: pulumi.Input<string>; hostPort?: pulumi.Input<number>; name?: pulumi.Input<string>; protocol?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersResources { limits?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; requests?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContext { allowPrivilegeEscalation?: pulumi.Input<boolean>; capabilities?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextCapabilities>; privileged?: pulumi.Input<boolean>; procMount?: pulumi.Input<string>; readOnlyRootFilesystem?: pulumi.Input<boolean>; runAsGroup?: pulumi.Input<number>; runAsNonRoot?: pulumi.Input<boolean>; runAsUser?: pulumi.Input<number>; seLinuxOptions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions>; windowsOptions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextWindowsOptions>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextCapabilities { add?: pulumi.Input<pulumi.Input<string>[]>; drop?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions { level?: pulumi.Input<string>; role?: pulumi.Input<string>; type?: pulumi.Input<string>; user?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextWindowsOptions { gmsaCredentialSpec?: pulumi.Input<string>; gmsaCredentialSpecName?: pulumi.Input<string>; runAsUserName?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGetPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeTcpSocketPort>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeTcpSocketPort { } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersVolumeDevices { devicePath: pulumi.Input<string>; name: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecInitContainersVolumeMounts { mountPath: pulumi.Input<string>; mountPropagation?: pulumi.Input<string>; name: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; subPath?: pulumi.Input<string>; subPathExpr?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecReadinessGates { conditionType: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecSecurityContext { fsGroup?: pulumi.Input<number>; fsGroupChangePolicy?: pulumi.Input<string>; runAsGroup?: pulumi.Input<number>; runAsNonRoot?: pulumi.Input<boolean>; runAsUser?: pulumi.Input<number>; seLinuxOptions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecSecurityContextSeLinuxOptions>; supplementalGroups?: pulumi.Input<pulumi.Input<number>[]>; sysctls?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecSecurityContextSysctls>[]>; windowsOptions?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecSecurityContextWindowsOptions>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecSecurityContextSeLinuxOptions { level?: pulumi.Input<string>; role?: pulumi.Input<string>; type?: pulumi.Input<string>; user?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecSecurityContextSysctls { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecSecurityContextWindowsOptions { gmsaCredentialSpec?: pulumi.Input<string>; gmsaCredentialSpecName?: pulumi.Input<string>; runAsUserName?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecTolerations { effect?: pulumi.Input<string>; key?: pulumi.Input<string>; operator?: pulumi.Input<string>; tolerationSeconds?: pulumi.Input<number>; value?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraints { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraintsLabelSelector>; maxSkew: pulumi.Input<number>; topologyKey: pulumi.Input<string>; whenUnsatisfiable: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraintsLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumes { awsElasticBlockStore?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesAwsElasticBlockStore>; azureDisk?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesAzureDisk>; azureFile?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesAzureFile>; cephfs?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesCephfs>; cinder?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesCinder>; configMap?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesConfigMap>; csi?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesCsi>; downwardAPI?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPI>; emptyDir?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesEmptyDir>; fc?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesFc>; flexVolume?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesFlexVolume>; flocker?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesFlocker>; gcePersistentDisk?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesGcePersistentDisk>; gitRepo?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesGitRepo>; glusterfs?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesGlusterfs>; hostPath?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesHostPath>; iscsi?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesIscsi>; name: pulumi.Input<string>; nfs?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesNfs>; persistentVolumeClaim?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesPersistentVolumeClaim>; photonPersistentDisk?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesPhotonPersistentDisk>; portworxVolume?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesPortworxVolume>; projected?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjected>; quobyte?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesQuobyte>; rbd?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesRbd>; scaleIO?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesScaleIO>; secret?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesSecret>; storageos?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesStorageos>; vsphereVolume?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesVsphereVolume>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesAwsElasticBlockStore { fsType?: pulumi.Input<string>; partition?: pulumi.Input<number>; readOnly?: pulumi.Input<boolean>; volumeID: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesAzureDisk { cachingMode?: pulumi.Input<string>; diskName: pulumi.Input<string>; diskURI: pulumi.Input<string>; fsType?: pulumi.Input<string>; kind?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesAzureFile { readOnly?: pulumi.Input<boolean>; secretName: pulumi.Input<string>; shareName: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesCephfs { monitors: pulumi.Input<pulumi.Input<string>[]>; path?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretFile?: pulumi.Input<string>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesCephfsSecretRef>; user?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesCephfsSecretRef { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesCinder { fsType?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesCinderSecretRef>; volumeID: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesCinderSecretRef { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesConfigMap { defaultMode?: pulumi.Input<number>; items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesConfigMapItems>[]>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesConfigMapItems { key: pulumi.Input<string>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesCsi { driver: pulumi.Input<string>; fsType?: pulumi.Input<string>; nodePublishSecretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesCsiNodePublishSecretRef>; readOnly?: pulumi.Input<boolean>; volumeAttributes?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesCsiNodePublishSecretRef { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPI { defaultMode?: pulumi.Input<number>; items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItems>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItems { fieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItemsFieldRef>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItemsResourceFieldRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItemsFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItemsResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesEmptyDir { medium?: pulumi.Input<string>; sizeLimit?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesFc { fsType?: pulumi.Input<string>; lun?: pulumi.Input<number>; readOnly?: pulumi.Input<boolean>; targetWWNs?: pulumi.Input<pulumi.Input<string>[]>; wwids?: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesFlexVolume { driver: pulumi.Input<string>; fsType?: pulumi.Input<string>; options?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesFlexVolumeSecretRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesFlexVolumeSecretRef { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesFlocker { datasetName?: pulumi.Input<string>; datasetUUID?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesGcePersistentDisk { fsType?: pulumi.Input<string>; partition?: pulumi.Input<number>; pdName: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesGitRepo { directory?: pulumi.Input<string>; repository: pulumi.Input<string>; revision?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesGlusterfs { endpoints: pulumi.Input<string>; path: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesHostPath { path: pulumi.Input<string>; type?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesIscsi { chapAuthDiscovery?: pulumi.Input<boolean>; chapAuthSession?: pulumi.Input<boolean>; fsType?: pulumi.Input<string>; initiatorName?: pulumi.Input<string>; iqn: pulumi.Input<string>; iscsiInterface?: pulumi.Input<string>; lun: pulumi.Input<number>; portals?: pulumi.Input<pulumi.Input<string>[]>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesIscsiSecretRef>; targetPortal: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesIscsiSecretRef { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesNfs { path: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; server: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesPersistentVolumeClaim { claimName: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesPhotonPersistentDisk { fsType?: pulumi.Input<string>; pdID: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesPortworxVolume { fsType?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; volumeID: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjected { defaultMode?: pulumi.Input<number>; sources: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSources>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSources { configMap?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesConfigMap>; downwardAPI?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPI>; secret?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesSecret>; serviceAccountToken?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesServiceAccountToken>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesConfigMap { items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesConfigMapItems>[]>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesConfigMapItems { key: pulumi.Input<string>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPI { items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItems>[]>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItems { fieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItemsFieldRef>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItemsResourceFieldRef>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItemsFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItemsResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesSecret { items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesSecretItems>[]>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesSecretItems { key: pulumi.Input<string>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesServiceAccountToken { audience?: pulumi.Input<string>; expirationSeconds?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesQuobyte { group?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; registry: pulumi.Input<string>; tenant?: pulumi.Input<string>; user?: pulumi.Input<string>; volume: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesRbd { fsType?: pulumi.Input<string>; image: pulumi.Input<string>; keyring?: pulumi.Input<string>; monitors: pulumi.Input<pulumi.Input<string>[]>; pool?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesRbdSecretRef>; user?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesRbdSecretRef { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesScaleIO { fsType?: pulumi.Input<string>; gateway: pulumi.Input<string>; protectionDomain?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretRef: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesScaleIOSecretRef>; sslEnabled?: pulumi.Input<boolean>; storageMode?: pulumi.Input<string>; storagePool?: pulumi.Input<string>; system: pulumi.Input<string>; volumeName?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesScaleIOSecretRef { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesSecret { defaultMode?: pulumi.Input<number>; items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesSecretItems>[]>; optional?: pulumi.Input<boolean>; secretName?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesSecretItems { key: pulumi.Input<string>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesStorageos { fsType?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecControllerDeploymentSpecTemplateSpecVolumesStorageosSecretRef>; volumeName?: pulumi.Input<string>; volumeNamespace?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesStorageosSecretRef { name?: pulumi.Input<string>; } export interface PackageSpecControllerDeploymentSpecTemplateSpecVolumesVsphereVolume { fsType?: pulumi.Input<string>; storagePolicyID?: pulumi.Input<string>; storagePolicyName?: pulumi.Input<string>; volumePath: pulumi.Input<string>; } export interface PackageSpecControllerServiceAccount { annotations?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecCustomresourcedefinitions { apiVersion?: pulumi.Input<string>; kind?: pulumi.Input<string>; } export interface PackageSpecDependsOn { crd?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; imagePullSecrets?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecDependsOnImagePullSecrets>[]>; package?: pulumi.Input<string>; serviceAccount?: pulumi.Input<inputs.packages.v1alpha1.PackageSpecDependsOnServiceAccount>; source?: pulumi.Input<string>; } export interface PackageSpecDependsOnImagePullSecrets { name?: pulumi.Input<string>; } export interface PackageSpecDependsOnServiceAccount { annotations?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface PackageSpecIcons { base64Data: pulumi.Input<string>; mediatype: pulumi.Input<string>; } export interface PackageSpecMaintainers { email?: pulumi.Input<string>; name?: pulumi.Input<string>; } export interface PackageSpecOwners { email?: pulumi.Input<string>; name?: pulumi.Input<string>; } export interface PackageSpecPermissions { rules?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageSpecPermissionsRules>[]>; } export interface PackageSpecPermissionsRules { apiGroups?: pulumi.Input<pulumi.Input<string>[]>; nonResourceURLs?: pulumi.Input<pulumi.Input<string>[]>; resourceNames?: pulumi.Input<pulumi.Input<string>[]>; resources?: pulumi.Input<pulumi.Input<string>[]>; verbs: pulumi.Input<pulumi.Input<string>[]>; } export interface PackageStatus { conditionedStatus?: pulumi.Input<inputs.packages.v1alpha1.PackageStatusConditionedStatus>; controllerRef?: pulumi.Input<inputs.packages.v1alpha1.PackageStatusControllerRef>; } export interface PackageStatusConditionedStatus { conditions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.PackageStatusConditionedStatusConditions>[]>; } export interface PackageStatusConditionedStatusConditions { lastTransitionTime: pulumi.Input<string>; message?: pulumi.Input<string>; reason: pulumi.Input<string>; status: pulumi.Input<string>; type: pulumi.Input<string>; } export interface PackageStatusControllerRef { apiVersion?: pulumi.Input<string>; fieldPath?: pulumi.Input<string>; kind?: pulumi.Input<string>; name?: pulumi.Input<string>; namespace?: pulumi.Input<string>; resourceVersion?: pulumi.Input<string>; uid?: pulumi.Input<string>; } export interface StackDefinitionSpec { behavior?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecBehavior>; category?: pulumi.Input<string>; company?: pulumi.Input<string>; controller?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecController>; customresourcedefinitions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecCustomresourcedefinitions>[]>; dependsOn?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecDependsOn>[]>; icons?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecIcons>[]>; keywords?: pulumi.Input<pulumi.Input<string>[]>; license?: pulumi.Input<string>; maintainers?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecMaintainers>[]>; overview?: pulumi.Input<string>; overviewShort?: pulumi.Input<string>; owners?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecOwners>[]>; packageType?: pulumi.Input<string>; permissionScope?: pulumi.Input<string>; permissions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecPermissions>; readme?: pulumi.Input<string>; source?: pulumi.Input<string>; title?: pulumi.Input<string>; version?: pulumi.Input<string>; website?: pulumi.Input<string>; } export interface StackDefinitionSpecBehavior { crd?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecBehaviorCrd>; engine?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecBehaviorEngine>; source?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecBehaviorSource>; } export interface StackDefinitionSpecBehaviorCrd { apiVersion: pulumi.Input<string>; kind: pulumi.Input<string>; } export interface StackDefinitionSpecBehaviorEngine { controllerImage?: pulumi.Input<string>; kustomize?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecBehaviorEngineKustomize>; type: pulumi.Input<string>; } export interface StackDefinitionSpecBehaviorEngineKustomize { kustomization?: pulumi.Input<{[key: string]: any}>; overlays?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecBehaviorEngineKustomizeOverlays>[]>; } export interface StackDefinitionSpecBehaviorEngineKustomizeOverlays { apiVersion: pulumi.Input<string>; bindings: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecBehaviorEngineKustomizeOverlaysBindings>[]>; kind: pulumi.Input<string>; name: pulumi.Input<string>; } export interface StackDefinitionSpecBehaviorEngineKustomizeOverlaysBindings { from: pulumi.Input<string>; to: pulumi.Input<string>; } export interface StackDefinitionSpecBehaviorSource { image?: pulumi.Input<string>; path: pulumi.Input<string>; } export interface StackDefinitionSpecController { deployment?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeployment>; serviceAccount?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerServiceAccount>; } export interface StackDefinitionSpecControllerDeployment { name: pulumi.Input<string>; spec: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpec>; } export interface StackDefinitionSpecControllerDeploymentSpec { minReadySeconds?: pulumi.Input<number>; paused?: pulumi.Input<boolean>; progressDeadlineSeconds?: pulumi.Input<number>; replicas?: pulumi.Input<number>; revisionHistoryLimit?: pulumi.Input<number>; selector: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecSelector>; strategy?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecStrategy>; template: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplate>; } export interface StackDefinitionSpecControllerDeploymentSpecSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecStrategy { rollingUpdate?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecStrategyRollingUpdate>; type?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecStrategyRollingUpdate { maxSurge?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecStrategyRollingUpdateMaxSurge>; maxUnavailable?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecStrategyRollingUpdateMaxUnavailable>; } export interface StackDefinitionSpecControllerDeploymentSpecStrategyRollingUpdateMaxSurge { } export interface StackDefinitionSpecControllerDeploymentSpecStrategyRollingUpdateMaxUnavailable { } export interface StackDefinitionSpecControllerDeploymentSpecTemplate { metadata?: pulumi.Input<{[key: string]: any}>; spec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpec>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpec { activeDeadlineSeconds?: pulumi.Input<number>; affinity?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinity>; automountServiceAccountToken?: pulumi.Input<boolean>; containers: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainers>[]>; dnsConfig?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecDnsConfig>; dnsPolicy?: pulumi.Input<string>; enableServiceLinks?: pulumi.Input<boolean>; ephemeralContainers?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainers>[]>; hostAliases?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecHostAliases>[]>; hostIPC?: pulumi.Input<boolean>; hostNetwork?: pulumi.Input<boolean>; hostPID?: pulumi.Input<boolean>; hostname?: pulumi.Input<string>; imagePullSecrets?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecImagePullSecrets>[]>; initContainers?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainers>[]>; nodeName?: pulumi.Input<string>; nodeSelector?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; overhead?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; preemptionPolicy?: pulumi.Input<string>; priority?: pulumi.Input<number>; priorityClassName?: pulumi.Input<string>; readinessGates?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecReadinessGates>[]>; restartPolicy?: pulumi.Input<string>; runtimeClassName?: pulumi.Input<string>; schedulerName?: pulumi.Input<string>; securityContext?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecSecurityContext>; serviceAccount?: pulumi.Input<string>; serviceAccountName?: pulumi.Input<string>; shareProcessNamespace?: pulumi.Input<boolean>; subdomain?: pulumi.Input<string>; terminationGracePeriodSeconds?: pulumi.Input<number>; tolerations?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecTolerations>[]>; topologySpreadConstraints?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraints>[]>; volumes?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumes>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinity { nodeAffinity?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinity>; podAffinity?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinity>; podAntiAffinity?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinity>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinity { preferredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution>[]>; requiredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { preference: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference>; weight: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreference { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions>[]>; matchFields?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchFields { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { nodeSelectorTerms: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions>[]>; matchFields?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTermsMatchFields { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinity { preferredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution>[]>; requiredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { podAffinityTerm: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm>; weight: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector>; namespaces?: pulumi.Input<pulumi.Input<string>[]>; topologyKey: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector>; namespaces?: pulumi.Input<pulumi.Input<string>[]>; topologyKey: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinity { preferredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution>[]>; requiredDuringSchedulingIgnoredDuringExecution?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution { podAffinityTerm: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm>; weight: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector>; namespaces?: pulumi.Input<pulumi.Input<string>[]>; topologyKey: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector>; namespaces?: pulumi.Input<pulumi.Input<string>[]>; topologyKey: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainers { args?: pulumi.Input<pulumi.Input<string>[]>; command?: pulumi.Input<pulumi.Input<string>[]>; env?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnv>[]>; envFrom?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvFrom>[]>; image?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; lifecycle?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecycle>; livenessProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbe>; name: pulumi.Input<string>; ports?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersPorts>[]>; readinessProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbe>; resources?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersResources>; securityContext?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersSecurityContext>; startupProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbe>; stdin?: pulumi.Input<boolean>; stdinOnce?: pulumi.Input<boolean>; terminationMessagePath?: pulumi.Input<string>; terminationMessagePolicy?: pulumi.Input<string>; tty?: pulumi.Input<boolean>; volumeDevices?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersVolumeDevices>[]>; volumeMounts?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersVolumeMounts>[]>; workingDir?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnv { name: pulumi.Input<string>; value?: pulumi.Input<string>; valueFrom?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFrom>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvFrom { configMapRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvFromConfigMapRef>; prefix?: pulumi.Input<string>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvFromSecretRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvFromConfigMapRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvFromSecretRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFrom { configMapKeyRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef>; fieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromFieldRef>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromResourceFieldRef>; secretKeyRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromSecretKeyRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromConfigMapKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersEnvValueFromSecretKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecycle { postStart?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStart>; preStop?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStop>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStart { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartTcpSocket>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePostStartTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStop { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopTcpSocket>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLifecyclePreStopTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersLivenessProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersPorts { containerPort: pulumi.Input<number>; hostIP?: pulumi.Input<string>; hostPort?: pulumi.Input<number>; name?: pulumi.Input<string>; protocol?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersReadinessProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersResources { limits?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; requests?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersSecurityContext { allowPrivilegeEscalation?: pulumi.Input<boolean>; capabilities?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextCapabilities>; privileged?: pulumi.Input<boolean>; procMount?: pulumi.Input<string>; readOnlyRootFilesystem?: pulumi.Input<boolean>; runAsGroup?: pulumi.Input<number>; runAsNonRoot?: pulumi.Input<boolean>; runAsUser?: pulumi.Input<number>; seLinuxOptions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextSeLinuxOptions>; windowsOptions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextWindowsOptions>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextCapabilities { add?: pulumi.Input<pulumi.Input<string>[]>; drop?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextSeLinuxOptions { level?: pulumi.Input<string>; role?: pulumi.Input<string>; type?: pulumi.Input<string>; user?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersSecurityContextWindowsOptions { gmsaCredentialSpec?: pulumi.Input<string>; gmsaCredentialSpecName?: pulumi.Input<string>; runAsUserName?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersStartupProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersVolumeDevices { devicePath: pulumi.Input<string>; name: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecContainersVolumeMounts { mountPath: pulumi.Input<string>; mountPropagation?: pulumi.Input<string>; name: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; subPath?: pulumi.Input<string>; subPathExpr?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecDnsConfig { nameservers?: pulumi.Input<pulumi.Input<string>[]>; options?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecDnsConfigOptions>[]>; searches?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecDnsConfigOptions { name?: pulumi.Input<string>; value?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainers { args?: pulumi.Input<pulumi.Input<string>[]>; command?: pulumi.Input<pulumi.Input<string>[]>; env?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnv>[]>; envFrom?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFrom>[]>; image?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; lifecycle?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecycle>; livenessProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbe>; name: pulumi.Input<string>; ports?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersPorts>[]>; readinessProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbe>; resources?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersResources>; securityContext?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContext>; startupProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbe>; stdin?: pulumi.Input<boolean>; stdinOnce?: pulumi.Input<boolean>; targetContainerName?: pulumi.Input<string>; terminationMessagePath?: pulumi.Input<string>; terminationMessagePolicy?: pulumi.Input<string>; tty?: pulumi.Input<boolean>; volumeDevices?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersVolumeDevices>[]>; volumeMounts?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersVolumeMounts>[]>; workingDir?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnv { name: pulumi.Input<string>; value?: pulumi.Input<string>; valueFrom?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFrom>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFrom { configMapRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef>; prefix?: pulumi.Input<string>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFromSecretRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFromConfigMapRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvFromSecretRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFrom { configMapKeyRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef>; fieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef>; secretKeyRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromConfigMapKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersEnvValueFromSecretKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecycle { postStart?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStart>; preStop?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStop>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStart { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePostStartTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStop { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLifecyclePreStopTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersLivenessProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersPorts { containerPort: pulumi.Input<number>; hostIP?: pulumi.Input<string>; hostPort?: pulumi.Input<number>; name?: pulumi.Input<string>; protocol?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersReadinessProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersResources { limits?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; requests?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContext { allowPrivilegeEscalation?: pulumi.Input<boolean>; capabilities?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextCapabilities>; privileged?: pulumi.Input<boolean>; procMount?: pulumi.Input<string>; readOnlyRootFilesystem?: pulumi.Input<boolean>; runAsGroup?: pulumi.Input<number>; runAsNonRoot?: pulumi.Input<boolean>; runAsUser?: pulumi.Input<number>; seLinuxOptions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions>; windowsOptions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextCapabilities { add?: pulumi.Input<pulumi.Input<string>[]>; drop?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextSeLinuxOptions { level?: pulumi.Input<string>; role?: pulumi.Input<string>; type?: pulumi.Input<string>; user?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersSecurityContextWindowsOptions { gmsaCredentialSpec?: pulumi.Input<string>; gmsaCredentialSpecName?: pulumi.Input<string>; runAsUserName?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersStartupProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersVolumeDevices { devicePath: pulumi.Input<string>; name: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecEphemeralContainersVolumeMounts { mountPath: pulumi.Input<string>; mountPropagation?: pulumi.Input<string>; name: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; subPath?: pulumi.Input<string>; subPathExpr?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecHostAliases { hostnames?: pulumi.Input<pulumi.Input<string>[]>; ip?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecImagePullSecrets { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainers { args?: pulumi.Input<pulumi.Input<string>[]>; command?: pulumi.Input<pulumi.Input<string>[]>; env?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnv>[]>; envFrom?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFrom>[]>; image?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; lifecycle?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecycle>; livenessProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbe>; name: pulumi.Input<string>; ports?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersPorts>[]>; readinessProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbe>; resources?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersResources>; securityContext?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContext>; startupProbe?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbe>; stdin?: pulumi.Input<boolean>; stdinOnce?: pulumi.Input<boolean>; terminationMessagePath?: pulumi.Input<string>; terminationMessagePolicy?: pulumi.Input<string>; tty?: pulumi.Input<boolean>; volumeDevices?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersVolumeDevices>[]>; volumeMounts?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersVolumeMounts>[]>; workingDir?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnv { name: pulumi.Input<string>; value?: pulumi.Input<string>; valueFrom?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFrom>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFrom { configMapRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFromConfigMapRef>; prefix?: pulumi.Input<string>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFromSecretRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFromConfigMapRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvFromSecretRef { name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFrom { configMapKeyRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef>; fieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromFieldRef>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef>; secretKeyRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromConfigMapKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersEnvValueFromSecretKeyRef { key: pulumi.Input<string>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecycle { postStart?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStart>; preStop?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStop>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStart { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePostStartTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStop { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopExec>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGet>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLifecyclePreStopTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersLivenessProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersPorts { containerPort: pulumi.Input<number>; hostIP?: pulumi.Input<string>; hostPort?: pulumi.Input<number>; name?: pulumi.Input<string>; protocol?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersReadinessProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersResources { limits?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; requests?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContext { allowPrivilegeEscalation?: pulumi.Input<boolean>; capabilities?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextCapabilities>; privileged?: pulumi.Input<boolean>; procMount?: pulumi.Input<string>; readOnlyRootFilesystem?: pulumi.Input<boolean>; runAsGroup?: pulumi.Input<number>; runAsNonRoot?: pulumi.Input<boolean>; runAsUser?: pulumi.Input<number>; seLinuxOptions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions>; windowsOptions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextWindowsOptions>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextCapabilities { add?: pulumi.Input<pulumi.Input<string>[]>; drop?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextSeLinuxOptions { level?: pulumi.Input<string>; role?: pulumi.Input<string>; type?: pulumi.Input<string>; user?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersSecurityContextWindowsOptions { gmsaCredentialSpec?: pulumi.Input<string>; gmsaCredentialSpecName?: pulumi.Input<string>; runAsUserName?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbe { exec?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeExec>; failureThreshold?: pulumi.Input<number>; httpGet?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGet>; initialDelaySeconds?: pulumi.Input<number>; periodSeconds?: pulumi.Input<number>; successThreshold?: pulumi.Input<number>; tcpSocket?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeTcpSocket>; timeoutSeconds?: pulumi.Input<number>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeExec { command?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGet { host?: pulumi.Input<string>; httpHeaders?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders>[]>; path?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGetPort>; scheme?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGetHttpHeaders { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeHttpGetPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeTcpSocket { host?: pulumi.Input<string>; port: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeTcpSocketPort>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersStartupProbeTcpSocketPort { } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersVolumeDevices { devicePath: pulumi.Input<string>; name: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecInitContainersVolumeMounts { mountPath: pulumi.Input<string>; mountPropagation?: pulumi.Input<string>; name: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; subPath?: pulumi.Input<string>; subPathExpr?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecReadinessGates { conditionType: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecSecurityContext { fsGroup?: pulumi.Input<number>; fsGroupChangePolicy?: pulumi.Input<string>; runAsGroup?: pulumi.Input<number>; runAsNonRoot?: pulumi.Input<boolean>; runAsUser?: pulumi.Input<number>; seLinuxOptions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecSecurityContextSeLinuxOptions>; supplementalGroups?: pulumi.Input<pulumi.Input<number>[]>; sysctls?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecSecurityContextSysctls>[]>; windowsOptions?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecSecurityContextWindowsOptions>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecSecurityContextSeLinuxOptions { level?: pulumi.Input<string>; role?: pulumi.Input<string>; type?: pulumi.Input<string>; user?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecSecurityContextSysctls { name: pulumi.Input<string>; value: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecSecurityContextWindowsOptions { gmsaCredentialSpec?: pulumi.Input<string>; gmsaCredentialSpecName?: pulumi.Input<string>; runAsUserName?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecTolerations { effect?: pulumi.Input<string>; key?: pulumi.Input<string>; operator?: pulumi.Input<string>; tolerationSeconds?: pulumi.Input<number>; value?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraints { labelSelector?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraintsLabelSelector>; maxSkew: pulumi.Input<number>; topologyKey: pulumi.Input<string>; whenUnsatisfiable: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraintsLabelSelector { matchExpressions?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions>[]>; matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecTopologySpreadConstraintsLabelSelectorMatchExpressions { key: pulumi.Input<string>; operator: pulumi.Input<string>; values?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumes { awsElasticBlockStore?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesAwsElasticBlockStore>; azureDisk?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesAzureDisk>; azureFile?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesAzureFile>; cephfs?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCephfs>; cinder?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCinder>; configMap?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesConfigMap>; csi?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCsi>; downwardAPI?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPI>; emptyDir?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesEmptyDir>; fc?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesFc>; flexVolume?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesFlexVolume>; flocker?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesFlocker>; gcePersistentDisk?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesGcePersistentDisk>; gitRepo?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesGitRepo>; glusterfs?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesGlusterfs>; hostPath?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesHostPath>; iscsi?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesIscsi>; name: pulumi.Input<string>; nfs?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesNfs>; persistentVolumeClaim?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesPersistentVolumeClaim>; photonPersistentDisk?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesPhotonPersistentDisk>; portworxVolume?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesPortworxVolume>; projected?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjected>; quobyte?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesQuobyte>; rbd?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesRbd>; scaleIO?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesScaleIO>; secret?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesSecret>; storageos?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesStorageos>; vsphereVolume?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesVsphereVolume>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesAwsElasticBlockStore { fsType?: pulumi.Input<string>; partition?: pulumi.Input<number>; readOnly?: pulumi.Input<boolean>; volumeID: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesAzureDisk { cachingMode?: pulumi.Input<string>; diskName: pulumi.Input<string>; diskURI: pulumi.Input<string>; fsType?: pulumi.Input<string>; kind?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesAzureFile { readOnly?: pulumi.Input<boolean>; secretName: pulumi.Input<string>; shareName: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCephfs { monitors: pulumi.Input<pulumi.Input<string>[]>; path?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretFile?: pulumi.Input<string>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCephfsSecretRef>; user?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCephfsSecretRef { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCinder { fsType?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCinderSecretRef>; volumeID: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCinderSecretRef { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesConfigMap { defaultMode?: pulumi.Input<number>; items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesConfigMapItems>[]>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesConfigMapItems { key: pulumi.Input<string>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCsi { driver: pulumi.Input<string>; fsType?: pulumi.Input<string>; nodePublishSecretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCsiNodePublishSecretRef>; readOnly?: pulumi.Input<boolean>; volumeAttributes?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesCsiNodePublishSecretRef { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPI { defaultMode?: pulumi.Input<number>; items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItems>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItems { fieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItemsFieldRef>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItemsResourceFieldRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItemsFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesDownwardAPIItemsResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesEmptyDir { medium?: pulumi.Input<string>; sizeLimit?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesFc { fsType?: pulumi.Input<string>; lun?: pulumi.Input<number>; readOnly?: pulumi.Input<boolean>; targetWWNs?: pulumi.Input<pulumi.Input<string>[]>; wwids?: pulumi.Input<pulumi.Input<string>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesFlexVolume { driver: pulumi.Input<string>; fsType?: pulumi.Input<string>; options?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesFlexVolumeSecretRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesFlexVolumeSecretRef { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesFlocker { datasetName?: pulumi.Input<string>; datasetUUID?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesGcePersistentDisk { fsType?: pulumi.Input<string>; partition?: pulumi.Input<number>; pdName: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesGitRepo { directory?: pulumi.Input<string>; repository: pulumi.Input<string>; revision?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesGlusterfs { endpoints: pulumi.Input<string>; path: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesHostPath { path: pulumi.Input<string>; type?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesIscsi { chapAuthDiscovery?: pulumi.Input<boolean>; chapAuthSession?: pulumi.Input<boolean>; fsType?: pulumi.Input<string>; initiatorName?: pulumi.Input<string>; iqn: pulumi.Input<string>; iscsiInterface?: pulumi.Input<string>; lun: pulumi.Input<number>; portals?: pulumi.Input<pulumi.Input<string>[]>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesIscsiSecretRef>; targetPortal: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesIscsiSecretRef { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesNfs { path: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; server: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesPersistentVolumeClaim { claimName: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesPhotonPersistentDisk { fsType?: pulumi.Input<string>; pdID: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesPortworxVolume { fsType?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; volumeID: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjected { defaultMode?: pulumi.Input<number>; sources: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSources>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSources { configMap?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesConfigMap>; downwardAPI?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPI>; secret?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesSecret>; serviceAccountToken?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesServiceAccountToken>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesConfigMap { items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesConfigMapItems>[]>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesConfigMapItems { key: pulumi.Input<string>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPI { items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItems>[]>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItems { fieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItemsFieldRef>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; resourceFieldRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItemsResourceFieldRef>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItemsFieldRef { apiVersion?: pulumi.Input<string>; fieldPath: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesDownwardAPIItemsResourceFieldRef { containerName?: pulumi.Input<string>; divisor?: pulumi.Input<string>; resource: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesSecret { items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesSecretItems>[]>; name?: pulumi.Input<string>; optional?: pulumi.Input<boolean>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesSecretItems { key: pulumi.Input<string>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesProjectedSourcesServiceAccountToken { audience?: pulumi.Input<string>; expirationSeconds?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesQuobyte { group?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; registry: pulumi.Input<string>; tenant?: pulumi.Input<string>; user?: pulumi.Input<string>; volume: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesRbd { fsType?: pulumi.Input<string>; image: pulumi.Input<string>; keyring?: pulumi.Input<string>; monitors: pulumi.Input<pulumi.Input<string>[]>; pool?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesRbdSecretRef>; user?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesRbdSecretRef { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesScaleIO { fsType?: pulumi.Input<string>; gateway: pulumi.Input<string>; protectionDomain?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretRef: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesScaleIOSecretRef>; sslEnabled?: pulumi.Input<boolean>; storageMode?: pulumi.Input<string>; storagePool?: pulumi.Input<string>; system: pulumi.Input<string>; volumeName?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesScaleIOSecretRef { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesSecret { defaultMode?: pulumi.Input<number>; items?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesSecretItems>[]>; optional?: pulumi.Input<boolean>; secretName?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesSecretItems { key: pulumi.Input<string>; mode?: pulumi.Input<number>; path: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesStorageos { fsType?: pulumi.Input<string>; readOnly?: pulumi.Input<boolean>; secretRef?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesStorageosSecretRef>; volumeName?: pulumi.Input<string>; volumeNamespace?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesStorageosSecretRef { name?: pulumi.Input<string>; } export interface StackDefinitionSpecControllerDeploymentSpecTemplateSpecVolumesVsphereVolume { fsType?: pulumi.Input<string>; storagePolicyID?: pulumi.Input<string>; storagePolicyName?: pulumi.Input<string>; volumePath: pulumi.Input<string>; } export interface StackDefinitionSpecControllerServiceAccount { annotations?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecCustomresourcedefinitions { apiVersion?: pulumi.Input<string>; kind?: pulumi.Input<string>; } export interface StackDefinitionSpecDependsOn { crd?: pulumi.Input<string>; imagePullPolicy?: pulumi.Input<string>; imagePullSecrets?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecDependsOnImagePullSecrets>[]>; package?: pulumi.Input<string>; serviceAccount?: pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecDependsOnServiceAccount>; source?: pulumi.Input<string>; } export interface StackDefinitionSpecDependsOnImagePullSecrets { name?: pulumi.Input<string>; } export interface StackDefinitionSpecDependsOnServiceAccount { annotations?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } export interface StackDefinitionSpecIcons { base64Data: pulumi.Input<string>; mediatype: pulumi.Input<string>; } export interface StackDefinitionSpecMaintainers { email?: pulumi.Input<string>; name?: pulumi.Input<string>; } export interface StackDefinitionSpecOwners { email?: pulumi.Input<string>; name?: pulumi.Input<string>; } export interface StackDefinitionSpecPermissions { rules?: pulumi.Input<pulumi.Input<inputs.packages.v1alpha1.StackDefinitionSpecPermissionsRules>[]>; } export interface StackDefinitionSpecPermissionsRules { apiGroups?: pulumi.Input<pulumi.Input<string>[]>; nonResourceURLs?: pulumi.Input<pulumi.Input<string>[]>; resourceNames?: pulumi.Input<pulumi.Input<string>[]>; resources?: pulumi.Input<pulumi.Input<string>[]>; verbs: pulumi.Input<pulumi.Input<string>[]>; } } } export namespace storage { export namespace v1alpha1 { /** * BucketSpec specifies the desired state of a Bucket. */ export interface BucketSpec { /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ classRef?: pulumi.Input<inputs.storage.v1alpha1.BucketSpecClassRef>; /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ classSelector?: pulumi.Input<inputs.storage.v1alpha1.BucketSpecClassSelector>; /** * LocalPermission specifies permissions granted to a provider specific service account for this bucket, e.g. Read, ReadWrite, or Write. */ localPermission?: pulumi.Input<string>; /** * PredefinedACL specifies a predefined ACL (e.g. Private, ReadWrite, etc) to be applied to the bucket. */ predefinedACL?: pulumi.Input<string>; /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ resourceRef?: pulumi.Input<inputs.storage.v1alpha1.BucketSpecResourceRef>; /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ writeConnectionSecretToRef?: pulumi.Input<inputs.storage.v1alpha1.BucketSpecWriteConnectionSecretToRef>; } /** * A ClassReference specifies a resource class that will be used to dynamically provision a managed resource when the resource claim is created. */ export interface BucketSpecClassRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * A ClassSelector specifies labels that will be used to select a resource class for this claim. If multiple classes match the labels one will be chosen at random. */ export interface BucketSpecClassSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.storage.v1alpha1.BucketSpecClassSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface BucketSpecClassSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * A ResourceReference specifies an existing managed resource, in any namespace, to which this resource claim should attempt to bind. Omit the resource reference to enable dynamic provisioning using a resource class; the resource reference will be automatically populated by Crossplane. */ export interface BucketSpecResourceRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this resource claim, to which any connection details for this resource claim should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource bound to this resource claim. */ export interface BucketSpecWriteConnectionSecretToRef { /** * Name of the secret. */ name: pulumi.Input<string>; } /** * A ResourceClaimStatus represents the observed status of a resource claim. */ export interface BucketStatus { /** * Phase represents the binding phase of a managed resource or claim. Unbindable resources cannot be bound, typically because they are currently unavailable, or still being created. Unbound resource are available for binding, and Bound resources have successfully bound to another resource. */ bindingPhase?: pulumi.Input<string>; /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.storage.v1alpha1.BucketStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface BucketStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } } } export namespace workload { export namespace v1alpha1 { /** * KubernetesApplicationResourceSpec specifies the desired state of a KubernetesApplicationResource. */ export interface KubernetesApplicationResourceSpec { /** * Secrets upon which this application resource depends. These secrets will be propagated to the Kubernetes cluster to which this application is scheduled. */ secrets?: pulumi.Input<pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationResourceSpecSecrets>[]>; /** * Target to which this application has been scheduled. */ targetRef?: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationResourceSpecTargetRef>; /** * A Template for a Kubernetes resource to be submitted to the KubernetesCluster to which this application resource is scheduled. The resource must be understood by the KubernetesCluster. Crossplane requires only that the resource contains standard Kubernetes type and object metadata. */ template: pulumi.Input<{[key: string]: any}>; } /** * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ export interface KubernetesApplicationResourceSpecSecrets { /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? */ name?: pulumi.Input<string>; } /** * Target to which this application has been scheduled. */ export interface KubernetesApplicationResourceSpecTargetRef { /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name: pulumi.Input<string>; } /** * KubernetesApplicationResourceStatus represents the observed state of a KubernetesApplicationResource. */ export interface KubernetesApplicationResourceStatus { /** * A ConditionedStatus reflects the observed status of a resource. Only one condition of each type may exist. */ conditionedStatus?: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationResourceStatusConditionedStatus>; /** * Remote status of the resource templated by this application resource. */ remote?: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationResourceStatusRemote>; /** * State of the application. */ state?: pulumi.Input<string>; } /** * A ConditionedStatus reflects the observed status of a resource. Only one condition of each type may exist. */ export interface KubernetesApplicationResourceStatusConditionedStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationResourceStatusConditionedStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface KubernetesApplicationResourceStatusConditionedStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * Remote status of the resource templated by this application resource. */ export interface KubernetesApplicationResourceStatusRemote { /** * Raw JSON representation of the remote status as a byte array. */ raw?: pulumi.Input<string>; } /** * A KubernetesApplicationSpec specifies the resources of a Kubernetes application. */ export interface KubernetesApplicationSpec { /** * ResourceSelector selects the KubernetesApplicationResources that are managed by this KubernetesApplication. Note that a KubernetesApplication will never adopt orphaned KubernetesApplicationResources, and thus this selector serves only to help match a KubernetesApplication to its KubernetesApplicationResources. */ resourceSelector: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecResourceSelector>; /** * ResourceTemplates specifies a set of Kubernetes application resources managed by this application. */ resourceTemplates: pulumi.Input<pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecResourceTemplates>[]>; /** * Target to which this application has been scheduled. */ targetRef?: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecTargetRef>; /** * TargetSelector selects the targets to which this application may be scheduled. Leave both match labels and expressions empty to match any target. */ targetSelector?: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecTargetSelector>; } /** * ResourceSelector selects the KubernetesApplicationResources that are managed by this KubernetesApplication. Note that a KubernetesApplication will never adopt orphaned KubernetesApplicationResources, and thus this selector serves only to help match a KubernetesApplication to its KubernetesApplicationResources. */ export interface KubernetesApplicationSpecResourceSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecResourceSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface KubernetesApplicationSpecResourceSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * A KubernetesApplicationResourceTemplate is used to instantiate new KubernetesApplicationResources. */ export interface KubernetesApplicationSpecResourceTemplates { metadata?: pulumi.Input<{[key: string]: any}>; /** * KubernetesApplicationResourceSpec specifies the desired state of a KubernetesApplicationResource. */ spec?: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecResourceTemplatesSpec>; } /** * KubernetesApplicationResourceSpec specifies the desired state of a KubernetesApplicationResource. */ export interface KubernetesApplicationSpecResourceTemplatesSpec { /** * Secrets upon which this application resource depends. These secrets will be propagated to the Kubernetes cluster to which this application is scheduled. */ secrets?: pulumi.Input<pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecResourceTemplatesSpecSecrets>[]>; /** * Target to which this application has been scheduled. */ targetRef?: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecResourceTemplatesSpecTargetRef>; /** * A Template for a Kubernetes resource to be submitted to the KubernetesCluster to which this application resource is scheduled. The resource must be understood by the KubernetesCluster. Crossplane requires only that the resource contains standard Kubernetes type and object metadata. */ template: pulumi.Input<{[key: string]: any}>; } /** * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ export interface KubernetesApplicationSpecResourceTemplatesSpecSecrets { /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? */ name?: pulumi.Input<string>; } /** * Target to which this application has been scheduled. */ export interface KubernetesApplicationSpecResourceTemplatesSpecTargetRef { /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name: pulumi.Input<string>; } /** * Target to which this application has been scheduled. */ export interface KubernetesApplicationSpecTargetRef { /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name: pulumi.Input<string>; } /** * TargetSelector selects the targets to which this application may be scheduled. Leave both match labels and expressions empty to match any target. */ export interface KubernetesApplicationSpecTargetSelector { /** * matchExpressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input<pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationSpecTargetSelectorMatchExpressions>[]>; /** * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>; } /** * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ export interface KubernetesApplicationSpecTargetSelectorMatchExpressions { /** * key is the label key that the selector applies to. */ key: pulumi.Input<string>; /** * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator: pulumi.Input<string>; /** * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. */ values?: pulumi.Input<pulumi.Input<string>[]>; } /** * KubernetesApplicationStatus represents the observed state of a KubernetesApplication. */ export interface KubernetesApplicationStatus { /** * A ConditionedStatus reflects the observed status of a resource. Only one condition of each type may exist. */ conditionedStatus?: pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationStatusConditionedStatus>; /** * Desired resources of this application, i.e. the number of resources that match this application's resource selector. */ desiredResources?: pulumi.Input<number>; /** * State of the application. */ state?: pulumi.Input<string>; /** * Submitted resources of this workload, i.e. the subset of desired resources that have been successfully submitted to their scheduled Kubernetes cluster. */ submittedResources?: pulumi.Input<number>; } /** * A ConditionedStatus reflects the observed status of a resource. Only one condition of each type may exist. */ export interface KubernetesApplicationStatusConditionedStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.workload.v1alpha1.KubernetesApplicationStatusConditionedStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface KubernetesApplicationStatusConditionedStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } /** * A TargetSpec defines the common fields of objects used for exposing infrastructure to workloads that can be scheduled to. */ export interface KubernetesTargetSpec { /** * A ResourceReference specifies an existing managed resource, in any namespace, which this target should attempt to propagate a connection secret from. */ clusterRef?: pulumi.Input<inputs.workload.v1alpha1.KubernetesTargetSpecClusterRef>; /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this target, to which any connection details for this target should be written or already exist. Connection secrets referenced by a target should contain information for connecting to a resource that allows for scheduling of workloads. */ connectionSecretRef?: pulumi.Input<inputs.workload.v1alpha1.KubernetesTargetSpecConnectionSecretRef>; } /** * A ResourceReference specifies an existing managed resource, in any namespace, which this target should attempt to propagate a connection secret from. */ export interface KubernetesTargetSpecClusterRef { /** * API version of the referent. */ apiVersion?: pulumi.Input<string>; /** * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future. */ fieldPath?: pulumi.Input<string>; /** * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ kind?: pulumi.Input<string>; /** * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ name?: pulumi.Input<string>; /** * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ namespace?: pulumi.Input<string>; /** * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency */ resourceVersion?: pulumi.Input<string>; /** * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids */ uid?: pulumi.Input<string>; } /** * WriteConnectionSecretToReference specifies the name of a Secret, in the same namespace as this target, to which any connection details for this target should be written or already exist. Connection secrets referenced by a target should contain information for connecting to a resource that allows for scheduling of workloads. */ export interface KubernetesTargetSpecConnectionSecretRef { /** * Name of the secret. */ name: pulumi.Input<string>; } /** * A TargetStatus defines the observed status a target. */ export interface KubernetesTargetStatus { /** * Conditions of the resource. */ conditions?: pulumi.Input<pulumi.Input<inputs.workload.v1alpha1.KubernetesTargetStatusConditions>[]>; } /** * A Condition that may apply to a resource. */ export interface KubernetesTargetStatusConditions { /** * LastTransitionTime is the last time this condition transitioned from one status to another. */ lastTransitionTime: pulumi.Input<string>; /** * A Message containing details about this condition's last transition from one status to another, if any. */ message?: pulumi.Input<string>; /** * A Reason for this condition's last transition from one status to another. */ reason: pulumi.Input<string>; /** * Status of this condition; is it currently True, False, or Unknown? */ status: pulumi.Input<string>; /** * Type of this condition. At most one of each condition type may apply to a resource at any point in time. */ type: pulumi.Input<string>; } } }
1c3d6fa7aad5cb2ff7bcbd1e0b67fa9468d8caea
{ "blob_id": "1c3d6fa7aad5cb2ff7bcbd1e0b67fa9468d8caea", "branch_name": "refs/heads/master", "committer_date": "2020-12-30T19:35:54", "content_id": "dfb146c723534dec526d660a1beb918a90533e33", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ee6acbd5fcd0fcd16230e96a4a539de41a02c97e", "extension": "ts", "filename": "input.ts", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "TypeScript", "length_bytes": 370193, "license": "Apache-2.0", "license_type": "permissive", "path": "/operators/crossplane/nodejs/types/input.ts", "provenance": "stack-edu-0072.json.gz:504218", "repo_name": "isabella232/pulumi-kubernetes-crds", "revision_date": "2020-12-30T19:35:54", "revision_id": "372c4c0182f6b899af82d6edaad521aa14f22150", "snapshot_id": "777e78137aaf6525a44b61a02dccf91bf0d87a14", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/isabella232/pulumi-kubernetes-crds/372c4c0182f6b899af82d6edaad521aa14f22150/operators/crossplane/nodejs/types/input.ts", "visit_date": "2023-03-15T04:29:16.039753", "added": "2024-11-19T01:33:24.371044+00:00", "created": "2020-12-30T19:35:54", "int_score": 2, "score": 2.296875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0090.json.gz" }
#ifndef V_VAtomicOperations_Interface #define V_VAtomicOperations_Interface /************************ ***** Components ***** ************************/ /************************** ***** Declarations ***** **************************/ #include "V_VAtomicMemoryOperations_.h" /*********************** ***** Templates ***** ***********************/ /************************************************************************************************ ***** NOTE: ***** In determining the RETURN value of any of the camel-cased FUNCTION names that follow, ***** ***** WORD ORDER MATTERS ***** ***** For the function named 'fetchAndIncrement', the value returned is the OLD value of the ***** memory location (think, fetch THEN increment, like x++). For the 'incrementAndFetch', ***** the return value is the NEW value of the memory location (increment THEN fetch, ++x) ***** *************************************************************************************************/ namespace V { /*---------------------------* *---- No Interlocking ----* *---------------------------*/ template <typename T> class VAtomicNilOperations_ : public VAtomicMemoryNilOperations_<sizeof (T)> { // Family Values public: typedef T value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { rValue++; } static void decrement (value_t volatile &rValue) { rValue--; } static bool decrementIsZero (value_t volatile &rValue) { return 0 == --rValue; } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { value_t result = rValue; rValue += iAddend; return result; } static value_t fetchAndIncrement (value_t volatile &rValue) { return rValue++; } static value_t fetchAndDecrement (value_t volatile &rValue) { return rValue--; } static value_t incrementAndFetch (value_t volatile &rValue) { return ++rValue; } static value_t decrementAndFetch (value_t volatile &rValue) { return --rValue; } }; #if defined(V_VAtomicMemoryOperations_Disabled) /*---------------------------* *---- No Interlocking ----* *---------------------------*/ template <typename T> class VAtomicOperations_ : public VAtomicNilOperations_<T> { }; #elif defined(__APPLE__) /*-----------------* *---- Apple ----* *-----------------*/ template <typename T> class VAtomicOperations_ : public VAtomicMemoryOperations_<sizeof (T)> { // Family Values public: typedef T value_t; typedef value_t storage_t; }; template<> class VAtomicOperations_<unsigned __int32> : public VAtomicMemoryOperations_<sizeof (unsigned __int32)> { // Family Values public: typedef unsigned __int32 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { OSAtomicIncrement32 (reinterpret_cast<int32_t volatile*>(&rValue)); } static void decrement (value_t volatile &rValue) { OSAtomicDecrement32 (reinterpret_cast<int32_t volatile*>(&rValue)); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return OSAtomicAdd32 (iAddend, reinterpret_cast<int32_t volatile*>(&rValue)) - iAddend; } static value_t fetchAndIncrement (value_t volatile &rValue) { return OSAtomicIncrement32 (reinterpret_cast<int32_t volatile*>(&rValue)) - 1; } static value_t fetchAndDecrement (value_t volatile &rValue) { return OSAtomicDecrement32Barrier (reinterpret_cast<int32_t volatile*>(&rValue)) + 1; } static value_t incrementAndFetch (value_t volatile &rValue) { return OSAtomicIncrement32 (reinterpret_cast<int32_t volatile*>(&rValue)); } static value_t decrementAndFetch (value_t volatile &rValue) { return OSAtomicDecrement32Barrier (reinterpret_cast<int32_t volatile*>(&rValue)); } }; template<> class VAtomicOperations_<unsigned __int64> : public VAtomicMemoryOperations_<sizeof (unsigned __int64)> { // Family Values public: typedef unsigned __int64 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { OSAtomicIncrement64 (reinterpret_cast<OSAtomic_int64_aligned64_t volatile*>(&rValue)); } static void decrement (value_t volatile &rValue) { OSAtomicDecrement64 (reinterpret_cast<OSAtomic_int64_aligned64_t volatile*>(&rValue)); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return OSAtomicAdd64 (iAddend, reinterpret_cast<OSAtomic_int64_aligned64_t volatile*>(&rValue)) - iAddend; } static value_t fetchAndIncrement (value_t volatile &rValue) { return OSAtomicIncrement64 (reinterpret_cast<OSAtomic_int64_aligned64_t volatile*>(&rValue)) - 1; } static value_t fetchAndDecrement (value_t volatile &rValue) { return OSAtomicDecrement64Barrier (reinterpret_cast<OSAtomic_int64_aligned64_t volatile*>(&rValue)) + 1; } static value_t incrementAndFetch (value_t volatile &rValue) { return OSAtomicIncrement64 (reinterpret_cast<OSAtomic_int64_aligned64_t volatile*>(&rValue)); } static value_t decrementAndFetch (value_t volatile &rValue) { return OSAtomicDecrement64Barrier (reinterpret_cast<OSAtomic_int64_aligned64_t volatile*>(&rValue)); } }; #elif defined(__VMS) /*-------------------------* *---- OpenVMS/Alpha ----* *-------------------------*/ template <typename T> class VAtomicOperations_ : public VAtomicMemoryOperations_<sizeof (T)> { // Family Values public: typedef T value_t; typedef value_t storage_t; }; template<> class VAtomicOperations_<unsigned __int32> : public VAtomicMemoryOperations_<sizeof (unsigned __int32)> { // Family Values public: typedef unsigned __int32 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { fetchAndIncrement (rValue); } static void decrement (value_t volatile &rValue) { fetchAndDecrement (rValue); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; // ... memory barrier not needed until we act on this info. } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return __ATOMIC_ADD_LONG ((void volatile*)&rValue, iAddend); } static value_t fetchAndIncrement (value_t volatile &rValue) { return __ATOMIC_INCREMENT_LONG ((void volatile*)&rValue); } static value_t fetchAndDecrement (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return __ATOMIC_DECREMENT_LONG ((void volatile*)&rValue); } static value_t incrementAndFetch (value_t volatile &rValue) { return fetchAndIncrement (rValue) + 1; } static value_t decrementAndFetch (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return fetchAndDecrement (rValue) - 1; } }; template<> class VAtomicOperations_<unsigned __int64> : public VAtomicMemoryOperations_<sizeof (unsigned __int64)> { // Family Values public: typedef unsigned __int64 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { fetchAndIncrement (rValue); } static void decrement (value_t volatile &rValue) { fetchAndDecrement (rValue); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; // ... memory barrier not needed until we act on this info. } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return __ATOMIC_ADD_QUAD ((void volatile*)&rValue, iAddend); } static value_t fetchAndIncrement (value_t volatile &rValue) { return __ATOMIC_INCREMENT_QUAD ((void volatile*)&rValue); } static value_t fetchAndDecrement (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return __ATOMIC_DECREMENT_QUAD ((void volatile*)&rValue); } static value_t incrementAndFetch (value_t volatile &rValue) { return fetchAndIncrement (rValue) + 1; } static value_t decrementAndFetch (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return fetchAndDecrement (rValue) - 1; } }; #elif defined(_WIN32) #pragma warning (push) #pragma warning (disable:4035) /*-----------------------* *---- Windows/x86 ----* *-----------------------*/ template <typename T> class VAtomicOperations_ : public VAtomicMemoryOperations_<sizeof (T)> { // Family Values public: typedef T value_t; typedef value_t storage_t; }; template<> class VAtomicOperations_<unsigned __int32> : public VAtomicMemoryOperations_<sizeof (unsigned __int32)> { // Family Values public: typedef unsigned __int32 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { InterlockedIncrement ((LONG volatile*)&rValue); } static void decrement (value_t volatile &rValue) { InterlockedDecrement ((LONG volatile*)&rValue); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return InterlockedExchangeAdd ((LONG volatile*)&rValue, iAddend); } static value_t fetchAndIncrement (value_t volatile &rValue) { return InterlockedIncrement ((LONG volatile*)&rValue) - 1; } static value_t fetchAndDecrement (value_t volatile &rValue) { return InterlockedDecrement ((LONG volatile*)&rValue) + 1; } static value_t incrementAndFetch (value_t volatile &rValue) { return InterlockedIncrement ((LONG volatile*)&rValue); } static value_t decrementAndFetch (value_t volatile &rValue) { return InterlockedDecrement ((LONG volatile*)&rValue); } }; template<> class VAtomicOperations_<unsigned __int64> : public VAtomicMemoryOperations_<sizeof (unsigned __int64)> { // Family Values public: typedef unsigned __int64 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { InterlockedIncrement64 ((LONGLONG volatile*)&rValue); } static void decrement (value_t volatile &rValue) { InterlockedDecrement64 ((LONGLONG volatile*)&rValue); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return InterlockedExchangeAdd64 ((LONGLONG volatile*)&rValue, iAddend); } static value_t fetchAndIncrement (value_t volatile &rValue) { return InterlockedIncrement64 ((LONGLONG volatile*)&rValue) - 1; } static value_t fetchAndDecrement (value_t volatile &rValue) { return InterlockedDecrement64 ((LONGLONG volatile*)&rValue) + 1; } static value_t incrementAndFetch (value_t volatile &rValue) { return InterlockedIncrement64 ((LONGLONG volatile*)&rValue); } static value_t decrementAndFetch (value_t volatile &rValue) { return InterlockedDecrement64 ((LONGLONG volatile*)&rValue); } }; #pragma warning (pop) #elif defined(__linux__) /*---------------------* *---- Linux/x86 ----* *---------------------*/ template <typename T> class VAtomicOperations_ : public VAtomicMemoryOperations_<sizeof (T)> { // Family Values public: typedef T value_t; typedef value_t storage_t; }; template<> class VAtomicOperations_<unsigned __int32> : public VAtomicMemoryOperations_<sizeof (unsigned __int32)> { // Family Values public: typedef unsigned __int32 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { __asm__ __volatile__( "lock; incl %0" : "=m" (rValue) : "m" (rValue) : "memory" ); } static void decrement (value_t volatile &rValue) { __asm__ __volatile__( "lock; decl %0" : "=m" (rValue) : "m" (rValue) : "memory" ); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { register value_t result; __asm__ __volatile__ ( "lock; xaddl %0,%2" : "=r" (result) : "0" (iAddend), "m" (rValue) : "memory" ); return result; } static value_t fetchAndIncrement (value_t volatile &rValue) { return fetchAndAdd (rValue, 1); } static value_t fetchAndDecrement (value_t volatile &rValue) { return fetchAndAdd (rValue, (value_t)-1); } static value_t incrementAndFetch (value_t volatile &rValue) { return fetchAndIncrement (rValue) + 1; } static value_t decrementAndFetch (value_t volatile &rValue) { return fetchAndDecrement (rValue) - 1; } }; template<> class VAtomicOperations_<unsigned __int64> : public VAtomicMemoryOperations_<sizeof (unsigned __int64)> { // Family Values public: typedef unsigned __int64 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { __asm__ __volatile__( "lock; incq %0" : "=m" (rValue) : "m" (rValue) : "memory" ); } static void decrement (value_t volatile &rValue) { __asm__ __volatile__( "lock; decq %0" : "=m" (rValue) : "m" (rValue) : "memory" ); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { register value_t result; __asm__ __volatile__ ( "lock; xaddq %0,%2" : "=r" (result) : "0" (iAddend), "m" (rValue) : "memory" ); return result; } static value_t fetchAndIncrement (value_t volatile &rValue) { return fetchAndAdd (rValue, 1); } static value_t fetchAndDecrement (value_t volatile &rValue) { return fetchAndAdd (rValue, (value_t)-1); } static value_t incrementAndFetch (value_t volatile &rValue) { return fetchAndIncrement (rValue) + 1; } static value_t decrementAndFetch (value_t volatile &rValue) { return fetchAndDecrement (rValue) - 1; } }; #elif defined(sun) /*-------------------* *---- Solaris ----* *-------------------*/ template <typename T> class VAtomicOperations_ : public VAtomicMemoryOperations_<sizeof (T)> { // Family Values public: typedef T value_t; typedef value_t storage_t; }; #if defined(USING_LEGACY_SPARC_ATOMICS) /*--------------------------------------------------------------------* *---- Solaris/Sparc Legacy Atomics (Inline .il Assembly Files) ----* *--------------------------------------------------------------------*/ template <typename T> class VAtomicOperations_ : public VAtomicMemoryOperations_<sizeof (T)> { // Family Values public: typedef T value_t; typedef value_t storage_t; }; template<> class VAtomicOperations_<unsigned __int32> : public VAtomicMemoryOperations_<sizeof (unsigned __int32)> { // Family Values public: typedef unsigned __int32 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { fetchAndIncrement (rValue); } static void decrement (value_t volatile &rValue) { fetchAndDecrement (rValue); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return fetchAndAdd32 (rValue, iAddend); } static value_t fetchAndIncrement (value_t volatile &rValue) { return fetchAndAdd (rValue, 1); } static value_t fetchAndDecrement (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return fetchAndAdd (rValue, (value_t)-1); } static value_t incrementAndFetch (value_t volatile &rValue) { return fetchAndIncrement (rValue) + 1; } static value_t decrementAndFetch (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return fetchAndDecrement (rValue) - 1; } }; template<> class VAtomicOperations_<unsigned __int64> : public VAtomicMemoryOperations_<sizeof (unsigned __int64)> { // Family Values public: typedef unsigned __int64 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { fetchAndIncrement (rValue); } static void decrement (value_t volatile &rValue) { fetchAndDecrement (rValue); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return fetchAndAdd64 (rValue, iAddend); } static value_t fetchAndIncrement (value_t volatile &rValue) { return fetchAndAdd (rValue, 1); } static value_t fetchAndDecrement (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return fetchAndAdd (rValue, (value_t)-1); } static value_t incrementAndFetch (value_t volatile &rValue) { return fetchAndIncrement (rValue) + 1; } static value_t decrementAndFetch (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return fetchAndDecrement (rValue) - 1; } }; #else // !defined(USING_LEGACY_SOLARIS_ATOMICS) /*---------------------------* *---- Solaris Atomics ----* *---------------------------*/ template<> class VAtomicOperations_<unsigned __int32> : public VAtomicMemoryOperations_<sizeof (unsigned __int32)> { // Family Values public: typedef unsigned __int32 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { atomic_inc_32 (&rValue); } static void decrement (value_t volatile &rValue) { atomic_dec_32 (&rValue); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return atomic_add_32_nv (&rValue, iAddend) - iAddend; } static value_t fetchAndIncrement (value_t volatile &rValue) { return atomic_inc_32_nv (&rValue) - 1; } static value_t fetchAndDecrement (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return atomic_dec_32_nv (&rValue) + 1; } static value_t incrementAndFetch (value_t volatile &rValue) { return atomic_inc_32_nv (&rValue); } static value_t decrementAndFetch (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return atomic_dec_32_nv (&rValue); } }; template<> class VAtomicOperations_<unsigned __int64> : public VAtomicMemoryOperations_<sizeof (unsigned __int64)> { // Family Values public: typedef unsigned __int64 value_t; typedef value_t storage_t; // Constants public: static value_t zero () { return 0; } // Operations public: static void increment (value_t volatile &rValue) { atomic_inc_64 (&rValue); } static void decrement (value_t volatile &rValue) { atomic_dec_64 (&rValue); } static bool decrementIsZero (value_t volatile &rValue) { return isZero (decrementAndFetch (rValue)); } static bool isZero (value_t iValue) { return 0 == iValue; } static value_t fetchAndAdd (value_t volatile &rValue, value_t iAddend) { return atomic_add_64_nv (&rValue, iAddend) - iAddend; } static value_t fetchAndIncrement (value_t volatile &rValue) { return atomic_inc_64_nv (&rValue) - 1; } static value_t fetchAndDecrement (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return atomic_dec_64_nv (&rValue) + 1; } static value_t incrementAndFetch (value_t volatile &rValue) { return atomic_inc_64_nv (&rValue); } static value_t decrementAndFetch (value_t volatile &rValue) { MemoryBarrierProduce (); // ... see comments in "boost_detail_atomic_count_...h" return atomic_dec_64_nv (&rValue); } }; #endif // USING_LEGACY_SPARC_ATOMICS) #endif // PLATFORM SPECIFIC CASES } #endif
8a682ef554826f0cd93017b681b9e122ab4f188d
{ "blob_id": "8a682ef554826f0cd93017b681b9e122ab4f188d", "branch_name": "refs/heads/master", "committer_date": "2019-01-30T17:10:59", "content_id": "5c3c835b0a92841d13852c01066f2a21c702ca4f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "24653c0a8be19e46eb95451de1d961ffbcc01341", "extension": "h", "filename": "V_VAtomicOperations_.h", "fork_events_count": 1, "gha_created_at": "2017-02-15T20:41:27", "gha_event_created_at": "2019-01-30T17:11:00", "gha_language": "C++", "gha_license_id": "BSD-3-Clause", "github_id": 82104368, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 22644, "license": "BSD-3-Clause", "license_type": "permissive", "path": "/software/src/master/src/kernel/V_VAtomicOperations_.h", "provenance": "stack-edu-0005.json.gz:448158", "repo_name": "VisionAerie/vision", "revision_date": "2019-01-30T17:10:59", "revision_id": "e40c39e3abc49b0e2c9623204c54b900c4333f29", "snapshot_id": "150e5bfa7eb16116b1e5b4bdb1bb8cee888fbfe5", "src_encoding": "UTF-8", "star_events_count": 2, "url": "https://raw.githubusercontent.com/VisionAerie/vision/e40c39e3abc49b0e2c9623204c54b900c4333f29/software/src/master/src/kernel/V_VAtomicOperations_.h", "visit_date": "2021-01-19T09:23:34.429209", "added": "2024-11-18T21:09:42.592573+00:00", "created": "2019-01-30T17:10:59", "int_score": 3, "score": 2.546875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0023.json.gz" }
"""This mod flips the the data along x or y direction.""" from colorview2d import imod class Flip(imod.IMod): """ The mod class to flip the data. """ def __init__(self): imod.IMod.__init__(self) self.default_args = (True, ) def do_apply(self, data, modargs): if modargs: data.flip_lr() else: data.flip_ud()
4d9db20f7d8c2e3a9c82da90592cb77d9885dee0
{ "blob_id": "4d9db20f7d8c2e3a9c82da90592cb77d9885dee0", "branch_name": "refs/heads/master", "committer_date": "2022-12-21T15:57:07", "content_id": "e7afb320978b8f11a963442b7c5e179ace2ba4c9", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "5ac1a526cf7462011a7049c9c2436fb7fe6067da", "extension": "py", "filename": "Flip.py", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 69254351, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 389, "license": "BSD-2-Clause", "license_type": "permissive", "path": "/colorview2d/mods/Flip.py", "provenance": "stack-edu-0062.json.gz:6381", "repo_name": "Loisel/colorview2d", "revision_date": "2022-12-21T15:57:07", "revision_id": "d9d379f5c5f8d2c125c4a0cc23205f4305f2824d", "snapshot_id": "037772491c962d2972af56e0a0091dda7e21ddbf", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/Loisel/colorview2d/d9d379f5c5f8d2c125c4a0cc23205f4305f2824d/colorview2d/mods/Flip.py", "visit_date": "2023-01-03T09:07:11.524598", "added": "2024-11-18T20:43:19.745327+00:00", "created": "2022-12-21T15:57:07", "int_score": 3, "score": 2.734375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0080.json.gz" }
// // Created by Ben Ward (EI) on 18/01/2018. // #include "Biosequence.h" uint64_t seq_datastore_len(unsigned long len, int bits_per_elem) { auto symbols_per_chunk = 64 / bits_per_elem; auto d = len / symbols_per_chunk; return d + (((len > 0) == (symbols_per_chunk > 0)) & (d * symbols_per_chunk != len)); } // Concrete algorithm for the complement of a sequence encoded using the IUPAC alphabet. template<> void Biosequence<IUPAC_DNA>::complement() { auto next = reference(*this, 0); auto stop = reference(*this, len); while(next < stop) { auto chunk = next.get_chunk(); auto new_chunk = (((chunk & 0x1111111111111111) << 3) | ((chunk & 0x8888888888888888) >> 3) | ((chunk & 0x2222222222222222) << 1) | ((chunk & 0x4444444444444444) >> 1)); next.insert_chunk(new_chunk); next.increment_by(64); } } // Concrete algorithm for the complement of a sequence encoded using the ATCG alphabet. template<> void Biosequence<ATCG>::complement() { auto next = reference(*this, 0); auto stop = reference(*this, len); while(next < stop) { auto chunk = next.get_chunk(); auto new_chunk = ~chunk; next.insert_chunk(new_chunk); next.increment_by(64); } } template<typename A> Biosequence<A> Biosequence<A>::reverse() { auto next = reference(*this, len); auto stop = reference(*this, 0); auto i = 1; auto r = next.bits_remaining(); }
02bb062692359e5f3d1ebd9fa31eac2f3b2d85c8
{ "blob_id": "02bb062692359e5f3d1ebd9fa31eac2f3b2d85c8", "branch_name": "refs/heads/master", "committer_date": "2018-02-13T12:59:12", "content_id": "82d88c67b992c42a538f9c3e9b5a51143c2ee909", "detected_licenses": [ "MIT" ], "directory_id": "28383c92b5d6b4bdb98320adb3c81724fa4881e5", "extension": "cpp", "filename": "Biosequence.cpp", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 1479, "license": "MIT", "license_type": "permissive", "path": "/Biosequence.cpp", "provenance": "stack-edu-0007.json.gz:110055", "repo_name": "TransGirlCodes/biosequences", "revision_date": "2018-02-13T01:10:10", "revision_id": "de346444e9c8c02f25bb09b9b13ddd0dcf693ea9", "snapshot_id": "3bef4cb2359cf282c5a7ef85d1b7f282ca5ec9b2", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/TransGirlCodes/biosequences/de346444e9c8c02f25bb09b9b13ddd0dcf693ea9/Biosequence.cpp", "visit_date": "2023-07-09T06:46:11.680775", "added": "2024-11-18T21:58:32.202315+00:00", "created": "2018-02-13T01:10:10", "int_score": 3, "score": 2.53125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0025.json.gz" }
// Copyright 2019 Algorand, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // TabBarButton.swift import UIKit class TabBarButton: UIControl { var badge: String? { get { return badgeView.currentTitle } set { set(badge: newValue, animated: true) } } override var isEnabled: Bool { didSet { contentView.isEnabled = isEnabled } } override var isSelected: Bool { didSet { contentView.isSelected = isSelected } } let barButtonItem: TabBarButtonItemConvertible private(set) lazy var contentView = AlignedButton() private lazy var badgeView = UIButton() init(_ barButtonItem: TabBarButtonItemConvertible) { self.barButtonItem = barButtonItem super.init(frame: .zero) customizeAppearance() prepareLayout() } @available(*, unavailable) required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func point(inside point: CGPoint, with event: UIEvent?) -> Bool { return contentView.frame.contains(point) } } extension TabBarButton { private func customizeAppearance() { customizeContentAppearance() customizeBadgeAppearance() } private func prepareLayout() { addContent() } } extension TabBarButton { private func customizeContentAppearance() { contentView.setImage(barButtonItem.icon, for: .normal) contentView.setImage(barButtonItem.selectedIcon, for: .selected) contentView.isUserInteractionEnabled = false contentView.adjustsImageWhenHighlighted = false contentView.titleLabel?.adjustsFontSizeToFitWidth = true contentView.titleLabel?.minimumScaleFactor = 0.5 } private func addContent() { addSubview(contentView) contentView.snp.makeConstraints { maker in maker.width.greaterThanOrEqualTo(44.0).priority(.high) maker.centerX.equalToSuperview() maker.top.equalToSuperview() maker.leading.greaterThanOrEqualToSuperview() maker.bottom.equalToSuperview() maker.trailing.lessThanOrEqualToSuperview() } } } extension TabBarButton { func set(badge: String?, animated: Bool) { if badge == nil { removeBadge(animated: animated) return } badgeView.setTitle(badge, for: .normal) badgeView.invalidateIntrinsicContentSize() addBadge(animated: animated) } private func customizeBadgeAppearance() { if let badgeIcon = barButtonItem.badgeIcon { badgeView.setImage(badgeIcon, for: .normal) badgeView.isUserInteractionEnabled = false } } private func addBadge(animated: Bool) { if badgeView.isDescendant(of: self) { return } addSubview(badgeView) badgeView.contentEdgeInsets = UIEdgeInsets(top: 0.0, left: 4.0, bottom: 0.0, right: 4.0) badgeView.snp.makeConstraints { maker in maker.width.greaterThanOrEqualTo(badgeView.snp.height) if let imageView = contentView.imageView { maker.centerX.equalTo(imageView.snp.trailing).offset(barButtonItem.badgePositionAdjustment?.x ?? 0.0) maker.centerY.equalTo(imageView.snp.top).offset(barButtonItem.badgePositionAdjustment?.y ?? 0.0) } else { maker.leading.equalTo(contentView.snp.centerX) maker.bottom.equalTo(contentView.snp.centerY) } } if animated { animateBadge(onScreen: true) { _ in } } } private func removeBadge(animated: Bool) { if !animated { badgeView.removeFromSuperview() return } animateBadge(onScreen: false) { [weak self] _ in self?.badgeView.removeFromSuperview() } } private func animateBadge(onScreen: Bool, onCompleted completion: @escaping (UIViewAnimatingPosition) -> Void) { let offScreenTransform = CGAffineTransform(scaleX: 0.1, y: 0.1) if onScreen { badgeView.transform = offScreenTransform badgeView.layoutIfNeeded() } let animator = UIViewPropertyAnimator(duration: 0.1, dampingRatio: 0.75) { self.badgeView.transform = onScreen ? .identity : offScreenTransform } animator.addCompletion(completion) animator.startAnimation() } }
68da01f0af86f25ea736eb174b59fac5198830d4
{ "blob_id": "68da01f0af86f25ea736eb174b59fac5198830d4", "branch_name": "refs/heads/main", "committer_date": "2021-08-31T14:48:24", "content_id": "c5af64994376362adce2c292fe590f0a3d84b47c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "bc3c4329bef5e04211ee147095b70996b2994526", "extension": "swift", "filename": "TabBarButton.swift", "fork_events_count": 0, "gha_created_at": "2021-08-31T14:48:42", "gha_event_created_at": "2021-08-31T14:48:43", "gha_language": null, "gha_license_id": "NOASSERTION", "github_id": 401740338, "is_generated": false, "is_vendor": false, "language": "Swift", "length_bytes": 5080, "license": "Apache-2.0", "license_type": "permissive", "path": "/ios/Classes/Views/Core/Container/TabBarButton.swift", "provenance": "stack-edu-0071.json.gz:338372", "repo_name": "kcelestinomaria/JASIRI-Wallet", "revision_date": "2021-08-31T14:48:24", "revision_id": "290817ffcaa6870635a0497c82c0ab2db8dc71d8", "snapshot_id": "ced52e1c4d8408af22d55751d468aa6a0aa614a6", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/kcelestinomaria/JASIRI-Wallet/290817ffcaa6870635a0497c82c0ab2db8dc71d8/ios/Classes/Views/Core/Container/TabBarButton.swift", "visit_date": "2023-07-12T10:59:06.184777", "added": "2024-11-19T02:51:01.337729+00:00", "created": "2021-08-31T14:48:24", "int_score": 3, "score": 2.59375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0089.json.gz" }
<?php namespace Modseven\Installer\Console; use RuntimeException; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Filesystem\Exception\IOExceptionInterface; use Symfony\Component\Filesystem\Filesystem; class NewApplication extends Command { /** * Configure the command options. */ protected function configure() : void { $this ->setName('new') ->setDescription('Create a new Modseven application') ->addArgument('name', InputArgument::REQUIRED) ->addOption('force', 'f', InputOption::VALUE_NONE, 'Forces install even if the directory already exists'); } /** * Execute the command. * * @param InputInterface $input * @param OutputInterface $output */ protected function execute(InputInterface $input, OutputInterface $output) : void { // Build directory name $name = $input->getArgument('name'); $directory = $name && $name !== '.' ? getcwd().'/'.$name : getcwd(); // Check if directory already exists if (! $input->getOption('force')) { $this->verifyApplicationDoesntExist($directory); } // Copy skeleton directories $output->writeln('<info>Crafting application...</info>'); // Src Directory $skeleton = dirname(__FILE__, 2) . DIRECTORY_SEPARATOR . 'skeleton'; $this->copy($skeleton, $directory) ->replaceName($name, $directory) ->prepareWritableDirectories($directory, $output); // Build the composer install command $composer = $this->findComposer(); $commands = [ $composer.' install --no-scripts', ]; if ($input->getOption('no-ansi')) { $commands = array_map(static function ($value) { return $value.' --no-ansi'; }, $commands); } if ($input->getOption('quiet')) { $commands = array_map(static function ($value) { return $value.' --quiet'; }, $commands); } // Execute the composer statement exec('cd ' . $directory . ' && ' .implode(' && ', $commands)); $output->writeln('<comment>Application ready! Build something amazing.</comment>'); } /** * Verify that the application does not already exist. * * @param string $directory */ protected function verifyApplicationDoesntExist($directory) : void { if ((is_dir($directory) || is_file($directory)) && $directory != getcwd()) { throw new RuntimeException('Application already exists!'); } } /** * Download the temporary Zip to the given file. * * @param string $src Source Directory * @param string $dst Target Directory * * @return self */ protected function copy($src, $dst) : self { // open the source directory $dir = opendir($src); // Make the destination directory if not exist if ( ! mkdir($dst) && ! is_dir($dst)) { throw new RuntimeException(sprintf('Directory "%s" was not created', $dst)); } // Loop through the files in source directory while($file = readdir($dir)) { if (( $file !== '.' ) && ( $file !== '..' )) { if ( is_dir($src . DIRECTORY_SEPARATOR . $file) ) { // Recursively calling copy function for sub directory $this->copy($src . '/' . $file, $dst . '/' . $file); } else { $copied = copy($src . '/' . $file, $dst . '/' . $file); if (!$copied) { throw new RuntimeException(sprintf('There was a problem copying "%s"', $file)); } } } } closedir($dir); return $this; } /** * Replace the Name of the application inside specific files. * * @param string $appName Application name * @param string $dir Main Directory * * @return self */ protected function replaceName(string $appName, string $dir) : self { $placeholder = '<AppName>'; $files = [ $dir . DIRECTORY_SEPARATOR . 'composer.json', $dir . DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'Controller' . DIRECTORY_SEPARATOR . 'Welcome.php', $dir . DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'routes.php' ]; foreach ($files as $file) { $this->replaceInFile($file, $placeholder, $appName); } return $this; } /** * Replace a string inside a file * * @param string $file File to replace string in * @param string $old Old String * @param string $new New String */ protected function replaceInFile(string $file, string $old, string $new) : void { // Open File $str = file_get_contents($file); // Replace the string $str = str_replace($old, $new, $str); // Write to the file $success = file_put_contents($file, $str); if ($success === false) { throw new RuntimeException(sprintf('There was a problem preparing the file "%s"', $file)); } } /** * Make sure the storage and bootstrap cache directories are writable. * * @param string $appDirectory * @param OutputInterface $output * * @return self */ protected function prepareWritableDirectories(string $appDirectory, OutputInterface $output) : self { $filesystem = new Filesystem; try { $filesystem->chmod($appDirectory . DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'cache', 0765, 0000, true); $filesystem->chmod($appDirectory . DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'logs', 0765, 0000, true); } catch (IOExceptionInterface $e) { $output->writeln('<comment>You should verify that the "application/logs" and "application/cache" directories are writable.</comment>'); } return $this; } /** * Get the composer command for the environment. * * @return string */ protected function findComposer() : string { $composerPath = getcwd().'/composer.phar'; if (file_exists($composerPath)) { return '"'.PHP_BINARY.'" '.$composerPath; } return 'composer'; } }
76ca28384361b906cfec7538a845082fb3e12cfa
{ "blob_id": "76ca28384361b906cfec7538a845082fb3e12cfa", "branch_name": "refs/heads/master", "committer_date": "2020-05-14T13:27:05", "content_id": "db48a89df97cfa12fd2f0eabc66bd4f3694c314d", "detected_licenses": [ "MIT" ], "directory_id": "e07cad075f881e08ad9a75d5efef786db4634d12", "extension": "php", "filename": "NewApplication.php", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 219170820, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 7000, "license": "MIT", "license_type": "permissive", "path": "/src/NewApplication.php", "provenance": "stack-edu-0047.json.gz:872468", "repo_name": "modseven/installer", "revision_date": "2020-05-14T13:27:05", "revision_id": "aa8241458d8345cc0e246db7d512df4ca41b35e9", "snapshot_id": "fda8bf785c71ccc0304e1d2cf62d39598a88b7c7", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/modseven/installer/aa8241458d8345cc0e246db7d512df4ca41b35e9/src/NewApplication.php", "visit_date": "2020-09-02T07:46:27.430249", "added": "2024-11-19T02:08:30.051239+00:00", "created": "2020-05-14T13:27:05", "int_score": 3, "score": 2.921875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0065.json.gz" }
# Query Profiling in MySQL (DBAMA, June 2020) These are the notes for [my presentation/demo](https://www.youtube.com/watch?v=hKGWdqlEt98) at https://dbama.now.sh/, on 2020-06-30. All SQL in this repo is licensed as CC0, so feel free to copy, share and use as you please. MySQL has a large toolbox for query analysis: 1. [`EXPLAIN`](https://dev.mysql.com/doc/refman/8.0/en/explain.html) to show plans (try `EXPLAIN FORMAT=TREE`!) 2. [`EXPLAIN ANALYZE`](https://mysqlserverteam.com/mysql-explain-analyze/) to show the execution profile 3. [Optimizer tracing](https://dev.mysql.com/doc/internals/en/optimizer-tracing.html) to inspect the choices the optimizer makes 4. [`performance_schema`](https://dev.mysql.com/doc/refman/8.0/en/performance-schema.html) to show too many details about too many things ;-) 5. [Optimizer hints](https://dev.mysql.com/doc/refman/8.0/en/optimizer-hints.html) to prevent/fix bad plans 6. [`optimizer_switch`](https://dev.mysql.com/doc/refman/8.0/en/switchable-optimizations.html) to prevent specific optimizations in a connection This presentation covers 2 and some small portion of 4. ## Execution profiling We can profile the query execution using `EXPLAIN ANALYZE`. MySQL uses the Volcano iterator model for query execution. Each iterator is a subtype of [RowIterator](https://dev.mysql.com/doc/dev/mysql-server/latest/classRowIterator.html). When run with `EXPLAIN ANALYZE`, each iterator is wrapped in a [TimingIterator](https://dev.mysql.com/doc/dev/mysql-server/latest/classTimingIterator.html) that records timestamps and counts in order to generate the profile at the end of execution. We're using the [test_db](https://github.com/datacharmer/test_db) dataset to demonstrate. ``` EXPLAIN FORMAT=TREE SELECT * FROM EMPLOYEES AS e JOIN current_dept_emp AS de ON e.emp_no=de.emp_no JOIN departments d ON de.dept_no=d.dept_no ; ``` ``` EXPLAIN ANALYZE SELECT * FROM EMPLOYEES AS e JOIN current_dept_emp AS de ON e.emp_no=de.emp_no JOIN departments d ON de.dept_no=d.dept_no ; ``` ## Memory profiling Note: This is an experiment. I've never done this before! We're going to do memory usage profiling by running a query in one connection and monitoring it with performance_schema (and logging to a table) from another connection. ### Starting the server I had to do a few tweaks to my MySQL Server setup: The server needs to be able to do SELECT ... INTO OUTFILE, so set the `--secure-file-priv` option accordingly. The default history length for performance_schema.events_stages_history_long is too low to record the history of my example, so I increased it: `--performance_schema_events_stages_history_long_size=1000000`. The correct value is system/load specific. This worked for me in my demo setup. YMMV. ### A simple connection to monitor We're going to need the connection ID of this connection: ``` SELECT CONNECTION_ID(); ``` The simplest query we can easily monitor: ``` SELECT SLEEP(300); -- in seconds, use fractions if you want to ``` In order to have something more interesting to look at, we're using [ST_Buffer](https://dev.mysql.com/doc/refman/8.0/en/spatial-operator-functions.html#function_st-buffer) and [ST_Buffer_Strategy](https://dev.mysql.com/doc/refman/8.0/en/spatial-operator-functions.html#function_st-buffer-strategy). Why ST_Buffer? Because I know that function, and I know its memory allocation pattern. And we can easily adjust how much memory we want it to use. This query will first generate a small polygon, then larger and larger polygons, until the largest one with 50000 points (each point is two doubles (=16 bytes), plus overhead). We're sprinkling out some [SLEEP](https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_sleep) calls, too, so that it will execute slow enough for us to monitor. ``` SELECT i, SLEEP(2), ST_Buffer(POINT(0,0), 1000, ST_Buffer_Strategy('point_circle', i)) FROM (VALUES ROW(1), ROW(10), ROW(100), ROW(1000), ROW(10000), ROW(50000) ORDER BY 1) AS ints (i); ``` ### A monitoring connection We're going to do our monitoring from another connection than the one running the query (it's busy!). First, we need to find the thread ID of the connection running our interesting query, which is not the same as the connection ID. We can find connection IDs like we did above, or using `SHOW PROCESSLIST`. But that doesn't give us the thread ID that performance_schema uses. The mapping between connection ID and thread ID is in `performance_schema.threads`: ``` SET @pid = 8; -- Replace with value you got above ``` ``` SELECT * FROM performance_schema.threads WHERE PROCESSLIST_ID=@pid\G ``` ``` SET @tid = (SELECT THREAD_ID FROM performance_schema.threads WHERE PROCESSLIST_ID=@pid); ``` Now we can inspect the other fields of the `threads` table. The `PROCESSLIST_COMMAND` field is useful: ``` SELECT PROCESSLIST_COMMAND FROM performance_schema.threads WHERE THREAD_ID=@tid; ``` Try it both while the monitored connection is running a query and between queries. We can use this to detect when a connection is starting to execute a query and use that to trigger our monitoring, and to stop it once the query finishes. See [`monitor_connection.sql`](./monitor_connection.sql). ``` CALL monitor_connection(@pid); ``` ### Analyzing the collected data The stored procedure creates two tables, `monitoring_data` and `monitoring_stages`. These table contain all memory statistics gathered and the start and end timestamp of all query processing stage changes, respectively. We're only going to look at one specific type of memory allocation, those used to store geometries. We're also summing up the total memory used. ``` SET @min_ts = (SELECT UNIX_TIMESTAMP(MIN(TS)) FROM monitoring_data); (SELECT 'wall_clock', 'relative time', 'geom', CAST('total' AS CHAR)) UNION (SELECT TS AS the_ts, UNIX_TIMESTAMP(TS) - @min_ts, (SELECT CURRENT_NUMBER_OF_BYTES_USED FROM monitoring_data WHERE EVENT_NAME='memory/sql/Geometry::ptr_and_wkb_data' AND TS=the_ts), SUM(CURRENT_NUMBER_OF_BYTES_USED) FROM monitoring_data GROUP BY the_ts ) INTO OUTFILE '~/demo/memory.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ; ```
a8f9ae3b1f4d2d9f88fa2ccf9f8eae63fe1f1557
{ "blob_id": "a8f9ae3b1f4d2d9f88fa2ccf9f8eae63fe1f1557", "branch_name": "refs/heads/master", "committer_date": "2020-08-25T09:57:15", "content_id": "a700e851530e8e413b373f524afda5555ecb1a8d", "detected_licenses": [ "CC0-1.0" ], "directory_id": "7db429297fea399e3272dcaf1751dcf2f5444c73", "extension": "md", "filename": "README.md", "fork_events_count": 1, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 275642750, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 6246, "license": "CC0-1.0", "license_type": "permissive", "path": "/README.md", "provenance": "stack-edu-markdown-0004.json.gz:111881", "repo_name": "nryeng/dbama-query-profiling", "revision_date": "2020-08-25T09:57:15", "revision_id": "2151df13b42813fccbce5c1f910f93a4cec45fa0", "snapshot_id": "0f9e5e819533b34732a408c271cd0535d4e3f3ca", "src_encoding": "UTF-8", "star_events_count": 3, "url": "https://raw.githubusercontent.com/nryeng/dbama-query-profiling/2151df13b42813fccbce5c1f910f93a4cec45fa0/README.md", "visit_date": "2022-12-13T11:05:48.034526", "added": "2024-11-18T21:19:21.000809+00:00", "created": "2020-08-25T09:57:15", "int_score": 4, "score": 3.828125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0004.json.gz" }
# Ridesharing driver & rider sample apps using HyperTrack SDK <p align="center"> <img src="Images/Demo.gif" alt="Apps demo"/> </p> Uber’s business model has given rise to a large number of Uber-for-X services. Among other things, X equals moving, parking, courier, groceries, flowers, alcohol, dog walks, massages, dry cleaning, vets, medicines, car washes, roadside assistance and marijuana. Through these on-demand platforms, supply and demand are aggregated online for services to be fulfilled offline. This open source repo/s uses HyperTrack SDK for developing real world Uber-like consumer & driver apps. - **Ridesharing Rider app** can be used by customer to : - Allow customer to select pickup and dropoff location - Book a ride from desired pickup and dropoff location - Track driver to customer's pickup location - Track the ongoing ride to dropoff location - Let customers share live trip with friends and family - Show trip summary with distance travelled <p align="center"> <a href="https://www.youtube.com/watch?v=1qMFP5w32GY"> <img src="http://res.cloudinary.com/hypertrack/image/upload/v1525329669/customer.png" width="300"/> </a> </p> - **Ridesharing Driver app** can be used by driver to : - Find new rides - Accept a ride - Track and navigate till customer's pickup location, and mark the pickup as complete - Track and navigate from customer's pickup to dropoff location, and mark the dropoff as complete - Show trip summary with distance travelled <p align="center"> <a href="https://www.youtube.com/watch?v=3R9GDQitt40"> <img src="http://res.cloudinary.com/hypertrack/image/upload/v1525329669/driver.png" width="300"/> </a> </p> ## How to Begin ### 1. Get your keys - [Signup](https://dashboard.hypertrack.com/signup) to get your [HyperTrack Publishable Key](https://dashboard.hypertrack.com/setup) ### 2. Set up rider & driver app ```bash # Clone this repository $ git clone https://github.com/hypertrack/ridesharing-ios.git # cd into the project directory $ cd ridesharing-ios # Install dependencies (can take a while) $ pod install ``` - Open Ridesharing.xcworkspace - Add the publishable key to Utility > [`Interface.swift`](https://github.com/hypertrack/ridesharing-ios/blob/e46306c06e3f8b0d9a7372ef15663dc509451b1e/Utility/Interface.swift#L10) > `let publishableKey` constant ```swift public let publishableKey: String = "YOUR_PUBLISHABLE_KEY_HERE" ``` ### 3. Set up Firebase - Create a Firebase project. For detail steps refer to _Step 1_: https://firebase.google.com/docs/ios/setup#create-firebase-project - Register Driver app with `com.hypertrack.ridesharing.driver.ios.github` bundle ID and Rider app with `com.hypertrack.ridesharing.rider.ios.github` bundle ID. More details in _Step 2_: https://firebase.google.com/docs/ios/setup#register-app - Move Driver app's `GoogleService-Info.plist` to the Driver app target and Rider's to Riders. Described in _Step 3_: https://firebase.google.com/docs/ios/setup#add-config-file No need to follow Step 4 and 5, they are already implemented in the app. - Create Cloud Firestore database in test mode by following the "Create a Cloud Firestore database" section from this guide https://firebase.google.com/docs/firestore/quickstart#create No need to follow other steps, they are already implemented in the app. - Follow instructions in our [firebase repo](https://github.com/hypertrack/ridesharing-firebase) to setup Firebase Cloud Functions that act as a backend, interacting with HyperTrack APIs. - Note that Firebase Cloud Firestore and Cloud Functions are _not required_ to use HyperTrack SDKs. You may have your own server that is connected to your apps. ### 4. Run the apps - You can run the Rider app in Simulator, but Driver app needs to be run on-device due to Simulator's lack of motion hardware. - Being able to run the apps and signup means that the whole setup works. - In these samples apps, Driver app creates actions for pickup and drop, which are tracked by Driver & Rider apps. See [architecture](#architecture) for details. ## Documentation For detailed documentation of the APIs, customizations and what all you can build using HyperTrack, please visit the official [docs](https://docs.hypertrack.com). ## Architecture ![Architecture](Images/Architecture.png) 1. The driver app uses HyperTrack SDK ([iOS](https://github.com/hypertrack/quickstart-ios)/[Android](https://github.com/hypertrack/quickstart-android)) to send his location, name, and metadata to HyperTrack's servers. 2. Driver and Rider apps use HyperTrack Views ([iOS](https://github.com/hypertrack/views-ios)/[Android](https://github.com/hypertrack/views-android)) to show the driver's current location and trip's route. 3. Driver and Rider apps are subscribed to [Firebase Cloud Firestore](https://firebase.google.com/docs/firestore) to sync users and orders between them. 4. Firebase Cloud Functions react to the order status field in Cloud Firestore, create and complete trips using [HyperTrack APIs](https://docs.hypertrack.com/#guides-apis), listen to [HyperTrack Webhooks](https://docs.hypertrack.com/#guides-webhooks) and update the order status and trip fields with new results. <details> <summary>Step by step process of communication:</summary> 1. Driver sign-ups with his data. This 1. Creates a new document with driver's data in users collection in Cloud Firestore 2. Adds the name and metadata through HyperTrack SDK for the driver. HyperTrack SDK starts tracking the driver's location. From this point, the driver can be seen in HyperTrack Dashboard 2. The driver is checking Cloud Firestore's orders collection periodically, looking for orders with the `NEW` status 3. Rider sign-ups with his data. This creates a new document with rider's data in users collection in Cloud Firestore 4. Rider chooses pickup and dropoff places, which creates a new order in orders collection in Cloud Firestore 5. The driver is accepting this order, changing its status to `ACCEPTED` and setting his data in the order 6. This change triggers `updateOrderStatus` Firebase Cloud Function. The function creates a trip from the driver's current position to the rider's pickup point using HyperTrack API. Then it changes the order status to `PICKING_UP`. 7. Driver and Rider apps are subscribed to their order. When they see that the status is `PICKING_UP`, they use HyperTrackViews SDK to display the trip from the order on a map. 8. When a driver crosses destination geofence of the rider's pickup point, a webhook from HyperTrack to Firebase Cloud Function is triggered. This function updates the order to `REACHED_PICKUP` state. 9. Upon receiving `REACHED_PICKUP` order state, the Driver app shows a "Start Trip" button. When the driver presses it, Driver app changes the order status to `STARTED_RIDE` state 10. Upon receiving the `STARTED_RIDE` state, Firebase Cloud Function call HyperTrack APIs to complete the previous trip and create a new trip to the rider's destination. After the trip is created, the function updates the order status to `DROPPING_OFF`. 11. When Driver and Rider apps see the `PICKING_UP` status, they use HyperTrackViews SDK to display the new trip on a map. 12. When a driver crosses destination geofence of the rider's dropoff point, a webhook from HyperTrack to Firebase Cloud Function triggers again. This function updates the order to `REACHED_DROPOFF` state. 13. Upon receiving `REACHED_DROPOFF` order state, the Driver app shows a "End Trip" button. When the driver presses it, Driver app changes the order status to `COMPLETED` state. 14. Firebase Cloud Function completes the dropoff trip at this point. 15. When this trip is completed, Rider and Driver app show trip summary using HyperTrackViews SDK. </details> ## How Ridesharing sample apps use HyperTrack SDK Ridesharing Driver app uses HyperTrack SDK to track driver's position in 3 cases: - When app is active to display all drivers locations on riders maps - When driver is picking up rider - When driver is dropping off rider You can find the SDK documentation [here](https://github.com/hypertrack/quickstart-ios). ### Silent push notifications Driver app integrates HyperTrack SDK with silent push notifictions to: - Start tracking location immediately when Firebase creates a trip for accepted order - Stop tracking location when app is backgrounded and there are no trips lift HyperTrack SDK has four methods to integrate silent push notifications: - `registerForRemoteNotifications()`, registers the app in OS to receive notifications - `didRegisterForRemoteNotificationsWithDeviceToken(_:)` to transfer device token to HyperTrack SDK - `didFailToRegisterForRemoteNotificationsWithError(_:)` to signal failure to register for remote notifications - `didReceiveRemoteNotification(_:fetchCompletionHandler:)` transfers silent push notification to HyperTrack SDK Here is how they are integrated in Driver app: ```swift func application( _: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { /// Register for remote notifications to allow bi-directional communication model with the /// server. This enables the SDK to run on a variable frequency model, which balances the /// fine trade-off between low latency tracking and battery efficiency, and improves robustness. /// This includes the methods below in the Remote Notifications section HyperTrack.registerForRemoteNotifications() /// Configure Firebase FirebaseApp.configure() return true } func application( _: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data ) { HyperTrack.didRegisterForRemoteNotificationsWithDeviceToken(deviceToken) } func application( _: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error ) { HyperTrack.didFailToRegisterForRemoteNotificationsWithError(error) } func application( _: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void ) { HyperTrack.didReceiveRemoteNotification( userInfo, fetchCompletionHandler: completionHandler ) } ``` ### SDK Initialization HyperTrack SDK initializes successfully when nothing prevents it from tracking. This is modeled by `Result` type. Here, in Driver app, when `Result` is `.success` we present one UI and when it's `.failure` another. This ensures that UI that get initialized SDK won't get null, and can use the SDK freely, and UIs designed for error handling won't get SDK at all, and will only display errors. ```swift switch HyperTrack.makeSDK( publishableKey: HyperTrack.PublishableKey(getPublishableKeyfromPlist())! ) { case let .success(hypertrack): let store = Store( initialValue: AppState(), reducer: appReducer ) let dataflow = DriverDataFlow(store: store, hypertrack: hypertrack) return AnyView(ContentView( store: store, dataflow: dataflow, hypertrack: hypertrack )) case let .failure(error): switch error { case let .developmentError(devError): fatalError("\(devError)") case let .productionError(prodError): return AnyView(ErrorView(store: Store( initialValue: AppState(), reducer: appReducer ), error: HError(error: prodError))) } } ``` ### DeviceID DeviceID is used to identify a device on HyperTrack. Driver app uses this ID when creating a user in Firebase. ```swift private func makeNewUser() { let user = User( id: nil, role: .driver, name: name, phone_number: phone, device_id: hypertrack.deviceID, car: User.Car(model: carModel, license_plate: carPlate) ) setNewFirestoreUser(db, user) { result in switch result { case let .success(user): self.makeHTUser(user) self.store.value.user = user self.store.update(.permissions) case let .failure(error): print("An error occurred: \(error)") } } } ``` Later in Views SDK snippets, both Driver and Rider app are using this ID to display driver on a map. ### Device name and metadata Device name and metadata are displayed in HyperTrack's [dashboard](https://dashboard.hypertrack.com). To make it easy for operators to find drivers by their name or filter them by metadata, Driver app sets those fields using User model from Firebase: ```swift private func makeHTUser(_ user: User) { let id = user.id ?? "" let name = user.id ?? "" let phoneNumber = user.phone_number ?? "" let carModel = user.car?.model ?? "" let carLicensePlate = user.car?.license_plate ?? "" let car = ["model": carModel, "license_plate": carLicensePlate] hypertrack.setDeviceName(user.name) if let metadata = HyperTrack.Metadata(dictionary: [ "user_id": id, "name": name, "phone_number": phoneNumber, "car": car ]) { hypertrack.setDeviceMetadata(metadata) } } ``` ### Start tracking and sync device settings Driver app tracks the driver in an interesting way. We want to always track driver when the app is running in foreground. This allows us to show cars of available drivers in Rider app's map. At the same time we want to track drivers in background only when they have an active order. In this snippet we subscribe to OS notifications and call `start()` tracking when app is brought to foreground. But when the app is going into background we consult with `syncDeviceSettings()` to stop tracking if driver doesn't have active trips. ```swift .onReceive(appStateReceiver.$notification) { notification in switch(notification.name, self.store.value.user) { case (UIApplication.didBecomeActiveNotification, let user): self.hypertrack.start() case (UIApplication.didEnterBackgroundNotification, _): self.hypertrack.syncDeviceSettings() default: break } } ``` ## How Ridesharing sample apps use Views SDK Both Rider and Driver apps use [HyperTrackViews SDK](https://github.com/hypertrack/views-ios) to display realtime location and trip updates on a map. ### Subscribing to location updates Both Driver and Rider apps subscribe to driver's location updates using `subscribeToMovementStatusUpdates(for:completionHandler:)` method: ```swift func createUserMovementStatusSubscription() { ht_cancelable = hyperTrackViews.subscribeToMovementStatusUpdates( for: self.hypertrack.deviceID, completionHandler: { [weak self] result in guard let self = self else { return } switch result { case let .success(movementStatus): self.movementStatusWillChange.send(movementStatus) self.getTripSummary() case let .failure(error): dump(error) self.createUserMovementStatusSubscription() } } ) } ``` ### Placing device or trip on a map MapKit part of the library can put any `CLLocation` as devices location. Driver's location is taken from MovementStatus: ```swift private func configureForNewState(_ mapView: MKMapView) { removeAllAnnotationExceptDeviceAnnotation(mapView: mapView) mapView.addAnnotations(dataflow.orderList.map { OrderAnnotation(order: $0) } ) if let movementStatus = self.movementStatus { put(.location(movementStatus.location), onMapView: mapView) } } ``` Rider's location is taken from the map itself: ```swift private func configureForLookingState(_ mapView: MKMapView) { guard let location = self.location else { return } put(.location(location), onMapView: mapView) } ``` When driver is picking up or dropping off rider, the estimated route is displayed. This route comes from a trip, and `.locationWithTrip` enum is used to display both driver's current position and his route to destination: ```swift private func configureForDrivingState(_ mapView: MKMapView) { if let device = self.dataflow.userMovementStatus, let trip = mStatus.trips.first( where: { $0.id == self.dataflow.store.value.order?.trip_id } ) { put(.locationWithTrip(device.location, trip), onMapView: mapView) } else { configureForLookingState(mapView) } } ``` ### Making the device or trip center on a map In apps that show tracking data, usually user needs to see all the data on the screen, be it current location, trip polylines or destination markers. This view needs to re-zoom with animation every time the data is changing. This is done in the Uber app. We also don't want to auto-zoom if user touched the map and zoomed in to his location of choise. In this snippet a private function decides, based on user's input, if auto-zoom is needed and uses our Views function (`zoom(withMapInsets:interfaceInsets:onMapView:)`) that understands what is shown on the screen (be it current location, trip or summary) and auto-zooms on it. This function can take different values for insets based on distance in meters (here we are making an inset for 100 meters in all directions, so elements won't touch the screen. But also there are cases where UI elements are shown on top of our map, and in those cases we don't want to accidentally miss relevent data under those elemets. For those cases the zoom function has interfaceInsets parameter. In this case we have a card at the bottom 250 points in height, and a statusbar element at the top for 10 points. ```swift private func isZoomNeeded(_ mapView: MKMapView) { if self.isAutoZoomEnabled { zoom( withMapInsets: .all(100), interfaceInsets: .custom( top: 10, leading: 10, bottom: 250, trailing: 10), onMapView: mapView) } } ``` ## Contribute Feel free to clone, use, and contribute back via [pull requests](https://help.github.com/articles/about-pull-requests/). We'd love to see your pull requests - send them in! Please use the [issues tracker](https://github.com/hypertrack/ridesharing-ios/issues) to raise bug reports and feature requests. We are excited to see what live location feature you build in your app using this project. Do ping us at<EMAIL_ADDRESS>once you build one, and we would love to feature your app on our blog! ## Support Join our [Slack community](https://join.slack.com/t/hypertracksupport/shared_invite/enQtNDA0MDYxMzY1MDMxLTdmNDQ1ZDA1MTQxOTU2NTgwZTNiMzUyZDk0OThlMmJkNmE0ZGI2NGY2ZGRhYjY0Yzc0NTJlZWY2ZmE5ZTA2NjI) for instant responses. You can also email us at<EMAIL_ADDRESS>
6ef32b808050a55237f806981f6027f6c398b458
{ "blob_id": "6ef32b808050a55237f806981f6027f6c398b458", "branch_name": "refs/heads/master", "committer_date": "2019-12-28T06:37:43", "content_id": "d43597563eb1d2268d3db0f20d81d70ce7975b4c", "detected_licenses": [ "MIT" ], "directory_id": "6e23553bfb3c6120d3c61cd900a4b0162f49372c", "extension": "md", "filename": "README.md", "fork_events_count": 2, "gha_created_at": "2019-08-17T06:08:38", "gha_event_created_at": "2019-12-28T06:37:45", "gha_language": "Swift", "gha_license_id": "MIT", "github_id": 202842962, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 18538, "license": "MIT", "license_type": "permissive", "path": "/README.md", "provenance": "stack-edu-markdown-0009.json.gz:236717", "repo_name": "mohsinalimat/uber_for_x_iOS", "revision_date": "2019-12-28T06:37:43", "revision_id": "65d87c8c8b62d774494f03c0ea1cabdddf120c9b", "snapshot_id": "ba7213f582b80cce2f2375f7ae8c7d8df9f6511e", "src_encoding": "UTF-8", "star_events_count": 2, "url": "https://raw.githubusercontent.com/mohsinalimat/uber_for_x_iOS/65d87c8c8b62d774494f03c0ea1cabdddf120c9b/README.md", "visit_date": "2020-07-06T01:15:25.483399", "added": "2024-11-19T01:14:04.353105+00:00", "created": "2019-12-28T06:37:43", "int_score": 3, "score": 3.109375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0009.json.gz" }
// <auto-generated /> using System; using Clean.Architecture.Infrastructure.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Clean.Architecture.Infrastructure.Data.Migrations { [DbContext(typeof(AppDbContext))] partial class AppDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "5.0.3"); modelBuilder.Entity("Clean.Architecture.Core.Entities.GuestBookEntry", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<DateTimeOffset>("DateTimeCreated") .HasColumnType("TEXT"); b.Property<string>("EmailAddress") .HasColumnType("TEXT"); b.Property<int?>("GuestbookId") .HasColumnType("INTEGER"); b.Property<string>("Message") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuestbookId"); b.ToTable("GuestBookEntry"); }); modelBuilder.Entity("Clean.Architecture.Core.Entities.Guestbook", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<string>("Name") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("GuestBooks"); }); modelBuilder.Entity("Clean.Architecture.Core.Entities.ToDoItem", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<string>("Description") .HasColumnType("TEXT"); b.Property<bool>("IsDone") .HasColumnType("INTEGER"); b.Property<string>("Title") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("ToDoItems"); }); modelBuilder.Entity("Clean.Architecture.Core.Entities.GuestBookEntry", b => { b.HasOne("Clean.Architecture.Core.Entities.Guestbook", null) .WithMany("Entries") .HasForeignKey("GuestbookId"); }); modelBuilder.Entity("Clean.Architecture.Core.Entities.Guestbook", b => { b.Navigation("Entries"); }); #pragma warning restore 612, 618 } } }
e53d8124e7890c6628a33855d882480650af7522
{ "blob_id": "e53d8124e7890c6628a33855d882480650af7522", "branch_name": "refs/heads/master", "committer_date": "2021-05-17T20:24:01", "content_id": "43988de1890cfcbd24b6e8b0573fa6b5e15ac960", "detected_licenses": [ "MIT" ], "directory_id": "4d3d544eb49ddeaf0b638bfe6c0ce1db8a628cfb", "extension": "cs", "filename": "AppDbContextModelSnapshot.cs", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "C#", "length_bytes": 3070, "license": "MIT", "license_type": "permissive", "path": "/DDDGuestBook/DDDGuestBook/src/Clean.Architecture.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs", "provenance": "stack-edu-0015.json.gz:282616", "repo_name": "amitkotha/Domain-Driven-Design", "revision_date": "2021-05-17T20:24:01", "revision_id": "647162b128eb672610f8c7526ca540f1e8449dec", "snapshot_id": "2b103afbcde21e698e1b8c660cf17e062cd9396a", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/amitkotha/Domain-Driven-Design/647162b128eb672610f8c7526ca540f1e8449dec/DDDGuestBook/DDDGuestBook/src/Clean.Architecture.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs", "visit_date": "2023-04-24T12:30:48.979191", "added": "2024-11-18T23:21:10.761217+00:00", "created": "2021-05-17T20:24:01", "int_score": 2, "score": 2.03125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0033.json.gz" }
/*选中页面所有的input[data-rule]*/ /*解析每一个input的验证规则*/ /*验证*/ $(function () { "use strict"; var $form = $(".layui-tab-content"); var $inputs = $("[data-rule]"); var inputs = []; /*用于存放Input实例化后的对象*/ $inputs.each(function (index,node) {/*key是每一个的索引,val就是每个input*/ /*解析input的rule内容*/ inputs.push(new Input($(node))); /*把实例化的对象传到inputs里面去*/ }); /*避免提交后整页刷新*/ $form.on("submit",function (e) { /* 提交后全部触发一遍看看哪里错了 * 让用户知道哪里错了*/ $inputs.trigger("blur"); /*全部触发事件*/ e.preventDefault(); /*事件对象*/ /*提交后触发每一个input的blur看看是否有错 * 没错就直接提交 有错不能提交且要报错*/ for(var i=0;i<inputs.length;i++){ var item = inputs[i]; /*每一个input都验证,如果有一条出错就报错*/ var r = item.validator.is_valid(); if(!r){ alert("error!"); return; } } }) }); /* 使用new操作符调用构造函数时,会经历 (1)创建一个新对象; (2)将构造函数作用域赋给新对象(使this指向该新对象); 所以如果你在构造函数里面没有this的函数是私有函数 没有暴露到外面去 (3)执行构造函数代码 (4)返回新对象;4个阶段。 */
17eb7263f7afb788f3a016c92e63dc3b156a6ea9
{ "blob_id": "17eb7263f7afb788f3a016c92e63dc3b156a6ea9", "branch_name": "refs/heads/master", "committer_date": "2018-04-27T13:44:04", "content_id": "2ce9ba525a73ea68da427d6ec4514e5bafb8acd4", "detected_licenses": [ "MIT" ], "directory_id": "3f430bcab4053f6f30c267c654436cf6740862ae", "extension": "js", "filename": "main.js", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 159344628, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 1545, "license": "MIT", "license_type": "permissive", "path": "/src/main/webapp/WEB-INF/static/js/main.js", "provenance": "stack-edu-0032.json.gz:712893", "repo_name": "djknight1/ClassManager", "revision_date": "2018-04-27T13:44:04", "revision_id": "1644f965273c3b2b0419dcd805ec9e1a20598c5f", "snapshot_id": "f35be498f9b41899b70ad665dc0b5313d1402206", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/djknight1/ClassManager/1644f965273c3b2b0419dcd805ec9e1a20598c5f/src/main/webapp/WEB-INF/static/js/main.js", "visit_date": "2020-04-08T12:22:16.910683", "added": "2024-11-19T00:06:01.194970+00:00", "created": "2018-04-27T13:44:04", "int_score": 3, "score": 2.859375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0050.json.gz" }
package n.platform.lianjia; import com.sun.istack.internal.NotNull; import lombok.extern.slf4j.Slf4j; import n.platform.constants.PlatformConstants; import n.platform.core.Parser; import n.platform.domain.House; import n.platform.domain.Page; import n.platform.utils.HttpClientUtil; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; /** * @Author: Near * @Date: 2018/9/8 09:37 * @Description:链家parser */ @Slf4j public class HouseParser implements Parser<House> { @Override public List<House> parser(@NotNull Page page) { Objects.requireNonNull(page.getHtml(),"the html must not be null."); log.info("load html page,url:{}",page.getUrl()); Document document = Jsoup.parse(page.getHtml()); Elements elements = document.getElementsByClass("clear LOGCLICKDATA"); if(null != elements && elements.size() > 0){ List<House> houses = new ArrayList(); for(Element element : elements){ House house = new House(); Elements img = element.getElementsByTag("img"); house.setImgUrl(img.get(0).attr("data-original")); house.setTitle(element.select("div.title").select("a").html()); String houseInfo = element.select("div.houseInfo").text().trim(); if(StringUtils.isNotEmpty(houseInfo)){ String [] houseInfoArray = StringUtils.split(houseInfo,"|"); if(ArrayUtils.isNotEmpty(houseInfoArray)){ house.setName(houseInfoArray[0]); house.setArea(houseInfoArray[1]); house.setSize(houseInfoArray[2]); house.setDescribe(houseInfo); } } String positionInfo = element.select("div.positionInfo").text(); if(StringUtils.isNotEmpty(positionInfo) && positionInfo.contains("年")){ house.setListingTime(positionInfo.substring(positionInfo.indexOf("年")-4, positionInfo.indexOf("年"))); } houses.add(house); } return houses; } return Collections.emptyList(); } /** * 获取房源数量,以便与实现采集分页 * @param page * @return */ public int getHouseCount(@NotNull Page page){ Objects.requireNonNull(page.getHtml(),"the html must not be null."); log.info("load html page,url:{}",page.getUrl()); Document document = Jsoup.parse(page.getHtml()); Elements elements = document.getElementsByClass("total fl"); if(null == elements || elements.size() == 0){ throw new RuntimeException("get house count failure"); } Elements span = elements.get(0).getElementsByTag("span"); return Integer.valueOf(span.html().trim()); } }
f1b3e6057b6ad617ce7c25664348f49266327a72
{ "blob_id": "f1b3e6057b6ad617ce7c25664348f49266327a72", "branch_name": "refs/heads/master", "committer_date": "2018-11-20T09:02:13", "content_id": "f4873a430704f30ac602d6ffd5ea4d41bcba0384", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fee2603f4b08fb1d42abee623d005bee280fdf56", "extension": "java", "filename": "HouseParser.java", "fork_events_count": 0, "gha_created_at": "2018-09-04T08:23:53", "gha_event_created_at": "2018-09-11T08:36:11", "gha_language": "Java", "gha_license_id": "Apache-2.0", "github_id": 147312691, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 3209, "license": "Apache-2.0", "license_type": "permissive", "path": "/src/main/java/n/platform/lianjia/HouseParser.java", "provenance": "stack-edu-0024.json.gz:864056", "repo_name": "neaix/n-crawler", "revision_date": "2018-11-20T09:02:13", "revision_id": "a5dce4eb667e7666d90d7803fa6297180b5eb4bf", "snapshot_id": "a1156f9336a14e6e7bb40710923f1fc561ae9e97", "src_encoding": "GB18030", "star_events_count": 0, "url": "https://raw.githubusercontent.com/neaix/n-crawler/a5dce4eb667e7666d90d7803fa6297180b5eb4bf/src/main/java/n/platform/lianjia/HouseParser.java", "visit_date": "2020-03-27T23:21:55.544564", "added": "2024-11-19T03:08:43.373682+00:00", "created": "2018-11-20T09:02:13", "int_score": 2, "score": 2.40625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0042.json.gz" }
###### [back to main list of challenges](https://github.com/MHD22/data-structures-and-algorithms-401#readme) <hr> # Trees [Source code =>](https://github.com/MHD22/data-structures-and-algorithms-401/tree/main/Data-Structures/tree/app/src/main/java/tree) # Challenge Summary Implement Binary tree, and Binary Search Tree (BST) ## Challenge Description Need add the following method: * `add(value)` this method should take an input value.. and add it to the tree in the first appropriate place. * `add(value)` for (BST) this method should take an input value.. and add it to the tree in the first appropriate place by apply the binary tree search. * `contains(value)` for (BST) this method should take an input value.. and return true if the value exist in the binary search tree, otherwise.. return false. * `preOrder(root)` this method should traverse the tree in ***PreOreder*** way and return a list of values of the tree. * `inOrder(root)` this method should traverse the tree in ***InOrder*** way and return a list of values of the tree. * `postOrder(root)` this method should traverse the tree in ***PostOreder*** way and return a list of values of the tree. ## Approach & Efficiency ***Add(value) (BST)*** * if the tree is empty => set the value as the root of the tree. * else, start from the root, * declare a current node which will be equal the root. * loop while this current not equal null: * each time compare the value of the current node with the value we want to add. * if the value is smaller than the current node's value => check the left child of the current node: * if there is no left child .. add the new node as the left child of the current one. * else, considre the left child as the new current node and loop again... * else: check the right child of the current node (the same process) ###### __________ ***Add(value) *** * if the tree is empty => set the value as the root of the tree. * else, declare an empty queue. * add the root node to the queue * and start looping while the queue is not empty * each iteration, dequeue the front value of the queue and check if it has left and right child * if no => add the new node as the left or right child (the one which not exist) * if yes, => enqueue them to the queue and keep looping ###### __________ ***contains(value) (BST)*** * if the tree is empty => return false, * else, start from the root, * declare a current node which will be equal the root. * loop while this current not equal null: * each time compare the value of the current node with the value we want to find. * if the current node equal to the value => return true * if the value is smaller than the current node's value => check the left child of the current node: * if there is no left child .. return false * else, considre the left child as the new current node and loop again... * else: check the right child of the current node (the same process) ###### __________ ***Traversal methods: inOrder(root)*** * check if the left child not null, => call the method again and pass the root.left as an argument: inOrder(root.left) * print the root value. * check if the right child is not null => call the method again : inOrder(root.right) ###### __________ ***Traversal methods: postOrder(root) *** * check if the left child not null, => call the method again and pass the root.left as an argument: preOrder(root.left) * check if the right child is not null => call the method again : preOrder(root.right) * print the root value. ###### __________ ***Traversal methods: preOrder(root) *** * print the root value. * check if the left child not null, => call the method again and pass the root.left as an argument: preOrder(root.left) * check if the right child is not null => call the method again : preOrder(root.right) ###### __________ ## Solution ![Whiteboard_LinkedList](./assets/tree.png)
45af79267466464bb39035d270b8bf4bc54e012f
{ "blob_id": "45af79267466464bb39035d270b8bf4bc54e012f", "branch_name": "refs/heads/main", "committer_date": "2021-06-04T18:58:13", "content_id": "037fa07c25d50e82ca72b5170cf42d220332aea0", "detected_licenses": [ "MIT" ], "directory_id": "34b029b93b900b1d4e093cbe66308c6d1cc0569d", "extension": "md", "filename": "trees.md", "fork_events_count": 0, "gha_created_at": "2021-04-04T14:26:56", "gha_event_created_at": "2021-06-04T18:58:13", "gha_language": "Java", "gha_license_id": "MIT", "github_id": 354564309, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 3909, "license": "MIT", "license_type": "permissive", "path": "/challenges-description-files/trees.md", "provenance": "stack-edu-markdown-0004.json.gz:36475", "repo_name": "MHD22/data-structures-and-algorithms-401", "revision_date": "2021-06-04T18:58:13", "revision_id": "b972336c457ba87b3e02f24b08fad683a8deb759", "snapshot_id": "974740321c70f43290abeb0795b3c56b608fba6a", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/MHD22/data-structures-and-algorithms-401/b972336c457ba87b3e02f24b08fad683a8deb759/challenges-description-files/trees.md", "visit_date": "2023-04-26T06:07:08.269448", "added": "2024-11-19T00:50:52.012259+00:00", "created": "2021-06-04T18:58:13", "int_score": 4, "score": 3.65625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0004.json.gz" }
#include "Blur.hpp" Blur::Blur(){ _passthroughProgram = Resources::manager().getProgram("passthrough"); } void Blur::process(const GLuint ) { } void Blur::draw() { glUseProgram(_passthroughProgram->id()); ScreenQuad::draw(_finalTexture); } GLuint Blur::textureId() const { return _finalTexture; } void Blur::clean() const { } void Blur::resize(unsigned int , unsigned int ){ }
d5a98d12dbe5c162ed7186cf9090f3148a8bced5
{ "blob_id": "d5a98d12dbe5c162ed7186cf9090f3148a8bced5", "branch_name": "refs/heads/master", "committer_date": "2019-06-05T21:46:38", "content_id": "780ae40e37e6d0f5dc7d3c2c950454a918252f71", "detected_licenses": [ "MIT" ], "directory_id": "d2128d0c7658a6bcfd3431d1b476ac2a385a9588", "extension": "cpp", "filename": "Blur.cpp", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 390, "license": "MIT", "license_type": "permissive", "path": "/src/engine/processing/Blur.cpp", "provenance": "stack-edu-0008.json.gz:336728", "repo_name": "rodrigobmg/Rendu", "revision_date": "2019-06-05T21:46:38", "revision_id": "b96c60acd87a561bed05d0a7a8540f842e6ee5b2", "snapshot_id": "be8b10ec689f360f92910e2251dfbc126ae0a394", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/rodrigobmg/Rendu/b96c60acd87a561bed05d0a7a8540f842e6ee5b2/src/engine/processing/Blur.cpp", "visit_date": "2020-06-01T20:20:29.585098", "added": "2024-11-18T20:58:48.364935+00:00", "created": "2019-06-05T21:46:38", "int_score": 2, "score": 2.15625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0026.json.gz" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tmds.DBus { public abstract class TransactionBase { public DateTime? RequestSendTime { get; internal set; } public DateTime? ReplyReceivedTime { get; internal set; } public TimeSpan? TransactionTime => (RequestSendTime.HasValue && ReplyReceivedTime.HasValue) ? (ReplyReceivedTime.Value - RequestSendTime.Value) : (TimeSpan?)null; } }
51d9958e772b92e9b6e2ac0b4f84ec610d767e62
{ "blob_id": "51d9958e772b92e9b6e2ac0b4f84ec610d767e62", "branch_name": "refs/heads/master", "committer_date": "2020-11-25T07:04:51", "content_id": "b98aa25e68eafdc22dd90141cdb330c813579747", "detected_licenses": [ "MIT" ], "directory_id": "7a5ea1c7c44972144a4849aea7a4c6339c5ff6cf", "extension": "cs", "filename": "TransactionBase.cs", "fork_events_count": 0, "gha_created_at": "2017-12-21T03:52:56", "gha_event_created_at": "2017-12-21T03:52:56", "gha_language": null, "gha_license_id": null, "github_id": 114960218, "is_generated": false, "is_vendor": false, "language": "C#", "length_bytes": 513, "license": "MIT", "license_type": "permissive", "path": "/src/Tmds.DBus/TransactionBase.cs", "provenance": "stack-edu-0009.json.gz:503959", "repo_name": "robertturner/Tmds.DBus", "revision_date": "2020-11-25T07:04:51", "revision_id": "db38a64f79b6b5df1cea528858214e0701c4ce34", "snapshot_id": "7af46d4fbabfa1fd9af1c15c77a02c38e5aaa2e4", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/robertturner/Tmds.DBus/db38a64f79b6b5df1cea528858214e0701c4ce34/src/Tmds.DBus/TransactionBase.cs", "visit_date": "2023-01-14T05:13:28.471387", "added": "2024-11-19T00:37:25.492998+00:00", "created": "2020-11-25T07:04:51", "int_score": 2, "score": 2.40625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0027.json.gz" }
using System.Windows; using System.Windows.Controls; using TwitchLeecher.Gui.Browser; using TwitchLeecher.Gui.ViewModels; namespace TwitchLeecher.Gui.Views { public partial class TwitchConnectView : UserControl { public TwitchConnectView() { InitializeComponent(); Loaded += TwitchConnectView_Loaded; Unloaded += TwitchConnectView_Unloaded; } private void TwitchConnectView_Loaded(object sender, RoutedEventArgs e) { chrome.IsBrowserInitializedChanged += Chrome_IsBrowserInitializedChanged; chrome.RequestHandler = new AuthRequestHandler(Dispatcher, DataContext as TwitchConnectViewVM); } private void TwitchConnectView_Unloaded(object sender, RoutedEventArgs e) { chrome.Dispose(); } private void Chrome_IsBrowserInitializedChanged(object sender, DependencyPropertyChangedEventArgs e) { if (((bool)e.NewValue) == true) { chrome.Load("https://id.twitch.tv/oauth2/authorize?response_type=token&client_id=37v97169hnj8kaoq8fs3hzz8v6jezdj&redirect_uri=http://www.tl.com&scope=user_subscriptions&force_verify=true"); } } } }
1ecbbccb1819b33440833b7d7e7ca6a27f74d9f0
{ "blob_id": "1ecbbccb1819b33440833b7d7e7ca6a27f74d9f0", "branch_name": "refs/heads/master", "committer_date": "2019-10-28T17:15:05", "content_id": "e8a83c2fed7ce1e8ba7a623ce1bec4c2e200e4d3", "detected_licenses": [ "MIT" ], "directory_id": "5480dacf5418271271fdbc9b1c65947c1b4fd5ab", "extension": "cs", "filename": "TwitchConnectView.xaml.cs", "fork_events_count": 2, "gha_created_at": "2019-10-28T14:56:09", "gha_event_created_at": "2020-01-14T06:52:38", "gha_language": "C#", "gha_license_id": "MIT", "github_id": 218071998, "is_generated": false, "is_vendor": false, "language": "C#", "length_bytes": 1259, "license": "MIT", "license_type": "permissive", "path": "/TwitchLeecher/TwitchLeecher.Gui/Views/TwitchConnectView.xaml.cs", "provenance": "stack-edu-0010.json.gz:468945", "repo_name": "targen92/TwitchLeecher", "revision_date": "2019-10-28T17:15:05", "revision_id": "4490f89bb5f6ee2d9003b9f3f93210240a3a5510", "snapshot_id": "8bd1cca9685c9cfcaa3c607396ea0997facdf53c", "src_encoding": "UTF-8", "star_events_count": 2, "url": "https://raw.githubusercontent.com/targen92/TwitchLeecher/4490f89bb5f6ee2d9003b9f3f93210240a3a5510/TwitchLeecher/TwitchLeecher.Gui/Views/TwitchConnectView.xaml.cs", "visit_date": "2023-02-08T16:20:03.135742", "added": "2024-11-19T00:51:30.705001+00:00", "created": "2019-10-28T17:15:05", "int_score": 2, "score": 2.109375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0028.json.gz" }
/* * InlinePatterns.h * * Created on: 2013/10/28 * Author: mugwort_rc */ #ifndef INLINEPATTERNS_H_ #define INLINEPATTERNS_H_ #include <boost/optional.hpp> #include <boost/regex.hpp> #include "ElementTree.h" #include "odict.h" namespace markdown{ /*! * INLINE PATTERNS * ============================================================================= * * Inline patterns such as *emphasis* are handled by means of auxiliary * objects, one per pattern. Pattern objects must be instances of classes * that extend markdown.Pattern. Each pattern object uses a single regular * expression and needs support the following methods: * * pattern.getCompiledRegExp() # returns a regular expression * * pattern.handleMatch(m) # takes a match object and returns * # an ElementTree element or just plain text * * All of python markdown's built-in patterns subclass from Pattern, * but you can add additional patterns that don't. * * Also note that all the regular expressions used by inline must * capture the whole block. For this reason, they all start with * '^(.*)' and end with '(.*)!'. In case with built-in expression * Pattern takes care of adding the "^(.*)" and "(.*)!". * * Finally, the order in which regular expressions are applied is very * important - e.g. if we first replace http://.../ links with <a> tags * and _then_ try to replace inline html, we would end up with a mess. * So, we apply the expressions in the following order: * * * escape and backticks have to go before everything else, so * that we can preempt any markdown patterns by escaping them. * * * then we handle auto-links (must be done before inline html) * * * then we handle inline HTML. At this point we will simply * replace all inline HTML strings with a placeholder and add * the actual HTML to a hash. * * * then inline images (must be done before links) * * * then bracketed links, first regular then reference-style * * * finally we apply strong and emphasis * */ std::wstring handleAttributes(const std::wstring &text, Element &parent); class Markdown; //!< forward declaration /*! * Base class that inline patterns subclass. */ class Pattern { public: /*! * Create an instant of an inline pattern. * * Keyword arguments: * * * pattern: A regular expression that matches a pattern * */ Pattern(const std::wstring& pattern, Markdown* markdown_instance=nullptr); /*! * Return a compiled regular expression. */ boost::wregex getCompiledRegExp(void) const { return this->compiled_re; } /*! * Return a ElementTree element from the given match. * * Subclasses should override this method. * * Keyword arguments: * * * m: A re match object containing a match of the pattern. * */ virtual boost::optional<std::wstring> handleMatch(const boost::wsmatch&) { return boost::none; } virtual Element handleMatch(const ElementTree&, const boost::wsmatch&) { return Element::InvalidElement; } /*! * Return class name, to define pattern type */ virtual std::wstring type(void) const = 0; /*! * Return unescaped text given text with an inline placeholder. */ virtual std::wstring unescape(const std::wstring& text); protected: std::wstring pattern; boost::wregex compiled_re; bool safe_mode; Markdown* markdown; }; typedef OrderedDict<Pattern> OrderedDictPatterns; OrderedDictPatterns build_inlinepatterns(Markdown* md_instance); } // end of namespace markdown #endif // INLINEPATTERNS_H_
f73fde836cc76ff14facc2d16173ba4d1da4a616
{ "blob_id": "f73fde836cc76ff14facc2d16173ba4d1da4a616", "branch_name": "refs/heads/master", "committer_date": "2014-01-17T12:52:04", "content_id": "60cfdd30833668fc706e0b3d8026ebea75455d37", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "e3729845ea0ec8f7c01acebfdc2217d13bd3cf5a", "extension": "h", "filename": "InlinePatterns.h", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 3655, "license": "BSD-3-Clause", "license_type": "permissive", "path": "/InlinePatterns.h", "provenance": "stack-edu-0008.json.gz:620608", "repo_name": "mugwort-rc/MarkdownCpp", "revision_date": "2014-01-17T12:52:04", "revision_id": "7b1f4db24ae2b1a0dd4f6e03a9854892ae815508", "snapshot_id": "8137d9a30824b29308f51a6d92c67a95849190dd", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/mugwort-rc/MarkdownCpp/7b1f4db24ae2b1a0dd4f6e03a9854892ae815508/InlinePatterns.h", "visit_date": "2020-06-07T14:03:12.567866", "added": "2024-11-18T20:52:39.212942+00:00", "created": "2014-01-17T12:52:04", "int_score": 3, "score": 2.59375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0026.json.gz" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Cs2hx { static class WriteTypeOfExpression { public static void Go(HaxeWriter writer, TypeOfExpressionSyntax expression) { throw new Exception("typeof is not supported unless part of Enum.Parse or Enum.GetValues " + Utility.Descriptor(expression)); //writer.Write("typeof("); //writer.Write(TypeProcessor.ConvertType(expression.Type)); //writer.Write(")"); } } }
e35a01c0b40615bf84a9707e7693c4114ed3d41d
{ "blob_id": "e35a01c0b40615bf84a9707e7693c4114ed3d41d", "branch_name": "refs/heads/master", "committer_date": "2023-02-04T19:30:31", "content_id": "ea918481e6bf4d4ec3e773ffa0847f0fb6bed976", "detected_licenses": [ "MIT" ], "directory_id": "08dca5b75ab4e9503e05dcbcdbbbb9a916743120", "extension": "cs", "filename": "WriteTypeOfExpression.cs", "fork_events_count": 16, "gha_created_at": "2017-03-31T22:06:12", "gha_event_created_at": "2022-12-08T15:01:08", "gha_language": "C#", "gha_license_id": "MIT", "github_id": 86863859, "is_generated": false, "is_vendor": false, "language": "C#", "length_bytes": 647, "license": "MIT", "license_type": "permissive", "path": "/trunk/Cs2hx/WriteTypeOfExpression.cs", "provenance": "stack-edu-0010.json.gz:243183", "repo_name": "FizzerWL/Cs2hx", "revision_date": "2023-02-04T19:30:31", "revision_id": "71b1dbc6b0b8a343a58e0aff8db57ab8cb1b0149", "snapshot_id": "df161800c03af1d00545a7f86e25bd74cdd32fd5", "src_encoding": "UTF-8", "star_events_count": 58, "url": "https://raw.githubusercontent.com/FizzerWL/Cs2hx/71b1dbc6b0b8a343a58e0aff8db57ab8cb1b0149/trunk/Cs2hx/WriteTypeOfExpression.cs", "visit_date": "2023-02-23T05:30:09.108509", "added": "2024-11-19T00:50:45.888803+00:00", "created": "2023-02-04T19:30:31", "int_score": 2, "score": 2.40625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0028.json.gz" }
package org.apache.ojb.odmg.shared; import java.io.Serializable; import java.util.Locale; public class TestClassA implements Serializable { private String oid; private String value1; private String value2; private int value3; private Locale locale = Locale.GERMANY; private String boid; private TestClassB b; /** * Gets the value1. * @return Returns a String */ public String getValue1() { return value1; } /** * Sets the value1. * @param value1 The value1 to set */ public void setValue1(String value1) { this.value1 = value1; } /** * Gets the value2. * @return Returns a String */ public String getValue2() { return value2; } /** * Sets the value2. * @param value2 The value2 to set */ public void setValue2(String value2) { this.value2 = value2; } /** * Gets the value3. * @return Returns a int */ public int getValue3() { return value3; } /** * Sets the value3. * @param value3 The value3 to set */ public void setValue3(int value3) { this.value3 = value3; } /** * Gets the b. * @return Returns a TestClassB */ public TestClassB getB() { return b; } /** * Sets the b. * @param b The b to set */ public void setB(TestClassB b) { this.b = b; } /** * Gets the oid. * @return Returns a String */ public String getOid() { return oid; } /** * Sets the oid. * @param oid The oid to set */ public void setOid(String oid) { this.oid = oid; } /** * Gets the bOid. * @return Returns a String */ public String getBoid() { return boid; } /** * Sets the bOid. * @param bOid The bOid to set */ public void setBoid(String boid) { this.boid = boid; } public Locale getLocale() { return locale; } public void setLocale(Locale locale) { this.locale = locale; } }
b8803f8544b3fc7a5a96ca37c1b7d6200d02da7f
{ "blob_id": "b8803f8544b3fc7a5a96ca37c1b7d6200d02da7f", "branch_name": "refs/heads/master", "committer_date": "2015-07-06T19:20:08", "content_id": "00061cab78eeb5c61d40942b68e686f0fcab57fe", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b07169d78f6cf7c7b8647df6ded84c5f7f930880", "extension": "java", "filename": "TestClassA.java", "fork_events_count": 1, "gha_created_at": "2015-06-25T19:26:19", "gha_event_created_at": "2015-06-25T19:26:19", "gha_language": null, "gha_license_id": null, "github_id": 38069413, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 1960, "license": "Apache-2.0", "license_type": "permissive", "path": "/src/test/org/apache/ojb/odmg/shared/TestClassA.java", "provenance": "stack-edu-0029.json.gz:82096", "repo_name": "cniesen/ojb-1.0.4", "revision_date": "2015-07-06T19:20:08", "revision_id": "9a544372f67ce965f662cdc71609dd03683c8f04", "snapshot_id": "6b5a5e4c639aabe914910dd36cfa02b0acda54bb", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/cniesen/ojb-1.0.4/9a544372f67ce965f662cdc71609dd03683c8f04/src/test/org/apache/ojb/odmg/shared/TestClassA.java", "visit_date": "2021-01-22T13:42:29.673511", "added": "2024-11-19T03:09:16.873297+00:00", "created": "2015-07-06T19:20:08", "int_score": 2, "score": 2.390625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0047.json.gz" }
package com.intact.rx.core.cache; import java.time.Duration; import java.util.Optional; import java.util.concurrent.atomic.AtomicReference; import static java.util.Objects.requireNonNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.intact.rx.api.cache.CacheHandle; import com.intact.rx.api.cache.Loaned; import com.intact.rx.api.command.Strategy0; import com.intact.rx.api.command.Strategy1; import com.intact.rx.core.cache.status.AccessStatus; import com.intact.rx.core.cache.strategy.CachePolicyChecker; import com.intact.rx.policy.Lifetime; import com.intact.rx.policy.LoanPolicy; import com.intact.rx.policy.LoanReturnPolicy; import com.intact.rx.policy.Reservation; import com.intact.rx.templates.AtomicLoan; public class LoanedValue<K, V> implements Loaned<V> { private static final Logger log = LoggerFactory.getLogger(LoanedValue.class); private final K key; private final AtomicReference<Lifetime> lifetime; private final Strategy1<Optional<V>, Loaned<V>> returnLoan; private final Strategy0<Optional<V>> cachedValueAccess; private final CacheHandle cacheHandle; private final LoanPolicy loanPolicy; private final AccessStatus accessStatus; private AtomicLoan<V> atomicLoan; public LoanedValue(K key, Strategy0<Optional<V>> cachedValueAccess, Strategy1<Optional<V>, Loaned<V>> returnLoan, CacheHandle cacheHandle, LoanPolicy loanPolicy) { this.key = requireNonNull(key); this.cachedValueAccess = requireNonNull(cachedValueAccess); this.cacheHandle = requireNonNull(cacheHandle); this.loanPolicy = requireNonNull(loanPolicy); this.lifetime = new AtomicReference<>(requireNonNull(loanPolicy.getLifetime())); this.returnLoan = requireNonNull(returnLoan); this.accessStatus = new AccessStatus(); this.accessStatus.read(); } @Override public K key() { return key; } @Override public Optional<V> read() { return CachePolicyChecker.isInLifetime(accessStatus, lifetime.get()) ? computeAtomicLoanIfAbsent() : Optional.empty(); } @Override public Loaned<V> extend() { if (!accessStatus.isExpired()) { atomicLoan = null; accessStatus.read(); } return this; } @Override public Loaned<V> extend(Lifetime newLifetime) { if (!accessStatus.isExpired()) { atomicLoan = null; accessStatus.read(); lifetime.set(newLifetime); } return this; } @Override public boolean isExpired() { return !CachePolicyChecker.isInLifetime(accessStatus, lifetime.get()); } @Override public Lifetime getLifetime() { return lifetime.get(); } @Override public Reservation getReservation() { return loanPolicy.getReservation(); } @Override public Duration getLoanStart() { return Duration.ofMillis(accessStatus.getTime().getTimeSinceRead()); } @Override public Optional<V> returnLoan() { // already returned? if (accessStatus.isExpired()) { return Optional.empty(); } atomicLoan = null; accessStatus.expired(); return returnLoan.perform(this); } @Override public void close() { returnLoan(); } @Override public CacheHandle getCacheHandle() { return cacheHandle; } @Override public LoanReturnPolicy getReturnPolicy() { return loanPolicy.getReturnPolicy(); } @Override public String toString() { return "LoanedValue{" + "key=" + key + ", lifetime=" + lifetime + ", loanPolicy=" + loanPolicy + ", accessStatus=" + accessStatus + '}'; } private Optional<V> computeAtomicLoanIfAbsent() { try { if (atomicLoan != null) { return atomicLoan.isExpired() ? Optional.ofNullable(atomicLoan.get()) : this.atomicLoan.read(); } atomicLoan = new AtomicLoan<>( () -> cachedValueAccess.perform().orElse(null), lifetime.get().duration(), (V v) -> { boolean isExpired = isExpired(); if (isExpired) { returnLoan(); } return !isExpired; }, AtomicLoan.Policy.LoanOnceIfNull ); return Optional.ofNullable(atomicLoan.get()); } catch (Exception e) { log.warn("Exception caught when loaning value. Returning Optional.empty().", e); return Optional.empty(); } } }
6b112e0c17734487b93f44b2c3899770a43fdbce
{ "blob_id": "6b112e0c17734487b93f44b2c3899770a43fdbce", "branch_name": "refs/heads/master", "committer_date": "2020-10-13T06:51:45", "content_id": "d2bc64512db55d95ec40cd8a224121c6d2806714", "detected_licenses": [ "MIT" ], "directory_id": "99362a7f2d640d2b8e569fb61066acdc64b45543", "extension": "java", "filename": "LoanedValue.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 138297335, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 4990, "license": "MIT", "license_type": "permissive", "path": "/rx-command/src/main/java/com/intact/rx/core/cache/LoanedValue.java", "provenance": "stack-edu-0022.json.gz:213071", "repo_name": "intact-software-systems/rx-command", "revision_date": "2020-10-13T06:51:45", "revision_id": "61e87fb993ef6e07431af76d8a19d582a1b5b594", "snapshot_id": "9c3d5982592059a4fb16cd395a24976fe19090dd", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/intact-software-systems/rx-command/61e87fb993ef6e07431af76d8a19d582a1b5b594/rx-command/src/main/java/com/intact/rx/core/cache/LoanedValue.java", "visit_date": "2021-06-26T11:39:19.952512", "added": "2024-11-18T22:53:26.868199+00:00", "created": "2020-10-13T06:51:45", "int_score": 2, "score": 2.21875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0040.json.gz" }
#include "CPlayer.h" #include "CCard.h" #include "CMinion.h" #include "CBasicMinion.h" CPlayer::CPlayer(string mTextFile, string mName): mName(mName),mHealthPoints(PLAYER_STARTING_HP), mpCardsInHand(make_unique<container>(0)), mpCardsOnTable(make_unique<container>(0)), mpDeck(make_unique<CDeck>(mTextFile)) {} CPlayer::~CPlayer() { mpCardsOnTable->clear(); mpCardsInHand->clear(); } void CPlayer::DisplayTable() { container::iterator pCardPtr = (*mpCardsOnTable).begin(); for (pCardPtr = (*mpCardsOnTable).begin(); pCardPtr != mpCardsOnTable->end(); pCardPtr++) { cout << (*pCardPtr)->GetName() << "("; // down-casting, in order to accedss the minions health points CMinion* minion = (CMinion*)(*pCardPtr).get(); cout << minion->GetHealth() << ") "; } cout << endl; } void CPlayer::DisplayHand() { container::iterator pCardPtr; for (pCardPtr = mpCardsInHand->begin(); pCardPtr != mpCardsInHand->end(); pCardPtr++) { cout << (*pCardPtr)->GetName() << endl; } } void CPlayer::DisplayDeck() { this->mpDeck->DisplayDeck(); } void CPlayer::DrawCard(bool startingRound) { // Removing the top card of the deck // and putting it in our hand unique_ptr<CCard> drawnCard = move(mpDeck->Pop()); if (!startingRound) { cout << drawnCard->GetName() << endl; } mpCardsInHand->push_back(move(drawnCard)); drawnCard.release(); } void CPlayer::PlayCard(int randomNumber, CPlayer* enemyPlayer, CPlayer* currentPlayer) { container::iterator pCardPtr = (*mpCardsInHand).begin(); // storing the pointer that points to the card that is about to get popped unique_ptr<CCard> pTempo = move((mpCardsInHand.get())->at(randomNumber)); cout << pTempo->GetName() << endl; // and putting it into the table first // if it is a spell card activate it if (pTempo->GetName() == "Fireball" || pTempo->GetName() == "Lightning" || pTempo->GetName() == "Bless" || pTempo->GetName() == "Sword" || pTempo->GetName() == "Armour") { pTempo->Activate(enemyPlayer, currentPlayer); } else { // else put oit on the table mpCardsOnTable->push_back(move(pTempo)); } // and after remove the card from the player's hand mpCardsInHand->erase((*mpCardsInHand).begin() +randomNumber); } // setters void CPlayer::SetHealthPoints(int hp) { this->mHealthPoints = hp; } // getters int CPlayer::GetNumberOfCardsOnTable() { return GetCardsOnTable()->size(); } int CPlayer::GetHealthPoints() { return this->mHealthPoints; } string CPlayer::GetName() { return mName; } int CPlayer::GetSize(CDeck* mpDeck) { return mpDeck->GetTop(); } CCard* CPlayer::GetSelectedCardFromTable(int position) { return (*mpCardsOnTable).at(position).get(); } CCard* CPlayer::GetSelectedCardFromHand(int position) { return (*mpCardsInHand).at(position).get(); } container* CPlayer::GetCardsInHand() { return mpCardsInHand.get(); } container* CPlayer::GetCardsOnTable() { return mpCardsOnTable.get(); } CDeck* CPlayer::GetDeck() { return this->mpDeck.get(); } // Initialize static members of class CGame int CPlayer::PLAYER_STARTING_HP = 30;
50ecc3d8678e2a8d8be7d9934de78b50b4471ee0
{ "blob_id": "50ecc3d8678e2a8d8be7d9934de78b50b4471ee0", "branch_name": "refs/heads/master", "committer_date": "2021-04-23T05:26:25", "content_id": "097f007920b72564b7bdf849ca2edfe290f1a979", "detected_licenses": [ "MIT" ], "directory_id": "7033990a885b85980d4d140eaa70d0c101a8c70f", "extension": "cpp", "filename": "CPlayer.cpp", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 360650612, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 3040, "license": "MIT", "license_type": "permissive", "path": "/Firebrick/CPlayer.cpp", "provenance": "stack-edu-0005.json.gz:204214", "repo_name": "cchristou3/Firebrick", "revision_date": "2021-04-23T05:26:25", "revision_id": "80d00847eca1a41c1ff3f2854ddb7228beb87764", "snapshot_id": "56d4dce6a7029b0bb89edb3be09cd571bc5f03f4", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/cchristou3/Firebrick/80d00847eca1a41c1ff3f2854ddb7228beb87764/Firebrick/CPlayer.cpp", "visit_date": "2023-04-10T09:11:32.400947", "added": "2024-11-18T23:06:46.966221+00:00", "created": "2021-04-23T05:26:25", "int_score": 3, "score": 2.84375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0023.json.gz" }
class Word(object): """docstring for Word""" def __init__(self, id, content): super(Word, self).__init__() self.content = content self.isUsed = False #true: is used in summary self.id = id self.occurency = 0
40631432302d78b681074de9a0f7a7c3be68b206
{ "blob_id": "40631432302d78b681074de9a0f7a7c3be68b206", "branch_name": "refs/heads/master", "committer_date": "2017-11-20T09:39:21", "content_id": "e2940ee959ef5218b8bc2fa2be0d8c856354522b", "detected_licenses": [ "MIT" ], "directory_id": "008a8e4936fb6ba1e6dab3acabb1ebfbbaea9f02", "extension": "py", "filename": "Word.py", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 110421649, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 223, "license": "MIT", "license_type": "permissive", "path": "/logic/Word.py", "provenance": "stack-edu-0057.json.gz:588880", "repo_name": "niklasschmitz/summy", "revision_date": "2017-11-20T09:39:21", "revision_id": "0001b1adcf85aa37c34eca6d6ecb861cf7f75ed1", "snapshot_id": "d6408d9ca5a9a57a48ddc985ee40d0f16a0ca4e9", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/niklasschmitz/summy/0001b1adcf85aa37c34eca6d6ecb861cf7f75ed1/logic/Word.py", "visit_date": "2021-08-16T20:32:41.202442", "added": "2024-11-18T19:14:54.568799+00:00", "created": "2017-11-20T09:39:21", "int_score": 3, "score": 2.71875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0075.json.gz" }
package com.carcontroller.mobile.businesslogic; import java.util.List; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.content.Intent; import com.carcontroller.mobile.R; import com.carcontroller.mobile.alertdialog.AlertDialogDevicesFound; import com.carcontroller.mobile.bluetooth.BluetoothComunication; import com.carcontroller.mobile.bluetooth.BluetoothManager; import com.carcontroller.mobile.bluetooth.EventsBluetoothReceiver; import com.carcontroller.mobile.businesslogic.IBusinessLogic.OnBluetoothDeviceSelectedListener; import com.carcontroller.mobile.businesslogic.IBusinessLogic.OnConnectionBluetoothListener; import com.carcontroller.mobile.businesslogic.IBusinessLogic.OnDirectionInClinationDeviceListener; import com.carcontroller.mobile.businesslogic.IBusinessLogic.OnSearchBluetoothListener; import com.carcontroller.mobile.task.BluetoothClientTask; import com.carcontroller.mobile.util.OrientationUtil; import com.carcontroller.mobile.util.ToastUtil; /** * * @author Marcus Pimenta * @email mvinicius.pimenta@gmail.com * @date 10:52:00 02/11/2013 */ public class CarControllerBusinessLogic implements OnDirectionInClinationDeviceListener, OnConnectionBluetoothListener, OnBluetoothDeviceSelectedListener, OnSearchBluetoothListener{ private Activity activity; private ToastUtil toastUtil; private OrientationUtil orientationUtil; private BluetoothManager bluetoothManager; private BluetoothComunication bluetoothComunication; private AlertDialogDevicesFound alertDialogDevicesFound; private EventsBluetoothReceiver eventsBluetoothReceiver; public CarControllerBusinessLogic(Activity activity){ this.activity = activity; toastUtil = new ToastUtil(activity); orientationUtil = new OrientationUtil(activity, this); bluetoothManager = new BluetoothManager(); alertDialogDevicesFound = new AlertDialogDevicesFound(activity, this); eventsBluetoothReceiver = new EventsBluetoothReceiver(activity, this); } public void inicializaBluetooth() { if (bluetoothManager.verifySuportedBluetooth()) { if (!bluetoothManager.isEnabledBluetooth()) { Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); activity.startActivityForResult(enableBtIntent, Constants.BT_ACTIVATE); } } else { toastUtil.showToast(activity.getString(R.string.no_support_bluetooth)); activity.finish(); } } public void startFoundDevices() { stopCommucanition(); eventsBluetoothReceiver.showProgress(); bluetoothManager.getBluetoothAdapter().startDiscovery(); } public void stopCommucanition() { if (bluetoothComunication != null) { bluetoothComunication.stopComunication(); } } public void startClient(BluetoothDevice bluetoothDevice) { BluetoothClientTask bluetoothClientTask = new BluetoothClientTask(activity, this); bluetoothClientTask.execute(bluetoothDevice); } public void starCommunication(BluetoothSocket bluetoothSocket) { bluetoothComunication = new BluetoothComunication(activity, bluetoothSocket); bluetoothComunication.start(); } public boolean sendMessage(String buffer) { if (bluetoothComunication != null) { return bluetoothComunication.sendMessageByBluetooth(buffer); } else { return false; } } public void enableRegisterFilter(boolean enable) { if(enable){ eventsBluetoothReceiver.registerFilters(); }else{ eventsBluetoothReceiver.unregisterFilters(); } } public void enableSensor(boolean enable){ if(enable){ orientationUtil.startSensor(); }else{ orientationUtil.stopSensor(); } } @Override public void onBluetoothDeviceSelected(BluetoothDevice bluetoothDevice) { startClient(bluetoothDevice); } @Override public void onConnectionBluetooth(BluetoothSocket bluetoothSocket) { starCommunication(bluetoothSocket); } @Override public void onSearchBluetooth(List<BluetoothDevice> devicesFound) { alertDialogDevicesFound.settingsAlertDialog(devicesFound); } @Override public void onDirectionInClinationDevice(int type) { switch (type) { case Constants.RIGHT: sendMessage(Constants.COMMAND_CAR_RIGHT); break; case Constants.LEFT: sendMessage(Constants.COMMAND_CAR_LEFT); break; } } }
b7d2e7a8d1efe9fcbb1deb768698e8ffb21fdb69
{ "blob_id": "b7d2e7a8d1efe9fcbb1deb768698e8ffb21fdb69", "branch_name": "refs/heads/master", "committer_date": "2013-11-02T20:03:06", "content_id": "79de70aa0c746335da8ba9c31570addaa13446dd", "detected_licenses": [ "Apache-2.0" ], "directory_id": "66c2b286e73a101c791cc81c45235810f78d70f7", "extension": "java", "filename": "CarControllerBusinessLogic.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 4368, "license": "Apache-2.0", "license_type": "permissive", "path": "/Car Controller Mobile/src/com/carcontroller/mobile/businesslogic/CarControllerBusinessLogic.java", "provenance": "stack-edu-0031.json.gz:429290", "repo_name": "marcuspimenta/Car-Controller-Arduino-Android", "revision_date": "2013-11-02T20:03:06", "revision_id": "b5798579f4532b34d31f61723baecd03527b2427", "snapshot_id": "933c40d64ecf5a4a3f79de8298864fd4bc1de258", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/marcuspimenta/Car-Controller-Arduino-Android/b5798579f4532b34d31f61723baecd03527b2427/Car Controller Mobile/src/com/carcontroller/mobile/businesslogic/CarControllerBusinessLogic.java", "visit_date": "2016-09-08T04:57:41.529312", "added": "2024-11-19T01:53:10.123514+00:00", "created": "2013-11-02T20:03:06", "int_score": 2, "score": 2.15625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0049.json.gz" }
package com.brainpg.teddystoy.adapter; import android.app.Activity; import android.content.Intent; import android.support.v4.app.ActivityCompat; import android.support.v4.app.ActivityOptionsCompat; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.brainpg.teddystoy.activity.CoordinatorLayoutActivity; import com.brainpg.teddystoy.activity.CoordinatorLayoutWithTabActivity; import com.brainpg.teddystoy.activity.TabLayoutActivity; import java.util.List; public class RecyclerViewDemoAdapter extends RecyclerView.Adapter<RecyclerViewDemoAdapter.RecyclerViewDemoViewHolder> { private Activity activity; private List<String> dataList; public static class RecyclerViewDemoViewHolder extends RecyclerView.ViewHolder { public RecyclerViewDemoViewHolder(View view) { super(view); textView = (TextView) view; } public TextView textView; } public RecyclerViewDemoAdapter(List<String> list) { if (list == null) { throw new IllegalArgumentException("modelData must not be null"); } this.dataList = list; } public RecyclerViewDemoAdapter(Activity activitiy, List<String> list) { this.activity = activitiy; if (list == null) { throw new IllegalArgumentException("modelData must not be null"); } this.dataList = list; } @Override public int getItemViewType(int position) { int viewType = 0; // add here your booleans or switch() to set viewType at your needed // I.E if (position == 0) viewType = 1; etc. etc. return viewType; } @Override public RecyclerViewDemoViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { View view = LayoutInflater.from(viewGroup.getContext()).inflate(android.R.layout.simple_list_item_1, viewGroup, false); RecyclerViewDemoViewHolder holder = new RecyclerViewDemoViewHolder(view); // do something.... Log.i("RecyclerViewDemoAdapter", "viewType : " + viewType); return holder; } @Override public void onBindViewHolder(final RecyclerViewDemoViewHolder viewHolder, final int position) { viewHolder.textView.setText(dataList.get(position)); viewHolder.textView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent; switch (position % 3) { case 0: intent = new Intent(activity, TabLayoutActivity.class); ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, v, "transitionName" ); ActivityCompat.startActivity(activity, intent, options.toBundle()); // activity.startActivity(intent); break; case 1: intent = new Intent(activity, CoordinatorLayoutActivity.class); activity.startActivity(intent); break; case 2: intent = new Intent(activity, CoordinatorLayoutWithTabActivity.class); activity.startActivity(intent); break; } } }); } @Override public int getItemCount() { return dataList.size(); } }
d4d52de85fcaa3c6d04694a6cb2068aca97a08d7
{ "blob_id": "d4d52de85fcaa3c6d04694a6cb2068aca97a08d7", "branch_name": "refs/heads/master", "committer_date": "2016-06-28T08:57:00", "content_id": "cc7dd34138f22020f140453b59a17d7e21187247", "detected_licenses": [ "MIT" ], "directory_id": "a23bd6ce0776e14686ee542854d939abf49ec5c9", "extension": "java", "filename": "RecyclerViewDemoAdapter.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 3690, "license": "MIT", "license_type": "permissive", "path": "/app/src/main/java/com/brainpg/teddystoy/adapter/RecyclerViewDemoAdapter.java", "provenance": "stack-edu-0031.json.gz:330622", "repo_name": "teddyhong182/AndroidMeterialDesignSample", "revision_date": "2016-06-28T08:57:00", "revision_id": "cf770792821968ea8d58b80f58be70b1dc1e910f", "snapshot_id": "9d8636039d0ebdb2e9d0daedb9e4484628fbac1a", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/teddyhong182/AndroidMeterialDesignSample/cf770792821968ea8d58b80f58be70b1dc1e910f/app/src/main/java/com/brainpg/teddystoy/adapter/RecyclerViewDemoAdapter.java", "visit_date": "2021-06-01T01:13:24.019191", "added": "2024-11-19T00:13:58.100421+00:00", "created": "2016-06-28T08:57:00", "int_score": 2, "score": 2.4375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0049.json.gz" }
package net.studymongolian.mongollibrarydemo; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Gravity; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Spinner; import net.studymongolian.mongollibrary.MongolTextView; public class MongolTextViewActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener { //MongolTextView mTvMatchParent; MongolTextView mTvWrapContent; private static final String[] fontColors = {"BLACK", "BLUE", "RED", "YELLOW"}; private static final String[] fontSizesSP = {"10", "20", "30", "40", "50"}; private static final String[] alignments = {"TOP", "CENTER", "BOTTOM"}; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_mongol_textview); //mTvMatchParent = (MongolTextView) findViewById(R.id.mongol_textview_matchparent); //mTvWrapContent = (MongolTextView) findViewById(R.id.mongol_textview_wrapcontent); // Color choice spinner Spinner colorSpinner = (Spinner) findViewById(R.id.fontcolor_spinner); ArrayAdapter<String> adapterColor = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, fontColors); adapterColor.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); colorSpinner.setAdapter(adapterColor); colorSpinner.setOnItemSelectedListener(this); // Font size spinner Spinner sizeSpinner = (Spinner) findViewById(R.id.fontsize_spinner); ArrayAdapter<String> adapterFontSizes = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, fontSizesSP); adapterFontSizes.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); sizeSpinner.setAdapter(adapterFontSizes); sizeSpinner.setSelection(2); // 30sp sizeSpinner.setOnItemSelectedListener(this); // Alignment choice spinner Spinner alignmentSpinner = (Spinner) findViewById(R.id.alignment_spinner); ArrayAdapter<String> adapterAlignment = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, alignments); adapterAlignment.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); alignmentSpinner.setAdapter(adapterAlignment); alignmentSpinner.setOnItemSelectedListener(this); } public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { // An item was selected. You can retrieve the selected item using // parent.getItemAtPosition(pos) int viewid = parent.getId(); if (viewid == R.id.fontcolor_spinner) { int color = Color.BLACK; String item = String.valueOf(parent.getItemAtPosition(pos)); switch (item) { case "BLUE": color = Color.BLUE; break; case "RED": color = Color.RED; break; case "YELLOW": color = Color.YELLOW; break; } //mTvMatchParent.setTextColor(color); //mTvWrapContent.setTextColor(color); } else if (viewid == R.id.fontsize_spinner) { int size = Integer.parseInt(parent.getSelectedItem().toString()); //mTvMatchParent.setTextSize(size); //mTvWrapContent.setTextSize(size); } else if (viewid == R.id.alignment_spinner) { int gravity = Gravity.TOP; String item = String.valueOf(parent.getItemAtPosition(pos)); switch (item) { case "CENTER": gravity = Gravity.CENTER; break; case "BOTTOM": gravity = Gravity.BOTTOM; break; } //mTvMatchParent.setGravity(gravity); //mTvWrapContent.setGravity(gravity); } } public void onNothingSelected(AdapterView<?> parent) { // Another interface callback } }
23e77343e6d7f96752aca552ac4ffea91a0392e1
{ "blob_id": "23e77343e6d7f96752aca552ac4ffea91a0392e1", "branch_name": "refs/heads/master", "committer_date": "2017-02-23T01:37:16", "content_id": "21ce6ed35c5db95e5c2eb5966e39f0328aeee0a5", "detected_licenses": [ "MIT" ], "directory_id": "d086b2e8e407d4d93d78c3871d34103ff90182a6", "extension": "java", "filename": "MongolTextViewActivity.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 4267, "license": "MIT", "license_type": "permissive", "path": "/demo-app/src/main/java/net/studymongolian/mongollibrarydemo/MongolTextViewActivity.java", "provenance": "stack-edu-0031.json.gz:313169", "repo_name": "terrrrrrgl/mongol-library", "revision_date": "2017-02-23T01:37:16", "revision_id": "d61ee9635cd5dcdedfbeb8518f5c9362f572dd1a", "snapshot_id": "8c8dd81da27458f834cd7833f9e47af8259e35fa", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/terrrrrrgl/mongol-library/d61ee9635cd5dcdedfbeb8518f5c9362f572dd1a/demo-app/src/main/java/net/studymongolian/mongollibrarydemo/MongolTextViewActivity.java", "visit_date": "2021-01-21T06:53:35.331702", "added": "2024-11-19T00:30:27.616262+00:00", "created": "2017-02-23T01:37:16", "int_score": 2, "score": 2.390625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0049.json.gz" }
package com.passenger.android.stockhawk.adapters; import android.content.Context; import android.database.Cursor; import android.graphics.Color; import android.graphics.Typeface; import android.os.Build; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.passenger.android.stockhawk.R; import com.passenger.android.stockhawk.data.QuoteColumns; import com.passenger.android.stockhawk.data.QuoteProvider; import com.passenger.android.stockhawk.interfaces.ItemTouchHelperAdapter; import com.passenger.android.stockhawk.interfaces.ItemTouchHelperViewHolder; import com.passenger.android.stockhawk.utils.Utility; import butterknife.BindView; import butterknife.ButterKnife; import static com.passenger.android.stockhawk.ui.MyStocksActivity.COL_BID_PRICE; import static com.passenger.android.stockhawk.ui.MyStocksActivity.COL_CHANGE; import static com.passenger.android.stockhawk.ui.MyStocksActivity.COL_IS_UP; import static com.passenger.android.stockhawk.ui.MyStocksActivity.COL_PERCENT_CHANGE; import static com.passenger.android.stockhawk.ui.MyStocksActivity.COL_SYMBOL; /** * Created by sam_chordas on 10/6/15. * Credit to skyfishjy gist: * https://gist.github.com/skyfishjy/443b7448f59be978bc59 * for the code structure */ public class QuoteCursorAdapter extends CursorRecyclerViewAdapter<QuoteCursorAdapter.ViewHolder> implements ItemTouchHelperAdapter { private static Context mContext; private static Typeface robotoLight; private boolean isPercent; public QuoteCursorAdapter(Context context, Cursor cursor, View mEmptyView) { super(context, cursor, mEmptyView); mContext = context; } @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { robotoLight = Typeface.createFromAsset(mContext.getAssets(), "fonts/Roboto-Light.ttf"); View itemView = LayoutInflater.from(parent.getContext()) .inflate(R.layout.list_item_quote, parent, false); ViewHolder vh = new ViewHolder(itemView); return vh; } @Override public void onBindViewHolder(final ViewHolder holder, final Cursor cursor) { String symbol = cursor.getString(COL_SYMBOL); String bidPrice = cursor.getString(COL_BID_PRICE); String change; if (Utility.showPercent) { change = cursor.getString(COL_PERCENT_CHANGE); } else { change = cursor.getString(COL_CHANGE); } holder.symbol.setText(symbol); holder.symbol.setContentDescription(mContext.getString(R.string.a11y_stock_symbol, symbol)); holder.itemView.setTag(symbol); holder.itemView.setContentDescription(symbol); holder.bidPrice.setText(bidPrice); holder.bidPrice.setContentDescription(mContext.getString(R.string.a11y_price, bidPrice)); if (cursor.getInt(COL_IS_UP) == 1) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { holder.change.setBackground( mContext.getResources().getDrawable(R.drawable.percent_change_pill_green)); } else { holder.change.setBackgroundDrawable( mContext.getResources().getDrawable(R.drawable.percent_change_pill_green)); } } else { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { holder.change.setBackground( mContext.getResources().getDrawable(R.drawable.percent_change_pill_red)); } else { holder.change.setBackgroundDrawable( mContext.getResources().getDrawable(R.drawable.percent_change_pill_red)); } } holder.change.setText(change); holder.change.setContentDescription(mContext.getString(R.string.a11y_change, change)); } @Override public void onItemDismiss(int position) { Cursor c = getCursor(); c.moveToPosition(position); String symbol = c.getString(c.getColumnIndex(QuoteColumns.SYMBOL)); mContext.getContentResolver().delete(QuoteProvider.Quotes.withSymbol(symbol), null, null); notifyItemRemoved(position); } @Override public int getItemCount() { return super.getItemCount(); } public static class ViewHolder extends RecyclerView.ViewHolder implements ItemTouchHelperViewHolder, View.OnClickListener { @BindView(R.id.stock_symbol) public TextView symbol; @BindView(R.id.bid_price) public TextView bidPrice; @BindView(R.id.change) public TextView change; public ViewHolder(View itemView) { super(itemView); ButterKnife.bind(this, itemView); symbol.setTypeface(robotoLight); } @Override public void onItemSelected() { itemView.setBackgroundColor(Color.LTGRAY); } @Override public void onItemClear() { itemView.setBackgroundColor(0); } @Override public void onClick(View v) { } } }
8e1af36699e04a8a0c66d9b16b80c0eae6d90613
{ "blob_id": "8e1af36699e04a8a0c66d9b16b80c0eae6d90613", "branch_name": "refs/heads/master", "committer_date": "2016-07-28T15:35:42", "content_id": "8a89a87999c47a77593cae72fe7ebb7f24de75f1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ba1e43e25e3b839e041278dad9b1e8a3250fd21b", "extension": "java", "filename": "QuoteCursorAdapter.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 5267, "license": "Apache-2.0", "license_type": "permissive", "path": "/app/src/main/java/com/passenger/android/stockhawk/adapters/QuoteCursorAdapter.java", "provenance": "stack-edu-0027.json.gz:183945", "repo_name": "afcarl/StockHawk", "revision_date": "2016-07-28T15:35:42", "revision_id": "0cd1de462c2fe152be7fd084bbd98ec9240ef829", "snapshot_id": "8cf8f64eae1ef840bb44b9684988425e2296e830", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/afcarl/StockHawk/0cd1de462c2fe152be7fd084bbd98ec9240ef829/app/src/main/java/com/passenger/android/stockhawk/adapters/QuoteCursorAdapter.java", "visit_date": "2020-09-04T00:28:37.020220", "added": "2024-11-18T22:42:15.430454+00:00", "created": "2016-07-28T15:35:42", "int_score": 2, "score": 2.03125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0045.json.gz" }
<!-- Contributing ============================== We would love for you to contribute to MOEDA and help us make this even better! Start reading this [document](https://github.com/thompsonemerson/moeda#contributing) to see it is not difficult as you might have imagined. Code of Conduct ============================== Help us keep MOEDA open and inclusive. Please read and follow our thoughts on [Code of Conduct](http://confcodeofconduct.com/). License ============================== By contributing your code, you agree to license your contribution under the [MIT license](https://github.com/thompsonemerson/moeda#license). --> ### Checklist - [ ] `npm start` and/or `npm test` it worked - [ ] tests and/or benchmarks are included - [ ] documentation is changed or added - [ ] commit message follows commit guidelines Bug fixes and new features should include tests and possibly benchmarks. ### Description of change Tell us what changed, created or fixed. (Don't forget to add the link of the issue or a related pull request.)
6cf46abff5ccf1743a0520be66c3e13d87ab5c5a
{ "blob_id": "6cf46abff5ccf1743a0520be66c3e13d87ab5c5a", "branch_name": "refs/heads/master", "committer_date": "2021-08-11T13:16:07", "content_id": "079cc7f0a4d9b4dde31aca91af311110a1bd62fe", "detected_licenses": [ "MIT" ], "directory_id": "bd468f864666a47f446f797345ac7b553ff3249a", "extension": "md", "filename": "PULL_REQUEST_TEMPLATE.md", "fork_events_count": 31, "gha_created_at": "2016-10-27T16:04:00", "gha_event_created_at": "2023-08-29T16:39:31", "gha_language": "JavaScript", "gha_license_id": "MIT", "github_id": 72124982, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 1035, "license": "MIT", "license_type": "permissive", "path": "/.github/PULL_REQUEST_TEMPLATE.md", "provenance": "stack-edu-markdown-0001.json.gz:310799", "repo_name": "thompsonemerson/moeda", "revision_date": "2021-08-11T13:16:07", "revision_id": "4cf823f79aacca3777962ceb20d49570b18bc7b9", "snapshot_id": "73bb622132e5ac762980cc56635981c7018f3f04", "src_encoding": "UTF-8", "star_events_count": 146, "url": "https://raw.githubusercontent.com/thompsonemerson/moeda/4cf823f79aacca3777962ceb20d49570b18bc7b9/.github/PULL_REQUEST_TEMPLATE.md", "visit_date": "2023-07-07T17:43:51.354890", "added": "2024-11-18T21:41:55.114069+00:00", "created": "2021-08-11T13:16:07", "int_score": 3, "score": 2.671875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0001.json.gz" }
export class Dictionary { id?: string; description: string; explanationEng: string; level: string; type: string; examples: Array<any>; userId: string; constructor(options: any) { if (options.id) { this.id = options.id; } this.description = options.description; this.explanationEng = options.explanation_eng; this.level = options.level; this.type = options.type; this.examples = options.examples; this.userId = options.user_id; } toDocEntries(): any { return { description: this.description, explanation_eng: this.explanationEng, level: this.level, type: this.type, examples: this.examples, user_id: this.userId }; } }
37df33ec6c36d9f0cccf54d4792f6f7a8240f332
{ "blob_id": "37df33ec6c36d9f0cccf54d4792f6f7a8240f332", "branch_name": "refs/heads/master", "committer_date": "2019-03-25T16:34:16", "content_id": "47fb22d152725edde99c5a44e120fbcb099c565d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ea42856312664dad0f7d05946984983ffc8b132f", "extension": "ts", "filename": "dictionary.model.ts", "fork_events_count": 0, "gha_created_at": "2019-02-09T21:12:49", "gha_event_created_at": "2019-03-25T16:34:17", "gha_language": "TypeScript", "gha_license_id": "Apache-2.0", "github_id": 169914303, "is_generated": false, "is_vendor": false, "language": "TypeScript", "length_bytes": 725, "license": "Apache-2.0", "license_type": "permissive", "path": "/src/app/shared/models/dictionary.model.ts", "provenance": "stack-edu-0076.json.gz:73399", "repo_name": "brikendr/ordappen", "revision_date": "2019-03-24T00:43:18", "revision_id": "b5e19ab76fd5d3566249488b5d157b2d82690239", "snapshot_id": "011f93e50107bb254b19a3b8925eec1456f8facd", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/brikendr/ordappen/b5e19ab76fd5d3566249488b5d157b2d82690239/src/app/shared/models/dictionary.model.ts", "visit_date": "2020-04-21T22:31:48.801755", "added": "2024-11-18T20:52:47.505423+00:00", "created": "2019-03-24T00:43:18", "int_score": 3, "score": 2.609375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0094.json.gz" }
package com.zeus.hello.moiveapp; import android.util.Log; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserFactory; import java.io.IOException; import java.io.StringReader; import java.util.ArrayList; import java.util.List; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; /** * Created by zhou on 2017/1/17. */ public class MoiveList { private static final String url="http://gaoqing.la/"; private static final String TAG="MovieLists"; public final static List<MyMovie> list=new ArrayList<MyMovie>(); public final static List<MyMovie> oldlist=new ArrayList<MyMovie>(); public static List<MyMovie> getMoives(){ Log.d(TAG, "getMoives: start....."); String title; String link; String imageLink; String date; String info; oldlist.clear(); oldlist.addAll(list); list.clear(); try { Document doc = Jsoup.connect(url).userAgent("Mozilla").timeout(3000).get(); Elements elements=doc.getElementsByClass("post_hover"); Log.d(TAG, "getMoives: element:"+elements.isEmpty()); for (Element big:elements) { Element a=big.getElementsByTag("a").first(); title=a.attr("title"); Log.d(TAG, "getMoives: 111111111111"+title); link=a.attr("href"); imageLink=a.select("img").first().attr("src"); Element element=big.getElementsByClass("info").first(); date= element.child(0).text(); info=element.child(1).text(); if (!title.isEmpty()){ list.add(new MyMovie(link,title,imageLink,date,info)); } } } catch (IOException e) { Log.d(TAG, "getMoives: error:"+e.getLocalizedMessage()); }finally { return list; } } }
52c8c71304ead65953471f1d536b7e6d60f531b6
{ "blob_id": "52c8c71304ead65953471f1d536b7e6d60f531b6", "branch_name": "refs/heads/master", "committer_date": "2017-04-21T04:24:04", "content_id": "9c64fdba1b77ca42bf4dfb8e69777e6c5ca9b7cd", "detected_licenses": [ "Apache-2.0" ], "directory_id": "62d96029bfb6c0acc48ef754df93d8e4c87abd3e", "extension": "java", "filename": "MoiveList.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 79455622, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 2093, "license": "Apache-2.0", "license_type": "permissive", "path": "/app/src/main/java/com/zeus/hello/moiveapp/MoiveList.java", "provenance": "stack-edu-0030.json.gz:319829", "repo_name": "zzzeus/MoiveApp", "revision_date": "2017-04-21T04:24:03", "revision_id": "6721b289a15e35fb8486022225b8171e93eb1a04", "snapshot_id": "bd4219ac335f338b77f8f094cb4116a60d7fdccd", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/zzzeus/MoiveApp/6721b289a15e35fb8486022225b8171e93eb1a04/app/src/main/java/com/zeus/hello/moiveapp/MoiveList.java", "visit_date": "2021-01-11T20:02:40.082282", "added": "2024-11-19T01:15:26.909570+00:00", "created": "2017-04-21T04:24:03", "int_score": 2, "score": 2.375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0048.json.gz" }
package ytcommands /* Copyright David Thorpe 2015 All Rights Reserved Please see file LICENSE for information on distribution, etc */ import ( "io" "os" "path/filepath" "strings" "github.com/djthorpe/ytapi/ytapi" "github.com/djthorpe/ytapi/ytservice" "google.golang.org/api/youtube/v3" ) //////////////////////////////////////////////////////////////////////////////// // Register caption commands and format func RegisterCaptionCommands() []*ytapi.Command { return []*ytapi.Command{ &ytapi.Command{ Name: "ListCaptionTracks", Description: "List caption tracks for a video", Required: []*ytapi.Flag{&ytapi.FlagVideo}, Setup: RegisterCaptionFormat, Execute: ListCaptionTracks, }, &ytapi.Command{ Name: "UploadCaptionTrack", Description: "Add Caption Track to video", Required: []*ytapi.Flag{&ytapi.FlagVideo, &ytapi.FlagFile, &ytapi.FlagLanguage}, Optional: []*ytapi.Flag{&ytapi.FlagCaptionName, &ytapi.FlagCaptionSync, &ytapi.FlagCaptionDraft}, Setup: RegisterCaptionFormat, Execute: UploadCaptionTrack, }, &ytapi.Command{ Name: "DeleteCaptionTrack", Description: "Delete Caption Track from video", Required: []*ytapi.Flag{&ytapi.FlagCaption}, Execute: DeleteCaptionTrack, }, &ytapi.Command{ Name: "DownloadCaptionTrack", Description: "Download Caption Track from video", Required: []*ytapi.Flag{&ytapi.FlagCaption}, Optional: []*ytapi.Flag{&ytapi.FlagCaptionFormat, &ytapi.FlagLanguage, &ytapi.FlagFile}, Execute: DownloadCaptionTrack, }, } } func RegisterCaptionFormat(values *ytapi.Values, table *ytapi.Table) error { // register parts table.RegisterPart("id", []*ytapi.Flag{ &ytapi.Flag{Name: "caption", Path: "Id", Type: ytapi.FLAG_STRING}, }) table.RegisterPart("snippet", []*ytapi.Flag{ &ytapi.Flag{Name: "video", Path: "Snippet/VideoId", Type: ytapi.FLAG_VIDEO}, &ytapi.Flag{Name: "lastUpdated", Type: ytapi.FLAG_TIME}, &ytapi.Flag{Name: "captiontype", Path: "Snippet/TrackKind", Type: ytapi.FLAG_STRING}, &ytapi.Flag{Name: "language", Type: ytapi.FLAG_LANGUAGE}, &ytapi.Flag{Name: "name", Type: ytapi.FLAG_STRING}, &ytapi.Flag{Name: "draft", Path: "Snippet/IsDraft", Type: ytapi.FLAG_BOOL}, &ytapi.Flag{Name: "sync", Path: "Snippet/IsAutoSynced", Type: ytapi.FLAG_BOOL}, &ytapi.Flag{Name: "audiotype", Path: "Snippet/AudioTrackType", Type: ytapi.FLAG_STRING}, &ytapi.Flag{Name: "captions", Path: "Snippet/IsCC", Type: ytapi.FLAG_BOOL}, &ytapi.Flag{Name: "largetext", Path: "Snippet/IsLarge", Type: ytapi.FLAG_BOOL}, &ytapi.Flag{Name: "easyreader", Path: "Snippet/IsEasyReader", Type: ytapi.FLAG_BOOL}, &ytapi.Flag{Name: "status", Type: ytapi.FLAG_STRING}, &ytapi.Flag{Name: "error", Path: "Snippet/FailureReason", Type: ytapi.FLAG_STRING}, }) // set default columns table.SetColumns([]string{"caption", "name", "video", "language", "draft"}) // success return nil } //////////////////////////////////////////////////////////////////////////////// // List Captions func ListCaptionTracks(service *ytservice.Service, values *ytapi.Values, table *ytapi.Table) error { // Get parameters video := values.GetString(&ytapi.FlagVideo) parts := strings.Join(table.Parts(false), ",") // create call and set parameters call := service.API.Captions.List(parts, video) if service.ServiceAccount { call = call.OnBehalfOfContentOwner(values.GetString(&ytapi.FlagContentOwner)) } // request and response response, err := call.Do(service.CallOptions()...) if err != nil { return err } if err = table.Append(response.Items); err != nil { return err } // Success return nil } func UploadCaptionTrack(service *ytservice.Service, values *ytapi.Values, table *ytapi.Table) error { // Get parameters video := values.GetString(&ytapi.FlagVideo) language := values.GetString(&ytapi.FlagLanguage) parts := strings.Join(table.Parts(false), ",") name := values.GetString(&ytapi.FlagCaptionName) filename := values.GetString(&ytapi.FlagFile) draft := values.GetBool(&ytapi.FlagCaptionDraft) // Interpret name from filename if not set if values.IsSet(&ytapi.FlagCaptionName) == false { name = filepath.Base(filename) } // Create the call call := service.API.Captions.Insert("snippet", &youtube.Caption{ Snippet: &youtube.CaptionSnippet{ VideoId: video, Language: language, Name: name, IsDraft: draft, ForceSendFields: values.SetFields(map[string]*ytapi.Flag{ "IsDraft": &ytapi.FlagCaptionDraft, }), }, }) // Set the call parameters if service.ServiceAccount { call = call.OnBehalfOfContentOwner(values.GetString(&ytapi.FlagContentOwner)) } if values.IsSet(&ytapi.FlagCaptionSync) { call = call.Sync(values.GetBool(&ytapi.FlagCaptionSync)) } // Open the caption file file file, err := os.Open(filename) defer file.Close() if err != nil { return err } // request and response _, err = call.Media(file).Do(service.CallOptions()...) if err != nil { return err } // Success, list all caption tracks call2 := service.API.Captions.List(parts, video) if service.ServiceAccount { call2 = call2.OnBehalfOfContentOwner(values.GetString(&ytapi.FlagContentOwner)) } // request and response response2, err := call2.Do(service.CallOptions()...) if err != nil { return err } if err = table.Append(response2.Items); err != nil { return err } // Success return nil } func DeleteCaptionTrack(service *ytservice.Service, values *ytapi.Values, table *ytapi.Table) error { // Get parameters contentowner := values.GetString(&ytapi.FlagContentOwner) caption := values.GetString(&ytapi.FlagCaption) // Create call, set parameters call := service.API.Captions.Delete(caption) if service.ServiceAccount { call = call.OnBehalfOfContentOwner(contentowner) } // Delete the caption track err := call.Do(service.CallOptions()...) if err != nil { return err } // success return nil } func DownloadCaptionTrack(service *ytservice.Service, values *ytapi.Values, table *ytapi.Table) error { // Get parameters contentowner := values.GetString(&ytapi.FlagContentOwner) caption := values.GetString(&ytapi.FlagCaption) filename := values.GetString(&ytapi.FlagFile) // Create call, set parameters call := service.API.Captions.Download(caption) if service.ServiceAccount { call = call.OnBehalfOfContentOwner(contentowner) } if values.IsSet(&ytapi.FlagLanguage) { call = call.Tlang(values.GetString(&ytapi.FlagLanguage)) } // Set caption download format, either from -format flag or from // the extension of the output filename if values.IsSet(&ytapi.FlagCaptionFormat) { call = call.Tfmt(values.GetString(&ytapi.FlagCaptionFormat)) } else if values.IsSet(&ytapi.FlagFile) { // Try to determine format from file extension as a fallback // filepath.Ext also includes the '.' as the first character ext := filepath.Ext(filename) formats := strings.Split(ytapi.FlagCaptionFormat.Extra, "|") for _, format := range formats { if ext[1:] == format { call = call.Tfmt(format) } } } // Download the caption track response, err := call.Download() if err != nil { return err } defer response.Body.Close() // Output body to file fh := os.Stdout if values.IsSet(&ytapi.FlagFile) { fh, err = os.Create(filename) if err != nil { return err } defer fh.Close() } _, err = io.Copy(fh, response.Body) if err != nil { return err } // success return nil }
80c3ef3ebe4ac16501898f12f8adc3cef2ac717b
{ "blob_id": "80c3ef3ebe4ac16501898f12f8adc3cef2ac717b", "branch_name": "refs/heads/master", "committer_date": "2019-03-03T14:47:42", "content_id": "cc425df95273f9e42a0ecb9a8af3a069ce1d2d63", "detected_licenses": [ "Apache-2.0" ], "directory_id": "facd2cd2c4628e86bc1d4272f235a334ce4003b2", "extension": "go", "filename": "captions.go", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Go", "length_bytes": 7508, "license": "Apache-2.0", "license_type": "permissive", "path": "/ytcommands/captions.go", "provenance": "stack-edu-0016.json.gz:560045", "repo_name": "naveenanagesh/ytapi", "revision_date": "2019-03-03T14:47:42", "revision_id": "ea3c7a716de93e19e04513ad2d57ac60f8fb46db", "snapshot_id": "ffe138287c334041a993e842fc637c24eb5dee4a", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/naveenanagesh/ytapi/ea3c7a716de93e19e04513ad2d57ac60f8fb46db/ytcommands/captions.go", "visit_date": "2020-06-01T07:24:20.842843", "added": "2024-11-18T20:56:46.638092+00:00", "created": "2019-03-03T14:47:42", "int_score": 2, "score": 2.125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0034.json.gz" }
import argparse import os import random import pandas as pd import torch from torch.utils.data import DataLoader from torchvision.transforms import Compose from libs import models from libs.checkpoint import resume, save_checkpoint from libs.class_id_map import get_n_classes from libs.class_weight import get_class_weight, get_pos_weight from libs.config import get_config from libs.dataset import ActionSegmentationDataset, collate_fn from libs.helper import train, validate from libs.loss_fn import ActionSegmentationLoss, BoundaryRegressionLoss from libs.optimizer import get_optimizer from libs.transformer import TempDownSamp, ToTensor def get_arguments() -> argparse.Namespace: """ parse all the arguments from command line inteface return a list of parsed arguments """ parser = argparse.ArgumentParser( description="train a network for action recognition" ) parser.add_argument("config", type=str, help="path of a config file") parser.add_argument( "--seed", type=int, default=0, help="a number used to initialize a pseudorandom number generator.", ) parser.add_argument( "--resume", action="store_true", help="Add --resume option if you start training from checkpoint.", ) return parser.parse_args() def main() -> None: # argparser args = get_arguments() # configuration config = get_config(args.config) result_path = os.path.dirname(args.config) seed = args.seed random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed_all(seed) torch.backends.cudnn.deterministic = True # cpu or cuda device = "cuda" if torch.cuda.is_available() else "cpu" if device == "cuda": torch.backends.cudnn.benchmark = True # Dataloader # Temporal downsampling is applied to only videos in 50Salads downsamp_rate = 2 if config.dataset == "50salads" else 1 train_data = ActionSegmentationDataset( config.dataset, transform=Compose([ToTensor(), TempDownSamp(downsamp_rate)]), mode="trainval" if not config.param_search else "training", split=config.split, dataset_dir=config.dataset_dir, csv_dir=config.csv_dir, ) train_loader = DataLoader( train_data, batch_size=config.batch_size, shuffle=True, num_workers=config.num_workers, drop_last=True if config.batch_size > 1 else False, collate_fn=collate_fn, ) # if you do validation to determine hyperparams if config.param_search: val_data = ActionSegmentationDataset( config.dataset, transform=Compose([ToTensor(), TempDownSamp(downsamp_rate)]), mode="validation", split=config.split, dataset_dir=config.dataset_dir, csv_dir=config.csv_dir, ) val_loader = DataLoader( val_data, batch_size=1, shuffle=False, num_workers=config.num_workers, collate_fn=collate_fn, ) # load model print("---------- Loading Model ----------") n_classes = get_n_classes(config.dataset, dataset_dir=config.dataset_dir) model = models.ActionSegmentRefinementFramework( in_channel=config.in_channel, n_features=config.n_features, n_classes=n_classes, n_stages=config.n_stages, n_layers=config.n_layers, n_stages_asb=config.n_stages_asb, n_stages_brb=config.n_stages_brb, ) # send the model to cuda/cpu model.to(device) optimizer = get_optimizer( config.optimizer, model, config.learning_rate, momentum=config.momentum, dampening=config.dampening, weight_decay=config.weight_decay, nesterov=config.nesterov, ) # resume if you want columns = ["epoch", "lr", "train_loss"] # if you do validation to determine hyperparams if config.param_search: columns += ["val_loss", "cls_acc", "edit"] columns += [ "segment f1s@{}".format(config.iou_thresholds[i]) for i in range(len(config.iou_thresholds)) ] columns += ["bound_acc", "precision", "recall", "bound_f1s"] begin_epoch = 0 best_loss = float("inf") log = pd.DataFrame(columns=columns) best_edit = -999. if args.resume: if os.path.exists(os.path.join(result_path, "checkpoint.pth")): checkpoint = resume(result_path, model, optimizer) begin_epoch, model, optimizer, best_loss = checkpoint log = pd.read_csv(os.path.join(result_path, "log.csv")) print("training will start from {} epoch".format(begin_epoch)) else: print("there is no checkpoint at the result folder") # criterion for loss if config.class_weight: class_weight = get_class_weight( config.dataset, split=config.split, dataset_dir=config.dataset_dir, csv_dir=config.csv_dir, mode="training" if config.param_search else "trainval", ) class_weight = class_weight.to(device) else: class_weight = None criterion_cls = ActionSegmentationLoss( ce=config.ce, focal=config.focal, tmse=config.tmse, gstmse=config.gstmse, weight=class_weight, ignore_index=255, ce_weight=config.ce_weight, focal_weight=config.focal_weight, tmse_weight=config.tmse_weight, gstmse_weight=config.gstmse, ) pos_weight = get_pos_weight( dataset=config.dataset, split=config.split, csv_dir=config.csv_dir, mode="training" if config.param_search else "trainval", ).to(device) criterion_bound = BoundaryRegressionLoss(pos_weight=pos_weight) # train and validate model print("---------- Start training ----------") for epoch in range(begin_epoch, config.max_epoch): # training train_loss = train( train_loader, model, criterion_cls, criterion_bound, config.lambda_b, optimizer, epoch, device, ) # if you do validation to determine hyperparams if config.param_search: ( val_loss, cls_acc, edit_score, segment_f1s, bound_acc, precision, recall, bound_f1s, ) = validate( val_loader, model, criterion_cls, criterion_bound, config.lambda_b, device, config.dataset, config.dataset_dir, config.iou_thresholds, config.boundary_th, config.tolerance, ) # save a model if top1 acc is higher than ever if best_loss > val_loss: best_loss = val_loss torch.save( model.state_dict(), os.path.join(result_path, "best_loss_model.prm"), ) # save checkpoint every epoch save_checkpoint(result_path, epoch, model, optimizer, best_loss) # write logs to dataframe and csv file tmp = [epoch, optimizer.param_groups[0]["lr"], train_loss] # if you do validation to determine hyperparams if config.param_search: tmp += [ val_loss, cls_acc, edit_score, ] tmp += segment_f1s tmp += [ bound_acc, precision, recall, bound_f1s, ] tmp_df = pd.Series(tmp, index=log.columns) log = log.append(tmp_df, ignore_index=True) log.to_csv(os.path.join(result_path, "log.csv"), index=False) if config.param_search: # if you do validation to determine hyperparams print( "epoch: {}\tlr: {:.4f}\ttrain loss: {:.4f}\tval loss: {:.4f}\tval_acc: {:.4f}\tedit: {:.4f}".format( epoch, optimizer.param_groups[0]["lr"], train_loss, val_loss, cls_acc, edit_score, ) ) if edit_score > best_edit: best_edit = edit_score torch.save(model.state_dict(), os.path.join(result_path, 'best_val_edit.prm')) else: print( "epoch: {}\tlr: {:.4f}\ttrain loss: {:.4f}".format( epoch, optimizer.param_groups[0]["lr"], train_loss ) ) if (epoch + 1) % 10 == 0: torch.save(model.state_dict(), os.path.join(result_path, "model_{}.prm".format(epoch+1))) # delete checkpoint os.remove(os.path.join(result_path, "checkpoint.pth")) # save models torch.save(model.state_dict(), os.path.join(result_path, "final_model.prm")) print("Done!") if __name__ == "__main__": main()
fe4089d3a3e8b1f7b727787135b1b49cbd154b9f
{ "blob_id": "fe4089d3a3e8b1f7b727787135b1b49cbd154b9f", "branch_name": "refs/heads/main", "committer_date": "2021-10-28T13:04:45", "content_id": "51aaf2f61392dd89c59c86a0758b0d90ce676e1c", "detected_licenses": [ "MIT" ], "directory_id": "1767232aba61ea15703df6589355f9bae64e22bb", "extension": "py", "filename": "train.py", "fork_events_count": 1, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 416367698, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 9260, "license": "MIT", "license_type": "permissive", "path": "/train.py", "provenance": "stack-edu-0064.json.gz:578227", "repo_name": "ChinaYi/asrf_with_asformer", "revision_date": "2021-10-28T13:04:45", "revision_id": "16a5dba6eeb7220c9dd30b64613972883dcb83ca", "snapshot_id": "73fc1a4019fc4db5b7452767be17e5f8d5611726", "src_encoding": "UTF-8", "star_events_count": 14, "url": "https://raw.githubusercontent.com/ChinaYi/asrf_with_asformer/16a5dba6eeb7220c9dd30b64613972883dcb83ca/train.py", "visit_date": "2023-08-23T05:58:33.541399", "added": "2024-11-19T02:33:01.652861+00:00", "created": "2021-10-28T13:04:45", "int_score": 2, "score": 2.25, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0082.json.gz" }
--- title: "Securing Redis" slug: /securing-redis tags: ["how-to", "security", "redis"] description: "Securing Redis" --- ## Securing Redis on the Internet It's best to start by reading the manual aka RTFM! ### Articles and Sources - [Redis Security](https://redis.io/topics/security) - [DigitalOcean Tutorial](https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04) - [A few things about Redis security](http://antirez.com/news/96) All read up on Redis security? Let's recap! ### Rule #1: Don't Expose Redis to the Public Internet!! On its face this may seem counter-intuitive - RedisLabs runs servers all over the world that are publicly available - why ~~can't~~ shouldn't you? As is true of any SaaS provider (AWS with ElastiCache, RedisLabs, etc) - they have dedicated engineering teams to harden and monitor every aspect of running a database like Redis in the cloud. Most side projects, companies, and individual contributors have neither the time, money, nor desire to devote themselves to hardening and continuously monitoring their publicly exposed databases (be it Redis or some other database for that matter). From the quickstart guide we find: > Note that a Redis exposed to the internet without any security is very simple to exploit, so make sure you understand the above and apply at least a firewalling layer. After the firewalling is in place, try to connect with redis-cli from an external host in order to prove yourself the instance is actually not reachable. One might ask though doesn't `Protected Mode` solve this problem for good? > We expect protected mode to seriously decrease the security issues caused by unprotected Redis instances executed without proper administration, however the system administrator can still ignore the error given by Redis and just disable protected mode or manually bind all the interfaces. By default the `redis.conf` doesn't ship with a secure-by-default configuration. This makes it easy to get started but opens new challenges when deploying services that use Redis on the internet. ### Rule #2: Use AUTH and ACLs Redis Access Control Lists (ACLs) are new in Redis 6.x and give much finer0grained control over how users (as well as your application) interact with Redis. I'd give Redis Lab's post on the topic a read: [Getting Started With Redis 6 ACLs](https://redislabs.com/blog/getting-started-redis-6-access-control-lists-acls/) as well as the `redis.io` docs: [Redis ACLs](https://redis.io/topics/acl) ### Rule #3: Don't commit your redis.conf to git! Redis is easy to configure and use. Not bueno! While testing various git secrets tooling none of these detected `requirepass`: - [gitleaks](https://github.com/zricethezav/gitleaks) - [git-secrets](https://github.com/awslabs/git-secrets) Regardless - its' a bad idea to hard-code secrets into your git repos - especially database passwords!
d9689e5b666362b9cfe462d834a32e32cf1655e1
{ "blob_id": "d9689e5b666362b9cfe462d834a32e32cf1655e1", "branch_name": "refs/heads/main", "committer_date": "2021-05-02T15:34:28", "content_id": "5bfc9b65e9c921666600617f9aef674916665320", "detected_licenses": [ "MIT" ], "directory_id": "abc074132125cefdcaaa336860f5a9fdcf1cb236", "extension": "md", "filename": "index.md", "fork_events_count": 0, "gha_created_at": "2021-04-18T18:50:29", "gha_event_created_at": "2021-06-17T16:30:37", "gha_language": "Go", "gha_license_id": "MIT", "github_id": 359227362, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 3198, "license": "MIT", "license_type": "permissive", "path": "/website/content/securing-redis/index.md", "provenance": "stack-edu-markdown-0012.json.gz:82257", "repo_name": "mikeblum/redispwned", "revision_date": "2021-05-02T14:18:56", "revision_id": "c8fa0a4693221c0b17cd13735df6229890c30724", "snapshot_id": "dfa4528b1a91ada82bbdb0e7d66ca20bfe09efd7", "src_encoding": "UTF-8", "star_events_count": 4, "url": "https://raw.githubusercontent.com/mikeblum/redispwned/c8fa0a4693221c0b17cd13735df6229890c30724/website/content/securing-redis/index.md", "visit_date": "2023-06-21T05:05:05.189087", "added": "2024-11-19T00:54:59.543568+00:00", "created": "2021-05-02T14:18:56", "int_score": 4, "score": 3.75, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0012.json.gz" }
package v02ch6.TreeEditTest; /** @version 1.02 2004-08-21 @author Cay Horstmann */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.tree.*; /** This program demonstrates tree editing. */ public class TreeEditTest { public static void main(String[] args) { JFrame frame = new TreeEditFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } } /** A frame with a tree and buttons to edit the tree. */ class TreeEditFrame extends JFrame { public TreeEditFrame() { setTitle("TreeEditTest"); setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT); // construct tree TreeNode root = makeSampleTree(); model = new DefaultTreeModel(root); tree = new JTree(model); tree.setEditable(true); // add scroll pane with tree JScrollPane scrollPane = new JScrollPane(tree); add(scrollPane, BorderLayout.CENTER); makeButtons(); } public TreeNode makeSampleTree() { DefaultMutableTreeNode root = new DefaultMutableTreeNode("World"); DefaultMutableTreeNode country = new DefaultMutableTreeNode("USA"); root.add(country); DefaultMutableTreeNode state = new DefaultMutableTreeNode("California"); country.add(state); DefaultMutableTreeNode city = new DefaultMutableTreeNode("San Jose"); state.add(city); city = new DefaultMutableTreeNode("San Diego"); state.add(city); state = new DefaultMutableTreeNode("Michigan"); country.add(state); city = new DefaultMutableTreeNode("Ann Arbor"); state.add(city); country = new DefaultMutableTreeNode("Germany"); root.add(country); state = new DefaultMutableTreeNode("Schleswig-Holstein"); country.add(state); city = new DefaultMutableTreeNode("Kiel"); state.add(city); return root; } /** Makes the buttons to add a sibling, add a child, and delete a node. */ public void makeButtons() { JPanel panel = new JPanel(); JButton addSiblingButton = new JButton("Add Sibling"); addSiblingButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); if (selectedNode == null) return; DefaultMutableTreeNode parent = (DefaultMutableTreeNode) selectedNode.getParent(); if (parent == null) return; DefaultMutableTreeNode newNode = new DefaultMutableTreeNode("New"); int selectedIndex = parent.getIndex(selectedNode); model.insertNodeInto(newNode, parent, selectedIndex + 1); // now display new node TreeNode[] nodes = model.getPathToRoot(newNode); TreePath path = new TreePath(nodes); tree.scrollPathToVisible(path); } }); panel.add(addSiblingButton); JButton addChildButton = new JButton("Add Child"); addChildButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); if (selectedNode == null) return; DefaultMutableTreeNode newNode = new DefaultMutableTreeNode("New"); model.insertNodeInto(newNode, selectedNode, selectedNode.getChildCount()); // now display new node TreeNode[] nodes = model.getPathToRoot(newNode); TreePath path = new TreePath(nodes); tree.scrollPathToVisible(path); } }); panel.add(addChildButton); JButton deleteButton = new JButton("Delete"); deleteButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); if (selectedNode != null && selectedNode.getParent() != null) model.removeNodeFromParent(selectedNode); } }); panel.add(deleteButton); add(panel, BorderLayout.SOUTH); } private DefaultTreeModel model; private JTree tree; private static final int DEFAULT_WIDTH = 400; private static final int DEFAULT_HEIGHT = 200; }
026b05bd52b61c39ee0a31420e7b56a4f8381029
{ "blob_id": "026b05bd52b61c39ee0a31420e7b56a4f8381029", "branch_name": "refs/heads/master", "committer_date": "2023-06-30T17:13:48", "content_id": "d8c79d2f7d292b4f168af853fa21f006176281be", "detected_licenses": [ "MIT" ], "directory_id": "58afe8815f26dd6d9703d1cd9131fc7a4bdba09a", "extension": "java", "filename": "TreeEditTest.java", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 138500698, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 4734, "license": "MIT", "license_type": "permissive", "path": "/predavanja/primeri-java-knjiga-horstman-cj2/src/v02ch6/TreeEditTest/TreeEditTest.java", "provenance": "stack-edu-0020.json.gz:332678", "repo_name": "MatfOOP/OOP", "revision_date": "2023-06-30T17:13:48", "revision_id": "98eea2bb90c23973ad80c56dfcba42eaf1757b71", "snapshot_id": "098213709417006ccb13519eea7208d9e6f32900", "src_encoding": "UTF-8", "star_events_count": 7, "url": "https://raw.githubusercontent.com/MatfOOP/OOP/98eea2bb90c23973ad80c56dfcba42eaf1757b71/predavanja/primeri-java-knjiga-horstman-cj2/src/v02ch6/TreeEditTest/TreeEditTest.java", "visit_date": "2023-07-07T01:34:49.955311", "added": "2024-11-19T01:53:09.508911+00:00", "created": "2023-06-30T17:13:48", "int_score": 4, "score": 3.546875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0038.json.gz" }
import * as imgur from 'imgur'; import * as config from 'acm'; const IMGUR_ALBUM_ID = config('files.avatars.imgur.album_id'); const IMGUR_CLIENT_ID = config('files.avatars.imgur.client_id'); const IMGUR_PASSWORD = config('files.avatars.imgur.password'); const IMGUR_USERNAME = config('files.avatars.imgur.username'); export namespace Model { export interface Base { id?: string; link?: string; } export interface ImgurImage extends Base { id: string; link: string; } } export namespace Payload { export interface Base { base64?: string; } export class ImgurImage implements Base { base64: string; constructor(base64: string) { this.base64 = base64; } } } function imgur_upload(base64: string): Promise<Model.ImgurImage> { return new Promise<Model.ImgurImage>((resolve, reject) => { imgur.setCredentials(IMGUR_USERNAME, IMGUR_PASSWORD, IMGUR_CLIENT_ID); imgur.uploadBase64(base64, IMGUR_ALBUM_ID) .then(res => resolve(res.data)) .catch(reject); }); } export function save(payload: Payload.Base): Promise<Model.Base> { if (payload instanceof Payload.ImgurImage) { return imgur_upload(payload.base64); } else { throw new Error('Invalid payload'); } }
3bcaea070825feff4b9193c6ca678fbdbcfd5001
{ "blob_id": "3bcaea070825feff4b9193c6ca678fbdbcfd5001", "branch_name": "refs/heads/master", "committer_date": "2017-12-22T00:06:02", "content_id": "cc90779bdcca7a67020ad1b971cf93bbae4bedfe", "detected_licenses": [ "MIT" ], "directory_id": "8f0c028682c0e248566c282eec7e5b301dfc68e1", "extension": "ts", "filename": "upload.ts", "fork_events_count": 3, "gha_created_at": "2016-04-09T04:50:36", "gha_event_created_at": "2018-04-15T23:04:10", "gha_language": "JavaScript", "gha_license_id": "MIT", "github_id": 55826573, "is_generated": false, "is_vendor": false, "language": "TypeScript", "length_bytes": 1340, "license": "MIT", "license_type": "permissive", "path": "/src/device/upload.ts", "provenance": "stack-edu-0073.json.gz:946179", "repo_name": "consumr-project/cp", "revision_date": "2017-12-22T00:06:02", "revision_id": "899e39c2214ea380658a0aa8742df2064d225e97", "snapshot_id": "83f5946d837240eb9617e063c1ccabfdd9d10b19", "src_encoding": "UTF-8", "star_events_count": 5, "url": "https://raw.githubusercontent.com/consumr-project/cp/899e39c2214ea380658a0aa8742df2064d225e97/src/device/upload.ts", "visit_date": "2021-01-24T10:33:31.081419", "added": "2024-11-18T23:26:40.927984+00:00", "created": "2017-12-22T00:06:02", "int_score": 3, "score": 2.640625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0091.json.gz" }
#include "structures&functions.h" #include "GL\glut.h" #include "Point.h" #include <list> #include <time.h> typedef vector<point*> Vertices; Vertices *ver; vector<point> points; vector<point> convex_points; double w = 10; void draw() { for (Vertices::iterator i = ver->begin(); i != ver->end(); ++i) { glBegin(GL_QUADS); glVertex2f(-1 + 2 * (*i)->x / w - 0.01, -1 + 2 * (*i)->y / w - 0.01); glVertex2f(-1 + 2 * (*i)->x / w + 0.01, -1 + 2 * (*i)->y / w - 0.01); glVertex2f(-1 + 2 * (*i)->x / w + 0.01, -1 + 2 * (*i)->y / w + 0.01); glVertex2f(-1 + 2 * (*i)->x / w - 0.01, -1 + 2 * (*i)->y / w + 0.01); glEnd(); } for (auto i = convex_points.begin(); i != convex_points.end() - 1; i++) { glBegin(GL_LINES); glVertex2f(-1 + 2 * (*i).x / w, -1 + 2 * (*i).y / w); glVertex2f(-1 + 2 * (*(i + 1)).x / w, -1 + 2 * (*(i + 1)).y / w); } auto i = convex_points.begin(); auto j = convex_points.end() - 1; glVertex2f(-1 + 2 * (*i).x / w, -1 + 2 * (*i).y / w); glVertex2f(-1 + 2 * (*j).x / w, -1 + 2 * (*j).y / w); glEnd(); glutSwapBuffers(); } int main(int argc, char **argv) { ver = new Vertices(); srand(time(NULL)); for (int i = 0; i < 10; i++) ver->push_back(new point(w * (double)rand() / (double)RAND_MAX, w * (double)rand() / (double)RAND_MAX)); cout << "\tVertices has been generated. Pls choose method to build linear shell: \n"; cout << "\tPress 1 to use Andrew's and Jarvis' method\n"; cout << "\tPress 2 to use Graham method\n"; cout << "\tPress 3 to use recursive method\n"; glutInit(&argc, argv); //glut's Initialization glutInitDisplayMode(GLUT_SINGLE); // display mode glutInitWindowSize(600, 600); glutInitWindowPosition(200, 20); int j = 0; for (Vertices::iterator i = (*ver).begin(); i != (*ver).end(); i++) { j++; points.push_back(*(*i)); } int choice; cin >> choice; switch (choice) { case 1: glutCreateWindow("Andrew's and Jarvis' method"); cout << "\tAndrew's and Jarvis' algorithm of the linear shell\n"; convex_points = JarvisHull(points); break; case 2: glutCreateWindow("Graham method"); cout << "\tGraham's algorithm of the linear shell\n"; convex_points = GrahamHull(points); break; case 3: glutCreateWindow("Recursive method"); cout << "\tRecursive' algorithm of the linear shell\n"; convex_points = QuickHull(points); break; default: throw (bad_alloc()); break; } cout << "\tCoordinates of edges:\n"; for (auto it = convex_points.begin(); it != convex_points.end(); it++) { cout << "(" << (*it).x << ", " << (*it).y << ")" << endl; } glutDisplayFunc(draw); // Tell GLUT to use the method "display" for rendering glutMainLoop(); // Enter GLUT's main loop system("pause"); return 0; }
4c6ace93bb19e024ca20ce0389d05d49fa538448
{ "blob_id": "4c6ace93bb19e024ca20ce0389d05d49fa538448", "branch_name": "refs/heads/master", "committer_date": "2017-12-11T22:11:09", "content_id": "f5df5d0e4087eaae1d84981f84ee603f4d96b0e1", "detected_licenses": [ "MIT" ], "directory_id": "3ccc3dd1e9929d27ea490d21ffaf8e75bf825081", "extension": "cpp", "filename": "main.cpp", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 113912630, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 2710, "license": "MIT", "license_type": "permissive", "path": "/Voronoi/Triangulation/main.cpp", "provenance": "stack-edu-0004.json.gz:10763", "repo_name": "mayakovskyj/FortunesAlgorithm_and_ConvexHulls", "revision_date": "2017-12-11T22:11:09", "revision_id": "64f39016ec8dd3282bf0939b81a86ae6f50c046e", "snapshot_id": "5e5b08417c9e9c3b7091e76ae1d1ca8405d587e7", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/mayakovskyj/FortunesAlgorithm_and_ConvexHulls/64f39016ec8dd3282bf0939b81a86ae6f50c046e/Voronoi/Triangulation/main.cpp", "visit_date": "2021-08-28T09:45:04.851775", "added": "2024-11-18T21:42:28.782344+00:00", "created": "2017-12-11T22:11:09", "int_score": 3, "score": 2.9375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0022.json.gz" }
package ppgo // 报错行号+7 const TemplateText = `// Generated by github.com/davyxu/protoplus // DO NOT EDIT! package {{.PackageName}} import ( "github.com/davyxu/protoplus/api/golang" "github.com/davyxu/protoplus/api/golang/wire" "unsafe" ) var ( _ *wire.Buffer _ = ppgo.Marshal _ unsafe.Pointer ) {{range $a, $enumobj := .Enums}} type {{.Name}} int32 const ( {{range .Fields}} {{$enumobj.Name}}_{{.Name}} {{$enumobj.Name}} = {{PbTagNumber $enumobj .}} {{end}} ) var ( {{$enumobj.Name}}MapperValueByName = map[string]int32{ {{range .Fields}} "{{.Name}}": {{PbTagNumber $enumobj .}}, {{end}} } {{$enumobj.Name}}MapperNameByValue = map[int32]string{ {{range .Fields}} {{PbTagNumber $enumobj .}}: "{{.Name}}" , {{end}} } ) func (self {{$enumobj.Name}}) String() string { return {{$enumobj.Name}}MapperNameByValue[int32(self)] } {{end}} {{range $a, $obj := .Structs}} {{ObjectLeadingComment .}} type {{.Name}} struct{ {{range .Fields}} {{GoFieldName .}} {{ProtoTypeName .}} {{GoStructTag .}}{{FieldTrailingComment .}} {{end}} } func (self *{{.Name}}) String() string { return ppgo.CompactTextString(self) } func (self *{{.Name}}) Size() (ret int) { {{range .Fields}} {{if IsStructSlice .}} if len(self.{{GoFieldName .}}) > 0 { for _, elm := range self.{{GoFieldName .}} { ret += wire.SizeStruct({{PbTagNumber $obj .}}, elm) } } {{else if IsStruct .}} ret += wire.Size{{CodecName .}}({{PbTagNumber $obj .}}, self.{{GoFieldName .}}) {{else if IsEnum .}} ret += wire.Size{{CodecName .}}({{PbTagNumber $obj .}}, int32(self.{{GoFieldName .}})) {{else if IsEnumSlice .}} ret += wire.Size{{CodecName .}}({{PbTagNumber $obj .}}, *(*[]int32)(unsafe.Pointer(&self.{{GoFieldName .}}))) {{else}} ret += wire.Size{{CodecName .}}({{PbTagNumber $obj .}}, self.{{GoFieldName .}}) {{end}} {{end}} return } func (self *{{.Name}}) Marshal(buffer *wire.Buffer) error { {{range .Fields}} {{if IsStructSlice .}} for _, elm := range self.{{GoFieldName .}} { wire.MarshalStruct(buffer, {{PbTagNumber $obj .}}, elm) } {{else if IsStruct .}} wire.Marshal{{CodecName .}}(buffer, {{PbTagNumber $obj .}}, self.{{GoFieldName .}}) {{else if IsEnum .}} wire.Marshal{{CodecName .}}(buffer, {{PbTagNumber $obj .}}, int32(self.{{GoFieldName .}})) {{else if IsEnumSlice .}} wire.Marshal{{CodecName .}}(buffer, {{PbTagNumber $obj .}}, *(*[]int32)(unsafe.Pointer(&self.{{GoFieldName .}}))) {{else}} wire.Marshal{{CodecName .}}(buffer, {{PbTagNumber $obj .}}, self.{{GoFieldName .}}) {{end}} {{end}} return nil } func (self *{{.Name}}) Unmarshal(buffer *wire.Buffer, fieldIndex uint64, wt wire.WireType) error { switch fieldIndex { {{range .Fields}} case {{PbTagNumber $obj .}}: {{if IsStructSlice .}} var elm {{.Type}} if err := wire.UnmarshalStruct(buffer, wt, &elm); err != nil { return err } else { self.{{GoFieldName .}} = append(self.{{GoFieldName .}}, &elm) return nil }{{else if IsEnum .}} v, err := wire.Unmarshal{{CodecName .}}(buffer, wt) self.{{GoFieldName .}} = {{ProtoTypeName .}}(v) return err {{else if IsStruct .}} var elm {{.Type}} self.{{GoFieldName .}} = &elm return wire.Unmarshal{{CodecName .}}(buffer, wt, self.{{GoFieldName .}}) {{else if IsEnumSlice .}} v, err := wire.Unmarshal{{CodecName .}}(buffer, wt) for _, vv := range v { self.{{GoFieldName .}} = append(self.{{GoFieldName .}}, {{ProtoElementTypeName .}}(vv)) } return err {{else if IsSlice .}} v, err := wire.Unmarshal{{CodecName .}}(buffer, wt) self.{{GoFieldName .}} = append(self.{{GoFieldName .}}, v...) return err {{else}} v, err := wire.Unmarshal{{CodecName .}}(buffer, wt) self.{{GoFieldName .}} = v return err{{end}} {{end}} } return wire.ErrUnknownField } {{end}} ` const RegTemplateText = `// Generated by github.com/davyxu/protoplus package {{.PackageName}} import ( "github.com/davyxu/cellnet/codec" "github.com/davyxu/cellnet/meta" "reflect" ) var ( _ cellmeta.Meta _ cellcodec.CodecRecycler _ reflect.Kind ) func init() { {{range .Structs}} cellmeta.Register(&cellmeta.Meta{ FullName: "{{$.PackageName}}.{{.Name}}", Id: {{StructMsgID .}}, New: func() interface{} { return &{{.Name}}{} }, Type: reflect.TypeOf((*{{.Name}})(nil)).Elem(), Codec: cellcodec.MustGetByName("{{StructCodec .}}"), }) {{end}} } `
dd79301208a5a4eba39b17a93ff4deda5236776d
{ "blob_id": "dd79301208a5a4eba39b17a93ff4deda5236776d", "branch_name": "refs/heads/master", "committer_date": "2023-02-26T13:54:48", "content_id": "04c6509f8b8918beee9becc49e1eeb0a1d739528", "detected_licenses": [ "MIT" ], "directory_id": "d8307bed919b8ac4a116cb9fca513997867d8bff", "extension": "go", "filename": "text.go", "fork_events_count": 23, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 110223754, "is_generated": false, "is_vendor": false, "language": "Go", "length_bytes": 4326, "license": "MIT", "license_type": "permissive", "path": "/gen/ppgo/text.go", "provenance": "stack-edu-0017.json.gz:612603", "repo_name": "davyxu/protoplus", "revision_date": "2023-02-26T13:54:48", "revision_id": "f72ed4fcacc5883ff62e5cc6b790677951a07adf", "snapshot_id": "28f730ad05081ff0195d259b16dc8fb20ab370b5", "src_encoding": "UTF-8", "star_events_count": 44, "url": "https://raw.githubusercontent.com/davyxu/protoplus/f72ed4fcacc5883ff62e5cc6b790677951a07adf/gen/ppgo/text.go", "visit_date": "2023-03-04T02:00:34.167192", "added": "2024-11-19T02:03:59.496502+00:00", "created": "2023-02-26T13:54:48", "int_score": 2, "score": 2.328125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0035.json.gz" }
#!/usr/bin/env python3 TITLE = "Задержаны мошенники, уговаривавшие пенсионеров покупать биткоины" STATEMENT_TEMPLATE = ''' Сегодня в Комсомольске-на-Амуре задержаны двое подозреваемых в мошенничестве. По данным следствия, задержанные приходили к пенсионерам и под видом сотрудников пенсионного фонда убеждали их вложиться в криптовалюту Bitcoin. После этого пенсионеры переводили им деньги и получали от мошенников документ, на котором утверждалось, что на переведённые деньги выполнен вклад в Bitcoin и что с ростом курса криптовалюты будет регулярно увеличиваться пенсия. В ходе обыска на месте задержания сотрудники правоохранительных органов изъяли ноутбук, принадлежащий одному из подозреваемых, однако, к сожалению, не нашли на нём никаких улик. Им лишь удалось выяснить, что подозреваемый пользовался [известным облачным хранилищем](http://storage.contest.qctf.ru). Следователи уже связались с разработчиками этого сервиса, однако те отказались от сотрудничества. *Примечание*: для аутентификации в сервисе нужно использовать логин `{}` и пароль `{}` ''' def generate(context): participant = context['participant'] login = secrets[participant.id % len(secrets)]['login'] password = secrets[participant.id % len(secrets)]['password'] return TaskStatement(TITLE, STATEMENT_TEMPLATE.format(login, password)) secrets = [ { "login": "jwzbdgdj", "flag": "QCTF{VALIDATE_USER_DATA_OKOURHODWN}", "directory": "lqiuijjyqm", "password": "gsgopactwf" }, { "login": "twmbsiev", "flag": "QCTF{VALIDATE_USER_DATA_PHAYRRPGIQ}", "directory": "wreodpvawy", "password": "gmanusubuh" }, { "login": "vwzwpnwg", "flag": "QCTF{VALIDATE_USER_DATA_MMCEZVSLJE}", "directory": "eizuxqkslp", "password": "naockmarxb" }, { "login": "qpfvwdix", "flag": "QCTF{VALIDATE_USER_DATA_VWDDHHHDPR}", "directory": "pokpnlytaq", "password": "idipugaldt" }, { "login": "sfentphi", "flag": "QCTF{VALIDATE_USER_DATA_JALAEVAXWM}", "directory": "tjkcbtqbbo", "password": "wziohagzpi" }, { "login": "csixpebj", "flag": "QCTF{VALIDATE_USER_DATA_UGZDHGFGLG}", "directory": "ssdyhtkigd", "password": "cbikxmjves" }, { "login": "sndfxsyt", "flag": "QCTF{VALIDATE_USER_DATA_CKMZOJIIUU}", "directory": "fwpfjazwik", "password": "shxpmoeypm" }, { "login": "pcrloump", "flag": "QCTF{VALIDATE_USER_DATA_XHLXUYEARU}", "directory": "xnvvilokoz", "password": "yzaolndhys" }, { "login": "qikvulvp", "flag": "QCTF{VALIDATE_USER_DATA_CAGDCJGVDX}", "directory": "rkruousxio", "password": "czldxewnnc" }, { "login": "xekcfonj", "flag": "QCTF{VALIDATE_USER_DATA_RAGFLADBME}", "directory": "wmuiuvqogb", "password": "egqpfgrpjx" }, { "login": "mtawvasd", "flag": "QCTF{VALIDATE_USER_DATA_DSXJAZXWOM}", "directory": "flerfoqvcf", "password": "pgepofqcqx" }, { "login": "twklurxi", "flag": "QCTF{VALIDATE_USER_DATA_TLAYMLJXDY}", "directory": "yymosplwko", "password": "hjgggmbbhc" }, { "login": "wdtotcxh", "flag": "QCTF{VALIDATE_USER_DATA_YUGJTDDIAI}", "directory": "blkrdwdgtg", "password": "bqbzjfndqf" }, { "login": "ztdnutuc", "flag": "QCTF{VALIDATE_USER_DATA_ZBUVGUKIWW}", "directory": "drrbvybabx", "password": "qshqvohovf" }, { "login": "kgindruc", "flag": "QCTF{VALIDATE_USER_DATA_IUKFXDUVPN}", "directory": "xkkncvozmd", "password": "vpmvdvwnow" }, { "login": "idqhtkxu", "flag": "QCTF{VALIDATE_USER_DATA_SXNMSIAIVA}", "directory": "zywtfrjwqg", "password": "rezvoxbtte" }, { "login": "cviiuupz", "flag": "QCTF{VALIDATE_USER_DATA_VMGNAUXYQO}", "directory": "nwwbywpvzb", "password": "jzeuadgklb" }, { "login": "yjymhsbi", "flag": "QCTF{VALIDATE_USER_DATA_GONYFGVYIE}", "directory": "lvlekcetam", "password": "zwbnatbqxz" }, { "login": "npxzotgw", "flag": "QCTF{VALIDATE_USER_DATA_BQRLIOTQNV}", "directory": "mxbgyglfkj", "password": "mnyukzjhht" }, { "login": "hniobvsp", "flag": "QCTF{VALIDATE_USER_DATA_VVQTJPYIDT}", "directory": "uqanngrcic", "password": "vkyqlqqwho" }, { "login": "wpennrrw", "flag": "QCTF{VALIDATE_USER_DATA_DTUFVNGCNZ}", "directory": "wtsoarlhbt", "password": "mhbidwqdql" }, { "login": "agagoyzx", "flag": "QCTF{VALIDATE_USER_DATA_BCSVRHNIVO}", "directory": "vbhnwqdeer", "password": "xohahweufv" }, { "login": "jmrbqats", "flag": "QCTF{VALIDATE_USER_DATA_YSSSNALEHR}", "directory": "hnfxdmtmrn", "password": "kgdrnyhagx" }, { "login": "tlwrffox", "flag": "QCTF{VALIDATE_USER_DATA_BDCEBALCIU}", "directory": "tuusylgqow", "password": "nsozkgsykp" }, { "login": "rqzbgqys", "flag": "QCTF{VALIDATE_USER_DATA_IVURSSKWYA}", "directory": "kdotksihuq", "password": "ymtpmuuoee" }, { "login": "vflougol", "flag": "QCTF{VALIDATE_USER_DATA_SZWYTETYVE}", "directory": "brksagykdf", "password": "btmfixxdem" }, { "login": "ribhrhuh", "flag": "QCTF{VALIDATE_USER_DATA_WCGDNQLKYN}", "directory": "zevorajfjl", "password": "btilsyijvt" }, { "login": "rtcpnjxx", "flag": "QCTF{VALIDATE_USER_DATA_GYMZRGIQPR}", "directory": "zkfzxuelyd", "password": "cnhtefvkkt" }, { "login": "tnqkbmey", "flag": "QCTF{VALIDATE_USER_DATA_MKKUZQXXGF}", "directory": "hpkyeytibj", "password": "lvjroadzku" }, { "login": "fhebxofs", "flag": "QCTF{VALIDATE_USER_DATA_IIUVBCHAMN}", "directory": "reuhdgiwde", "password": "iuuxoiyfga" }, { "login": "wxfybmvt", "flag": "QCTF{VALIDATE_USER_DATA_UIUNPROAJW}", "directory": "dilafsdtkj", "password": "ughxikrjee" }, { "login": "lgulutpx", "flag": "QCTF{VALIDATE_USER_DATA_EFAFZEYQYF}", "directory": "qcnqtmmweu", "password": "pzbyzvctbi" }, { "login": "nfojvdex", "flag": "QCTF{VALIDATE_USER_DATA_WGPPLIXCBP}", "directory": "ssitdnlhrw", "password": "zhpgnjdolb" }, { "login": "lrvwrhao", "flag": "QCTF{VALIDATE_USER_DATA_QCIFNUNCKD}", "directory": "tqxyqacudo", "password": "vffslschet" }, { "login": "pnniiivv", "flag": "QCTF{VALIDATE_USER_DATA_HUXCLAWQGK}", "directory": "vuvvmhvgvn", "password": "ujcscddaha" }, { "login": "sunxtjiu", "flag": "QCTF{VALIDATE_USER_DATA_BRETHDYVSP}", "directory": "pskgpnkorz", "password": "vhblfetsxu" }, { "login": "rxfqhewt", "flag": "QCTF{VALIDATE_USER_DATA_INSZZFFVRJ}", "directory": "mkpfgsasqb", "password": "qewholjfip" }, { "login": "nrzibibq", "flag": "QCTF{VALIDATE_USER_DATA_ZDRWUYNOKP}", "directory": "mxvwscwkby", "password": "ogwkdnxbdh" }, { "login": "vrcghtop", "flag": "QCTF{VALIDATE_USER_DATA_IIZBLJYMBX}", "directory": "nafrpwfwbv", "password": "ihjsxmeykt" }, { "login": "akgzhfzn", "flag": "QCTF{VALIDATE_USER_DATA_LZMRXYOOZS}", "directory": "vacahlthmy", "password": "plftyclery" }, { "login": "agosbkhf", "flag": "QCTF{VALIDATE_USER_DATA_DRSBHLRKVD}", "directory": "fryzgjsham", "password": "cxyaufddso" }, { "login": "trlcdldx", "flag": "QCTF{VALIDATE_USER_DATA_LTCZDNCTZR}", "directory": "fhhtbcyvtn", "password": "ihgxbziswk" }, { "login": "zjacglfa", "flag": "QCTF{VALIDATE_USER_DATA_CBSPARTUNX}", "directory": "dxxnijbifw", "password": "lhmvmivwxk" }, { "login": "coykszok", "flag": "QCTF{VALIDATE_USER_DATA_RYQZHDRTTN}", "directory": "tnitreizqp", "password": "agkekligwr" }, { "login": "genaopya", "flag": "QCTF{VALIDATE_USER_DATA_HVCIANAMFQ}", "directory": "nognygtkot", "password": "yvyqvkoodj" }, { "login": "xjpcqsna", "flag": "QCTF{VALIDATE_USER_DATA_KXXJPSRRJO}", "directory": "tdqlllbyru", "password": "cnnqlqvazc" }, { "login": "tvljbhvj", "flag": "QCTF{VALIDATE_USER_DATA_BHMAEDVZGH}", "directory": "clgwepidgb", "password": "xiskdhmdwj" }, { "login": "lpwehfdj", "flag": "QCTF{VALIDATE_USER_DATA_SBKTXSOUPU}", "directory": "gkxwgcuvfs", "password": "frqyqrtxem" }, { "login": "jvmraiwa", "flag": "QCTF{VALIDATE_USER_DATA_FASXEVRWFY}", "directory": "flzxmmvnwa", "password": "udzgttzkde" }, { "login": "rvjwnive", "flag": "QCTF{VALIDATE_USER_DATA_ERJEKIDEAV}", "directory": "youosqsize", "password": "gurdmlgipn" }, { "login": "thyhskqb", "flag": "QCTF{VALIDATE_USER_DATA_WASRLMBZOZ}", "directory": "honlofqnby", "password": "baklplhqgm" }, { "login": "cuxwpvxn", "flag": "QCTF{VALIDATE_USER_DATA_OYMKGGZVUT}", "directory": "czrhutnayx", "password": "lpulrhzkfv" }, { "login": "prakunby", "flag": "QCTF{VALIDATE_USER_DATA_OTJUTOUFTB}", "directory": "lwzrajixoe", "password": "mqwkdhggnx" }, { "login": "qffzitme", "flag": "QCTF{VALIDATE_USER_DATA_TYJIGLJRYX}", "directory": "cmbtujuqxm", "password": "iztmvddjkm" }, { "login": "fhclilcm", "flag": "QCTF{VALIDATE_USER_DATA_OGPVUDNTNI}", "directory": "hffrweqfrv", "password": "nfyvhtidby" }, { "login": "anjxwzsr", "flag": "QCTF{VALIDATE_USER_DATA_GNBQECCNKJ}", "directory": "xrgipwktny", "password": "vjjnqddmzj" }, { "login": "oskpshll", "flag": "QCTF{VALIDATE_USER_DATA_VOUNVDIZPC}", "directory": "vezjzxjwwu", "password": "wqjhdkmohm" }, { "login": "zgntidhw", "flag": "QCTF{VALIDATE_USER_DATA_NBTIERQHEZ}", "directory": "avjttwwczt", "password": "vsmmdbchwk" }, { "login": "simxmoxw", "flag": "QCTF{VALIDATE_USER_DATA_SBXXDSBHNA}", "directory": "gsmyvziuaj", "password": "pjxgmgroxe" }, { "login": "kpeludtd", "flag": "QCTF{VALIDATE_USER_DATA_EPRIGPBKBH}", "directory": "eamqwxntxu", "password": "ypvkuraovt" }, { "login": "wzawuwsy", "flag": "QCTF{VALIDATE_USER_DATA_JUPDSPFXZP}", "directory": "gtitfddqdh", "password": "fseqbqgdzd" }, { "login": "latjlbbr", "flag": "QCTF{VALIDATE_USER_DATA_BSHQKSDIVI}", "directory": "ieclpdkagv", "password": "ulznjctlou" }, { "login": "moysdqxj", "flag": "QCTF{VALIDATE_USER_DATA_MFCMWHTDQJ}", "directory": "unydvjdgdt", "password": "oivlsuwfzr" }, { "login": "bopurnsv", "flag": "QCTF{VALIDATE_USER_DATA_XVTTAFDOUR}", "directory": "tbfhijgwwv", "password": "cmisclomzb" }, { "login": "fwnpntga", "flag": "QCTF{VALIDATE_USER_DATA_ONWETNKUDJ}", "directory": "lkjldpkalw", "password": "dxpftcmaqk" }, { "login": "cdqtovvv", "flag": "QCTF{VALIDATE_USER_DATA_BFYXOPQNXS}", "directory": "hsvzksnsrf", "password": "qekzbaxcmm" }, { "login": "isshpkwq", "flag": "QCTF{VALIDATE_USER_DATA_EMVVXUMLRX}", "directory": "bgquasjazb", "password": "exwioqqyge" }, { "login": "nirzulou", "flag": "QCTF{VALIDATE_USER_DATA_LCNOLYGSCR}", "directory": "sndfwydpdy", "password": "wjuqkcoenn" }, { "login": "ddfigacr", "flag": "QCTF{VALIDATE_USER_DATA_DYNOPJDORU}", "directory": "piqlgldmcf", "password": "mkargmpvvi" }, { "login": "wcypvuyj", "flag": "QCTF{VALIDATE_USER_DATA_GYMNLZRYKP}", "directory": "blakdcfigq", "password": "bnicpyyjmy" }, { "login": "ceczuwha", "flag": "QCTF{VALIDATE_USER_DATA_HIWOBAUHFN}", "directory": "iqcsoauvhy", "password": "wcfwxjvdka" }, { "login": "dylwppar", "flag": "QCTF{VALIDATE_USER_DATA_NHQVDACZHR}", "directory": "jcmkikwzha", "password": "sjkbupqrwg" }, { "login": "myliedas", "flag": "QCTF{VALIDATE_USER_DATA_MKCKMYZXHO}", "directory": "kiobgbkdbf", "password": "ygfqvbsrpi" }, { "login": "fanuacjr", "flag": "QCTF{VALIDATE_USER_DATA_GYLIXINTMH}", "directory": "nybdkjezot", "password": "huaybykbbm" }, { "login": "dionkven", "flag": "QCTF{VALIDATE_USER_DATA_JBHVAEYCEY}", "directory": "ikkdyiwsph", "password": "qtbxfeozay" }, { "login": "fgjssyrw", "flag": "QCTF{VALIDATE_USER_DATA_YUKSHXXPIQ}", "directory": "sgzhnrsaqk", "password": "uedplhwizh" }, { "login": "execopcm", "flag": "QCTF{VALIDATE_USER_DATA_MVJKUJTABV}", "directory": "znvgneozkr", "password": "vpvfzwgymj" }, { "login": "wxbkefdr", "flag": "QCTF{VALIDATE_USER_DATA_ZVSPOVGAZH}", "directory": "drezkfffel", "password": "zpvwvpatev" }, { "login": "gfbajdmu", "flag": "QCTF{VALIDATE_USER_DATA_TBAFXJIXGO}", "directory": "vngmnrkmjq", "password": "cdvvdbyysz" }, { "login": "fjrzowza", "flag": "QCTF{VALIDATE_USER_DATA_VHUEQLORYM}", "directory": "uuyfepudze", "password": "otqmixmzxt" }, { "login": "mcsuorci", "flag": "QCTF{VALIDATE_USER_DATA_RCROCQFFAP}", "directory": "uybdicwdaa", "password": "igefcemnmt" }, { "login": "sbsbniys", "flag": "QCTF{VALIDATE_USER_DATA_XTVOPVDPPV}", "directory": "gwqtfrefgi", "password": "oirxiflrvv" }, { "login": "dkqhqosp", "flag": "QCTF{VALIDATE_USER_DATA_OVZDAFULZS}", "directory": "jbeobhrhrk", "password": "lndjwrxbet" }, { "login": "kntuzmdu", "flag": "QCTF{VALIDATE_USER_DATA_BGNNFWGQTE}", "directory": "hdbgwreywq", "password": "buamngtvhy" }, { "login": "serrngze", "flag": "QCTF{VALIDATE_USER_DATA_VMLHHOMDIN}", "directory": "vbuehmtuzt", "password": "zywzeuiagj" }, { "login": "sywhwxfr", "flag": "QCTF{VALIDATE_USER_DATA_VVWBTXRNLQ}", "directory": "qqvnndyozp", "password": "iiivhbrroy" }, { "login": "tgoyfwpb", "flag": "QCTF{VALIDATE_USER_DATA_EWMEOUTQUG}", "directory": "cmsxdbdzna", "password": "wzpdbfyzqj" }, { "login": "fcobidct", "flag": "QCTF{VALIDATE_USER_DATA_TLUDBKALJC}", "directory": "cbvieabzpl", "password": "pzgigkcywd" }, { "login": "ntqgasqv", "flag": "QCTF{VALIDATE_USER_DATA_PJCHFAVFIK}", "directory": "sfdjvpwknf", "password": "whccachofm" }, { "login": "kdvnctsc", "flag": "QCTF{VALIDATE_USER_DATA_CHQOITWJNE}", "directory": "vxsbfhshzi", "password": "glpelfccwv" }, { "login": "mincfcrg", "flag": "QCTF{VALIDATE_USER_DATA_BNPEWJQTDJ}", "directory": "mmsmccbucb", "password": "yvhpzexpaf" }, { "login": "piklxlxb", "flag": "QCTF{VALIDATE_USER_DATA_GADRVOMAJP}", "directory": "viildshtrc", "password": "wmbotwmrsg" }, { "login": "jzpzfrej", "flag": "QCTF{VALIDATE_USER_DATA_GQDNRBRMIJ}", "directory": "unmmytqtoo", "password": "dyrklrocqq" }, { "login": "qkzzsvhc", "flag": "QCTF{VALIDATE_USER_DATA_MKQSZOHYDL}", "directory": "bvigzkpkmv", "password": "gmevzfzeud" }, { "login": "uteccfjm", "flag": "QCTF{VALIDATE_USER_DATA_FOFDVBFBNP}", "directory": "dzycqtfkgn", "password": "jlxuixfgri" }, { "login": "jikpycol", "flag": "QCTF{VALIDATE_USER_DATA_BBMAZJBAON}", "directory": "xhzuiletnd", "password": "pqlirwufrc" }, { "login": "hoqwwtvm", "flag": "QCTF{VALIDATE_USER_DATA_HGTZOAQXEJ}", "directory": "blaqofkobr", "password": "naqkvtprvc" }, { "login": "nopjvlnu", "flag": "QCTF{VALIDATE_USER_DATA_WGZQRWSGYB}", "directory": "xhsgjtebrz", "password": "vjisskhrzx" }, { "login": "ogiuldtq", "flag": "QCTF{VALIDATE_USER_DATA_CCGXXKTIYJ}", "directory": "sqlkltotkw", "password": "emcbthcoxn" }, { "login": "tazvjizv", "flag": "QCTF{VALIDATE_USER_DATA_MJTGQMJDPQ}", "directory": "nxunqezxqv", "password": "oplvzgyyfc" }, { "login": "pyvjntbh", "flag": "QCTF{VALIDATE_USER_DATA_OZTICHXAQL}", "directory": "hfxuchjuvc", "password": "xvdvnxorea" }, { "login": "nwbywyly", "flag": "QCTF{VALIDATE_USER_DATA_CHFNNYYMMR}", "directory": "neuqnmqpkc", "password": "hjrldrhewk" }, { "login": "tgytrsau", "flag": "QCTF{VALIDATE_USER_DATA_IUTOQANLEQ}", "directory": "zobkezipta", "password": "qgcpzyisbj" }, { "login": "miglqvsn", "flag": "QCTF{VALIDATE_USER_DATA_AAIUUXIBQJ}", "directory": "vdyxfokobg", "password": "eggscdtiua" }, { "login": "gomscoqw", "flag": "QCTF{VALIDATE_USER_DATA_PPNSDJZIWU}", "directory": "bcnscbgfci", "password": "iusksskubr" }, { "login": "taubikkn", "flag": "QCTF{VALIDATE_USER_DATA_CBFLXVSDRX}", "directory": "anhulabxjr", "password": "bsggjrbzve" }, { "login": "sdosxjxp", "flag": "QCTF{VALIDATE_USER_DATA_TGTEEFHBHH}", "directory": "kjwsfyakwi", "password": "ikrnxxvbdk" }, { "login": "khbwyovv", "flag": "QCTF{VALIDATE_USER_DATA_LMUCXNHLZY}", "directory": "cpymatgtrs", "password": "lsljyxaeyq" }, { "login": "siqlitzi", "flag": "QCTF{VALIDATE_USER_DATA_JZOWWJEXRS}", "directory": "ictnkndmuc", "password": "jiiclskool" }, { "login": "vfccdbmp", "flag": "QCTF{VALIDATE_USER_DATA_GEZLNBOZFH}", "directory": "icwxyddulr", "password": "pjgsrpyhrp" }, { "login": "uhjxtkph", "flag": "QCTF{VALIDATE_USER_DATA_EUZTYGCHGE}", "directory": "uqzqxmtskv", "password": "woakpsnrbw" }, { "login": "paspphxn", "flag": "QCTF{VALIDATE_USER_DATA_FVNJUJKZIZ}", "directory": "dqzytyjgkl", "password": "kuegewisxb" }, { "login": "whmpkowy", "flag": "QCTF{VALIDATE_USER_DATA_DELTQXJMHM}", "directory": "zdldwqttij", "password": "gxoqaqzyqi" }, { "login": "xqzzjozh", "flag": "QCTF{VALIDATE_USER_DATA_SVLTLKWCYY}", "directory": "jzcrjsjxzi", "password": "vwgqybwplk" }, { "login": "ctjmqnde", "flag": "QCTF{VALIDATE_USER_DATA_IKLTYQQQEI}", "directory": "ounmbcrhea", "password": "fvzwimjxao" }, { "login": "vphtcstq", "flag": "QCTF{VALIDATE_USER_DATA_NSJMETTMVU}", "directory": "pfljxzcihr", "password": "zwqylwolre" }, { "login": "qmoxicgv", "flag": "QCTF{VALIDATE_USER_DATA_CFJQLCGRXR}", "directory": "bhfeabjsdu", "password": "dizztqfavr" }, { "login": "xgszendc", "flag": "QCTF{VALIDATE_USER_DATA_GLSBLHNANJ}", "directory": "dvjqhmohtg", "password": "oqpuqyqwlc" }, { "login": "gurodmpy", "flag": "QCTF{VALIDATE_USER_DATA_HJJHVLVBWF}", "directory": "jfuugibrmz", "password": "nrbcsxspdh" }, { "login": "inaovwlv", "flag": "QCTF{VALIDATE_USER_DATA_NKTKQZDNLN}", "directory": "tbtaniugnp", "password": "dovrzfskvi" }, { "login": "mhvqygiq", "flag": "QCTF{VALIDATE_USER_DATA_QMAFJMZXCA}", "directory": "jhfvddylap", "password": "rhmoxrjivk" }, { "login": "evyxqmro", "flag": "QCTF{VALIDATE_USER_DATA_FVJOAVDHBN}", "directory": "zxnrdvuzoz", "password": "ehbxneytoz" }, { "login": "ofrwcgcm", "flag": "QCTF{VALIDATE_USER_DATA_DSLWJICEXD}", "directory": "ipyuhqkquq", "password": "uroxpgjxqu" }, { "login": "akweolsi", "flag": "QCTF{VALIDATE_USER_DATA_YFNBYHSPEM}", "directory": "wdwdceecyc", "password": "fwgihmypat" }, { "login": "gxccdjrj", "flag": "QCTF{VALIDATE_USER_DATA_CKNUEMZDUA}", "directory": "gqdtsapmsr", "password": "qighlsesug" }, { "login": "mlrzcgbu", "flag": "QCTF{VALIDATE_USER_DATA_ITYRHCFMKW}", "directory": "tnhnakkgph", "password": "rvnvjacwcu" }, { "login": "ctnmhzrs", "flag": "QCTF{VALIDATE_USER_DATA_CEEYQVMDIC}", "directory": "mqaztsifmz", "password": "ealwtsmrgw" }, { "login": "gbtfgdjj", "flag": "QCTF{VALIDATE_USER_DATA_AQITSJEFPS}", "directory": "heqwsiidgd", "password": "vqclvdicqj" }, { "login": "obvcubpa", "flag": "QCTF{VALIDATE_USER_DATA_KTMDFXCGRK}", "directory": "zyeoybtxza", "password": "iahnzhsosk" }, { "login": "tzsbywdb", "flag": "QCTF{VALIDATE_USER_DATA_HEUUJIMQDJ}", "directory": "iaqunfjncv", "password": "cbattjhgvc" }, { "login": "ufqjircd", "flag": "QCTF{VALIDATE_USER_DATA_DBYTABEUMM}", "directory": "ovbrukymdn", "password": "vnlvompwzt" }, { "login": "nfqmrila", "flag": "QCTF{VALIDATE_USER_DATA_VOCFBFZHEC}", "directory": "spqvmvsesq", "password": "qjliptvpyp" }, { "login": "weunrbfj", "flag": "QCTF{VALIDATE_USER_DATA_KCSOBIQDQN}", "directory": "lugbtmdqwp", "password": "uxbjtqprxt" }, { "login": "cwmpqshp", "flag": "QCTF{VALIDATE_USER_DATA_XKIYEAYQOK}", "directory": "padoquoidi", "password": "zmposubobq" }, { "login": "sisfxilq", "flag": "QCTF{VALIDATE_USER_DATA_OQGBFGCCUG}", "directory": "siakddyflo", "password": "ijaciozyla" }, { "login": "dmmmabds", "flag": "QCTF{VALIDATE_USER_DATA_QKKOXOUMOI}", "directory": "gccuxjizol", "password": "luqygpmssh" }, { "login": "jzoztlja", "flag": "QCTF{VALIDATE_USER_DATA_BZCAUOIPRQ}", "directory": "ycnelmokuz", "password": "yhxwqozeuk" }, { "login": "ptkwouir", "flag": "QCTF{VALIDATE_USER_DATA_QVEVJDDJDT}", "directory": "kmoaypuecj", "password": "fqvoysxuzg" }, { "login": "tkjsquzt", "flag": "QCTF{VALIDATE_USER_DATA_PUNDBXLFXE}", "directory": "ylipazpmsx", "password": "qkxweeqbhx" }, { "login": "nacexjdw", "flag": "QCTF{VALIDATE_USER_DATA_CFKYOBPBOL}", "directory": "lrajimxuco", "password": "gkulzpsxlx" }, { "login": "jzdoouan", "flag": "QCTF{VALIDATE_USER_DATA_WYZTVROOGJ}", "directory": "fdsueunqjt", "password": "pwkdlgvfew" }, { "login": "fmhbwvhs", "flag": "QCTF{VALIDATE_USER_DATA_GBKZWDIHPM}", "directory": "nzsqycafjn", "password": "qnlbtxkvun" }, { "login": "wdpqauhd", "flag": "QCTF{VALIDATE_USER_DATA_CKZZGZPOUY}", "directory": "maftzkauka", "password": "vnfnnleodt" }, { "login": "guwzfspf", "flag": "QCTF{VALIDATE_USER_DATA_SXRLHLZXZP}", "directory": "tdxfxnucma", "password": "vecbzkwnxm" }, { "login": "ghfmdhmb", "flag": "QCTF{VALIDATE_USER_DATA_SPSFWIXRRP}", "directory": "rzhechzuuq", "password": "hprfgveguj" }, { "login": "wrvxscni", "flag": "QCTF{VALIDATE_USER_DATA_NMWVZDETEH}", "directory": "ecpqlovuki", "password": "mdrmtvlugc" }, { "login": "kkjmleiq", "flag": "QCTF{VALIDATE_USER_DATA_MXVEYXNUOJ}", "directory": "ltoqwdckji", "password": "uemsegjblh" }, { "login": "rqtazshj", "flag": "QCTF{VALIDATE_USER_DATA_BLMKNZORKJ}", "directory": "srqozcyakp", "password": "gtblwuvlbf" }, { "login": "hwpveltg", "flag": "QCTF{VALIDATE_USER_DATA_BAAYTUZHGZ}", "directory": "rkpfyogsky", "password": "ffpfughfxp" }, { "login": "pyjqnvjb", "flag": "QCTF{VALIDATE_USER_DATA_JRZYGVSLJQ}", "directory": "mkqepweodt", "password": "hoebdqvsun" }, { "login": "hpqroapk", "flag": "QCTF{VALIDATE_USER_DATA_ZJBBPZIAUH}", "directory": "rxsqwnmyzc", "password": "hylsrtkawe" }, { "login": "ylomremi", "flag": "QCTF{VALIDATE_USER_DATA_EJDZPYAXHS}", "directory": "ucpnodyedf", "password": "cefoogjqlq" }, { "login": "iznpwptf", "flag": "QCTF{VALIDATE_USER_DATA_FSGKTCJYRT}", "directory": "qdobahdkrx", "password": "djedbwsund" }, { "login": "vcfeoiej", "flag": "QCTF{VALIDATE_USER_DATA_ZIRQWFPNXJ}", "directory": "ffyizyuwym", "password": "qwmkonbvtt" }, { "login": "haxwqbrv", "flag": "QCTF{VALIDATE_USER_DATA_EMVTYKUPVD}", "directory": "hoznwqhgsx", "password": "ryifcxjmaq" }, { "login": "kciykkiv", "flag": "QCTF{VALIDATE_USER_DATA_STGBXVLUJR}", "directory": "rorsuyeuhl", "password": "ydhygnodlq" }, { "login": "bowbjusz", "flag": "QCTF{VALIDATE_USER_DATA_BSQMYDNOEH}", "directory": "sqwnpzqiox", "password": "izhtprjxdm" }, { "login": "fwadzkoy", "flag": "QCTF{VALIDATE_USER_DATA_TWSCZDYDNS}", "directory": "odjklkzlgt", "password": "ltysdjhisf" }, { "login": "kbmzhivv", "flag": "QCTF{VALIDATE_USER_DATA_QZUQPZPGNW}", "directory": "zrrsatnahp", "password": "xxtnbrphds" }, { "login": "zvvmxuga", "flag": "QCTF{VALIDATE_USER_DATA_YKKTTLVHWV}", "directory": "yegarbpdzm", "password": "xjldostwda" }, { "login": "vesumpot", "flag": "QCTF{VALIDATE_USER_DATA_JMTBPFPXOZ}", "directory": "hazycnsejs", "password": "rgxyvdvagc" }, { "login": "xhvsjncl", "flag": "QCTF{VALIDATE_USER_DATA_TWPINPOZYE}", "directory": "loyymhjula", "password": "muxlydapyr" }, { "login": "ltsrllhh", "flag": "QCTF{VALIDATE_USER_DATA_DDDRIWCCDC}", "directory": "wufnpbpmau", "password": "odibovetjs" }, { "login": "lgbnwgbu", "flag": "QCTF{VALIDATE_USER_DATA_FANNSGRAAC}", "directory": "dseplwvweb", "password": "uuerivwynt" }, { "login": "twphwajd", "flag": "QCTF{VALIDATE_USER_DATA_KKOCKMCPLB}", "directory": "uxrjxgvxni", "password": "dendklvgph" }, { "login": "sjwpspmi", "flag": "QCTF{VALIDATE_USER_DATA_VMXJZLJWRQ}", "directory": "senzsrqgmp", "password": "jduzyybibr" }, { "login": "uwdlsowq", "flag": "QCTF{VALIDATE_USER_DATA_KIRGURTHSH}", "directory": "wyansruear", "password": "uetasztohm" }, { "login": "ypjqcmwq", "flag": "QCTF{VALIDATE_USER_DATA_KPWEEQSOCV}", "directory": "oqkkwwngmo", "password": "fzokfphpjc" }, { "login": "gwyuxtmc", "flag": "QCTF{VALIDATE_USER_DATA_IAIEPWOOEL}", "directory": "njycpsdymd", "password": "ugxgvwboip" }, { "login": "glwpngxw", "flag": "QCTF{VALIDATE_USER_DATA_YRRSAXDSRJ}", "directory": "dxmhuouibp", "password": "epfjvavacs" }, { "login": "paogzvyu", "flag": "QCTF{VALIDATE_USER_DATA_XGSVLHYIZW}", "directory": "zpqwoozhjt", "password": "zqbriqdzlh" }, { "login": "ghzmqkbm", "flag": "QCTF{VALIDATE_USER_DATA_DFXOHCBRDG}", "directory": "zwmvataxhx", "password": "ganbqeszgg" }, { "login": "eawizbix", "flag": "QCTF{VALIDATE_USER_DATA_QUCMIHWCXC}", "directory": "klmpbdftlp", "password": "tysoiunwbz" }, { "login": "hjqhehim", "flag": "QCTF{VALIDATE_USER_DATA_ZCMCSMDZXL}", "directory": "agqhnpgsvj", "password": "vcooievcnp" }, { "login": "mewidugi", "flag": "QCTF{VALIDATE_USER_DATA_KACZFJMUIL}", "directory": "tscbnvzeaj", "password": "kldaseaexd" }, { "login": "utwncqmj", "flag": "QCTF{VALIDATE_USER_DATA_NERDYKDAYS}", "directory": "bqsylmlhjf", "password": "qfcvuxiffy" }, { "login": "dmhmppny", "flag": "QCTF{VALIDATE_USER_DATA_ZREPWLAHKK}", "directory": "yrivhxddcf", "password": "mzsucyvyxo" }, { "login": "cgwszrud", "flag": "QCTF{VALIDATE_USER_DATA_HWGFVWJAKH}", "directory": "zktqvcxaet", "password": "vfratzwvyi" }, { "login": "ehursznz", "flag": "QCTF{VALIDATE_USER_DATA_HWMUTLTGPR}", "directory": "bzhadognin", "password": "nwjmzqgtws" }, { "login": "eyvxzlcn", "flag": "QCTF{VALIDATE_USER_DATA_TIBRGESBJY}", "directory": "hkgyavqhkq", "password": "husasuhxsy" }, { "login": "kfjzhqic", "flag": "QCTF{VALIDATE_USER_DATA_EQCXCWPMYB}", "directory": "hxilcwrhfe", "password": "amychheznt" }, { "login": "jpwdpqwz", "flag": "QCTF{VALIDATE_USER_DATA_RJNBTISHNQ}", "directory": "cbxtajyujd", "password": "dnmvfqsoqd" }, { "login": "iqpryzrh", "flag": "QCTF{VALIDATE_USER_DATA_OZYNICFIFZ}", "directory": "qnpsvacasq", "password": "jyidpkwpbn" }, { "login": "ijzxlzro", "flag": "QCTF{VALIDATE_USER_DATA_SCJFRPCQHF}", "directory": "crxbvcgjuu", "password": "zrinykgzna" }, { "login": "uhfahmee", "flag": "QCTF{VALIDATE_USER_DATA_DHHXSWJPZA}", "directory": "xbxrctiwxz", "password": "etjbfxxvfi" }, { "login": "kpjatspo", "flag": "QCTF{VALIDATE_USER_DATA_APDAGKZYHU}", "directory": "duxrcdtvrt", "password": "inzivrpbom" }, { "login": "xvvdvqzz", "flag": "QCTF{VALIDATE_USER_DATA_EZSNQWMDUU}", "directory": "udjmqbgwjz", "password": "kkdsgvszat" }, { "login": "nhhgtqyb", "flag": "QCTF{VALIDATE_USER_DATA_IZJNTDVAAY}", "directory": "hvgyemmmra", "password": "ccdnigfqdc" }, { "login": "hsvxhinw", "flag": "QCTF{VALIDATE_USER_DATA_RMHZEQGKWL}", "directory": "denumlacrs", "password": "iegoijjsrt" }, { "login": "rxxlusqd", "flag": "QCTF{VALIDATE_USER_DATA_YYZMVGHPSR}", "directory": "ihinjbfusv", "password": "jemxjhfahb" }, { "login": "eftlwceu", "flag": "QCTF{VALIDATE_USER_DATA_RZLYBBODPO}", "directory": "kojhixdtmj", "password": "wpdayytnyq" }, { "login": "nxiazvdc", "flag": "QCTF{VALIDATE_USER_DATA_KCOMGAAJQV}", "directory": "yhlptqpkpz", "password": "ptickqndxt" }, { "login": "rntojktq", "flag": "QCTF{VALIDATE_USER_DATA_QDBWKWBRKI}", "directory": "callccmazc", "password": "thoqpudlzq" }, { "login": "ecrfsggp", "flag": "QCTF{VALIDATE_USER_DATA_FJJJVKRQCD}", "directory": "zncpwbkvpf", "password": "abogybrtvp" }, { "login": "kpevjgnv", "flag": "QCTF{VALIDATE_USER_DATA_XXOCQOSSZB}", "directory": "pjcptpcqdn", "password": "lqnpmumbpj" }, { "login": "mwziplci", "flag": "QCTF{VALIDATE_USER_DATA_LFQUEVYVUM}", "directory": "sshmicrrtx", "password": "pilcuzpkqf" }, { "login": "tuesnjqz", "flag": "QCTF{VALIDATE_USER_DATA_BOLPIARMIX}", "directory": "mjxwjvnxbc", "password": "jffpgwwtvh" }, { "login": "vswfjnbq", "flag": "QCTF{VALIDATE_USER_DATA_GLJXCMTHOK}", "directory": "gdktymcdsm", "password": "foebyyjjil" }, { "login": "bslzpmqu", "flag": "QCTF{VALIDATE_USER_DATA_UHOJKNMRGO}", "directory": "yccqruflyv", "password": "ytmusckdny" }, { "login": "wvafptzj", "flag": "QCTF{VALIDATE_USER_DATA_TKDHVBUXBK}", "directory": "lallexmspp", "password": "jrdnmkdwes" }, { "login": "mdpesmlz", "flag": "QCTF{VALIDATE_USER_DATA_VEOGMXXYIN}", "directory": "qneskvngbo", "password": "yxeaffyqzc" }, { "login": "roldzlnf", "flag": "QCTF{VALIDATE_USER_DATA_LCFRKURBJG}", "directory": "spgpduoshb", "password": "edoidcncqz" }, { "login": "pumnjpnz", "flag": "QCTF{VALIDATE_USER_DATA_BXRGVGQIMZ}", "directory": "ejjpnasffe", "password": "blfwdvgoel" }, { "login": "npbefmmd", "flag": "QCTF{VALIDATE_USER_DATA_GIWFDKDDSF}", "directory": "enyxqtfhkv", "password": "fascyhvnlu" }, { "login": "xfdgocte", "flag": "QCTF{VALIDATE_USER_DATA_PXPVEMZXOJ}", "directory": "cnberazaou", "password": "xwgeslmrqo" }, { "login": "atnatnpg", "flag": "QCTF{VALIDATE_USER_DATA_XUYHFNRXYE}", "directory": "xtvvgsfqij", "password": "oqpjhuwnkd" }, { "login": "kyohphmx", "flag": "QCTF{VALIDATE_USER_DATA_CXJBSSKWKZ}", "directory": "opnpkfjqge", "password": "ulyxnyaqyf" }, { "login": "wfgttlul", "flag": "QCTF{VALIDATE_USER_DATA_HNOQEQBWVF}", "directory": "ffatdrcyrh", "password": "nfdiuchddt" }, { "login": "ecyqcecu", "flag": "QCTF{VALIDATE_USER_DATA_CJHIOXPJGX}", "directory": "ozhbihovas", "password": "nyrhjzswoa" }, { "login": "qnpyhnuy", "flag": "QCTF{VALIDATE_USER_DATA_FNICGKUNMW}", "directory": "jpixpibqtx", "password": "gtxoslvojz" }, { "login": "hquvijbz", "flag": "QCTF{VALIDATE_USER_DATA_YBLWKEMOLS}", "directory": "nysdctocwh", "password": "ncauklxlvw" }, { "login": "lqjgakxz", "flag": "QCTF{VALIDATE_USER_DATA_JRDODSOKFF}", "directory": "rvmyyauffa", "password": "tflrekjmvk" }, { "login": "vunjfrvv", "flag": "QCTF{VALIDATE_USER_DATA_YTZLZCZGLH}", "directory": "edifwnazcq", "password": "adgrbgclvl" }, { "login": "luseecyn", "flag": "QCTF{VALIDATE_USER_DATA_EFMWBOPCAM}", "directory": "jrbdhytdgt", "password": "tenbeglsdp" }, { "login": "ibkfswkk", "flag": "QCTF{VALIDATE_USER_DATA_XUBSFTASLM}", "directory": "jplmvkwglx", "password": "esapfpoqak" }, { "login": "adevckzm", "flag": "QCTF{VALIDATE_USER_DATA_CXNPXBYQQZ}", "directory": "oifrbgndxl", "password": "jmoyxhpckd" }, { "login": "xvckqgtl", "flag": "QCTF{VALIDATE_USER_DATA_ZSCISNYYOP}", "directory": "hvrgmhimvl", "password": "pxpknlrtfu" }, { "login": "tzrmfibs", "flag": "QCTF{VALIDATE_USER_DATA_ZDTKPFJXPD}", "directory": "lostecyzoi", "password": "pbgpemilug" }, { "login": "jnejwvmq", "flag": "QCTF{VALIDATE_USER_DATA_YWIOUNHXTH}", "directory": "lahixnkfgk", "password": "qwiycpduvg" }, { "login": "ivttyomp", "flag": "QCTF{VALIDATE_USER_DATA_YALFGTOELQ}", "directory": "rloogcyjjs", "password": "ztigrorehk" }, { "login": "hhkeyqew", "flag": "QCTF{VALIDATE_USER_DATA_YJNJCDWPKM}", "directory": "ugvrgwmmre", "password": "gnrwjkqhaz" }, { "login": "atcnzlfc", "flag": "QCTF{VALIDATE_USER_DATA_FBUJOSQAMV}", "directory": "dutybnxrux", "password": "xhkpntktjq" }, { "login": "kalmjpwt", "flag": "QCTF{VALIDATE_USER_DATA_TJWKWFUQAJ}", "directory": "zwacfdfnfy", "password": "oksmczpzha" }, { "login": "htuimdrd", "flag": "QCTF{VALIDATE_USER_DATA_XWDLEKMYPC}", "directory": "iyjxqevfaj", "password": "ifcakopefc" }, { "login": "eyizdplr", "flag": "QCTF{VALIDATE_USER_DATA_PSNKBACIYC}", "directory": "vvnasgcfib", "password": "ovqghklfeq" }, { "login": "vfmxmgcc", "flag": "QCTF{VALIDATE_USER_DATA_TWJZQYZRHY}", "directory": "tldnajuokc", "password": "ivrciuaatq" }, { "login": "xiigqaoy", "flag": "QCTF{VALIDATE_USER_DATA_WANPJKNHAN}", "directory": "mydspwqcvt", "password": "pgorirorkz" }, { "login": "kkmecwpn", "flag": "QCTF{VALIDATE_USER_DATA_YSDQWSUSGR}", "directory": "wucenemgkc", "password": "bfonylxpfr" }, { "login": "nvemqdvv", "flag": "QCTF{VALIDATE_USER_DATA_LOPVYRXMYW}", "directory": "qebcpvbhlo", "password": "fnsxuiwtsx" }, { "login": "iztdslqs", "flag": "QCTF{VALIDATE_USER_DATA_HHTQXQVSWH}", "directory": "hzlnkqpykw", "password": "fxsflhnqze" }, { "login": "moxyfllw", "flag": "QCTF{VALIDATE_USER_DATA_JYAHKYFGMJ}", "directory": "tnamjjhrgj", "password": "sfrboxzfvx" }, { "login": "ddcidalx", "flag": "QCTF{VALIDATE_USER_DATA_BEQXHAORWS}", "directory": "cnarfabvnr", "password": "jpjoxyyezr" }, { "login": "eilpiuoj", "flag": "QCTF{VALIDATE_USER_DATA_DLNTCLNXIH}", "directory": "xpcppkwdbq", "password": "wchldcgvkb" }, { "login": "siqlaezs", "flag": "QCTF{VALIDATE_USER_DATA_SUGOPQDEJB}", "directory": "awsrplivmx", "password": "jjwyhuvokn" }, { "login": "slrcolak", "flag": "QCTF{VALIDATE_USER_DATA_DMTSHFXHZP}", "directory": "tnciyzzrgd", "password": "rwzvszzhxw" }, { "login": "owmollep", "flag": "QCTF{VALIDATE_USER_DATA_LRLVIAFNXR}", "directory": "ppnbkikqbl", "password": "qmrcftpkvb" }, { "login": "mybybord", "flag": "QCTF{VALIDATE_USER_DATA_RADAVYRLEE}", "directory": "vfzrknybub", "password": "vwjfoypmzm" }, { "login": "saeihfen", "flag": "QCTF{VALIDATE_USER_DATA_FYAFOGZILT}", "directory": "iceebloipp", "password": "ahtprdqrho" }, { "login": "gzurvszr", "flag": "QCTF{VALIDATE_USER_DATA_JGZCDICCUX}", "directory": "qjvmhoruiy", "password": "mnpknetwus" }, { "login": "plpvoxxe", "flag": "QCTF{VALIDATE_USER_DATA_ZKBPDQREKK}", "directory": "hsubxmfvlv", "password": "snjjpiofxy" }, { "login": "usrqzlyg", "flag": "QCTF{VALIDATE_USER_DATA_UIOXAEZFXS}", "directory": "nodlzvcqjm", "password": "tyghckrfhe" }, { "login": "rydhbjsx", "flag": "QCTF{VALIDATE_USER_DATA_CAUEFXINMS}", "directory": "pkstkfplez", "password": "bdbjtlhzqu" }, { "login": "kdsarvmd", "flag": "QCTF{VALIDATE_USER_DATA_CUYZCWGWVG}", "directory": "fmrifgkffn", "password": "pwtkcoralb" }, { "login": "kwotlwjz", "flag": "QCTF{VALIDATE_USER_DATA_BETAVWFFWX}", "directory": "hpavbiassu", "password": "gyadozkfxw" }, { "login": "snvuuluw", "flag": "QCTF{VALIDATE_USER_DATA_QXXOFYNYNW}", "directory": "yqbvptgmpv", "password": "yufiydgyuu" }, { "login": "zwliyabk", "flag": "QCTF{VALIDATE_USER_DATA_BTFPMFICEN}", "directory": "kddmjruayu", "password": "romynsbrtt" }, { "login": "rrrntxdh", "flag": "QCTF{VALIDATE_USER_DATA_QARJPLCIJS}", "directory": "labwiwdtsj", "password": "zvzhhtoksp" }, { "login": "csbfhkke", "flag": "QCTF{VALIDATE_USER_DATA_JWLYOGNVPK}", "directory": "dwfoobvygm", "password": "gbkhmjnaii" }, { "login": "xzokxpfy", "flag": "QCTF{VALIDATE_USER_DATA_DAGNSKBTSZ}", "directory": "ugkjpnmmzq", "password": "wyutcziusx" }, { "login": "mmuhwfal", "flag": "QCTF{VALIDATE_USER_DATA_VCWNRTZETW}", "directory": "teawmkbmts", "password": "kdvfhdcnqp" }, { "login": "myvhotrf", "flag": "QCTF{VALIDATE_USER_DATA_OKVTDEMBCH}", "directory": "izyrkdfkyp", "password": "cgtkjrdqjt" }, { "login": "bmudbfbd", "flag": "QCTF{VALIDATE_USER_DATA_KKLAGHJEYF}", "directory": "ulscjwamiw", "password": "byprqxgggg" }, { "login": "uebfkdqu", "flag": "QCTF{VALIDATE_USER_DATA_ERNYCOLAFI}", "directory": "fyhxagirey", "password": "tczodgpgyd" }, { "login": "opptlohm", "flag": "QCTF{VALIDATE_USER_DATA_AOKKHEMMXC}", "directory": "swbtavmfuo", "password": "mhrtpzdckd" }, { "login": "fwrncotl", "flag": "QCTF{VALIDATE_USER_DATA_ZZKJGINYWJ}", "directory": "mnsfpyoedz", "password": "wuihaajzqv" }, { "login": "eizqfpyl", "flag": "QCTF{VALIDATE_USER_DATA_QIRNWZEDFS}", "directory": "rzexpwaxlh", "password": "fghmoktzzo" }, { "login": "yvejtwbz", "flag": "QCTF{VALIDATE_USER_DATA_CYQSYRHUKT}", "directory": "dsummqjxko", "password": "fixgjfznih" }, { "login": "nzunkiyb", "flag": "QCTF{VALIDATE_USER_DATA_RFQPBZPQDM}", "directory": "zqafsevnds", "password": "larrpaylfi" }, { "login": "fufgntjt", "flag": "QCTF{VALIDATE_USER_DATA_FFWWETVWZY}", "directory": "kgwujjtpcw", "password": "gvoegdqyho" }, { "login": "gybkjjlb", "flag": "QCTF{VALIDATE_USER_DATA_CVYGEYOBDY}", "directory": "hvqqdlyaba", "password": "zeoeeadbdm" }, { "login": "wsieodeh", "flag": "QCTF{VALIDATE_USER_DATA_JJAPANPADG}", "directory": "ofethauejc", "password": "vqwqqxnuqb" }, { "login": "pqzunuhe", "flag": "QCTF{VALIDATE_USER_DATA_BDOFBZBBCA}", "directory": "xnbjvtnbpt", "password": "xzcxpmhoty" }, { "login": "kvpbvudg", "flag": "QCTF{VALIDATE_USER_DATA_DMZKYQPCIE}", "directory": "dpglacespy", "password": "vppbputkim" }, { "login": "mvegbllo", "flag": "QCTF{VALIDATE_USER_DATA_MIUMXTHHGR}", "directory": "nimzoyqsmr", "password": "wvylwwxcsb" }, { "login": "gfjiwzgv", "flag": "QCTF{VALIDATE_USER_DATA_ZAOOJXXWIP}", "directory": "nvmoiddalo", "password": "tntcqwchcl" }, { "login": "ygnxgtgd", "flag": "QCTF{VALIDATE_USER_DATA_JWMJKELJZI}", "directory": "misjayzzet", "password": "prdlvyjwvg" }, { "login": "glbvcxfy", "flag": "QCTF{VALIDATE_USER_DATA_MIRIIAGLMQ}", "directory": "mhcnbqanec", "password": "mdkwyxsltt" }, { "login": "eggumrxu", "flag": "QCTF{VALIDATE_USER_DATA_SQILVTVRPO}", "directory": "vcmtbjjwik", "password": "umspmraldq" }, { "login": "mlaxertp", "flag": "QCTF{VALIDATE_USER_DATA_GBHRKEDRNF}", "directory": "rmheagzehr", "password": "wdubqnasig" }, { "login": "znwpyfjd", "flag": "QCTF{VALIDATE_USER_DATA_ZYUKOUMEIQ}", "directory": "gqmfcewcuv", "password": "fknqgrxkqx" }, { "login": "cvermdmc", "flag": "QCTF{VALIDATE_USER_DATA_SDHSEHUPQN}", "directory": "jzwalscygp", "password": "xkcuccolrv" }, { "login": "edtqywor", "flag": "QCTF{VALIDATE_USER_DATA_ZFIRNPCMWQ}", "directory": "zhnagdanku", "password": "izxawxnnqr" }, { "login": "spvcwfdp", "flag": "QCTF{VALIDATE_USER_DATA_QMITXWJCHP}", "directory": "aacfscafll", "password": "jvoyxbhzci" }, { "login": "daeumzdn", "flag": "QCTF{VALIDATE_USER_DATA_ZRDAQXEFVQ}", "directory": "ghziduxsko", "password": "gtlnyizksa" }, { "login": "kdgmdiar", "flag": "QCTF{VALIDATE_USER_DATA_WCOKFDQPCF}", "directory": "pcrkqjrggt", "password": "klqzyxczgr" }, { "login": "qocqaied", "flag": "QCTF{VALIDATE_USER_DATA_WDGLQQUPAL}", "directory": "jzffohznee", "password": "yuirxmbwgp" }, { "login": "sbxbxlod", "flag": "QCTF{VALIDATE_USER_DATA_DGXEGAGOAQ}", "directory": "rjyhwysjib", "password": "akaafrxlga" }, { "login": "rthdnixe", "flag": "QCTF{VALIDATE_USER_DATA_LQXHQQFVUI}", "directory": "omglhrkbpk", "password": "xdjlqhfvkr" }, { "login": "gmjjceoa", "flag": "QCTF{VALIDATE_USER_DATA_TBPYPWXPHG}", "directory": "sqgaxpbutd", "password": "skbyetepea" }, { "login": "ayezpjjy", "flag": "QCTF{VALIDATE_USER_DATA_OGILPRZUJY}", "directory": "rynecylpda", "password": "larefharun" }, { "login": "zgittmij", "flag": "QCTF{VALIDATE_USER_DATA_QCNGICOLYK}", "directory": "hvcngctuye", "password": "igrdyilesg" }, { "login": "mjysnvhu", "flag": "QCTF{VALIDATE_USER_DATA_YPBMOQTVVW}", "directory": "myqxnbrzpa", "password": "htvsksplon" }, { "login": "qrsxkhvr", "flag": "QCTF{VALIDATE_USER_DATA_MBPASUQXHY}", "directory": "ujbzxrergv", "password": "igcierxmkz" }, { "login": "yoidicyr", "flag": "QCTF{VALIDATE_USER_DATA_UQSYDNGMOK}", "directory": "nnmhwvtutb", "password": "pkcqalvzna" }, { "login": "uvrrjqey", "flag": "QCTF{VALIDATE_USER_DATA_PFPGJXSLOF}", "directory": "elpwjurpin", "password": "kustcuycfh" }, { "login": "tsfoycgo", "flag": "QCTF{VALIDATE_USER_DATA_VWGOVFHURM}", "directory": "phyfbwsyxg", "password": "eyozsduiuf" }, { "login": "wjfcxztj", "flag": "QCTF{VALIDATE_USER_DATA_RFUTIGNWEW}", "directory": "hauhfdyrxs", "password": "cjikkkheqq" }, { "login": "vbsbxplr", "flag": "QCTF{VALIDATE_USER_DATA_FNFDYTNJPC}", "directory": "mjoesjdheo", "password": "msnrivtmma" }, { "login": "hrbygnuv", "flag": "QCTF{VALIDATE_USER_DATA_KXSLPRDFUE}", "directory": "dhgqfrwntb", "password": "jwelrintjh" }, { "login": "fmmontvj", "flag": "QCTF{VALIDATE_USER_DATA_AMYCLYOQYO}", "directory": "ucyvqyfkom", "password": "qpxrxkrrex" }, { "login": "vwkbuafp", "flag": "QCTF{VALIDATE_USER_DATA_ODOWEKZQDD}", "directory": "yyiupzjfzv", "password": "fprrbhbjej" }, { "login": "rpmemxkm", "flag": "QCTF{VALIDATE_USER_DATA_MKZINAPUBH}", "directory": "mmbgzyqtkk", "password": "atasjdkffx" }, { "login": "lmaybmpn", "flag": "QCTF{VALIDATE_USER_DATA_SHVVKSFTVE}", "directory": "kdqmbivnjf", "password": "daorlqajdn" }, { "login": "mmkosbdq", "flag": "QCTF{VALIDATE_USER_DATA_EMDLLQNROF}", "directory": "tefpellikg", "password": "vphaaybaap" }, { "login": "dqdvldze", "flag": "QCTF{VALIDATE_USER_DATA_ACBIUDELDR}", "directory": "owodomdhjm", "password": "umwzqmaxnt" }, { "login": "syvcpmqj", "flag": "QCTF{VALIDATE_USER_DATA_KCTHWPCMVX}", "directory": "udhrwzhxyy", "password": "plkdyhikrr" }, { "login": "owtdpudi", "flag": "QCTF{VALIDATE_USER_DATA_DESARZTMMX}", "directory": "pbnunmsajv", "password": "lljkcaktqc" }, { "login": "zwoejyms", "flag": "QCTF{VALIDATE_USER_DATA_LXOOXHOZFK}", "directory": "msgobpvmle", "password": "wfljeswdot" }, { "login": "wptffxom", "flag": "QCTF{VALIDATE_USER_DATA_JIMVSKMITY}", "directory": "tibsxbfpwn", "password": "wryeedxypd" }, { "login": "kiwsynqx", "flag": "QCTF{VALIDATE_USER_DATA_DWRWFLCYLM}", "directory": "wstlpuukrx", "password": "ftlsasheun" }, { "login": "ajrbhhyd", "flag": "QCTF{VALIDATE_USER_DATA_KQVWVVNAHX}", "directory": "yyolloxlkb", "password": "lhvqgiqxcq" }, { "login": "zlxrluln", "flag": "QCTF{VALIDATE_USER_DATA_FAWDPGHXMK}", "directory": "uqzizrslnd", "password": "qyffoljnuq" }, { "login": "lflmfdjp", "flag": "QCTF{VALIDATE_USER_DATA_PFYDDWAHUF}", "directory": "cxfxsrdxon", "password": "lvewvxlcin" }, { "login": "kuhfakdk", "flag": "QCTF{VALIDATE_USER_DATA_ATDREBHCEF}", "directory": "xrljatnuwl", "password": "auvkpebojb" }, { "login": "ihhzkzxc", "flag": "QCTF{VALIDATE_USER_DATA_OLYLYTOTSK}", "directory": "pibwgmrfdh", "password": "njpyjoujap" }, { "login": "hbkoktru", "flag": "QCTF{VALIDATE_USER_DATA_FQTRLTYKUG}", "directory": "evwntekgkj", "password": "ipmctkkovh" }, { "login": "gsdabkpd", "flag": "QCTF{VALIDATE_USER_DATA_QGIHGIIVHB}", "directory": "msbkkgbvap", "password": "cnwybqfgrc" }, { "login": "vrxotsoz", "flag": "QCTF{VALIDATE_USER_DATA_YKCCKKGXNH}", "directory": "ktvznxsdbs", "password": "uvzwbztmrj" }, { "login": "nzshdvsf", "flag": "QCTF{VALIDATE_USER_DATA_CNGYWHBXHZ}", "directory": "qzwkhcvczp", "password": "kmwkyaydhg" }, { "login": "ryxhpaos", "flag": "QCTF{VALIDATE_USER_DATA_XOIUMLIQNR}", "directory": "dlwkyzqlwm", "password": "uawnuvwvmq" }, { "login": "xiqyzijk", "flag": "QCTF{VALIDATE_USER_DATA_YAOODUEFLB}", "directory": "eyzkphroxz", "password": "jypxiaoiuc" }, { "login": "juynvrbj", "flag": "QCTF{VALIDATE_USER_DATA_STAUKLIWAD}", "directory": "drodynqkiv", "password": "javjjmeajp" }, { "login": "hbuvebxp", "flag": "QCTF{VALIDATE_USER_DATA_BUMPIVCNKY}", "directory": "yospnsjdff", "password": "bonndpdzjf" }, { "login": "jccvotty", "flag": "QCTF{VALIDATE_USER_DATA_GIFCTAKEAJ}", "directory": "fapvivvvfs", "password": "glzrbylcqp" }, { "login": "ctswbvpt", "flag": "QCTF{VALIDATE_USER_DATA_XLWBUOPIQL}", "directory": "obizemphve", "password": "zbvtgwztke" }, { "login": "tcqoyhut", "flag": "QCTF{VALIDATE_USER_DATA_CYFMIRKPWW}", "directory": "dsqafsfryn", "password": "emoplqvfoa" }, { "login": "unuzmkkd", "flag": "QCTF{VALIDATE_USER_DATA_RMAVLNUWKF}", "directory": "jqhbrvcveu", "password": "nkpvlibjzc" }, { "login": "epagasfc", "flag": "QCTF{VALIDATE_USER_DATA_FSBWZCHIDX}", "directory": "jdpqgrsctf", "password": "qeitylzakh" }, { "login": "qnyqyivy", "flag": "QCTF{VALIDATE_USER_DATA_ALTOVYHFDE}", "directory": "lnkkkhbtcu", "password": "hgjxmhzwra" }, { "login": "wvbeqbey", "flag": "QCTF{VALIDATE_USER_DATA_VXVJBZFDYR}", "directory": "zoiusafohc", "password": "fqejemroid" }, { "login": "pewzaudq", "flag": "QCTF{VALIDATE_USER_DATA_QGNBHNVUEK}", "directory": "labucgomzr", "password": "xfcgbsxvmr" }, { "login": "wzsmvxum", "flag": "QCTF{VALIDATE_USER_DATA_WRHFALPSKD}", "directory": "jtjyshixfg", "password": "omqvhouhgj" }, { "login": "dakkqbcn", "flag": "QCTF{VALIDATE_USER_DATA_HPSIQFWYTB}", "directory": "zbuhgpqirv", "password": "eotseftrba" }, { "login": "gvsunesp", "flag": "QCTF{VALIDATE_USER_DATA_LHODLCRPHM}", "directory": "ifoouafqpt", "password": "gxgihgmoss" }, { "login": "uiptheoz", "flag": "QCTF{VALIDATE_USER_DATA_QMMEOIFMVE}", "directory": "nohseokekc", "password": "tyykyoohyj" }, { "login": "piczdrmk", "flag": "QCTF{VALIDATE_USER_DATA_FVVWKHQRGF}", "directory": "dahlajguhu", "password": "gnjqwlxzxg" }, { "login": "qfuftqys", "flag": "QCTF{VALIDATE_USER_DATA_ESATKZHQQR}", "directory": "lvscjycjfp", "password": "ruuslfhrbw" }, { "login": "ecznplge", "flag": "QCTF{VALIDATE_USER_DATA_UBYLGTZMRH}", "directory": "bejqhhwcnx", "password": "enqckohuzj" }, { "login": "tgibbjvf", "flag": "QCTF{VALIDATE_USER_DATA_WIPMMGHGRP}", "directory": "sfatkrffjd", "password": "guzemkmgfr" }, { "login": "htbdsdmg", "flag": "QCTF{VALIDATE_USER_DATA_IJBPLQGFKH}", "directory": "pftyvpofdc", "password": "zijbwkqgwf" }, { "login": "hiapusco", "flag": "QCTF{VALIDATE_USER_DATA_MHMSBLRHLQ}", "directory": "vkfmofrrkl", "password": "qcrszqbepa" }, { "login": "lcgzewiv", "flag": "QCTF{VALIDATE_USER_DATA_YUCRSKQHTN}", "directory": "sqktwxvxgu", "password": "fqkfqkqajk" }, { "login": "ughgdfta", "flag": "QCTF{VALIDATE_USER_DATA_CEXWHKAKZC}", "directory": "thsfewxhgr", "password": "qvuzdevrik" }, { "login": "xvvegslu", "flag": "QCTF{VALIDATE_USER_DATA_WFXIERFEIT}", "directory": "ncywcqlloz", "password": "jpiaxysaxh" }, { "login": "orvqafds", "flag": "QCTF{VALIDATE_USER_DATA_JOSELNCKWE}", "directory": "aasgamanoh", "password": "epausuecmw" }, { "login": "bfcltmbx", "flag": "QCTF{VALIDATE_USER_DATA_SLTCAFGQBE}", "directory": "ndwzgijmcn", "password": "qscqphanfo" }, { "login": "iimmntcr", "flag": "QCTF{VALIDATE_USER_DATA_FTHUVOFIZM}", "directory": "dlblpanpdf", "password": "zbqgbkxsdo" }, { "login": "upgrxfyd", "flag": "QCTF{VALIDATE_USER_DATA_RXTWPYXNKJ}", "directory": "untspgcvfo", "password": "uguafqmoec" }, { "login": "mvspdzsi", "flag": "QCTF{VALIDATE_USER_DATA_MFUZYNOLMG}", "directory": "nrtnssrptx", "password": "qbvjrpnngv" }, { "login": "cohjinwh", "flag": "QCTF{VALIDATE_USER_DATA_BHBPSXZOPQ}", "directory": "zztkrafkiy", "password": "jrwgggoore" }, { "login": "xhnwqhcd", "flag": "QCTF{VALIDATE_USER_DATA_DQOWZZETIF}", "directory": "occtunrosl", "password": "kcrfckcybt" }, { "login": "kbltytyd", "flag": "QCTF{VALIDATE_USER_DATA_HZASQAESYH}", "directory": "icewyeubmg", "password": "xhgiospmhc" }, { "login": "qfdfpple", "flag": "QCTF{VALIDATE_USER_DATA_TVYAPEZTXM}", "directory": "wwouadeygc", "password": "olhhsgroiu" }, { "login": "ldbgipfo", "flag": "QCTF{VALIDATE_USER_DATA_KWGFXAUJPV}", "directory": "wmgttmyveh", "password": "vappzgcwbe" }, { "login": "vlxuugke", "flag": "QCTF{VALIDATE_USER_DATA_LGSYETNSJR}", "directory": "sznfveekot", "password": "cpggzlarhq" }, { "login": "vioncxue", "flag": "QCTF{VALIDATE_USER_DATA_YDZLPCLDDX}", "directory": "bjkymqfood", "password": "utdrpqdzen" }, { "login": "evhzlkov", "flag": "QCTF{VALIDATE_USER_DATA_CVYTKMMDFL}", "directory": "fusahnfemy", "password": "zraenytcdp" }, { "login": "auapfcuh", "flag": "QCTF{VALIDATE_USER_DATA_TOCTOLJYJK}", "directory": "mlqvxizggb", "password": "gjmohkmzyx" }, { "login": "ailixnhd", "flag": "QCTF{VALIDATE_USER_DATA_JZBSAEDPOK}", "directory": "xmcrmdofzp", "password": "nndvjgknig" }, { "login": "ahzldepn", "flag": "QCTF{VALIDATE_USER_DATA_RKJKSZKFVW}", "directory": "vyxqstuogg", "password": "lfqddiudsp" }, { "login": "rdcslvlw", "flag": "QCTF{VALIDATE_USER_DATA_NNIYXBRUFM}", "directory": "nhjdcyblax", "password": "ynleqwatph" }, { "login": "adpogdpi", "flag": "QCTF{VALIDATE_USER_DATA_ZASMXQSBZH}", "directory": "gupufhlzcr", "password": "lywuixpxua" }, { "login": "oqnrxxdc", "flag": "QCTF{VALIDATE_USER_DATA_SLJWHLFJZJ}", "directory": "szgabjaezk", "password": "vrwswudkad" }, { "login": "behzqajq", "flag": "QCTF{VALIDATE_USER_DATA_AWCWFCPLHB}", "directory": "cghiqusura", "password": "jodarbckgm" }, { "login": "eyncowgv", "flag": "QCTF{VALIDATE_USER_DATA_JJPUUPQDXT}", "directory": "awchzzdhmb", "password": "zljabaiwqc" }, { "login": "pfwxvhya", "flag": "QCTF{VALIDATE_USER_DATA_QMABDAEQDN}", "directory": "bzrapvlexi", "password": "lgcqorxxmj" }, { "login": "qyjcdxrn", "flag": "QCTF{VALIDATE_USER_DATA_FKVKLVVHVW}", "directory": "neismwtifg", "password": "mauetbnxpo" }, { "login": "juyjppuo", "flag": "QCTF{VALIDATE_USER_DATA_LUYIVVLNBQ}", "directory": "utfasytodn", "password": "nxddqivlqt" }, { "login": "cvabzxrk", "flag": "QCTF{VALIDATE_USER_DATA_YJIZMRNFVZ}", "directory": "amwpfgujbe", "password": "bwtpesdkom" }, { "login": "iwsxdcwz", "flag": "QCTF{VALIDATE_USER_DATA_GMAQMGQURB}", "directory": "flveqwrirb", "password": "plkwxmcnpw" }, { "login": "cuocrgvq", "flag": "QCTF{VALIDATE_USER_DATA_UJUUEJJKZH}", "directory": "sirkqyzskd", "password": "mgajkpooal" }, { "login": "ewzrszhm", "flag": "QCTF{VALIDATE_USER_DATA_ZJKXBLVUPY}", "directory": "hvwuvdcqjg", "password": "rwajplgimk" }, { "login": "vbqhzpsq", "flag": "QCTF{VALIDATE_USER_DATA_PAKZAJXJIW}", "directory": "ttislbyvlo", "password": "yfsvnoswly" }, { "login": "uhofcdmm", "flag": "QCTF{VALIDATE_USER_DATA_OCYUPMXYOQ}", "directory": "kjtsdftxcn", "password": "cknwnrrsja" }, { "login": "pjkyyxoy", "flag": "QCTF{VALIDATE_USER_DATA_SISXMEKRAO}", "directory": "vvrtvhzbcy", "password": "jmwqefljey" }, { "login": "hwgpflke", "flag": "QCTF{VALIDATE_USER_DATA_RSVYPNJHLN}", "directory": "rjnrdjyncv", "password": "ybmmwtvsgy" }, { "login": "tfaknzuv", "flag": "QCTF{VALIDATE_USER_DATA_TWFOHRLKYI}", "directory": "pnxxzwsrtk", "password": "fojuauefom" }, { "login": "rmwabxty", "flag": "QCTF{VALIDATE_USER_DATA_QLDUUNQUMB}", "directory": "uvkjbowifc", "password": "qxdlugaycv" }, { "login": "abjgqaoj", "flag": "QCTF{VALIDATE_USER_DATA_AMSFNTDGTG}", "directory": "vxjhmmehff", "password": "lemlammnzo" }, { "login": "kjebhiwk", "flag": "QCTF{VALIDATE_USER_DATA_YMLPDBQISU}", "directory": "sesceowhdj", "password": "walrvxqkek" }, { "login": "plchgvau", "flag": "QCTF{VALIDATE_USER_DATA_ZOBSWNHUMA}", "directory": "qqhaaubbfv", "password": "elswimbucl" }, { "login": "smohqaux", "flag": "QCTF{VALIDATE_USER_DATA_IKDHURXNXV}", "directory": "irymcgwrmv", "password": "bneekmpbww" }, { "login": "nsfobarc", "flag": "QCTF{VALIDATE_USER_DATA_PYYVKZNKOQ}", "directory": "gmdixzwyki", "password": "lgcbawadyf" }, { "login": "rgdpieyw", "flag": "QCTF{VALIDATE_USER_DATA_RVUJORENSI}", "directory": "tdhkkpnjpb", "password": "sftklodsud" }, { "login": "zbiikmzt", "flag": "QCTF{VALIDATE_USER_DATA_EIAEFKVARC}", "directory": "hihimbvcdf", "password": "uyscvgfsbk" }, { "login": "ruefkzkm", "flag": "QCTF{VALIDATE_USER_DATA_AVCQUGRQMY}", "directory": "vycnxgxiwe", "password": "qlrvqqyxzt" }, { "login": "ffeyfwly", "flag": "QCTF{VALIDATE_USER_DATA_XBXNDRZEJB}", "directory": "bqurygoapx", "password": "lfgkfaabut" }, { "login": "ghoyikjd", "flag": "QCTF{VALIDATE_USER_DATA_VVDBWCVNOY}", "directory": "cevlbfmnti", "password": "jvqohvueuh" }, { "login": "qeheqazt", "flag": "QCTF{VALIDATE_USER_DATA_CEQEIGZNJP}", "directory": "yzobvkszxm", "password": "jwpzzbxrru" }, { "login": "tdymyzhb", "flag": "QCTF{VALIDATE_USER_DATA_DEKGXDFAUA}", "directory": "sjdtawtpsz", "password": "cxpaieuzym" }, { "login": "ranvzxju", "flag": "QCTF{VALIDATE_USER_DATA_THQJWXFHTE}", "directory": "uundegjohq", "password": "hpuwdtyqyh" }, { "login": "niyruixm", "flag": "QCTF{VALIDATE_USER_DATA_ZABWHWEXAZ}", "directory": "aezwweyuwa", "password": "embuqwqtwn" }, { "login": "wocebacn", "flag": "QCTF{VALIDATE_USER_DATA_PEBHMXRCEZ}", "directory": "hhfwvsxouw", "password": "ehzlfjtezz" }, { "login": "ufydnmsc", "flag": "QCTF{VALIDATE_USER_DATA_LKREEMEGAY}", "directory": "pywlukagtq", "password": "wzuwvrangf" }, { "login": "oglhazfq", "flag": "QCTF{VALIDATE_USER_DATA_PAZHISUHNH}", "directory": "bjvvhtixpw", "password": "barzszvavn" }, { "login": "hrwxyxwp", "flag": "QCTF{VALIDATE_USER_DATA_JBVINGOCEL}", "directory": "ngdguqbzkv", "password": "qqkilsuyeb" }, { "login": "cpqcvzte", "flag": "QCTF{VALIDATE_USER_DATA_UHJJWALVIZ}", "directory": "xrclpuidav", "password": "uaebctzupi" }, { "login": "tilcjymj", "flag": "QCTF{VALIDATE_USER_DATA_GKXNRKUQVL}", "directory": "porogaafpz", "password": "bmnticccct" }, { "login": "kdsgebjh", "flag": "QCTF{VALIDATE_USER_DATA_BXXCSGQPRP}", "directory": "vsjjgedaoo", "password": "wknjgazinp" }, { "login": "qohwfyab", "flag": "QCTF{VALIDATE_USER_DATA_QIQEBKOVHO}", "directory": "eykhcsndvq", "password": "mmiwawjrtb" }, { "login": "nrzerlxf", "flag": "QCTF{VALIDATE_USER_DATA_ZDAJNUYTIA}", "directory": "llcdlvicwt", "password": "vpxjcdesfw" }, { "login": "rslgqwaa", "flag": "QCTF{VALIDATE_USER_DATA_LRTDVBTOSX}", "directory": "mhtfyfnsmb", "password": "cjcgejrjqj" }, { "login": "dsiudqje", "flag": "QCTF{VALIDATE_USER_DATA_PWLJHPIKRQ}", "directory": "ikpuxgsqpr", "password": "gcybidutta" }, { "login": "mpmeklxb", "flag": "QCTF{VALIDATE_USER_DATA_UGWTZEBHKR}", "directory": "dahwadofbc", "password": "ctnkmuqdty" }, { "login": "ohpvrbes", "flag": "QCTF{VALIDATE_USER_DATA_VMJDLCDRDT}", "directory": "sskmlbsdgi", "password": "gsifeuslty" }, { "login": "knbwsdwg", "flag": "QCTF{VALIDATE_USER_DATA_HIVAAMXTLW}", "directory": "yhsrhpoiyh", "password": "gjtgeruxgi" }, { "login": "ndhontgn", "flag": "QCTF{VALIDATE_USER_DATA_WWVMXIBSUP}", "directory": "xxhzbnevls", "password": "qdmydhzvxk" }, { "login": "skpqwedn", "flag": "QCTF{VALIDATE_USER_DATA_YCQYCKKXCA}", "directory": "hiovsxyyrk", "password": "nmwwqhjgbt" }, { "login": "gcreauaj", "flag": "QCTF{VALIDATE_USER_DATA_BWSJPASAIW}", "directory": "nsbxwolpcn", "password": "zjhgokkwii" }, { "login": "wuizsspr", "flag": "QCTF{VALIDATE_USER_DATA_CDUSUKYGOO}", "directory": "jnhlrylvuh", "password": "wfrgqryfrt" }, { "login": "fdqsghxz", "flag": "QCTF{VALIDATE_USER_DATA_KUPCVNLRJK}", "directory": "fagtjmgmqb", "password": "mbymrydjay" }, { "login": "iznqwoxw", "flag": "QCTF{VALIDATE_USER_DATA_DNUZQPYVPM}", "directory": "rwmibrthgo", "password": "dcbqkmjzvs" }, { "login": "tsjllkzh", "flag": "QCTF{VALIDATE_USER_DATA_BCIXJMGJPE}", "directory": "amwbocbhel", "password": "lujmngbier" }, { "login": "ssyujocl", "flag": "QCTF{VALIDATE_USER_DATA_WYHCYRBBQP}", "directory": "ibhzxauixt", "password": "rlczwnrpfr" }, { "login": "cxeglvle", "flag": "QCTF{VALIDATE_USER_DATA_XWRKSYDVJH}", "directory": "lmcfskejvb", "password": "skgacoqgsr" }, { "login": "jvalrmrx", "flag": "QCTF{VALIDATE_USER_DATA_GPAIGQEMNY}", "directory": "jwkotinjse", "password": "eieglltusl" }, { "login": "vazxoywl", "flag": "QCTF{VALIDATE_USER_DATA_XKJIMRDOVH}", "directory": "edcbairfqv", "password": "kqtnyeiuwp" }, { "login": "sdofjsxo", "flag": "QCTF{VALIDATE_USER_DATA_SJWXXAEUXD}", "directory": "elsownsyvv", "password": "ywbvuqfswn" }, { "login": "yhiljzgl", "flag": "QCTF{VALIDATE_USER_DATA_UJOJUGVBEY}", "directory": "akvfqwitfd", "password": "yphrumepbs" }, { "login": "gypiqieh", "flag": "QCTF{VALIDATE_USER_DATA_XBZBSAXOZY}", "directory": "ezaxwhtofi", "password": "feaywywznm" }, { "login": "kgkuicqz", "flag": "QCTF{VALIDATE_USER_DATA_THUPJJRVKA}", "directory": "xyudbxwdkm", "password": "pyaycyxony" }, { "login": "utxzqmnc", "flag": "QCTF{VALIDATE_USER_DATA_UUNMWRNQWQ}", "directory": "buwctcfsrp", "password": "axlcqeueqo" }, { "login": "pevdecwx", "flag": "QCTF{VALIDATE_USER_DATA_UUWNZWKSAP}", "directory": "hxikobrjur", "password": "wxythltbej" }, { "login": "tgjgzqrz", "flag": "QCTF{VALIDATE_USER_DATA_SFSNGWPJLF}", "directory": "msldlgttds", "password": "nbmhqijqhh" }, { "login": "fngydszt", "flag": "QCTF{VALIDATE_USER_DATA_WBYYFTIBSP}", "directory": "hqgwpfwhjx", "password": "avfkhwmeiy" }, { "login": "rkthjdpz", "flag": "QCTF{VALIDATE_USER_DATA_WGPLBGWOUO}", "directory": "xupwdqlglj", "password": "rxouvnpabt" }, { "login": "nkbjghhg", "flag": "QCTF{VALIDATE_USER_DATA_MXPEGQNKQB}", "directory": "eehkkzwmzy", "password": "whyaoefwqk" }, { "login": "cyizhoaw", "flag": "QCTF{VALIDATE_USER_DATA_CNWIGWRMHO}", "directory": "tsxgfdhwog", "password": "gfvwtvtrln" }, { "login": "lkvyrqql", "flag": "QCTF{VALIDATE_USER_DATA_AGAKVQGEAY}", "directory": "ayfzpyhkvv", "password": "ayuzgomzyr" }, { "login": "erkdzwxr", "flag": "QCTF{VALIDATE_USER_DATA_EHVXGVAWCW}", "directory": "fycymjlmkz", "password": "itoyxkdguy" }, { "login": "rxtjgmti", "flag": "QCTF{VALIDATE_USER_DATA_HBMNGXOASQ}", "directory": "oekudzvbly", "password": "fhcjvjotrg" }, { "login": "ivejdden", "flag": "QCTF{VALIDATE_USER_DATA_BEAYZOVJRK}", "directory": "rotnzmsbws", "password": "pxcgorupff" }, { "login": "zmncqyxm", "flag": "QCTF{VALIDATE_USER_DATA_KXXPLBONRR}", "directory": "erbdsqmeeq", "password": "skjbutrlsv" }, { "login": "lwooiblc", "flag": "QCTF{VALIDATE_USER_DATA_DWLZHMPTFK}", "directory": "rxzftrzikv", "password": "ujckkuqgyz" }, { "login": "apbwdxds", "flag": "QCTF{VALIDATE_USER_DATA_JKLHIDUIFX}", "directory": "femuldxwzh", "password": "aqlxjkaepv" }, { "login": "lusefjpe", "flag": "QCTF{VALIDATE_USER_DATA_IIOLRWOMOW}", "directory": "iloxkmzzpu", "password": "fgopmmdstp" }, { "login": "kdgksmre", "flag": "QCTF{VALIDATE_USER_DATA_FQKDQEQYLU}", "directory": "tamysfyhge", "password": "swdjehorzp" }, { "login": "sdlfflfv", "flag": "QCTF{VALIDATE_USER_DATA_NTYQFYIKWR}", "directory": "rqidjubplg", "password": "kmijpjeifq" }, { "login": "gmarssgj", "flag": "QCTF{VALIDATE_USER_DATA_FEUIOXTTDU}", "directory": "ejbehislls", "password": "euzzxfnmrp" }, { "login": "cemiuexl", "flag": "QCTF{VALIDATE_USER_DATA_KVLVJMHYKK}", "directory": "zlzhtpthzj", "password": "avqbbjegne" }, { "login": "oickxmim", "flag": "QCTF{VALIDATE_USER_DATA_AFYBMNMHDA}", "directory": "jdjjxgewqj", "password": "mnrmumwfsj" }, { "login": "twxyjiut", "flag": "QCTF{VALIDATE_USER_DATA_EMWAFUIVXX}", "directory": "abrqhjsass", "password": "bojigeboaq" }, { "login": "azetzopz", "flag": "QCTF{VALIDATE_USER_DATA_CKVTGNBOEL}", "directory": "cxupfpizch", "password": "efyudjelkm" }, { "login": "vbnwphdt", "flag": "QCTF{VALIDATE_USER_DATA_SILPLZSIJY}", "directory": "gdsmrsrsph", "password": "ouukogpfmc" }, { "login": "pqwlrwgf", "flag": "QCTF{VALIDATE_USER_DATA_VOQJMRTCKE}", "directory": "zanusvejwg", "password": "lizosywbkc" }, { "login": "cfldcxxj", "flag": "QCTF{VALIDATE_USER_DATA_PHCIOLWJLN}", "directory": "xfubxnipbh", "password": "unygusjloa" }, { "login": "msonzfsk", "flag": "QCTF{VALIDATE_USER_DATA_PJOOTPJHLE}", "directory": "mzqwjgqzsq", "password": "maidqwzpko" }, { "login": "iojwsojj", "flag": "QCTF{VALIDATE_USER_DATA_PASPWQFOXM}", "directory": "lptqqqybtm", "password": "rxibimzylt" }, { "login": "bbmkfpvm", "flag": "QCTF{VALIDATE_USER_DATA_NTEJXOCXXS}", "directory": "evrenmvplz", "password": "dhonznbnzq" }, { "login": "cyzduitp", "flag": "QCTF{VALIDATE_USER_DATA_ZJTWCVIUVH}", "directory": "ubeojfeazi", "password": "ffoqegleys" }, { "login": "ympebwyt", "flag": "QCTF{VALIDATE_USER_DATA_KPBNODYMMK}", "directory": "umdzjzcygj", "password": "umdszfalxp" }, { "login": "jujgydzk", "flag": "QCTF{VALIDATE_USER_DATA_EIJIMPLOWT}", "directory": "jqfxlaavjt", "password": "slcijqefur" }, { "login": "bmogyktd", "flag": "QCTF{VALIDATE_USER_DATA_MEDJUMCWDW}", "directory": "yaxoxhsszb", "password": "oiljzcjttl" }, { "login": "axhlycsq", "flag": "QCTF{VALIDATE_USER_DATA_OPZIWVUEQK}", "directory": "ghiiyudhep", "password": "famfqsigss" }, { "login": "jxculbbx", "flag": "QCTF{VALIDATE_USER_DATA_URVNEKATFJ}", "directory": "gdlhbyojym", "password": "dimtkzheyq" }, { "login": "itstxics", "flag": "QCTF{VALIDATE_USER_DATA_TQCZAOACSW}", "directory": "nlwodxhidq", "password": "hqwzyamnng" }, { "login": "sitcvamx", "flag": "QCTF{VALIDATE_USER_DATA_INPGOJHXQZ}", "directory": "hdjkzfpsti", "password": "uaqkqclmxj" }, { "login": "ewvktrmx", "flag": "QCTF{VALIDATE_USER_DATA_QGRRVYLHOM}", "directory": "atrldyagps", "password": "awhliwixpg" }, { "login": "rjmfohbq", "flag": "QCTF{VALIDATE_USER_DATA_GFHVZMDEMX}", "directory": "mgaldeajlh", "password": "djgkgpbthi" }, { "login": "yqfrkmrl", "flag": "QCTF{VALIDATE_USER_DATA_BHVOWMTARE}", "directory": "xflypsmfob", "password": "mwkxnrlrvz" }, { "login": "uejygwsh", "flag": "QCTF{VALIDATE_USER_DATA_RSXJCQLBMY}", "directory": "fyimxvtdfb", "password": "rmkdejofft" }, { "login": "hsexpqzl", "flag": "QCTF{VALIDATE_USER_DATA_HBDZHPYZXO}", "directory": "mqgmvhmnws", "password": "ypmmixcnqn" }, { "login": "hekclwfn", "flag": "QCTF{VALIDATE_USER_DATA_ZRTMBTVBWN}", "directory": "ceqgyrzmob", "password": "zhcakjpods" }, { "login": "bbeibgln", "flag": "QCTF{VALIDATE_USER_DATA_QGJCUQXYBZ}", "directory": "bjhodrmcvs", "password": "rrrjbqnaig" }, { "login": "wfgoesvv", "flag": "QCTF{VALIDATE_USER_DATA_AWCCYNCYVE}", "directory": "towbmvewav", "password": "dplgzhmkyo" }, { "login": "omdeoazd", "flag": "QCTF{VALIDATE_USER_DATA_PBQGCYXTKJ}", "directory": "wkppibyith", "password": "tomeudigug" }, { "login": "qgowjgfv", "flag": "QCTF{VALIDATE_USER_DATA_YZDIBZXDBR}", "directory": "cqbzzahnwp", "password": "lhrimgwcet" }, { "login": "fyctspfn", "flag": "QCTF{VALIDATE_USER_DATA_AJSUOJRPBB}", "directory": "gjxtmjfjuu", "password": "ijbvubnfvc" }, { "login": "onuhzodh", "flag": "QCTF{VALIDATE_USER_DATA_XRTXNGZGUU}", "directory": "hyathdccqg", "password": "oiadskahgu" }, { "login": "ljmhbwcu", "flag": "QCTF{VALIDATE_USER_DATA_HPDWJPWSKJ}", "directory": "iimeouysxb", "password": "uwxhoavxsc" }, { "login": "vxnvnmpv", "flag": "QCTF{VALIDATE_USER_DATA_DJWMORPZEE}", "directory": "zrentidpyd", "password": "uuuoolmaly" }, { "login": "eqxkgzwd", "flag": "QCTF{VALIDATE_USER_DATA_TCISWVETDH}", "directory": "jffvsdkubd", "password": "slsztirypi" }, { "login": "gzoytlge", "flag": "QCTF{VALIDATE_USER_DATA_SDHXMBAUHQ}", "directory": "gtpdjvnngj", "password": "iorumlosom" }, { "login": "eqbzvetg", "flag": "QCTF{VALIDATE_USER_DATA_KQNJXYXLBG}", "directory": "iuubbkvuar", "password": "tiyttscvut" }, { "login": "filxesbo", "flag": "QCTF{VALIDATE_USER_DATA_KLMQQRQSED}", "directory": "lynfxqnrcz", "password": "nptjcmhxhq" }, { "login": "rlwktqgv", "flag": "QCTF{VALIDATE_USER_DATA_NOUXFJMCEC}", "directory": "zfcjibefjy", "password": "pdtvvjgvcp" }, { "login": "wmusebnv", "flag": "QCTF{VALIDATE_USER_DATA_ZCBEDNQEGF}", "directory": "gdfnxgzdwc", "password": "hymgmvmfar" }, { "login": "gliptojd", "flag": "QCTF{VALIDATE_USER_DATA_MOHQUBMUDN}", "directory": "rtzjowsngg", "password": "byjjufcscd" }, { "login": "haofnihq", "flag": "QCTF{VALIDATE_USER_DATA_SOLLHJPVDJ}", "directory": "wvsguixupt", "password": "yhdoewusjh" }, { "login": "vahsasfn", "flag": "QCTF{VALIDATE_USER_DATA_SFQYOPZIGM}", "directory": "dcaljulbaq", "password": "ibqopzybnj" }, { "login": "htcafdpx", "flag": "QCTF{VALIDATE_USER_DATA_TMCVEVYVCC}", "directory": "tedjwfkvht", "password": "rohgkbygwu" }, { "login": "xbnpzgfw", "flag": "QCTF{VALIDATE_USER_DATA_NMCOQTYMHC}", "directory": "jmcyvovvfv", "password": "ntdejlpxix" }, { "login": "svwdkrbv", "flag": "QCTF{VALIDATE_USER_DATA_QXVLIFKUVR}", "directory": "xvmrzoiwly", "password": "oekuiaynnm" }, { "login": "pgledryg", "flag": "QCTF{VALIDATE_USER_DATA_QJVHRHWQJC}", "directory": "wyhzsnlgir", "password": "nnqjwvmntj" }, { "login": "vjwcjesd", "flag": "QCTF{VALIDATE_USER_DATA_HNVOMULKGS}", "directory": "kfhobbadmm", "password": "jklvixspdr" }, { "login": "rhhzayfk", "flag": "QCTF{VALIDATE_USER_DATA_UOPYLNWMGA}", "directory": "rbscgxaqtq", "password": "isiiyjclra" }, { "login": "phvutcdh", "flag": "QCTF{VALIDATE_USER_DATA_SGPEMIAQUR}", "directory": "spsujdepta", "password": "olahjoyxsm" }, { "login": "cizpqouc", "flag": "QCTF{VALIDATE_USER_DATA_ERDWWLXAVA}", "directory": "josmulhsun", "password": "mfqintsmtc" }, { "login": "oobrwqkt", "flag": "QCTF{VALIDATE_USER_DATA_ABMPXNPEKE}", "directory": "jlenctfuwp", "password": "uulxdcgkyz" }, { "login": "yokpldiq", "flag": "QCTF{VALIDATE_USER_DATA_XXLCPJMEZE}", "directory": "wvajjbtwfe", "password": "kwaocgbdhz" }, { "login": "rzvexljf", "flag": "QCTF{VALIDATE_USER_DATA_BGAGHSIWDO}", "directory": "xlidhnfsbm", "password": "igqyfuqejm" }, { "login": "upbsnofr", "flag": "QCTF{VALIDATE_USER_DATA_WRVOEQUEYC}", "directory": "qgyttjprxs", "password": "ezjdwoakzf" }, { "login": "issygntu", "flag": "QCTF{VALIDATE_USER_DATA_WCTVTDGIEJ}", "directory": "sanwaitkuk", "password": "fuxoipbyeo" }, { "login": "mjlzvqic", "flag": "QCTF{VALIDATE_USER_DATA_HLLIQRAJEL}", "directory": "aemxzttfnw", "password": "swqedeurvl" }, { "login": "unhixvwp", "flag": "QCTF{VALIDATE_USER_DATA_HJOQNERKZF}", "directory": "ennpncszfs", "password": "qzxerfkmnx" }, { "login": "gteqcwqw", "flag": "QCTF{VALIDATE_USER_DATA_RWRJSSSBFQ}", "directory": "ehszotblfl", "password": "adupggqycd" }, { "login": "dxspeodo", "flag": "QCTF{VALIDATE_USER_DATA_QYZFISBUXR}", "directory": "vyqlrxgjbe", "password": "cgcfadnfjt" }, { "login": "gzdzbdsj", "flag": "QCTF{VALIDATE_USER_DATA_PKWSQRHMBJ}", "directory": "dzegdzbmmn", "password": "gvgyvyazdo" }, { "login": "fxjdlicj", "flag": "QCTF{VALIDATE_USER_DATA_HHENJRJJQN}", "directory": "wssqxhgmkr", "password": "rebppanmcd" }, { "login": "fixjhsyb", "flag": "QCTF{VALIDATE_USER_DATA_RHXXDJBPNN}", "directory": "hqputksxus", "password": "ucredszvpy" }, { "login": "geaysspq", "flag": "QCTF{VALIDATE_USER_DATA_EJUNGICFGS}", "directory": "oakhzlvokf", "password": "chuzhwixiq" }, { "login": "iiodfuvp", "flag": "QCTF{VALIDATE_USER_DATA_JJESRREPXN}", "directory": "ydjsdxhznz", "password": "yiavisfdab" }, { "login": "xkofgbhq", "flag": "QCTF{VALIDATE_USER_DATA_JFCULJDIWT}", "directory": "morixwqkgn", "password": "viocmyhmzq" }, { "login": "zaxnjfsd", "flag": "QCTF{VALIDATE_USER_DATA_GSGQXHRIBU}", "directory": "esqzgssddn", "password": "hbeokziewe" }, { "login": "ywlexcru", "flag": "QCTF{VALIDATE_USER_DATA_NNWKUTMIWS}", "directory": "fzieshgbhp", "password": "ixdeydiqfa" }, { "login": "hrlebuje", "flag": "QCTF{VALIDATE_USER_DATA_MBSSSUMQTL}", "directory": "kreknuonvb", "password": "qzyutfssba" }, { "login": "tzeztsxj", "flag": "QCTF{VALIDATE_USER_DATA_DIAEYFPJUC}", "directory": "hstmfdyexr", "password": "acehdppjoh" }, { "login": "gqchwpbi", "flag": "QCTF{VALIDATE_USER_DATA_OPXZSVXBGN}", "directory": "pthfrdxgal", "password": "ihldfqlxut" }, { "login": "xmhrfeip", "flag": "QCTF{VALIDATE_USER_DATA_MRKRSHUSKV}", "directory": "qofhljhgee", "password": "bxgfvomigz" }, { "login": "sidxodmf", "flag": "QCTF{VALIDATE_USER_DATA_EFULQKTDFK}", "directory": "llqznqwfie", "password": "ynpvshuahg" }, { "login": "emnjfhfq", "flag": "QCTF{VALIDATE_USER_DATA_NJLICBXLTD}", "directory": "fydnhdgrdp", "password": "ttqllwveer" }, { "login": "gconalga", "flag": "QCTF{VALIDATE_USER_DATA_RJXWDCSLZA}", "directory": "rliwhaomsp", "password": "nctlknswdw" }, { "login": "pjzocghl", "flag": "QCTF{VALIDATE_USER_DATA_HPKJYMVOBM}", "directory": "pmqppattpr", "password": "urilpihyrk" }, { "login": "vzlcfpkz", "flag": "QCTF{VALIDATE_USER_DATA_QHWZRAMSLT}", "directory": "yjchrqwuzs", "password": "ixffsxnkfv" }, { "login": "ffkcyzlc", "flag": "QCTF{VALIDATE_USER_DATA_EUEGJMTAYR}", "directory": "hycrpkvtie", "password": "psfabjkiqo" }, { "login": "qdpayqyu", "flag": "QCTF{VALIDATE_USER_DATA_TYLNQPCQMF}", "directory": "sktywtzkcg", "password": "nsuyaxmomq" }, { "login": "emrunddv", "flag": "QCTF{VALIDATE_USER_DATA_MMESAFDQXK}", "directory": "dvgbrxqfyr", "password": "mzesisnayt" }, { "login": "ixwlqkic", "flag": "QCTF{VALIDATE_USER_DATA_GEARQVYFAI}", "directory": "bsrjdvedce", "password": "xdwjfhldfh" }, { "login": "wjqhoprd", "flag": "QCTF{VALIDATE_USER_DATA_FYOBFUAROE}", "directory": "nrfadwkemt", "password": "bfqljuekft" }, { "login": "tldwgeet", "flag": "QCTF{VALIDATE_USER_DATA_KAHHZHNYYB}", "directory": "jkpobqljfz", "password": "kpiczogwwk" }, { "login": "odpqqixs", "flag": "QCTF{VALIDATE_USER_DATA_LURMIANUAV}", "directory": "hmrqhanxio", "password": "ihulbbuvox" }, { "login": "hmfllhsq", "flag": "QCTF{VALIDATE_USER_DATA_WZFDZHNUUB}", "directory": "sljvlubhuy", "password": "tlqpbjfzym" }, { "login": "qsgmfxme", "flag": "QCTF{VALIDATE_USER_DATA_ZDOTXHLZZB}", "directory": "tktogiipcm", "password": "esiskppddn" }, { "login": "nctkhsmu", "flag": "QCTF{VALIDATE_USER_DATA_SVSKBUNMON}", "directory": "uesdicigrp", "password": "cppzffvhjk" }, { "login": "bqfyiblq", "flag": "QCTF{VALIDATE_USER_DATA_FTIPUOTZIQ}", "directory": "itltdmoepz", "password": "uodozmjtyv" }, { "login": "ixfcflvu", "flag": "QCTF{VALIDATE_USER_DATA_GITOWMKORE}", "directory": "oivoobjhty", "password": "xwfbywhkdk" }, { "login": "psvmland", "flag": "QCTF{VALIDATE_USER_DATA_QHPJVQUOVC}", "directory": "gqpidbtjqn", "password": "usqshuaxmh" }, { "login": "jkdqqcpm", "flag": "QCTF{VALIDATE_USER_DATA_XCGGEJAEVR}", "directory": "hbpmvfqqao", "password": "uyabqdbotk" }, { "login": "xnwyobfe", "flag": "QCTF{VALIDATE_USER_DATA_HZXFONNSKW}", "directory": "rbxkpmtjfc", "password": "ucmrnudwaq" }, { "login": "fxoukrgp", "flag": "QCTF{VALIDATE_USER_DATA_XLDGIKYBHD}", "directory": "lojanekpcj", "password": "mvauggpvat" }, { "login": "kmadytph", "flag": "QCTF{VALIDATE_USER_DATA_FYYIOLBBST}", "directory": "ifdtiygbdx", "password": "uubecbprbq" }, { "login": "pvzxvrir", "flag": "QCTF{VALIDATE_USER_DATA_CSHRICFSVD}", "directory": "qnbgdzsoba", "password": "daevwxuhzk" }, { "login": "jbxbnmhg", "flag": "QCTF{VALIDATE_USER_DATA_SUZNKTLLQH}", "directory": "pzfpiozwhn", "password": "jvknmqkqkt" }, { "login": "iwwotqzx", "flag": "QCTF{VALIDATE_USER_DATA_DUUQNHFAZW}", "directory": "zhmrdrbpss", "password": "qcohqderyy" }, { "login": "tqjhqsrx", "flag": "QCTF{VALIDATE_USER_DATA_QAXSDGZJZA}", "directory": "cgndfsvskh", "password": "gwxgubxkxs" }, { "login": "jhcmcwxo", "flag": "QCTF{VALIDATE_USER_DATA_SXGKEYVLNR}", "directory": "ywylxktfxm", "password": "lyvzduqhpm" }, { "login": "dpexjdix", "flag": "QCTF{VALIDATE_USER_DATA_CJHBQLOHBC}", "directory": "hugwoplhoo", "password": "vqhalmqhnc" }, { "login": "ipudeqsg", "flag": "QCTF{VALIDATE_USER_DATA_LWUJQPGZBR}", "directory": "zigdoysrqw", "password": "hoapidvdbm" }, { "login": "ixyziatb", "flag": "QCTF{VALIDATE_USER_DATA_OQVVYNUHYY}", "directory": "malfbeberp", "password": "djexejcmgs" }, { "login": "jpnmiacv", "flag": "QCTF{VALIDATE_USER_DATA_SPAHVXBQIL}", "directory": "gfjpspbznc", "password": "sdsbqfuygv" }, { "login": "giqagibm", "flag": "QCTF{VALIDATE_USER_DATA_ZFOUMAKCUN}", "directory": "gjeugvzbsm", "password": "zahuagkjiq" }, { "login": "xlewwpvn", "flag": "QCTF{VALIDATE_USER_DATA_YQUTSHTEGX}", "directory": "vftrkhnqmp", "password": "iqbqkdnngh" }, { "login": "tmvvzimq", "flag": "QCTF{VALIDATE_USER_DATA_WULLZRXOHO}", "directory": "zhallhrsio", "password": "ubvvdfqkgr" }, { "login": "kfvtuhfm", "flag": "QCTF{VALIDATE_USER_DATA_GKZUWBDQJD}", "directory": "fidljpepxf", "password": "tlxhieawjc" }, { "login": "ntqjeihb", "flag": "QCTF{VALIDATE_USER_DATA_QHFPSXGVUH}", "directory": "mgimsfeuuu", "password": "qypgoxcwmh" }, { "login": "awlgtlyu", "flag": "QCTF{VALIDATE_USER_DATA_VNFDTJUPGX}", "directory": "pycomokczb", "password": "upbhwsgxnt" }, { "login": "fuohtoju", "flag": "QCTF{VALIDATE_USER_DATA_BLUDZDOEYC}", "directory": "mkkeisvtob", "password": "tkowhgtshv" }, { "login": "odtgmpgk", "flag": "QCTF{VALIDATE_USER_DATA_OXSLCJQJPU}", "directory": "cicowuzpnj", "password": "zazqujkjeo" }, { "login": "tqooddla", "flag": "QCTF{VALIDATE_USER_DATA_POYIALXXTA}", "directory": "wlefxgwdyf", "password": "orssfopwnt" }, { "login": "trejynvz", "flag": "QCTF{VALIDATE_USER_DATA_XBEQZWKZDT}", "directory": "pezkyilotp", "password": "ltletyvgpx" }, { "login": "ngvbgqoq", "flag": "QCTF{VALIDATE_USER_DATA_ORVEIIZFWU}", "directory": "mxyvirmkcx", "password": "itkzlisbxn" }, { "login": "svlfsdwp", "flag": "QCTF{VALIDATE_USER_DATA_RDPCKNODDL}", "directory": "nkyysnahri", "password": "ctlzbokzpe" }, { "login": "mcfxezus", "flag": "QCTF{VALIDATE_USER_DATA_PBILKPYAXQ}", "directory": "olkfpekcwr", "password": "dsuupivipw" }, { "login": "sngsxrss", "flag": "QCTF{VALIDATE_USER_DATA_GNHJLOHHLF}", "directory": "iibxidmiro", "password": "oajtwpzkaz" }, { "login": "czdstyfq", "flag": "QCTF{VALIDATE_USER_DATA_DAUDKZMAIW}", "directory": "qdgosdcxea", "password": "dfkujhziai" }, { "login": "pfodiiur", "flag": "QCTF{VALIDATE_USER_DATA_CXVWPFAQGC}", "directory": "tmrpbnzomt", "password": "hibiapmzws" }, { "login": "mamrsjbk", "flag": "QCTF{VALIDATE_USER_DATA_GBOZXZXEWP}", "directory": "adbhbrzwbi", "password": "wqnzknclkd" }, { "login": "ilbdkxpr", "flag": "QCTF{VALIDATE_USER_DATA_AZZVXNZONO}", "directory": "qpdqejakep", "password": "mfpjixiopo" }, { "login": "vrhjkttq", "flag": "QCTF{VALIDATE_USER_DATA_WZGYAWTOWG}", "directory": "duxooqyena", "password": "yhkurfrjnh" }, { "login": "vhxrbqha", "flag": "QCTF{VALIDATE_USER_DATA_ACTNHMKLXX}", "directory": "kcufdjnxde", "password": "ukxibrucdb" }, { "login": "hbmoieaw", "flag": "QCTF{VALIDATE_USER_DATA_NGTQRWVXNG}", "directory": "iyefnkqfmx", "password": "twfvdvrnri" }, { "login": "tyjykptl", "flag": "QCTF{VALIDATE_USER_DATA_VIGFFONGYK}", "directory": "rsvdpwcssf", "password": "nbbkkvexfn" }, { "login": "mcycnybm", "flag": "QCTF{VALIDATE_USER_DATA_SUYKIAZHZV}", "directory": "lwvfumtpkk", "password": "jlpsyygevw" }, { "login": "tlhzxddl", "flag": "QCTF{VALIDATE_USER_DATA_SBFYCKOYUG}", "directory": "dhhmquhixa", "password": "peniummydl" }, { "login": "cmkbjura", "flag": "QCTF{VALIDATE_USER_DATA_UDQTQTDAOM}", "directory": "xkzxquezvd", "password": "mrucogrlwg" }, { "login": "fglzjwbb", "flag": "QCTF{VALIDATE_USER_DATA_SJUYHJOMIQ}", "directory": "vbgbozobqi", "password": "uugzirhjms" }, { "login": "dvqhsakw", "flag": "QCTF{VALIDATE_USER_DATA_EKKNVRBAKM}", "directory": "dtgjgyotje", "password": "cztpdsdjys" }, { "login": "fzadtaju", "flag": "QCTF{VALIDATE_USER_DATA_GWQMNDUHVA}", "directory": "nskpxkjynj", "password": "ocxehawghl" }, { "login": "slzxminc", "flag": "QCTF{VALIDATE_USER_DATA_XFCFBEJONQ}", "directory": "kvafglybgr", "password": "wqtoedkyek" }, { "login": "zurpinvf", "flag": "QCTF{VALIDATE_USER_DATA_UFCWWIPADJ}", "directory": "ciajxhnqst", "password": "bamjggoutr" }, { "login": "fujvqalu", "flag": "QCTF{VALIDATE_USER_DATA_HJIYZQOIKR}", "directory": "omahxsywye", "password": "cepnunzfng" }, { "login": "gjssgkqp", "flag": "QCTF{VALIDATE_USER_DATA_LLXROXHUIX}", "directory": "qiqfjxetat", "password": "khqxyyepqd" }, { "login": "bfuckcmf", "flag": "QCTF{VALIDATE_USER_DATA_GVJCATLNSH}", "directory": "hacyqhxwfn", "password": "gllachyanf" }, { "login": "kvyzvvzb", "flag": "QCTF{VALIDATE_USER_DATA_KQYZXUBSAG}", "directory": "snjmcsdrkz", "password": "yepjjjxlso" }, { "login": "terkjkwf", "flag": "QCTF{VALIDATE_USER_DATA_IHAELGYBUK}", "directory": "joxdpisndr", "password": "gvklgnhbqn" }, { "login": "rnxjzrqn", "flag": "QCTF{VALIDATE_USER_DATA_JJEPMPWXRE}", "directory": "pbwhivstzw", "password": "agbkvumhsv" }, { "login": "mzqtefip", "flag": "QCTF{VALIDATE_USER_DATA_MXSTYGWGAU}", "directory": "ynviomafgn", "password": "jgurhkfwaa" }, { "login": "tcdjjisq", "flag": "QCTF{VALIDATE_USER_DATA_ZLRQZQTZXO}", "directory": "cdjpmhstia", "password": "sdgegxutrd" }, { "login": "cvecjytx", "flag": "QCTF{VALIDATE_USER_DATA_HWFZOXFMBR}", "directory": "betvmhhnpy", "password": "atoqmwiuld" }, { "login": "qiwoaxie", "flag": "QCTF{VALIDATE_USER_DATA_BEUTWMUKNZ}", "directory": "xhfgdrafpz", "password": "eztzdpvacx" }, { "login": "qarueoeg", "flag": "QCTF{VALIDATE_USER_DATA_ASPLGWFTTZ}", "directory": "sytctwheuz", "password": "eitpfhpnrc" }, { "login": "gmxbxvmz", "flag": "QCTF{VALIDATE_USER_DATA_PBHCNFXZLU}", "directory": "mutbfeaewh", "password": "cvzvphkqxh" }, { "login": "caeopyjy", "flag": "QCTF{VALIDATE_USER_DATA_XGNSMPSGDH}", "directory": "rvekdtrvjg", "password": "xcozdkytfr" }, { "login": "eillwftz", "flag": "QCTF{VALIDATE_USER_DATA_OPKLMFHJCV}", "directory": "wbumrqbbdm", "password": "ogvzetmucn" }, { "login": "tzvtbslx", "flag": "QCTF{VALIDATE_USER_DATA_WLHFYACGXV}", "directory": "mdyxpuacff", "password": "ottshjkozq" }, { "login": "xxqznvlq", "flag": "QCTF{VALIDATE_USER_DATA_WHIMLLTECJ}", "directory": "iogvqfhkws", "password": "ziwfwwohki" }, { "login": "crvhnhnz", "flag": "QCTF{VALIDATE_USER_DATA_BSWFJRGLAD}", "directory": "trevhmficx", "password": "fdhccguxot" }, { "login": "wdrtpbjm", "flag": "QCTF{VALIDATE_USER_DATA_OMHDNUOUCF}", "directory": "bfsybmhvjt", "password": "furrmlbnbl" }, { "login": "nehhjwry", "flag": "QCTF{VALIDATE_USER_DATA_AMIKOUCXFZ}", "directory": "caaggopkyz", "password": "ojvtyuifix" }, { "login": "gxrqvalr", "flag": "QCTF{VALIDATE_USER_DATA_JYXYIFBARJ}", "directory": "swzgohtesb", "password": "jzizbezrsu" }, { "login": "mnmpewsy", "flag": "QCTF{VALIDATE_USER_DATA_NEISCHLXCF}", "directory": "jtjcsroxdi", "password": "xmxyuilbrg" }, { "login": "qytwfctt", "flag": "QCTF{VALIDATE_USER_DATA_REOKAWZSTP}", "directory": "dtsjeqspsm", "password": "khhgcrkchk" }, { "login": "rvtxtqwh", "flag": "QCTF{VALIDATE_USER_DATA_DOLHRKFMVB}", "directory": "rgpmrwkobt", "password": "sjxhaihvwq" }, { "login": "vlpqchnn", "flag": "QCTF{VALIDATE_USER_DATA_NGAMXKAXZM}", "directory": "vkawbnvuys", "password": "qztkznfrjh" }, { "login": "iyvgluhj", "flag": "QCTF{VALIDATE_USER_DATA_XEZZOBLHNP}", "directory": "nitwnkldhu", "password": "hhmaookrpq" }, { "login": "jxuufiua", "flag": "QCTF{VALIDATE_USER_DATA_GIEPBSSOCG}", "directory": "pvfskihuot", "password": "gmajlzgcpg" }, { "login": "vbafylmt", "flag": "QCTF{VALIDATE_USER_DATA_TCDUNTLOYJ}", "directory": "fokopzwuvn", "password": "tzxnyuyyxj" }, { "login": "uuogcpyt", "flag": "QCTF{VALIDATE_USER_DATA_PZEKNWCPOT}", "directory": "qiwgsajios", "password": "ndoadbrelb" }, { "login": "tnfqyiga", "flag": "QCTF{VALIDATE_USER_DATA_HECCXDEBCG}", "directory": "lzzmmpqirp", "password": "fprtcapzdh" }, { "login": "vifcsiza", "flag": "QCTF{VALIDATE_USER_DATA_BJZNFWFXSY}", "directory": "tipuhvprah", "password": "xdgspixheq" }, { "login": "thovdtco", "flag": "QCTF{VALIDATE_USER_DATA_NLRZLJRXNC}", "directory": "ownaobwhxw", "password": "feqiwydide" }, { "login": "pjhiedqo", "flag": "QCTF{VALIDATE_USER_DATA_NDHFRRRBEB}", "directory": "znpjirttxj", "password": "zfiyjlmguy" }, { "login": "dhhwxqck", "flag": "QCTF{VALIDATE_USER_DATA_LQLLSOYPTN}", "directory": "cpxwjburzv", "password": "bsdyybpbit" }, { "login": "zmriwjal", "flag": "QCTF{VALIDATE_USER_DATA_EBXWIMZNTI}", "directory": "uvvqbmaibf", "password": "lwusgeoent" }, { "login": "jjwmqxhk", "flag": "QCTF{VALIDATE_USER_DATA_FSHQMYMYZB}", "directory": "kkodknadja", "password": "sbdhlkzrcf" }, { "login": "dvgivyqc", "flag": "QCTF{VALIDATE_USER_DATA_ROXQQSDBFZ}", "directory": "sywmmqbmsh", "password": "jxtswfzboq" }, { "login": "ecltikog", "flag": "QCTF{VALIDATE_USER_DATA_GXCSERODTR}", "directory": "toaocnspni", "password": "xmelwqxgmr" }, { "login": "wsdnhzbr", "flag": "QCTF{VALIDATE_USER_DATA_XZIOOIQMGQ}", "directory": "uvkwxndlju", "password": "sztxsdykah" }, { "login": "nwetkxvp", "flag": "QCTF{VALIDATE_USER_DATA_SACJROZYAF}", "directory": "rzgkcdipnd", "password": "rsmmvvpfjx" }, { "login": "nflzueor", "flag": "QCTF{VALIDATE_USER_DATA_UNWPNAYPAO}", "directory": "umltymqtex", "password": "rjdjpwxmaj" } ]
d289f1226f03620f327771b55bb980c3fce63650
{ "blob_id": "d289f1226f03620f327771b55bb980c3fce63650", "branch_name": "refs/heads/master", "committer_date": "2018-03-14T06:43:54", "content_id": "f19d6de4d949811410af3c4aca028c3af9a08924", "detected_licenses": [ "MIT" ], "directory_id": "4aa79c6400a98dba78273d7d172dae19e0e1ffd4", "extension": "py", "filename": "generate.py", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 101146, "license": "MIT", "license_type": "permissive", "path": "/tasks-deploy/symlink-archive/generate.py", "provenance": "stack-edu-0061.json.gz:406282", "repo_name": "0MazaHacka0/qctf-starter-2018", "revision_date": "2018-03-14T06:43:54", "revision_id": "f4eef0fd41d777661b9fbcc61dcee9709d9f6268", "snapshot_id": "b72d34b882e7b6c0e7e32b59d4dd931f5dea4a0a", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/0MazaHacka0/qctf-starter-2018/f4eef0fd41d777661b9fbcc61dcee9709d9f6268/tasks-deploy/symlink-archive/generate.py", "visit_date": "2020-04-08T09:18:26.837344", "added": "2024-11-19T03:10:23.305658+00:00", "created": "2018-03-14T06:43:54", "int_score": 3, "score": 2.6875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0079.json.gz" }
<?php /* Hashids http://hashids.org/php (c) 2013 Ivan Akimov https://github.com/ivanakimov/hashids.php hashids may be freely distributed under the MIT license. */ namespace Classes; /** * HashGenerator is a contract for generating hashes */ interface HashGenerator { /** * Encodes a variable number of parameters to generate a hash * * @param mixed ... * * @return string the generated hash */ public function encode(); /** * Decodes a hash to the original parameter values * * @param string $hash the hash to decode * * @return array */ public function decode($hash); /** * Encodes hexadecimal values to generate a hash * * @param string $str hexadecimal string * * @return string the generated hash */ public function encode_hex($str); /** * Decodes hexadecimal hash * * @param string $hash * * @return string hexadecimal string */ public function decode_hex($hash); }
7bbacf952b95a01959366093d734cdcee7d55d38
{ "blob_id": "7bbacf952b95a01959366093d734cdcee7d55d38", "branch_name": "refs/heads/master", "committer_date": "2019-02-06T14:45:55", "content_id": "367c8824912d93b5d820928a7e1c478da86427b3", "detected_licenses": [ "MIT" ], "directory_id": "f24a8bfa34a7ac054ee4db0857efd12e819b8902", "extension": "php", "filename": "HashGenerator.php", "fork_events_count": 4, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 153937273, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 961, "license": "MIT", "license_type": "permissive", "path": "/Classes/HashGenerator.php", "provenance": "stack-edu-0052.json.gz:859202", "repo_name": "olton/Sandbox", "revision_date": "2019-02-06T14:45:55", "revision_id": "cb4038980f012aa02d1993fa3c879f28b9d29742", "snapshot_id": "76393fe2f2eae502cd1f54ac4089e51f2d19cf96", "src_encoding": "UTF-8", "star_events_count": 14, "url": "https://raw.githubusercontent.com/olton/Sandbox/cb4038980f012aa02d1993fa3c879f28b9d29742/Classes/HashGenerator.php", "visit_date": "2020-04-02T02:56:54.484034", "added": "2024-11-18T23:31:48.690945+00:00", "created": "2019-02-06T14:45:55", "int_score": 3, "score": 3.171875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0070.json.gz" }
/** * Created by Administrator on 2017/5/31. */ let express = require('express'); let router = express.Router(); let URL = require('url'); /* GET home page. */ router.get('/', function(req, res, next) { let marketIfTouchedOrderReq = URL.parse(req.url, true).query; let contractName=marketIfTouchedOrderReq.contractName.replace(" ","+"); let direction=marketIfTouchedOrderReq.direction; if(direction==="buy") direction=Direction.Buy; else if(direction==="sell") direction=Direction.Sell; let openclose=marketIfTouchedOrderReq.openclose; if(openclose==="open") openclose=OpenCloseFlagType.Open; else if(openclose==="close") openclose=OpenCloseFlagType.Close; else if(openclose==="closeToday") openclose=OpenCloseFlagType.CloseToday; else if(openclose==="closeYesterday") openclose=OpenCloseFlagType.CloseYesterday; let volume=parseInt(marketIfTouchedOrderReq.volume); let stopPriceCondition=marketIfTouchedOrderReq.stopPriceCondition; if(stopPriceCondition==="gt") { stopPriceCondition=ContingentConditionType.LastPriceGreaterThanStopPrice; }else if(stopPriceCondition==="gte") { stopPriceCondition=ContingentConditionType.LastPriceGreaterEqualStopPrice; }else if(stopPriceCondition==="lt") { stopPriceCondition=ContingentConditionType.LastPriceLesserThanStopPrice; }else if(stopPriceCondition==="lte") { stopPriceCondition=ContingentConditionType.LastPriceLesserEqualStopPrice; } let stopPrice=parseFloat(marketIfTouchedOrderReq.stopPrice); let lastTick = global.NodeQuant.StrategyEngine.Symbol_LastTickDic[contractName]; global.NodeQuant.MainEngine.SendMarketIfTouchedOrder(lastTick.clientName,contractName,direction,openclose,volume,stopPriceCondition,stopPrice,function (clientName,ret) { if(ret===-99) res.render('index', { title: 'SendMarketIfTouchedOrder Failed.Error: Trader client have not logined' }); else if(ret!==0) res.render('index', { title: 'SendMarketIfTouchedOrder failed, err:'+ret }); else res.render('index', { title: 'SendMarketIfTouchedOrder successfully'}); }); }); module.exports = router;
308ddfb32d08e944933d9226031aa9242c51ad93
{ "blob_id": "308ddfb32d08e944933d9226031aa9242c51ad93", "branch_name": "refs/heads/master", "committer_date": "2018-03-02T13:36:38", "content_id": "e9115a082cd1b1b91e36e1778d71b0f70c096872", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f0952549e966efb186de9d028006e2f165ec5201", "extension": "js", "filename": "sendMarketIfTouchedOrder.js", "fork_events_count": 0, "gha_created_at": "2018-03-02T09:35:05", "gha_event_created_at": "2018-03-02T09:35:05", "gha_language": null, "gha_license_id": "Apache-2.0", "github_id": 123560066, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 2264, "license": "Apache-2.0", "license_type": "permissive", "path": "/nodequant/routes/test/sendMarketIfTouchedOrder.js", "provenance": "stack-edu-0039.json.gz:337193", "repo_name": "whitebaby/nodequant", "revision_date": "2018-03-02T13:36:38", "revision_id": "3d6542b8356e2e6838b4eefb9979c287c8135884", "snapshot_id": "0e4f905fa5df67b34caadf6fc533786d5b111c96", "src_encoding": "UTF-8", "star_events_count": 2, "url": "https://raw.githubusercontent.com/whitebaby/nodequant/3d6542b8356e2e6838b4eefb9979c287c8135884/nodequant/routes/test/sendMarketIfTouchedOrder.js", "visit_date": "2021-01-25T13:19:20.539076", "added": "2024-11-19T02:43:48.719912+00:00", "created": "2018-03-02T13:36:38", "int_score": 2, "score": 2.25, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0057.json.gz" }
import tensorflow as tf OBSTACLE_THRESHOLD = 0.6 # probably need to tune it later, used when output is not softmaxed def is_obstacle(voxel): return voxel >= OBSTACLE_THRESHOLD def is_free(voxel): return (voxel < OBSTACLE_THRESHOLD) & (voxel >= 0) # just check o be compatible with unknown voxels def safe_log(value, epsilon=1e-9): return tf.log(tf.maximum(value, epsilon)) def tf_labels_to_info_gain(labels, logits, alpha=0.2): # int 16 stačí, protože je to index binu pro hloubku last_axis = len(logits.shape) - 1 label_idx = tf.expand_dims(tf.argmax(labels, axis=last_axis), last_axis) label_idx = tf.cast(label_idx, dtype=tf.int32) # expanding back to have size in dim 4 (reduced by argmax) tiling_shape = list(labels.shape) tiling_shape[0:last_axis] = [1 for i in range(last_axis)] tiling_shape[last_axis] = tiling_shape[last_axis].value label_idx = tf.tile(label_idx, tiling_shape) prob_bin_idx = tf.range(logits.shape[last_axis], dtype=tf.int32) for i in range(last_axis): prob_bin_idx = tf.expand_dims(prob_bin_idx, 0) # prob_bin_idx = tf.transpose(prob_bin_idx) tiling_shape = [i.value for i in labels.shape] tiling_shape[0] = tf.shape(labels)[0] tiling_shape[last_axis] = 1 prob_bin_idx = tf.tile(prob_bin_idx, tiling_shape) difference = (label_idx - prob_bin_idx) ** 2 difference = tf.cast(difference, dtype=tf.float32) info_gain = tf.exp(-alpha * difference) return info_gain def information_gain_loss(labels, logits, alpha=0.2): # unknown voxels have -1 values, so we unify it with free voxels here for BC labels_obstacles = tf.maximum(labels, tf.zeros_like(labels)) loss = tf.reduce_mean( tf.nn.softmax_cross_entropy_with_logits( labels=tf_labels_to_info_gain(labels=labels_obstacles, logits=logits, alpha=alpha), logits=logits)) return tf.identity(loss, 'loss') def information_gain_loss_with_undefined(labels, logits, alpha=0.2): # todo: fix, wrong dimensions, does not work # unknown voxels have -1 values, so we unify it with free voxels here for BC labels_obstacles = tf.maximum(labels, tf.zeros_like(labels)) loss = tf.reduce_mean( tf.nn.weighted_cross_entropy_with_logits( targets=tf_labels_to_info_gain(labels=labels_obstacles, logits=logits, alpha=alpha), logits=logits, pos_weight=tf.not_equal(labels, - tf.ones_like(labels)) ) ) return tf.identity(loss, 'loss') def softmax_loss(labels, logits): labels_obstacles = tf.maximum(labels, tf.zeros_like(labels)) loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(labels=labels_obstacles, logits=logits)) return tf.identity(loss, 'loss') def l2_voxelwise_loss_with_undefined(labels, logits): # unknown voxels have -1 values, so we unify it with free voxels here for BC # print(labels.shape) print(logits.shape) labels_obstacles = tf.maximum(labels, tf.zeros_like(labels)) print(labels_obstacles.shape) print(tf.not_equal(labels, - tf.ones_like(labels)).shape) loss = tf.reduce_mean( tf.losses.mean_squared_error( labels=labels_obstacles, predictions=tf.nn.softmax(logits), weights=tf.not_equal(labels, - tf.ones_like(labels)) ) ) # masking by weighted crossentropy, unknown values give us 0, known values give us 1 return tf.identity(loss, 'loss') def get_known_mask(labels): return tf.cast(tf.not_equal(labels, - tf.ones_like(labels)), dtype=tf.float32) def logistic_voxelwise_loss_with_undefined(labels, predicted): # this loss is class balanced # unknown voxels have -1 values, so we unify it with free voxels here for BC # print(labels.shape) print(predicted.shape) labels_shifted = tf.where(tf.equal(labels, tf.zeros_like(labels)), - tf.ones_like(labels), labels) # so 1 is obstacle and -1 is free known_mask = get_known_mask(labels) # now I weight classes so all weights sum to one and after weighting they are balanced # 0.5 weight comes to free voxels # 0.5 weight comes to occupied voxels occupied_voxels_num = tf.reduce_sum(tf.cast(tf.equal(labels, 1), dtype=tf.float32), [1, 2, 3], keep_dims=True) free_voxels_num = tf.reduce_sum(tf.cast(tf.equal(labels, 0), dtype=tf.float32), [1, 2, 3], keep_dims=True) occupied_mask = tf.ones_like(labels) * (1 / (2 * occupied_voxels_num)) free_mask = tf.ones_like(labels) * (1 / (2 * free_voxels_num)) known_mask = tf.where(tf.equal(labels, 1), occupied_mask, known_mask) known_mask = tf.where(tf.equal(labels, 0), free_mask, known_mask) print(labels_shifted.shape) print(labels_shifted.dtype) print(known_mask.dtype) # known_mask = tf.Print(known_mask, [tf.reduce_sum(known_mask)], 'known mask sum: ') # https://www.tensorflow.org/api_docs/python/tf/log1p is log(1 + x) logistic_loss = known_mask * tf.log1p(tf.exp(- labels_shifted * predicted)) loss = tf.reduce_mean(tf.reduce_sum(logistic_loss, [1, 2, 3])) # loss is too low is I just use mean # loss = tf.Print(loss, [loss], 'loss value: ') return tf.identity(loss, 'loss') def softmax_voxelwise_loss_with_undefined(labels, predicted): # loss from https://arxiv.org/pdf/1604.00449.pdf, but I use reduce # unknown voxels have -1 values, so we unify it with free voxels here for BC # because I use equality to obstacle and free, I don't need masking # to be independent on batch size, I sum all voxels per sample, but mean per samples in batch # todo: zeptat se, jestli to u toho logu mám maxovat nebo ne, a jak řešit záporné hodnoty print(predicted.shape) # predicted data are sometimes # predicted = tf.Print(predicted, [predicted]) positives = tf.cast(tf.equal(labels, 1), dtype=tf.float32) * safe_log(predicted) # positives = tf.Print(positives, [positives]) negatives = tf.cast(tf.equal(labels, 0), dtype=tf.float32) * safe_log(1 - predicted) # negatives = tf.Print(negatives, [negatives]) loss = tf.reduce_mean(tf.reduce_sum(positives + negatives, [1, 2, 3])) return tf.identity(loss, 'loss')
7a653c3f4ae98398843648a088af6c97b2822ed5
{ "blob_id": "7a653c3f4ae98398843648a088af6c97b2822ed5", "branch_name": "refs/heads/master", "committer_date": "2020-01-27T23:25:23", "content_id": "df96a828a3dfe69c9ff2abfa4e01f8548b69ab69", "detected_licenses": [ "MIT" ], "directory_id": "d836fa5fe7a122a1b03688a0c8b5c31cff3e7a68", "extension": "py", "filename": "losses.py", "fork_events_count": 2, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 127133984, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 6229, "license": "MIT", "license_type": "permissive", "path": "/losses.py", "provenance": "stack-edu-0055.json.gz:368806", "repo_name": "racinmat/depth-voxelmap-estimation", "revision_date": "2020-01-27T23:25:23", "revision_id": "1f511cf79ebfe23bbe7a084672754d8ad366f1d9", "snapshot_id": "d2ab3b68a5a986d5d16071b93b0c077b58803e3a", "src_encoding": "UTF-8", "star_events_count": 2, "url": "https://raw.githubusercontent.com/racinmat/depth-voxelmap-estimation/1f511cf79ebfe23bbe7a084672754d8ad366f1d9/losses.py", "visit_date": "2020-03-06T23:31:39.860761", "added": "2024-11-18T22:36:45.531164+00:00", "created": "2020-01-27T23:25:23", "int_score": 3, "score": 2.640625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0073.json.gz" }
package controllermanifest import ( "bytes" "encoding/json" "io" "github.com/rancher/fleet/pkg/config" "github.com/rancher/wrangler/pkg/yaml" ) type Options struct { Namespace string ManagerImage string AgentImage string CRDsOnly bool Output string } func OperatorManifest(output io.Writer, opts *Options) error { if opts == nil { opts = &Options{} } assignDefaults(opts) cfg, err := marshalConfig(opts) if err != nil { return err } objs, err := objects(opts.Namespace, opts.ManagerImage, cfg, opts.CRDsOnly) if err != nil { return err } data, err := yaml.Export(objs...) if err != nil { return err } _, err = output.Write(data) return err } func marshalConfig(opts *Options) (string, error) { config := config.Config{ AgentImage: opts.AgentImage, } buf := &bytes.Buffer{} enc := json.NewEncoder(buf) enc.SetIndent("", " ") if err := enc.Encode(config); err != nil { return "", err } return string(buf.Bytes()), nil } func assignDefaults(opts *Options) { if opts.AgentImage == "" { opts.AgentImage = config.DefaultAgentImage } if opts.ManagerImage == "" { opts.ManagerImage = config.DefaultManagerImage } if opts.Namespace == "" { opts.Namespace = config.DefaultNamespace } }
401c48b2fd002b71b887d1dab241b720453023ae
{ "blob_id": "401c48b2fd002b71b887d1dab241b720453023ae", "branch_name": "refs/heads/master", "committer_date": "2021-09-23T05:03:53", "content_id": "316517651d35e0c5c1abe3c09a38818b839c0c69", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5c11462865150cfaf0b8c550349e28c9c735c622", "extension": "go", "filename": "server.go", "fork_events_count": 1, "gha_created_at": "2020-03-29T15:57:50", "gha_event_created_at": "2021-04-07T06:21:41", "gha_language": "Go", "gha_license_id": "Apache-2.0", "github_id": 251071900, "is_generated": false, "is_vendor": false, "language": "Go", "length_bytes": 1260, "license": "Apache-2.0", "license_type": "permissive", "path": "/modules/cli/controllermanifest/server.go", "provenance": "stack-edu-0015.json.gz:442498", "repo_name": "ibuildthecloud/fleet", "revision_date": "2021-09-23T05:03:53", "revision_id": "decd34c620b02396515b6c8c2b1bda044dac86d9", "snapshot_id": "3b668f45712678edff843002d638a66f6211d79d", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/ibuildthecloud/fleet/decd34c620b02396515b6c8c2b1bda044dac86d9/modules/cli/controllermanifest/server.go", "visit_date": "2022-03-07T12:30:34.274648", "added": "2024-11-19T01:51:06.460701+00:00", "created": "2021-09-23T05:03:53", "int_score": 2, "score": 2.40625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0033.json.gz" }
package com.webianks.hatkemessenger; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Comparator; @DatabaseTable public class Contact implements Comparable<Contact> { @DatabaseField(generatedId = true) private int id; @DatabaseField private String nom; @DatabaseField private String number; @DatabaseField private String email; @DatabaseField private boolean par_sms; @DatabaseField private boolean par_mail; @DatabaseField private int idGroupe; public Contact() { } public Contact(String nom, String number, int idGroupe) { this.nom = nom; this.number = number; this.idGroupe = idGroupe; } public Contact(String nom, String number, String email, int idGroupe) { this.nom = nom; this.number = number; this.email = email; this.idGroupe = idGroupe; } public Contact(int id, String nom, String number, String email, boolean par_sms, boolean par_mail, int idGroupe) { this.id = id; this.nom = nom; this.number = number; this.email = email; this.par_sms = par_sms; this.par_mail = par_mail; this.idGroupe = idGroupe; } @Override public String toString() { return "Contact{" + "id=" + id + ", nom='" + nom + '\'' + ", number='" + number + '\'' + ", email='" + email + '\'' + ", idGroupe=" + idGroupe + '}'; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getNom() { return nom; } public void setNom(String nom) { this.nom = nom; } public String getNumber() { return number; } public void setNumber(String number) { this.number = number; } public int getIdGroupe() { return idGroupe; } public void setIdGroupe(int idGroupe) { this.idGroupe = idGroupe; } public boolean isPar_sms() { return par_sms; } public void setPar_sms(boolean par_sms) { this.par_sms = par_sms; } public boolean isPar_mail() { return par_mail; } public void setPar_mail(boolean par_mail) { this.par_mail = par_mail; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } @Override public int compareTo(Contact o) { return this.getNom().compareTo(o.getNom()); } }
30dc7af972d14c2ce6630be2231a6ad096b4e20b
{ "blob_id": "30dc7af972d14c2ce6630be2231a6ad096b4e20b", "branch_name": "refs/heads/master", "committer_date": "2019-09-27T14:03:44", "content_id": "2ffea091a6796af8da19667850caf0c0baefa281", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d01172d247086a6863fb287ff4c80106d40a2b46", "extension": "java", "filename": "Contact.java", "fork_events_count": 0, "gha_created_at": "2019-09-17T13:04:26", "gha_event_created_at": "2019-09-17T15:24:47", "gha_language": null, "gha_license_id": "Apache-2.0", "github_id": 209055902, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 2477, "license": "Apache-2.0", "license_type": "permissive", "path": "/app/src/main/java/com/webianks/hatkemessenger/Contact.java", "provenance": "stack-edu-0026.json.gz:733820", "repo_name": "mel194/social-message", "revision_date": "2019-09-27T14:03:44", "revision_id": "12e733cdd81be7b216822b36109bbe60ff64d6b4", "snapshot_id": "f7efe8b5a51e0caa095f6f535586b0e86e0c1c86", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/mel194/social-message/12e733cdd81be7b216822b36109bbe60ff64d6b4/app/src/main/java/com/webianks/hatkemessenger/Contact.java", "visit_date": "2020-07-27T10:11:43.386560", "added": "2024-11-18T22:52:52.682641+00:00", "created": "2019-09-27T14:03:44", "int_score": 3, "score": 2.53125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0044.json.gz" }
Překapávač is a web application for collaborative translation of terminology. It's written with Flask and SQLAlchemy. The UI is currently only in Czech. A live version with a translation of Pokémon Red ongoing can be found at https://prekapavac.rattata.top/. Překapávač is licenced under the ISC license.
333c19ec06eb4ae3fe2676d0c6fab84f4bcb883d
{ "blob_id": "333c19ec06eb4ae3fe2676d0c6fab84f4bcb883d", "branch_name": "refs/heads/master", "committer_date": "2017-01-15T13:38:35", "content_id": "67df76bc3a7e433b870af0b9adf0700fc194f706", "detected_licenses": [ "ISC" ], "directory_id": "c879ac153e940c1cfc8d12ef06c386f1cd6f8941", "extension": "md", "filename": "README.md", "fork_events_count": 0, "gha_created_at": "2017-01-20T15:21:34", "gha_event_created_at": "2017-01-20T15:21:35", "gha_language": null, "gha_license_id": null, "github_id": 79570113, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 316, "license": "ISC", "license_type": "permissive", "path": "/README.md", "provenance": "stack-edu-markdown-0009.json.gz:44258", "repo_name": "encukou/prekapavac", "revision_date": "2017-01-15T13:36:32", "revision_id": "be5814eab4c02caaa3807073359e9bd0330ab87f", "snapshot_id": "69481fb7f0545c2bf35d8332c181bdf52ffb3e9a", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/encukou/prekapavac/be5814eab4c02caaa3807073359e9bd0330ab87f/README.md", "visit_date": "2021-01-11T18:33:59.812828", "added": "2024-11-19T03:08:21.220968+00:00", "created": "2017-01-15T13:36:32", "int_score": 2, "score": 2.09375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0009.json.gz" }
require 'test_helper' class PaymentMethodPolicyTest < PolicyAssertions::Test def setup @admin_user = users(:payment_method_admin_user) @regular_user = users(:payment_method_regular_user) @admin_user_no_payment_method = users(:admin_user) @regular_user_no_payment_method = users(:regular_user) @admin_payment_method = payment_methods(:payment_method_admin) @payment_method = payment_methods(:payment_method_regular) @available_actions = [:create, :destroy] end def test_destroy #Admins should be able to destroy their payment method and other payment methods. assert_permit @admin_user, @admin_payment_method assert_permit @admin_user, @payment_method #Regular users can only destroy their payment methods. assert_permit @regular_user, @payment_method refute_permit @regular_user, @admin_payment_method #Anon are not permitted to payment plans. refute_permit nil, @payment_method refute_permit nil, @admin_payment_method end def test_create #Admins and regular users can create payment methods. # refute_permit @admin_user, PaymentMethod # refute_permit @regular_user, PaymentMethod assert_permit @admin_user_no_payment_method, PaymentMethod # assert_permit @regular_user_no_payment_method, PaymentMethod # refute_permit nil, PaymentMethod end def test_index_and_update_and_new refute_permit @admin_user, PaymentMethod refute_permit @regular_user, PaymentMethod refute_permit nil, PaymentMethod end def test_strong_parameters payment_method_params = @payment_method.attributes admin_params = [:user_id, :user_id, :brand, :exp_month, :exp_year, :last4, :stripe_token_id, :stripe_card_id] regular_user_params = [:user_id, :user_id, :brand, :exp_month, :exp_year, :last4, :stripe_token_id, :stripe_card_id] anonymous_params = [] assert_strong_parameters(@admin_user, PaymentMethod, payment_method_params, admin_params) assert_strong_parameters(@regular_user, PaymentMethod, payment_method_params, regular_user_params) assert_strong_parameters(nil, PaymentMethod, payment_method_params, anonymous_params) end end
94a6cd95520f56fc6c3215234c995f66de0202fb
{ "blob_id": "94a6cd95520f56fc6c3215234c995f66de0202fb", "branch_name": "refs/heads/master", "committer_date": "2018-06-15T03:12:45", "content_id": "3980fb903026159cd7384361cca000aa21c184cf", "detected_licenses": [ "MIT" ], "directory_id": "25e71e647e012f1cc4bd392669b6c07b32299620", "extension": "rb", "filename": "payment_method_policy_test.rb", "fork_events_count": 2, "gha_created_at": "2016-07-26T02:32:43", "gha_event_created_at": "2018-06-06T03:03:10", "gha_language": "Ruby", "gha_license_id": "MIT", "github_id": 64183562, "is_generated": false, "is_vendor": false, "language": "Ruby", "length_bytes": 2169, "license": "MIT", "license_type": "permissive", "path": "/test/policies/payment_method_policy_test.rb", "provenance": "stack-edu-0066.json.gz:891897", "repo_name": "cloudhausllc/website", "revision_date": "2018-06-15T03:12:45", "revision_id": "4fb198aa8d39dab29fdac82f896e7731169f7b5e", "snapshot_id": "35c876767cec7b4a1f1fa79b29b5635184148df8", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/cloudhausllc/website/4fb198aa8d39dab29fdac82f896e7731169f7b5e/test/policies/payment_method_policy_test.rb", "visit_date": "2021-01-20T20:41:48.980967", "added": "2024-11-19T01:33:47.822833+00:00", "created": "2018-06-15T03:12:45", "int_score": 2, "score": 2.15625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0084.json.gz" }
#!/usr/bin/env bash shortcuts(){ echo "#########################################" echo "Adding SHORTCUTS" echo "#########################################" export DOT_PATH=$(dirname $(realpath $0)) grep -Fq "DOT_PATH" $HOME/.bash_profile || echo "export DOT_PATH=$DOT_PATH" >> $HOME/.bash_profile grep -Fq "dot_profile" $HOME/.bash_profile || echo "source $DOT_PATH/dot_profile" >> $HOME/.bash_profile source $HOME/.bash_profile } preinstall(){ echo "#########################################" echo "Doing PREINSTALL" echo "#########################################" #brew which -s brew || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null which -s realpath || brew install coreutils #xcode config xcode-select -p || sudo xcodebuild -license } dependencies() { #deps echo "#########################################" echo "Installing DEPENDENCIES" echo "#########################################" #brew tap homebrew/cask-cask #Verify if still needed #brew tap caskroom/versions brew tap AdoptOpenJDK/openjdk brew update brew cask install adoptopenjdk8 brew cask install docker brew install wget brew install gnu-tar brew install bash-completion brew install jenv brew install python3 brew install openssl sudo easy_install pip #python sudo pip install virtualenv sudo pip3 install virtualenv mkdir -p $VIRTUALENVS #autocomplete which -s rvm || curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash } extras(){ #extras echo "#########################################" echo "Installing EXTRAS" echo "#########################################" brew tap caskroom/cask brew update brew cask install iterm2 brew cask install visual-studio-code brew cask install intellij-idea-ce brew cask install virtualbox brew cask install sequel-pro brew install node brew install scala } spark(){ #spark echo "#########################################" echo "Installing SPARK" echo "#########################################" curl https://archive.apache.org/dist/spark/spark-$SPARK_VERSION/spark-$SPARK_VERSION-bin-hadoop$HADOOP_SPARK_VERSION.tgz -o $SPARK_HOME.tgz rm -rf $SPARK_HOME tar xz -f $SPARK_HOME.tgz mv $DOT_PATH/spark-$SPARK_VERSION-bin-hadoop$HADOOP_SPARK_VERSION $SPARK_HOME rm $SPARK_HOME.tgz } hadoop(){ #hadoop echo "#########################################" echo "Installing HADOOP" echo "#########################################" curl https://archive.apache.org/dist/hadoop/core/hadoop-$HADOOP_VERSION/hadoop-$HADOOP_VERSION.tar.gz -o $HADOOP_HOME.tgz rm -rf $HADOOP_HOME tar xz -f $HADOOP_HOME.tgz mv $DOT_PATH/hadoop-$HADOOP_VERSION $HADOOP_HOME rm $HADOOP_HOME.tgz } case "$1" in shortcuts) shortcuts ;; dependencies) preinstall shortcuts dependencies ;; extras) preinstall extras ;; spark) spark ;; hadoop) shortcuts hadoop ;; all) preinstall dependencies extras spark hadoop ;; *) echo """ Choose between - shortcuts (dot_files shortcuts and functions) - dependencies (dot_files dependencies) - extras (install and configure usefull extras) - spark (install and configure spark) - hadoop (install and configure hadoop) - all (for all above) """ esac source $HOME/.bash_profile
041f70fd4bf3d4ed102a772a9aaf608a30df91db
{ "blob_id": "041f70fd4bf3d4ed102a772a9aaf608a30df91db", "branch_name": "refs/heads/master", "committer_date": "2022-04-17T00:54:44", "content_id": "f93bf88892dfb2dfd3d9efb2e468f2dcf61f04fb", "detected_licenses": [ "Apache-2.0" ], "directory_id": "29737aea40f4857554e01c6aead235769f17d493", "extension": "sh", "filename": "install.sh", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 224712850, "is_generated": false, "is_vendor": false, "language": "Shell", "length_bytes": 3990, "license": "Apache-2.0", "license_type": "permissive", "path": "/install.sh", "provenance": "stack-edu-0069.json.gz:632610", "repo_name": "dmvieira/dotfiles", "revision_date": "2022-04-17T00:54:44", "revision_id": "f5211535c69c7f7dde9b02b9fa3f4c4a178cced3", "snapshot_id": "c0acf9853001d9491eb01b8bad6ebf589fbf2662", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/dmvieira/dotfiles/f5211535c69c7f7dde9b02b9fa3f4c4a178cced3/install.sh", "visit_date": "2022-05-03T18:30:31.620624", "added": "2024-11-19T00:17:00.355106+00:00", "created": "2022-04-17T00:54:44", "int_score": 4, "score": 3.53125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0087.json.gz" }
#pragma once #include "reporter/impl/rp_base_reporter_impl.hpp" #include <std_fs> //------------------------------------------------------------------------------ namespace model_includes { class File; } //------------------------------------------------------------------------------ namespace reporter { class SortedFilesByNameContainer; //------------------------------------------------------------------------------ class UnincludedReporter final : public BaseReporterImpl { using BaseClass = BaseReporterImpl; public: explicit UnincludedReporter( SettingsPtr && _settingsPtr ); void report( const model_includes::Model & _model, std::ostream & _stream ) override; ReporterKind getKind() const override; private: using Path = stdfs::path; using FilesContainer = SortedFilesByNameContainer; FilesContainer collectFiles( const model_includes::Model & _model ) const; bool isHeader( const model_includes::File & _file ) const; void printFiles( const FilesContainer & _files, const Path & _projectDir, std::ostream & _stream ) const; }; //------------------------------------------------------------------------------ }
fdf0cd329dc4b8dcd0c52654a2e0fde1df97be10
{ "blob_id": "fdf0cd329dc4b8dcd0c52654a2e0fde1df97be10", "branch_name": "refs/heads/master", "committer_date": "2021-08-10T18:32:51", "content_id": "dd27254aecafc98a146a18022c031a6d9d71f689", "detected_licenses": [ "MIT" ], "directory_id": "e31a1a597db0550d2a9613c9a3e209ff1472f6bd", "extension": "hpp", "filename": "rp_unincluded_reporter.hpp", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 1155, "license": "MIT", "license_type": "permissive", "path": "/src/reporter/impl/unincluded_reporter/rp_unincluded_reporter.hpp", "provenance": "stack-edu-0005.json.gz:494611", "repo_name": "g40/cppinclude", "revision_date": "2021-08-10T18:32:51", "revision_id": "dc126c6057d2fe30569e6e86f66d2c8eebb50212", "snapshot_id": "6bd0cee7c25d3876193e7e3d7fc38e829104058c", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/g40/cppinclude/dc126c6057d2fe30569e6e86f66d2c8eebb50212/src/reporter/impl/unincluded_reporter/rp_unincluded_reporter.hpp", "visit_date": "2023-07-12T18:17:41.490719", "added": "2024-11-18T22:37:52.381644+00:00", "created": "2021-08-10T18:32:51", "int_score": 2, "score": 2.140625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0023.json.gz" }
package payne.framework.pigeon.core.formatting; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URLDecoder; import java.nio.charset.Charset; import payne.framework.pigeon.core.exception.FormatterException; import payne.framework.pigeon.core.toolkit.IOToolkit; public class FormInvocationFormatter extends URLInvocationFormatter implements InvocationFormatter { public String algorithm() { return "application/x-www-form-urlencoded"; } public Object deserialize(Structure structure, InputStream in, String charset) throws FormatterException { try { String parameters = IOToolkit.toString(in); parameters = URLDecoder.decode(parameters, Charset.defaultCharset().name()); in = new ByteArrayInputStream(parameters.getBytes(Charset.defaultCharset().name())); return super.deserialize(structure, in, charset); } catch (IOException e) { throw new FormatterException(e, this, in, structure); } } }
4420bab794873c25c71388c9506152c6be3f3aad
{ "blob_id": "4420bab794873c25c71388c9506152c6be3f3aad", "branch_name": "refs/heads/master", "committer_date": "2017-04-17T23:15:12", "content_id": "536884f6b993677851008f129d4d918eef17dd3e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d5feef9ce398080d43efa84be26de43799a442e8", "extension": "java", "filename": "FormInvocationFormatter.java", "fork_events_count": 0, "gha_created_at": "2017-04-17T23:15:13", "gha_event_created_at": "2017-04-17T23:15:13", "gha_language": null, "gha_license_id": null, "github_id": 88559235, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 984, "license": "Apache-2.0", "license_type": "permissive", "path": "/pigeon-core/src/main/java/payne/framework/pigeon/core/formatting/FormInvocationFormatter.java", "provenance": "stack-edu-0021.json.gz:223342", "repo_name": "bryant1410/pigeon", "revision_date": "2017-04-17T23:15:12", "revision_id": "f8792d7fb62a001be9dd5e2448ac534e6fcb8fa8", "snapshot_id": "6290ec037a21a6ee30e2843cde2e88e04c56ef87", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/bryant1410/pigeon/f8792d7fb62a001be9dd5e2448ac534e6fcb8fa8/pigeon-core/src/main/java/payne/framework/pigeon/core/formatting/FormInvocationFormatter.java", "visit_date": "2021-01-19T20:48:43.397768", "added": "2024-11-18T22:56:26.940778+00:00", "created": "2017-04-17T23:15:12", "int_score": 2, "score": 2.40625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0039.json.gz" }
package util import ( "context" "github.com/cattaka/ContentDistributor/core" "mime/multipart" "io" "fmt" "cloud.google.com/go/storage" ) const STORAGE_URL_BASE = "https://storage.googleapis.com/" const STORAGE_URL_FORMAT = STORAGE_URL_BASE + "%s/%s" func UploadFile( ctx context.Context, cb core.CoreBundle, f multipart.File, fh *multipart.FileHeader, fileFullPath string, makePublic bool) (url string, err error) { // Create a storage client. client, err := storage.NewClient(ctx, *(cb.ClientOption)) if err != nil { return "", err } storageBucket := client.Bucket(cb.FirebaseConfig.StorageBucket) // Random filename, retaining existing extension. w := storageBucket.Object(fileFullPath).NewWriter(ctx) w.ContentType = fh.Header.Get("Content-Type") if makePublic { w.ACL = []storage.ACLRule{{Entity: storage.AllUsers, Role: storage.RoleReader}} } // Entries are immutable, be aggressive about caching (1 day). w.CacheControl = "public, max-age=300" if _, err := io.Copy(w, f); err != nil { w.CloseWithError(err) return "", err } if err := w.Close(); err != nil { return "", err } return fmt.Sprintf(STORAGE_URL_FORMAT, cb.FirebaseConfig.StorageBucket, fileFullPath), nil }
7f0516772e81d6c212405309f488980d4fb09a3e
{ "blob_id": "7f0516772e81d6c212405309f488980d4fb09a3e", "branch_name": "refs/heads/master", "committer_date": "2019-04-12T06:24:44", "content_id": "bc86630b700de3aba118ac95c3946f73751eb1cf", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1842b886e6a59908aca06232652544d8fc864b2c", "extension": "go", "filename": "storageUtil.go", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 163985120, "is_generated": false, "is_vendor": false, "language": "Go", "length_bytes": 1222, "license": "Apache-2.0", "license_type": "permissive", "path": "/util/storageUtil.go", "provenance": "stack-edu-0016.json.gz:95526", "repo_name": "cattaka/ContentDistributor", "revision_date": "2019-04-12T06:24:44", "revision_id": "fc0d5abec61a215a184fd9dd117da18eef2ba5d1", "snapshot_id": "595e0917e2ee9bbbd7331997e743ae4aef584669", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/cattaka/ContentDistributor/fc0d5abec61a215a184fd9dd117da18eef2ba5d1/util/storageUtil.go", "visit_date": "2020-04-14T17:34:07.542195", "added": "2024-11-18T21:26:59.133799+00:00", "created": "2019-04-12T06:24:44", "int_score": 2, "score": 2.328125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0034.json.gz" }
times = ('Palmeiras', 'Atlético-MG', 'Santos', 'Flamengo', 'Internacional', 'Bahia', 'Botafogo', 'São Paulo', 'Corinthians', 'Atlético-PR', 'Ceará SC', 'Goiás', 'Chapecoense', 'Fortaleza', 'Cruzeiro', 'Fluminense', 'CSA', 'Grêmio', 'Avaí', 'Vasco da Gama') print('-='*30) print(f'A lista de times do brasileirão 2019 é {times[0:20]}') print('-='*30) print(f'Os 5 primeiros são {times[0:5]}') print('-='*30) print(f'Os 4 últimos são {times[15:20]}') print('-='*30) print(f'Times em ordem alfabética: {sorted(times)}') print('-='*30) print(f'O Chapecoense está na {times.index("Chapecoense")+1}ª posição')
c685b16a4efd6e53ce8a74ebf194dd5bf8e5908c
{ "blob_id": "c685b16a4efd6e53ce8a74ebf194dd5bf8e5908c", "branch_name": "refs/heads/master", "committer_date": "2020-04-14T20:47:43", "content_id": "5a3636242a7147a200f21c50564bd67eb5d1f7ec", "detected_licenses": [ "MIT" ], "directory_id": "65194510131605fa6e75c8e48c9f07c489c64d4e", "extension": "py", "filename": "atv069.py", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 255721642, "is_generated": false, "is_vendor": false, "language": "Python", "length_bytes": 642, "license": "MIT", "license_type": "permissive", "path": "/Exercícios de Python/atv069.py", "provenance": "stack-edu-0060.json.gz:533222", "repo_name": "Lucas-Moura-Da-Silva/Python-Estudo", "revision_date": "2020-04-14T20:47:43", "revision_id": "ce5f2a0c386f4aa9ea237e4df095b570c40f53ca", "snapshot_id": "efefc57b97d72c9b5e216063b5b2a571995c0f39", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/Lucas-Moura-Da-Silva/Python-Estudo/ce5f2a0c386f4aa9ea237e4df095b570c40f53ca/Exercícios de Python/atv069.py", "visit_date": "2022-04-19T15:55:42.687984", "added": "2024-11-18T20:58:35.843743+00:00", "created": "2020-04-14T20:47:43", "int_score": 3, "score": 3.390625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0078.json.gz" }
require 'playwright/dsl/actor_dsl' require 'playwright/dsl/scene_dsl' module Playwright class Narrator include DSL attr_reader :owner_class def self.find_or_create(owner_class) # get narrator from existing class if owner_class.respond_to?(:narrators) && narrator = owner_class.narrators.first # child classes should have their own narrator if narrator.owner_class != owner_class narrator = narrator.dup narrator.owner_class = owner_class end else narrator = new(owner_class) end return narrator end def initialize(owner_class) # :nodoc: self.owner_class = owner_class @actors = {} end def owner_class=(owner_class) # :nodoc: @owner_class = owner_class owner_class.class_eval do extend ClassMethods end owner_class.narrators << self end def add_actors(&block) # :nodoc: @actors = ActorDSL.find(&block) end def add_scenes(&block) # :nodoc @scenes = SceneDSL.find(&block) end def actors return @loaded_actors if @loaded_actors @loaded_actors = @actors.each do |key, value| @actors[key] = value.call end end def has_actor?(name) actors.has_key?(name) end def get_actor(name) raise ActorNotRegistered unless has_actor?(name) actors[name] end def scenes(stage) return @loaded_scenes if @loaded_scenes @loaded_scenes = @scenes.each do |key, value| @scenes[key] = value.init(self, stage) end end def has_scene?(stage, name) scenes(stage).has_key?(name) end def get_scene(stage, name) raise SceneNotRegistered unless has_scene?(stage, name) scenes(stage)[name] end end end
2c0ffbb36aa57683ea327be20122133c40f20fcb
{ "blob_id": "2c0ffbb36aa57683ea327be20122133c40f20fcb", "branch_name": "refs/heads/master", "committer_date": "2017-02-04T18:27:40", "content_id": "75e60ef7fabca579cd1adddb7e83efa9d98fe388", "detected_licenses": [ "MIT" ], "directory_id": "744f0d70497626991f1f48b6a73074861fa051ed", "extension": "rb", "filename": "narrator.rb", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Ruby", "length_bytes": 1806, "license": "MIT", "license_type": "permissive", "path": "/lib/playwright/narrator.rb", "provenance": "stack-edu-0067.json.gz:299580", "repo_name": "sergii/playwright", "revision_date": "2017-02-04T18:27:40", "revision_id": "392be7d85b69f14d79c385d452f95f6bccc6a209", "snapshot_id": "7138d3cfe2aad86833b76aabef5cc68f441a1b27", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/sergii/playwright/392be7d85b69f14d79c385d452f95f6bccc6a209/lib/playwright/narrator.rb", "visit_date": "2021-06-10T01:58:17.034453", "added": "2024-11-18T22:24:34.503579+00:00", "created": "2017-02-04T18:27:40", "int_score": 3, "score": 2.671875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0085.json.gz" }
/** * Testing * @ndaidong */ import {readFileSync, writeFileSync} from 'fs'; import nock from 'nock'; import {test} from 'tap'; import { setParserOptions, setNodeFetchOptions, setSanitizeHtmlOptions, extract, } from '../../src/main'; import { getParserOptions, getNodeFetchOptions, getSanitizeHtmlOptions, } from '../../src/config.js'; import {name, version} from '../../package.json'; const hasProps = (obj, props) => { return props.every((prop) => { return Object.prototype.hasOwnProperty.call(obj, prop); }); }; test('Testing .extract() method (using mocking data)', async (assert) => { const {env} = getParserOptions(); const baseUrl = 'https://some.where'; const samples = [ { path: '/blog/ghost-3-0', fname: 'ghost-3-0', }, { path: '/tech/closer-stars-pixel-4', fname: 'closer-stars-pixel-4', }, { path: '/intro/google-cloud-kubernetes', fname: 'google-cloud-kubernetes', }, { path: '/guid/start-blogging', fname: 'beginner-blogger-mistakes', }, { path: '/rules/golden/freelancing', fname: 'golden-rule-of-freelancing', }, { path: '/news/29881/cool-thing-here', fname: 'cnbc-post', }, ]; const testOne = async ({path, fname}) => { const html = readFileSync(`./tests/data/${fname}.txt`, 'utf8'); nock(baseUrl).head(path).reply(200, ''); nock(baseUrl).get(path).reply(200, html, { 'Content-Type': 'text/html', }); const url = baseUrl + path; const result = await extract(url); if (env === 'gen') { writeFileSync( `./tests/data/${fname}.article.txt`, JSON.stringify(result, null, ' '), 'utf8' ); } const expected = readFileSync(`./tests/data/${fname}.article.txt`, 'utf8'); assert.same( result, JSON.parse(expected), `extract(${url}) must be done` ); }; await Promise.all(samples.map(testOne)); nock.cleanAll(); assert.end(); }); test('Testing .extract() method (live data)', async (assert) => { const urls = [ 'https://medium.com/@ndaidong/setup-a-simple-environment-for-deep-learning-dc05c81c4914', 'https://www.youtube.com/watch?v=lexE3NR0n34', 'https://kipalog.com/posts/Functional-Programming---Phan-1---Con-duong-sang', ]; const props = [ 'url', 'title', 'author', 'description', 'content', 'image', 'published', 'links', 'ttr', ]; const testOne = async (url) => { const article = await extract(url); assert.type(article, 'object', 'Article must be an object'); assert.ok( hasProps(article, props), 'Article must have all required properties' ); assert.ok( article.url !== '', 'Article `url` must be not empty' ); assert.ok( article.title !== '', 'Article `title` must be not empty' ); assert.ok( article.content !== '', 'Article `content` must be not empty' ); assert.ok( article.image !== '', 'Article `image` must be not empty' ); assert.ok( article.links.length > 0, 'Article `links` must be not empty' ); }; await Promise.all(urls.map(testOne)); assert.end(); }); test('Testing .extract() method (using preload HTML)', async (assert) => { const {env} = getParserOptions(); const samples = [ 'ghost-3-0', 'closer-stars-pixel-4', 'google-cloud-kubernetes', 'beginner-blogger-mistakes', 'golden-rule-of-freelancing', 'cnbc-post', ]; const testOne = async (fname) => { const html = readFileSync(`./tests/data/${fname}.txt`, 'utf8'); const result = await extract(html); if (env === 'gen') { writeFileSync( `./tests/data/${fname}.article-preload.txt`, JSON.stringify(result, null, ' '), 'utf8' ); } const expected = readFileSync( `./tests/data/${fname}.article-preload.txt`, 'utf8' ); assert.same( result, JSON.parse(expected), `extract(${fname}) must be done` ); }; await Promise.all(samples.map(testOne)); nock.cleanAll(); assert.end(); }); test('Testing setParserOptions/getParserOptions methods', (assert) => { const expectedWPM = 400; setParserOptions({ wordsPerMinute: expectedWPM, }); const actual = getParserOptions(); assert.same( actual.wordsPerMinute, expectedWPM, 'setParserOptions() must work correctly' ); const expectedAlgorithm = 'levenshtein'; assert.same( actual.urlsCompareAlgorithm, expectedAlgorithm, 'getParserOptions() must work correctly' ); assert.end(); }); test('Testing setNodeFetchOptions/getNodeFetchOptions methods', (assert) => { setNodeFetchOptions({ headers: { authorization: 'bearer <token>', }, timeout: 20, somethingElse: 1000, }); const actual = getNodeFetchOptions(); const actualHeader = actual.headers; const expectedHeader = { 'authorization': 'bearer <token>', 'user-agent': `${name}/${version}`, }; assert.same( actualHeader, expectedHeader, 'setNodeFetchOptions() must work correctly' ); assert.same( actual.timeout, 20, 'getNodeFetchOptions() must work correctly' ); assert.end(); }); test('Testing setSanitizeHtmlOptions/getSanitizeHtmlOptions methods', (assert) => { setSanitizeHtmlOptions({ allowedTags: ['div', 'span'], allowedAttributes: { a: ['href', 'title'], }, }); const actual = getSanitizeHtmlOptions(); const actualAllowedAttributes = actual.allowedAttributes; const expectedAllowedAttributes = { a: ['href', 'title'], img: ['src', 'alt'], }; assert.same( actualAllowedAttributes, expectedAllowedAttributes, 'setSanitizeHtmlOptions() must work correctly' ); const actualAllowedTags = actual.allowedTags; const expectedAllowedTags = ['div', 'span']; assert.same( actualAllowedTags, expectedAllowedTags, 'getSanitizeHtmlOptions() must work correctly' ); setSanitizeHtmlOptions({ allowedTags: [], }); assert.same( getSanitizeHtmlOptions().allowedTags, [], 'getSanitizeHtmlOptions() accepts empty tags' ); assert.end(); });
3ab2ea578718f0af844b5b6c979255db91a8a9a2
{ "blob_id": "3ab2ea578718f0af844b5b6c979255db91a8a9a2", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T03:42:25", "content_id": "6746c959510de4da0152ec13bc5c6da80ea26593", "detected_licenses": [ "MIT" ], "directory_id": "21c80acdc8de09bf97d3d5ff146398525488039f", "extension": "js", "filename": "main.js", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 6225, "license": "MIT", "license_type": "permissive", "path": "/tests/specs/main.js", "provenance": "stack-edu-0038.json.gz:662672", "repo_name": "asteroidb612/article-parser", "revision_date": "2020-04-15T03:42:25", "revision_id": "fd8b4369e118ac43e481ee09169edb9526a1dab0", "snapshot_id": "e1c136740e90c3efd32f9c6f68a457a1191a247f", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/asteroidb612/article-parser/fd8b4369e118ac43e481ee09169edb9526a1dab0/tests/specs/main.js", "visit_date": "2022-04-16T18:33:08.466390", "added": "2024-11-18T23:50:23.913924+00:00", "created": "2020-04-15T03:42:25", "int_score": 2, "score": 2.4375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0056.json.gz" }
import "./Navbar.css"; import React, { useState } from "react"; import { MDBNavbar, MDBNavbarBrand, MDBNavbarNav, MDBNavItem, MDBNavLink, MDBNavbarToggler, MDBCollapse, MDBDropdown, MDBDropdownToggle, MDBDropdownMenu, MDBDropdownItem, MDBIcon, } from "mdbreact"; import { Link } from "react-router-dom"; const ToolBar = ({ auth, handleLogOut }) => { const [dropDown, setdropDown] = useState({ isOpen: false }); let email = "Guest"; let name; if (auth) { //Set default name if not registered with one name = localStorage.getItem("name") ? localStorage.getItem("name") : "Mr.Unknown"; email = localStorage.getItem("email"); } const toggleCollapse = () => { setdropDown((preV) => { return { isOpen: !preV.isOpen }; }); }; return ( <div className="nav-home"> <MDBNavbar color="morpheus-den-gradient" dark expand="md" fixed="top" scrolling transparent > <MDBNavbarBrand> <strong className="white-text">StockJD</strong> </MDBNavbarBrand> <MDBNavbarToggler onClick={toggleCollapse} /> <MDBCollapse id="navbarCollapse3" isOpen={dropDown.isOpen} navbar> <MDBNavbarNav left> <MDBNavItem> <MDBNavLink exact to="/"> Home </MDBNavLink> </MDBNavItem> <MDBNavItem> <MDBNavLink to="/stocklist">Stocks</MDBNavLink> </MDBNavItem> <MDBNavItem> <MDBNavLink to="/login">Login</MDBNavLink> </MDBNavItem> <MDBNavItem> <MDBNavLink exact to="/register"> Register </MDBNavLink> </MDBNavItem> </MDBNavbarNav> <MDBNavbarNav right> <MDBNavItem> <MDBDropdown> <MDBDropdownToggle nav caret> <h5 style={{ display: "inline", margin: "2rem" }}> {email} </h5> <MDBIcon icon="user" /> </MDBDropdownToggle> <MDBDropdownMenu className="dropdown-default mdbnav"> {auth ? ( <MDBDropdownItem> <p>{name}</p> <Link onClick={handleLogOut} to="/logout"> Log Out </Link> </MDBDropdownItem> ) : ( <MDBDropdownItem> <Link to="/login">Log In</Link> </MDBDropdownItem> )} </MDBDropdownMenu> </MDBDropdown> </MDBNavItem> </MDBNavbarNav> </MDBCollapse> </MDBNavbar> </div> ); }; export default ToolBar;
3d531bbe2536e1e1a3f7a5f7a437944298fb3e42
{ "blob_id": "3d531bbe2536e1e1a3f7a5f7a437944298fb3e42", "branch_name": "refs/heads/master", "committer_date": "2020-06-18T11:45:18", "content_id": "db326087a55cdc9122b9c6080aab97c90f1273f3", "detected_licenses": [ "MIT" ], "directory_id": "dd0c2ca2545f74ffa9565ba2983c02d5d31842d8", "extension": "js", "filename": "Navbar.js", "fork_events_count": 0, "gha_created_at": "2020-05-07T01:44:41", "gha_event_created_at": "2021-01-06T02:44:11", "gha_language": "JavaScript", "gha_license_id": "MIT", "github_id": 261922598, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 2850, "license": "MIT", "license_type": "permissive", "path": "/src/Components/Navbar/Navbar.js", "provenance": "stack-edu-0032.json.gz:131753", "repo_name": "JadenBui/WebStockViewer", "revision_date": "2020-06-18T11:45:18", "revision_id": "9605693db9c68fc2821efaca57a4970c423e1a14", "snapshot_id": "dbc65fc1358d56a1847370d52b6757b07a590dbd", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/JadenBui/WebStockViewer/9605693db9c68fc2821efaca57a4970c423e1a14/src/Components/Navbar/Navbar.js", "visit_date": "2023-02-10T02:39:19.080498", "added": "2024-11-19T00:18:58.028779+00:00", "created": "2020-06-18T11:45:18", "int_score": 2, "score": 2.09375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0050.json.gz" }
#!/bin/bash # Copyright 2017-2018 the authors. See the 'Copyright and license' section of the # README.md file at the top-level directory of this repository. # # Licensed under the Apache License, Version 2.0 (the LICENSE-APACHE file) or # the MIT license (the LICENSE-MIT file) at your option. This file may not be # copied, modified, or distributed except according to those terms. # last_modification_year <file> function last_modification_year { COMMIT=$(git log --pretty=format:"%H" "$1" | head -n 1) git show -s --format=%ci "$COMMIT" | cut -d - -f 1 } # first_modification_year <file> function first_modification_year { COMMIT=$(git log --pretty=format:"%H" "$1" | tail -n 1) git show -s --format=%ci "$COMMIT" | cut -d - -f 1 } # like check_comments, checks the <line>th line for the comment # # check_comments_shell <file extension> <comment prefix> <line> function check_comments_line { RET=0 # NOTE: This will break if any of the files have spaces in them, # but the other alternative is to pipe the output of find into # 'while read file', which spawns a subshell, and thus prevents # us from setting the RET variable from inside the loop. for file in $(find . -name "*${1}"); do # Don't check files that aren't in version control if ! git ls-files --error-unmatch "$file" >/dev/null 2>/dev/null; then continue fi # We're either looking for a comment of the form 'Copyright 2017' # or of the form 'Copyright 2017-2018'. FIRST_YEAR=$(first_modification_year "$file") LAST_YEAR=$(last_modification_year "$file") YEAR=$(if [ "$FIRST_YEAR" == "$LAST_YEAR" ]; then echo "$FIRST_YEAR" else echo "${FIRST_YEAR}-${LAST_YEAR}" fi) # Including " the authors." is important, or else "Copyright 2017-2018 the authors." # would be spuriously matched if the correct $YEAR was 2017. COMMENT="$2 Copyright $YEAR the authors." head -n "$3" "$file" | tail -n 1 | grep "$COMMENT" >/dev/null if [ $? -ne 0 ]; then echo "$file: missing or malformed copyright comment" >&2 RET=1 fi done return "$RET" } # check_comments <file extension> <comment prefix> function check_comments { check_comments_line "$1" "$2" 1 } EXIT=0 check_comments '.rs' '//' || EXIT=1 check_comments '.md' '<!--' || EXIT=1 check_comments '.toml' '#' || EXIT=1 check_comments '.yml' '#' || EXIT=1 # In shell scripts, the copyright comment should start on line 3 check_comments_line '.sh' '#' 3 || EXIT=1 exit "$EXIT"
308cf8bfba5d34666a2897c6bd4f6de625f80dea
{ "blob_id": "308cf8bfba5d34666a2897c6bd4f6de625f80dea", "branch_name": "refs/heads/master", "committer_date": "2018-05-03T16:04:29", "content_id": "7bbe9833ecadb75f0d8f4b8feb31d4a924c64f32", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "a2e30f8826821bbe5758b2cac50f9cae48e3d8f8", "extension": "sh", "filename": "check-copyright-comments.sh", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Shell", "length_bytes": 2507, "license": "MIT,Apache-2.0", "license_type": "permissive", "path": "/test-scripts/check-copyright-comments.sh", "provenance": "stack-edu-0068.json.gz:667462", "repo_name": "zeroqn/allocators-rs", "revision_date": "2018-05-03T14:14:15", "revision_id": "9071c51fc4ca364173026082186eb5af47197e98", "snapshot_id": "4967149420ac14bad991d4de6594f4a8b1591536", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/zeroqn/allocators-rs/9071c51fc4ca364173026082186eb5af47197e98/test-scripts/check-copyright-comments.sh", "visit_date": "2020-03-18T00:46:20.465309", "added": "2024-11-19T01:52:14.657786+00:00", "created": "2018-05-03T14:14:15", "int_score": 4, "score": 4.09375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0086.json.gz" }
BurpSuite-MacOS =============== Build a MacOS .app wrapper for a user provided BurpSuite jar. This will allow Burp Suite to function as a traditional Mac app, with standard behaviour as far as the dock/mission control goes. Screenshot of what it looks like running in the dock: ![](https://i.cloudup.com/LmI3sxDnFP.png) By default, the build script assumes you are using the Burp Suite Professional.app directory to store all burp peripherals, such as bapps, log files, tmp directory, etc, and will copy them from the previous install into the new build. To remove this feature, comment out lines 67-88 in build.xml. Version and shortversion in build.xml are set for the latest version of burp. Build Instructions: ```bash $ git clone git@github.com:liftsecurity/BurpSuite-MacOS.git $ cd BurpSuite-MacOS $ echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile $ cp {Full Path to burpsuite_pro_x.jar} ./burpsuite.jar $ ant bundle ``` # 编译BurpSuite破解版为Mac Applocation ## 一、为什么要把BurpSuite破解版编译为Mac Applocation 优雅的装逼 ## 二、系统环境 ### java 安装步骤: 。。。。不知道如何安装java,那就放弃吧! 1、更改了build.xml文件里面的mainclassname,将其改为了burploader的启动函数 2、将burp破解版的程序拷贝到了当前目录 3、更改了icon图标
61a3058bc004636414de888f0472210441aef76d
{ "blob_id": "61a3058bc004636414de888f0472210441aef76d", "branch_name": "refs/heads/master", "committer_date": "2017-07-20T13:47:27", "content_id": "fdfd835a7eb0652ed4b2600cb07d130f5daafb8e", "detected_licenses": [ "Unlicense" ], "directory_id": "7b7b3f91afc5084c2a775c616ac3f631df37ac0e", "extension": "md", "filename": "README.md", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 1850, "license": "Unlicense", "license_type": "permissive", "path": "/README.md", "provenance": "stack-edu-markdown-0016.json.gz:273451", "repo_name": "xiaoQ1z/BurpSuite-MacOS", "revision_date": "2017-07-20T13:47:27", "revision_id": "0cdb598bc537887cffbb8538890afcf109c8d456", "snapshot_id": "c0b450e96ac0eb3eeb6adf03dcfe68166ebd7f44", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/xiaoQ1z/BurpSuite-MacOS/0cdb598bc537887cffbb8538890afcf109c8d456/README.md", "visit_date": "2021-06-19T22:13:40.587540", "added": "2024-11-18T23:15:28.033832+00:00", "created": "2017-07-20T13:47:27", "int_score": 3, "score": 3.421875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0016.json.gz" }
var _temp; var _FBrandCheck = /*#__PURE__*/new WeakSet(); var _xBrandCheck = /*#__PURE__*/new WeakSet(); var _yBrandCheck = /*#__PURE__*/new WeakSet(); class F { m() { _FBrandCheck.has(babelHelpers.checkInRHS(this)); _xBrandCheck.has(babelHelpers.checkInRHS(this)); _yBrandCheck.has(babelHelpers.checkInRHS(this)); _FBrandCheck.has(babelHelpers.checkInRHS(this)); } get #w() {} #x = (_FBrandCheck.add(this), (_xBrandCheck.add(this), 0)); #y = (_temp = (() => { throw 'error'; })(), _yBrandCheck.add(this), _temp); #z() {} }
2263914fe487742673b1bb6896a6f98f30bda7bd
{ "blob_id": "2263914fe487742673b1bb6896a6f98f30bda7bd", "branch_name": "refs/heads/main", "committer_date": "2023-09-04T12:25:59", "content_id": "6f7596336600496fa435a139d098125dcd922e47", "detected_licenses": [ "MIT" ], "directory_id": "edcfb2a9b88078a1dff828cdb1833b7ad38979df", "extension": "js", "filename": "output.js", "fork_events_count": 8038, "gha_created_at": "2014-09-28T13:38:23", "gha_event_created_at": "2023-09-14T18:03:56", "gha_language": "TypeScript", "gha_license_id": "MIT", "github_id": 24560307, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 558, "license": "MIT", "license_type": "permissive", "path": "/packages/babel-plugin-transform-private-property-in-object/test/fixtures/to-native-fields/half-constructed-instance/output.js", "provenance": "stack-edu-0040.json.gz:684462", "repo_name": "babel/babel", "revision_date": "2023-09-04T12:25:59", "revision_id": "aaf364a5675daec4dc61095c5fd6df6c9adf71cf", "snapshot_id": "f06bfd629a5fe2ad7f09acb36e4912e1e92109e5", "src_encoding": "UTF-8", "star_events_count": 45300, "url": "https://raw.githubusercontent.com/babel/babel/aaf364a5675daec4dc61095c5fd6df6c9adf71cf/packages/babel-plugin-transform-private-property-in-object/test/fixtures/to-native-fields/half-constructed-instance/output.js", "visit_date": "2023-09-05T11:12:24.239560", "added": "2024-11-19T01:20:09.396116+00:00", "created": "2023-09-04T12:25:59", "int_score": 2, "score": 2.109375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0058.json.gz" }
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { view()->composer('*', function ($view) { $current_route = \Request::route()->getName(); $curRoutes = explode('.', $current_route); $view->with('curRoutes', $curRoutes); }); } /** * Register any application services. * * @return void */ public function register() { // } }
b22033f954291133cfbfe1e300b0699f3be98971
{ "blob_id": "b22033f954291133cfbfe1e300b0699f3be98971", "branch_name": "refs/heads/master", "committer_date": "2016-07-19T06:33:46", "content_id": "b61e370352e730323e00bd5cd3ce0879b37e15ca", "detected_licenses": [ "MIT" ], "directory_id": "29631a63a843561260c2b41813184969aa83dc60", "extension": "php", "filename": "AppServiceProvider.php", "fork_events_count": 0, "gha_created_at": "2016-07-19T06:56:19", "gha_event_created_at": "2016-07-19T06:56:20", "gha_language": null, "gha_license_id": null, "github_id": 63669124, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 617, "license": "MIT", "license_type": "permissive", "path": "/app/Providers/AppServiceProvider.php", "provenance": "stack-edu-0050.json.gz:875289", "repo_name": "qixiaojun/register", "revision_date": "2016-07-19T06:33:46", "revision_id": "184f7f561ebac69b097fa41c25c55712d56c1043", "snapshot_id": "21ae3ad40d71a17f0b232d97c46807673ff19e15", "src_encoding": "UTF-8", "star_events_count": 1, "url": "https://raw.githubusercontent.com/qixiaojun/register/184f7f561ebac69b097fa41c25c55712d56c1043/app/Providers/AppServiceProvider.php", "visit_date": "2021-01-18T17:53:44.097174", "added": "2024-11-19T02:45:37.131205+00:00", "created": "2016-07-19T06:33:46", "int_score": 2, "score": 2.34375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0068.json.gz" }
package uk.gov.hmcts.reform.sandl.snlevents.repository.queries.sessionsearch; import lombok.Getter; import lombok.val; import uk.gov.hmcts.reform.sandl.snlevents.exceptions.SnlRuntimeException; import uk.gov.hmcts.reform.sandl.snlevents.repository.queries.ComparisonOperations; import uk.gov.hmcts.reform.sandl.snlevents.repository.queries.SearchCriteria; import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import java.util.stream.Collectors; public enum SessionFilterKey { START_DATE("startDate", null), END_DATE("endDate", null), SESSION_TYPE_CODES("sessionTypeCodes", null), ROOM_IDS("roomIds", null), PERSON_IDS("personIds", null), UNLISTED("unlisted", null), PART_LISTED("partListed", null), FULLY_LISTED("fullyListed", null), OVER_LISTED("overListed", null), CUSTOM("custom", null), ; public static final List<String> UTILISATION_KEYS = Arrays.asList( SessionFilterKey.UNLISTED.getKey(), SessionFilterKey.PART_LISTED.getKey(), SessionFilterKey.FULLY_LISTED.getKey(), SessionFilterKey.OVER_LISTED.getKey(), SessionFilterKey.CUSTOM.getKey() ); public static final String CASE_NOT_HANDLED_MSG = "Case not handled"; @Getter private String key; private SearchCriteria searchCriteria; SessionFilterKey(String key, SearchCriteria searchCriteria) { this.key = key; this.searchCriteria = searchCriteria; } public static SessionFilterKey fromSearchCriteria(SearchCriteria searchCriteria) { for (SessionFilterKey sessionFilterKey : SessionFilterKey.values()) { if (sessionFilterKey.key.equalsIgnoreCase(searchCriteria.getKey())) { sessionFilterKey.searchCriteria = searchCriteria; return sessionFilterKey; } } return null; } public Object getOriginalValue() { return this.searchCriteria.getValue(); } public Object getSqlValue() { Object value = this.searchCriteria.getValue(); switch (this) { case START_DATE: case END_DATE: return OffsetDateTime.parse((String) value); case CUSTOM: case SESSION_TYPE_CODES: return value; case ROOM_IDS: case PERSON_IDS: return ((List<String>) value).stream() .filter(s -> !s.isEmpty()) .map(UUID::fromString).collect(Collectors.toList()); case UNLISTED: case PART_LISTED: case FULLY_LISTED: case OVER_LISTED: return null; default: throw new SnlRuntimeException(CASE_NOT_HANDLED_MSG); } } public String getColumnName() { switch (this) { case START_DATE: return SearchSessionSelectColumn.SESSION_START_TIME.getColumnName(); case END_DATE: return SearchSessionSelectColumn.SESSION_START_DATE.getColumnName(); case SESSION_TYPE_CODES: return SearchSessionSelectColumn.SESSION_TYPE_CODE.getColumnName(); case ROOM_IDS: return SearchSessionSelectColumn.ROOM_ID.getColumnName(); case PERSON_IDS: return SearchSessionSelectColumn.PERSON_ID.getColumnName(); case UNLISTED: case PART_LISTED: case FULLY_LISTED: case OVER_LISTED: case CUSTOM: return SearchSessionSelectColumn.UTILISATION.getColumnName(); default: throw new SnlRuntimeException(CASE_NOT_HANDLED_MSG); } } public WhereClauseInfo getWherePredicate() { String whereClause = null; Map<String, Object> keyValuePairs = new HashMap<>(); keyValuePairs.put(getKey(), getSqlValue()); switch (this) { case START_DATE: whereClause = String.format(" AND %s >= :%s ", getColumnName(), getKey()); break; case END_DATE: whereClause = String.format(" AND %s <= :%s ", getColumnName(), getKey()); break; case SESSION_TYPE_CODES: whereClause = String.format(" AND %s IN (:%s) ", getColumnName(), getKey()); break; case ROOM_IDS: return createInClause(); case PERSON_IDS: return createInClause(); case UNLISTED: whereClause = String.format(" OR %s = 0 ", getColumnName()); keyValuePairs = new HashMap<>(); break; case PART_LISTED: whereClause = String.format(" OR (%s > 0 AND %s < 100) ", getColumnName(), getColumnName()); keyValuePairs = new HashMap<>(); break; case FULLY_LISTED: whereClause = String.format(" OR %s = 100 ", getColumnName()); keyValuePairs = new HashMap<>(); break; case OVER_LISTED: whereClause = String.format(" OR %s > 100 ", getColumnName()); keyValuePairs = new HashMap<>(); break; case CUSTOM: List<Integer> customValues = (List<Integer>) getSqlValue(); String customFromKey = "customFrom"; Object valueFrom = customValues.get(0); String customToKey = "customTo"; Object valueTo = customValues.get(1); keyValuePairs = new HashMap<>(); keyValuePairs.put(customFromKey, valueFrom); keyValuePairs.put(customToKey, valueTo); whereClause = String.format(" OR (%s >= :%s AND %s <= :%s)", getColumnName(), customFromKey, getColumnName(), customToKey); break; default: throw new SnlRuntimeException(CASE_NOT_HANDLED_MSG); } return new WhereClauseInfo(this, whereClause, keyValuePairs); } private WhereClauseInfo createInClause() { String whereClause; Map<String, Object> keyValuePairs = new HashMap<>(); keyValuePairs.put(getKey(), getSqlValue()); if (searchCriteria.getOperation() == ComparisonOperations.IN_OR_NULL) { val filteredValues = ((List<String>)this.getOriginalValue()) .stream() .filter(s -> !s.isEmpty()) .collect(Collectors.toList()); if (filteredValues.isEmpty()) { whereClause = String.format(" AND %s IS NULL ", getColumnName()); keyValuePairs = new HashMap<>(); } else { whereClause = String.format(" AND %s IN (:%s) OR %s IS NULL ", getColumnName(), getKey(), getColumnName()); } } else { whereClause = String.format(" AND %s IN (:%s) ", getColumnName(), getKey()); } return new WhereClauseInfo(this, whereClause, keyValuePairs); } }
2c00590366c15262295e71173047f019e55e9f24
{ "blob_id": "2c00590366c15262295e71173047f019e55e9f24", "branch_name": "refs/heads/master", "committer_date": "2019-02-01T21:40:08", "content_id": "d248002203f9fdcfe9a6aa4f3b428f7566babc1f", "detected_licenses": [ "MIT" ], "directory_id": "41c2350d40adf5bdd69c79b57036578a10e17999", "extension": "java", "filename": "SessionFilterKey.java", "fork_events_count": 2, "gha_created_at": "2018-04-11T15:40:39", "gha_event_created_at": "2020-07-08T09:52:49", "gha_language": "Java", "gha_license_id": "MIT", "github_id": 129116735, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 7031, "license": "MIT", "license_type": "permissive", "path": "/src/main/java/uk/gov/hmcts/reform/sandl/snlevents/repository/queries/sessionsearch/SessionFilterKey.java", "provenance": "stack-edu-0020.json.gz:512183", "repo_name": "hmcts/snl-events", "revision_date": "2019-02-01T21:40:08", "revision_id": "b86748ed40813ae2dd6ee658103a55355840eb83", "snapshot_id": "26e294e19fe5f5f1903cbedb59333522dca5bd15", "src_encoding": "UTF-8", "star_events_count": 2, "url": "https://raw.githubusercontent.com/hmcts/snl-events/b86748ed40813ae2dd6ee658103a55355840eb83/src/main/java/uk/gov/hmcts/reform/sandl/snlevents/repository/queries/sessionsearch/SessionFilterKey.java", "visit_date": "2021-07-06T14:26:59.531041", "added": "2024-11-19T02:45:07.081660+00:00", "created": "2019-02-01T21:40:08", "int_score": 2, "score": 2.171875, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0038.json.gz" }
<?php namespace Orl\Model; class NoteMedicale { public $id_note_medicale; public $id_cons; public $nouvelle_note_medicale; public function exchangeArray($data) { $this->id_note_medicale = (! empty ( $data ['id_note_medicale'] )) ? $data ['id_note_medicale'] : null; $this->id_cons = (! empty ( $data ['id_cons'] )) ? $data ['id_cons'] : null; $this->nouvelle_note_medicale = (! empty ( $data ['nouvelle_note_medicale'] )) ? $data ['nouvelle_note_medicale'] : null; } }
46098d7968592b0b1c251e596a73dec4d6ea888f
{ "blob_id": "46098d7968592b0b1c251e596a73dec4d6ea888f", "branch_name": "refs/heads/master", "committer_date": "2021-07-02T09:46:08", "content_id": "ae0f03d6d45e24f17a38f923161c32e1ebd13bea", "detected_licenses": [], "directory_id": "bc6f30a2856a1c34bfe17e9307b06811749dd8dc", "extension": "php", "filename": "NoteMedicale.php", "fork_events_count": 2, "gha_created_at": "2020-08-31T16:31:45", "gha_event_created_at": "2023-08-09T14:42:32", "gha_language": "HTML", "gha_license_id": "BSD-3-Clause", "github_id": 291768233, "is_generated": false, "is_vendor": false, "language": "PHP", "length_bytes": 486, "license": "", "license_type": "permissive", "path": "/module/Orl/src/Orl/Model/NoteMedicale.php", "provenance": "stack-edu-0049.json.gz:512337", "repo_name": "gaoussoucamara/simens-orl", "revision_date": "2021-07-02T09:46:08", "revision_id": "08bd853625148bc0b842ffb5dc73400a0da06037", "snapshot_id": "6eaeadaee349b577a5c3a8c9c7a7affd62dd62c4", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/gaoussoucamara/simens-orl/08bd853625148bc0b842ffb5dc73400a0da06037/module/Orl/src/Orl/Model/NoteMedicale.php", "visit_date": "2023-08-18T02:48:32.655615", "added": "2024-11-18T20:52:26.054673+00:00", "created": "2021-07-02T09:46:08", "int_score": 3, "score": 2.59375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0067.json.gz" }
#include "saltlamp_AI.h" void saltlamp_AI::send_status(byte pin) { if (!devices[pin].active) { devices[pin].value = analogRead(pin); } Serial.print(F("AI ")); Serial.print(pin + 60); Serial.print(F(" ")); Serial.println(devices[pin].value); } void saltlamp_AI::loop() { int j; int diff; for (byte i=0; i<PINS; i++) { if (devices[i].active) { j = analogRead(i); diff = j - devices[i].value; if ( abs(diff) >= devices[i].diffThreshold ) { devices[i].value = j; send_status(i); } } } } void saltlamp_AI::parse(String &ser_command, byte &ser_pin, String &ser_value) { if (ser_command == F("REG")) { if (!DEVS.in_use(ser_pin)) { DEVS.reg(ser_pin, mAI); ser_pin = ser_pin - 60; devices[ser_pin].value = analogRead(ser_pin); devices[ser_pin].active = false; if (ser_value == F("E")) { devices[ser_pin].active = true; } response_msg = MSG_OK; } else { response_msg = MSG_PIN_IN_USE; } } else if (ser_command == F("SET_DIFFTHRSHLD")) { if (DEVS.is_device(ser_pin, mAI)) { devices[ser_pin - 60].diffThreshold = ser_value.toInt(); response_msg = MSG_OK; } else { response_msg = MSG_NOT_DEVICE; } } else if (ser_command == F("ENABLE")) { if (DEVS.is_device(ser_pin, mAI)) { devices[ser_pin - 60].active = true; response_msg = MSG_OK; } else { response_msg = MSG_NOT_DEVICE; } } else if (ser_command == F("DISABLE")) { if (DEVS.is_device(ser_pin, mAI)) { devices[ser_pin - 60].active = false; response_msg = MSG_OK; } else { response_msg = MSG_NOT_DEVICE; } } else if (ser_command == F("READ")) { if (DEVS.is_device(ser_pin, mAI)) { send_status(ser_pin - 60); } else { response_msg = MSG_NOT_DEVICE; } } else { response_msg = MSG_CMD_NOT_RECO; } }
1647333424cbf261dac6ce980c1552f7e509a8b9
{ "blob_id": "1647333424cbf261dac6ce980c1552f7e509a8b9", "branch_name": "refs/heads/master", "committer_date": "2016-02-08T16:26:12", "content_id": "04979f6f16cf20074ed467bd506d31440f364582", "detected_licenses": [ "MIT" ], "directory_id": "269398765948858c73e91af2e45eddc3bdf5941d", "extension": "cpp", "filename": "saltlamp_AI.cpp", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 26361374, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 1800, "license": "MIT", "license_type": "permissive", "path": "/modules/saltlamp_AI.cpp", "provenance": "stack-edu-0006.json.gz:378356", "repo_name": "renekliment/saltlamp-arduino", "revision_date": "2016-02-08T16:26:12", "revision_id": "ece16e4e6727f5d5245b0f321b3c46d58f3cb364", "snapshot_id": "aa284b0525be6dd7f66d82d39c99a3e475f7cf9c", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/renekliment/saltlamp-arduino/ece16e4e6727f5d5245b0f321b3c46d58f3cb364/modules/saltlamp_AI.cpp", "visit_date": "2021-01-23T03:27:31.365895", "added": "2024-11-18T22:25:30.401141+00:00", "created": "2016-02-08T16:26:12", "int_score": 3, "score": 2.5625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0024.json.gz" }
const path = require('path'); const config = require(path.join(__dirname, '../../configuration', 'config.json')); let uuid = require('uuid/v1'); exports.clean = function (obj) { for (var propName in obj) { if (typeof obj[propName] === 'object') { this.clean(obj[propName]); } if (obj[propName] === null || obj[propName] === undefined || obj[propName] === '') { delete obj[propName]; } // this added to remove also the empty objects - we should check if we want or not // else if (Object.entries(obj[propName]).length === 0 && obj.constructor === Object) { // delete obj[propName]; // } } }; // /** // * Function will create the response but will strip out the the depthDiff due to a bug // * in Grafana dashboard // * @param {JSON} statusObject // */ // exports.grafanaResponse = function (statusObject) { // let response = this.createResponse(statusObject); // //remove the depthDiff part // //if (Object.prototype.hasOwnProperty.call(response.results, 'depthDiff')) // // delete response.results.depthDiff; // return response; // }; /** * Function adds timestamp and executionID to the response for elasticsearch. * * The function also removes any empty values in statusObject * @param {JSON} statusObject */ exports.createResponse = function (statusObject) { // Defining dynamic variables of TimeStamp, ExecutionID, APIName & CountryCode const timeStamp = new Date(); // Assigning the TimeStamp const executionID = uuid(); // Generate UUID and assign to ExecutionID //get the release version from the configuration file if (Object.prototype.hasOwnProperty.call(config, 'release')) statusObject.release = config.release; else statusObject.release = '0.0.1'; var responseJson = statusObject; responseJson.Timestamp = timeStamp; responseJson.executionID = executionID; //remove the swagger objects from the response if they are defined if (Object.prototype.hasOwnProperty.call(responseJson.conformanceDetails.officialRelease, 'swaggerDef')) delete responseJson.conformanceDetails.officialRelease.swaggerDef; if (Object.prototype.hasOwnProperty.call(responseJson.conformanceDetails.suppliedRelease, 'swaggerDef')) delete responseJson.conformanceDetails.suppliedRelease.swaggerDef; // clean the payload of empty fields this.clean(responseJson); return responseJson; };
6898a3313f7dd8a836bd20b65156504d4cd62420
{ "blob_id": "6898a3313f7dd8a836bd20b65156504d4cd62420", "branch_name": "refs/heads/master", "committer_date": "2021-09-06T15:35:06", "content_id": "32dbb115521218199eb0b09b4ea4fac143c82743", "detected_licenses": [ "MIT" ], "directory_id": "b87d6c69da872e3c3520faf74bee8ae13af64a8f", "extension": "js", "filename": "response.js", "fork_events_count": 1, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": 360132357, "is_generated": false, "is_vendor": false, "language": "JavaScript", "length_bytes": 2394, "license": "MIT", "license_type": "permissive", "path": "/src/helpers/response.js", "provenance": "stack-edu-0038.json.gz:369891", "repo_name": "tmforum-apis/APITestEngineStaticCTK", "revision_date": "2021-09-06T15:35:06", "revision_id": "9ff8ffa0a2d3ecbcd1e351ff8d16df4b7d298a00", "snapshot_id": "c1740cafe81d9d75c96a7925443bf50e410d3ba2", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/tmforum-apis/APITestEngineStaticCTK/9ff8ffa0a2d3ecbcd1e351ff8d16df4b7d298a00/src/helpers/response.js", "visit_date": "2023-07-28T11:19:12.649656", "added": "2024-11-19T00:42:31.643843+00:00", "created": "2021-09-06T15:35:06", "int_score": 3, "score": 2.703125, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0056.json.gz" }
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package mongodbatlasreceiver import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.mongodb.org/atlas/mongodbatlas" "go.opentelemetry.io/collector/pdata/pcommon" "go.opentelemetry.io/collector/pdata/plog" "go.uber.org/zap" "go.uber.org/zap/zaptest" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver/internal/model" ) func TestMongoeventToLogData4_4(t *testing.T) { mongoevent := GetTestEvent4_4() pc := ProjectContext{ orgName: "Org", Project: mongodbatlas.Project{Name: "Project"}, } ld := mongodbEventToLogData(zap.NewNop(), []model.LogEntry{mongoevent}, pc, "hostname", "logName", "clusterName", "4.4") rl := ld.ResourceLogs().At(0) resourceAttrs := rl.Resource().Attributes() sl := rl.ScopeLogs().At(0) lr := sl.LogRecords().At(0) attrs := lr.Attributes() assert.Equal(t, 1, ld.ResourceLogs().Len()) assert.Equal(t, 4, resourceAttrs.Len()) assertString(t, resourceAttrs, "mongodb_atlas.org", "Org") assertString(t, resourceAttrs, "mongodb_atlas.project", "Project") assertString(t, resourceAttrs, "mongodb_atlas.cluster", "clusterName") assertString(t, resourceAttrs, "mongodb_atlas.host.name", "hostname") t.Logf("%+v", attrs.AsRaw()) assert.Equal(t, 8, attrs.Len()) assertInt(t, attrs, "id", 12312) assertString(t, attrs, "message", "Connection ended") assertString(t, attrs, "component", "NETWORK") assertString(t, attrs, "context", "context") assertString(t, attrs, "log_name", "logName") assertString(t, attrs, "remote", "192.168.253.105:59742") assertInt(t, attrs, "connectionCount", 47) assertInt(t, attrs, "connectionId", 9052) assert.Equal(t, pcommon.Timestamp(1663006227215000000), lr.Timestamp()) assert.Equal(t, "RAW MESSAGE", lr.Body().Str()) assert.Equal(t, "I", lr.SeverityText()) assert.Equal(t, plog.SeverityNumberInfo, lr.SeverityNumber()) } func TestMongoeventToLogData4_2(t *testing.T) { mongoevent := GetTestEvent4_2() pc := ProjectContext{ orgName: "Org", Project: mongodbatlas.Project{Name: "Project"}, } ld := mongodbEventToLogData(zaptest.NewLogger(t), []model.LogEntry{mongoevent}, pc, "hostname", "logName", "clusterName", "4.2") rl := ld.ResourceLogs().At(0) resourceAttrs := rl.Resource().Attributes() sl := rl.ScopeLogs().At(0) lr := sl.LogRecords().At(0) attrs := lr.Attributes() assert.Equal(t, 1, ld.ResourceLogs().Len()) assert.Equal(t, 4, resourceAttrs.Len()) assertString(t, resourceAttrs, "mongodb_atlas.org", "Org") assertString(t, resourceAttrs, "mongodb_atlas.project", "Project") assertString(t, resourceAttrs, "mongodb_atlas.cluster", "clusterName") assertString(t, resourceAttrs, "mongodb_atlas.host.name", "hostname") assert.Equal(t, 4, attrs.Len()) assertString(t, attrs, "message", "Connection ended") assertString(t, attrs, "component", "NETWORK") assertString(t, attrs, "context", "context") assertString(t, attrs, "log_name", "logName") assert.Equal(t, pcommon.Timestamp(1663004293902000000), lr.Timestamp()) _, exists := attrs.Get("id") assert.False(t, exists, "expected attribute id to not exist, but it did") assert.Equal(t, "RAW MESSAGE", lr.Body().Str()) assert.Equal(t, "I", lr.SeverityText()) assert.Equal(t, plog.SeverityNumberInfo, lr.SeverityNumber()) } func TestUnknownSeverity(t *testing.T) { mongoevent := GetTestEvent4_4() mongoevent.Severity = "Unknown" pc := ProjectContext{ orgName: "Org", Project: mongodbatlas.Project{Name: "Project"}, } ld := mongodbEventToLogData(zap.NewNop(), []model.LogEntry{mongoevent}, pc, "hostname", "clusterName", "logName", "4.4") rl := ld.ResourceLogs().At(0) logEntry := rl.ScopeLogs().At(0).LogRecords().At(0) assert.Equal(t, logEntry.SeverityNumber(), plog.SeverityNumberUnspecified) assert.Equal(t, logEntry.SeverityText(), "") } func TestMongoEventToAuditLogData5_0(t *testing.T) { mongoevent := GetTestAuditEvent5_0() pc := ProjectContext{ orgName: "Org", Project: mongodbatlas.Project{Name: "Project"}, } ld, err := mongodbAuditEventToLogData(zaptest.NewLogger(t), []model.AuditLog{mongoevent}, pc, "hostname", "logName", "clusterName", "5.0") require.NoError(t, err) rl := ld.ResourceLogs().At(0) resourceAttrs := rl.Resource().Attributes() sl := rl.ScopeLogs().At(0) lr := sl.LogRecords().At(0) attrs := lr.Attributes() assert.Equal(t, ld.ResourceLogs().Len(), 1) assert.Equal(t, resourceAttrs.Len(), 4) assertString(t, resourceAttrs, "mongodb_atlas.org", "Org") assertString(t, resourceAttrs, "mongodb_atlas.project", "Project") assertString(t, resourceAttrs, "mongodb_atlas.cluster", "clusterName") assertString(t, resourceAttrs, "mongodb_atlas.host.name", "hostname") assert.Equal(t, 14, attrs.Len()) assertString(t, attrs, "atype", "authenticate") assertString(t, attrs, "local.ip", "0.0.0.0") assertInt(t, attrs, "local.port", 3000) assertBool(t, attrs, "local.isSystemUser", true) assertString(t, attrs, "local.unix", "/var/run/mongodb/mongodb-27017.sock") assertString(t, attrs, "remote.ip", "192.168.1.237") assertInt(t, attrs, "remote.port", 4000) assertString(t, attrs, "uuid.binary", "binary") assertString(t, attrs, "uuid.type", "type") assertString(t, attrs, "log_name", "logName") assertInt(t, attrs, "result", 40) roles, ok := attrs.Get("roles") require.True(t, ok, "roles key does not exist") require.Equal(t, roles.Slice().Len(), 1) assertString(t, roles.Slice().At(0).Map(), "role", "test_role") assertString(t, roles.Slice().At(0).Map(), "db", "test_db") users, ok := attrs.Get("users") require.True(t, ok, "users key does not exist") require.Equal(t, users.Slice().Len(), 1) assertString(t, users.Slice().At(0).Map(), "user", "mongo_user") assertString(t, users.Slice().At(0).Map(), "db", "my_db") param, ok := attrs.Get("param") require.True(t, ok, "param key does not exist") assert.Equal(t, mongoevent.Param, param.Map().AsRaw()) assert.Equal(t, pcommon.Timestamp(1663342012563000000), lr.Timestamp()) assert.Equal(t, plog.SeverityNumberInfo, lr.SeverityNumber()) assert.Equal(t, "INFO", lr.SeverityText()) assert.Equal(t, "RAW MESSAGE", lr.Body().Str()) } func TestMongoEventToAuditLogData4_2(t *testing.T) { mongoevent := GetTestAuditEvent4_2() pc := ProjectContext{ orgName: "Org", Project: mongodbatlas.Project{Name: "Project"}, } ld, err := mongodbAuditEventToLogData(zaptest.NewLogger(t), []model.AuditLog{mongoevent}, pc, "hostname", "logName", "clusterName", "4.2") require.NoError(t, err) rl := ld.ResourceLogs().At(0) resourceAttrs := rl.Resource().Attributes() sl := rl.ScopeLogs().At(0) lr := sl.LogRecords().At(0) attrs := lr.Attributes() assert.Equal(t, ld.ResourceLogs().Len(), 1) assert.Equal(t, resourceAttrs.Len(), 4) assertString(t, resourceAttrs, "mongodb_atlas.org", "Org") assertString(t, resourceAttrs, "mongodb_atlas.project", "Project") assertString(t, resourceAttrs, "mongodb_atlas.cluster", "clusterName") assertString(t, resourceAttrs, "mongodb_atlas.host.name", "hostname") assert.Equal(t, 10, attrs.Len()) assertString(t, attrs, "atype", "authenticate") assertString(t, attrs, "local.ip", "0.0.0.0") assertInt(t, attrs, "local.port", 3000) assertString(t, attrs, "remote.ip", "192.168.1.237") assertInt(t, attrs, "remote.port", 4000) assertString(t, attrs, "log_name", "logName") assertInt(t, attrs, "result", 40) roles, ok := attrs.Get("roles") require.True(t, ok, "roles key does not exist") require.Equal(t, roles.Slice().Len(), 1) assertString(t, roles.Slice().At(0).Map(), "role", "test_role") assertString(t, roles.Slice().At(0).Map(), "db", "test_db") users, ok := attrs.Get("users") require.True(t, ok, "users key does not exist") require.Equal(t, users.Slice().Len(), 1) assertString(t, users.Slice().At(0).Map(), "user", "mongo_user") assertString(t, users.Slice().At(0).Map(), "db", "my_db") param, ok := attrs.Get("param") require.True(t, ok, "param key does not exist") assert.Equal(t, mongoevent.Param, param.Map().AsRaw()) assert.Equal(t, pcommon.Timestamp(1663342012563000000), lr.Timestamp()) assert.Equal(t, plog.SeverityNumberInfo, lr.SeverityNumber()) assert.Equal(t, "INFO", lr.SeverityText()) assert.Equal(t, "RAW MESSAGE", lr.Body().Str()) } func GetTestEvent4_4() model.LogEntry { return model.LogEntry{ Timestamp: model.LogTimestamp{ Date: "2022-09-12T18:10:27.215+00:00", }, Severity: "I", Component: "NETWORK", ID: 12312, Context: "context", Message: "Connection ended", Attributes: map[string]interface{}{"connectionCount": 47, "connectionId": 9052, "remote": "192.168.253.105:59742", "id": "93a8f190-afd0-422d-9de6-f6c5e833e35f"}, Raw: "RAW MESSAGE", } } func GetTestEvent4_2() model.LogEntry { return model.LogEntry{ Severity: "I", Component: "NETWORK", Context: "context", Message: "Connection ended", Timestamp: model.LogTimestamp{ Date: "2022-09-12T17:38:13.902+0000", }, Raw: "RAW MESSAGE", } } func GetTestAuditEvent5_0() model.AuditLog { return model.AuditLog{ Timestamp: model.LogTimestamp{ Date: "2022-09-16T15:26:52.563+00:00", }, Type: "authenticate", ID: &model.ID{ Type: "type", Binary: "binary", }, Local: model.Address{ IP: strp("0.0.0.0"), Port: intp(3000), SystemUser: boolp(true), UnixSocket: strp("/var/run/mongodb/mongodb-27017.sock"), }, Remote: model.Address{ IP: strp("192.168.1.237"), Port: intp(4000), }, Roles: []model.AuditRole{ { Role: "test_role", Database: "test_db", }, }, Users: []model.AuditUser{ { User: "mongo_user", Database: "my_db", }, }, Result: 40, Param: map[string]any{ "user": "name", "db": "db", "mechanism": "mechanism", }, Raw: "RAW MESSAGE", } } func GetTestAuditEvent4_2() model.AuditLog { return model.AuditLog{ Timestamp: model.LogTimestamp{ Date: "2022-09-16T15:26:52.563+0000", }, Type: "authenticate", Local: model.Address{ IP: strp("0.0.0.0"), Port: intp(3000), }, Remote: model.Address{ IP: strp("192.168.1.237"), Port: intp(4000), }, Roles: []model.AuditRole{ { Role: "test_role", Database: "test_db", }, }, Users: []model.AuditUser{ { User: "mongo_user", Database: "my_db", }, }, Result: 40, Param: map[string]any{ "user": "name", "db": "db", "mechanism": "mechanism", }, Raw: "RAW MESSAGE", } } func assertString(t *testing.T, m pcommon.Map, key, expected string) { t.Helper() v, ok := m.Get(key) require.True(t, ok) assert.Equal(t, expected, v.AsRaw()) } func assertInt(t *testing.T, m pcommon.Map, key string, expected int64) { t.Helper() v, ok := m.Get(key) require.True(t, ok) assert.Equal(t, expected, v.AsRaw()) } func assertBool(t *testing.T, m pcommon.Map, key string, expected bool) { t.Helper() v, ok := m.Get(key) require.True(t, ok) assert.Equal(t, expected, v.AsRaw()) }
ed9e7c57b57caae3bba0891de24a1ff2123ccbf0
{ "blob_id": "ed9e7c57b57caae3bba0891de24a1ff2123ccbf0", "branch_name": "refs/heads/main", "committer_date": "2023-08-31T07:38:27", "content_id": "88b053b9c2c8d1e2384db88fc70e588a3dc177db", "detected_licenses": [ "Apache-2.0" ], "directory_id": "019be08e202e279e68f16795ccb55fae472f2ef6", "extension": "go", "filename": "mongodb_event_to_logdata_test.go", "fork_events_count": 1833, "gha_created_at": "2019-07-11T14:54:32", "gha_event_created_at": "2023-09-14T21:56:18", "gha_language": "Go", "gha_license_id": "Apache-2.0", "github_id": 196414933, "is_generated": false, "is_vendor": false, "language": "Go", "length_bytes": 11047, "license": "Apache-2.0", "license_type": "permissive", "path": "/receiver/mongodbatlasreceiver/mongodb_event_to_logdata_test.go", "provenance": "stack-edu-0017.json.gz:604353", "repo_name": "open-telemetry/opentelemetry-collector-contrib", "revision_date": "2023-08-31T07:38:27", "revision_id": "7211102c1176e46a911462d159286f20690c69f9", "snapshot_id": "bafd4e67fee983d58c12f9fa53f7c6e15197180b", "src_encoding": "UTF-8", "star_events_count": 1971, "url": "https://raw.githubusercontent.com/open-telemetry/opentelemetry-collector-contrib/7211102c1176e46a911462d159286f20690c69f9/receiver/mongodbatlasreceiver/mongodb_event_to_logdata_test.go", "visit_date": "2023-08-31T08:11:21.738382", "added": "2024-11-18T21:03:25.034352+00:00", "created": "2023-08-31T07:38:27", "int_score": 2, "score": 2.140625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0035.json.gz" }
# Qooxdoo API Viewer The is the API Viewer package for Qooxdoo. ## Online version http://www.qooxdoo.org/qxl.apiviewer/ ## Adding an API viewer for your own code ``` $ qx pkg update $ qx pkg install qooxdoo/qxl.apiviewer $ qx serve ``` Then start `qx serve` and browse to [http://localhost:8080](http://localhost:8080). You will see that you now have a new application listed, the "API Viewer", that you can click on the link to run ## Developing API Viewer Clone this repo and compile it: ``` $ git clone https://github.com/qooxdoo/qxl.apiviewer $ cd qxl.apiviewer $ qx serve ``` Then open [http://localhost:8080](http://localhost:8080)
666586082cd4a128209ffa0747eaa538d790406f
{ "blob_id": "666586082cd4a128209ffa0747eaa538d790406f", "branch_name": "refs/heads/master", "committer_date": "2020-05-22T09:08:06", "content_id": "e1ee342171370632ff1d540241f6fe4333f138d7", "detected_licenses": [ "MIT" ], "directory_id": "5d6342c6cc09017b73ae09e43e51ae42be86072b", "extension": "md", "filename": "README.md", "fork_events_count": 0, "gha_created_at": "2020-05-22T08:50:36", "gha_event_created_at": "2020-05-22T08:50:37", "gha_language": null, "gha_license_id": "MIT", "github_id": 266063449, "is_generated": false, "is_vendor": false, "language": "Markdown", "length_bytes": 662, "license": "MIT", "license_type": "permissive", "path": "/README.md", "provenance": "stack-edu-markdown-0013.json.gz:11480", "repo_name": "cboulanger/qxl.apiviewer", "revision_date": "2020-05-22T09:08:06", "revision_id": "a3f9290632d045452a027b317820c24af2793397", "snapshot_id": "303e5f417fa7cb421acd72743a01ed52cec83733", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/cboulanger/qxl.apiviewer/a3f9290632d045452a027b317820c24af2793397/README.md", "visit_date": "2022-08-05T21:46:51.358971", "added": "2024-11-18T22:33:14.075975+00:00", "created": "2020-05-22T09:08:06", "int_score": 3, "score": 2.9375, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0013.json.gz" }
package yajco.example.imperative.model.expression.assignment; import yajco.model.pattern.impl.Associativity; import yajco.annotation.Before; import yajco.annotation.Operator; import yajco.example.imperative.machine.Machine; import yajco.example.imperative.model.expression.Expression; import yajco.example.imperative.model.expression.UnaryOperation; import yajco.example.imperative.model.expression.Variable; public class PrefixDecrement extends UnaryOperation { @Operator(priority = 14, associativity = Associativity.NONE) public PrefixDecrement(@Before("MINUSMINUS") Expression expression) { super(expression); } @Override public long eval() { String ident = ((Variable) getExpression()).getIdent(); long value = Machine.getInstance().getValue(ident) - 1; Machine.getInstance().setValue(ident, value); return value; } }
a738bd3d146a7879e68790531199f09cb0bbcff1
{ "blob_id": "a738bd3d146a7879e68790531199f09cb0bbcff1", "branch_name": "refs/heads/master", "committer_date": "2020-01-07T12:46:00", "content_id": "7b8324cbdef399aa38d73c21aff424f98093ff83", "detected_licenses": [ "MIT" ], "directory_id": "d6029268bdc78e509528676fa818ae215ebe5d7d", "extension": "java", "filename": "PrefixDecrement.java", "fork_events_count": 0, "gha_created_at": "2020-04-22T15:35:10", "gha_event_created_at": "2020-04-22T15:35:11", "gha_language": null, "gha_license_id": "MIT", "github_id": 257943950, "is_generated": false, "is_vendor": false, "language": "Java", "length_bytes": 889, "license": "MIT", "license_type": "permissive", "path": "/yajco-example-imperativeLang/src/main/java/yajco/example/imperative/model/expression/assignment/PrefixDecrement.java", "provenance": "stack-edu-0030.json.gz:454573", "repo_name": "HawkSK/yajco-examples", "revision_date": "2020-01-07T12:46:00", "revision_id": "3a8408eb0ccdae70075e30a70c8586fff1cedaf3", "snapshot_id": "15bfd3a9de200c090ed3e5c93f697b1cfe8760d4", "src_encoding": "UTF-8", "star_events_count": 0, "url": "https://raw.githubusercontent.com/HawkSK/yajco-examples/3a8408eb0ccdae70075e30a70c8586fff1cedaf3/yajco-example-imperativeLang/src/main/java/yajco/example/imperative/model/expression/assignment/PrefixDecrement.java", "visit_date": "2022-12-25T00:08:42.449081", "added": "2024-11-18T23:09:32.421268+00:00", "created": "2020-01-07T12:46:00", "int_score": 2, "score": 2.5, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0048.json.gz" }
#ifndef DALI_TOOLKIT_TRANSITION_BASE_H #define DALI_TOOLKIT_TRANSITION_BASE_H /* * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ // INTERNAL INCLUDES #include <dali-toolkit/public-api/dali-toolkit-common.h> // EXTERNAL INCLUDES #include <dali/public-api/animation/alpha-function.h> #include <dali/public-api/animation/time-period.h> #include <dali/public-api/object/base-handle.h> namespace Dali { namespace Toolkit { namespace Internal DALI_INTERNAL { class TransitionBase; } /** * @brief * * Transition provides continuous and seamless motions for the visually plausible scene change. * And, TransitionBase is a base class for every Transition cases. */ class DALI_TOOLKIT_API TransitionBase : public BaseHandle { public: /** * @brief Creates an uninitialized TransitionBase; this can be initialized with TransitionBase::New(). * * Calling member functions with an uninitialized TransitionBase handle is not allowed. */ TransitionBase(); /** * @brief Creates an initialized TransitionBase. */ static TransitionBase New(); /** * @brief Downcasts a handle to TransitionBase handle. * * If handle points to an TransitionBase object, the downcast produces valid handle. * If not, the returned handle is left uninitialized. * * @param[in] handle Handle to an object * @return Handle to an TransitionBase object or an uninitialized handle */ static TransitionBase DownCast(BaseHandle handle); /** * @brief Destructor. * * This is non-virtual since derived Handle types must not contain data or virtual methods. */ ~TransitionBase(); /** * @brief This copy constructor is required for (smart) pointer semantics. * * @param[in] handle A reference to the copied handle */ TransitionBase(const TransitionBase& handle); /** * @brief This assignment operator is required for (smart) pointer semantics. * * @param[in] rhs A reference to the copied handle * @return A reference to this */ TransitionBase& operator=(const TransitionBase& rhs); /** * @brief Move constructor. * * @param[in] rhs A reference to the moved handle */ TransitionBase(TransitionBase&& rhs) noexcept; /** * @brief Move assignment operator. * * @param[in] rhs A reference to the moved handle * @return A reference to this handle */ TransitionBase& operator=(TransitionBase&& rhs) noexcept; /** * Set time period that contains delay and duration * @param[in] timePeriod The time period for an animator. */ void SetTimePeriod(TimePeriod timePeriod); /** * Get time period that contains delay and duration */ TimePeriod GetTimePeriod() const; /** * @brief Sets the alpha function for an transition. * * This is applied to individual property transitions, if no further alpha functions are supplied. * @param[in] alpha The alpha function */ void SetAlphaFunction(AlphaFunction alpha); /** * @brief Retrieves the alpha function for an transition. * * @return The alpha function */ AlphaFunction GetAlphaFunction() const; /** * @brief A Control could be transition with its child Controls or without them. * @param[in] transitionWithChild True if the Control is transitioned with children. */ void TransitionWithChild(bool transitionWithChild); /** * @brief Set this transition is appearing transition or not. * @param[in] appearingTransition True if this transition is appearing transition. */ void SetAppearingTransition(bool appearingTransition); public: // Not intended for use by Application developers /// @cond internal /** * @brief This constructor is used by TransitionBase::New() methods. * @param[in] transitionBase A pointer to a newly allocated Dali resource */ explicit DALI_INTERNAL TransitionBase(Internal::TransitionBase* transitionBase); /// @endcond }; } // namespace Toolkit } // namespace Dali #endif // DALI_TOOLKIT_TRANSITION_BASE_H
59100ac164abf425cad32b175356b8628f7b4113
{ "blob_id": "59100ac164abf425cad32b175356b8628f7b4113", "branch_name": "refs/heads/master", "committer_date": "2023-09-01T14:02:39", "content_id": "472d5551d70eb1c1cd55c15475170b0ff2694502", "detected_licenses": [ "Apache-2.0", "BSD-3-Clause" ], "directory_id": "49f394ccd6c3729e9c382a3fe09415344ca98874", "extension": "h", "filename": "transition-base.h", "fork_events_count": 12, "gha_created_at": "2016-10-05T18:13:51", "gha_event_created_at": "2020-08-28T14:04:59", "gha_language": "C++", "gha_license_id": "NOASSERTION", "github_id": 70086454, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 4544, "license": "Apache-2.0,BSD-3-Clause", "license_type": "permissive", "path": "/dali-toolkit/public-api/transition/transition-base.h", "provenance": "stack-edu-0007.json.gz:173217", "repo_name": "dalihub/dali-toolkit", "revision_date": "2023-09-01T14:02:39", "revision_id": "4dec2735f5e5b5ed74f70a402c9a008d6c21af05", "snapshot_id": "69ccb4c71904fdc9f1d88e0a1fedeaa2691213f8", "src_encoding": "UTF-8", "star_events_count": 8, "url": "https://raw.githubusercontent.com/dalihub/dali-toolkit/4dec2735f5e5b5ed74f70a402c9a008d6c21af05/dali-toolkit/public-api/transition/transition-base.h", "visit_date": "2023-09-03T05:02:34.534108", "added": "2024-11-18T23:39:53.780482+00:00", "created": "2023-09-01T14:02:39", "int_score": 2, "score": 2.265625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0025.json.gz" }
#include "stdafx.h" #include "W_SoftwareFirstTip.h" #include "../drillgifactionsequenceeditor.h" #include "Source/ProjectModule/storageGlobal/s_IniManager.h" #include "Source/Utils/common/TTool.h" /* -----==========================================================----- 类: 首页提示框.cpp 所属模块: 主窗体模块 功能: 首页提示框。 使用方法: >打开窗口 W_SoftwareFirstTip d; d.exec(); -----==========================================================----- */ W_SoftwareFirstTip::W_SoftwareFirstTip(QWidget *parent) : QDialog(parent) { W_SoftwareFirstTip::cur_instance = this; ui.setupUi(this); this->_init(); } W_SoftwareFirstTip::~W_SoftwareFirstTip(){ } /*------------------------------------------------- 单例 */ W_SoftwareFirstTip* W_SoftwareFirstTip::cur_instance = NULL; W_SoftwareFirstTip* W_SoftwareFirstTip::getInstance() { if (cur_instance == NULL) { cur_instance = new W_SoftwareFirstTip(DrillGIFActionSequenceEditor::getInstance()); } return cur_instance; } /*------------------------------------------------- 初始化 */ void W_SoftwareFirstTip::_init() { //----------------------------------- //----事件绑定 connect(ui.toolButton, &QToolButton::clicked, this, &W_SoftwareFirstTip::openUserManual); connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(acceptData())); connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(rejectData())); //----------------------------------- //----ui初始化 TTool::_chinese_(ui.buttonBox); } /* -------------------------------------------------------------- 控件 - 用户手册 */ void W_SoftwareFirstTip::openUserManual() { QString sPath = qApp->applicationDirPath(); QString docx = sPath + "/help/关于GIF动画序列核心编辑器.docx"; if (QFileInfo(docx).exists()){ QDesktopServices::openUrl(QUrl("file:/" + docx)); }else{ QMessageBox::warning(this, "错误", "文档\"关于GIF动画序列核心编辑器.docx\"不见了。", QMessageBox::Yes); } } void W_SoftwareFirstTip::acceptData(){ //(无操作) this->accept(); } void W_SoftwareFirstTip::rejectData(){ if (ui.checkBox->isChecked() == true){ S_IniManager::getInstance()->setConfig("COAS_NoMoreFirstTip", "true"); } this->reject(); } /* -------------------------------------------------------------- 控件 - 窗口关闭事件(点击关闭按钮) */ void W_SoftwareFirstTip::closeEvent(QCloseEvent *event){ this->rejectData(); event->accept(); }
232f064ad889b3f35f25732b8136cc066ca43ad8
{ "blob_id": "232f064ad889b3f35f25732b8136cc066ca43ad8", "branch_name": "refs/heads/main", "committer_date": "2021-06-06T07:51:21", "content_id": "6334160b3522137574321014c9b50d8288da4aee", "detected_licenses": [ "MIT" ], "directory_id": "ceadf914ac169e06dc44b2588cbbce922fdd411a", "extension": "cpp", "filename": "w_SoftwareFirstTip.cpp", "fork_events_count": 0, "gha_created_at": null, "gha_event_created_at": null, "gha_language": null, "gha_license_id": null, "github_id": null, "is_generated": false, "is_vendor": false, "language": "C++", "length_bytes": 2582, "license": "MIT", "license_type": "permissive", "path": "/DrillGIFActionSequenceEditor/Source/MainModule/firstTip/w_SoftwareFirstTip.cpp", "provenance": "stack-edu-0007.json.gz:502282", "repo_name": "15831944/DrillGIFActionSequenceEditor", "revision_date": "2021-06-06T07:51:21", "revision_id": "15dd971c7d9d1359b26e25cd07b10865d930da0a", "snapshot_id": "617aa21860af9eb5ab2b2f63a6d542c4339cf5ae", "src_encoding": "GB18030", "star_events_count": 0, "url": "https://raw.githubusercontent.com/15831944/DrillGIFActionSequenceEditor/15dd971c7d9d1359b26e25cd07b10865d930da0a/DrillGIFActionSequenceEditor/Source/MainModule/firstTip/w_SoftwareFirstTip.cpp", "visit_date": "2023-05-06T23:49:11.598921", "added": "2024-11-18T20:17:38.410941+00:00", "created": "2021-06-06T07:51:21", "int_score": 2, "score": 2.140625, "source": "stackv2", "file_path": "/project/aip-craffel/gsa/data/stack_edu/stack-edu-0025.json.gz" }