text
stringlengths
2
1.04M
meta
dict
<?xml version="1.0" encoding="utf-8"?> <!-- --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="58dip" style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown"> <!-- Icons come first in the layout, since their placement doesn't depend on the placement of the text views. --> <android.support.v7.internal.widget.TintImageView android:id="@android:id/icon1" android:layout_width="@dimen/abc_dropdownitem_icon_width" android:layout_height="48dip" android:scaleType="centerInside" android:layout_alignParentTop="true" android:layout_alignParentBottom="true" android:visibility="invisible" style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Icon1" /> <android.support.v7.internal.widget.TintImageView android:id="@+id/edit_query" android:layout_width="48dip" android:layout_height="48dip" android:scaleType="centerInside" android:layout_alignParentTop="true" android:layout_alignParentBottom="true" android:background="?attr/selectableItemBackground" android:visibility="gone" style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Query" /> <android.support.v7.internal.widget.TintImageView android:id="@id/android:icon2" android:layout_width="48dip" android:layout_height="48dip" android:scaleType="centerInside" android:layout_alignWithParentIfMissing="true" android:layout_alignParentTop="true" android:layout_alignParentBottom="true" android:visibility="gone" style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Icon2" /> <!-- The subtitle comes before the title, since the height of the title depends on whether the subtitle is visible or gone. --> <TextView android:id="@android:id/text2" style="?android:attr/dropDownItemStyle" android:textAppearance="?attr/textAppearanceSearchResultSubtitle" android:singleLine="true" android:layout_width="match_parent" android:layout_height="29dip" android:paddingBottom="4dip" android:gravity="top" android:layout_alignWithParentIfMissing="true" android:layout_alignParentBottom="true" android:visibility="gone" /> <!-- The title is placed above the subtitle, if there is one. If there is no subtitle, it fills the parent. --> <TextView android:id="@android:id/text1" style="?android:attr/dropDownItemStyle" android:textAppearance="?attr/textAppearanceSearchResultTitle" android:singleLine="true" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_above="@android:id/text2" /> </RelativeLayout> <!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/lmp-mr1-dev/frameworks/support/v7/appcompat/res/layout/abc_search_dropdown_item_icons_2line.xml --><!-- From: file:/home/frank/AndroidStudioProjects/DocHub/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.0.0/res/layout/abc_search_dropdown_item_icons_2line.xml -->
{ "content_hash": "c658b5f0d8ec9be62018822da02fd523", "timestamp": "", "source": "github", "line_count": 72, "max_line_length": 412, "avg_line_length": 50.97222222222222, "alnum_prop": 0.6376021798365122, "repo_name": "Captain1/DocHub_Android", "id": "7e47d5ee22a7e5fbebf12140174b138d9c4784ed", "size": "4289", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/build/intermediates/res/debug/layout/abc_search_dropdown_item_icons_2line.xml", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "22278" }, { "name": "HTML", "bytes": "2269338" }, { "name": "Java", "bytes": "534812" } ], "symlink_target": "" }
namespace { // Generates a unique folder name. If |folder_name| is not unique, then this // repeatedly tests for '|folder_name| + (i)' until a unique name is found. string16 GenerateUniqueFolderName(BookmarkModel* model, const string16& folder_name) { // Build a set containing the bookmark bar folder names. std::set<string16> existing_folder_names; const BookmarkNode* bookmark_bar = model->bookmark_bar_node(); for (int i = 0; i < bookmark_bar->child_count(); ++i) { const BookmarkNode* node = bookmark_bar->GetChild(i); if (node->is_folder()) existing_folder_names.insert(node->GetTitle()); } // If the given name is unique, use it. if (existing_folder_names.find(folder_name) == existing_folder_names.end()) return folder_name; // Otherwise iterate until we find a unique name. for (size_t i = 1; i <= existing_folder_names.size(); ++i) { string16 name = folder_name + ASCIIToUTF16(" (") + base::IntToString16(i) + ASCIIToUTF16(")"); if (existing_folder_names.find(name) == existing_folder_names.end()) return name; } NOTREACHED(); return folder_name; } // Shows the bookmarks toolbar. void ShowBookmarkBar(Profile* profile) { profile->GetPrefs()->SetBoolean(prefs::kShowBookmarkBar, true); } } // namespace ProfileWriter::BookmarkEntry::BookmarkEntry() : in_toolbar(false), is_folder(false) {} ProfileWriter::BookmarkEntry::~BookmarkEntry() {} bool ProfileWriter::BookmarkEntry::operator==( const ProfileWriter::BookmarkEntry& other) const { return (in_toolbar == other.in_toolbar && is_folder == other.is_folder && url == other.url && path == other.path && title == other.title && creation_time == other.creation_time); } ProfileWriter::ProfileWriter(Profile* profile) : profile_(profile) {} bool ProfileWriter::BookmarkModelIsLoaded() const { return profile_->GetBookmarkModel()->IsLoaded(); } bool ProfileWriter::TemplateURLServiceIsLoaded() const { return TemplateURLServiceFactory::GetForProfile(profile_)->loaded(); } void ProfileWriter::AddPasswordForm(const webkit::forms::PasswordForm& form) { PasswordStoreFactory::GetForProfile( profile_, Profile::EXPLICIT_ACCESS)->AddLogin(form); } #if defined(OS_WIN) void ProfileWriter::AddIE7PasswordInfo(const IE7PasswordInfo& info) { WebDataServiceFactory::GetForProfile( profile_, Profile::EXPLICIT_ACCESS)->AddIE7Login(info); } #endif void ProfileWriter::AddHistoryPage(const history::URLRows& page, history::VisitSource visit_source) { HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS)-> AddPagesWithDetails(page, visit_source); } void ProfileWriter::AddHomepage(const GURL& home_page) { DCHECK(profile_); PrefService* prefs = profile_->GetPrefs(); // NOTE: We set the kHomePage value, but keep the NewTab page as the homepage. const PrefService::Preference* pref = prefs->FindPreference(prefs::kHomePage); if (pref && !pref->IsManaged()) { prefs->SetString(prefs::kHomePage, home_page.spec()); } } void ProfileWriter::AddBookmarks(const std::vector<BookmarkEntry>& bookmarks, const string16& top_level_folder_name) { if (bookmarks.empty()) return; BookmarkModel* model = profile_->GetBookmarkModel(); DCHECK(model->IsLoaded()); // If the bookmark bar is currently empty, we should import directly to it. // Otherwise, we should import everything to a subfolder. const BookmarkNode* bookmark_bar = model->bookmark_bar_node(); bool import_to_top_level = bookmark_bar->empty(); // Reorder bookmarks so that the toolbar entries come first. std::vector<BookmarkEntry> toolbar_bookmarks; std::vector<BookmarkEntry> reordered_bookmarks; for (std::vector<BookmarkEntry>::const_iterator it = bookmarks.begin(); it != bookmarks.end(); ++it) { if (it->in_toolbar) toolbar_bookmarks.push_back(*it); else reordered_bookmarks.push_back(*it); } reordered_bookmarks.insert(reordered_bookmarks.begin(), toolbar_bookmarks.begin(), toolbar_bookmarks.end()); // If the user currently has no bookmarks in the bookmark bar, make sure that // at least some of the imported bookmarks end up there. Otherwise, we'll end // up with just a single folder containing the imported bookmarks, which makes // for unnecessary nesting. bool add_all_to_top_level = import_to_top_level && toolbar_bookmarks.empty(); model->BeginExtensiveChanges(); std::set<const BookmarkNode*> folders_added_to; const BookmarkNode* top_level_folder = NULL; for (std::vector<BookmarkEntry>::const_iterator bookmark = reordered_bookmarks.begin(); bookmark != reordered_bookmarks.end(); ++bookmark) { // Disregard any bookmarks with invalid urls. if (!bookmark->is_folder && !bookmark->url.is_valid()) continue; const BookmarkNode* parent = NULL; if (import_to_top_level && (add_all_to_top_level || bookmark->in_toolbar)) { // Add directly to the bookmarks bar. parent = bookmark_bar; } else { // Add to a folder that will contain all the imported bookmarks not added // to the bar. The first time we do so, create the folder. if (!top_level_folder) { string16 name = GenerateUniqueFolderName(model, top_level_folder_name); top_level_folder = model->AddFolder(bookmark_bar, bookmark_bar->child_count(), name); } parent = top_level_folder; } // Ensure any enclosing folders are present in the model. The bookmark's // enclosing folder structure should be // path[0] > path[1] > ... > path[size() - 1] for (std::vector<string16>::const_iterator folder_name = bookmark->path.begin(); folder_name != bookmark->path.end(); ++folder_name) { if (bookmark->in_toolbar && parent == bookmark_bar && folder_name == bookmark->path.begin()) { // If we're importing directly to the bookmarks bar, skip over the // folder named "Bookmarks Toolbar" (or any non-Firefox equivalent). continue; } const BookmarkNode* child = NULL; for (int index = 0; index < parent->child_count(); ++index) { const BookmarkNode* node = parent->GetChild(index); if (node->is_folder() && node->GetTitle() == *folder_name) { child = node; break; } } if (!child) child = model->AddFolder(parent, parent->child_count(), *folder_name); parent = child; } folders_added_to.insert(parent); if (bookmark->is_folder) { model->AddFolder(parent, parent->child_count(), bookmark->title); } else { model->AddURLWithCreationTime(parent, parent->child_count(), bookmark->title, bookmark->url, bookmark->creation_time); } } // In order to keep the imported-to folders from appearing in the 'recently // added to' combobox, reset their modified times. for (std::set<const BookmarkNode*>::const_iterator i = folders_added_to.begin(); i != folders_added_to.end(); ++i) { model->ResetDateFolderModified(*i); } model->EndExtensiveChanges(); // If the user was previously using a toolbar, we should show the bar. if (import_to_top_level && !add_all_to_top_level) ShowBookmarkBar(profile_); } void ProfileWriter::AddFavicons( const std::vector<history::ImportedFaviconUsage>& favicons) { profile_->GetFaviconService(Profile::EXPLICIT_ACCESS)-> SetImportedFavicons(favicons); } typedef std::map<std::string, TemplateURL*> HostPathMap; // Returns the key for the map built by BuildHostPathMap. If url_string is not // a valid URL, an empty string is returned, otherwise host+path is returned. static std::string HostPathKeyForURL(const GURL& url) { return url.is_valid() ? url.host() + url.path() : std::string(); } // Builds the key to use in HostPathMap for the specified TemplateURL. Returns // an empty string if a host+path can't be generated for the TemplateURL. // If an empty string is returned, the TemplateURL should not be added to // HostPathMap. // // If |try_url_if_invalid| is true, and |t_url| isn't valid, a string is built // from the raw TemplateURL string. Use a value of true for |try_url_if_invalid| // when checking imported URLs as the imported URL may not be valid yet may // match the host+path of one of the default URLs. This is used to catch the // case of IE using an invalid OSDD URL for Live Search, yet the host+path // matches our prepopulate data. IE's URL for Live Search is something like // 'http://...{Language}...'. As {Language} is not a valid OSDD parameter value // the TemplateURL is invalid. static std::string BuildHostPathKey(const TemplateURL* t_url, bool try_url_if_invalid) { if (try_url_if_invalid && !t_url->url_ref().IsValid()) return HostPathKeyForURL(GURL(t_url->url())); if (t_url->url_ref().SupportsReplacement()) { return HostPathKeyForURL(GURL( t_url->url_ref().ReplaceSearchTerms( TemplateURLRef::SearchTermsArgs(ASCIIToUTF16("x"))))); } return std::string(); } // Builds a set that contains an entry of the host+path for each TemplateURL in // the TemplateURLService that has a valid search url. static void BuildHostPathMap(TemplateURLService* model, HostPathMap* host_path_map) { TemplateURLService::TemplateURLVector template_urls = model->GetTemplateURLs(); for (size_t i = 0; i < template_urls.size(); ++i) { const std::string host_path = BuildHostPathKey(template_urls[i], false); if (!host_path.empty()) { const TemplateURL* existing_turl = (*host_path_map)[host_path]; if (!existing_turl || (template_urls[i]->show_in_default_list() && !existing_turl->show_in_default_list())) { // If there are multiple TemplateURLs with the same host+path, favor // those shown in the default list. If there are multiple potential // defaults, favor the first one, which should be the more commonly used // one. (*host_path_map)[host_path] = template_urls[i]; } } // else case, TemplateURL doesn't have a search url, doesn't support // replacement, or doesn't have valid GURL. Ignore it. } } void ProfileWriter::AddKeywords(ScopedVector<TemplateURL> template_urls, bool unique_on_host_and_path) { TemplateURLService* model = TemplateURLServiceFactory::GetForProfile(profile_); HostPathMap host_path_map; if (unique_on_host_and_path) BuildHostPathMap(model, &host_path_map); for (ScopedVector<TemplateURL>::iterator i = template_urls.begin(); i != template_urls.end(); ++i) { // TemplateURLService requires keywords to be unique. If there is already a // TemplateURL with this keyword, don't import it again. if (model->GetTemplateURLForKeyword((*i)->keyword()) != NULL) continue; // For search engines if there is already a keyword with the same // host+path, we don't import it. This is done to avoid both duplicate // search providers (such as two Googles, or two Yahoos) as well as making // sure the search engines we provide aren't replaced by those from the // imported browser. if (unique_on_host_and_path && (host_path_map.find(BuildHostPathKey(*i, true)) != host_path_map.end())) continue; // Only add valid TemplateURLs to the model. if ((*i)->url_ref().IsValid()) { model->AddAndSetProfile(*i, profile_); // Takes ownership. *i = NULL; // Prevent the vector from deleting *i later. } } } ProfileWriter::~ProfileWriter() {}
{ "content_hash": "b4c1c1e199c1a7ed0d072ca8a22f08cc", "timestamp": "", "source": "github", "line_count": 301, "max_line_length": 80, "avg_line_length": 39.820598006644516, "alnum_prop": 0.658267979309194, "repo_name": "keishi/chromium", "id": "33f437457f359833b384d8ca08e9703a3601fe55", "size": "13087", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "chrome/browser/importer/profile_writer.cc", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ASP", "bytes": "853" }, { "name": "Arduino", "bytes": "464" }, { "name": "Assembly", "bytes": "1172794" }, { "name": "C", "bytes": "67452317" }, { "name": "C#", "bytes": "1132" }, { "name": "C++", "bytes": "132681259" }, { "name": "F#", "bytes": "381" }, { "name": "Go", "bytes": "19048" }, { "name": "Java", "bytes": "361412" }, { "name": "JavaScript", "bytes": "16603687" }, { "name": "Objective-C", "bytes": "9609581" }, { "name": "PHP", "bytes": "97796" }, { "name": "Perl", "bytes": "918683" }, { "name": "Python", "bytes": "6407891" }, { "name": "R", "bytes": "524" }, { "name": "Shell", "bytes": "4192593" }, { "name": "Tcl", "bytes": "277077" } ], "symlink_target": "" }
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from contextlib import contextmanager from pants.base.deprecated import deprecated_conditional from pants.util.contextutil import temporary_dir from pants_test.pants_run_integration_test import PantsRunIntegrationTest, ensure_engine class BundleIntegrationTest(PantsRunIntegrationTest): TARGET_PATH = 'testprojects/src/java/org/pantsbuild/testproject/bundle' def test_bundle_basic(self): args = ['-q', 'bundle', self.TARGET_PATH] self.do_command(*args, success=True, enable_v2_engine=True) @contextmanager def bundled(self, target_name): with temporary_dir() as temp_distdir: with self.pants_results( ['-q', '--pants-distdir={}'.format(temp_distdir), 'bundle', '{}:{}'.format(self.TARGET_PATH, target_name)]) as pants_run: self.assert_success(pants_run) yield os.path.join(temp_distdir, '{}.{}-bundle'.format(self.TARGET_PATH.replace('/', '.'), target_name)) @ensure_engine def test_bundle_mapper(self): with self.bundled('mapper') as bundle_dir: self.assertTrue(os.path.isfile(os.path.join(bundle_dir, 'bundle_files/file1.txt'))) @ensure_engine def test_bundle_relative_to(self): with self.bundled('relative_to') as bundle_dir: self.assertTrue(os.path.isfile(os.path.join(bundle_dir, 'b/file1.txt'))) @ensure_engine def test_bundle_rel_path(self): with self.bundled('rel_path') as bundle_dir: self.assertTrue(os.path.isfile(os.path.join(bundle_dir, 'b/file1.txt'))) @ensure_engine def test_bundle_directory(self): with self.bundled('directory') as bundle_dir: root = os.path.join(bundle_dir, 'a/b') self.assertTrue(os.path.isdir(root)) # NB: The behaviour of this test will change with the relevant deprecation # in `pants.backend.jvm.tasks.bundle_create`, because the parent directory # will not be symlinked. deprecated_conditional( lambda: os.path.isfile(os.path.join(root, 'file1.txt')), '1.5.0.dev0', 'default recursive inclusion of files in directory', 'A non-recursive/literal glob should no longer include child paths.' ) def test_bundle_explicit_recursion(self): with self.bundled('explicit_recursion') as bundle_dir: root = os.path.join(bundle_dir, 'a/b') self.assertTrue(os.path.isdir(root)) self.assertTrue(os.path.isfile(os.path.join(root, 'file1.txt'))) @ensure_engine def test_bundle_resource_ordering(self): """Ensures that `resources=` ordering is respected.""" pants_run = self.run_pants( ['-q', 'run', 'testprojects/src/java/org/pantsbuild/testproject/bundle:bundle-resource-ordering'] ) self.assert_success(pants_run) self.assertEquals(pants_run.stdout_data.strip(), 'Hello world from Foo')
{ "content_hash": "af035590d2bbc23325e7de5757d40933", "timestamp": "", "source": "github", "line_count": 77, "max_line_length": 98, "avg_line_length": 38.94805194805195, "alnum_prop": 0.6742247415805268, "repo_name": "fkorotkov/pants", "id": "d14605827ba35bf78d7908a6c14b464d4d654d45", "size": "3146", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "tests/python/pants_test/engine/legacy/test_bundle_integration.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C++", "bytes": "781" }, { "name": "CSS", "bytes": "9444" }, { "name": "GAP", "bytes": "1283" }, { "name": "Gherkin", "bytes": "919" }, { "name": "Go", "bytes": "1805" }, { "name": "HTML", "bytes": "79866" }, { "name": "Java", "bytes": "481460" }, { "name": "JavaScript", "bytes": "35417" }, { "name": "Python", "bytes": "5931594" }, { "name": "Rust", "bytes": "271643" }, { "name": "Scala", "bytes": "76239" }, { "name": "Shell", "bytes": "74734" }, { "name": "Thrift", "bytes": "2795" } ], "symlink_target": "" }
import ssl from requests.adapters import HTTPAdapter from requests.packages.urllib3.poolmanager import PoolManager class SSLv3Adapter(HTTPAdapter): '''An HTTPS Transport Adapter that uses SSLv3 rather than the default SSLv23, for servers which only speak v3.''' def init_poolmanager(self, connections, maxsize, block=False): self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize, block=block, ssl_version=ssl.PROTOCOL_SSLv3)
{ "content_hash": "7559ecbfd4211e7a50b6f177fddf4d10", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 73, "avg_line_length": 44.61538461538461, "alnum_prop": 0.6241379310344828, "repo_name": "DanePubliczneGovPl/ckanext-archiver", "id": "522b12231c2c6beff4819e7b1893da15b723a2cb", "size": "580", "binary": false, "copies": "2", "ref": "refs/heads/danepubliczne", "path": "ckanext/archiver/requests_ssl.py", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "10474" }, { "name": "Python", "bytes": "148245" }, { "name": "Shell", "bytes": "3908" } ], "symlink_target": "" }
export { default } from '@zestia/ember-wrap-urls/components/wrap-urls/index';
{ "content_hash": "6745f3c7ceaa3ddc8b418a2ec0060119", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 77, "avg_line_length": 78, "alnum_prop": 0.7564102564102564, "repo_name": "amk221/ember-wrap-urls", "id": "a64daea4eaae48f711940eada96ffdf2feaa571d", "size": "78", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/components/wrap-urls.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "33" }, { "name": "HTML", "bytes": "2097" }, { "name": "JavaScript", "bytes": "26047" } ], "symlink_target": "" }
package esi import ( json "encoding/json" easyjson "github.com/mailru/easyjson" jlexer "github.com/mailru/easyjson/jlexer" jwriter "github.com/mailru/easyjson/jwriter" ) // suppress unused package warning var ( _ *json.RawMessage _ *jlexer.Lexer _ *jwriter.Writer _ easyjson.Marshaler ) func easyjsonC50fbf15DecodeGithubComAntihaxGoesiEsi(in *jlexer.Lexer, out *GetKillmailsKillmailIdKillmailHashItemsItemList) { isTopLevel := in.IsStart() if in.IsNull() { in.Skip() *out = nil } else { in.Delim('[') if *out == nil { if !in.IsDelim(']') { *out = make(GetKillmailsKillmailIdKillmailHashItemsItemList, 0, 2) } else { *out = GetKillmailsKillmailIdKillmailHashItemsItemList{} } } else { *out = (*out)[:0] } for !in.IsDelim(']') { var v1 GetKillmailsKillmailIdKillmailHashItemsItem (v1).UnmarshalEasyJSON(in) *out = append(*out, v1) in.WantComma() } in.Delim(']') } if isTopLevel { in.Consumed() } } func easyjsonC50fbf15EncodeGithubComAntihaxGoesiEsi(out *jwriter.Writer, in GetKillmailsKillmailIdKillmailHashItemsItemList) { if in == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v2, v3 := range in { if v2 > 0 { out.RawByte(',') } (v3).MarshalEasyJSON(out) } out.RawByte(']') } } // MarshalJSON supports json.Marshaler interface func (v GetKillmailsKillmailIdKillmailHashItemsItemList) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC50fbf15EncodeGithubComAntihaxGoesiEsi(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetKillmailsKillmailIdKillmailHashItemsItemList) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC50fbf15EncodeGithubComAntihaxGoesiEsi(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetKillmailsKillmailIdKillmailHashItemsItemList) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC50fbf15DecodeGithubComAntihaxGoesiEsi(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetKillmailsKillmailIdKillmailHashItemsItemList) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC50fbf15DecodeGithubComAntihaxGoesiEsi(l, v) } func easyjsonC50fbf15DecodeGithubComAntihaxGoesiEsi1(in *jlexer.Lexer, out *GetKillmailsKillmailIdKillmailHashItemsItem) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "flag": out.Flag = int32(in.Int32()) case "item_type_id": out.ItemTypeId = int32(in.Int32()) case "quantity_destroyed": out.QuantityDestroyed = int64(in.Int64()) case "quantity_dropped": out.QuantityDropped = int64(in.Int64()) case "singleton": out.Singleton = int32(in.Int32()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonC50fbf15EncodeGithubComAntihaxGoesiEsi1(out *jwriter.Writer, in GetKillmailsKillmailIdKillmailHashItemsItem) { out.RawByte('{') first := true _ = first if in.Flag != 0 { const prefix string = ",\"flag\":" first = false out.RawString(prefix[1:]) out.Int32(int32(in.Flag)) } if in.ItemTypeId != 0 { const prefix string = ",\"item_type_id\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int32(int32(in.ItemTypeId)) } if in.QuantityDestroyed != 0 { const prefix string = ",\"quantity_destroyed\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int64(int64(in.QuantityDestroyed)) } if in.QuantityDropped != 0 { const prefix string = ",\"quantity_dropped\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int64(int64(in.QuantityDropped)) } if in.Singleton != 0 { const prefix string = ",\"singleton\":" if first { first = false out.RawString(prefix[1:]) } else { out.RawString(prefix) } out.Int32(int32(in.Singleton)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v GetKillmailsKillmailIdKillmailHashItemsItem) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC50fbf15EncodeGithubComAntihaxGoesiEsi1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetKillmailsKillmailIdKillmailHashItemsItem) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC50fbf15EncodeGithubComAntihaxGoesiEsi1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetKillmailsKillmailIdKillmailHashItemsItem) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC50fbf15DecodeGithubComAntihaxGoesiEsi1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetKillmailsKillmailIdKillmailHashItemsItem) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC50fbf15DecodeGithubComAntihaxGoesiEsi1(l, v) }
{ "content_hash": "98f052a9e2e7f10ebb03b1791e32620e", "timestamp": "", "source": "github", "line_count": 199, "max_line_length": 126, "avg_line_length": 26.020100502512562, "alnum_prop": 0.7186172267284666, "repo_name": "antihax/goesi", "id": "e56bd487d23a2253bba29499cab24ba1eb49cbb7", "size": "5251", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "esi/model_get_killmails_killmail_id_killmail_hash_items_item_easyjson.go", "mode": "33188", "license": "mit", "language": [ { "name": "Go", "bytes": "2066460" }, { "name": "Shell", "bytes": "3328" } ], "symlink_target": "" }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class DataProsesObjectDBModel extends ObjectDBModel { public function __construct(){ parent::__construct(); $this->tempTableName = 'dataproses'; $this->tempDataArrayIndexPrimary = array( 'iddp' ); $this->tempDataArrayCase = array( "*" ); $this->tempDataArrayWhere = array( "", "<%iddp%>='<|iddp|>'" ); $this->tempCodeOfWhere = array( "iddp" => array( 'kode' => "<%iddp%>", 'value' => "<|iddp|>" ), "detaildp" => array( 'kode' => "<%detaildp%>", 'value' => "<|detaildp|>" ) ); } public function resetValue(){ parent::resetValue(); } public function getId(){ return $this->getData('iddp'); } public function getDetail(){ return $this->getData('detaildp'); } public function setId($tempData,$tempAsWhere = false){ return $this->setData('iddp',$tempData,$tempAsWhere,function($x,$tempResult){ /* Your Code to Filter */ return $tempResult; }); } public function setDetail($tempData,$tempAsWhere = false){ return $this->setData('detaildp',$tempData,$tempAsWhere,function($x,$tempResult){ /* Your Code to Filter */ return $tempResult; }); } }
{ "content_hash": "f17eba541676172940ea7e133d6b9386", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 83, "avg_line_length": 24.22, "alnum_prop": 0.6234516928158547, "repo_name": "JafarAbdr/SIKTA-Revelation", "id": "9d09b6f98801cf0b2082663af934635ad73583f7", "size": "1211", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "application/models/ObjectDB/DataProsesObjectDBModel.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "789" }, { "name": "CSS", "bytes": "658493" }, { "name": "HTML", "bytes": "527906" }, { "name": "JavaScript", "bytes": "6594776" }, { "name": "PHP", "bytes": "11242330" } ], "symlink_target": "" }
package ceddy.ajds; import android.content.Context; import org.json.JSONObject; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; /** * Created by Ceddy Muhoza */ public class aObject { Context context; String USER_FILE; public aObject(Context context, String u){ this.context = context; this.USER_FILE = u; } public void writeUserFile(JSONObject me){ if(checkUserFile()) deleteUserFile(); FileOutputStream outputStream; try { outputStream = context.openFileOutput(USER_FILE, Context.MODE_PRIVATE); outputStream.write(me.toString().getBytes()); outputStream.close(); } catch (Exception e) { e.printStackTrace(); } } public JSONObject readUserFile(){ File dir = context.getFilesDir(); File file = new File(dir, USER_FILE); StringBuilder text = new StringBuilder(); BufferedReader br = null; try { br = new BufferedReader(new FileReader(file)); String line; while ((line = br.readLine()) != null) { text.append(line); text.append('\n'); } return new JSONObject(text.toString()); } catch (Exception e) { return null; } } public void deleteUserFile(){ File dir = context.getFilesDir(); File file = new File(dir, USER_FILE); file.delete(); } public boolean checkUserFile(){ File dir = context.getFilesDir(); File file = new File(dir, USER_FILE); return file.exists(); } }
{ "content_hash": "9212a6e44b55f41f20e752f11fa50598", "timestamp": "", "source": "github", "line_count": 68, "max_line_length": 83, "avg_line_length": 25.205882352941178, "alnum_prop": 0.5770128354725788, "repo_name": "ceddyb/ajds", "id": "9ac8b0bf2ae6b69d139b32ca8d22ceeaabfeba6f", "size": "1714", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aObject.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "5114" } ], "symlink_target": "" }
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Holding = mongoose.model('Holding'), agent = request.agent(app); /** * Globals */ var credentials, user, holding; /** * Holding routes tests */ describe('Holding CRUD tests', function() { beforeEach(function(done) { // Create user credentials credentials = { username: 'username', password: 'password' }; // Create a new user user = new User({ firstName: 'Full', lastName: 'Name', displayName: 'Full Name', email: 'test@test.com', username: credentials.username, password: credentials.password, provider: 'local' }); // Save a user to the test db and create new Holding user.save(function() { holding = { name: 'Holding Name' }; done(); }); }); it('should be able to save Holding instance if logged in', function(done) { agent.post('/auth/signin') .send(credentials) .expect(200) .end(function(signinErr, signinRes) { // Handle signin error if (signinErr) done(signinErr); // Get the userId var userId = user.id; // Save a new Holding agent.post('/holdings') .send(holding) .expect(200) .end(function(holdingSaveErr, holdingSaveRes) { // Handle Holding save error if (holdingSaveErr) done(holdingSaveErr); // Get a list of Holdings agent.get('/holdings') .end(function(holdingsGetErr, holdingsGetRes) { // Handle Holding save error if (holdingsGetErr) done(holdingsGetErr); // Get Holdings list var holdings = holdingsGetRes.body; // Set assertions (holdings[0].user._id).should.equal(userId); (holdings[0].name).should.match('Holding Name'); // Call the assertion callback done(); }); }); }); }); it('should not be able to save Holding instance if not logged in', function(done) { agent.post('/holdings') .send(holding) .expect(401) .end(function(holdingSaveErr, holdingSaveRes) { // Call the assertion callback done(holdingSaveErr); }); }); it('should not be able to save Holding instance if no name is provided', function(done) { // Invalidate name field holding.name = ''; agent.post('/auth/signin') .send(credentials) .expect(200) .end(function(signinErr, signinRes) { // Handle signin error if (signinErr) done(signinErr); // Get the userId var userId = user.id; // Save a new Holding agent.post('/holdings') .send(holding) .expect(400) .end(function(holdingSaveErr, holdingSaveRes) { // Set message assertion (holdingSaveRes.body.message).should.match('Please fill Holding name'); // Handle Holding save error done(holdingSaveErr); }); }); }); it('should be able to update Holding instance if signed in', function(done) { agent.post('/auth/signin') .send(credentials) .expect(200) .end(function(signinErr, signinRes) { // Handle signin error if (signinErr) done(signinErr); // Get the userId var userId = user.id; // Save a new Holding agent.post('/holdings') .send(holding) .expect(200) .end(function(holdingSaveErr, holdingSaveRes) { // Handle Holding save error if (holdingSaveErr) done(holdingSaveErr); // Update Holding name holding.name = 'WHY YOU GOTTA BE SO MEAN?'; // Update existing Holding agent.put('/holdings/' + holdingSaveRes.body._id) .send(holding) .expect(200) .end(function(holdingUpdateErr, holdingUpdateRes) { // Handle Holding update error if (holdingUpdateErr) done(holdingUpdateErr); // Set assertions (holdingUpdateRes.body._id).should.equal(holdingSaveRes.body._id); (holdingUpdateRes.body.name).should.match('WHY YOU GOTTA BE SO MEAN?'); // Call the assertion callback done(); }); }); }); }); it('should be able to get a list of Holdings if not signed in', function(done) { // Create new Holding model instance var holdingObj = new Holding(holding); // Save the Holding holdingObj.save(function() { // Request Holdings request(app).get('/holdings') .end(function(req, res) { // Set assertion res.body.should.be.an.Array.with.lengthOf(1); // Call the assertion callback done(); }); }); }); it('should be able to get a single Holding if not signed in', function(done) { // Create new Holding model instance var holdingObj = new Holding(holding); // Save the Holding holdingObj.save(function() { request(app).get('/holdings/' + holdingObj._id) .end(function(req, res) { // Set assertion res.body.should.be.an.Object.with.property('name', holding.name); // Call the assertion callback done(); }); }); }); it('should be able to delete Holding instance if signed in', function(done) { agent.post('/auth/signin') .send(credentials) .expect(200) .end(function(signinErr, signinRes) { // Handle signin error if (signinErr) done(signinErr); // Get the userId var userId = user.id; // Save a new Holding agent.post('/holdings') .send(holding) .expect(200) .end(function(holdingSaveErr, holdingSaveRes) { // Handle Holding save error if (holdingSaveErr) done(holdingSaveErr); // Delete existing Holding agent.delete('/holdings/' + holdingSaveRes.body._id) .send(holding) .expect(200) .end(function(holdingDeleteErr, holdingDeleteRes) { // Handle Holding error error if (holdingDeleteErr) done(holdingDeleteErr); // Set assertions (holdingDeleteRes.body._id).should.equal(holdingSaveRes.body._id); // Call the assertion callback done(); }); }); }); }); it('should not be able to delete Holding instance if not signed in', function(done) { // Set Holding user holding.user = user; // Create new Holding model instance var holdingObj = new Holding(holding); // Save the Holding holdingObj.save(function() { // Try deleting Holding request(app).delete('/holdings/' + holdingObj._id) .expect(401) .end(function(holdingDeleteErr, holdingDeleteRes) { // Set message assertion (holdingDeleteRes.body.message).should.match('User is not logged in'); // Handle Holding error error done(holdingDeleteErr); }); }); }); afterEach(function(done) { User.remove().exec(); Holding.remove().exec(); done(); }); });
{ "content_hash": "4fe07d0a49752173a7d76bfcc9846454", "timestamp": "", "source": "github", "line_count": 268, "max_line_length": 90, "avg_line_length": 24.917910447761194, "alnum_prop": 0.6293800539083558, "repo_name": "scovert3197/covanaLaunch", "id": "c706e35de630238db701620d2e26def1f7c4143b", "size": "6678", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/tests/holding.server.routes.test.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "500" }, { "name": "HTML", "bytes": "73627" }, { "name": "JavaScript", "bytes": "299096" }, { "name": "Shell", "bytes": "414" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-character: 8 m 31 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.7.2 / mathcomp-character - 1.6.4</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> mathcomp-character <small> 1.6.4 <span class="label label-success">8 m 31 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-11-20 04:58:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-11-20 04:58:01 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.5 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; name: &quot;coq-mathcomp-character&quot; version: &quot;1.6.4&quot; maintainer: &quot;Mathematical Components &lt;mathcomp-dev@sympa.inria.fr&gt;&quot; homepage: &quot;http://math-comp.github.io/math-comp/&quot; bug-reports: &quot;Mathematical Components &lt;mathcomp-dev@sympa.inria.fr&gt;&quot; license: &quot;CeCILL-B&quot; build: [ make &quot;-C&quot; &quot;mathcomp/character&quot; &quot;-j&quot; &quot;%{jobs}%&quot; ] install: [ make &quot;-C&quot; &quot;mathcomp/character&quot; &quot;install&quot; ] remove: [ &quot;sh&quot; &quot;-c&quot; &quot;rm -rf &#39;%{lib}%/coq/user-contrib/mathcomp/character&#39;&quot; ] depends: [ &quot;ocaml&quot; &quot;coq-mathcomp-field&quot; {= &quot;1.6.4&quot;} ] tags: [ &quot;keyword:algebra&quot; &quot;keyword:character&quot; &quot;keyword:small scale reflection&quot; &quot;keyword:mathematical components&quot; &quot;keyword:odd order theorem&quot; ] authors: [ &quot;Jeremy Avigad &lt;&gt;&quot; &quot;Andrea Asperti &lt;&gt;&quot; &quot;Stephane Le Roux &lt;&gt;&quot; &quot;Yves Bertot &lt;&gt;&quot; &quot;Laurence Rideau &lt;&gt;&quot; &quot;Enrico Tassi &lt;&gt;&quot; &quot;Ioana Pasca &lt;&gt;&quot; &quot;Georges Gonthier &lt;&gt;&quot; &quot;Sidi Ould Biha &lt;&gt;&quot; &quot;Cyril Cohen &lt;&gt;&quot; &quot;Francois Garillot &lt;&gt;&quot; &quot;Alexey Solovyev &lt;&gt;&quot; &quot;Russell O&#39;Connor &lt;&gt;&quot; &quot;Laurent Théry &lt;&gt;&quot; &quot;Assia Mahboubi &lt;&gt;&quot; ] synopsis: &quot;Mathematical Components Library on character theory&quot; description: &quot;&quot;&quot; This library contains definitions and theorems about group representations, characters and class functions.&quot;&quot;&quot; url { src: &quot;http://github.com/math-comp/math-comp/archive/mathcomp-1.6.4.tar.gz&quot; checksum: &quot;md5=29362a734d183301e2ce839b0ad14bd9&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-mathcomp-character.1.6.4 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-mathcomp-character.1.6.4 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>28 m 7 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-mathcomp-character.1.6.4 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>8 m 31 s</dd> </dl> <h2>Installation size</h2> <p>Total: 14 M</p> <ul> <li>3 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxrepresentation.vo</code></li> <li>2 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxrepresentation.glob</code></li> <li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/character.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/classfun.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/character.glob</code></li> <li>853 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/classfun.glob</code></li> <li>820 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/inertia.vo</code></li> <li>750 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/inertia.glob</code></li> <li>534 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxabelem.vo</code></li> <li>524 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/integral_char.vo</code></li> <li>477 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/vcharacter.vo</code></li> <li>386 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/vcharacter.glob</code></li> <li>366 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxabelem.glob</code></li> <li>358 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/integral_char.glob</code></li> <li>237 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxrepresentation.v</code></li> <li>113 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/character.v</code></li> <li>96 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/classfun.v</code></li> <li>69 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/inertia.v</code></li> <li>62 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/all_character.vo</code></li> <li>43 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxabelem.v</code></li> <li>38 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/vcharacter.v</code></li> <li>36 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/integral_char.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/all_character.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/all_character.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-mathcomp-character.1.6.4</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "ae566783d421bd444f73d9565fd44372", "timestamp": "", "source": "github", "line_count": 184, "max_line_length": 554, "avg_line_length": 57.27173913043478, "alnum_prop": 0.5843613588916303, "repo_name": "coq-bench/coq-bench.github.io", "id": "f2306e8d616029ff3fc6ffca38796120cf5da745", "size": "10564", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.04.2-2.0.5/released/8.7.2/mathcomp-character/1.6.4.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
/* global describe, it, jsPDF, comparePdf, expect */ /** * Standard spec tests * * These tests return the datauristring so that reference files can be generated. * We compare the exact output. */ describe("Core: Display modes", () => { it("should set zoom mode to full height", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.setDisplayMode("fullheight"); doc.text(10, 10, "This is a test"); comparePdf(doc.output(), "zoom-full-height.pdf", "pages"); }); it("should set zoom mode to full width", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.setDisplayMode("fullwidth"); doc.text(10, 10, "This is a test"); comparePdf(doc.output(), "zoom-full-width.pdf", "pages"); }); it("should set zoom mode to full page", () => { const doc = new jsPDF({ orientation: "landscape", floatPrecision: 2 }); doc.setDisplayMode("fullpage"); doc.text(10, 10, "This is a test"); comparePdf(doc.output(), "zoom-full-page.pdf", "pages"); }); it("should set zoom mode to original", () => { const doc = new jsPDF({ orientation: "landscape", floatPrecision: 2 }); doc.setDisplayMode("original"); doc.text(10, 10, "This is a test"); comparePdf(doc.output(), "zoom-original.pdf", "pages"); }); it("should set zoom mode to 2x", () => { const doc = new jsPDF({ orientation: "landscape", floatPrecision: 2 }); doc.setDisplayMode(2); doc.text(20, 20, "This is a test"); comparePdf(doc.output(), "zoom-2x.pdf", "pages"); }); it("should set zoom mode to 3x", () => { const doc = new jsPDF({ orientation: "landscape", floatPrecision: 2 }); doc.setDisplayMode(3); doc.text(20, 20, "This is a test"); comparePdf(doc.output(), "zoom-3x.pdf", "pages"); }); it("should set zoom mode to 3x", () => { const doc = new jsPDF({ orientation: "landscape", floatPrecision: 2 }); doc.setDisplayMode("300%"); doc.text(20, 20, "This is a test"); comparePdf(doc.output(), "zoom-3x.pdf", "pages"); }); it("should display in continuous mode", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "Page 1"); doc.addPage(); doc.text(10, 10, "Page 2"); doc.addPage(); doc.text(10, 10, "Page 3"); doc.addPage(); doc.text(10, 10, "Page 4"); doc.setDisplayMode(null, "continuous"); comparePdf(doc.output(), "continuous.pdf", "pages"); }); it("should display in single page mode", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "Page 1"); doc.addPage(); doc.text(10, 10, "Page 2"); doc.addPage(); doc.text(10, 10, "Page 3"); doc.addPage(); doc.text(10, 10, "Page 4"); doc.setDisplayMode(null, "single"); comparePdf(doc.output(), "single.pdf", "pages"); }); it("should display in two column left mode", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "Page 1"); doc.addPage(); doc.text(10, 10, "Page 2"); doc.addPage(); doc.text(10, 10, "Page 3"); doc.addPage(); doc.text(10, 10, "Page 4"); doc.setDisplayMode(null, "twoleft"); comparePdf(doc.output(), "twoleft.pdf", "pages"); }); it("should display in two column left mode with shorter syntax", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "Page 1"); doc.addPage(); doc.text(10, 10, "Page 2"); doc.addPage(); doc.text(10, 10, "Page 3"); doc.addPage(); doc.text(10, 10, "Page 4"); doc.setDisplayMode(null, "two"); comparePdf(doc.output(), "twoleft.pdf", "pages"); }); it("should display in two column right mode", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "Page 1"); doc.addPage(); doc.text(10, 10, "Page 2"); doc.addPage(); doc.text(10, 10, "Page 3"); doc.addPage(); doc.text(10, 10, "Page 4"); doc.setDisplayMode(null, "tworight"); comparePdf(doc.output(), "tworight.pdf", "pages"); }); it("should use outline display mode", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "Page 1"); doc.addPage(); doc.text(10, 10, "Page 2"); doc.addPage(); doc.text(10, 10, "Page 3"); doc.addPage(); doc.text(10, 10, "Page 4"); doc.setDisplayMode(null, null, "UseOutlines"); comparePdf(doc.output(), "outlines.pdf", "pages"); }); it("should use thumbnail display mode", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "Page 1"); doc.addPage(); doc.text(10, 10, "Page 2"); doc.addPage(); doc.text(10, 10, "Page 3"); doc.addPage(); doc.text(10, 10, "Page 4"); doc.setDisplayMode(null, null, "UseThumbs"); comparePdf(doc.output(), "thumbs.pdf", "pages"); }); it("should use fullscreen display mode", () => { const doc = new jsPDF({ floatPrecision: 2 }); doc.text(10, 10, "Page 1"); doc.addPage(); doc.text(10, 10, "Page 2"); doc.addPage(); doc.text(10, 10, "Page 3"); doc.addPage(); doc.text(10, 10, "Page 4"); doc.setDisplayMode(null, null, "FullScreen"); comparePdf(doc.output(), "fullscreen.pdf", "pages"); }); it("should throw an error for invalid page modes", () => { const doc = new jsPDF({ floatPrecision: 2 }); expect(() => { doc.setDisplayMode(null, null, "MadeUp"); }).toThrow( new Error( `Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "MadeUp" is not recognized.` ) ); }); });
{ "content_hash": "b9dd1aa6f330583cdaea5f919a3ce524", "timestamp": "", "source": "github", "line_count": 173, "max_line_length": 110, "avg_line_length": 31.98843930635838, "alnum_prop": 0.5854716299241055, "repo_name": "yWorks/jsPDF", "id": "88a210dbd4ef247fc9c276cf46ad7138ce53abe1", "size": "5534", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spec/display-mode.spec.js", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "15835" }, { "name": "JavaScript", "bytes": "1415453" }, { "name": "TypeScript", "bytes": "16438" } ], "symlink_target": "" }
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./server/routes/index'); var app = express(); // view engine setup app.set('views', path.join(__dirname, './client', 'views')); app.set('view engine', 'jade'); // uncomment after placing your favicon in /public //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); app.use(logger('dev')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); app.use(cookieParser()); app.use(express.static(path.join(__dirname, './client', 'public'))); // Allow CORS // see http://enable-cors.org/server_expressjs.html app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); next(); }); app.use('/', routes); // catch 404 and forward to error handler app.use(function(req, res, next) { var err = new Error('Not Found'); err.status = 404; next(err); }); // error handlers // development error handler // will print stacktrace if (app.get('env') === 'development') { app.use(function(err, req, res, next) { res.status(err.status || 500); res.render('error', { message: err.message, error: err }); }); } // production error handler // no stacktraces leaked to user app.use(function(err, req, res, next) { res.status(err.status || 500); res.render('error', { message: err.message, error: {} }); }); module.exports = app;
{ "content_hash": "a79dcc9143ca316e234b6534d3c325b6", "timestamp": "", "source": "github", "line_count": 66, "max_line_length": 95, "avg_line_length": 25.303030303030305, "alnum_prop": 0.6568862275449102, "repo_name": "HazyResearch/dd-genomics", "id": "e31ea53f243dadc2984a2d945a538827cde0ff0f", "size": "1670", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "api/genomics/app.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "111" }, { "name": "HTML", "bytes": "22186" }, { "name": "Java", "bytes": "25863" }, { "name": "JavaScript", "bytes": "10928" }, { "name": "Jupyter Notebook", "bytes": "19968" }, { "name": "Python", "bytes": "510253" }, { "name": "Shell", "bytes": "196808" } ], "symlink_target": "" }
@interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
{ "content_hash": "f8549afffc363428c66368c403b65636", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 60, "avg_line_length": 16.857142857142858, "alnum_prop": 0.7796610169491526, "repo_name": "christiancabarrocas/UIAutomation", "id": "0228e45619da5aa53e31dc63d64eb77097c18d8c", "size": "302", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "UIAutomation/AppDelegate.h", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "432" }, { "name": "Objective-C", "bytes": "8257" }, { "name": "Ruby", "bytes": "2333" } ], "symlink_target": "" }
<?php namespace Symfony\Component\Security\Core\Authorization\Voter; use Symfony\Component\ExpressionLanguage\Expression; use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use Symfony\Component\Security\Core\Authorization\ExpressionLanguage; use Symfony\Component\Security\Core\Role\RoleHierarchyInterface; /** * ExpressionVoter votes based on the evaluation of an expression. * * @author Fabien Potencier <fabien@symfony.com> */ class ExpressionVoter implements VoterInterface { private $expressionLanguage; private $trustResolver; private $authChecker; private $roleHierarchy; /** * @param AuthorizationCheckerInterface $authChecker */ public function __construct(ExpressionLanguage $expressionLanguage, AuthenticationTrustResolverInterface $trustResolver, $authChecker = null, RoleHierarchyInterface $roleHierarchy = null) { if ($authChecker instanceof RoleHierarchyInterface) { @trigger_error(sprintf('Passing a RoleHierarchyInterface to "%s()" is deprecated since Symfony 4.2. Pass an AuthorizationCheckerInterface instead.', __METHOD__), E_USER_DEPRECATED); $roleHierarchy = $authChecker; $authChecker = null; } elseif (null === $authChecker) { @trigger_error(sprintf('Argument 3 passed to "%s()" should be an instance of AuthorizationCheckerInterface, not passing it is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED); } elseif (!$authChecker instanceof AuthorizationCheckerInterface) { throw new \InvalidArgumentException(sprintf('Argument 3 passed to %s() must be an instance of %s or null, %s given.', __METHOD__, AuthorizationCheckerInterface::class, \is_object($authChecker) ? \get_class($authChecker) : \gettype($authChecker))); } $this->expressionLanguage = $expressionLanguage; $this->trustResolver = $trustResolver; $this->authChecker = $authChecker; $this->roleHierarchy = $roleHierarchy; } /** * @deprecated since Symfony 4.1, register the provider directly on the injected ExpressionLanguage instance instead. */ public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) { @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, register the provider directly on the injected ExpressionLanguage instance instead.', __METHOD__), E_USER_DEPRECATED); $this->expressionLanguage->registerProvider($provider); } /** * {@inheritdoc} */ public function vote(TokenInterface $token, $subject, array $attributes) { $result = VoterInterface::ACCESS_ABSTAIN; $variables = null; foreach ($attributes as $attribute) { if (!$attribute instanceof Expression) { continue; } if (null === $variables) { $variables = $this->getVariables($token, $subject); } $result = VoterInterface::ACCESS_DENIED; if ($this->expressionLanguage->evaluate($attribute, $variables)) { return VoterInterface::ACCESS_GRANTED; } } return $result; } private function getVariables(TokenInterface $token, $subject) { if (null !== $this->roleHierarchy) { $roles = $this->roleHierarchy->getReachableRoles($token->getRoles()); } else { $roles = $token->getRoles(); } $variables = [ 'token' => $token, 'user' => $token->getUser(), 'object' => $subject, 'subject' => $subject, 'roles' => array_map(function ($role) { return $role->getRole(); }, $roles), 'trust_resolver' => $this->trustResolver, 'auth_checker' => $this->authChecker, ]; // this is mainly to propose a better experience when the expression is used // in an access control rule, as the developer does not know that it's going // to be handled by this voter if ($subject instanceof Request) { $variables['request'] = $subject; } return $variables; } }
{ "content_hash": "7383d376d3220e411f1a446baec5b4d7", "timestamp": "", "source": "github", "line_count": 111, "max_line_length": 259, "avg_line_length": 40.7027027027027, "alnum_prop": 0.6629039397963701, "repo_name": "andrerom/symfony", "id": "d9530e071ce727523f5e7e1317c5aaeb5143dff5", "size": "4747", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Symfony/Component/Security/Core/Authorization/Voter/ExpressionVoter.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3010" }, { "name": "HTML", "bytes": "390460" }, { "name": "Hack", "bytes": "26" }, { "name": "JavaScript", "bytes": "354" }, { "name": "PHP", "bytes": "16544647" }, { "name": "Shell", "bytes": "375" } ], "symlink_target": "" }
#import <Foundation/Foundation.h> #import <WebRTC/RTCMacros.h> @class RTCConfiguration; @class RTCDataChannel; @class RTCDataChannelConfiguration; @class RTCIceCandidate; @class RTCMediaConstraints; @class RTCMediaStream; @class RTCMediaStreamTrack; @class RTCPeerConnectionFactory; @class RTCRtpReceiver; @class RTCRtpSender; @class RTCSessionDescription; @class RTCLegacyStatsReport; NS_ASSUME_NONNULL_BEGIN extern NSString * const kRTCPeerConnectionErrorDomain; extern int const kRTCSessionDescriptionErrorCode; /** Represents the signaling state of the peer connection. */ typedef NS_ENUM(NSInteger, RTCSignalingState) { RTCSignalingStateStable, RTCSignalingStateHaveLocalOffer, RTCSignalingStateHaveLocalPrAnswer, RTCSignalingStateHaveRemoteOffer, RTCSignalingStateHaveRemotePrAnswer, // Not an actual state, represents the total number of states. RTCSignalingStateClosed, }; /** Represents the ice connection state of the peer connection. */ typedef NS_ENUM(NSInteger, RTCIceConnectionState) { RTCIceConnectionStateNew, RTCIceConnectionStateChecking, RTCIceConnectionStateConnected, RTCIceConnectionStateCompleted, RTCIceConnectionStateFailed, RTCIceConnectionStateDisconnected, RTCIceConnectionStateClosed, RTCIceConnectionStateCount, }; /** Represents the ice gathering state of the peer connection. */ typedef NS_ENUM(NSInteger, RTCIceGatheringState) { RTCIceGatheringStateNew, RTCIceGatheringStateGathering, RTCIceGatheringStateComplete, }; /** Represents the stats output level. */ typedef NS_ENUM(NSInteger, RTCStatsOutputLevel) { RTCStatsOutputLevelStandard, RTCStatsOutputLevelDebug, }; @class RTCPeerConnection; RTC_EXPORT @protocol RTCPeerConnectionDelegate <NSObject> /** Called when the SignalingState changed. */ - (void)peerConnection:(RTCPeerConnection *)peerConnection didChangeSignalingState:(RTCSignalingState)stateChanged; /** Called when media is received on a new stream from remote peer. */ - (void)peerConnection:(RTCPeerConnection *)peerConnection didAddStream:(RTCMediaStream *)stream; /** Called when a remote peer closes a stream. */ - (void)peerConnection:(RTCPeerConnection *)peerConnection didRemoveStream:(RTCMediaStream *)stream; /** Called when negotiation is needed, for example ICE has restarted. */ - (void)peerConnectionShouldNegotiate:(RTCPeerConnection *)peerConnection; /** Called any time the IceConnectionState changes. */ - (void)peerConnection:(RTCPeerConnection *)peerConnection didChangeIceConnectionState:(RTCIceConnectionState)newState; /** Called any time the IceGatheringState changes. */ - (void)peerConnection:(RTCPeerConnection *)peerConnection didChangeIceGatheringState:(RTCIceGatheringState)newState; /** New ice candidate has been found. */ - (void)peerConnection:(RTCPeerConnection *)peerConnection didGenerateIceCandidate:(RTCIceCandidate *)candidate; /** Called when a group of local Ice candidates have been removed. */ - (void)peerConnection:(RTCPeerConnection *)peerConnection didRemoveIceCandidates:(NSArray<RTCIceCandidate *> *)candidates; /** New data channel has been opened. */ - (void)peerConnection:(RTCPeerConnection *)peerConnection didOpenDataChannel:(RTCDataChannel *)dataChannel; @end RTC_EXPORT @interface RTCPeerConnection : NSObject /** The object that will be notifed about events such as state changes and * streams being added or removed. */ @property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate; @property(nonatomic, readonly) NSArray<RTCMediaStream *> *localStreams; @property(nonatomic, readonly, nullable) RTCSessionDescription *localDescription; @property(nonatomic, readonly, nullable) RTCSessionDescription *remoteDescription; @property(nonatomic, readonly) RTCSignalingState signalingState; @property(nonatomic, readonly) RTCIceConnectionState iceConnectionState; @property(nonatomic, readonly) RTCIceGatheringState iceGatheringState; @property(nonatomic, readonly, copy) RTCConfiguration *configuration; /** Gets all RTCRtpSenders associated with this peer connection. * Note: reading this property returns different instances of RTCRtpSender. * Use isEqual: instead of == to compare RTCRtpSender instances. */ @property(nonatomic, readonly) NSArray<RTCRtpSender *> *senders; /** Gets all RTCRtpReceivers associated with this peer connection. * Note: reading this property returns different instances of RTCRtpReceiver. * Use isEqual: instead of == to compare RTCRtpReceiver instances. */ @property(nonatomic, readonly) NSArray<RTCRtpReceiver *> *receivers; - (instancetype)init NS_UNAVAILABLE; /** Sets the PeerConnection's global configuration to |configuration|. * Any changes to STUN/TURN servers or ICE candidate policy will affect the * next gathering phase, and cause the next call to createOffer to generate * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies * cannot be changed with this method. */ - (BOOL)setConfiguration:(RTCConfiguration *)configuration; /** Terminate all media and close the transport. */ - (void)close; /** Provide a remote candidate to the ICE Agent. */ - (void)addIceCandidate:(RTCIceCandidate *)candidate; /** Remove a group of remote candidates from the ICE Agent. */ - (void)removeIceCandidates:(NSArray<RTCIceCandidate *> *)candidates; /** Add a new media stream to be sent on this peer connection. */ - (void)addStream:(RTCMediaStream *)stream; /** Remove the given media stream from this peer connection. */ - (void)removeStream:(RTCMediaStream *)stream; /** Generate an SDP offer. */ - (void)offerForConstraints:(RTCMediaConstraints *)constraints completionHandler:(nullable void (^) (RTCSessionDescription * _Nullable sdp, NSError * _Nullable error))completionHandler; /** Generate an SDP answer. */ - (void)answerForConstraints:(RTCMediaConstraints *)constraints completionHandler:(nullable void (^) (RTCSessionDescription * _Nullable sdp, NSError * _Nullable error))completionHandler; /** Apply the supplied RTCSessionDescription as the local description. */ - (void)setLocalDescription:(RTCSessionDescription *)sdp completionHandler: (nullable void (^)(NSError * _Nullable error))completionHandler; /** Apply the supplied RTCSessionDescription as the remote description. */ - (void)setRemoteDescription:(RTCSessionDescription *)sdp completionHandler: (nullable void (^)(NSError * _Nullable error))completionHandler; /** Limits the bandwidth allocated for all RTP streams sent by this * PeerConnection. Nil parameters will be unchanged. Setting * |currentBitrateBps| will force the available bitrate estimate to the given * value. Returns YES if the parameters were successfully updated. */ - (BOOL)setBweMinBitrateBps:(nullable NSNumber *)minBitrateBps currentBitrateBps:(nullable NSNumber *)currentBitrateBps maxBitrateBps:(nullable NSNumber *)maxBitrateBps; /** Start or stop recording an Rtc EventLog. */ - (BOOL)startRtcEventLogWithFilePath:(NSString *)filePath maxSizeInBytes:(int64_t)maxSizeInBytes; - (void)stopRtcEventLog; @end @interface RTCPeerConnection (Media) /** Create an RTCRtpSender with the specified kind and media stream ID. * See RTCMediaStreamTrack.h for available kinds. */ - (RTCRtpSender *)senderWithKind:(NSString *)kind streamId:(NSString *)streamId; @end @interface RTCPeerConnection (DataChannel) /** Create a new data channel with the given label and configuration. */ - (nullable RTCDataChannel *)dataChannelForLabel:(NSString *)label configuration:(RTCDataChannelConfiguration *)configuration; @end @interface RTCPeerConnection (Stats) /** Gather stats for the given RTCMediaStreamTrack. If |mediaStreamTrack| is nil * statistics are gathered for all tracks. */ - (void)statsForTrack: (nullable RTCMediaStreamTrack *)mediaStreamTrack statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel completionHandler: (nullable void (^)(NSArray<RTCLegacyStatsReport *> *stats))completionHandler; @end NS_ASSUME_NONNULL_END
{ "content_hash": "650055a15220d75b7cc602321dcc7738", "timestamp": "", "source": "github", "line_count": 225, "max_line_length": 94, "avg_line_length": 36.315555555555555, "alnum_prop": 0.7753029005017745, "repo_name": "koobonil/Boss2D", "id": "a4c113b1d651aa5a8e5e2e5a1763d7e2070d7c82", "size": "8579", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "4820445" }, { "name": "Awk", "bytes": "4272" }, { "name": "Batchfile", "bytes": "89930" }, { "name": "C", "bytes": "119747922" }, { "name": "C#", "bytes": "87505" }, { "name": "C++", "bytes": "272329620" }, { "name": "CMake", "bytes": "1199656" }, { "name": "CSS", "bytes": "42679" }, { "name": "Clojure", "bytes": "1487" }, { "name": "Cuda", "bytes": "1651996" }, { "name": "DIGITAL Command Language", "bytes": "239527" }, { "name": "Dockerfile", "bytes": "9638" }, { "name": "Emacs Lisp", "bytes": "15570" }, { "name": "Go", "bytes": "858185" }, { "name": "HLSL", "bytes": "3314" }, { "name": "HTML", "bytes": "2958385" }, { "name": "Java", "bytes": "2921052" }, { "name": "JavaScript", "bytes": "178190" }, { "name": "Jupyter Notebook", "bytes": "1833654" }, { "name": "LLVM", "bytes": "6536" }, { "name": "M4", "bytes": "775724" }, { "name": "MATLAB", "bytes": "74606" }, { "name": "Makefile", "bytes": "3941551" }, { "name": "Meson", "bytes": "2847" }, { "name": "Module Management System", "bytes": "2626" }, { "name": "NSIS", "bytes": "4505" }, { "name": "Objective-C", "bytes": "4090702" }, { "name": "Objective-C++", "bytes": "1702390" }, { "name": "PHP", "bytes": "3530" }, { "name": "Perl", "bytes": "11096338" }, { "name": "Perl 6", "bytes": "11802" }, { "name": "PowerShell", "bytes": "38571" }, { "name": "Python", "bytes": "24123805" }, { "name": "QMake", "bytes": "18188" }, { "name": "Roff", "bytes": "1261269" }, { "name": "Ruby", "bytes": "5890" }, { "name": "Scala", "bytes": "5683" }, { "name": "Shell", "bytes": "2879948" }, { "name": "TeX", "bytes": "243507" }, { "name": "TypeScript", "bytes": "1593696" }, { "name": "Verilog", "bytes": "1215" }, { "name": "Vim Script", "bytes": "3759" }, { "name": "Visual Basic", "bytes": "16186" }, { "name": "eC", "bytes": "9705" } ], "symlink_target": "" }
TEST(StorageTest, EntityRemoveRecreateComponent) { struct Foo { Foo() { } }; using StorageT = Giraffe::Storage<Foo>; using EntityT = Giraffe::Entity<StorageT>; class FooSystem : public Giraffe::System<StorageT> { std::size_t m_found; public: FooSystem(StorageT &storage) : Giraffe::System<StorageT>(storage), m_found(0) { } virtual void update(float f) { m_found = 0; m_storage.process<Foo>([&](const EntityT &entity) { Foo *pFoo = m_storage.getComponent<Foo>(entity); (void) pFoo; //so that the compiler don't optimize out the line above ++m_found; }); } std::size_t getFound() const { return m_found; } }; StorageT storage; std::size_t poolSize1 = storage.getPoolSize<Foo>(); EntityT e1 = storage.addEntity(); e1.addComponent<Foo>(); e1.removeComponent<Foo>(); std::size_t poolSize2 = storage.getPoolSize<Foo>(); EntityT e2 = storage.addEntity(); e2.addComponent<Foo>(); std::size_t poolSize3 = storage.getPoolSize<Foo>(); FooSystem system = FooSystem(storage); system.update(1.0f); ASSERT_EQ(poolSize1, 0); ASSERT_EQ(poolSize2, 0); ASSERT_EQ(poolSize3, 1); EXPECT_EQ(system.getFound(), 1); } int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
{ "content_hash": "7b1dc92e440aba46474d1ca6b2f9fd03", "timestamp": "", "source": "github", "line_count": 54, "max_line_length": 89, "avg_line_length": 26.90740740740741, "alnum_prop": 0.5891259463179629, "repo_name": "varnie/giraffe", "id": "39bd404e9c387157f808552e1d5a719634b20851", "size": "1551", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/test15.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "236" }, { "name": "C++", "bytes": "52666" }, { "name": "CMake", "bytes": "1717" } ], "symlink_target": "" }
/* PAGE STRUCTURE */ #container { position:relative; width:100%; min-width:760px; padding:0; } #content { margin:10px 15px; } #header { width:100%; } #content-main { float:left; width:100%; } #content-related { float:right; width:18em; position:relative; margin-right:-19em; } #footer { clear:both; padding:10px; } /* COLUMN TYPES */ .colMS { margin-right:20em !important; } .colSM { margin-left:20em !important; } .colSM #content-related { float:left; margin-right:0; margin-left:-19em; } .colSM #content-main { float:right; } .popup .colM { width:95%; } .subcol { float:left; width:46%; margin-right:15px; } .dashboard #content { width:500px; } /* HEADER */ #header { background:#417690; color:#ffc; overflow:hidden; } #header a:link, #header a:visited { color:white; } #header a:hover { text-decoration:underline; } #branding h1 { padding:0 10px; font-size:18px; margin:8px 0; font-weight:normal; color:#f4f379; } #branding h2 { padding:0 10px; font-size:14px; margin:-8px 0 8px 0; font-weight:normal; color:#ffc; } #user-tools { position:absolute; top:0; right:0; padding:1.2em 10px; font-size:11px; text-align:right; } /* SIDEBAR */ #content-related h3 { font-size:12px; color:#666; margin-bottom:3px; } #content-related h4 { font-size:11px; } #content-related .module h2 { background:#eee url(../images/nav-bg.gif) bottom left repeat-x; color:#666; }
{ "content_hash": "fb7695b4f22474f2baf2bfe5cd525fbe", "timestamp": "", "source": "github", "line_count": 29, "max_line_length": 107, "avg_line_length": 47.03448275862069, "alnum_prop": 0.6957478005865103, "repo_name": "merbjedi/merb-admin", "id": "a63f7b0b2130e8d55ba73dcf19f81dcedcd6a4c6", "size": "1364", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "public/stylesheets/layout.css", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "69140" }, { "name": "Ruby", "bytes": "90645" } ], "symlink_target": "" }
def dr_evils_cipher(coded_message) input = coded_message.downcase.split("") # Check out this method in IRB to see how it works! Also refer to the Ruby docs. decoded_sentence = [] cipher = {"e" => "a", # This is technically a shift of four letters...Can you think of a way to automate this? Is a hash "f" => "b", # the best data structure for this problem? What are the pros and cons of hashes? "g" => "c", "h" => "d", "i" => "e", "j" => "f", "k" => "g", "l" => "h", "m" => "i", "n" => "j", "o" => "k", "p" => "l", "q" => "m", "r" => "n", "s" => "o", "t" => "p", "u" => "q", "v" => "r", "w" => "s", "x" => "t", "y" => "u", "z" => "v", "a" => "w", "b" => "x", "c" => "y", "d" => "z"} decoded = Hash.new alphabet = ("a".."z").to_a cipher = alphabet.rotate(4) counter = 0 while counter < alphabet.length decoded[cipher[counter]] = alphabet[counter] counter+=1 end symbols = ['@','#','$','%','^','&','*'] input.each do |code_letter| # What is #each doing here? iterate through input found_match = false # Why would this be assigned to false from the outset? What happens when it's true? decoded.each_key do |decoded_letter| # What is #each_key doing here? iterate through cipher if code_letter == decoded_letter # if x == y # What is this comparing? Where is it getting x? Where is it getting y? What are those variables really? decoded_sentence << decoded[decoded_letter] found_match = true # break # Why is it breaking here?# break out of cipher.each_key elsif symbols.include?(code_letter) #What the heck is this doing? #check if x matches any of the symobols here decoded_sentence << " " found_match = true break elsif (0..9).to_a.include?(code_letter) # Try this out in IRB. What does " (0..9).to_a " do? decoded_sentence << code_letter found_match = true break end end if not found_match # What is this looking for? decoded_sentence << code_letter end end decoded_sentence = decoded_sentence.join("") #What is this method returning? #The decoded sentence. end # Your Refactored Solution # def dr_evils_cipher(coded_message) # input = coded_message.downcase.split("") # decoded_sentence = [] # decoded = Hash.new # alphabet = ("a".."z").to_a # cipher = alphabet.rotate(4) # counter = 0 # while counter < alphabet.length # decoded[cipher[counter]] = alphabet[counter] # counter+=1 # end # symbols = ['@','#','$','%','^','&','*'] # input.each do |code_letter| # found_match = false # decoded.each_key do |decoded_letter| # if code_letter == decoded_letter # decoded_sentence << decoded[decoded_letter] # found_match = true # elsif symbols.include?(code_letter) # decoded_sentence << " " # found_match = true # break # elsif (0..9).to_a.include?(code_letter) # decoded_sentence << code_letter # found_match = true # break # end # end # if not found_match # decoded_sentence << code_letter # end # end # decoded_sentence = decoded_sentence.join("") # end # Driver Test Code: p dr_evils_cipher("m^aerx%e&gsoi!") == "i want a coke!" #This is driver test code and should print true # Find out what Dr. Evil is saying below and turn it into driver test code as well. Driver test code statements should always return "true." p dr_evils_cipher("syv%ievpc#exxiqtxw&ex^e$xvegxsv#fieq#airx%xlvsykl$wizivep#tvitevexmsrw.#tvitevexmsrw#e*xlvsykl#k&aivi%e@gsqtpixi&jempyvi. &fyx%rsa,$pehmiw@erh#kirxpiqir,%ai%jmreppc@lezi&e&asvomrk%xvegxsv#fieq,^almgl^ai^wlepp%gepp@tvitevexmsr^l") p dr_evils_cipher("csy&wii,@m'zi@xyvrih$xli*qssr$mrxs&alex@m#pmoi%xs#gepp%e^hiexl#wxev.") p dr_evils_cipher("qmrm#qi,*mj^m#iziv^pswx#csy#m^hsr'x%orsa^alex@m%asyph^hs. @m'h%tvsfefpc%qszi$sr%erh*kix#ersxliv$gpsri@fyx*xlivi@asyph^fi@e^15&qmryxi@tivmsh%xlivi$alivi*m*asyph&nywx^fi$mrgsrwspefpi.") p dr_evils_cipher("alc@qeoi*e$xvmppmsr^alir#ai*gsyph%qeoi...#fmppmsrw?") # Reflection # Keep your reflection limited to 10-15 minutes!
{ "content_hash": "73f1e6d91126d135a992de2294330400", "timestamp": "", "source": "github", "line_count": 132, "max_line_length": 140, "avg_line_length": 34, "alnum_prop": 0.5692959001782532, "repo_name": "huangkc/phase-0", "id": "a6e5e7603c19f4993d2a1179f8839d05645f4916", "size": "4741", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "week-9/ruby-review-2/ruby-review.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3350" }, { "name": "HTML", "bytes": "14529" }, { "name": "JavaScript", "bytes": "39275" }, { "name": "Ruby", "bytes": "119638" } ], "symlink_target": "" }
The primary goal of developing Hive on Kudu is to fully leverage Hive and Kudu's capabilities. The goal is to release the first version of Hive on Kudu with the following features. 1. Support for Hive External tables to Kudu * SerDe to auto-create columns in Hive 2. Support for Hive managed tables on Kudu 3. Support basic and advanced partitioning capabilities of Kudu 4. Support for Hive transactions (Updates and Deletes) 5. Support for predicates push-down ## Design Hive provides a Storage Handler to integrated other storage systems with Hive. Primary example of a Storage System that leverages storage handler is HBase. Below are some useful links to familiarize with Storage Handlers in Hive with examples. * [Hive Storage Handler guide](https://cwiki.apache.org/confluence/display/Hive/StorageHandlers) * [Hive-HBase Storage Handler](https://github.com/BimalTandel/hive/tree/master/hbase-handler) * [Hive-JDBC Storage Handler](https://github.com/qubole/Hive-JDBC-Storage-Handler) * [ElasticSearch Storage Handler](https://github.com/elastic/elasticsearch-hadoop/tree/master/hive/src/main/java/org/elasticsearch/hadoop/hive) In addition to a Storage Handler Hive provides capability to provide specific Input and Output format to handle reads and writes, and a SerDe to serialize and deserialize data to and from the Output and Input formats. High Level interactions and relationships before the components: ![alt text](./figures/StorageHandlerDesign.png) "Custom Storage Handler Components") To complete integration of Hive and Kudu these components will have to be developed. * HiveKudu Storage Handler * HiveKudu Input Format (With ACID support for Updates and Deletes) * HiveKudu Output Format (With ACID support for Updates and Deletes) * HiveKudu SerDe * HiveKudu Writable > Hive Interfaces and Classes are all based on MR1 APIs. I found it challenging to extend the KuduTableInputFormat and KuduTableOutputFormat as they are based on MR2 APIs. The only way to successfully use them would be to convert and publish a version with MR1 APIs. ## Detailed Design (Work in Progress) ### HiveKudu Storage Handler Things that need further discussion * How should we map Hive DDLs for providing partitioning options for Kudu Tables? * Option 1: Use Hives "Clustered By" and "INTO numbuckets BUCKETS" clauses. * Option 2: Use TBLPROPERTIES Key Value Pairs * How should we decompose predicates to allow Kudu to filter records during table scans? We can attempt to do what is currently supported via Impala. ### HiveKudu Serde and HiveKudu Writable * Review the current design of the Writable object * Hive to Kudu datatype mappings. (Kudu treats timestamps as LONG). ### HiveKudu Input & Output format * Can we leverage the ACIDInputOutput format for Kudu? * How to leverage hive transactions for Kudu?
{ "content_hash": "21157de08fe974a76c63db3f52258436", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 267, "avg_line_length": 62.630434782608695, "alnum_prop": 0.7827143353002429, "repo_name": "BimalTandel/HiveKudu-Handler", "id": "fa0bd9fdaa3ae85b66ecad4538d03c4205464c34", "size": "2930", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "doc/DesignDocument.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "66982" } ], "symlink_target": "" }
using System; using Zags.OrganizationService.IntegrationTests; using Xunit; namespace Zags.ProductFactory.Application.Tests { public class InMemoryDatabaseOrmLiteFixture : IDisposable { public InMemoryDatabaseOrmLite InMemoryDB { get; private set; } public InMemoryDatabaseOrmLiteFixture() { // This code run only one time InMemoryDB = new InMemoryDatabaseOrmLite(); } public void Dispose() { // Here is run only one time too InMemoryDB.Dispose(); } } [CollectionDefinition("MemoryDataBase Collection")] public class InMemoryDatabaseCollection : ICollectionFixture<InMemoryDatabaseOrmLiteFixture> { } }
{ "content_hash": "dd11dab80dff517a7a26640f2251596b", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 96, "avg_line_length": 27.37037037037037, "alnum_prop": 0.6657645466847091, "repo_name": "gmonos/codeforfun", "id": "e1ba387ccc1cf64a0c8013143f70e61ade74f940", "size": "741", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "FromPastYear/ProductFactory/tests/Zags.ProductFactory.ApplicationTests/InMemoryDatabaseOrmLiteFixture.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ASP", "bytes": "117" }, { "name": "C#", "bytes": "483931" }, { "name": "CSS", "bytes": "2926" }, { "name": "Gherkin", "bytes": "7600" }, { "name": "Go", "bytes": "2756" }, { "name": "HTML", "bytes": "11790" }, { "name": "JavaScript", "bytes": "440584" }, { "name": "PLpgSQL", "bytes": "11773" }, { "name": "PowerShell", "bytes": "3194" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (c) 2014, Thoughtworks Inc ~ All rights reserved. ~ ~ Redistribution and use in source and binary forms, with or without ~ modification, are permitted provided that the following conditions are met: ~ ~ 1. Redistributions of source code must retain the above copyright notice, this ~ list of conditions and the following disclaimer. ~ 2. Redistributions in binary form must reproduce the above copyright notice, ~ this list of conditions and the following disclaimer in the documentation ~ and/or other materials provided with the distribution. ~ ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ~ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ~ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ~ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ~ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ~ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ~ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ~ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ~ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ~ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ~ ~ The views and conclusions contained in the software and documentation are those ~ of the authors and should not be interpreted as representing official policies, ~ either expressed or implied, of the FreeBSD Project. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:orientation="horizontal" android:background="@color/blue" android:padding="@dimen/confirm_items_padding" android:layout_height="match_parent"> <TextView android:layout_width="fill_parent" android:layout_weight="1" android:layout_height="wrap_content" android:text="@string/commodity" android:textStyle="bold" android:textColor="@color/white" android:layout_gravity="center_horizontal" android:textSize="@dimen/header_text_size" android:id="@+id/textViewHeaderCommodityName" /> <TextView android:layout_width="fill_parent" android:layout_weight="1" android:layout_height="wrap_content" android:textStyle="bold" android:gravity="right" android:textColor="@color/white" android:layout_gravity="center_horizontal" android:textSize="@dimen/header_text_size" android:id="@+id/textViewHeaderSOH" android:text="@string/quantity" /> </LinearLayout>
{ "content_hash": "da0d233b74a8c782328b576bf32bb68f", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 83, "avg_line_length": 44.57142857142857, "alnum_prop": 0.7193732193732194, "repo_name": "clintonhealthaccess/chailmis-android", "id": "b388325f876bf0a5b4809e766ebc01e548dd0845", "size": "2808", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "app/src/main/res/layout/confirm_header.xml", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Cucumber", "bytes": "4884" }, { "name": "Java", "bytes": "1639947" }, { "name": "PLpgSQL", "bytes": "4994" }, { "name": "Puppet", "bytes": "746" }, { "name": "Python", "bytes": "910" }, { "name": "R", "bytes": "33528" }, { "name": "Ruby", "bytes": "6133" }, { "name": "Shell", "bytes": "1283" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_151) on Wed Jun 10 13:53:03 MST 2020 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class org.wildfly.swarm.config.messaging.activemq.server.ReplicationSlaveHAPolicy (BOM: * : All 2.7.0.Final API)</title> <meta name="date" content="2020-06-10"> <link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.wildfly.swarm.config.messaging.activemq.server.ReplicationSlaveHAPolicy (BOM: * : All 2.7.0.Final API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../../../../overview-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">Thorntail API, 2.7.0.Final</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/server/class-use/ReplicationSlaveHAPolicy.html" target="_top">Frames</a></li> <li><a href="ReplicationSlaveHAPolicy.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class org.wildfly.swarm.config.messaging.activemq.server.ReplicationSlaveHAPolicy" class="title">Uses of Class<br>org.wildfly.swarm.config.messaging.activemq.server.ReplicationSlaveHAPolicy</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.wildfly.swarm.config.messaging.activemq">org.wildfly.swarm.config.messaging.activemq</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#org.wildfly.swarm.config.messaging.activemq.server">org.wildfly.swarm.config.messaging.activemq.server</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.wildfly.swarm.config.messaging.activemq"> <!-- --> </a> <h3>Uses of <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a> in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/package-summary.html">org.wildfly.swarm.config.messaging.activemq</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/package-summary.html">org.wildfly.swarm.config.messaging.activemq</a> that return <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a></code></td> <td class="colLast"><span class="typeNameLabel">Server.ServerResources.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.ServerResources.html#replicationSlaveHaPolicy--">replicationSlaveHaPolicy</a></span>()</code> <div class="block">A messaging resource that allows you to configure High Availability for the ActiveMQ server (the value of ha-policy can be live-only, replication-master, replication-slave, replication-colocated, shared-store-master, shared-store-slave, or shared-store-colocated).</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/package-summary.html">org.wildfly.swarm.config.messaging.activemq</a> with parameters of type <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.html" title="type parameter in Server">T</a></code></td> <td class="colLast"><span class="typeNameLabel">Server.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/Server.html#replicationSlaveHaPolicy-org.wildfly.swarm.config.messaging.activemq.server.ReplicationSlaveHAPolicy-">replicationSlaveHaPolicy</a></span>(<a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a>&nbsp;value)</code> <div class="block">A messaging resource that allows you to configure High Availability for the ActiveMQ server (the value of ha-policy can be live-only, replication-master, replication-slave, replication-colocated, shared-store-master, shared-store-slave, or shared-store-colocated).</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="org.wildfly.swarm.config.messaging.activemq.server"> <!-- --> </a> <h3>Uses of <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a> in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">org.wildfly.swarm.config.messaging.activemq.server</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">org.wildfly.swarm.config.messaging.activemq.server</a> with type parameters of type <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a>&lt;T extends <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a>&lt;T&gt;&gt;</span></code> <div class="block">A messaging resource that allows you to configure High Availability for the ActiveMQ server (the value of ha-policy can be live-only, replication-master, replication-slave, replication-colocated, shared-store-master, shared-store-slave, or shared-store-colocated).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>interface&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicyConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicyConsumer</a>&lt;T extends <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a>&lt;T&gt;&gt;</span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>interface&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicySupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicySupplier</a>&lt;T extends <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a>&gt;</span></code>&nbsp;</td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/package-summary.html">org.wildfly.swarm.config.messaging.activemq.server</a> that return <a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">ReplicationSlaveHAPolicy</a></code></td> <td class="colLast"><span class="typeNameLabel">ReplicationSlaveHAPolicySupplier.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicySupplier.html#get--">get</a></span>()</code> <div class="block">Constructed instance of ReplicationSlaveHAPolicy resource</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/ReplicationSlaveHAPolicy.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../../../../../../overview-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">Thorntail API, 2.7.0.Final</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/server/class-use/ReplicationSlaveHAPolicy.html" target="_top">Frames</a></li> <li><a href="ReplicationSlaveHAPolicy.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2020 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p> </body> </html>
{ "content_hash": "ea5482534f7b4d0b2353333dcaeddee5", "timestamp": "", "source": "github", "line_count": 241, "max_line_length": 555, "avg_line_length": 62.25311203319502, "alnum_prop": 0.6859961341065121, "repo_name": "wildfly-swarm/wildfly-swarm-javadocs", "id": "f97316ea18fa8a0b793df33475700ec8cae3fc0c", "size": "15003", "binary": false, "copies": "1", "ref": "refs/heads/gh-pages", "path": "2.7.0.Final/apidocs/org/wildfly/swarm/config/messaging/activemq/server/class-use/ReplicationSlaveHAPolicy.html", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
package org.sagebionetworks.web.client.widget.entity; import com.google.gwt.event.shared.EventBus; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Widget; import com.google.inject.Inject; import org.sagebionetworks.repo.model.EntityGroupRecord; import org.sagebionetworks.repo.model.FileEntity; import org.sagebionetworks.repo.model.Reference; import org.sagebionetworks.repo.model.Versionable; import org.sagebionetworks.repo.model.download.AddBatchOfFilesToDownloadListResponse; import org.sagebionetworks.repo.model.entitybundle.v2.EntityBundle; import org.sagebionetworks.repo.model.entitybundle.v2.EntityBundleRequest; import org.sagebionetworks.repo.model.file.FileHandle; import org.sagebionetworks.web.client.DateTimeUtils; import org.sagebionetworks.web.client.DisplayConstants; import org.sagebionetworks.web.client.DisplayUtils; import org.sagebionetworks.web.client.EntityTypeUtils; import org.sagebionetworks.web.client.PopupUtilsView; import org.sagebionetworks.web.client.SynapseJSNIUtils; import org.sagebionetworks.web.client.SynapseJavascriptClient; import org.sagebionetworks.web.client.cookie.CookieProvider; import org.sagebionetworks.web.client.events.DownloadListUpdatedEvent; import org.sagebionetworks.web.client.utils.Callback; import org.sagebionetworks.web.client.widget.SelectableListItem; import org.sagebionetworks.web.client.widget.SynapseWidgetPresenter; import org.sagebionetworks.web.client.widget.lazyload.LazyLoadHelper; import org.sagebionetworks.web.client.widget.user.UserBadge; public class EntityListRowBadge implements EntityListRowBadgeView.Presenter, SynapseWidgetPresenter, SelectableListItem { public static final String N_A = "N/A"; private EntityListRowBadgeView view; private UserBadge createdByUserBadge; private SynapseJavascriptClient jsClient; private String entityId, entityName; private Long version; private Callback selectionChangedCallback; private LazyLoadHelper lazyLoadHelper; private DateTimeUtils dateTimeUtils; FileHandle dataFileHandle; PopupUtilsView popupUtils; EventBus eventBus; SynapseJSNIUtils jsniUtils; CookieProvider cookies; @Inject public EntityListRowBadge( EntityListRowBadgeView view, UserBadge userBadge, SynapseJavascriptClient jsClient, LazyLoadHelper lazyLoadHelper, DateTimeUtils dateTimeUtils, PopupUtilsView popupUtils, EventBus eventBus, SynapseJSNIUtils jsniUtils, CookieProvider cookies ) { this.view = view; this.createdByUserBadge = userBadge; this.dateTimeUtils = dateTimeUtils; this.jsClient = jsClient; this.lazyLoadHelper = lazyLoadHelper; this.popupUtils = popupUtils; this.eventBus = eventBus; this.jsniUtils = jsniUtils; this.cookies = cookies; view.setCreatedByWidget(userBadge.asWidget()); view.setPresenter(this); Callback loadDataCallback = new Callback() { @Override public void invoke() { getEntityBundle(); } }; lazyLoadHelper.configure(loadDataCallback, view); } public void setNote(String note) { view.setNote(note); } public void setDescriptionVisible(boolean visible) { view.setDescriptionVisible(visible); } public void setIsSelectable(boolean isSelectable) { view.setIsSelectable(isSelectable); } public boolean isSelected() { return view.isSelected(); } public void setSelected(boolean isSelected) { view.setSelected(isSelected); } public void getEntityBundle() { EntityBundleRequest request = new EntityBundleRequest(); request.setIncludeEntity(true); request.setIncludeFileHandles(true); view.showLoading(); AsyncCallback<EntityBundle> callback = new AsyncCallback<EntityBundle>() { @Override public void onFailure(Throwable caught) { view.setEntityLink( entityId, DisplayUtils.getSynapseHistoryToken(entityId, version) ); view.showErrorIcon(caught.getMessage()); } public void onSuccess(EntityBundle eb) { setEntityBundle(eb); } }; if (version == null) { jsClient.getEntityBundle(entityId, request, callback); } else { jsClient.getEntityBundleForVersion(entityId, version, request, callback); } } public void configure(Reference reference) { this.entityId = reference.getTargetId(); this.version = reference.getTargetVersionNumber(); lazyLoadHelper.setIsConfigured(); } @Override public Widget asWidget() { return view.asWidget(); } public void setEntityBundle(EntityBundle eb) { view.setEntityType(EntityTypeUtils.getEntityType(eb.getEntity())); entityName = eb.getEntity().getName(); view.setEntityLink( entityName, DisplayUtils.getSynapseHistoryToken(entityId, version) ); if (eb.getEntity().getCreatedBy() != null) { createdByUserBadge.configure(eb.getEntity().getCreatedBy()); createdByUserBadge.setOpenInNewWindow(); } if (eb.getEntity().getCreatedOn() != null) { String dateString = dateTimeUtils.getDateTimeString( eb.getEntity().getCreatedOn() ); view.setCreatedOn(dateString); } else { view.setCreatedOn(""); } view.setDescription(eb.getEntity().getDescription()); if (eb.getEntity() instanceof FileEntity) { dataFileHandle = EntityBadge.getDataFileHandle(eb.getFileHandles()); view.showAddToDownloadList(); } if (eb.getEntity() instanceof Versionable) { Versionable versionable = (Versionable) eb.getEntity(); view.setVersion(versionable.getVersionNumber().toString()); version = versionable.getVersionNumber(); } else { view.setVersion(N_A); } view.showRow(); } public EntityGroupRecord getRecord() { Reference ref = new Reference(); ref.setTargetId(entityId); ref.setTargetVersionNumber(version); EntityGroupRecord record = new EntityGroupRecord(); record.setEntityReference(ref); record.setNote(view.getNote()); return record; } public String getNote() { return view.getNote(); } public String getEntityId() { return entityId; } public void setSelectionChangedCallback(Callback selectionChangedCallback) { this.selectionChangedCallback = selectionChangedCallback; } @Override public void onSelectionChanged() { if (selectionChangedCallback != null) { selectionChangedCallback.invoke(); } } @Override public void onAddToDownloadList() { jsClient.addFileToDownloadListV2( entityId, version, new AsyncCallback<AddBatchOfFilesToDownloadListResponse>() { @Override public void onFailure(Throwable caught) { view.showErrorIcon(caught.getMessage()); } public void onSuccess(AddBatchOfFilesToDownloadListResponse result) { String href = "#!DownloadCart:0"; popupUtils.showInfo( entityName + EntityBadge.ADDED_TO_DOWNLOAD_LIST, href, DisplayConstants.VIEW_DOWNLOAD_LIST ); eventBus.fireEvent(new DownloadListUpdatedEvent()); } } ); } }
{ "content_hash": "f5d44cd1fc96d8fd39515489d81573ff", "timestamp": "", "source": "github", "line_count": 233, "max_line_length": 85, "avg_line_length": 30.879828326180256, "alnum_prop": 0.7307852675469075, "repo_name": "Sage-Bionetworks/SynapseWebClient", "id": "69773e61c6dc85229e02e082da22320358dda919", "size": "7195", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "src/main/java/org/sagebionetworks/web/client/widget/entity/EntityListRowBadge.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "392172" }, { "name": "HTML", "bytes": "3791715" }, { "name": "Java", "bytes": "8502799" }, { "name": "JavaScript", "bytes": "8787133" }, { "name": "SCSS", "bytes": "72670" }, { "name": "Shell", "bytes": "1422" } ], "symlink_target": "" }
import time # Code from: http://stackoverflow.com/questions/553303/generate-a-random-date-between-two-other-dates def strTimeProp(start, end, format, prop): """Get a time at a proportion of a range of two formatted times. start and end should be strings specifying times formated in the given format (strftime-style), giving an interval [start, end]. prop specifies how a proportion of the interval to be taken after start. The returned time will be in the specified format. """ stime = time.mktime(time.strptime(start, format)) etime = time.mktime(time.strptime(end, format)) ptime = stime + prop * (etime - stime) return time.strftime(format, time.localtime(ptime)) def randomDate(start, end, prop): return strTimeProp(start, end, '%Y-%m-%d %H:%M+0300', prop)
{ "content_hash": "5f3c1fd9bec17102ae3faf798e2a3524", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 101, "avg_line_length": 35.43478260869565, "alnum_prop": 0.7079754601226994, "repo_name": "ricardosasilva/fiscalcidadao-web", "id": "2fc140151ad3807ab6cbbad5d8ed07d9b00a0df3", "size": "839", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "utils.py", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "CSS", "bytes": "16435" }, { "name": "JavaScript", "bytes": "54513" }, { "name": "Python", "bytes": "56852" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataExplorer.Application.Legends.Sizes.Factories; using DataExplorer.Domain.Layouts; using DataExplorer.Domain.Maps.SizeMaps; using DataExplorer.Domain.Tests.Maps.SizeMaps; using Moq; using NUnit.Framework; namespace DataExplorer.Application.Tests.Legends.Sizes.Factories { [TestFixture] public class StringSizeLegendFactoryTests { private StringSizeLegendFactory _factory; private FakeSizeMap _sizeMap; private List<string> _values; private string _value; private double _size; private double _lowerSize; private double _upperSize; [SetUp] public void SetUp() { _values = new List<string>(); _value = "A"; _size = 0d; _lowerSize = 0d; _upperSize = 1d; _sizeMap = new FakeSizeMap(SortOrder.Ascending, _size, _value); _factory = new StringSizeLegendFactory(); } [Test] public void TestCreateShouldCreateDiscreteItemsIfValuesLessThanFour() { AssertResult(3, 3); } [Test] public void TestCreateShouldCreateDiscreteItemsIfValuesAreEqualToFour() { AssertResult(4, 4); } [Test] public void TestCreateShouldCreateContinuousItemsIfValuesAreGreaterThanFour() { AssertResult(5, 3); } [Test] public void TestCreateShouldCreateDescendingDiscreteItems() { _sizeMap = new FakeSizeMap(SortOrder.Descending); AssertResult(3, 3); } private void AssertResult(int valueCount, int expectedItemCount) { for (var i = 0; i < valueCount; i++) _values.Add(Convert.ToChar(65 + i).ToString()); var results = _factory.Create(_sizeMap, _values, _lowerSize, _upperSize); Assert.That(results.Count(), Is.EqualTo(expectedItemCount)); } } }
{ "content_hash": "eacc546cb1843702ef192f8080f9459e", "timestamp": "", "source": "github", "line_count": 74, "max_line_length": 85, "avg_line_length": 28.283783783783782, "alnum_prop": 0.6139512661251791, "repo_name": "dataexplorer/dataexplorer", "id": "c143bc5a54e016b38ce785807e5b7bb20892e82e", "size": "2095", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Application.Tests/Legends/Sizes/Factories/StringSizeLegendFactoryTests.cs", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C#", "bytes": "1582191" } ], "symlink_target": "" }
 #pragma once #include <aws/eventbridge/EventBridge_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EventBridge { namespace Model { /** * <p>The details of a capacity provider strategy. To learn more, see <a * href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CapacityProviderStrategyItem.html">CapacityProviderStrategyItem</a> * in the Amazon ECS API Reference.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CapacityProviderStrategyItem">AWS * API Reference</a></p> */ class AWS_EVENTBRIDGE_API CapacityProviderStrategyItem { public: CapacityProviderStrategyItem(); CapacityProviderStrategyItem(Aws::Utils::Json::JsonView jsonValue); CapacityProviderStrategyItem& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The short name of the capacity provider.</p> */ inline const Aws::String& GetCapacityProvider() const{ return m_capacityProvider; } /** * <p>The short name of the capacity provider.</p> */ inline bool CapacityProviderHasBeenSet() const { return m_capacityProviderHasBeenSet; } /** * <p>The short name of the capacity provider.</p> */ inline void SetCapacityProvider(const Aws::String& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = value; } /** * <p>The short name of the capacity provider.</p> */ inline void SetCapacityProvider(Aws::String&& value) { m_capacityProviderHasBeenSet = true; m_capacityProvider = std::move(value); } /** * <p>The short name of the capacity provider.</p> */ inline void SetCapacityProvider(const char* value) { m_capacityProviderHasBeenSet = true; m_capacityProvider.assign(value); } /** * <p>The short name of the capacity provider.</p> */ inline CapacityProviderStrategyItem& WithCapacityProvider(const Aws::String& value) { SetCapacityProvider(value); return *this;} /** * <p>The short name of the capacity provider.</p> */ inline CapacityProviderStrategyItem& WithCapacityProvider(Aws::String&& value) { SetCapacityProvider(std::move(value)); return *this;} /** * <p>The short name of the capacity provider.</p> */ inline CapacityProviderStrategyItem& WithCapacityProvider(const char* value) { SetCapacityProvider(value); return *this;} /** * <p>The weight value designates the relative percentage of the total number of * tasks launched that should use the specified capacity provider. The weight value * is taken into consideration after the base value, if defined, is satisfied.</p> */ inline int GetWeight() const{ return m_weight; } /** * <p>The weight value designates the relative percentage of the total number of * tasks launched that should use the specified capacity provider. The weight value * is taken into consideration after the base value, if defined, is satisfied.</p> */ inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; } /** * <p>The weight value designates the relative percentage of the total number of * tasks launched that should use the specified capacity provider. The weight value * is taken into consideration after the base value, if defined, is satisfied.</p> */ inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; } /** * <p>The weight value designates the relative percentage of the total number of * tasks launched that should use the specified capacity provider. The weight value * is taken into consideration after the base value, if defined, is satisfied.</p> */ inline CapacityProviderStrategyItem& WithWeight(int value) { SetWeight(value); return *this;} /** * <p>The base value designates how many tasks, at a minimum, to run on the * specified capacity provider. Only one capacity provider in a capacity provider * strategy can have a base defined. If no value is specified, the default value of * 0 is used. </p> */ inline int GetBase() const{ return m_base; } /** * <p>The base value designates how many tasks, at a minimum, to run on the * specified capacity provider. Only one capacity provider in a capacity provider * strategy can have a base defined. If no value is specified, the default value of * 0 is used. </p> */ inline bool BaseHasBeenSet() const { return m_baseHasBeenSet; } /** * <p>The base value designates how many tasks, at a minimum, to run on the * specified capacity provider. Only one capacity provider in a capacity provider * strategy can have a base defined. If no value is specified, the default value of * 0 is used. </p> */ inline void SetBase(int value) { m_baseHasBeenSet = true; m_base = value; } /** * <p>The base value designates how many tasks, at a minimum, to run on the * specified capacity provider. Only one capacity provider in a capacity provider * strategy can have a base defined. If no value is specified, the default value of * 0 is used. </p> */ inline CapacityProviderStrategyItem& WithBase(int value) { SetBase(value); return *this;} private: Aws::String m_capacityProvider; bool m_capacityProviderHasBeenSet = false; int m_weight; bool m_weightHasBeenSet = false; int m_base; bool m_baseHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws
{ "content_hash": "ed6cd2623931bb8ee0a116be3ae0bc43", "timestamp": "", "source": "github", "line_count": 155, "max_line_length": 140, "avg_line_length": 37.18064516129032, "alnum_prop": 0.6921742148186708, "repo_name": "aws/aws-sdk-cpp", "id": "24365e53ba8c32d8a4a0e6a50531db29512a24d8", "size": "5882", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "aws-cpp-sdk-eventbridge/include/aws/eventbridge/model/CapacityProviderStrategyItem.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "309797" }, { "name": "C++", "bytes": "476866144" }, { "name": "CMake", "bytes": "1245180" }, { "name": "Dockerfile", "bytes": "11688" }, { "name": "HTML", "bytes": "8056" }, { "name": "Java", "bytes": "413602" }, { "name": "Python", "bytes": "79245" }, { "name": "Shell", "bytes": "9246" } ], "symlink_target": "" }
happyLeaf.controller('WelcomeController', function($scope, $location, $translate, $rootScope, $localStorage, $mdDialog, deviceReady, connectionManager, storageManager, logManager) { $scope.ready = false; $scope.local = $localStorage; $scope.connection = connectionManager; $scope.scanIcon = "autorenew"; $scope.scanClass = ""; $scope.continueIcon = "pan_tool"; $scope.continueClass = ""; $scope.hasError = false; $scope.wifiNetworks = []; $scope.currentWifi = ""; $scope.canContinue = false; $scope.commandSequence = ["ATE1", "ATZ", "ATDP", "STSBR 2000000", "ATSP6", "ATH1", "ATS0", "ATI", "ATE0"]; $scope.status = $translate.instant('WELCOME.LOADING_TEXT'); $scope.platform = (navigator.userAgent.match(/iPad/i)) == "iPad" ? "iPad" : (navigator.userAgent.match(/iPhone/i)) == "iPhone" ? "iPhone" : (navigator.userAgent.match(/Android/i)) == "Android" ? "Android" : (navigator.userAgent.match(/BlackBerry/i)) == "BlackBerry" ? "BlackBerry" : "null"; logManager.log("I'm running angular!"); deviceReady(function(){ logManager.log("Translating to " + $translate.use()); logManager.log("Device is ready!"); if($localStorage.lang) $translate.use($localStorage.lang); moment.locale($translate.use()); $scope.ready = true; window.plugins.insomnia.keepAwake(); window.light = cordova.require("cordova-plugin-lightSensor.light"); logManager.setupFilesystem(); window.light.enableSensor(); //storageManager.startupDB(); cordova.plugins.backgroundMode.enable(); cordova.plugins.backgroundMode.setDefaults({ title: "Happy Leaf", text: "Running", icon: 'icon', // this will look for icon.png in platforms/android/res/drawable|mipmap color: "", // hex format like 'F14F4D' resume: true, hidden: true, bigText: "Happy Leaf" }); setInterval(function(){ if(!cordova.plugins.backgroundMode.isActive()){ logManager.createLogDirectory(cordova.file.externalRootDirectory, function(){ logManager.saveHistory(); logManager.saveLog(); }); } }, 60000); var enableBluetooth = function(){ bluetoothSerial.enable(function() { logManager.log("Bluetooth is enabled"); $scope.scanDevices(); }, function() { logManager.log("The user did *not* enable Bluetooth"); $translate('WELCOME.BLUETOOTH_ERROR').then(function (error) { var confirm = $mdDialog.alert() .parent(angular.element(document.querySelector('#welcome'))) .clickOutsideToClose(true) .title(error.TITLE) .textContent(error.CONTENT) .ok(error.RETRY); $mdDialog.show(confirm).then(function(){ enableBluetooth(); }); }); }); } enableBluetooth(); if(connectionManager.lastWifi || $scope.platform !== "Android"){ setTimeout(function(){ $scope.scanDevices(); }, 2500); } }); var watchingDevices = null; $scope.scanDevices = function(){ logManager.log("Scanning..."); $scope.status = $translate.instant("WELCOME.SCANNING"); $scope.scanIcon = "settings_backup_restore" $scope.scanClass = "start"; if(connectionManager.isConnected && !connectionManager.lastWifi || $scope.canContinue){ $scope.continueIcon = "done"; $scope.continueClass = ""; return; } if(typeof WifiWizard !== 'undefined') { WifiWizard.setWifiEnabled(true, function(){ WifiWizard.getCurrentSSID(function(currentWifi){ $scope.currentWifi = currentWifi; $scope.$digest(); }); WifiWizard.startScan(function(){ WifiWizard.getScanResults(function(networks){ logManager.log("Listing wifi networks"); $scope.wifiNetworks = networks; setTimeout(function(){ connectionManager.scanDevices(); }, 4000); async.forEach(networks, function(network){ if(network == $localStorage.lastConnectedWifi && $scope.currentWifi !== network){ $scope.connectWifi(network); } }); }, function(){ logManager.log("Could not get Wifi networks"); }); }); }, function(){ logManager.log("Could not enable Wifi"); }); } if(watchingDevices) watchingDevices(); var stopScanning = setTimeout(function(){ $scope.scanIcon = "autorenew"; $scope.scanClass = ""; $scope.$digest(); }, 6000); watchingDevices = $scope.$watch('connection.availableDevices', function(newDevices){ logManager.log("Devices changed " + JSON.stringify(connectionManager.availableDevices)); var lastConnected = $localStorage.lastConnected; $scope.status = $translate.instant("WELCOME.FOUND", {length: connectionManager.availableDevices.length}); if(lastConnected && $scope.shouldReconnect && $scope.retryCount < 3){ $scope.status += " remembering " + lastConnected; async.forEach(connectionManager.availableDevices, function(scannedDevice){ if(scannedDevice.address){ if(scannedDevice.address == lastConnected && scannedDevice.address.match(":") && !connectionManager.isConnected && !connectionManager.lastWifi) { logManager.log("Found last connected device: " + lastConnected); $scope.connectBluetoothDevice(lastConnected); } else if(scannedDevice.address == lastConnected && scannedDevice.address.match(".")) { logManager.log("Found last connected wifi device: " + lastConnected); $scope.connectWifiDevice(lastConnected); } } else if(scannedDevice.uuid && scannedDevice.uuid == lastConnected) { $scope.connectBluetoothDevice(lastConnected) } }); } }); //$scope.$watch('connection.isConnected', function(connected){ if(!connectionManager.isConnected) { //$scope.status = $translate.instant('DISCONNECTED'); } else if($scope.canContinue){ $scope.continueIcon = "done"; $scope.continueClass = ""; } logManager.log("Device connected " + connectionManager.isConnected); //}); //logManager.log(connectionManager); if(connectionManager.isConnected && $scope.canContinue){ $scope.$digest(); setTimeout($scope.continue, 500); } else { connectionManager.scanDevices(function(results){ //Will return either wifi or bluetooth device logManager.log("Scanned"); $scope.$digest(); }, function(err){ $scope.status = "Scan failed " + err; $scope.scanIcon = "error_outline"; }); } } $scope.connectDevice = function(device) { $localStorage.lastConnected = device.address || device.uuid; $scope.canContinue = false; $scope.retryCount = 0; if($localStorage.lastConnected.match(":") || $localStorage.lastConnected.match("-")) { $scope.connectBluetoothDevice($localStorage.lastConnected); } else if($localStorage.lastConnected.match(".")) { $scope.connectWifiDevice($localStorage.lastConnected); } } $scope.shouldReconnect = true; $scope.retryCount = 0; $scope.connectBluetoothDevice = function(deviceAddress){ logManager.log("Connecting to: " + deviceAddress); $scope.status = $translate.instant('WELCOME.CONNECTING', {name: deviceAddress}); $scope.continueIcon = "settings_bluetooth"; $scope.continueClass = "blink"; $localStorage.lastConnected = deviceAddress; connectionManager.connectBluetoothDevice(deviceAddress, function(){ $scope.status = $translate.instant("WELCOME.CONNECTED"); logManager.log("Connected welcome"); setTimeout($scope.testDevice, 1500); }, function(err){ if(!connectionManager.isConnected){ $scope.hasError = true; if($scope.retryCount < 3){ $scope.retryCount ++; setTimeout($scope.scanDevices, 1500); } $scope.$apply(function(){ $scope.status = $translate.instant("WELCOME.CONNECTION_FAILED") + ' ' + err; $scope.continueIcon = "signal_cellular_connected_no_internet_0_bar"; $scope.continueClass = ""; $scope.canContinue = false; }); } }); }; $scope.connectWifiDevice = function(deviceAddress) { $scope.status = $translate.instant("WELCOME.CONNECTED"); $scope.continueIcon = "wifi"; logManager.log("Connecting to wifi: " + deviceAddress); if(connectionManager.isConnected) { $localStorage.lastConnected = deviceAddress; $localStorage.lastConnectedWifi = $scope.currentWifi; $scope.testDevice(); } }; $scope.connectWifi = function(SSID){ $scope.status = $translate.instant("WELCOME.CONNECTING", {name: SSID}); WifiWizard.connectNetwork(SSID, function(){ setTimeout(function(){ $scope.scanDevices(); }, 3000); }, function(){ $scope.status = $translate.instant("WELCOME.WIFI_ERROR"); }); } $scope.testDevice = function() { logManager.log("Testing device"); connectionManager.shouldSend(); $scope.status = $translate.instant('WELCOME.TESTING'); var responses = []; connectionManager.subscribe(">", function(output){ logManager.log("Subscribe got: " + output); output = output.substring(0, output.length - 1); connectionManager.shouldSend(); responses.push(output); if(output.indexOf("ELM") !== -1){ logManager.log("Success!"); $scope.canContinue = true; setTimeout(function(){ $scope.$apply($scope.continue); }, 2000); $scope.$apply(function(){ output = output.substring(output.indexOf("ELM")); $scope.status = $translate.instant('WELCOME.SUCCESS', {output: output}); $scope.continueIcon = "done"; $scope.continueClass = ""; }); } else if(responses.length > $scope.commandSequence.length) { $scope.testDevice(); } else if(!$scope.canContinue) { $scope.$apply(function(){ $scope.status = "Reading: " + output; }); } }, function(err){ logManager.log(err); }); if(!$scope.canContinue){ connectionManager.send($scope.commandSequence, function(log){ logManager.log(JSON.stringify(log)); setTimeout(function(){ if(!$scope.canContinue) { $scope.testDevice() } }, 2000); }); logManager.log("Testing..."); } else { logManager.log("Not testing because already can continue"); } } $scope.newMessage = function(date){ logManager.log("Message received"); logManager.log(data); } $scope.substribeFailure = function(data) { logManager.log("Subscribe failed :("); logManager.log(data); } $scope.continue = function(){ $rootScope.needsRefresh = true; if($scope.canContinue || connectionManager.isConnected){ logManager.log("Going to home"); $location.path("/home"); } else if($localStorage.historyCount > 0) { var confirm = $mdDialog.alert() .parent(angular.element(document.querySelector('#welcome'))) .clickOutsideToClose(true) .title($translate.instant('WELCOME.OFFLINE_WARNING.TITLE')) .textContent($translate.instant('WELCOME.OFFLINE_WARNING.CONTENT')) .ok($translate.instant('WELCOME.OFFLINE_WARNING.CONTINUE')); $mdDialog.show(confirm).then(function(){ logManager.log("Going to home"); $location.path("/home"); }); } } });
{ "content_hash": "b71af0e2f17dbe126d57f0e22a5cf3f8", "timestamp": "", "source": "github", "line_count": 337, "max_line_length": 294, "avg_line_length": 35.06528189910979, "alnum_prop": 0.6165693492426165, "repo_name": "Jayklutch/HappyLeaf", "id": "1652db94eac63298b1f839d21652c2052f0b0433", "size": "11817", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "platforms/android/assets/www/controllers/welcome/welcome.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "AppleScript", "bytes": "1239" }, { "name": "Arduino", "bytes": "13702" }, { "name": "Batchfile", "bytes": "20941" }, { "name": "C", "bytes": "7023527" }, { "name": "C#", "bytes": "289386" }, { "name": "C++", "bytes": "378745" }, { "name": "CSS", "bytes": "135262" }, { "name": "CoffeeScript", "bytes": "32426" }, { "name": "HTML", "bytes": "178350" }, { "name": "Java", "bytes": "1574611" }, { "name": "JavaScript", "bytes": "1617621" }, { "name": "Objective-C", "bytes": "2029651" }, { "name": "PowerShell", "bytes": "1464" }, { "name": "QML", "bytes": "4777" }, { "name": "Shell", "bytes": "34109" } ], "symlink_target": "" }
<?php add_action( 'after_setup_theme', 'blankslate_setup' ); function blankslate_setup() { load_theme_textdomain( 'blankslate', get_template_directory() . '/languages' ); add_theme_support( 'title-tag' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'post-thumbnails' ); global $content_width; if ( ! isset( $content_width ) ) $content_width = 640; register_nav_menus( array( 'main-menu' => __( 'Main Menu', 'blankslate' ) ) ); } add_action( 'wp_enqueue_scripts', 'blankslate_load_scripts' ); function blankslate_load_scripts() { wp_enqueue_script( 'jquery' ); wp_register_script('foundation', get_template_directory_uri()."/js/vendor/foundation.min.js"); wp_register_script('app', get_template_directory_uri()."/js/app.js"); wp_enqueue_script(array('foundation', 'app')); } add_action( 'wp_enqueue_scripts', 'enqueue_theme_css' ); function enqueue_theme_css() { wp_enqueue_style( 'default', get_template_directory_uri() . '/css/app.css' ); wp_enqueue_style('foundation', get_template_directory_uri()."/css/foundation.css"); } add_action( 'comment_form_before', 'blankslate_enqueue_comment_reply_script' ); function blankslate_enqueue_comment_reply_script() { if ( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_filter( 'the_title', 'blankslate_title' ); function blankslate_title( $title ) { if ( $title == '' ) { return '&rarr;'; } else { return $title; } } add_filter( 'wp_title', 'blankslate_filter_wp_title' ); function blankslate_filter_wp_title( $title ) { return $title . esc_attr( get_bloginfo( 'name' ) ); } add_action( 'widgets_init', 'blankslate_widgets_init' ); function blankslate_widgets_init() { register_sidebar( array ( 'name' => __( 'Sidebar Widget Area', 'blankslate' ), 'id' => 'primary-widget-area', 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => "</li>", 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } function blankslate_custom_pings( $comment ) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"><?php echo comment_author_link(); ?></li> <?php } add_filter( 'get_comments_number', 'blankslate_comments_number' ); function blankslate_comments_number( $count ) { if ( !is_admin() ) { global $id; $comments_by_type = &separate_comments( get_comments( 'status=approve&post_id=' . $id ) ); return count( $comments_by_type['comment'] ); } else { return $count; } }
{ "content_hash": "c55d1a7b883c0a7d02ef28c288bbe60c", "timestamp": "", "source": "github", "line_count": 89, "max_line_length": 111, "avg_line_length": 28.797752808988765, "alnum_prop": 0.649629340616465, "repo_name": "svebeck/brollop2017", "id": "dbaa88a7110b679bef33873ef70fc9e6d0dc74ce", "size": "2563", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "wp-content/themes/blankslate/functions.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "763" }, { "name": "CSS", "bytes": "2382615" }, { "name": "JavaScript", "bytes": "3577608" }, { "name": "PHP", "bytes": "18202144" } ], "symlink_target": "" }
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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. // ---------------------------------------------------------------------------------- using System.Collections.Generic; using Tools.Common.Loggers; using Tools.Common.Models; namespace StaticAnalysis.BreakingChangeAnalyzer { /// <summary> /// This class is responsible for comparing ParameterSetMetadata and checking /// for breaking changes between old (serialized) metadata and new metadata. /// </summary> public class ParameterSetMetadataHelper { /// <summary> /// Compares the metadata of parameter sets with the same name for any breaking changes. /// /// Breaking changes for parameter sets include /// - Removing a parameter set /// - Making an optional parameter mandatory /// - Changing the position of a parameter /// - A parameter that previously could get its value from the pipeline no longer does /// - A parameter that previously could get its value from the pipeline by property name no longer does /// - A parameter has been removed from the parameter set /// </summary> /// <param name="cmdlet">Reference to the cmdlet whose parameter sets are being checked.</param> /// <param name="oldParameterSets">The list of parameter sets from the old (serialized) metadata.</param> /// <param name="newParameterSets">The list of parameter sets from the new metadata</param> /// <param name="issueLogger">ReportLogger that will keep track of the issues found.</param> public void CompareParameterSetMetadata( CmdletMetadata cmdlet, List<ParameterSetMetadata> oldParameterSets, List<ParameterSetMetadata> newParameterSets, ReportLogger<BreakingChangeIssue> issueLogger) { // This dictionary will map a parameter set name to the corresponding metadata Dictionary<string, ParameterSetMetadata> parameterSetDictionary = new Dictionary<string, ParameterSetMetadata>(); // Add each parameter set to the dictionary foreach (var newParameterSet in newParameterSets) { parameterSetDictionary.Add(newParameterSet.Name, newParameterSet); } // For each parameter set in the old metadata, see if it has been // added to the dictionary (exists in the new metadata) foreach (var oldParameterSet in oldParameterSets) { bool foundMatch = false; // Find matching parameter set foreach (var newParameterSet in newParameterSets) { Dictionary<string, Parameter> parameterDictionary = new Dictionary<string, Parameter>(); foreach (var parameter in newParameterSet.Parameters) { parameterDictionary.Add(parameter.ParameterMetadata.Name, parameter); foreach (var alias in parameter.ParameterMetadata.AliasList) { parameterDictionary.Add(alias, parameter); } } // Check if set has minimum parameters required to match bool minimumRequired = true; foreach (var parameter in oldParameterSet.Parameters) { if (!parameterDictionary.ContainsKey(parameter.ParameterMetadata.Name)) { minimumRequired = false; break; } else { var newParameter = parameterDictionary[parameter.ParameterMetadata.Name]; if (!parameter.Mandatory && newParameter.Mandatory || parameter.Position >= 0 && parameter.Position != newParameter.Position || parameter.ValueFromPipeline && !newParameter.ValueFromPipeline || parameter.ValueFromPipelineByPropertyName && !newParameter.ValueFromPipelineByPropertyName) { minimumRequired = false; break; } } } if (!minimumRequired) { continue; } parameterDictionary = new Dictionary<string, Parameter>(); foreach (var parameter in oldParameterSet.Parameters) { parameterDictionary.Add(parameter.ParameterMetadata.Name, parameter); foreach (var alias in parameter.ParameterMetadata.AliasList) { parameterDictionary.Add(alias, parameter); } } // Check if set has any additional mandatory parameters bool foundAdditional = false; foreach (var parameter in newParameterSet.Parameters) { if (parameterDictionary.ContainsKey(parameter.ParameterMetadata.Name)) { continue; } if (parameter.Mandatory) { foundAdditional = true; break; } } if (!foundAdditional) { foundMatch = true; break; } } if (!foundMatch) { issueLogger?.LogBreakingChangeIssue( cmdlet: cmdlet, severity: 0, problemId: ProblemIds.BreakingChangeProblemId.RemovedParameterSet, description: string.Format(Properties.Resources.RemovedParameterSetDescription, oldParameterSet.Name, cmdlet.Name), remediation: string.Format(Properties.Resources.RemovedParameterSetRemediation, oldParameterSet.Name, cmdlet.Name)); } } } } }
{ "content_hash": "39b8c3d23d8e6db3b9ac31cf3e09c60b", "timestamp": "", "source": "github", "line_count": 151, "max_line_length": 125, "avg_line_length": 47.397350993377486, "alnum_prop": 0.5287131479670253, "repo_name": "ClogenyTechnologies/azure-powershell", "id": "a145e7f5e2874df3aea199ad64ab0377ea795433", "size": "7159", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "tools/StaticAnalysis/BreakingChangeAnalyzer/ParameterSetMetadataHelper.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C#", "bytes": "14332261" }, { "name": "JavaScript", "bytes": "4979" }, { "name": "PHP", "bytes": "41" }, { "name": "PowerShell", "bytes": "590227" }, { "name": "Python", "bytes": "20483" }, { "name": "Shell", "bytes": "16102" } ], "symlink_target": "" }
"""Additional tests focused on robustness testing""" __author__ = 'Carlos Rueda' # bin/nosetests -sv ion/agents/platform/test/test_platform_agent_robustness.py:TestPlatformRobustness.test_instrument_reset_externally # bin/nosetests -sv ion/agents/platform/test/test_platform_agent_robustness.py:TestPlatformRobustness.test_adverse_activation_sequence # bin/nosetests -sv ion/agents/platform/test/test_platform_agent_robustness.py:TestPlatformRobustness.test_with_instrument_directly_put_into_streaming # bin/nosetests -sv ion/agents/platform/test/test_platform_agent_robustness.py:TestPlatformRobustness.test_with_instrument_directly_stopped # bin/nosetests -sv ion/agents/platform/test/test_platform_agent_robustness.py:TestPlatformRobustness.test_with_leaf_subplatform_directly_stopped # bin/nosetests -sv ion/agents/platform/test/test_platform_agent_robustness.py:TestPlatformRobustness.test_with_intermediate_subplatform_directly_stopped # bin/nosetests -sv ion/agents/platform/test/test_platform_agent_robustness.py:TestPlatformRobustness.test_with_intermediate_subplatform_directly_stopped_then_restarted from ion.agents.platform.test.base_test_platform_agent import BaseIntTestPlatform from ion.agents.platform.status_manager import publish_event_for_diagnostics from ion.agents.platform.platform_agent import PlatformAgent from ion.agents.instrument.instrument_agent import InstrumentAgent from pyon.public import log, CFG from pyon.util.context import LocalContextMixin from pyon.agent.agent import ResourceAgentState, ResourceAgentEvent from interface.objects import AgentCommand from interface.objects import ProcessStateEnum from gevent.timeout import Timeout import gevent from mock import patch import unittest import os class FakeProcess(LocalContextMixin): """ A fake process used because the test case is not an ion process. """ name = '' id='' process_type = '' @patch.dict(CFG, {'endpoint': {'receive': {'timeout': 180}}}) @unittest.skipIf((not os.getenv('PYCC_MODE', False)) and os.getenv('CEI_LAUNCH_TEST', False), 'Skip until tests support launch port agent configurations.') class TestPlatformRobustness(BaseIntTestPlatform): ################### # auxiliary methods ################### def _launch_network(self, p_root, recursion=True): def shutdown(): try: self._go_inactive(recursion) self._reset(recursion) finally: # attempt shutdown anyway self._shutdown(True) # NOTE: shutdown always with recursion=True self._start_platform(p_root) self.addCleanup(self._stop_platform, p_root) self.addCleanup(shutdown) def _start_device_failed_command_event_subscriber(self, p_root, count=1): return self._start_event_subscriber2( count=count, event_type="DeviceStatusEvent", origin_type="PlatformDevice", origin=p_root.platform_device_id, sub_type="device_failed_command") def _instrument_initialize(self, instr_key, ia_client): self._instrument_execute_agent(instr_key, ia_client, ResourceAgentEvent.INITIALIZE, ResourceAgentState.INACTIVE) def _instrument_go_active(self, instr_key, ia_client): self._instrument_execute_agent(instr_key, ia_client, ResourceAgentEvent.GO_ACTIVE, ResourceAgentState.IDLE) def _instrument_run(self, instr_key, ia_client): self._instrument_execute_agent(instr_key, ia_client, ResourceAgentEvent.RUN, ResourceAgentState.COMMAND) def _instrument_start_autosample(self, instr_key, ia_client): from mi.instrument.seabird.sbe37smb.ooicore.driver import SBE37ProtocolEvent command = SBE37ProtocolEvent.START_AUTOSAMPLE self._instrument_execute_resource(instr_key, ia_client, command, ResourceAgentState.STREAMING) def _instrument_stop_autosample(self, instr_key, ia_client): from mi.instrument.seabird.sbe37smb.ooicore.driver import SBE37ProtocolEvent command = SBE37ProtocolEvent.STOP_AUTOSAMPLE self._instrument_execute_resource(instr_key, ia_client, command, ResourceAgentState.COMMAND) def _instrument_reset(self, instr_key, ia_client): self._instrument_execute_agent(instr_key, ia_client, ResourceAgentEvent.RESET, ResourceAgentState.UNINITIALIZED) def _instrument_execute_agent(self, instr_key, ia_client, command, expected_state=None): log.debug("execute_agent %r on instrument %r", command, instr_key) cmd = AgentCommand(command=command) retval = ia_client.execute_agent(cmd, timeout=self._receive_timeout) log.debug("execute_agent of %r on instrument %r returned: %s", command, instr_key, retval) if expected_state: self.assertEqual(expected_state, ia_client.get_agent_state()) def _instrument_execute_resource(self, instr_key, ia_client, command, expected_state=None): log.debug("execute_resource %r on instrument %r", command, instr_key) cmd = AgentCommand(command=command) retval = ia_client.execute_resource(cmd, timeout=self._receive_timeout) log.debug("execute_resource of %r on instrument %r returned: %s", command, instr_key, retval) if expected_state: self.assertEqual(expected_state, ia_client.get_agent_state()) ################### # tests ################### def test_instrument_reset_externally(self): # # - a network of one platform with 2 instruments is launched and put in command state # - one of the instruments is directly reset here simulating some external situation # - network is shutdown following regular sequence # - test should complete fine: the already reset child instrument should not # cause issue during the reset sequence from parent platform agent. # # During the shutdown sequence the following should be logged out by the platform prior to trying # the GO_INACTIVE command to the (already reset) instrument: # ion.agents.platform.platform_agent:2195 'LJ01D': instrument '8761366c8d734a4ba886606c3a47b621': # current_state='RESOURCE_AGENT_STATE_UNINITIALIZED' # expected_state='RESOURCE_AGENT_STATE_INACTIVE' # command='RESOURCE_AGENT_EVENT_GO_INACTIVE', comp=-1, actl=decr, acceptable_state=True # self._set_receive_timeout() recursion = True instr_keys = ['SBE37_SIM_01', 'SBE37_SIM_02'] p_root = self._set_up_single_platform_with_some_instruments(instr_keys) self._launch_network(p_root, recursion) i_obj = self._get_instrument(instr_keys[0]) ia_client = self._create_resource_agent_client(i_obj.instrument_device_id) # command sequence: self._ping_agent() self._initialize(recursion) self._go_active(recursion) self._run(recursion) self.assertEqual(ia_client.get_agent_state(), ResourceAgentState.COMMAND) # reset the instrument self._instrument_reset(instr_keys[0], ia_client) # and let the test complete with regular shutdown sequence. def test_adverse_activation_sequence(self): # # - initialize network (so all agents get INITIALIZED) # - externally reset an instrument (so that instrument gets to UNINITIALIZED) # - activate network (so a "device_failed_command" event should be published because # instrument is not INITIALIZED) # - verify publication of the "device_failed_command" event # - similarly, "run" the network # - verify publication of 2nd "device_failed_command" event # # note: the platform successfully completes the GO_ACTIVE and RUN commands even with the failed child; # see https://confluence.oceanobservatories.org/display/CIDev/Platform+commands # self._set_receive_timeout() recursion = True instr_keys = ['SBE37_SIM_01'] p_root = self._set_up_single_platform_with_some_instruments(instr_keys) self._launch_network(p_root, recursion) i_obj = self._get_instrument(instr_keys[0]) ia_client = self._create_resource_agent_client(i_obj.instrument_device_id) # initialize the network self._ping_agent() self._initialize(recursion) self.assertEqual(ia_client.get_agent_state(), ResourceAgentState.INACTIVE) # reset the instrument before we continue the activation of the network self._instrument_reset(instr_keys[0], ia_client) # prepare to receive 2 "device_failed_command" events, one during GO_ACTIVE and one during RUN: # (See StatusManager.publish_device_failed_command_event) async_event_result, events_received = self._start_device_failed_command_event_subscriber(p_root, 2) # activate and run network: self._go_active(recursion) self._run(recursion) # verify publication of "device_failed_command" events async_event_result.get(timeout=self._receive_timeout) self.assertEquals(len(events_received), 2) log.info("DeviceStatusEvents received (%d): %s", len(events_received), events_received) for event_received in events_received: self.assertGreaterEqual(len(event_received.values), 1) failed_resource_id = event_received.values[0] self.assertEquals(i_obj.instrument_device_id, failed_resource_id) def test_with_instrument_directly_put_into_streaming(self): # # - network (of a platform with an instrument) is launched until COMMAND state # - instrument is directly moved to STREAMING # - network is moved to STREAMING # - instrument is directly stopped STREAMING # - network is moved back to COMMAND # # All of this should be handled without errors, in particular no DeviceStatusEvent's should be published. # self._set_receive_timeout() recursion = True instr_key = 'SBE37_SIM_01' p_root = self._set_up_single_platform_with_some_instruments([instr_key]) self._launch_network(p_root, recursion) i_obj = self._get_instrument(instr_key) ia_client = self._create_resource_agent_client(i_obj.instrument_device_id) # initialize the network self._ping_agent() self._initialize(recursion) self._go_active(recursion) self._run(recursion) self._assert_agent_client_state(ia_client, ResourceAgentState.COMMAND) async_event_result, events_received = self._start_device_failed_command_event_subscriber(p_root, 1) # move instrument directly to STREAMING self._instrument_start_autosample(instr_key, ia_client) # continue moving network to streaming self._start_resource_monitoring(recursion) # directly stop streaming in instrument self._instrument_stop_autosample(instr_key, ia_client) # stop streaming through the platform self._stop_resource_monitoring(recursion) # verify no device_failed_command events were published with self.assertRaises(Timeout): async_event_result.get(timeout=10) def test_with_instrument_directly_stopped(self): # # - network (of a platform with an instrument) is launched until COMMAND state # - instrument is directly stopped # - STOPPED resource lifecycle event from instrument when stopped should be published # - shutdown sequence of the test should complete without issues # self._set_receive_timeout() recursion = True instr_key = 'SBE37_SIM_01' p_root = self._set_up_single_platform_with_some_instruments([instr_key]) self._launch_network(p_root, recursion) i_obj = self._get_instrument(instr_key) ia_client = self._create_resource_agent_client(i_obj.instrument_device_id) # initialize the network self._ping_agent() self._initialize(recursion) self._go_active(recursion) self._run(recursion) self._assert_agent_client_state(ia_client, ResourceAgentState.COMMAND) # use associated process ID for the subscription: async_event_result, events_received = self._start_ResourceAgentLifecycleEvent_subscriber(ia_client.resource_id, InstrumentAgent.ORIGIN_TYPE, 'STOPPED') # directly stop instrument log.info("stopping instrument %r", i_obj.instrument_device_id) self._stop_instrument(i_obj) # verify publication of lifecycle event from instrument when stopped async_event_result.get(timeout=self._receive_timeout) self.assertEquals(len(events_received), 1) event_received = events_received[0] log.info("ResourceAgentLifecycleEvent received: %s", event_received) def test_with_leaf_subplatform_directly_stopped(self): # # - small network of platforms (no instruments) is launched and put in COMMAND state # - leaf sub-platform is directly stopped # - STOPPED resource lifecycle event from leaf sub-platform when stopped should be published # - shutdown sequence of the test should complete without issues # self._set_receive_timeout() recursion = True p_root = self._create_small_hierarchy() # Node1D -> MJ01C -> LJ01D self._launch_network(p_root, recursion) log.info('platforms in the launched network (%d): %s', len(self._setup_platforms), self._setup_platforms.keys()) p_obj = self._get_platform('LJ01D') pa_client = self._create_resource_agent_client(p_obj.platform_device_id) # initialize the network self._ping_agent() self._initialize(recursion) self._go_active(recursion) self._run(recursion) self._assert_agent_client_state(pa_client, ResourceAgentState.COMMAND) async_event_result, events_received = self._start_ResourceAgentLifecycleEvent_subscriber(pa_client.resource_id, PlatformAgent.ORIGIN_TYPE, 'STOPPED') # directly stop sub-platform log.info("stopping sub-platform %r", p_obj.platform_device_id) self.IMS.stop_platform_agent_instance(p_obj.platform_agent_instance_id) # verify publication of lifecycle event from sub-platform when stopped async_event_result.get(timeout=self._receive_timeout) self.assertEquals(len(events_received), 1) event_received = events_received[0] log.info("ResourceAgentLifecycleEvent received: %s", event_received) def test_with_intermediate_subplatform_directly_stopped(self): # # - network of 13 platforms (no instruments) is launched and put in COMMAND state # - one non-leaf sub-platform (LV01B) is directly stopped # - STOPPED resource lifecycle event from sub-platform when stopped should be published # - shutdown sequence of the test should complete without issues. # # NOTE: we explicitly stop the processes corresponding to the orphaned # sub-platforms of LV01B (LJ01B and MJ01B), so they don't get reported as leaked. # self._set_receive_timeout() recursion = True p_root = self._set_up_platform_hierarchy_with_some_instruments([]) self._launch_network(p_root, recursion) log.info('platforms in the launched network (%d): %s', len(self._setup_platforms), self._setup_platforms.keys()) p_obj = self._get_platform('LV01B') pa_client = self._create_resource_agent_client(p_obj.platform_device_id) self._ping_agent() self._initialize(recursion) self._go_active(recursion) self._run(recursion) self._assert_agent_client_state(pa_client, ResourceAgentState.COMMAND) async_event_result, events_received = self._start_ResourceAgentLifecycleEvent_subscriber(pa_client.resource_id, PlatformAgent.ORIGIN_TYPE, 'STOPPED') # directly stop sub-platform log.info("stopping sub-platform %r", p_obj.platform_device_id) self.IMS.stop_platform_agent_instance(p_obj.platform_agent_instance_id) # verify publication of lifecycle event from sub-platform when stopped async_event_result.get(timeout=self._receive_timeout) self.assertEquals(len(events_received), 1) event_received = events_received[0] log.info("ResourceAgentLifecycleEvent received: %s", event_received) # we know there would be two orphaned processes (corresponding to the sub-platforms of LV01B), # so, explicitly stop them here: for orphaned in ['LJ01B', 'MJ01B']: o_obj = self._get_platform(orphaned) log.info("stopping orphaned sub-platform %r platform_agent_instance_id=%r", orphaned, o_obj.platform_agent_instance_id) try: self.IMS.stop_platform_agent_instance(o_obj.platform_agent_instance_id) except Exception as ex: log.warn("Error while trying IMS.stop_platform_agent_instance(%r)", o_obj.platform_agent_instance_id, ex) def test_with_intermediate_subplatform_directly_stopped_then_restarted(self): # # Similar to test_with_intermediate_subplatform_directly_stopped but the sub-platform is then # relaunched to verify that it is "revalidated" for subsequent processing. # We can visually verify this via the publish_event_for_diagnostics utility. # The test should complete without any issues. # self._set_receive_timeout() recursion = True p_root = self._set_up_platform_hierarchy_with_some_instruments([]) self._launch_network(p_root, recursion) log.info('platforms in the launched network (%d): %s', len(self._setup_platforms), self._setup_platforms.keys()) p_obj = self._get_platform('LV01B') pa_client = self._create_resource_agent_client(p_obj.platform_device_id) self._ping_agent() self._initialize(recursion) self._go_active(recursion) self._run(recursion) self._assert_agent_client_state(pa_client, ResourceAgentState.COMMAND) async_event_result, events_received = self._start_ResourceAgentLifecycleEvent_subscriber(pa_client.resource_id, PlatformAgent.ORIGIN_TYPE, 'STOPPED') # directly stop sub-platform log.info("stopping sub-platform %r", p_obj.platform_device_id) self.IMS.stop_platform_agent_instance(p_obj.platform_agent_instance_id) # verify publication of lifecycle event from sub-platform when stopped async_event_result.get(timeout=self._receive_timeout) self.assertEquals(len(events_received), 1) event_received = events_received[0] log.info("ResourceAgentLifecycleEvent received: %s", event_received) gevent.sleep(3) publish_event_for_diagnostics() # should show the invalidated child for parent Node1B: # INFO ... ion.agents.platform.status_manager:1019 'Node1B'/RESOURCE_AGENT_STATE_COMMAND: (a7f865c34f534e60a14e5f0f8ef2fd53) status report triggered by diagnostic event: # AGGREGATE_COMMS AGGREGATE_DATA AGGREGATE_LOCATION AGGREGATE_POWER # 26215ffcf7c94260a99e9c9d103f22f9 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 0e07bc623af64a3a8f61465329451de7 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # a914714894b844a8b42724fe9208fde4 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 02d5a770fba8405c868cc8d55bbbb8d3 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # b19f89585e7c43789b60beac5ddec43c : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # a2f81525ab1e425da808191f9bbe945d : STATUS_UNKNOWN STATUS_UNKNOWN STATUS_UNKNOWN STATUS_UNKNOWN # 6ff02a90e34643fe87ecf262a33437cd : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 83b4f74ab1db4c70ae63072336083ac3 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 7639e530740a48a8b299d0d19dcf7abe : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 88b143e311514121adc544c5933f92a6 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # b1453122a5a64ac6868cfc39e12e4e50 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # c996ff0478a6449da62955859020ee50 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # aggstatus : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # rollup_status : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # # invalidated_children : ['a2f81525ab1e425da808191f9bbe945d'] gevent.sleep(3) ############################################ # relaunch the intermediate sub-platform: log.info("relaunching sub-platform 'LV01B': %r", p_obj.platform_device_id) pa_client = self._start_a_platform(p_obj) self._ping_agent(pa_client) # recursion=False because LV01B's children are already in COMMAND self._initialize(recursion=False, pa_client=pa_client) self._go_active(recursion=False, pa_client=pa_client) self._run(recursion=False, pa_client=pa_client) # wait for a bit to allow ancestors to re-validate the child, in particular for the parent Node1B: gevent.sleep(10) publish_event_for_diagnostics() # should show the child re-validated: # INFO ... ion.agents.platform.status_manager:1019 'Node1B'/RESOURCE_AGENT_STATE_COMMAND: (a7f865c34f534e60a14e5f0f8ef2fd53) status report triggered by diagnostic event: # AGGREGATE_COMMS AGGREGATE_DATA AGGREGATE_LOCATION AGGREGATE_POWER # 26215ffcf7c94260a99e9c9d103f22f9 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 0e07bc623af64a3a8f61465329451de7 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # a914714894b844a8b42724fe9208fde4 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 02d5a770fba8405c868cc8d55bbbb8d3 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # b19f89585e7c43789b60beac5ddec43c : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # a2f81525ab1e425da808191f9bbe945d : STATUS_UNKNOWN STATUS_UNKNOWN STATUS_UNKNOWN STATUS_UNKNOWN # 6ff02a90e34643fe87ecf262a33437cd : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 83b4f74ab1db4c70ae63072336083ac3 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 7639e530740a48a8b299d0d19dcf7abe : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # 88b143e311514121adc544c5933f92a6 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # b1453122a5a64ac6868cfc39e12e4e50 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # c996ff0478a6449da62955859020ee50 : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # aggstatus : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # rollup_status : STATUS_OK STATUS_OK STATUS_OK STATUS_OK # # invalidated_children : []
{ "content_hash": "55e14a57a4ef09c951c9236c702065f3", "timestamp": "", "source": "github", "line_count": 461, "max_line_length": 177, "avg_line_length": 53.780911062906725, "alnum_prop": 0.6346146089622071, "repo_name": "ooici/coi-services", "id": "3a7940c3f3e4d746357865a2b750d21760b96574", "size": "24816", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ion/agents/platform/test/test_platform_agent_robustness.py", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "C", "bytes": "403012" }, { "name": "C++", "bytes": "251803" }, { "name": "CSS", "bytes": "689" }, { "name": "Erlang", "bytes": "532" }, { "name": "JavaScript", "bytes": "11627" }, { "name": "Objective-C", "bytes": "8918" }, { "name": "Python", "bytes": "7964384" }, { "name": "Shell", "bytes": "9221" }, { "name": "nesC", "bytes": "57712131" } ], "symlink_target": "" }
{# templates/election/election_edit.html #} {% extends "template_base.html" %} {% block title %}{% if election %}{{ election.election_name }}{% else %}Create New Election{% endif %}{% endblock %} {% block content %} {% load template_filters %} <a href="{% url 'election:election_list' %}">< Back to Elections</a> <h1>{% if election %}Edit {{ election.election_name|default_if_none:"" }}{% else %} Create New Election{% endif %}</h1> <form action="{% url "election:election_edit_process" %}" method="post" class="form-horizontal"> {% csrf_token %} <input type="hidden" name="election_id" value="{% if election %}{{ election.id }}{% else %}0{% endif %}"> <input type="hidden" name="show_all_elections" value="{{ show_all_elections }}"> <input type="hidden" name="show_all_elections_this_year" value="{{ show_all_elections_this_year }}"> <div class="form-group"> <label for="election_id" class="col-sm-3 control-label">Election Name{% if election %} (ID: {{ election.id }}){% endif %}</label> <div class="col-sm-8"> <input type="text" name="election_name" id="election_id" class="form-control" value="{% if election %}{{ election.election_name }}{% endif %}" /> </div> </div> <div class="form-group"> <label for="include_in_list_for_voters_id" class="col-sm-3 control-label"></label> <div class="col-sm-8"> <input type="checkbox" name="include_in_list_for_voters" id="include_in_list_for_voters_id" value="True" {% if election.include_in_list_for_voters %}checked{% endif %} /> Show in lists of elections for voters &nbsp;&nbsp;&nbsp; <input type="checkbox" name="ignore_this_election" id="ignore_this_election_id" value="True" {% if election.ignore_this_election %}checked{% endif %} /> Ignore this election &nbsp;&nbsp;&nbsp; <input type="checkbox" name="election_preparation_finished" id="election_preparation_finished_id" value="True" {% if election.election_preparation_finished %}checked{% endif %} /> Election data import finished (Offices, Candidates, Ballots) &nbsp;&nbsp;&nbsp; <input type="checkbox" name="candidate_photos_finished" id="candidate_photos_finished_id" value="True" {% if election.candidate_photos_finished %}checked{% endif %} /> Candidate photos finished </div> </div> <div class="form-group"> <label for="google_civic_election_id_id" class="col-sm-3 control-label">Google Civic ID</label> <div class="col-sm-8"> <input type="text" name="google_civic_election_id" id="google_civic_election_id_id" class="form-control" value="{% if election %}{{ election.google_civic_election_id|default_if_none:"" }}{% endif %}" /> </div> </div> <div class="form-group"> <label for="is_national_election_id" class="col-sm-3 control-label"></label> <div class="col-sm-8"> <input type="checkbox" name="is_national_election" id="is_national_election_id" value={% if election %}{% if election.is_national_election %}True{% else %}False{% endif %}{% else %}False{% endif %} {% if election.is_national_election %}checked{% endif %} /> Is National Election </div> </div> <div class="form-group"> <label for="election_day_text_id" class="col-sm-3 control-label">Election Day <span class="no_break">(Format: "YYYY-MM-DD")</span></label> <div class="col-sm-8"> <input type="text" name="election_day_text" id="election_day_text_id" class="form-control" value="{% if election %}{{ election.election_day_text|default_if_none:"" }}{% endif %}" /> </div> </div> <div class="form-group"> <label for="state_id" class="col-sm-3 control-label">State Code</label> <div class="col-sm-8"> <input type="text" name="state_code" id="state_id" class="form-control" value="{% if election %}{{ election.state_code|default_if_none:"" }}{% endif %}" /> </div> </div> <div class="form-group"> <label for="raw_ocd_division_id_id" class="col-sm-3 control-label">OCD Division ID</label> <div class="col-sm-8"> <input type="text" name="raw_ocd_division_id" id="raw_ocd_division_id_id" class="form-control" value="{% if election %}{{ election.raw_ocd_division_id|default_if_none:"" }}{% endif %}" /> </div> </div> <div class="form-group"> <label for="ballotpedia_election_id_id" class="col-sm-3 control-label">Ballotpedia Election Id</label> <div class="col-sm-8"> {% if ballotpedia_election_list %} <table class="table"> <tr> <th></th> <th>ID</th> <th>District Name</th> <th>District Type</th> <th colspan="2">Election Type</th> </tr> {% for ballotpedia_election in ballotpedia_election_list %} <tr> <td><span style="color: darkgray">{{ forloop.counter }}</span></td> <td>{{ ballotpedia_election.ballotpedia_election_id|default_if_none:"" }}</td> <td>{{ ballotpedia_election.district_name|default_if_none:"" }}</td> <td><span class="u-no-break">{{ ballotpedia_election.district_type|default_if_none:"" }}</span></td> <td>{{ ballotpedia_election.election_type|default_if_none:"" }}</td> <td>{{ ballotpedia_election.election_description|default_if_none:"" }}</td> </tr> {% endfor %} </table> {% else %} <input type="text" name="ballotpedia_election_id" id="ballotpedia_election_id_id" class="form-control" value="{% if election %}{{ election.ballotpedia_election_id|default_if_none:"" }}{% endif %}" /> {% endif %}{# End of if ballotpedia_election_list #} </div> </div> {% if ballotpedia_election_list %} {% else %} <div class="form-group"> <label for="ballotpedia_kind_of_election_id" class="col-sm-3 control-label">Ballotpedia Kind of Election</label> <div class="col-sm-8"> <input type="text" name="ballotpedia_kind_of_election" id="ballotpedia_kind_of_election_id" class="form-control" value="{% if election %}{{ election.ballotpedia_kind_of_election|default_if_none:"" }}{% endif %}" /> </div> </div> {% endif %} <div class="form-group"> <label for="internal_notes_id" class="col-sm-3 control-label">Internal Notes about Election Data Gathering</label> <div class="col-sm-8"> <textarea name="internal_notes" class="form-control animated" id="internal_notes_id" placeholder="Status of data gathering?">{% if election %}{{ election.internal_notes|default_if_none:"" }}{% else %}{{ internal_notes|default_if_none:"" }}{% endif %}</textarea> </div> </div> <div class="form-group"> <label for="update_ballot_id" class="col-sm-3 control-label"> {% if election %} <a href="{% url 'election:election_summary' election.id %}">cancel</a> {% else %} <a href="{% url 'election:election_list' %}">cancel</a> {% endif %} </label> <div class="col-sm-8"> <input type="submit" class="btn btn-success" value="{% if election %}Update Election{% else %}Create New Election{% endif %}" /> </div> </div> </form> {% if election %} <br /> <br /> <form action="{% url "election:election_delete_process" %}" method="post" class="form-horizontal"> {% csrf_token %} <input type="hidden" name="election_id" value="{% if election %}{{ election.id }}{% else %}0{% endif %}"> <button type="submit" class="btn btn-danger">Delete Election</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <label for="confirm_delete_id"> <input type="checkbox" name="confirm_delete" id="confirm_delete_id" value="1" /> Check to confirm that you want to permanently delete this election </label> </form> {% endif %} <br /> <br /> {% endblock %}
{ "content_hash": "f9aeacdafe209655137e8e194395dee3", "timestamp": "", "source": "github", "line_count": 177, "max_line_length": 194, "avg_line_length": 45.72316384180791, "alnum_prop": 0.5959471147905597, "repo_name": "jainanisha90/WeVoteServer", "id": "ec1f425d3207c245b515425dbf47f3369ada5007", "size": "8093", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "templates/election/election_edit.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3612" }, { "name": "HTML", "bytes": "1003027" }, { "name": "Python", "bytes": "7489854" }, { "name": "Shell", "bytes": "611" } ], "symlink_target": "" }
package org.sakaiproject.mailarchive.api; import org.sakaiproject.message.api.Message; /** * <p> * MailArchiveMessage is the Interface for a Salao Mail Archive message. * </p> * <p> * The mail archive message has header fields (from, date) and a body (text). Each message also has an id, unique within the group. All fields are read only. * </p> */ public interface MailArchiveMessage extends Message { /** * A (MailArchiveMessageHeader) cover for getHeader to access the mail archive message header. * * @return The mail archive message header. */ public MailArchiveMessageHeader getMailArchiveHeader(); /** * Get the html body, as a string. * * @return The html-encoded body, as a string. */ public String getHtmlBody(); /** * Get the formatted body (either html or plain-text converted to html), as a string. * * @return The formatted body as a string. */ public String getFormattedBody(); }
{ "content_hash": "27aeb07ffd9e649542fd03ef51f3bc5b", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 157, "avg_line_length": 24.789473684210527, "alnum_prop": 0.7048832271762208, "repo_name": "eemirtekin/Sakai-10.6-TR", "id": "2b63eb45be6f9fae0615a390947a8dd74fe023f3", "size": "2090", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "mailarchive/mailarchive-api/api/src/java/org/sakaiproject/mailarchive/api/MailArchiveMessage.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ASP", "bytes": "59098" }, { "name": "Batchfile", "bytes": "6366" }, { "name": "C++", "bytes": "6402" }, { "name": "CSS", "bytes": "2616828" }, { "name": "ColdFusion", "bytes": "146057" }, { "name": "HTML", "bytes": "5982358" }, { "name": "Java", "bytes": "49585098" }, { "name": "JavaScript", "bytes": "6722774" }, { "name": "Lasso", "bytes": "26436" }, { "name": "PHP", "bytes": "223840" }, { "name": "PLSQL", "bytes": "2163243" }, { "name": "Perl", "bytes": "102776" }, { "name": "Python", "bytes": "87575" }, { "name": "Ruby", "bytes": "3606" }, { "name": "Shell", "bytes": "33041" }, { "name": "SourcePawn", "bytes": "2274" }, { "name": "XSLT", "bytes": "607759" } ], "symlink_target": "" }
using System; using System.Globalization; using System.Linq; using OneNorth.ContentAnonymizer.Areas.ContentAnonymizer.Models; using OneNorth.ContentAnonymizer.Data.Locales; using Sitecore; using Sitecore.Data; using Sitecore.Data.Items; namespace OneNorth.ContentAnonymizer.Data { public class FieldAnonymizer : IFieldAnonymizer { private static readonly IFieldAnonymizer _instance = new FieldAnonymizer(); public static IFieldAnonymizer Instance { get { return _instance; } } private readonly IAddress _address; private readonly IDate _date; private readonly IDate _dateTime; private readonly IInternet _internet; private readonly ILorem _lorem; private readonly IMedia _media; private readonly IName _name; private readonly INumber _number; private readonly IPhone _phone; private FieldAnonymizer() : this( Address.Instance, Date.Instance, Datetime.Instance, Internet.Instance, Lorem.Instance, Media.Instance, Name.Instance, Number.Instance, Phone.Instance) { } internal FieldAnonymizer( IAddress address, IDate date, IDate dateTime, IInternet internet, ILorem lorem, IMedia media, IName name, INumber number, IPhone phone) { _address = address; _date = date; _dateTime = dateTime; _internet = internet; _lorem = lorem; _media = media; _name = name; _number = number; _phone = phone; } public void AnonymizeField(FieldInfo fieldInfo, Item item, AnonymizeOptions options, ILocale locale) { var field = item.Fields[new ID(fieldInfo.Id)]; if (field == null) return; // Only anonymize fields that have an inner value. var value = field.GetValue(false, false, false, false); if (string.IsNullOrEmpty(value) && !fieldInfo.OverwriteEmptyValues) return; switch (fieldInfo.Anonymize) { case AnonymizeType.City: field.Value = _address.City(locale); break; case AnonymizeType.Clear: field.Value = ""; break; case AnonymizeType.Country: field.Value = _address.Country(locale); break; case AnonymizeType.Coordinates: field.Value = _address.Coordinates(); break; case AnonymizeType.Custom: // Perform Custom format last as it is dependent on the non-custom fields break; case AnonymizeType.Email: field.Value = _internet.Email(locale); break; case AnonymizeType.Fax: field.Value = _phone.FaxNumber(locale); break; case AnonymizeType.File: _media.File(field, item.Language, fieldInfo.Source.Path, fieldInfo.OverwriteEmptyValues); break; case AnonymizeType.FirstName: field.Value = _name.FirstName(locale, field.Value); break; case AnonymizeType.Future: field.Value = DateUtil.ToIsoDate(_date.Future()); break; case AnonymizeType.FutureDateTime: field.Value = DateUtil.ToIsoDate(_dateTime.Future()); break; case AnonymizeType.Image: _media.Image(field, item.Language, fieldInfo.Source.Path, fieldInfo.OverwriteEmptyValues); break; case AnonymizeType.Integer: field.Value = _number.Integer().ToString(CultureInfo.InvariantCulture); break; case AnonymizeType.LastName: field.Value = _name.LastName(locale, field.Value); break; case AnonymizeType.Latitude: field.Value = _address.Latitude(); break; case AnonymizeType.Longitude: field.Value = _address.Longitude(); break; case AnonymizeType.Mobile: field.Value = _phone.MobileNumber(locale); break; case AnonymizeType.Paragraph: field.Value = _lorem.Paragraph(locale); break; case AnonymizeType.Paragraphs: field.Value = _lorem.Paragraphs(locale); if (field.Type == "Rich Text") field.Value = field.Value.Replace(Environment.NewLine, "<br /><br />"); break; case AnonymizeType.Past: field.Value = DateUtil.ToIsoDate(_date.Past()); break; case AnonymizeType.PastDateTime: field.Value = DateUtil.ToIsoDate(_dateTime.Past()); break; case AnonymizeType.Phone: field.Value = _phone.PhoneNumber(locale); break; case AnonymizeType.PostalCode: field.Value = _address.PostalCode(locale); break; case AnonymizeType.Prefix: field.Value = _name.Prefix(locale); break; case AnonymizeType.Recent: field.Value = DateUtil.ToIsoDate(_date.Recent()); break; case AnonymizeType.RecentDateTime: field.Value = DateUtil.ToIsoDate(_dateTime.Recent()); break; case AnonymizeType.Replace: field.Value = _lorem.Replace(locale, field.Value); break; case AnonymizeType.Reset: field.Reset(); break; case AnonymizeType.Sentence: field.Value = _lorem.Sentence(locale); break; case AnonymizeType.Sentences: field.Value = _lorem.Sentences(locale); break; case AnonymizeType.State: field.Value = _address.State(locale); break; case AnonymizeType.Street: field.Value = _address.StreetAddress(locale); break; case AnonymizeType.Suffix: field.Value = _name.Suffix(locale); break; case AnonymizeType.Url: field.Value = _internet.Url(locale); break; case AnonymizeType.UserName: field.Value = _internet.UserName(locale); break; case AnonymizeType.Words: field.Value = _lorem.Words(locale); break; default: field.Value = options.Replacements.Aggregate(field.Value, (current, replacement) => current.Replace(replacement.Replace, replacement.With)); break; } } public void AnonymizeCustomField(FieldInfo fieldInfo, Item item) { var field = item.Fields[new ID(fieldInfo.Id)]; if (field == null) return; // Only anonymize fields that have an inner value. var fieldValue = field.GetValue(false, false, false, false); if (string.IsNullOrEmpty(fieldValue) && !fieldInfo.OverwriteEmptyValues) return; if (fieldInfo.Anonymize != AnonymizeType.Custom) return; var format = fieldInfo.Format.Format; for (var i = 0; i < fieldInfo.Format.Tokens.Count; i++) { var value = string.Empty; var tokenFieldInfo = fieldInfo.Format.Tokens[i].Field; if (tokenFieldInfo != null) { var tokenField = item.Fields[new ID(tokenFieldInfo.Id)]; if (tokenField != null) { value = tokenField.Value; if (ID.IsID(format)) { var tokenItem = item.Database.GetItem(new ID(format)); value = tokenItem.DisplayName; } } } var token = string.Format("${0}", i); format = format.Replace(token, value); } field.Value = format; } } }
{ "content_hash": "3e250954cf0789cf19f190c16c4955a9", "timestamp": "", "source": "github", "line_count": 234, "max_line_length": 160, "avg_line_length": 38.876068376068375, "alnum_prop": 0.4938990876113004, "repo_name": "onenorth/content-anonymizer", "id": "509568f3a062f61d672a88055db99de7e4127631", "size": "9099", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/OneNorth.ContentAnonymizer/Data/FieldAnonymizer.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "525812" }, { "name": "CSS", "bytes": "516" }, { "name": "JavaScript", "bytes": "149454" } ], "symlink_target": "" }
describe('Module Pattern', function() { describe('with Object Literal', function() { it('should be an object', function() { assert.isObject(myObject); }); it('should have text property', function() { var testVariable = myObject.displayText; assert.isDefined(testVariable); }); it('should have configuration object', function() { var testConfiguration = myObject.configuration; assert.isObject(testConfiguration); assert.isBoolean(testConfiguration.useCache); assert.isString(testConfiguration.language); }); it('should display text', function() { var testSayMethod = myObject.showMessage(); assert.equal(testSayMethod, 'This is a simple text to display'); }); it('should display configuration', function() { myObject.configuration = { useCache: false, language: 'en' }; var testConfigDisplay = myObject.showConfiguration(); assert.isFunction(myObject.showConfiguration); assert.equal(testConfigDisplay, 'Your caching option is disabled and your current language is EN'); }); it('should update configuration', function() { var testUpdateConfig = myObject; testUpdateConfig.updateConfiguration({ useCache: false, language: 'bg' }); assert.equal(testUpdateConfig.configuration.language, 'bg'); assert.equal(testUpdateConfig.configuration.useCache, false); }); }); });
{ "content_hash": "323c18a411261c21c7be315c48a49a76", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 111, "avg_line_length": 40.5609756097561, "alnum_prop": 0.5862898376428142, "repo_name": "KleoPetroff/javascript-design-patterns", "id": "3bc94be6da6ad6175db6b4f6919c485743dae438", "size": "1663", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "module-pattern/examples/tests/object-literal-tests.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "1126400" } ], "symlink_target": "" }
module StashEngine # File uploader to configure carrierwave class FileUploader < CarrierWave::Uploader::Base # Include RMagick or MiniMagick support: # include CarrierWave::RMagick # include CarrierWave::MiniMagick # Choose what kind of storage to use for this uploader: storage :file # storage :fog # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end # Provide a default URL as a default if there hasn't been a file uploaded: # def default_url # # For Rails 3.1+ asset pipeline compatibility: # # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # "/images/fallback/" + [version_name, "default.png"].compact.join('_') # end # Process files as they are uploaded: # process :scale => [200, 300] # # def scale(width, height) # # do something # end # Create different versions of your uploaded files: # version :thumb do # process :resize_to_fit => [50, 50] # end # Add a white list of extensions which are allowed to be uploaded. # For images you might use something like this: # def extension_white_list # %w(jpg jpeg gif png) # end # Override the filename of the uploaded files: # Avoid using model.id or version_name here, see uploader/store.rb for details. # def filename # "something.jpg" if original_filename # end end end
{ "content_hash": "5f4047c5bc8030b1309e89e0147a9723", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 114, "avg_line_length": 32.68, "alnum_prop": 0.6585067319461444, "repo_name": "CDLUC3/stash_engine", "id": "a8ecb3c78546a5f5f4a1d16015ea4741dce9ffd8", "size": "1652", "binary": false, "copies": "1", "ref": "refs/heads/development", "path": "app/uploaders/stash_engine/file_uploader.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2203718" }, { "name": "HTML", "bytes": "898777" }, { "name": "JavaScript", "bytes": "213899" }, { "name": "Ruby", "bytes": "176676" }, { "name": "Shell", "bytes": "366" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <reflection> <assemblies> <assembly name="mscorlib"> <assemblydata version="4.0.0.0" culture="" key="00000000000000000400000000000000" hash="SHA1" /> <attributes> <attribute> <type api="T:System.Runtime.CompilerServices.ExtensionAttribute" ref="true" /> </attribute> <attribute> <type api="T:System.Runtime.InteropServices.GuidAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>BED7F4EA-1A96-11d2-8F08-00A0C9A6186D</value> </argument> </attribute> <attribute> <type api="T:System.Runtime.InteropServices.ComVisibleAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>False</value> </argument> </attribute> <attribute> <type api="T:System.CLSCompliantAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> <attribute> <type api="T:System.Security.AllowPartiallyTrustedCallersAttribute" ref="true" /> </attribute> <attribute> <type api="T:System.Reflection.AssemblyTitleAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>mscorlib.dll</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyDescriptionAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>mscorlib.dll</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyDefaultAliasAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>mscorlib.dll</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyCompanyAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>Microsoft Corporation</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyProductAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>Microsoft® .NET Framework</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyCopyrightAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>© Microsoft Corporation. All rights reserved.</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyFileVersionAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>4.6.1590.0</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyInformationalVersionAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>4.6.1590.0</value> </argument> </attribute> <attribute> <type api="T:System.Resources.SatelliteContractVersionAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>4.0.0.0</value> </argument> </attribute> <attribute> <type api="T:System.Resources.NeutralResourcesLanguageAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>en-US</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyDelaySignAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblyKeyFileAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>f:\dd\tools\devdiv\EcmaPublicKey.snk</value> </argument> </attribute> <attribute> <type api="T:System.Reflection.AssemblySignatureKeyAttribute" ref="true" /> <argument> <type api="T:System.String" ref="true" /> <value>002400000c800000140100000602000000240000525341310008000001000100613399aff18ef1a2c2514a273a42d9042b72321f1757102df9ebada69923e2738406c21e5b801552ab8d200a65a235e001ac9adc25f2d811eb09496a4c6a59d4619589c69f5baf0c4179a47311d92555cd006acc8b5959f2bd6e10e360c34537a1d266da8085856583c85d81da7f3ec01ed9564c58d93d713cd0172c8e23a10f0239b80c96b07736f5d8b022542a4e74251a5f432824318b3539a5a087f8e53d2f135f9ca47f3bb2e10aff0af0849504fb7cea3ff192dc8de0edad64c68efde34c56d302ad55fd6e80f302d5efcdeae953658d3452561b5f36c542efdbdd9f888538d374cef106acf7d93a4445c3c73cd911f0571aaf3d54da12b11ddec375b3</value> </argument> <argument> <type api="T:System.String" ref="true" /> <value>a5a866e1ee186f807668209f3b11236ace5e21f117803a3143abb126dd035d7d2f876b6938aaf2ee3414d5420d753621400db44a49c486ce134300a2106adb6bdb433590fef8ad5c43cba82290dc49530effd86523d9483c00f458af46890036b0e2c61d077d7fbac467a506eba29e467a87198b053c749aa2a4d2840c784e6d</value> </argument> </attribute> </attributes> </assembly> </assemblies> <apis> <api id="N:System.Runtime.Remoting.Metadata"> <topicdata group="api" /> <apidata name="System.Runtime.Remoting.Metadata" group="namespace" /> <elements> <element api="T:System.Runtime.Remoting.Metadata.SoapOption" /> <element api="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption" /> <element api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" /> <element api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" /> <element api="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" /> <element api="T:System.Runtime.Remoting.Metadata.SoapParameterAttribute" /> <element api="T:System.Runtime.Remoting.Metadata.SoapAttribute" /> </elements> <file name="ba825742-66f4-5f15-b131-6abae3ddea22" /> </api> <api id="T:System.Runtime.Remoting.Metadata.SoapAttribute"> <topicdata group="api" /> <apidata name="SoapAttribute" group="type" subgroup="class" /> <typedata visibility="public" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapAttribute.#ctor" /> <family> <ancestors> <type api="T:System.Attribute" ref="true" /> <type api="T:System.Object" ref="true" /> </ancestors> <descendents> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" ref="true" /> <type api="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" ref="true" /> <type api="T:System.Runtime.Remoting.Metadata.SoapParameterAttribute" ref="true" /> </descendents> </family> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="P:System.Attribute.TypeId" /> <element api="M:System.Object.Finalize" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.MemberwiseClone" /> <element api="M:System.Object.ToString" /> <element api="M:System.Runtime.Remoting.Metadata.SoapAttribute.#ctor" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="F:System.Runtime.Remoting.Metadata.SoapAttribute.ProtXmlNamespace" /> <element api="F:System.Runtime.Remoting.Metadata.SoapAttribute.ReflectInfo" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> </containers> <attributes> <attribute> <type api="T:System.Runtime.InteropServices.ComVisibleAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> </attributes> <file name="e26ceb0f-b31a-bca8-86c8-c3764e13c7dc" /> </api> <api id="Methods.T:System.Runtime.Remoting.Metadata.SoapAttribute"> <topicdata name="SoapAttribute" group="list" subgroup="Methods" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapAttribute" /> <apidata name="SoapAttribute" group="type" subgroup="class" /> <typedata visibility="public" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapAttribute.#ctor" /> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="M:System.Object.Finalize" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.MemberwiseClone" /> <element api="M:System.Object.ToString" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" /> </containers> <file name="44a833e1-b079-3e9a-26ae-fef7ac325da2" /> </api> <api id="Properties.T:System.Runtime.Remoting.Metadata.SoapAttribute"> <topicdata name="SoapAttribute" group="list" subgroup="Properties" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapAttribute" /> <apidata name="SoapAttribute" group="type" subgroup="class" /> <typedata visibility="public" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapAttribute.#ctor" /> <elements> <element api="P:System.Attribute.TypeId" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" /> </containers> <file name="6968a029-9ce8-73c0-1199-a7f52d1768e7" /> </api> <api id="Fields.T:System.Runtime.Remoting.Metadata.SoapAttribute"> <topicdata name="SoapAttribute" group="list" subgroup="Fields" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapAttribute" /> <apidata name="SoapAttribute" group="type" subgroup="class" /> <typedata visibility="public" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapAttribute.#ctor" /> <elements> <element api="F:System.Runtime.Remoting.Metadata.SoapAttribute.ProtXmlNamespace" /> <element api="F:System.Runtime.Remoting.Metadata.SoapAttribute.ReflectInfo" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" /> </containers> <file name="bc0e96e6-5515-8b40-771d-5179c45dc04b" /> </api> <api id="M:System.Runtime.Remoting.Metadata.SoapAttribute.#ctor"> <topicdata group="api" /> <apidata name=".ctor" group="member" subgroup="constructor" /> <memberdata visibility="public" special="true" /> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </containers> <file name="7bb3f694-fc1f-b8e5-eea0-99981c12d531" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded"> <topicdata group="api" /> <apidata name="Embedded" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="true" /> <propertydata get="true" set="true" /> <getter name="get_Embedded" /> <setter name="set_Embedded" /> <returns> <type api="T:System.Boolean" ref="false" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </containers> <file name="da7d376f-d39a-3cde-1b8c-5f96440043d4" /> </api> <api id="F:System.Runtime.Remoting.Metadata.SoapAttribute.ProtXmlNamespace"> <topicdata group="api" /> <apidata name="ProtXmlNamespace" group="member" subgroup="field" /> <memberdata visibility="family" /> <fielddata literal="false" initonly="false" serialized="true" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </containers> <file name="86098be6-9fbd-ba07-17db-897641cf9b80" /> </api> <api id="F:System.Runtime.Remoting.Metadata.SoapAttribute.ReflectInfo"> <topicdata group="api" /> <apidata name="ReflectInfo" group="member" subgroup="field" /> <memberdata visibility="family" /> <fielddata literal="false" initonly="false" serialized="true" /> <returns> <type api="T:System.Object" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </containers> <file name="b74c660f-9cf6-ade2-7c00-edfc2554a060" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute"> <topicdata group="api" /> <apidata name="UseAttribute" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="true" /> <propertydata get="true" set="true" /> <getter name="get_UseAttribute" /> <setter name="set_UseAttribute" /> <returns> <type api="T:System.Boolean" ref="false" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </containers> <file name="6879b448-babe-08b0-13d3-608ca4851fc5" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace"> <topicdata group="api" /> <apidata name="XmlNamespace" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="true" /> <propertydata get="true" set="true" /> <getter name="get_XmlNamespace" /> <setter name="set_XmlNamespace" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </containers> <file name="a24dd400-81ad-7b49-bf55-d37a8522d1e3" /> </api> <api id="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute"> <topicdata group="api" /> <apidata name="SoapFieldAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapFieldAttribute.#ctor" /> <family> <ancestors> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> <type api="T:System.Attribute" ref="true" /> <type api="T:System.Object" ref="true" /> </ancestors> </family> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="P:System.Attribute.TypeId" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.ToString" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace" /> <element api="M:System.Runtime.Remoting.Metadata.SoapFieldAttribute.#ctor" /> <element api="M:System.Runtime.Remoting.Metadata.SoapFieldAttribute.IsInteropXmlElement" /> <element api="P:System.Runtime.Remoting.Metadata.SoapFieldAttribute.Order" /> <element api="P:System.Runtime.Remoting.Metadata.SoapFieldAttribute.XmlElementName" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> </containers> <attributes> <attribute> <type api="T:System.AttributeUsageAttribute" ref="true" /> <argument> <type api="T:System.AttributeTargets" ref="false" /> <enumValue> <field name="Field" /> </enumValue> </argument> </attribute> <attribute> <type api="T:System.Runtime.InteropServices.ComVisibleAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> </attributes> <file name="0f87535d-b854-6e95-130f-02ad473d60b9" /> </api> <api id="Methods.T:System.Runtime.Remoting.Metadata.SoapFieldAttribute"> <topicdata name="SoapFieldAttribute" group="list" subgroup="Methods" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" /> <apidata name="SoapFieldAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapFieldAttribute.#ctor" /> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.ToString" /> <element api="M:System.Runtime.Remoting.Metadata.SoapFieldAttribute.IsInteropXmlElement" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" /> </containers> <file name="d3e03d9c-0b70-ea8b-b270-a21fa63b75c0" /> </api> <api id="Properties.T:System.Runtime.Remoting.Metadata.SoapFieldAttribute"> <topicdata name="SoapFieldAttribute" group="list" subgroup="Properties" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" /> <apidata name="SoapFieldAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapFieldAttribute.#ctor" /> <elements> <element api="P:System.Attribute.TypeId" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace" /> <element api="P:System.Runtime.Remoting.Metadata.SoapFieldAttribute.Order" /> <element api="P:System.Runtime.Remoting.Metadata.SoapFieldAttribute.XmlElementName" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" /> </containers> <file name="6c192406-388f-f399-b60f-8c1882e840e1" /> </api> <api id="M:System.Runtime.Remoting.Metadata.SoapFieldAttribute.#ctor"> <topicdata group="api" /> <apidata name=".ctor" group="member" subgroup="constructor" /> <memberdata visibility="public" special="true" /> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" ref="true" /> </containers> <file name="cd4e775e-680e-d2be-bd25-59bbffe969d2" /> </api> <api id="M:System.Runtime.Remoting.Metadata.SoapFieldAttribute.IsInteropXmlElement"> <topicdata group="api" /> <apidata name="IsInteropXmlElement" group="member" subgroup="method" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <returns> <type api="T:System.Boolean" ref="false" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" ref="true" /> </containers> <file name="f2089490-6c40-13c3-93fd-86b703dd5168" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapFieldAttribute.Order"> <topicdata group="api" /> <apidata name="Order" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_Order" /> <setter name="set_Order" /> <returns> <type api="T:System.Int32" ref="false" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" ref="true" /> </containers> <file name="8237e553-f326-47c7-a11e-88fabf37798b" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapFieldAttribute.XmlElementName"> <topicdata group="api" /> <apidata name="XmlElementName" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_XmlElementName" /> <setter name="set_XmlElementName" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapFieldAttribute" ref="true" /> </containers> <file name="5a3958c7-8558-9c78-2ac8-129b7919ecd6" /> </api> <api id="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute"> <topicdata group="api" /> <apidata name="SoapMethodAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapMethodAttribute.#ctor" /> <family> <ancestors> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> <type api="T:System.Attribute" ref="true" /> <type api="T:System.Object" ref="true" /> </ancestors> </family> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="P:System.Attribute.TypeId" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.ToString" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="M:System.Runtime.Remoting.Metadata.SoapMethodAttribute.#ctor" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ResponseXmlElementName" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ResponseXmlNamespace" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ReturnXmlElementName" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.SoapAction" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.XmlNamespace" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> </containers> <attributes> <attribute> <type api="T:System.AttributeUsageAttribute" ref="true" /> <argument> <type api="T:System.AttributeTargets" ref="false" /> <enumValue> <field name="Method" /> </enumValue> </argument> </attribute> <attribute> <type api="T:System.Runtime.InteropServices.ComVisibleAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> </attributes> <file name="d12c6c16-881d-ee72-f5ef-4c01fd8b49fd" /> </api> <api id="Methods.T:System.Runtime.Remoting.Metadata.SoapMethodAttribute"> <topicdata name="SoapMethodAttribute" group="list" subgroup="Methods" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" /> <apidata name="SoapMethodAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapMethodAttribute.#ctor" /> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.ToString" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" /> </containers> <file name="e052119f-3b77-8310-a244-d4a813f63b63" /> </api> <api id="Properties.T:System.Runtime.Remoting.Metadata.SoapMethodAttribute"> <topicdata name="SoapMethodAttribute" group="list" subgroup="Properties" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" /> <apidata name="SoapMethodAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapMethodAttribute.#ctor" /> <elements> <element api="P:System.Attribute.TypeId" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ResponseXmlElementName" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ResponseXmlNamespace" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ReturnXmlElementName" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.SoapAction" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.XmlNamespace" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" /> </containers> <file name="b1b7c9d6-153f-3ae8-2708-2cacc2145bb4" /> </api> <api id="M:System.Runtime.Remoting.Metadata.SoapMethodAttribute.#ctor"> <topicdata group="api" /> <apidata name=".ctor" group="member" subgroup="constructor" /> <memberdata visibility="public" special="true" /> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" ref="true" /> </containers> <file name="5d5a4974-33a7-8a03-6c43-8c9ba843a3af" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ResponseXmlElementName"> <topicdata group="api" /> <apidata name="ResponseXmlElementName" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_ResponseXmlElementName" /> <setter name="set_ResponseXmlElementName" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" ref="true" /> </containers> <file name="623ce823-6746-7afe-ace6-3691efda708c" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ResponseXmlNamespace"> <topicdata group="api" /> <apidata name="ResponseXmlNamespace" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_ResponseXmlNamespace" /> <setter name="set_ResponseXmlNamespace" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" ref="true" /> </containers> <file name="a10f565b-32c8-97ea-947c-b7c5767560cb" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.ReturnXmlElementName"> <topicdata group="api" /> <apidata name="ReturnXmlElementName" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_ReturnXmlElementName" /> <setter name="set_ReturnXmlElementName" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" ref="true" /> </containers> <file name="808f59c2-a31c-71a9-1ef6-8bb34c3c9c13" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.SoapAction"> <topicdata group="api" /> <apidata name="SoapAction" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_SoapAction" /> <setter name="set_SoapAction" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" ref="true" /> </containers> <file name="03c0616a-88de-d1f4-2b51-70d71a90e9b1" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.UseAttribute"> <topicdata group="api" /> <apidata name="UseAttribute" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="true" /> <overrides> <member api="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute"> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </member> </overrides> <propertydata get="true" set="true" /> <getter name="get_UseAttribute" /> <setter name="set_UseAttribute" /> <returns> <type api="T:System.Boolean" ref="false" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" ref="true" /> </containers> <file name="6303e63c-9e84-ab50-0edd-e90e90593996" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapMethodAttribute.XmlNamespace"> <topicdata group="api" /> <apidata name="XmlNamespace" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="true" /> <overrides> <member api="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace"> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </member> </overrides> <propertydata get="true" set="true" /> <getter name="get_XmlNamespace" /> <setter name="set_XmlNamespace" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapMethodAttribute" ref="true" /> </containers> <file name="176eed8d-7cd0-c4d5-1db0-3265d9b2d498" /> </api> <api id="T:System.Runtime.Remoting.Metadata.SoapOption"> <topicdata group="api" /> <apidata name="SoapOption" group="type" subgroup="enumeration" /> <typedata visibility="public" sealed="true" serializable="true" /> <elements> <element api="F:System.Runtime.Remoting.Metadata.SoapOption.None" /> <element api="F:System.Runtime.Remoting.Metadata.SoapOption.AlwaysIncludeTypes" /> <element api="F:System.Runtime.Remoting.Metadata.SoapOption.XsdString" /> <element api="F:System.Runtime.Remoting.Metadata.SoapOption.EmbedAll" /> <element api="F:System.Runtime.Remoting.Metadata.SoapOption.Option1" /> <element api="F:System.Runtime.Remoting.Metadata.SoapOption.Option2" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> </containers> <attributes> <attribute> <type api="T:System.FlagsAttribute" ref="true" /> </attribute> <attribute> <type api="T:System.Runtime.InteropServices.ComVisibleAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> </attributes> <file name="1d8101e3-dc49-e552-dd53-f1c52e06a934" /> </api> <api id="F:System.Runtime.Remoting.Metadata.SoapOption.AlwaysIncludeTypes"> <topicdata group="api" notopic="" /> <apidata name="AlwaysIncludeTypes" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </returns> <value>1</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </containers> <file name="583595c3-3fea-3e43-3586-613151c6ffa2" /> </api> <api id="F:System.Runtime.Remoting.Metadata.SoapOption.EmbedAll"> <topicdata group="api" notopic="" /> <apidata name="EmbedAll" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </returns> <value>4</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </containers> <file name="1628e58d-225b-2a31-8e54-ee96b2c47b7b" /> </api> <api id="F:System.Runtime.Remoting.Metadata.SoapOption.None"> <topicdata group="api" notopic="" /> <apidata name="None" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </returns> <value>0</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </containers> <file name="322e957f-e21a-4194-06c8-543b54aa74bf" /> </api> <api id="F:System.Runtime.Remoting.Metadata.SoapOption.Option1"> <topicdata group="api" notopic="" /> <apidata name="Option1" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </returns> <value>8</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </containers> <file name="c6ce45c9-df8c-f073-7a21-857d2f4cdef7" /> </api> <api id="F:System.Runtime.Remoting.Metadata.SoapOption.Option2"> <topicdata group="api" notopic="" /> <apidata name="Option2" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </returns> <value>16</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </containers> <file name="41f8aa12-a824-62a2-e40e-34a28ddbdbdb" /> </api> <api id="F:System.Runtime.Remoting.Metadata.SoapOption.XsdString"> <topicdata group="api" notopic="" /> <apidata name="XsdString" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </returns> <value>2</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </containers> <file name="0c10aa78-106c-f43e-8be0-7ee4899c80a0" /> </api> <api id="T:System.Runtime.Remoting.Metadata.SoapParameterAttribute"> <topicdata group="api" /> <apidata name="SoapParameterAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapParameterAttribute.#ctor" /> <family> <ancestors> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> <type api="T:System.Attribute" ref="true" /> <type api="T:System.Object" ref="true" /> </ancestors> </family> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="P:System.Attribute.TypeId" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.ToString" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace" /> <element api="M:System.Runtime.Remoting.Metadata.SoapParameterAttribute.#ctor" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> </containers> <attributes> <attribute> <type api="T:System.AttributeUsageAttribute" ref="true" /> <argument> <type api="T:System.AttributeTargets" ref="false" /> <enumValue> <field name="Parameter" /> </enumValue> </argument> </attribute> <attribute> <type api="T:System.Runtime.InteropServices.ComVisibleAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> </attributes> <file name="c5b60ced-570f-91a6-8ed6-d152594d01e5" /> </api> <api id="Methods.T:System.Runtime.Remoting.Metadata.SoapParameterAttribute"> <topicdata name="SoapParameterAttribute" group="list" subgroup="Methods" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapParameterAttribute" /> <apidata name="SoapParameterAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapParameterAttribute.#ctor" /> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.ToString" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapParameterAttribute" /> </containers> <file name="9307cb21-c033-6840-b8f7-46d69defc023" /> </api> <api id="Properties.T:System.Runtime.Remoting.Metadata.SoapParameterAttribute"> <topicdata name="SoapParameterAttribute" group="list" subgroup="Properties" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapParameterAttribute" /> <apidata name="SoapParameterAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapParameterAttribute.#ctor" /> <elements> <element api="P:System.Attribute.TypeId" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapParameterAttribute" /> </containers> <file name="957c662e-7f4e-c164-2bae-d2907c21042c" /> </api> <api id="M:System.Runtime.Remoting.Metadata.SoapParameterAttribute.#ctor"> <topicdata group="api" /> <apidata name=".ctor" group="member" subgroup="constructor" /> <memberdata visibility="public" special="true" /> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapParameterAttribute" ref="true" /> </containers> <file name="ed91f7f6-1ae4-2cc8-ea64-84cf1be46e2e" /> </api> <api id="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute"> <topicdata group="api" /> <apidata name="SoapTypeAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapTypeAttribute.#ctor" /> <family> <ancestors> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> <type api="T:System.Attribute" ref="true" /> <type api="T:System.Object" ref="true" /> </ancestors> </family> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="P:System.Attribute.TypeId" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.ToString" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="M:System.Runtime.Remoting.Metadata.SoapTypeAttribute.#ctor" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.SoapOptions" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlElementName" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlFieldOrder" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlNamespace" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlTypeName" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlTypeNamespace" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> </containers> <attributes> <attribute> <type api="T:System.AttributeUsageAttribute" ref="true" /> <argument> <type api="T:System.AttributeTargets" ref="false" /> <enumValue> <field name="Class" /> <field name="Struct" /> <field name="Enum" /> <field name="Interface" /> </enumValue> </argument> </attribute> <attribute> <type api="T:System.Runtime.InteropServices.ComVisibleAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> </attributes> <file name="805953ee-01de-cf93-d844-b390bf689a07" /> </api> <api id="Methods.T:System.Runtime.Remoting.Metadata.SoapTypeAttribute"> <topicdata name="SoapTypeAttribute" group="list" subgroup="Methods" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" /> <apidata name="SoapTypeAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapTypeAttribute.#ctor" /> <elements> <element api="M:System.Attribute.Equals(System.Object)" /> <element api="M:System.Attribute.GetHashCode" /> <element api="M:System.Attribute.IsDefaultAttribute" /> <element api="M:System.Attribute.Match(System.Object)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetIDsOfNames(System.Guid@,System.IntPtr,System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfo(System.UInt32,System.UInt32,System.IntPtr)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#GetTypeInfoCount(System.UInt32@)" /> <element api="M:System.Attribute.System#Runtime#InteropServices#_Attribute#Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" /> <element api="M:System.Object.GetType" /> <element api="M:System.Object.ToString" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" /> </containers> <file name="d7406fdb-f794-4a10-995b-2241e1ea1af1" /> </api> <api id="Properties.T:System.Runtime.Remoting.Metadata.SoapTypeAttribute"> <topicdata name="SoapTypeAttribute" group="list" subgroup="Properties" typeTopicId="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" /> <apidata name="SoapTypeAttribute" group="type" subgroup="class" /> <typedata visibility="public" sealed="true" serializable="false" defaultConstructor="M:System.Runtime.Remoting.Metadata.SoapTypeAttribute.#ctor" /> <elements> <element api="P:System.Attribute.TypeId" /> <element api="P:System.Runtime.Remoting.Metadata.SoapAttribute.Embedded" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.SoapOptions" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.UseAttribute" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlElementName" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlFieldOrder" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlNamespace" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlTypeName" /> <element api="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlTypeNamespace" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" /> </containers> <file name="62c3c812-a13b-da92-1fe3-d77ce4fe10f5" /> </api> <api id="M:System.Runtime.Remoting.Metadata.SoapTypeAttribute.#ctor"> <topicdata group="api" /> <apidata name=".ctor" group="member" subgroup="constructor" /> <memberdata visibility="public" special="true" /> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> </containers> <file name="f418f8b7-2675-5ee8-d72c-c991e99154bb" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.SoapOptions"> <topicdata group="api" /> <apidata name="SoapOptions" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_SoapOptions" /> <setter name="set_SoapOptions" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.SoapOption" ref="false" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> </containers> <file name="65cdc29f-6384-39c7-165c-bd3b2a5b1354" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.UseAttribute"> <topicdata group="api" /> <apidata name="UseAttribute" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="true" /> <overrides> <member api="P:System.Runtime.Remoting.Metadata.SoapAttribute.UseAttribute"> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </member> </overrides> <propertydata get="true" set="true" /> <getter name="get_UseAttribute" /> <setter name="set_UseAttribute" /> <returns> <type api="T:System.Boolean" ref="false" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> </containers> <file name="ab1b288f-dbc6-8e42-1bb5-679c48d0b44e" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlElementName"> <topicdata group="api" /> <apidata name="XmlElementName" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_XmlElementName" /> <setter name="set_XmlElementName" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> </containers> <file name="7249ab34-7091-b9de-1dc0-8d3e284afc15" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlFieldOrder"> <topicdata group="api" /> <apidata name="XmlFieldOrder" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_XmlFieldOrder" /> <setter name="set_XmlFieldOrder" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption" ref="false" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> </containers> <file name="07bcdfb5-3db2-3da8-cee5-5a8b0cbc085a" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlNamespace"> <topicdata group="api" /> <apidata name="XmlNamespace" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="true" /> <overrides> <member api="P:System.Runtime.Remoting.Metadata.SoapAttribute.XmlNamespace"> <type api="T:System.Runtime.Remoting.Metadata.SoapAttribute" ref="true" /> </member> </overrides> <propertydata get="true" set="true" /> <getter name="get_XmlNamespace" /> <setter name="set_XmlNamespace" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> </containers> <file name="36612b68-dd73-c7a2-4df6-b162e14dc6a2" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlTypeName"> <topicdata group="api" /> <apidata name="XmlTypeName" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_XmlTypeName" /> <setter name="set_XmlTypeName" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> </containers> <file name="2275b016-a795-5b8b-5f0a-892a281376c1" /> </api> <api id="P:System.Runtime.Remoting.Metadata.SoapTypeAttribute.XmlTypeNamespace"> <topicdata group="api" /> <apidata name="XmlTypeNamespace" group="member" subgroup="property" /> <memberdata visibility="public" /> <proceduredata virtual="false" /> <propertydata get="true" set="true" /> <getter name="get_XmlTypeNamespace" /> <setter name="set_XmlTypeNamespace" /> <returns> <type api="T:System.String" ref="true" /> </returns> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.SoapTypeAttribute" ref="true" /> </containers> <file name="24897d93-3894-762d-6327-c69feabd0a27" /> </api> <api id="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption"> <topicdata group="api" /> <apidata name="XmlFieldOrderOption" group="type" subgroup="enumeration" /> <typedata visibility="public" sealed="true" serializable="true" /> <elements> <element api="F:System.Runtime.Remoting.Metadata.XmlFieldOrderOption.All" /> <element api="F:System.Runtime.Remoting.Metadata.XmlFieldOrderOption.Sequence" /> <element api="F:System.Runtime.Remoting.Metadata.XmlFieldOrderOption.Choice" /> </elements> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> </containers> <attributes> <attribute> <type api="T:System.Runtime.InteropServices.ComVisibleAttribute" ref="true" /> <argument> <type api="T:System.Boolean" ref="false" /> <value>True</value> </argument> </attribute> </attributes> <file name="ac7d4c58-f7d4-c7c2-d980-1d85ed3efc66" /> </api> <api id="F:System.Runtime.Remoting.Metadata.XmlFieldOrderOption.All"> <topicdata group="api" notopic="" /> <apidata name="All" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption" ref="false" /> </returns> <value>0</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption" ref="false" /> </containers> <file name="339bd6a7-d5f7-0ac3-8897-503817ae3356" /> </api> <api id="F:System.Runtime.Remoting.Metadata.XmlFieldOrderOption.Choice"> <topicdata group="api" notopic="" /> <apidata name="Choice" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption" ref="false" /> </returns> <value>2</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption" ref="false" /> </containers> <file name="a15e378b-29d2-0917-1f38-c535011d4dec" /> </api> <api id="F:System.Runtime.Remoting.Metadata.XmlFieldOrderOption.Sequence"> <topicdata group="api" notopic="" /> <apidata name="Sequence" group="member" subgroup="field" /> <memberdata visibility="public" static="true" /> <fielddata literal="true" initonly="false" serialized="true" /> <returns> <type api="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption" ref="false" /> </returns> <value>1</value> <containers> <library assembly="mscorlib" module="mscorlib" kind="DynamicallyLinkedLibrary"> <assemblydata version="4.6.1590.0" /> </library> <namespace api="N:System.Runtime.Remoting.Metadata" /> <type api="T:System.Runtime.Remoting.Metadata.XmlFieldOrderOption" ref="false" /> </containers> <file name="b00a7143-605b-7b6c-c8b3-9bf03c0ab3d6" /> </api> </apis> </reflection>
{ "content_hash": "72d5f30441993d5db5e629f30eb8c642", "timestamp": "", "source": "github", "line_count": 1400, "max_line_length": 603, "avg_line_length": 52.65428571428571, "alnum_prop": 0.6595854359976124, "repo_name": "MachineCognitis/C.math.NET", "id": "feebabdb938710fe645583f74666c34d27b049c3", "size": "73720", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "packages/EWSoftware.SHFB.NETFramework.4.6.2/tools/Data/.NETFramework/System.Runtime.Remoting.Metadata.xml", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "248274" }, { "name": "Smalltalk", "bytes": "88048" } ], "symlink_target": "" }
<?php /** * Auto generated from LocalStorageProtocol.proto at 2015-09-10 23:19:03. * * textsecure package */ /** * ChainKey message embedded in Chain/SessionStructure message. */ class Textsecure_SessionStructure_Chain_ChainKey extends \ProtobufMessage { /* Field index constants */ const INDEX = 1; const KEY = 2; /* @var array Field descriptors */ protected static $fields = [ self::INDEX => [ 'name' => 'index', 'required' => false, 'type' => 5, ], self::KEY => [ 'name' => 'key', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::INDEX] = null; $this->values[self::KEY] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'index' property. * * @param int $value Property value * * @return null */ public function setIndex($value) { return $this->set(self::INDEX, $value); } /** * Returns value of 'index' property. * * @return int */ public function getIndex() { return $this->get(self::INDEX); } /** * Sets value of 'key' property. * * @param string $value Property value * * @return null */ public function setKey($value) { return $this->set(self::KEY, $value); } /** * Returns value of 'key' property. * * @return string */ public function getKey() { return $this->get(self::KEY); } } /** * MessageKey message embedded in Chain/SessionStructure message. */ class Textsecure_SessionStructure_Chain_MessageKey extends \ProtobufMessage { /* Field index constants */ const INDEX = 1; const CIPHERKEY = 2; const MACKEY = 3; const IV = 4; /* @var array Field descriptors */ protected static $fields = [ self::INDEX => [ 'name' => 'index', 'required' => false, 'type' => 5, ], self::CIPHERKEY => [ 'name' => 'cipherKey', 'required' => false, 'type' => 7, ], self::MACKEY => [ 'name' => 'macKey', 'required' => false, 'type' => 7, ], self::IV => [ 'name' => 'iv', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::INDEX] = null; $this->values[self::CIPHERKEY] = null; $this->values[self::MACKEY] = null; $this->values[self::IV] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'index' property. * * @param int $value Property value * * @return null */ public function setIndex($value) { return $this->set(self::INDEX, $value); } /** * Returns value of 'index' property. * * @return int */ public function getIndex() { return $this->get(self::INDEX); } /** * Sets value of 'cipherKey' property. * * @param string $value Property value * * @return null */ public function setCipherKey($value) { return $this->set(self::CIPHERKEY, $value); } /** * Returns value of 'cipherKey' property. * * @return string */ public function getCipherKey() { return $this->get(self::CIPHERKEY); } /** * Sets value of 'macKey' property. * * @param string $value Property value * * @return null */ public function setMacKey($value) { return $this->set(self::MACKEY, $value); } /** * Returns value of 'macKey' property. * * @return string */ public function getMacKey() { return $this->get(self::MACKEY); } /** * Sets value of 'iv' property. * * @param string $value Property value * * @return null */ public function setIv($value) { return $this->set(self::IV, $value); } /** * Returns value of 'iv' property. * * @return string */ public function getIv() { return $this->get(self::IV); } } /** * Chain message embedded in SessionStructure message. */ class Textsecure_SessionStructure_Chain extends \ProtobufMessage { /* Field index constants */ const SENDERRATCHETKEY = 1; const SENDERRATCHETKEYPRIVATE = 2; const CHAINKEY = 3; const MESSAGEKEYS = 4; /* @var array Field descriptors */ protected static $fields = [ self::SENDERRATCHETKEY => [ 'name' => 'senderRatchetKey', 'required' => false, 'type' => 7, ], self::SENDERRATCHETKEYPRIVATE => [ 'name' => 'senderRatchetKeyPrivate', 'required' => false, 'type' => 7, ], self::CHAINKEY => [ 'name' => 'chainKey', 'required' => false, 'type' => 'Textsecure_SessionStructure_Chain_ChainKey', ], self::MESSAGEKEYS => [ 'name' => 'messageKeys', 'repeated' => true, 'type' => 'Textsecure_SessionStructure_Chain_MessageKey', ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::SENDERRATCHETKEY] = null; $this->values[self::SENDERRATCHETKEYPRIVATE] = null; $this->values[self::CHAINKEY] = null; $this->values[self::MESSAGEKEYS] = []; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'senderRatchetKey' property. * * @param string $value Property value * * @return null */ public function setSenderRatchetKey($value) { return $this->set(self::SENDERRATCHETKEY, $value); } /** * Returns value of 'senderRatchetKey' property. * * @return string */ public function getSenderRatchetKey() { return $this->get(self::SENDERRATCHETKEY); } /** * Sets value of 'senderRatchetKeyPrivate' property. * * @param string $value Property value * * @return null */ public function setSenderRatchetKeyPrivate($value) { return $this->set(self::SENDERRATCHETKEYPRIVATE, $value); } /** * Returns value of 'senderRatchetKeyPrivate' property. * * @return string */ public function getSenderRatchetKeyPrivate() { return $this->get(self::SENDERRATCHETKEYPRIVATE); } /** * Sets value of 'chainKey' property. * * @param Textsecure_SessionStructure_Chain_ChainKey $value Property value * * @return null */ public function setChainKey(Textsecure_SessionStructure_Chain_ChainKey $value) { return $this->set(self::CHAINKEY, $value); } /** * Returns value of 'chainKey' property. * * @return Textsecure_SessionStructure_Chain_ChainKey */ public function getChainKey() { return $this->get(self::CHAINKEY); } /** * Appends value to 'messageKeys' list. * * @param Textsecure_SessionStructure_Chain_MessageKey $value Value to append * * @return null */ public function appendMessageKeys(Textsecure_SessionStructure_Chain_MessageKey $value) { return $this->append(self::MESSAGEKEYS, $value); } /** * Clears 'messageKeys' list. * * @return null */ public function clearMessageKeys() { return $this->clear(self::MESSAGEKEYS); } /** * Returns 'messageKeys' list. * * @return Textsecure_SessionStructure_Chain_MessageKey[] */ public function getMessageKeys() { return $this->get(self::MESSAGEKEYS); } /** * Returns 'messageKeys' iterator. * * @return ArrayIterator */ public function getMessageKeysIterator() { return new \ArrayIterator($this->get(self::MESSAGEKEYS)); } /** * Returns element from 'messageKeys' list at given offset. * * @param int $offset Position in list * * @return Textsecure_SessionStructure_Chain_MessageKey */ public function getMessageKeysAt($offset) { return $this->get(self::MESSAGEKEYS, $offset); } /** * Returns count of 'messageKeys' list. * * @return int */ public function getMessageKeysCount() { return $this->count(self::MESSAGEKEYS); } } /** * PendingKeyExchange message embedded in SessionStructure message. */ class Textsecure_SessionStructure_PendingKeyExchange extends \ProtobufMessage { /* Field index constants */ const SEQUENCE = 1; const LOCALBASEKEY = 2; const LOCALBASEKEYPRIVATE = 3; const LOCALRATCHETKEY = 4; const LOCALRATCHETKEYPRIVATE = 5; const LOCALIDENTITYKEY = 7; const LOCALIDENTITYKEYPRIVATE = 8; /* @var array Field descriptors */ protected static $fields = [ self::SEQUENCE => [ 'name' => 'sequence', 'required' => false, 'type' => 5, ], self::LOCALBASEKEY => [ 'name' => 'localBaseKey', 'required' => false, 'type' => 7, ], self::LOCALBASEKEYPRIVATE => [ 'name' => 'localBaseKeyPrivate', 'required' => false, 'type' => 7, ], self::LOCALRATCHETKEY => [ 'name' => 'localRatchetKey', 'required' => false, 'type' => 7, ], self::LOCALRATCHETKEYPRIVATE => [ 'name' => 'localRatchetKeyPrivate', 'required' => false, 'type' => 7, ], self::LOCALIDENTITYKEY => [ 'name' => 'localIdentityKey', 'required' => false, 'type' => 7, ], self::LOCALIDENTITYKEYPRIVATE => [ 'name' => 'localIdentityKeyPrivate', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::SEQUENCE] = null; $this->values[self::LOCALBASEKEY] = null; $this->values[self::LOCALBASEKEYPRIVATE] = null; $this->values[self::LOCALRATCHETKEY] = null; $this->values[self::LOCALRATCHETKEYPRIVATE] = null; $this->values[self::LOCALIDENTITYKEY] = null; $this->values[self::LOCALIDENTITYKEYPRIVATE] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'sequence' property. * * @param int $value Property value * * @return null */ public function setSequence($value) { return $this->set(self::SEQUENCE, $value); } /** * Returns value of 'sequence' property. * * @return int */ public function getSequence() { return $this->get(self::SEQUENCE); } /** * Sets value of 'localBaseKey' property. * * @param string $value Property value * * @return null */ public function setLocalBaseKey($value) { return $this->set(self::LOCALBASEKEY, $value); } /** * Returns value of 'localBaseKey' property. * * @return string */ public function getLocalBaseKey() { return $this->get(self::LOCALBASEKEY); } /** * Sets value of 'localBaseKeyPrivate' property. * * @param string $value Property value * * @return null */ public function setLocalBaseKeyPrivate($value) { return $this->set(self::LOCALBASEKEYPRIVATE, $value); } /** * Returns value of 'localBaseKeyPrivate' property. * * @return string */ public function getLocalBaseKeyPrivate() { return $this->get(self::LOCALBASEKEYPRIVATE); } /** * Sets value of 'localRatchetKey' property. * * @param string $value Property value * * @return null */ public function setLocalRatchetKey($value) { return $this->set(self::LOCALRATCHETKEY, $value); } /** * Returns value of 'localRatchetKey' property. * * @return string */ public function getLocalRatchetKey() { return $this->get(self::LOCALRATCHETKEY); } /** * Sets value of 'localRatchetKeyPrivate' property. * * @param string $value Property value * * @return null */ public function setLocalRatchetKeyPrivate($value) { return $this->set(self::LOCALRATCHETKEYPRIVATE, $value); } /** * Returns value of 'localRatchetKeyPrivate' property. * * @return string */ public function getLocalRatchetKeyPrivate() { return $this->get(self::LOCALRATCHETKEYPRIVATE); } /** * Sets value of 'localIdentityKey' property. * * @param string $value Property value * * @return null */ public function setLocalIdentityKey($value) { return $this->set(self::LOCALIDENTITYKEY, $value); } /** * Returns value of 'localIdentityKey' property. * * @return string */ public function getLocalIdentityKey() { return $this->get(self::LOCALIDENTITYKEY); } /** * Sets value of 'localIdentityKeyPrivate' property. * * @param string $value Property value * * @return null */ public function setLocalIdentityKeyPrivate($value) { return $this->set(self::LOCALIDENTITYKEYPRIVATE, $value); } /** * Returns value of 'localIdentityKeyPrivate' property. * * @return string */ public function getLocalIdentityKeyPrivate() { return $this->get(self::LOCALIDENTITYKEYPRIVATE); } } /** * PendingPreKey message embedded in SessionStructure message. */ class Textsecure_SessionStructure_PendingPreKey extends \ProtobufMessage { /* Field index constants */ const PREKEYID = 1; const SIGNEDPREKEYID = 3; const BASEKEY = 2; /* @var array Field descriptors */ protected static $fields = [ self::PREKEYID => [ 'name' => 'preKeyId', 'required' => false, 'type' => 5, ], self::SIGNEDPREKEYID => [ 'name' => 'signedPreKeyId', 'required' => false, 'type' => 5, ], self::BASEKEY => [ 'name' => 'baseKey', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::PREKEYID] = null; $this->values[self::SIGNEDPREKEYID] = null; $this->values[self::BASEKEY] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'preKeyId' property. * * @param int $value Property value * * @return null */ public function setPreKeyId($value) { return $this->set(self::PREKEYID, $value); } /** * Returns value of 'preKeyId' property. * * @return int */ public function getPreKeyId() { return $this->get(self::PREKEYID); } /** * Sets value of 'signedPreKeyId' property. * * @param int $value Property value * * @return null */ public function setSignedPreKeyId($value) { return $this->set(self::SIGNEDPREKEYID, $value); } /** * Returns value of 'signedPreKeyId' property. * * @return int */ public function getSignedPreKeyId() { return $this->get(self::SIGNEDPREKEYID); } /** * Sets value of 'baseKey' property. * * @param string $value Property value * * @return null */ public function setBaseKey($value) { return $this->set(self::BASEKEY, $value); } /** * Returns value of 'baseKey' property. * * @return string */ public function getBaseKey() { return $this->get(self::BASEKEY); } } /** * SessionStructure message. */ class Textsecure_SessionStructure extends \ProtobufMessage { /* Field index constants */ const SESSIONVERSION = 1; const LOCALIDENTITYPUBLIC = 2; const REMOTEIDENTITYPUBLIC = 3; const ROOTKEY = 4; const PREVIOUSCOUNTER = 5; const SENDERCHAIN = 6; const RECEIVERCHAINS = 7; const PENDINGKEYEXCHANGE = 8; const PENDINGPREKEY = 9; const REMOTEREGISTRATIONID = 10; const LOCALREGISTRATIONID = 11; const NEEDSREFRESH = 12; const ALICEBASEKEY = 13; /* @var array Field descriptors */ protected static $fields = [ self::SESSIONVERSION => [ 'name' => 'sessionVersion', 'required' => false, 'type' => 5, ], self::LOCALIDENTITYPUBLIC => [ 'name' => 'localIdentityPublic', 'required' => false, 'type' => 7, ], self::REMOTEIDENTITYPUBLIC => [ 'name' => 'remoteIdentityPublic', 'required' => false, 'type' => 7, ], self::ROOTKEY => [ 'name' => 'rootKey', 'required' => false, 'type' => 7, ], self::PREVIOUSCOUNTER => [ 'name' => 'previousCounter', 'required' => false, 'type' => 5, ], self::SENDERCHAIN => [ 'name' => 'senderChain', 'required' => false, 'type' => 'Textsecure_SessionStructure_Chain', ], self::RECEIVERCHAINS => [ 'name' => 'receiverChains', 'repeated' => true, 'type' => 'Textsecure_SessionStructure_Chain', ], self::PENDINGKEYEXCHANGE => [ 'name' => 'pendingKeyExchange', 'required' => false, 'type' => 'Textsecure_SessionStructure_PendingKeyExchange', ], self::PENDINGPREKEY => [ 'name' => 'pendingPreKey', 'required' => false, 'type' => 'Textsecure_SessionStructure_PendingPreKey', ], self::REMOTEREGISTRATIONID => [ 'name' => 'remoteRegistrationId', 'required' => false, 'type' => 5, ], self::LOCALREGISTRATIONID => [ 'name' => 'localRegistrationId', 'required' => false, 'type' => 5, ], self::NEEDSREFRESH => [ 'name' => 'needsRefresh', 'required' => false, 'type' => 8, ], self::ALICEBASEKEY => [ 'name' => 'aliceBaseKey', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::SESSIONVERSION] = null; $this->values[self::LOCALIDENTITYPUBLIC] = null; $this->values[self::REMOTEIDENTITYPUBLIC] = null; $this->values[self::ROOTKEY] = null; $this->values[self::PREVIOUSCOUNTER] = null; $this->values[self::SENDERCHAIN] = null; $this->values[self::RECEIVERCHAINS] = []; $this->values[self::PENDINGKEYEXCHANGE] = null; $this->values[self::PENDINGPREKEY] = null; $this->values[self::REMOTEREGISTRATIONID] = null; $this->values[self::LOCALREGISTRATIONID] = null; $this->values[self::NEEDSREFRESH] = null; $this->values[self::ALICEBASEKEY] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'sessionVersion' property. * * @param int $value Property value * * @return null */ public function setSessionVersion($value) { return $this->set(self::SESSIONVERSION, $value); } /** * Returns value of 'sessionVersion' property. * * @return int */ public function getSessionVersion() { return $this->get(self::SESSIONVERSION); } /** * Sets value of 'localIdentityPublic' property. * * @param string $value Property value * * @return null */ public function setLocalIdentityPublic($value) { return $this->set(self::LOCALIDENTITYPUBLIC, $value); } /** * Returns value of 'localIdentityPublic' property. * * @return string */ public function getLocalIdentityPublic() { return $this->get(self::LOCALIDENTITYPUBLIC); } /** * Sets value of 'remoteIdentityPublic' property. * * @param string $value Property value * * @return null */ public function setRemoteIdentityPublic($value) { return $this->set(self::REMOTEIDENTITYPUBLIC, $value); } /** * Returns value of 'remoteIdentityPublic' property. * * @return string */ public function getRemoteIdentityPublic() { return $this->get(self::REMOTEIDENTITYPUBLIC); } /** * Sets value of 'rootKey' property. * * @param string $value Property value * * @return null */ public function setRootKey($value) { return $this->set(self::ROOTKEY, $value); } /** * Returns value of 'rootKey' property. * * @return string */ public function getRootKey() { return $this->get(self::ROOTKEY); } /** * Sets value of 'previousCounter' property. * * @param int $value Property value * * @return null */ public function setPreviousCounter($value) { return $this->set(self::PREVIOUSCOUNTER, $value); } /** * Returns value of 'previousCounter' property. * * @return int */ public function getPreviousCounter() { return $this->get(self::PREVIOUSCOUNTER); } /** * Sets value of 'senderChain' property. * * @param Textsecure_SessionStructure_Chain $value Property value * * @return null */ public function setSenderChain(Textsecure_SessionStructure_Chain $value) { return $this->set(self::SENDERCHAIN, $value); } /** * Returns value of 'senderChain' property. * * @return Textsecure_SessionStructure_Chain */ public function getSenderChain() { return $this->get(self::SENDERCHAIN); } /** * Appends value to 'receiverChains' list. * * @param Textsecure_SessionStructure_Chain $value Value to append * * @return null */ public function appendReceiverChains(Textsecure_SessionStructure_Chain $value) { return $this->append(self::RECEIVERCHAINS, $value); } /** * Clears 'receiverChains' list. * * @return null */ public function clearReceiverChains() { return $this->clear(self::RECEIVERCHAINS); } /** * Returns 'receiverChains' list. * * @return Textsecure_SessionStructure_Chain[] */ public function getReceiverChains() { return $this->get(self::RECEIVERCHAINS); } /** * Returns 'receiverChains' iterator. * * @return ArrayIterator */ public function getReceiverChainsIterator() { return new \ArrayIterator($this->get(self::RECEIVERCHAINS)); } /** * Returns element from 'receiverChains' list at given offset. * * @param int $offset Position in list * * @return Textsecure_SessionStructure_Chain */ public function getReceiverChainsAt($offset) { return $this->get(self::RECEIVERCHAINS, $offset); } /** * Returns count of 'receiverChains' list. * * @return int */ public function getReceiverChainsCount() { return $this->count(self::RECEIVERCHAINS); } /** * Sets value of 'pendingKeyExchange' property. * * @param Textsecure_SessionStructure_PendingKeyExchange $value Property value * * @return null */ public function setPendingKeyExchange(Textsecure_SessionStructure_PendingKeyExchange $value) { return $this->set(self::PENDINGKEYEXCHANGE, $value); } /** * Returns value of 'pendingKeyExchange' property. * * @return Textsecure_SessionStructure_PendingKeyExchange */ public function getPendingKeyExchange() { return $this->get(self::PENDINGKEYEXCHANGE); } /** * Sets value of 'pendingPreKey' property. * * @param Textsecure_SessionStructure_PendingPreKey $value Property value * * @return null */ public function setPendingPreKey(Textsecure_SessionStructure_PendingPreKey $value) { return $this->set(self::PENDINGPREKEY, $value); } /** * Returns value of 'pendingPreKey' property. * * @return Textsecure_SessionStructure_PendingPreKey */ public function getPendingPreKey() { return $this->get(self::PENDINGPREKEY); } public function clearPendingPreKey() { $this->values[self::PENDINGPREKEY] = null; } /** * Sets value of 'remoteRegistrationId' property. * * @param int $value Property value * * @return null */ public function setRemoteRegistrationId($value) { return $this->set(self::REMOTEREGISTRATIONID, $value); } /** * Returns value of 'remoteRegistrationId' property. * * @return int */ public function getRemoteRegistrationId() { return $this->get(self::REMOTEREGISTRATIONID); } /** * Sets value of 'localRegistrationId' property. * * @param int $value Property value * * @return null */ public function setLocalRegistrationId($value) { return $this->set(self::LOCALREGISTRATIONID, $value); } /** * Returns value of 'localRegistrationId' property. * * @return int */ public function getLocalRegistrationId() { return $this->get(self::LOCALREGISTRATIONID); } /** * Sets value of 'needsRefresh' property. * * @param bool $value Property value * * @return null */ public function setNeedsRefresh($value) { return $this->set(self::NEEDSREFRESH, $value); } /** * Returns value of 'needsRefresh' property. * * @return bool */ public function getNeedsRefresh() { return $this->get(self::NEEDSREFRESH); } /** * Sets value of 'aliceBaseKey' property. * * @param string $value Property value * * @return null */ public function setAliceBaseKey($value) { return $this->set(self::ALICEBASEKEY, $value); } /** * Returns value of 'aliceBaseKey' property. * * @return string */ public function getAliceBaseKey() { return $this->get(self::ALICEBASEKEY); } } /** * RecordStructure message. */ class Textsecure_RecordStructure extends \ProtobufMessage { /* Field index constants */ const CURRENTSESSION = 1; const PREVIOUSSESSIONS = 2; /* @var array Field descriptors */ protected static $fields = [ self::CURRENTSESSION => [ 'name' => 'currentSession', 'required' => false, 'type' => 'Textsecure_SessionStructure', ], self::PREVIOUSSESSIONS => [ 'name' => 'previousSessions', 'repeated' => true, 'type' => 'Textsecure_SessionStructure', ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::CURRENTSESSION] = null; $this->values[self::PREVIOUSSESSIONS] = []; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'currentSession' property. * * @param Textsecure_SessionStructure $value Property value * * @return null */ public function setCurrentSession(Textsecure_SessionStructure $value) { return $this->set(self::CURRENTSESSION, $value); } /** * Returns value of 'currentSession' property. * * @return Textsecure_SessionStructure */ public function getCurrentSession() { return $this->get(self::CURRENTSESSION); } /** * Appends value to 'previousSessions' list. * * @param Textsecure_SessionStructure $value Value to append * * @return null */ public function appendPreviousSessions(Textsecure_SessionStructure $value) { return $this->append(self::PREVIOUSSESSIONS, $value); } /** * Clears 'previousSessions' list. * * @return null */ public function clearPreviousSessions() { return $this->clear(self::PREVIOUSSESSIONS); } /** * Returns 'previousSessions' list. * * @return Textsecure_SessionStructure[] */ public function getPreviousSessions() { return $this->get(self::PREVIOUSSESSIONS); } /** * Returns 'previousSessions' iterator. * * @return ArrayIterator */ public function getPreviousSessionsIterator() { return new \ArrayIterator($this->get(self::PREVIOUSSESSIONS)); } /** * Returns element from 'previousSessions' list at given offset. * * @param int $offset Position in list * * @return Textsecure_SessionStructure */ public function getPreviousSessionsAt($offset) { return $this->get(self::PREVIOUSSESSIONS, $offset); } /** * Returns count of 'previousSessions' list. * * @return int */ public function getPreviousSessionsCount() { return $this->count(self::PREVIOUSSESSIONS); } } /** * PreKeyRecordStructure message. */ class Textsecure_PreKeyRecordStructure extends \ProtobufMessage { /* Field index constants */ const ID = 1; const PUBLICKEY = 2; const PRIVATEKEY = 3; /* @var array Field descriptors */ protected static $fields = [ self::ID => [ 'name' => 'id', 'required' => false, 'type' => 5, ], self::PUBLICKEY => [ 'name' => 'publicKey', 'required' => false, 'type' => 7, ], self::PRIVATEKEY => [ 'name' => 'privateKey', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::ID] = null; $this->values[self::PUBLICKEY] = null; $this->values[self::PRIVATEKEY] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'id' property. * * @param int $value Property value * * @return null */ public function setId($value) { return $this->set(self::ID, $value); } /** * Returns value of 'id' property. * * @return int */ public function getId() { return $this->get(self::ID); } /** * Sets value of 'publicKey' property. * * @param string $value Property value * * @return null */ public function setPublicKey($value) { return $this->set(self::PUBLICKEY, $value); } /** * Returns value of 'publicKey' property. * * @return string */ public function getPublicKey() { return $this->get(self::PUBLICKEY); } /** * Sets value of 'privateKey' property. * * @param string $value Property value * * @return null */ public function setPrivateKey($value) { return $this->set(self::PRIVATEKEY, $value); } /** * Returns value of 'privateKey' property. * * @return string */ public function getPrivateKey() { return $this->get(self::PRIVATEKEY); } } /** * SignedPreKeyRecordStructure message. */ class Textsecure_SignedPreKeyRecordStructure extends \ProtobufMessage { /* Field index constants */ const ID = 1; const PUBLICKEY = 2; const PRIVATEKEY = 3; const SIGNATURE = 4; const TIMESTAMP = 5; /* @var array Field descriptors */ protected static $fields = [ self::ID => [ 'name' => 'id', 'required' => false, 'type' => 5, ], self::PUBLICKEY => [ 'name' => 'publicKey', 'required' => false, 'type' => 7, ], self::PRIVATEKEY => [ 'name' => 'privateKey', 'required' => false, 'type' => 7, ], self::SIGNATURE => [ 'name' => 'signature', 'required' => false, 'type' => 7, ], self::TIMESTAMP => [ 'name' => 'timestamp', 'required' => false, 'type' => 3, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::ID] = null; $this->values[self::PUBLICKEY] = null; $this->values[self::PRIVATEKEY] = null; $this->values[self::SIGNATURE] = null; $this->values[self::TIMESTAMP] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'id' property. * * @param int $value Property value * * @return null */ public function setId($value) { return $this->set(self::ID, $value); } /** * Returns value of 'id' property. * * @return int */ public function getId() { return $this->get(self::ID); } /** * Sets value of 'publicKey' property. * * @param string $value Property value * * @return null */ public function setPublicKey($value) { return $this->set(self::PUBLICKEY, $value); } /** * Returns value of 'publicKey' property. * * @return string */ public function getPublicKey() { return $this->get(self::PUBLICKEY); } /** * Sets value of 'privateKey' property. * * @param string $value Property value * * @return null */ public function setPrivateKey($value) { return $this->set(self::PRIVATEKEY, $value); } /** * Returns value of 'privateKey' property. * * @return string */ public function getPrivateKey() { return $this->get(self::PRIVATEKEY); } /** * Sets value of 'signature' property. * * @param string $value Property value * * @return null */ public function setSignature($value) { return $this->set(self::SIGNATURE, $value); } /** * Returns value of 'signature' property. * * @return string */ public function getSignature() { return $this->get(self::SIGNATURE); } /** * Sets value of 'timestamp' property. * * @param int $value Property value * * @return null */ public function setTimestamp($value) { return $this->set(self::TIMESTAMP, $value); } /** * Returns value of 'timestamp' property. * * @return int */ public function getTimestamp() { return $this->get(self::TIMESTAMP); } } /** * IdentityKeyPairStructure message. */ class Textsecure_IdentityKeyPairStructure extends \ProtobufMessage { /* Field index constants */ const PUBLICKEY = 1; const PRIVATEKEY = 2; /* @var array Field descriptors */ protected static $fields = [ self::PUBLICKEY => [ 'name' => 'publicKey', 'required' => false, 'type' => 7, ], self::PRIVATEKEY => [ 'name' => 'privateKey', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::PUBLICKEY] = null; $this->values[self::PRIVATEKEY] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'publicKey' property. * * @param string $value Property value * * @return null */ public function setPublicKey($value) { return $this->set(self::PUBLICKEY, $value); } /** * Returns value of 'publicKey' property. * * @return string */ public function getPublicKey() { return $this->get(self::PUBLICKEY); } /** * Sets value of 'privateKey' property. * * @param string $value Property value * * @return null */ public function setPrivateKey($value) { return $this->set(self::PRIVATEKEY, $value); } /** * Returns value of 'privateKey' property. * * @return string */ public function getPrivateKey() { return $this->get(self::PRIVATEKEY); } } /** * SenderChainKey message embedded in SenderKeyStateStructure message. */ class Textsecure_SenderKeyStateStructure_SenderChainKey extends \ProtobufMessage { /* Field index constants */ const ITERATION = 1; const SEED = 2; /* @var array Field descriptors */ protected static $fields = [ self::ITERATION => [ 'name' => 'iteration', 'required' => false, 'type' => 5, ], self::SEED => [ 'name' => 'seed', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::ITERATION] = null; $this->values[self::SEED] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'iteration' property. * * @param int $value Property value * * @return null */ public function setIteration($value) { return $this->set(self::ITERATION, $value); } /** * Returns value of 'iteration' property. * * @return int */ public function getIteration() { return $this->get(self::ITERATION); } /** * Sets value of 'seed' property. * * @param string $value Property value * * @return null */ public function setSeed($value) { return $this->set(self::SEED, $value); } /** * Returns value of 'seed' property. * * @return string */ public function getSeed() { return $this->get(self::SEED); } } /** * SenderMessageKey message embedded in SenderKeyStateStructure message. */ class Textsecure_SenderKeyStateStructure_SenderMessageKey extends \ProtobufMessage { /* Field index constants */ const ITERATION = 1; const SEED = 2; /* @var array Field descriptors */ protected static $fields = [ self::ITERATION => [ 'name' => 'iteration', 'required' => false, 'type' => 5, ], self::SEED => [ 'name' => 'seed', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::ITERATION] = null; $this->values[self::SEED] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'iteration' property. * * @param int $value Property value * * @return null */ public function setIteration($value) { return $this->set(self::ITERATION, $value); } /** * Returns value of 'iteration' property. * * @return int */ public function getIteration() { return $this->get(self::ITERATION); } /** * Sets value of 'seed' property. * * @param string $value Property value * * @return null */ public function setSeed($value) { return $this->set(self::SEED, $value); } /** * Returns value of 'seed' property. * * @return string */ public function getSeed() { return $this->get(self::SEED); } } /** * SenderSigningKey message embedded in SenderKeyStateStructure message. */ class Textsecure_SenderKeyStateStructure_SenderSigningKey extends \ProtobufMessage { /* Field index constants */ const _PUBLIC = 1; const _PRIVATE = 2; /* @var array Field descriptors */ protected static $fields = [ self::_PUBLIC => [ 'name' => 'public', 'required' => false, 'type' => 7, ], self::_PRIVATE => [ 'name' => 'private', 'required' => false, 'type' => 7, ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::_PUBLIC] = null; $this->values[self::_PRIVATE] = null; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'public' property. * * @param string $value Property value * * @return null */ public function setPublic($value) { return $this->set(self::_PUBLIC, $value); } /** * Returns value of 'public' property. * * @return string */ public function getPublic() { return $this->get(self::_PUBLIC); } /** * Sets value of 'private' property. * * @param string $value Property value * * @return null */ public function setPrivate($value) { return $this->set(self::_PRIVATE, $value); } /** * Returns value of 'private' property. * * @return string */ public function getPrivate() { return $this->get(self::_PRIVATE); } } /** * SenderKeyStateStructure message. */ class Textsecure_SenderKeyStateStructure extends \ProtobufMessage { /* Field index constants */ const SENDERKEYID = 1; const SENDERCHAINKEY = 2; const SENDERSIGNINGKEY = 3; const SENDERMESSAGEKEYS = 4; /* @var array Field descriptors */ protected static $fields = [ self::SENDERKEYID => [ 'name' => 'senderKeyId', 'required' => false, 'type' => 5, ], self::SENDERCHAINKEY => [ 'name' => 'senderChainKey', 'required' => false, 'type' => 'Textsecure_SenderKeyStateStructure_SenderChainKey', ], self::SENDERSIGNINGKEY => [ 'name' => 'senderSigningKey', 'required' => false, 'type' => 'Textsecure_SenderKeyStateStructure_SenderSigningKey', ], self::SENDERMESSAGEKEYS => [ 'name' => 'senderMessageKeys', 'repeated' => true, 'type' => 'Textsecure_SenderKeyStateStructure_SenderMessageKey', ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::SENDERKEYID] = null; $this->values[self::SENDERCHAINKEY] = null; $this->values[self::SENDERSIGNINGKEY] = null; $this->values[self::SENDERMESSAGEKEYS] = []; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Sets value of 'senderKeyId' property. * * @param int $value Property value * * @return null */ public function setSenderKeyId($value) { return $this->set(self::SENDERKEYID, $value); } /** * Returns value of 'senderKeyId' property. * * @return int */ public function getSenderKeyId() { return $this->get(self::SENDERKEYID); } /** * Sets value of 'senderChainKey' property. * * @param Textsecure_SenderKeyStateStructure_SenderChainKey $value Property value * * @return null */ public function setSenderChainKey(Textsecure_SenderKeyStateStructure_SenderChainKey $value) { return $this->set(self::SENDERCHAINKEY, $value); } /** * Returns value of 'senderChainKey' property. * * @return Textsecure_SenderKeyStateStructure_SenderChainKey */ public function getSenderChainKey() { return $this->get(self::SENDERCHAINKEY); } /** * Sets value of 'senderSigningKey' property. * * @param Textsecure_SenderKeyStateStructure_SenderSigningKey $value Property value * * @return null */ public function setSenderSigningKey(Textsecure_SenderKeyStateStructure_SenderSigningKey $value) { return $this->set(self::SENDERSIGNINGKEY, $value); } /** * Returns value of 'senderSigningKey' property. * * @return Textsecure_SenderKeyStateStructure_SenderSigningKey */ public function getSenderSigningKey() { return $this->get(self::SENDERSIGNINGKEY); } /** * Appends value to 'senderMessageKeys' list. * * @param Textsecure_SenderKeyStateStructure_SenderMessageKey $value Value to append * * @return null */ public function appendSenderMessageKeys(Textsecure_SenderKeyStateStructure_SenderMessageKey $value) { return $this->append(self::SENDERMESSAGEKEYS, $value); } /** * Clears 'senderMessageKeys' list. * * @return null */ public function clearSenderMessageKeys() { return $this->clear(self::SENDERMESSAGEKEYS); } /** * Returns 'senderMessageKeys' list. * * @return Textsecure_SenderKeyStateStructure_SenderMessageKey[] */ public function getSenderMessageKeys() { return $this->get(self::SENDERMESSAGEKEYS); } /** * Returns 'senderMessageKeys' iterator. * * @return ArrayIterator */ public function getSenderMessageKeysIterator() { return new \ArrayIterator($this->get(self::SENDERMESSAGEKEYS)); } /** * Returns element from 'senderMessageKeys' list at given offset. * * @param int $offset Position in list * * @return Textsecure_SenderKeyStateStructure_SenderMessageKey */ public function getSenderMessageKeysAt($offset) { return $this->get(self::SENDERMESSAGEKEYS, $offset); } /** * Returns count of 'senderMessageKeys' list. * * @return int */ public function getSenderMessageKeysCount() { return $this->count(self::SENDERMESSAGEKEYS); } } /** * SenderKeyRecordStructure message. */ class Textsecure_SenderKeyRecordStructure extends \ProtobufMessage { /* Field index constants */ const SENDERKEYSTATES = 1; /* @var array Field descriptors */ protected static $fields = [ self::SENDERKEYSTATES => [ 'name' => 'senderKeyStates', 'repeated' => true, 'type' => 'Textsecure_SenderKeyStateStructure', ], ]; /** * Constructs new message container and clears its internal state. * * @return null */ public function __construct() { $this->reset(); } /** * Clears message values and sets default ones. * * @return null */ public function reset() { $this->values[self::SENDERKEYSTATES] = []; } /** * Returns field descriptors. * * @return array */ public function fields() { return self::$fields; } /** * Appends value to 'senderKeyStates' list. * * @param Textsecure_SenderKeyStateStructure $value Value to append * * @return null */ public function appendSenderKeyStates(Textsecure_SenderKeyStateStructure $value) { return $this->append(self::SENDERKEYSTATES, $value); } /** * Clears 'senderKeyStates' list. * * @return null */ public function clearSenderKeyStates() { return $this->clear(self::SENDERKEYSTATES); } /** * Returns 'senderKeyStates' list. * * @return Textsecure_SenderKeyStateStructure[] */ public function getSenderKeyStates() { return $this->get(self::SENDERKEYSTATES); } /** * Returns 'senderKeyStates' iterator. * * @return ArrayIterator */ public function getSenderKeyStatesIterator() { return new \ArrayIterator($this->get(self::SENDERKEYSTATES)); } /** * Returns element from 'senderKeyStates' list at given offset. * * @param int $offset Position in list * * @return Textsecure_SenderKeyStateStructure */ public function getSenderKeyStatesAt($offset) { return $this->get(self::SENDERKEYSTATES, $offset); } /** * Returns count of 'senderKeyStates' list. * * @return int */ public function getSenderKeyStatesCount() { return $this->count(self::SENDERKEYSTATES); } }
{ "content_hash": "e566af76f193a8d2cffd199e9e59e8ae", "timestamp": "", "source": "github", "line_count": 2460, "max_line_length": 103, "avg_line_length": 22.14268292682927, "alnum_prop": 0.5367076058820289, "repo_name": "fhferreira/Chat-API", "id": "f0a014b40f74a1adec0b1fd5a9d66bb1dbc46490", "size": "54471", "binary": false, "copies": "13", "ref": "refs/heads/master", "path": "src/libaxolotl-php/state/pb_proto_LocalStorageProtocol.php", "mode": "33261", "license": "mit", "language": [ { "name": "CSS", "bytes": "94397" }, { "name": "PHP", "bytes": "365673" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="Source to the Rust file `/home/carter/.cargo/registry/src/github.com-1ecc6299db9ec823/x11-dl-1.0.1/src/xf86vmode.rs`."> <meta name="keywords" content="rust, rustlang, rust-lang"> <title>xf86vmode.rs.html -- source</title> <link rel="stylesheet" type="text/css" href="../../main.css"> </head> <body class="rustdoc"> <!--[if lte IE 8]> <div class="warning"> This old browser is unsupported and will most likely display funky things. </div> <![endif]--> <section class="sidebar"> </section> <nav class="sub"> <form class="search-form js-only"> <div class="search-container"> <input class="search-input" name="search" autocomplete="off" placeholder="Click or press 'S' to search, '?' for more options..." type="search"> </div> </form> </nav> <section id='main' class="content source"><pre class="line-numbers"><span id="1"> 1</span> <span id="2"> 2</span> <span id="3"> 3</span> <span id="4"> 4</span> <span id="5"> 5</span> <span id="6"> 6</span> <span id="7"> 7</span> <span id="8"> 8</span> <span id="9"> 9</span> <span id="10"> 10</span> <span id="11"> 11</span> <span id="12"> 12</span> <span id="13"> 13</span> <span id="14"> 14</span> <span id="15"> 15</span> <span id="16"> 16</span> <span id="17"> 17</span> <span id="18"> 18</span> <span id="19"> 19</span> <span id="20"> 20</span> <span id="21"> 21</span> <span id="22"> 22</span> <span id="23"> 23</span> <span id="24"> 24</span> <span id="25"> 25</span> <span id="26"> 26</span> <span id="27"> 27</span> <span id="28"> 28</span> <span id="29"> 29</span> <span id="30"> 30</span> <span id="31"> 31</span> <span id="32"> 32</span> <span id="33"> 33</span> <span id="34"> 34</span> <span id="35"> 35</span> <span id="36"> 36</span> <span id="37"> 37</span> <span id="38"> 38</span> <span id="39"> 39</span> <span id="40"> 40</span> <span id="41"> 41</span> <span id="42"> 42</span> <span id="43"> 43</span> <span id="44"> 44</span> <span id="45"> 45</span> <span id="46"> 46</span> <span id="47"> 47</span> <span id="48"> 48</span> <span id="49"> 49</span> <span id="50"> 50</span> <span id="51"> 51</span> <span id="52"> 52</span> <span id="53"> 53</span> <span id="54"> 54</span> <span id="55"> 55</span> <span id="56"> 56</span> <span id="57"> 57</span> <span id="58"> 58</span> <span id="59"> 59</span> <span id="60"> 60</span> <span id="61"> 61</span> <span id="62"> 62</span> <span id="63"> 63</span> <span id="64"> 64</span> <span id="65"> 65</span> <span id="66"> 66</span> <span id="67"> 67</span> <span id="68"> 68</span> <span id="69"> 69</span> <span id="70"> 70</span> <span id="71"> 71</span> <span id="72"> 72</span> <span id="73"> 73</span> <span id="74"> 74</span> <span id="75"> 75</span> <span id="76"> 76</span> <span id="77"> 77</span> <span id="78"> 78</span> <span id="79"> 79</span> <span id="80"> 80</span> <span id="81"> 81</span> <span id="82"> 82</span> <span id="83"> 83</span> <span id="84"> 84</span> <span id="85"> 85</span> <span id="86"> 86</span> <span id="87"> 87</span> <span id="88"> 88</span> <span id="89"> 89</span> <span id="90"> 90</span> <span id="91"> 91</span> <span id="92"> 92</span> <span id="93"> 93</span> <span id="94"> 94</span> <span id="95"> 95</span> <span id="96"> 96</span> <span id="97"> 97</span> <span id="98"> 98</span> <span id="99"> 99</span> <span id="100">100</span> <span id="101">101</span> <span id="102">102</span> <span id="103">103</span> <span id="104">104</span> <span id="105">105</span> <span id="106">106</span> <span id="107">107</span> <span id="108">108</span> <span id="109">109</span> <span id="110">110</span> <span id="111">111</span> <span id="112">112</span> <span id="113">113</span> <span id="114">114</span> <span id="115">115</span> <span id="116">116</span> <span id="117">117</span> <span id="118">118</span> <span id="119">119</span> <span id="120">120</span> <span id="121">121</span> <span id="122">122</span> <span id="123">123</span> <span id="124">124</span> <span id="125">125</span> <span id="126">126</span> <span id="127">127</span> <span id="128">128</span> <span id="129">129</span> <span id="130">130</span> <span id="131">131</span> <span id="132">132</span> </pre><pre class='rust '> <span class='comment'>// x11-rs: Rust bindings for X11 libraries</span> <span class='comment'>// The X11 libraries are available under the MIT license.</span> <span class='comment'>// These bindings are public domain.</span> <span class='kw'>use</span> <span class='ident'>libc</span>::{ <span class='ident'>c_char</span>, <span class='ident'>c_float</span>, <span class='ident'>c_int</span>, <span class='ident'>c_uchar</span>, <span class='ident'>c_uint</span>, <span class='ident'>c_ulong</span>, <span class='ident'>c_ushort</span>, }; <span class='kw'>use</span> ::<span class='ident'>xlib</span>::{ <span class='ident'>Bool</span>, <span class='ident'>Display</span>, <span class='ident'>Time</span>, <span class='ident'>Window</span>, }; <span class='comment'>//</span> <span class='comment'>// functions</span> <span class='comment'>//</span> <span class='macro'>x11_link</span><span class='macro'>!</span> { <span class='ident'>Xf86vmode</span>, [<span class='string'>&quot;libXxf86vm.so&quot;</span>, <span class='string'>&quot;libXxf86vm.so.1&quot;</span>], <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeAddModeLine</span> (<span class='ident'>_4</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_3</span>: <span class='ident'>c_int</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeModeInfo</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeModeInfo</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeDeleteModeLine</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeModeInfo</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetAllModeLines</span> (<span class='ident'>_4</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_3</span>: <span class='ident'>c_int</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='op'>*</span><span class='kw-2'>mut</span> <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeModeInfo</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetDotClocks</span> (<span class='ident'>_6</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_5</span>: <span class='ident'>c_int</span>, <span class='ident'>_4</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>, <span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetGamma</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeGamma</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetGammaRamp</span> (<span class='ident'>_6</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_5</span>: <span class='ident'>c_int</span>, <span class='ident'>_4</span>: <span class='ident'>c_int</span>, <span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_ushort</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_ushort</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_ushort</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetGammaRampSize</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetModeLine</span> (<span class='ident'>_4</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_3</span>: <span class='ident'>c_int</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeModeLine</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetMonitor</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeMonitor</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetPermissions</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeGetViewPort</span> (<span class='ident'>_4</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_3</span>: <span class='ident'>c_int</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeLockModeSwitch</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeModModeLine</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeModeLine</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeQueryExtension</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeQueryVersion</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeSetClientVersion</span> (<span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeSetGamma</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeGamma</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeSetGammaRamp</span> (<span class='ident'>_6</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_5</span>: <span class='ident'>c_int</span>, <span class='ident'>_4</span>: <span class='ident'>c_int</span>, <span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_ushort</span>, <span class='ident'>_2</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_ushort</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_ushort</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeSetViewPort</span> (<span class='ident'>_4</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_3</span>: <span class='ident'>c_int</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeSwitchMode</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='ident'>c_int</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeSwitchToMode</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeModeInfo</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>XF86VidModeValidateModeLine</span> (<span class='ident'>_3</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='ident'>_2</span>: <span class='ident'>c_int</span>, <span class='ident'>_1</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeModeInfo</span>) <span class='op'>-&gt;</span> <span class='ident'>c_int</span>, } <span class='comment'>//</span> <span class='comment'>// types</span> <span class='comment'>//</span> <span class='attribute'>#[<span class='ident'>derive</span>(<span class='ident'>Clone</span>, <span class='ident'>Copy</span>)]</span> <span class='attribute'>#[<span class='ident'>repr</span>(<span class='ident'>C</span>)]</span> <span class='kw'>pub</span> <span class='kw'>struct</span> <span class='ident'>XF86VidModeGamma</span> { <span class='kw'>pub</span> <span class='ident'>red</span>: <span class='ident'>c_float</span>, <span class='kw'>pub</span> <span class='ident'>green</span>: <span class='ident'>c_float</span>, <span class='kw'>pub</span> <span class='ident'>blue</span>: <span class='ident'>c_float</span>, } <span class='attribute'>#[<span class='ident'>derive</span>(<span class='ident'>Clone</span>, <span class='ident'>Copy</span>, <span class='ident'>PartialEq</span>)]</span> <span class='attribute'>#[<span class='ident'>repr</span>(<span class='ident'>C</span>)]</span> <span class='kw'>pub</span> <span class='kw'>struct</span> <span class='ident'>XF86VidModeModeInfo</span> { <span class='kw'>pub</span> <span class='ident'>dotclock</span>: <span class='ident'>c_uint</span>, <span class='kw'>pub</span> <span class='ident'>hdisplay</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>hsyncstart</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>hsyncend</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>htotal</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>vdisplay</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>vsyncstart</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>vsyncend</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>vtotal</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>flags</span>: <span class='ident'>c_uint</span>, <span class='kw'>pub</span> <span class='ident'>privsize</span>: <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='ident'>private</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>i32</span>, } <span class='attribute'>#[<span class='ident'>derive</span>(<span class='ident'>Clone</span>, <span class='ident'>Copy</span>)]</span> <span class='attribute'>#[<span class='ident'>repr</span>(<span class='ident'>C</span>)]</span> <span class='kw'>pub</span> <span class='kw'>struct</span> <span class='ident'>XF86VidModeModeLine</span> { <span class='kw'>pub</span> <span class='ident'>hdisplay</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>hsyncstart</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>hsyncend</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>htotal</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>hskew</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>vdisplay</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>vsyncstart</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>vsyncend</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>vtotal</span>: <span class='ident'>c_ushort</span>, <span class='kw'>pub</span> <span class='ident'>flags</span>: <span class='ident'>c_uint</span>, <span class='kw'>pub</span> <span class='ident'>privsize</span>: <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='ident'>private</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>i32</span>, } <span class='attribute'>#[<span class='ident'>derive</span>(<span class='ident'>Clone</span>, <span class='ident'>Copy</span>)]</span> <span class='attribute'>#[<span class='ident'>repr</span>(<span class='ident'>C</span>)]</span> <span class='kw'>pub</span> <span class='kw'>struct</span> <span class='ident'>XF86VidModeMonitor</span> { <span class='kw'>pub</span> <span class='ident'>vendor</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_char</span>, <span class='kw'>pub</span> <span class='ident'>model</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>c_char</span>, <span class='kw'>pub</span> <span class='ident'>EMPTY</span>: <span class='ident'>c_float</span>, <span class='kw'>pub</span> <span class='ident'>nhsync</span>: <span class='ident'>c_uchar</span>, <span class='kw'>pub</span> <span class='ident'>hsync</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeSyncRange</span>, <span class='kw'>pub</span> <span class='ident'>nvsync</span>: <span class='ident'>c_uchar</span>, <span class='kw'>pub</span> <span class='ident'>vsync</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>XF86VidModeSyncRange</span>, } <span class='attribute'>#[<span class='ident'>derive</span>(<span class='ident'>Clone</span>, <span class='ident'>Copy</span>)]</span> <span class='attribute'>#[<span class='ident'>repr</span>(<span class='ident'>C</span>)]</span> <span class='kw'>pub</span> <span class='kw'>struct</span> <span class='ident'>XF86VidModeNotifyEvent</span> { <span class='kw'>pub</span> <span class='ident'>type_</span>: <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='ident'>serial</span>: <span class='ident'>c_ulong</span>, <span class='kw'>pub</span> <span class='ident'>send_event</span>: <span class='ident'>Bool</span>, <span class='kw'>pub</span> <span class='ident'>display</span>: <span class='op'>*</span><span class='kw-2'>mut</span> <span class='ident'>Display</span>, <span class='kw'>pub</span> <span class='ident'>root</span>: <span class='ident'>Window</span>, <span class='kw'>pub</span> <span class='ident'>state</span>: <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='ident'>kind</span>: <span class='ident'>c_int</span>, <span class='kw'>pub</span> <span class='ident'>forced</span>: <span class='ident'>bool</span>, <span class='kw'>pub</span> <span class='ident'>time</span>: <span class='ident'>Time</span>, } <span class='attribute'>#[<span class='ident'>derive</span>(<span class='ident'>Clone</span>, <span class='ident'>Copy</span>)]</span> <span class='attribute'>#[<span class='ident'>repr</span>(<span class='ident'>C</span>)]</span> <span class='kw'>pub</span> <span class='kw'>struct</span> <span class='ident'>XF86VidModeSyncRange</span> { <span class='kw'>pub</span> <span class='ident'>hi</span>: <span class='ident'>c_float</span>, <span class='kw'>pub</span> <span class='ident'>lo</span>: <span class='ident'>c_float</span>, } </pre> </section> <section id='search' class="content hidden"></section> <section class="footer"></section> <div id="help" class="hidden"> <div class="shortcuts"> <h1>Keyboard shortcuts</h1> <dl> <dt>?</dt> <dd>Show this help dialog</dd> <dt>S</dt> <dd>Focus the search field</dd> <dt>&larrb;</dt> <dd>Move up in search results</dd> <dt>&rarrb;</dt> <dd>Move down in search results</dd> <dt>&#9166;</dt> <dd>Go to active search result</dd> </dl> </div> <div class="infos"> <h1>Search tricks</h1> <p> Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type. </p> <p> Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>typedef</code> (or <code>tdef</code>). </p> <p> Search functions by type signature (e.g. <code>vec -> usize</code>) </p> </div> </div> <script> window.rootPath = "../../"; window.currentCrate = "x11_dl"; window.playgroundUrl = ""; </script> <script src="../../jquery.js"></script> <script src="../../main.js"></script> <script async src="../../search-index.js"></script> </body> </html>
{ "content_hash": "09a59b2b5394727147f4eca5227a2fb6", "timestamp": "", "source": "github", "line_count": 361, "max_line_length": 894, "avg_line_length": 73.88919667590028, "alnum_prop": 0.6248406688160756, "repo_name": "mcanders/bevy", "id": "052e3b31802dd882653ebb4d0364c0e014b1296c", "size": "26674", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "doc/src/x11_dl/xf86vmode.rs.html", "mode": "33188", "license": "mit", "language": [ { "name": "Rust", "bytes": "316751" } ], "symlink_target": "" }
- Documentation and metadata improvements. - Upgraded the Docker image to: *demisto/pycef:1.0.0.19330*.
{ "content_hash": "c19e30b8e004546be283764ab14910c3", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 60, "avg_line_length": 51.5, "alnum_prop": 0.7766990291262136, "repo_name": "VirusTotal/content", "id": "f100aef5ade091f977a158b7c602b7b96c24cc03", "size": "149", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "Packs/TrendMicroApex/ReleaseNotes/2_0_1.md", "mode": "33188", "license": "mit", "language": [ { "name": "Dockerfile", "bytes": "2146" }, { "name": "HTML", "bytes": "205901" }, { "name": "JavaScript", "bytes": "1584075" }, { "name": "PowerShell", "bytes": "442288" }, { "name": "Python", "bytes": "47594464" }, { "name": "Rich Text Format", "bytes": "480911" }, { "name": "Shell", "bytes": "108066" }, { "name": "YARA", "bytes": "1185" } ], "symlink_target": "" }
using System; using NtfsExtract.NTFS.Enums; using NtfsExtract.NTFS.IO; using RawDiskLib; namespace NtfsExtract.NTFS.Attributes { public class AttributeGeneric : Attribute { public byte[] Data { get; set; } public override AttributeResidentAllow AllowedResidentStates { get { return AttributeResidentAllow.Resident | AttributeResidentAllow.NonResident; } } internal override void ParseAttributeResidentBody(byte[] data, int maxLength, int offset) { base.ParseAttributeResidentBody(data, maxLength, offset); // Get data Data = new byte[maxLength]; Array.Copy(data, offset, Data, 0, maxLength); } internal override void ParseAttributeNonResidentBody(RawDisk disk) { base.ParseAttributeNonResidentBody(disk); // Read clusters from disk Data = new byte[NonResidentHeader.ContentSize]; using (RawDiskStream diskStream = disk.CreateDiskStream()) using (NtfsDiskStream attribStream = new NtfsDiskStream(diskStream, false, NonResidentHeader.Fragments, (uint)disk.ClusterSize, 0, Data.LongLength)) attribStream.Read(Data, 0, Data.Length); } public override string ToString() { return "ATTRIB_" + Type + "_" + NonResidentFlag + "_" + (AttributeName == string.Empty ? "<noname>" : AttributeName); } } }
{ "content_hash": "9f2408c40d5e57b423c65fc3b167d279", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 160, "avg_line_length": 32.67391304347826, "alnum_prop": 0.6227544910179641, "repo_name": "LordMike/NtfsLib", "id": "5bd0aa06040d4b8efaa21cb19c93998127f14b2d", "size": "1505", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "NtfsExtract/NTFS/Attributes/AttributeGeneric.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "536305" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace Metaseed.Collections.Generic { /// <summary> /// LINQ extensions for IEnumerable /// </summary> public static class IEnumerableExtensions { /// <summary> /// the default ICollection<T> Contains using Equsls which may cause problem when using with Catel ModelBase class: /// /// <summary> /// the default equals methord of Catel.Data.ModelBase compares the properties(PropertyData) in it's PropertyBag /// when not using PropertyData to define property PropertyBag the bag is empty and the same type object will be equal /// //https://catelproject.atlassian.net/browse/CTL-178 /// not sure whether or not the property bag is the source of the problem after I creat a PropertData property with different default valus and the problem is the same. //what I do: //ViewModelBaseDerivedTypeA a1,a2; //ObservableCollection<ViewModelBaseDerivedTypeA> C; //then I add a1, a2. //void addToC(ViewModelBaseDerivedTypeA a) //{ if(!C.Contains(a)) C.Add(a); } //but only a1 is added to C; //after I overide the Equals methord in ViewModelBaseDerivedTypeA //public override bool Equals(object obj) //{ return this == obj; } //a1 a2 is added to C. //then what's the problem, many thanks!! /// </summary> /// <param name="obj"></param> /// <returns></returns> //public override bool Equals(object obj) this method is in LayoutContentViewModels //{ // return obj==this; //} //now using Contains_CompareByReference /// </summary> /// <typeparam name="T"></typeparam> /// <param name="collection"></param> /// <param name="item"></param> /// <returns></returns> public static bool Contains_CompareByReference<T>(this IEnumerable<T> collection, T item) { foreach (var document in collection) { if (object.ReferenceEquals(document, item)) { return true; } } return false; } //http://stackoverflow.com/questions/200574/linq-equivalent-of-foreach-for-ienumerablet?lq=1 /// <summary> /// ForEach extension /// </summary> /// <typeparam name="T"></typeparam> /// <param name="ie"></param> /// <param name="action"></param> public static void ForEach<T>(this IEnumerable<T> enumeration, Action<T> action) { foreach (T item in enumeration) { action(item); } } //please use OfType !! //public static IEnumerable<T> OfBaseType<T>(this IEnumerable ie) //{ // foreach (var e in ie) // { // typeof(T).IsAssignableFrom(e.GetType()); // yield return (T)e; // } //} /// <summary> /// http://stackoverflow.com/questions/255341/getting-key-of-value-of-a-generic-dictionary /// </summary> /// <typeparam name="TKey"></typeparam> /// <typeparam name="TValue"></typeparam> /// <param name="dict"></param> /// <param name="val"></param> /// <returns></returns> public static IEnumerable<TKey> KeysFromValue<TKey, TValue>(this Dictionary<TKey, TValue> dict, TValue val) { if (dict == null) { throw new ArgumentNullException("dict"); } return dict.Keys.Where(k => dict[k].Equals ( val)); } } public static class CollectionsUtil { public static List<T> EnsureSize<T>(this List<T> list, int size) { return EnsureSize(list, size, default(T)); } public static List<T> EnsureSize<T>(this List<T> list, int size, T value) { if (list == null) throw new ArgumentNullException("list"); if (size < 0) throw new ArgumentOutOfRangeException("size"); int count = list.Count; if (count < size) { int capacity = list.Capacity; if (capacity < size) list.Capacity = Math.Max(size, capacity * 2); while (count < size) { list.Add(value); ++count; } } return list; } } }
{ "content_hash": "b2912451fc812c80085c94f99423f50a", "timestamp": "", "source": "github", "line_count": 127, "max_line_length": 176, "avg_line_length": 36.55905511811024, "alnum_prop": 0.5436140426448417, "repo_name": "metaseed/MetaStudio", "id": "9eb907c338658e2780e6e4ae414ac552d3235133", "size": "4645", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Metaseed.MetaCore/Collections/Generic/IEnumrableExtension.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "3106" }, { "name": "C", "bytes": "1570" }, { "name": "C#", "bytes": "1588301" }, { "name": "C++", "bytes": "5135" }, { "name": "HTML", "bytes": "375" }, { "name": "PowerShell", "bytes": "285868" } ], "symlink_target": "" }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Language" content="pl" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <head> <title>Docs for page file.class.php</title> <link rel="stylesheet" type="text/css" href="../media/style.css"> </head> <body> <div id="container"> <div id="topBg"></div> <a href=""><img alt="Logo" id="logo" src="../media/logo.gif" /></a> <ul id="menu"> <li><a href="/index.php/Index/API"><span>API Doc</span></a></li> <li><a href="/index.php/Index/Manual"><span>Manual</span></a></li> </ul> <div id="content"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="20%" class="menu"> <div class="package-title">Coyote-F</div> <div class="package"> <div id="todolist"> <p><a href="../todolist.html">Todo List</a></p> </div> </div> <b>Packages:</b><br /> <div class="package"> <a href="../li_Coyote-F.html">Coyote-F</a><br /> </div> <br /> <b>Files:</b><br /> <div class="package"> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---abstract.class.php.html">abstract.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---feed---abstract.class.php.html">abstract.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---db---abstract.class.php.html">abstract.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---decorator---abstract.class.php.html">abstract.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---abstract.class.php.html">abstract.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---abstract.class.php.html">abstract.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---acl.class.php.html">acl.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---lang---array.class.php.html">array.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---array.helper.php.html">array.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---feed---element---atom.class.php.html">atom.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---feed---atom.class.php.html">atom.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---benchmark.class.php.html">benchmark.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---box.helper.php.html">box.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---breadcrumb.helper.php.html">breadcrumb.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---button.class.php.html">button.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---cache.class.php.html">cache.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---checkbox.class.php.html">checkbox.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---checkbox.class.php.html">checkbox.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---config.class.php.html">config.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---view---config.class.php.html">config.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---confirm_box.php.html">confirm_box.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---context.class.php.html">context.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---controller.class.php.html">controller.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---core.class.php.html">core.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---lang---csv.class.php.html">csv.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---session---db.class.php.html">db.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---db.class.php.html">db.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_controller---db.php.html">db.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---debug.class.php.html">debug.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---debug---debug.php.html">debug.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---pagination---default.php.html">default.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---form---default.php.html">default.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---decorator---description.class.php.html">description.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---dispatcher.class.php.html">dispatcher.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---docs.php.html">docs.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---cache---eaccelerator.class.php.html">eaccelerator.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---email.class.php.html">email.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---email.class.php.html">email.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---equal.class.php.html">equal.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---decorator---errors.class.php.html">errors.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---error---Exception.php.html">Exception.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---feed.class.php.html">feed.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---decorator---fieldset.class.php.html">fieldset.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---file.class.php.html">file.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---session---file.class.php.html">file.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---file.class.php.html">file.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---cache---file.class.php.html">file.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---error---FileNotFoundException.php.html">FileNotFoundException.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---filter.class.php.html">filter.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---float.class.php.html">float.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_controller---foo.php.html">foo.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---decorator---form.class.php.html">form.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---form.helper.php.html">form.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---forms.class.php.html">forms.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_controller---forms.php.html">forms.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---ftp.class.php.html">ftp.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---gpc.class.php.html">gpc.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---hash.class.php.html">hash.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---hidden.class.php.html">hidden.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---hidden.class.php.html">hidden.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---html.helper.php.html">html.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---image.class.php.html">image.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---index.php.html">index.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_controller---index.php.html">index.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_index.php.html">index.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---information_box.php.html">information_box.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---config---ini.class.php.html">ini.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---input.class.php.html">input.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---input.class.php.html">input.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---filter---input.class.php.html">input.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---int.class.php.html">int.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---Kopia time.helper.php.html">Kopia time.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---decorator---label.class.php.html">label.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---lang.class.php.html">lang.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---layout.php.html">layout.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---load.class.php.html">load.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_controller---loader.php.html">loader.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---log.class.php.html">log.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_template---manual.php.html">manual.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---match.class.php.html">match.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---model.class.php.html">model.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---db---mysql.class.php.html">mysql.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---nip.class.php.html">nip.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---notempty.class.php.html">notempty.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---option.class.php.html">option.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---option.class.php.html">option.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---orm.class.php.html">orm.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---output.class.php.html">output.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---pagination.class.php.html">pagination.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---password.class.php.html">password.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---password.class.php.html">password.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---db---pdo.class.php.html">pdo.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---config---php.class.php.html">php.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---db---postgres.php.html">postgres.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---db---profiler.class.php.html">profiler.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---radio.class.php.html">radio.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---radio.class.php.html">radio.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---regon.class.php.html">regon.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---filter---replace.class.php.html">replace.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---router.class.php.html">router.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---feed---element---rss.class.php.html">rss.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---feed---rss.class.php.html">rss.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---select.class.php.html">select.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---select.class.php.html">select.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---session.class.php.html">session.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---sort.helper.php.html">sort.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---sql.helper.php.html">sql.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---string.class.php.html">string.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---submit.class.php.html">submit.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---submit.class.php.html">submit.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---system.helper.php.html">system.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---decorator---tag.class.php.html">tag.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_controller---test.php.html">test.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---text.class.php.html">text.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---text.class.php.html">text.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---text.helper.php.html">text.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---form---element---textarea.class.php.html">textarea.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---element---textarea.class.php.html">textarea.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---time.helper.php.html">time.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---trigger.class.php.html">trigger.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---TriggerException.class.php.html">TriggerException.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---unit_test.class.php.html">unit_test.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---upload.class.php.html">upload.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---upload.class.php.html">upload.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate---url.class.php.html">url.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_helper---url.helper.php.html">url.helper.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---validate.class.php.html">validate.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---view.class.php.html">view.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---view---xhtml.class.php.html">xhtml.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---config---xml.class.php.html">xml.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---filter---xss.class.php.html">xss.class.php</a></span><br /> <span style="padding-left: 1em;"><a href="../Coyote-F/_lib---zip.class.php.html">zip.class.php</a></span><br /> </div> <br /> <b>Interfaces:</b><br /> <div class="package"> <a href="../Coyote-F/ICache.html">ICache</a> <br /> <a href="../Coyote-F/IConfig.html">IConfig</a> <br /> <a href="../Coyote-F/IContext.html">IContext</a> <br /> <a href="../Coyote-F/IDB.html">IDB</a> <br /> <a href="../Coyote-F/IElement.html">IElement</a> <br /> <a href="../Coyote-F/IFilter.html">IFilter</a> <br /> <a href="../Coyote-F/ISession.html">ISession</a> <br /> <a href="../Coyote-F/IValidate.html">IValidate</a> <br /> <a href="../Coyote-F/IView.html">IView</a> <br /> <a href="../Coyote-F/IZip.html">IZip</a> <br /> </div> <b>Classes:</b><br /> <div class="package"> <a href="../Coyote-F/Acl.html">Acl</a> <br /> <a href="../Coyote-F/Benchmark.html">Benchmark</a> <br /> <a href="../Coyote-F/Box.html">Box</a> <br /> <a href="../Coyote-F/Breadcrumb.html">Breadcrumb</a> <br /> <a href="../Coyote-F/Cache.html">Cache</a> <br /> <a href="../Coyote-F/Cache_EAccelerator.html">Cache_EAccelerator</a> <br /> <a href="../Coyote-F/Cache_File.html">Cache_File</a> <br /> <a href="../Coyote-F/Config.html">Config</a> <br /> <a href="../Coyote-F/ConfigFileNotFoundException.html">ConfigFileNotFoundException</a> <br /> <a href="../Coyote-F/Config_INI.html">Config_INI</a> <br /> <a href="../Coyote-F/Config_PHP.html">Config_PHP</a> <br /> <a href="../Coyote-F/Config_XML.html">Config_XML</a> <br /> <a href="../Coyote-F/Context.html">Context</a> <br /> <a href="../Coyote-F/Controller.html">Controller</a> <br /> <a href="../Coyote-F/Cookie.html">Cookie</a> <br /> <a href="../Coyote-F/Core.html">Core</a> <br /> <a href="../Coyote-F/Db.html">Db</a> <br /> <a href="../Coyote-F/Db_Abstract.html">Db_Abstract</a> <br /> <a href="../Coyote-F/Db_Controller.html">Db_Controller</a> <br /> <a href="../Coyote-F/Db_Mysql.html">Db_Mysql</a> <br /> <a href="../Coyote-F/Db_PDO.html">Db_PDO</a> <br /> <a href="../Coyote-F/Db_Profiler.html">Db_Profiler</a> <br /> <a href="../Coyote-F/Db_Profiler_Query.html">Db_Profiler_Query</a> <br /> <a href="../Coyote-F/Db_Result.html">Db_Result</a> <br /> <a href="../Coyote-F/Debug.html">Debug</a> <br /> <a href="../Coyote-F/DirNotFoundException.html">DirNotFoundException</a> <br /> <a href="../Coyote-F/DirNotWriteable.html">DirNotWriteable</a> <br /> <a href="../Coyote-F/Dispatcher.html">Dispatcher</a> <br /> <a href="../Coyote-F/Element_Abstract.html">Element_Abstract</a> <br /> <a href="../Coyote-F/Element_Checkbox.html">Element_Checkbox</a> <br /> <a href="../Coyote-F/Element_File.html">Element_File</a> <br /> <a href="../Coyote-F/Element_Hidden.html">Element_Hidden</a> <br /> <a href="../Coyote-F/Element_Option.html">Element_Option</a> <br /> <a href="../Coyote-F/Element_Password.html">Element_Password</a> <br /> <a href="../Coyote-F/Element_Radio.html">Element_Radio</a> <br /> <a href="../Coyote-F/Element_Select.html">Element_Select</a> <br /> <a href="../Coyote-F/Element_Submit.html">Element_Submit</a> <br /> <a href="../Coyote-F/Element_Text.html">Element_Text</a> <br /> <a href="../Coyote-F/Element_Textarea.html">Element_Textarea</a> <br /> <a href="../Coyote-F/Email.html">Email</a> <br /> <a href="../Coyote-F/Feed.html">Feed</a> <br /> <a href="../Coyote-F/Feed_Abstract.html">Feed_Abstract</a> <br /> <a href="../Coyote-F/Feed_Atom.html">Feed_Atom</a> <br /> <a href="../Coyote-F/Feed_Element_Atom.html">Feed_Element_Atom</a> <br /> <a href="../Coyote-F/Feed_Element_Rss.html">Feed_Element_Rss</a> <br /> <a href="../Coyote-F/Feed_Rss.html">Feed_Rss</a> <br /> <a href="../Coyote-F/FileExistsException.html">FileExistsException</a> <br /> <a href="../Coyote-F/FileNotFoundException.html">FileNotFoundException</a> <br /> <a href="../Coyote-F/FileSendingFailedException.html">FileSendingFailedException</a> <br /> <a href="../Coyote-F/Filter.html">Filter</a> <br /> <a href="../Coyote-F/Filter_Input.html">Filter_Input</a> <br /> <a href="../Coyote-F/Filter_Replace.html">Filter_Replace</a> <br /> <a href="../Coyote-F/Filter_XSS.html">Filter_XSS</a> <br /> <a href="../Coyote-F/Foo.html">Foo</a> <br /> <a href="../Coyote-F/Form.html">Form</a> <br /> <a href="../Coyote-F/Forms.html">Forms</a> <br /> <a href="../Coyote-F/Forms_Controller.html">Forms_Controller</a> <br /> <a href="../Coyote-F/Form_Decorator_Abstract.html">Form_Decorator_Abstract</a> <br /> <a href="../Coyote-F/Form_Decorator_Description.html">Form_Decorator_Description</a> <br /> <a href="../Coyote-F/Form_Decorator_Errors.html">Form_Decorator_Errors</a> <br /> <a href="../Coyote-F/Form_Decorator_Fieldset.html">Form_Decorator_Fieldset</a> <br /> <a href="../Coyote-F/Form_Decorator_Form.html">Form_Decorator_Form</a> <br /> <a href="../Coyote-F/Form_Decorator_Label.html">Form_Decorator_Label</a> <br /> <a href="../Coyote-F/Form_Decorator_Tag.html">Form_Decorator_Tag</a> <br /> <a href="../Coyote-F/Form_Element_Abstract.html">Form_Element_Abstract</a> <br /> <a href="../Coyote-F/Form_Element_Button.html">Form_Element_Button</a> <br /> <a href="../Coyote-F/Form_Element_Checkbox.html">Form_Element_Checkbox</a> <br /> <a href="../Coyote-F/Form_Element_File.html">Form_Element_File</a> <br /> <a href="../Coyote-F/Form_Element_Hash.html">Form_Element_Hash</a> <br /> <a href="../Coyote-F/Form_Element_Hidden.html">Form_Element_Hidden</a> <br /> <a href="../Coyote-F/Form_Element_Option.html">Form_Element_Option</a> <br /> <a href="../Coyote-F/Form_Element_Password.html">Form_Element_Password</a> <br /> <a href="../Coyote-F/Form_Element_Radio.html">Form_Element_Radio</a> <br /> <a href="../Coyote-F/Form_Element_Select.html">Form_Element_Select</a> <br /> <a href="../Coyote-F/Form_Element_Submit.html">Form_Element_Submit</a> <br /> <a href="../Coyote-F/Form_Element_Text.html">Form_Element_Text</a> <br /> <a href="../Coyote-F/Form_Element_Textarea.html">Form_Element_Textarea</a> <br /> <a href="../Coyote-F/Ftp.html">Ftp</a> <br /> <a href="../Coyote-F/FtpCouldNotConnectException.html">FtpCouldNotConnectException</a> <br /> <a href="../Coyote-F/FtpCouldNotLoginException.html">FtpCouldNotLoginException</a> <br /> <a href="../Coyote-F/Get.html">Get</a> <br /> <a href="../Coyote-F/Gpc.html">Gpc</a> <br /> <a href="../Coyote-F/Html.html">Html</a> <br /> <a href="../Coyote-F/Image.html">Image</a> <br /> <a href="../Coyote-F/index.html">index</a> <br /> <a href="../Coyote-F/Input.html">Input</a> <br /> <a href="../Coyote-F/Lang.html">Lang</a> <br /> <a href="../Coyote-F/Lang_Abstract.html">Lang_Abstract</a> <br /> <a href="../Coyote-F/Lang_Array.html">Lang_Array</a> <br /> <a href="../Coyote-F/Lang_CSV.html">Lang_CSV</a> <br /> <a href="../Coyote-F/Load.html">Load</a> <br /> <a href="../Coyote-F/Loader.html">Loader</a> <br /> <a href="../Coyote-F/Log.html">Log</a> <br /> <a href="../Coyote-F/Model.html">Model</a> <br /> <a href="../Coyote-F/Mysql_Result.html">Mysql_Result</a> <br /> <a href="../Coyote-F/Orm.html">Orm</a> <br /> <a href="../Coyote-F/Output.html">Output</a> <br /> <a href="../Coyote-F/Pagination.html">Pagination</a> <br /> <a href="../Coyote-F/Pdo_Result.html">Pdo_Result</a> <br /> <a href="../Coyote-F/Post.html">Post</a> <br /> <a href="../Coyote-F/Router.html">Router</a> <br /> <a href="../Coyote-F/Server.html">Server</a> <br /> <a href="../Coyote-F/Session.html">Session</a> <br /> <a href="../Coyote-F/Session_Db.html">Session_Db</a> <br /> <a href="../Coyote-F/Session_File.html">Session_File</a> <br /> <a href="../Coyote-F/Sort.html">Sort</a> <br /> <a href="../Coyote-F/Sql.html">Sql</a> <br /> <a href="../Coyote-F/SQLCouldNotConnectException.html">SQLCouldNotConnectException</a> <br /> <a href="../Coyote-F/SQLCouldNotSelectDbException.html">SQLCouldNotSelectDbException</a> <br /> <a href="../Coyote-F/SQLQueryException.html">SQLQueryException</a> <br /> <a href="../Coyote-F/Sql_Query.html">Sql_Query</a> <br /> <a href="../Coyote-F/Test.html">Test</a> <br /> <a href="../Coyote-F/Text.html">Text</a> <br /> <a href="../Coyote-F/Time.html">Time</a> <br /> <a href="../Coyote-F/Trigger.html">Trigger</a> <br /> <a href="../Coyote-F/TriggerException.html">TriggerException</a> <br /> <a href="../Coyote-F/Unit_test.html">Unit_test</a> <br /> <a href="../Coyote-F/Upload.html">Upload</a> <br /> <a href="../Coyote-F/Url.html">Url</a> <br /> <a href="../Coyote-F/Validate.html">Validate</a> <br /> <a href="../Coyote-F/Validate_Abstract.html">Validate_Abstract</a> <br /> <a href="../Coyote-F/Validate_Email.html">Validate_Email</a> <br /> <a href="../Coyote-F/Validate_Equal.html">Validate_Equal</a> <br /> <a href="../Coyote-F/Validate_Float.html">Validate_Float</a> <br /> <a href="../Coyote-F/Validate_Int.html">Validate_Int</a> <br /> <a href="../Coyote-F/Validate_Match.html">Validate_Match</a> <br /> <a href="../Coyote-F/Validate_Nip.html">Validate_Nip</a> <br /> <a href="../Coyote-F/Validate_NotEmpty.html">Validate_NotEmpty</a> <br /> <a href="../Coyote-F/Validate_Regon.html">Validate_Regon</a> <br /> <a href="../Coyote-F/Validate_String.html">Validate_String</a> <br /> <a href="../Coyote-F/Validate_Upload.html">Validate_Upload</a> <br /> <a href="../Coyote-F/Validate_Url.html">Validate_Url</a> <br /> <a href="../Coyote-F/View.html">View</a> <br /> <a href="../Coyote-F/View_Config.html">View_Config</a> <br /> <a href="../Coyote-F/View_XHTML.html">View_XHTML</a> <br /> <a href="../Coyote-F/Zip.html">Zip</a> <br /> <a href="../Coyote-F/Zip_Gz.html">Zip_Gz</a> <br /> <a href="../Coyote-F/Zip_Zip.html">Zip_Zip</a> <br /> </div> </td> <td> <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> <h1>Procedural File: file.class.php</h1> Source Location: /lib/element/file.class.php<br /><br /> <a name="sec-description"></a> <div class="info-box"> <div class="info-box-title">Page Details</div> <div class="nav-bar"> <span class="disabled">Page Details</span> | <a href="#sec-classes">Classes</a> </div> <div class="info-box-body"> </div> </div> <a name="sec-classes"></a> <div class="info-box"> <div class="info-box-title">Classes</div> <div class="nav-bar"> <a href="#sec-description">Page Details</a> | <span class="disabled">Classes</span> </div> <div class="info-box-body"> <table cellpadding="2" cellspacing="0" class="class-table"> <tr> <th class="class-table-header">Class</th> <th class="class-table-header">Description</th> </tr> <tr> <td style="padding-right: 2em; vertical-align: top"> <a href="../Coyote-F/Element_File.html">Element_File</a> </td> <td> </td> </tr> </table> </div> </div> <div class="credit"> <hr class="separator" /> Documentation generated on Tue, 22 Jun 2010 16:42:57 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.0a2</a> </div> </td></tr></table> </td> </tr> </table> </body> </html>
{ "content_hash": "29a7cd85c302a6be4e0170847a2b5080", "timestamp": "", "source": "github", "line_count": 390, "max_line_length": 151, "avg_line_length": 79.52051282051282, "alnum_prop": 0.5868506755231677, "repo_name": "bkielbasa/coyote2", "id": "c65f053ef1c9cf3bdc5b9081a272319d8135f425", "size": "31013", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "framework/docs/api/Coyote-F/_lib---element---file.class.php.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "JavaScript", "bytes": "1276073" }, { "name": "PHP", "bytes": "4841082" } ], "symlink_target": "" }
<?php namespace Requests\Requesters; interface RequestersInterface { public static function isAvailable($method, $scheme); public function setMethod($method); public function setParams($preparedParams); public function getRequestHeaders(); }
{ "content_hash": "65cc8c9eb6ffb864b6f6d7d900f41501", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 57, "avg_line_length": 23.545454545454547, "alnum_prop": 0.7644787644787645, "repo_name": "lonnylot/requests", "id": "29778c14d4e9caa7d33104e6485b018c3f615672", "size": "259", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/Requests/Requesters/RequestersInterface.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "24817" } ], "symlink_target": "" }
import * as assert from 'assert' import * as os from 'os' import { Position, window, workspace, WorkspaceEdit } from 'vscode' import { getFixturePath, getOptionsForFixture, wait } from '../testUtils' import * as utils from 'vscode-test-utils' suite('EditorConfig extension', function () { this.retries(2) suiteTeardown(utils.closeAllFiles) test('indent_style = tab; tab_width = n', async () => { for (const n of [2, 3, 4]) { const options = await getOptionsForFixture([`tab-width-${n}`]) assert.strictEqual( options.insertSpaces, false, `editor has insertSpaces: true`, ) assert.strictEqual( options.tabSize, n, `editor has a tabSize of ${options.tabSize} instead of ${n}`, ) } }) test('indent_style = space; indent_size = n', async () => { for (const n of [2, 3, 4]) { const options = await getOptionsForFixture([`indent-size-${n}`]) assert.strictEqual( options.insertSpaces, true, `editor has insertSpaces: false`, ) assert.strictEqual( options.tabSize, n, `editor has a tabSize of ${options.tabSize} instead of ${n}`, ) } }) test('subfolder settings', async () => { for (const n of [2, 3, 4, 'x']) { const options = await getOptionsForFixture(['folder', `tab-width-${n}`]) const expectedTabSize = n === 'x' ? 8 : n assert.strictEqual( options.insertSpaces, false, `editor has insertSpaces: true`, ) assert.strictEqual( options.tabSize, expectedTabSize, `editor has a tabSize of ${options.tabSize} instead of ${expectedTabSize}`, ) } }) test('insert_final_newline = true', async () => { const savedText = await withSetting( 'insert_final_newline', 'true', ).saveText('foo') assert.strictEqual( savedText, `foo${os.EOL}`, 'editor fails to insert final newline on save', ) }) test('insert_final_newline = false', async () => { const text = `foo${os.EOL}` const savedText = await withSetting( 'insert_final_newline', 'false', ).saveText(text) assert.strictEqual( savedText, text, 'editor fails to preserve final newline on save', ) }) test('insert_final_newline = unset', async () => { const text = `foo${os.EOL}` const savedText1 = await withSetting( 'insert_final_newline', 'unset', ).saveText(text) assert.strictEqual( savedText1, text, 'editor fails to preserve final newline on save', ) const savedText2 = await withSetting( 'insert_final_newline', 'unset-2', ).saveText('foo') assert.strictEqual( savedText2, 'foo', 'editor fails to preserve no final newline on save', ) }) test('trim_trailing_whitespace = true', async () => { const savedText = await withSetting( 'trim_trailing_whitespace', 'true', ).saveText('foo ') assert.strictEqual( savedText, 'foo', 'editor fails to trim trailing whitespace on save', ) }) test('trim_trailing_whitespace = false', async () => { const savedText = await withSetting( 'trim_trailing_whitespace', 'false', ).saveText('foo ') assert.strictEqual( savedText, 'foo ', 'editor fails to preserve trailing whitespace on save', ) }) test('trim_trailing_whitespace = unset', async () => { const savedText = await withSetting( 'trim_trailing_whitespace', 'unset', ).saveText('foo ') assert.strictEqual( savedText, 'foo ', 'editor fails to preserve trailing whitespace on save', ) }) test('end_of_line = lf', async () => { const savedText = await withSetting('end_of_line', 'lf').saveText('foo\r\n') assert.strictEqual( savedText, 'foo\n', 'editor fails to convert CRLF line endings into LF on save', ) }) test('end_of_line = crlf', async () => { const savedText = await withSetting('end_of_line', 'crlf').saveText('foo\n') assert.strictEqual( savedText, 'foo\r\n', 'editor fails to convert LF line endings into CRLF on save', ) }) test('end_of_line = unset', async () => { const savedText = await withSetting('end_of_line', 'unset', { contents: '\r\n', }).saveText('foo') assert.strictEqual( savedText, 'foo\r\n', 'editor fails to preserve CRLF line endings on save', ) }) test('detect indentation (space, empty root)', async () => { const options = await getOptionsForFixture([ 'detect-indentation', 'root', 'indent-style-space', ]) const expectedTabSize = 2 assert.strictEqual( options.tabSize, expectedTabSize, `editor has a tabSize of ${options.tabSize} instead of ${expectedTabSize}`, ) assert.strictEqual( options.insertSpaces, true, `editor has insertSpaces: ${options.insertSpaces}`, ) }) test('detect indentation (tab, empty root)', async () => { const options = await getOptionsForFixture([ 'detect-indentation', 'root', 'indent-style-tab', ]) const expectedTabSize = 4 assert.strictEqual( options.tabSize, expectedTabSize, `editor has a tabSize of ${options.tabSize} instead of ${expectedTabSize}`, ) assert.strictEqual( options.insertSpaces, false, `editor has insertSpaces: ${options.insertSpaces}`, ) }) test('detect indentation (space, unset tab_width=8)', async () => { const options = await getOptionsForFixture([ 'detect-indentation', 'tab_width', 'indent-style-space', ]) const expectedTabSize = 2 assert.strictEqual( options.tabSize, expectedTabSize, `editor has a tabSize of ${options.tabSize} instead of ${expectedTabSize}`, ) assert.strictEqual( options.insertSpaces, true, `editor has insertSpaces: ${options.insertSpaces}`, ) }) test('detect indentation (tab, unset tab_width=4)', async () => { const options = await getOptionsForFixture([ 'detect-indentation', 'tab_width', 'indent-style-tab', ]) const expectedTabSize = 4 assert.strictEqual( options.tabSize, expectedTabSize, `editor has a tabSize of ${options.tabSize} instead of ${expectedTabSize}`, ) assert.strictEqual( options.insertSpaces, false, `editor has insertSpaces: ${options.insertSpaces}`, ) }) test('detect indentation (space, unset)', async () => { const options = await getOptionsForFixture([ 'detect-indentation', 'unset', 'indent-style-space', ]) const expectedTabSize = 2 assert.strictEqual( options.tabSize, expectedTabSize, `editor has a tabSize of ${options.tabSize} instead of ${expectedTabSize}`, ) assert.strictEqual( options.insertSpaces, true, `editor has insertSpaces: ${options.insertSpaces}`, ) }) test('detect indentation (tab, unset)', async () => { const options = await getOptionsForFixture([ 'detect-indentation', 'unset', 'indent-style-tab', ]) const expectedTabSize = 4 assert.strictEqual( options.tabSize, expectedTabSize, `editor has a tabSize of ${options.tabSize} instead of ${expectedTabSize}`, ) assert.strictEqual( options.insertSpaces, false, `editor has insertSpaces: ${options.insertSpaces}`, ) }) }) function withSetting( rule: string, value: string, options: { contents?: string } = {}, ) { return { async getText() { return (await createDoc(options.contents)).getText() }, saveText(text: string) { return new Promise<string>(async resolve => { const doc = await createDoc(options.contents) workspace.onDidChangeTextDocument(doc.save) workspace.onDidSaveTextDocument(savedDoc => { assert.strictEqual(savedDoc.isDirty, false, 'dirty saved doc') resolve(savedDoc.getText()) }) const edit = new WorkspaceEdit() edit.insert(doc.uri, new Position(0, 0), text) assert.strictEqual( await workspace.applyEdit(edit), true, 'editor fails to apply edit', ) }) }, } async function createDoc(contents = '') { const uri = await utils.createFile( contents, getFixturePath([rule, value, 'test']), ) const doc = await workspace.openTextDocument(uri) await window.showTextDocument(doc) await wait(50) // wait for EditorConfig to apply new settings return doc } }
{ "content_hash": "adf1a4bf12f0b3e225c8277bdd482d96", "timestamp": "", "source": "github", "line_count": 329, "max_line_length": 79, "avg_line_length": 24.519756838905774, "alnum_prop": 0.6569976447254245, "repo_name": "editorconfig/editorconfig-vscode", "id": "fa390d8e9d9b26fee7ff8cefd5bf5d76c9096d83", "size": "8067", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "src/test/suite/index.test.ts", "mode": "33188", "license": "mit", "language": [ { "name": "TypeScript", "bytes": "41340" } ], "symlink_target": "" }
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for your application. You may change these defaults | as required, but they're a perfect start for most applications. | */ 'defaults' => [ 'guard' => 'web', 'passwords' => 'users', ], /* |-------------------------------------------------------------------------- | Authentication Guards |-------------------------------------------------------------------------- | | Next, you may define every authentication guard for your application. | Of course, a great default configuration has been defined for you | here which uses session storage and the Eloquent user provider. | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | Supported: "session", "token" | */ 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => 'users', ], ], /* |-------------------------------------------------------------------------- | User Providers |-------------------------------------------------------------------------- | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | If you have multiple user tables or models you may configure multiple | sources which represent each model / table. These sources may then | be assigned to any extra authentication guards you have defined. | | Supported: "database", "eloquent" | */ 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => Api\User::class, ], // 'users' => [ // 'driver' => 'database', // 'table' => 'users', // ], ], /* |-------------------------------------------------------------------------- | Resetting Passwords |-------------------------------------------------------------------------- | | You may specify multiple password reset configurations if you have more | than one user table or model in the application and you want to have | separate password reset settings based on the specific user types. | | The expire time is the number of minutes that the reset token should be | considered valid. This security feature keeps tokens short-lived so | they have less time to be guessed. You may change this as needed. | */ 'passwords' => [ 'users' => [ 'provider' => 'users', 'table' => 'password_resets', 'expire' => 60, ], ], ];
{ "content_hash": "2ed6b15e03d4c4f2366bf3bd56d66851", "timestamp": "", "source": "github", "line_count": 102, "max_line_length": 79, "avg_line_length": 31.872549019607842, "alnum_prop": 0.46601045832051674, "repo_name": "EduFocal/api", "id": "5f6d30069b39bd0b132a178b958b064c2c67e877", "size": "3251", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "config/auth.php", "mode": "33188", "license": "mit", "language": [ { "name": "Gherkin", "bytes": "2364" }, { "name": "HTML", "bytes": "9113" }, { "name": "JavaScript", "bytes": "1137" }, { "name": "PHP", "bytes": "173108" }, { "name": "Shell", "bytes": "141" }, { "name": "Vue", "bytes": "561" } ], "symlink_target": "" }
<readable><title>3585495069_33cba06d0a</title><content> A boy in the air trying to dodge a ball thrown at him . A group of kids playing dodgeball . Four people are kicking a soccer ball in a basketball court . Four people playing ball on a court . Four school aged kids are playing dodgeball in the gym </content></readable>
{ "content_hash": "4451ddd9f9a32ad5ee1617b3cf615e3c", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 61, "avg_line_length": 46.285714285714285, "alnum_prop": 0.7777777777777778, "repo_name": "kevint2u/audio-collector", "id": "dbde57af3961d910d71a51fe3e7c68c7c95445f5", "size": "324", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "captions/xml/3585495069_33cba06d0a.xml", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1015" }, { "name": "HTML", "bytes": "18349" }, { "name": "JavaScript", "bytes": "109819" }, { "name": "Python", "bytes": "3260" }, { "name": "Shell", "bytes": "4319" } ], "symlink_target": "" }
package com.jaxsen.xianghacaipu.ui.cook.adapter; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.List; /** * Created by Administrator on 2017/4/10. */ public class DinnerPagerAdapter extends FragmentPagerAdapter { private List<Fragment> fragments; private List<String> titles; public DinnerPagerAdapter(FragmentManager fm, List<Fragment> fragments, List<String> titles) { super(fm); this.fragments = fragments; this.titles = titles; } @Override public Fragment getItem(int position) { return fragments.get(position); } @Override public int getCount() { return fragments != null ? fragments.size() : 0; } @Override public CharSequence getPageTitle(int position) { return titles.get(position); } }
{ "content_hash": "e51c37dfe03f7f1c088d977775ff8b90", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 98, "avg_line_length": 24.7027027027027, "alnum_prop": 0.6936542669584245, "repo_name": "qianligu/xianghacaipu", "id": "44cf5f058e4878dae3929140063bd72bdeeafe7d", "size": "914", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/jaxsen/xianghacaipu/ui/cook/adapter/DinnerPagerAdapter.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "196346" } ], "symlink_target": "" }
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Kinected; namespace TowerDefense { /// <summary>A Projectile is something fired by a Tower.</summary> class Projectile { private Circle bounds; private Vector2 position, origin, velocity; private float movementSpeed; private float rotation; public Vector2 Position { get { return position; } } public Vector2 Velocity { get { return velocity; } } public Vector2 Origin { get { return origin; } } public Circle Bounds { get { return bounds; } } public float Rotation { get { return rotation; } } /// <summary>Create a new projectile with an initial position, radius, and velocity</summary> public Projectile(Vector2 position, float radius, Vector2 velocity) { this.position = position; this.velocity = velocity; rotation = (float)Math.Atan2((double)velocity.Y, (double)velocity.X) + MathHelper.PiOver2; origin = new Vector2(radius); movementSpeed = 15000.0f; bounds = new Circle(position, 0.0f, radius); } /// <summary>Move the projectile.</summary> public void Update(float timeStep) { // Upate the circle position position += velocity * movementSpeed * timeStep; // Update the bounds bounds.Center = position + origin; } } }
{ "content_hash": "14ff779de1c8e1ae907222558527ca83", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 102, "avg_line_length": 31.058823529411764, "alnum_prop": 0.5965909090909091, "repo_name": "dhanh/kinected", "id": "59755199140c6ff8e644c0480094d9fff1655cbd", "size": "3280", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "TowerDefense/TowerDefense/src/Projectile.cs", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C#", "bytes": "181376" } ], "symlink_target": "" }
package ru.otus.chepiov.l2; import org.junit.Test; import java.util.ArrayList; import java.util.LinkedList; /** * Test cases for Sizer. * * @author <a href="mailto:a.kiekbaev@chepiov.org">Anvar Kiekbaev</a> */ @SuppressWarnings({"Convert2MethodRef", "RedundantStringConstructorCall"}) public class SizerTest { @Test public void jol() { final long emptyObject = Sizer.byJOL(() -> new Object(){}); final long emptyStringWithoutIntern = Sizer.byJOL(() -> new String("")); final long emptyString = Sizer.byJOL(() -> ""); final long emptyArrayList = Sizer.byJOL(() -> new ArrayList()); final long emptyLinkedList = Sizer.byJOL(() -> new LinkedList()); System.out.println("==== JOL ===="); System.out.printf("Size of the empty object: %d\n", emptyObject); System.out.printf("Size of the empty string without interning: %d\n", emptyStringWithoutIntern); System.out.printf("Size of the empty string: %d\n", emptyString); System.out.printf("Size of the empty array list: %d\n", emptyArrayList); System.out.printf("Size of the empty linked list: %d\n", emptyLinkedList); } @Test public void jamm() { final long emptyObject = Sizer.byJAMM(() -> new Object(){}); final long emptyStringWithoutIntern = Sizer.byJAMM(() -> new String("")); final long emptyString = Sizer.byJAMM(() -> ""); final long emptyArrayList = Sizer.byJAMM(() -> new ArrayList()); final long emptyLinkedList = Sizer.byJAMM(() -> new LinkedList()); System.out.println("==== JAMM ===="); System.out.printf("Size of the empty object: %d\n", emptyObject); System.out.printf("Size of the empty string without interning: %d\n", emptyStringWithoutIntern); System.out.printf("Size of the empty string: %d\n", emptyString); System.out.printf("Size of the empty array list: %d\n", emptyArrayList); System.out.printf("Size of the empty linked list: %d\n", emptyLinkedList); } @Test public void jmx() { final long emptyObject = Sizer.byMemAssumption(() -> new Object(){}); final long emptyStringWithoutIntern = Sizer.byMemAssumption(() -> new String("")); final long emptyString = Sizer.byMemAssumption(() -> ""); final long emptyArrayList = Sizer.byMemAssumption(() -> new ArrayList()); final long emptyLinkedList = Sizer.byMemAssumption(() -> new LinkedList()); System.out.println("==== Memory assumption ===="); System.out.printf("Size of the empty object: %d\n", emptyObject); System.out.printf("Size of the empty string without interning: %d\n", emptyStringWithoutIntern); System.out.printf("Size of the empty string: %d\n", emptyString); System.out.printf("Size of the empty array list: %d\n", emptyArrayList); System.out.printf("Size of the empty linked list: %d\n", emptyLinkedList); } }
{ "content_hash": "32636a2d108ff1e4a0f9b2cdf28cb91c", "timestamp": "", "source": "github", "line_count": 65, "max_line_length": 104, "avg_line_length": 45.49230769230769, "alnum_prop": 0.6435576597903281, "repo_name": "chepiov/otus-java-2017-04-kiekbaev", "id": "d0b2b00fb88039a35230427de4716e8f19fe3e9f", "size": "2957", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lesson02/src/test/java/ru/otus/chepiov/l2/SizerTest.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "89104" } ], "symlink_target": "" }
package org.netbeans.modules.multilangsourcefilepalette.java; import java.util.ArrayList; import javax.swing.DefaultComboBoxModel; import javax.swing.text.BadLocationException; import javax.swing.text.JTextComponent; import org.netbeans.modules.multilangsourcefilepalette.PaletteUtilities; import org.netbeans.modules.multilangsourcefilepalette.Customizer.*; import org.openide.text.ActiveEditorDrop; public class NewMethod implements ActiveEditorDrop { private Customizer c; private ComboComboComboField cccfPanel; private ComboField cfPanel; private AddRemovePanel addRemovePanel; private Field fPanel; private String comment = ""; private String modifier1 = ""; private String modifier2 = ""; private String returnType = ""; private String methodName = ""; private String returnValue = ""; private ArrayList<String> parameters = new ArrayList<>(); private String createBody() { String body = ""; int paramSize = parameters.size(); if (!comment.isEmpty()) { body += String.format("// %s\n", comment); // body += String.format("/**\n*%s", comment); // for (int i = 0; i < parameters.size(); i++) { // String temp[] = parameters.get(i).split(" "); // body+= "\n* @param " + temp[1]; // } // // if (!returnType.isEmpty()) // body += "\n* @return"; // body += "\n*/"; } if (methodName.isEmpty()) { return ""; } body += String.format("%s %s %s %s(", modifier1, modifier2, returnType, methodName); while (!parameters.isEmpty()) { body += parameters.get(0) + ", "; parameters.remove(0); } if (paramSize > 0) { body = body.substring(0, body.length() - 2); } if (!returnValue.isEmpty()) { body += String.format(") {\n //TODO\nreturn %s;\n}", returnValue); } else { body += ") {\n //TODO\n}\n"; } return body; } @Override public boolean handleTransfer(JTextComponent targetComponent) { c = new Customizer(targetComponent); cfPanel = new ComboField(); cccfPanel = new ComboComboComboField(); addRemovePanel = new AddRemovePanel(cfPanel); fPanel = new Field(); c.setDescriptionText("A method is a set of statements that can be" + " called by name. "); c.setExampleText("public static int exampleMethod(int a, int b) { " + "\n return 0; " + "\n}"); cfPanel.getjLabel1().setText("Parameter Type: "); cfPanel.getjLabel2().setText("Parameter Name: "); cfPanel.getjComboBox1().setModel(new DefaultComboBoxModel<>( new String[]{"int", "String", "char", "double", "boolean"})); c.addPanel(cccfPanel, cfPanel, addRemovePanel, fPanel); boolean accept = c.showDialog(); if (accept) { comment = c.getComment(); modifier1 = cccfPanel.getjComboBox1Text(); modifier2 = cccfPanel.getjComboBox2Text(); returnType = cccfPanel.getjComboBox3Text(); methodName = cccfPanel.getjTextField1Text(); parameters = addRemovePanel.getListValues(); returnValue = fPanel.getjTextField1Text(); String body = createBody(); try { PaletteUtilities.insert(body, targetComponent); } catch (BadLocationException ble) { accept = false; } } return accept; } }
{ "content_hash": "1c39ef9d78dcf66799e0f86b0c478acf", "timestamp": "", "source": "github", "line_count": 102, "max_line_length": 81, "avg_line_length": 36.27450980392157, "alnum_prop": 0.5694594594594594, "repo_name": "oziasg/MultiLangSourceFilePalette", "id": "baf7eae6833c3caa8f28c80bf1ca82d7aa0c6a75", "size": "3700", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/org/netbeans/modules/multilangsourcefilepalette/java/NewMethod.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "826473" } ], "symlink_target": "" }
title: {{ title }} tags: [] categories: [] ---
{ "content_hash": "aebd3360494db4755ce4081776affb7c", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 18, "avg_line_length": 8.166666666666666, "alnum_prop": 0.4897959183673469, "repo_name": "promisejohn/blog", "id": "00dee3d1d44d942838d73e636818b6f34ac76ed3", "size": "53", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "scaffolds/draft.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "74092" }, { "name": "JavaScript", "bytes": "131004" } ], "symlink_target": "" }
from scrapy.spiders import Spider from scrapy.http.response import Response from scrapy.http.request import Request from projects.biquge.biquge.items import XiaoShuo class XiaoShuoList(Spider): name = "XiaoShuoList" allowed_domains = ["biquge.la"] start_urls = [ 'http://www.biquge.la/xiaoshuodaquan/' ] #mongo settings database = "biquge" collection = "xiaoshuos" type = "insert" def parse(self, response): for xiaoshuoitem in response.css("div#main li"): item = XiaoShuo() item['title'] = xiaoshuoitem.css("a::text").extract_first().encode('utf8') item['link'] = "http://www.biquge.la" + xiaoshuoitem.css("a::attr(href)").extract_first() text = xiaoshuoitem.css("li::text").re("^\(([^\)]+).*/(.*)") item['complete'] = False if text[0] == u'\u8f7d' else True item['author'] = text[1].encode('utf8') yield item
{ "content_hash": "1f473e55a4c699cf2d2a83ba4f0a4e28", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 101, "avg_line_length": 29.9375, "alnum_prop": 0.6002087682672234, "repo_name": "shengcanxu/CCrawler", "id": "956d116821df934b6ec576c3aa6d89a4cc663130", "size": "959", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "source/projects/biquge/biquge/spiders/XiaoShuoList.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "736" }, { "name": "JavaScript", "bytes": "22520" }, { "name": "Python", "bytes": "185275" }, { "name": "Shell", "bytes": "1344" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mycat:server> <mycat> <server-config> <system> <property name="sequnceHandlerType">2</property> <property name="serverPort">8066</property> <property name="managerPort">9066</property> <property name="charset">utf8</property> </system> <user name="root"> <property name="password">lexin112358</property> <property name="schemas">TESTDB</property> </user> </server-config> <schema-config> <schema name="TESTDB" checkSQLschema="false" sqlMaxLimit="100"> <!-- auto sharding by id (long) --> <table name="travelrecord" dataNode="dn1,dn2,dn3" rule="auto-sharding-long" /> <!-- <table name="company" primaryKey="id" dataNode="dn1,dn2,dn3" rule="sharding-by-mod"/> <table name="customer" primaryKey="ID" dataNode="dn1,dn2" rule="sharding-by-enum"> <childTable name="orders" primaryKey="ID" joinKey="customer_id" parentKey="id" /> <childTable name="order_items" joinKey="order_id" parentKey="id" /> <childTable name="customer_addr" primaryKey="ID" joinKey="customer_id" parentKey="id" /> </table> --> </schema> <dataNode name="dn1" dataHost="localhost1" database="db1" /> <dataNode name="dn2" dataHost="localhost1" database="db2" /> <dataNode name="dn3" dataHost="localhost1" database="db3" /> <dataHost name="localhost1" maxCon="1000" minCon="10" balance="0" writeType="0" dbType="mysql" dbDriver="native" switchType="1" slaveThreshold="100"> <heartbeat>select user()</heartbeat> <!-- can have multi write hosts --> <writeHost host="hostM1" url="localhost:3306" user="root" password="lexin112358"> <!-- can have multi read hosts --> <readHost host="hostS1" url="192.168.1.200:3306" user="root" password="digdeep" /> </writeHost> </dataHost> <dataNode name="dn4" dataHost="jdbchost" database="mycat_node1" /> <dataNode name="dn5" dataHost="jdbchost" database="mycat_node1" /> <dataHost name="jdbchost" maxCon="2000" minCon="10" balance="1" writeType="0" dbType="mysql" dbDriver="native" switchType="1"> <heartbeat>select 1</heartbeat> <writeHost host="master" url="192.168.1.3:3306" user="root" password="lexin112358"></writeHost> </dataHost> </schema-config> <rule-config> <tableRule name="sharding-by-hour" column="create_time" functionName="io.mycat.route.function.LatestMonthPartion"> <property name="splitOneDay">24</property> </tableRule> <tableRule name="sharding-by-date" column="create_time" functionName="io.mycat.route.function.PartitionByDate"> <property name="dateFormat">yyyy-MM-dd</property> <property name="sBeginDate">2014-01-01</property> <property name="sPartionDay">10</property> </tableRule> <tableRule name="sharding-by-enum" column="create_time" functionName="io.mycat.route.function.PartitionByFileMap"> <property name="type">0</property> <property name="defaultNode">0</property> <config> <!--10000=0 10010=1 --> <property name="10000">0</property> <property name="10010">1</property> </config> </tableRule> <tableRule name="sharding-by-JumpConsistentHash" column="id" functionName="io.mycat.route.function.PartitionByJumpConsistentHash"> <property name="totalBuckets">3</property> </tableRule> <tableRule name="auto-sharding-long" column="id" functionName="io.mycat.route.function.AutoPartitionByLong"> <property name="defaultNode">0</property> <config> <!-- # range start-end ,data node index # K=1000,M=10000. --> <property name="0-2000000">0</property> <property name="2000001-4000000">1</property> <property name="4000001-8000000">2</property> </config> </tableRule> <tableRule name="sharding-by-mod" column="id" functionName="io.mycat.route.function.PartitionByMod"> <property name="count">3</property> </tableRule> <tableRule name="sharding-by-month" column="create_time" functionName="io.mycat.route.function.PartitionByMonth"> <property name="dateFormat">yyyy-MM-dd</property> <property name="sBeginDate">2014-01-01</property> </tableRule> <tableRule name="sharding-by-MurmurHash" column="id" functionName="io.mycat.route.function.PartitionByMurmurHash"> <property name="seed">0</property> <property name="count">2</property> <property name="virtualBucketTimes">160</property> <!-- <property name="weightMapFile">weightMapFile</property> <property name="bucketMapPath">/home/usr/mycat/bucketMapPath</property> --> </tableRule> <tableRule name="sharding-by-Pattern" column="id" functionName="io.mycat.route.function.PartitionByPattern"> <property name="patternValue">256</property> <property name="defaultNode">2</property> <config> <!-- # # id partition range start-end ,data node index ###### first host configuration --> <property name="1-32">0</property> <property name="33-64">1</property> <property name="65-96">2</property> <property name="97-128">3</property> <!-- ######## second host configuration --> <property name="129-160">4</property> <property name="161-192">5</property> <property name="193-224">6</property> <property name="225-256">7</property> <property name="0-0">7</property> </config> </tableRule> <tableRule name="sharding-by-PrefixPattern" column="id" functionName="io.mycat.route.function.PartitionByPrefixPattern"> <property name="patternValue">32</property> <property name="prefixLength">5</property> <config> <!-- # range start-end ,data node index # ASCII # 8-57=0-9阿拉伯数字 # 64、65-90=@、A-Z # 97-122=a-z --> <property name="1-4">0</property> <property name="5-8">1</property> <property name="9-12">2</property> <property name="13-16">3</property> <!-- ######## second host configuration --> <property name="17-20">4</property> <property name="21-24">5</property> <property name="25-28">6</property> <property name="29-32">7</property> <property name="0-0">7</property> </config> </tableRule> <!-- sPartionDay代表多少天分一个分片 groupPartionSize代表分片组的大小 --> <tableRule name="sharding-by-RangeDateHash" column="create_time" functionName="io.mycat.route.function.PartitionByRangeDateHash"> <property name="sBeginDate">2014-01-01 00:00:00</property> <property name="sPartionDay">3</property> <property name="dateFormat">yyyy-MM-dd HH:mm:ss</property> <property name="groupPartionSize">6</property> </tableRule> <!-- sPartionDay代表多少天分一个分片 groupPartionSize代表分片组的大小 --> <tableRule name="auto-sharding-rang-mod" column="id" functionName="io.mycat.route.function.PartitionByRangeMod"> <property name="defaultNode">21</property> <config> <!-- # range start-end ,data node group size 以下配置一个范围代表一个分片组,=号后面的数字代表该分片组所拥有的分片的数量。--> <property name="0-200M">5</property> <property name="200M1-400M">1</property> <property name="400M1-600M">4</property> <property name="600M1-800M">4</property> <property name="800M1-1000M">6</property> </config> </tableRule> <!-- /** * “2” -> (0,2) * “1:2” -> (1,2) * “1:” -> (1,0) * “-1:” -> (-1,0) * “:-1” -> (0,-1) * “:” -> (0,0) */ -4,0代表倒数后4个 --> <tableRule name="sharding-by-String" column="create_time" functionName="io.mycat.route.function.PartitionByString"> <property name="partitionLength">512</property><!-- zero-based --> <property name="partitionCount">2</property> <property name="hashSlice">0:2</property> </tableRule> <!-- 根据Velocity模板语言,分库分表规则更加灵活,例如一共100个分库,字段中包含时间信息,取时间的月份与天,hashCode再对100取余 --> <tableRule name="sharding-by-PartitionByVelocity" column="create_time" functionName="io.mycat.route.function.PartitionByVelocity"> <property name="columnName">id</property><!--id="20010222330011" partition=95 --> <property name="rule"><![CDATA[ #set($Integer=0)## #set($monthday=$stringUtil.substring($id,4,8))## #set($prefix=$monthday.hashCode()%100)## $!prefix]]> </property> </tableRule> <tableRule name="sharding-by-PartitionDirectBySubString" column="create_time" functionName="io.mycat.route.function.PartitionDirectBySubString"> <property name="startIndex">0</property><!-- zero-based --> <property name="size">2</property> <property name="partitionCount">8</property> <property name="defaultPartition">0</property> </tableRule> </rule-config> <sequence-config> <!-- GLOBAL_SEQ.HISIDS= GLOBAL_SEQ.MINID=1001 GLOBAL_SEQ.MAXID=1000000000 GLOBAL_SEQ.CURID=1000 --> <sequence type="0" class="io.mycat.server.sequence.IncrSequencePropHandler"> <!-- <property name="filePath">dn1</property> --> </sequence> </sequence-config> <!-- <cluster-config> <cluster name="cluster"> <node name="mycat1"> <property name="host">127.0.0.1</property> <property name="weight">1</property> </node> </cluster> 隔离区定义,可以限定某个主机上只允许某个用户登录。 <quarantine> <host name="1.2.3.4"> <property name="user">test</property> </host> </quarantine> </cluster-config> --> <!-- <dnindex-config> <property name="jdbchost">0</property> </dnindex-config> --> <!-- charset-config 已经没有作用了,可以去掉 <charset-config> <property name="55">utf8</property> </charset-config> --> </mycat>
{ "content_hash": "a444bbfd19f843cb6b43ad6ee6c5bf78", "timestamp": "", "source": "github", "line_count": 210, "max_line_length": 152, "avg_line_length": 49.166666666666664, "alnum_prop": 0.6047457627118644, "repo_name": "belloner/Mycat-Server", "id": "34d8f93f64da96b0b597a5d0ca01609b83dcaae3", "size": "10695", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "src/main/resources/mycat.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "4790" }, { "name": "CSS", "bytes": "5337" }, { "name": "HTML", "bytes": "15511" }, { "name": "Java", "bytes": "2422890" }, { "name": "JavaScript", "bytes": "3555" }, { "name": "Shell", "bytes": "8956" } ], "symlink_target": "" }
from . import asyncio from . import decorators from .repr_builder import ReprBuilder from .signal import Signal
{ "content_hash": "f90a53d17bb8203f2f2825293218e892", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 37, "avg_line_length": 28, "alnum_prop": 0.8125, "repo_name": "datadvance/pRpc", "id": "b95c29bf77f07b01190c1dbe8c1145deb5ba08b9", "size": "1222", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "prpc/utils/__init__.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "212396" } ], "symlink_target": "" }
namespace Doozestan.Domain { public class ClientClaimMap : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<ClientClaim> { public ClientClaimMap() : this("dbo") { } public ClientClaimMap(string schema) { ToTable("ClientClaims", schema); HasKey(x => x.Id); Property(x => x.Id).HasColumnName(@"Id").IsRequired().HasColumnType("int").HasDatabaseGeneratedOption(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity); Property(x => x.Type).HasColumnName(@"Type").IsRequired().HasColumnType("nvarchar").HasMaxLength(250); Property(x => x.Value).HasColumnName(@"Value").IsRequired().HasColumnType("nvarchar").HasMaxLength(250); Property(x => x.ClientId).HasColumnName(@"Client_Id").IsRequired().HasColumnType("int"); HasRequired(a => a.Client).WithMany(b => b.ClientClaims).HasForeignKey(c => c.ClientId); } } }
{ "content_hash": "5e321b9bc499003ceb5083d2b1578c95", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 193, "avg_line_length": 38.65384615384615, "alnum_prop": 0.6437810945273632, "repo_name": "MostafaEsmaeili/DOOOZestan", "id": "c62a837bc9ee13126222bd1cad2b45043d7d6d27", "size": "1080", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "BackEnd/Core/Domain/Src/Doozestan.Domain/Entity/Map/ClientClaimMap.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "208" }, { "name": "C#", "bytes": "1476160" }, { "name": "CSS", "bytes": "731732" }, { "name": "HTML", "bytes": "81408" }, { "name": "JavaScript", "bytes": "392523" }, { "name": "PowerShell", "bytes": "25003" } ], "symlink_target": "" }
package lj_3d.pulltorefreshsample.utils; import android.os.Handler; import android.util.Log; import lj_3d.gearloadinglayout.gearViews.GearLoadingLayout; import lj_3d.pulltorefresh.PullToRefreshLayout; import lj_3d.pulltorefresh.callbacks.OnRefreshCallback; /** * Created by liubomyr on 08.02.17. */ public class PullToRefreshConfigurator { public static void setupPullToRefresh(final PullToRefreshLayout pullToRefreshLayout, final GearLoadingLayout gearLoadingLayout) { pullToRefreshLayout.setFullBackDuration(500); pullToRefreshLayout.setTensionBackDuration(1500); // pullToRefreshLayout.setTensionInterpolator(new OvershootInterpolator()); pullToRefreshLayout.setOnRefreshCallback(new OnRefreshCallback() { @Override public void onRefresh() { gearLoadingLayout.start(true); new Handler().postDelayed(new Runnable() { @Override public void run() { pullToRefreshLayout.finishRefresh(); } }, 2000); } @Override public void onDrag(float offset) { gearLoadingLayout.rotateByValue(offset); } @Override public void onTension(float offset) { final float scaleValue = 0.1f * offset; gearLoadingLayout.setScaleX(1 + scaleValue); gearLoadingLayout.setScaleY(1 + scaleValue); } @Override public void onTensionUp(float offset) { final float scaleValue = 0.1f * offset; final float rotateValue = -360f * (offset * 0.07f); gearLoadingLayout.setScaleX(1.1f - scaleValue); gearLoadingLayout.setScaleY(1.1f - scaleValue); gearLoadingLayout.rotateByValue(offset); Log.d("rotate_tension", " " + rotateValue); } @Override public void onStartClose() { } @Override public void onFinishClose() { gearLoadingLayout.stop(); } @Override public void onTensionUpComplete() { } @Override public void onTensionUpStart() { } }); // new Handler().postDelayed(new Runnable() { // @Override // public void run() { // pullToRefreshLayout.callAutoRefresh(); // } // }, 1000); } }
{ "content_hash": "3ff00c3650a21d8ad4451083b3894165", "timestamp": "", "source": "github", "line_count": 84, "max_line_length": 133, "avg_line_length": 30.595238095238095, "alnum_prop": 0.5649805447470817, "repo_name": "lj-3d/PullToRefreshDevlightLayout", "id": "833f7daf7e55aad1a08addbc5cb7e07d1feadc73", "size": "2570", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/lj_3d/pulltorefreshsample/utils/PullToRefreshConfigurator.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "110232" } ], "symlink_target": "" }
package utils /** * Created with IntelliJ IDEA. * User: niklas * Date: 4/4/12 * Time: 6:57 PM * To change this template use File | Settings | File Templates. */ import java.util.concurrent.BlockingQueue import java.util.concurrent.LinkedBlockingQueue import java.util.UUID import scala.actors._ import scala.actors.Actor._ import scala.collection.mutable.Queue object UniqueIdGenerator{ val uuids = new Queue[UUID] //new LinkedBlockingQueue[UUID]() populate(); def getId: UUID = { //val id = uuids.take() val id = uuids.dequeue //repoulate if empty if(uuids.size==0){ populate() } return id } def uuid: String = { return UniqueIdGenerator.getId.toString } def populate() = { println("populating...") for( i <- 1 to 1000){ //uuids.put(UUID.randomUUID())// uuids.enqueue(UUID.randomUUID()) } } }
{ "content_hash": "fd895bbb45e28a3ca9fd9752ea6d4e5a", "timestamp": "", "source": "github", "line_count": 45, "max_line_length": 64, "avg_line_length": 19.622222222222224, "alnum_prop": 0.6568516421291053, "repo_name": "niklassaers/Cima", "id": "e3383296adc0b85a15b9d0fac51c3b3bb960bcf1", "size": "883", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/utils/UniqueIdGenerator.scala", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Scala", "bytes": "23259" }, { "name": "Shell", "bytes": "302" } ], "symlink_target": "" }
<?php class CoServiceFixture extends CakeTestFixture { // Import schema for the model from the default database public $import = array('model' => 'CoService'); }
{ "content_hash": "ec948d037fa31ef779d8e1de84b4f1cc", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 58, "avg_line_length": 21.125, "alnum_prop": 0.7218934911242604, "repo_name": "mlaa/comanage-registry", "id": "8545ba6ff56a325d136429d755d8610d88c0203a", "size": "1294", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "app/Test/Fixture/CoServiceFixture.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ApacheConf", "bytes": "737" }, { "name": "Batchfile", "bytes": "2824" }, { "name": "CSS", "bytes": "472681" }, { "name": "HTML", "bytes": "32588" }, { "name": "JavaScript", "bytes": "263581" }, { "name": "PHP", "bytes": "12206479" }, { "name": "Shell", "bytes": "5430" }, { "name": "XSLT", "bytes": "808" } ], "symlink_target": "" }
var Hapi = require('hapi'); var products = require('./modules/products'); var navlist = require('./modules/navlist'); var simplehello = require('./modules/simplehello'); var recipes = require('./modules/recipes'); // Server config var config = { }; // Create a server with a host and port var server = Hapi.createServer('localhost', 9993, config); server.pack.require({ lout: { endpoint: '/docs' } }, function (err) { if (err) { console.log('Failed loading plugins'); } }); server.route(products); server.route(navlist); server.route(simplehello); server.route(recipes); // Start the server server.start();
{ "content_hash": "6804ae38e46bbe5cc55c903a9e55f8ba", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 58, "avg_line_length": 24.653846153846153, "alnum_prop": 0.6661466458658346, "repo_name": "TuvokVersatileKolinahr/asok-backend", "id": "2a26fed4c983fa26d11e0be995254f2e858f8ff6", "size": "641", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "index.js", "mode": "33261", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "15016" } ], "symlink_target": "" }
// // NSObject+MDMember.h // MDHandleData // // Created by 没懂 on 2017/4/17. // Copyright © 2017年 com.infomacro. All rights reserved. // #import <Foundation/Foundation.h> #import "MDIvar.h" // 遍历所有类的block父类 typedef void(^MDClassesBlock)(Class c,BOOL *stop); @interface NSObject (MDMember) /** 遍历所有的成员变量 @param block block */ - (void)enmuerateIvarsWithBlock:(MDIvarsBlock)block; // 遍历所有的方法 暂时不写 //- (void)enumerateMethodsWithBlock:(MJMethodsBlock)block; /** 遍历所有的类 @param block 遍历类的block */ - (void)enmuerateClassesWithBlock:(MDClassesBlock)block; @end
{ "content_hash": "57ddb755d253f037b5e28e96783890e9", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 58, "avg_line_length": 16.764705882352942, "alnum_prop": 0.7228070175438597, "repo_name": "meidong163/MDExtention", "id": "5ec7c1a50cf689b4b2723a72c4cfa42a1027bd43", "size": "653", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "MDHandleData/MDDataBaseHelper/MDExtension/NSObject+MDMember.h", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "51690" }, { "name": "Roff", "bytes": "813" }, { "name": "Ruby", "bytes": "6684" } ], "symlink_target": "" }
/*[clinic input] preserve [clinic start generated code]*/ PyDoc_STRVAR(type___instancecheck____doc__, "__instancecheck__($self, instance, /)\n" "--\n" "\n" "Check if an object is an instance."); #define TYPE___INSTANCECHECK___METHODDEF \ {"__instancecheck__", (PyCFunction)type___instancecheck__, METH_O, type___instancecheck____doc__}, static int type___instancecheck___impl(PyTypeObject *self, PyObject *instance); static PyObject * type___instancecheck__(PyTypeObject *self, PyObject *instance) { PyObject *return_value = NULL; int _return_value; _return_value = type___instancecheck___impl(self, instance); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; } return_value = PyBool_FromLong((long)_return_value); exit: return return_value; } PyDoc_STRVAR(type___subclasscheck____doc__, "__subclasscheck__($self, subclass, /)\n" "--\n" "\n" "Check if a class is a subclass."); #define TYPE___SUBCLASSCHECK___METHODDEF \ {"__subclasscheck__", (PyCFunction)type___subclasscheck__, METH_O, type___subclasscheck____doc__}, static int type___subclasscheck___impl(PyTypeObject *self, PyObject *subclass); static PyObject * type___subclasscheck__(PyTypeObject *self, PyObject *subclass) { PyObject *return_value = NULL; int _return_value; _return_value = type___subclasscheck___impl(self, subclass); if ((_return_value == -1) && PyErr_Occurred()) { goto exit; } return_value = PyBool_FromLong((long)_return_value); exit: return return_value; } PyDoc_STRVAR(type_mro__doc__, "mro($self, /)\n" "--\n" "\n" "Return a type\'s method resolution order."); #define TYPE_MRO_METHODDEF \ {"mro", (PyCFunction)type_mro, METH_NOARGS, type_mro__doc__}, static PyObject * type_mro_impl(PyTypeObject *self); static PyObject * type_mro(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) { return type_mro_impl(self); } PyDoc_STRVAR(type___subclasses____doc__, "__subclasses__($self, /)\n" "--\n" "\n" "Return a list of immediate subclasses."); #define TYPE___SUBCLASSES___METHODDEF \ {"__subclasses__", (PyCFunction)type___subclasses__, METH_NOARGS, type___subclasses____doc__}, static PyObject * type___subclasses___impl(PyTypeObject *self); static PyObject * type___subclasses__(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) { return type___subclasses___impl(self); } PyDoc_STRVAR(type___dir____doc__, "__dir__($self, /)\n" "--\n" "\n" "Specialized __dir__ implementation for types."); #define TYPE___DIR___METHODDEF \ {"__dir__", (PyCFunction)type___dir__, METH_NOARGS, type___dir____doc__}, static PyObject * type___dir___impl(PyTypeObject *self); static PyObject * type___dir__(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) { return type___dir___impl(self); } PyDoc_STRVAR(type___sizeof____doc__, "__sizeof__($self, /)\n" "--\n" "\n" "Return memory consumption of the type object."); #define TYPE___SIZEOF___METHODDEF \ {"__sizeof__", (PyCFunction)type___sizeof__, METH_NOARGS, type___sizeof____doc__}, static PyObject * type___sizeof___impl(PyTypeObject *self); static PyObject * type___sizeof__(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) { return type___sizeof___impl(self); } PyDoc_STRVAR(object___reduce____doc__, "__reduce__($self, /)\n" "--\n" "\n" "Helper for pickle."); #define OBJECT___REDUCE___METHODDEF \ {"__reduce__", (PyCFunction)object___reduce__, METH_NOARGS, object___reduce____doc__}, static PyObject * object___reduce___impl(PyObject *self); static PyObject * object___reduce__(PyObject *self, PyObject *Py_UNUSED(ignored)) { return object___reduce___impl(self); } PyDoc_STRVAR(object___reduce_ex____doc__, "__reduce_ex__($self, protocol, /)\n" "--\n" "\n" "Helper for pickle."); #define OBJECT___REDUCE_EX___METHODDEF \ {"__reduce_ex__", (PyCFunction)object___reduce_ex__, METH_O, object___reduce_ex____doc__}, static PyObject * object___reduce_ex___impl(PyObject *self, int protocol); static PyObject * object___reduce_ex__(PyObject *self, PyObject *arg) { PyObject *return_value = NULL; int protocol; if (PyFloat_Check(arg)) { PyErr_SetString(PyExc_TypeError, "integer argument expected, got float" ); goto exit; } protocol = _PyLong_AsInt(arg); if (protocol == -1 && PyErr_Occurred()) { goto exit; } return_value = object___reduce_ex___impl(self, protocol); exit: return return_value; } PyDoc_STRVAR(object___format____doc__, "__format__($self, format_spec, /)\n" "--\n" "\n" "Default object formatter."); #define OBJECT___FORMAT___METHODDEF \ {"__format__", (PyCFunction)object___format__, METH_O, object___format____doc__}, static PyObject * object___format___impl(PyObject *self, PyObject *format_spec); static PyObject * object___format__(PyObject *self, PyObject *arg) { PyObject *return_value = NULL; PyObject *format_spec; if (!PyUnicode_Check(arg)) { _PyArg_BadArgument("__format__", "argument", "str", arg); goto exit; } if (PyUnicode_READY(arg) == -1) { goto exit; } format_spec = arg; return_value = object___format___impl(self, format_spec); exit: return return_value; } PyDoc_STRVAR(object___sizeof____doc__, "__sizeof__($self, /)\n" "--\n" "\n" "Size of object in memory, in bytes."); #define OBJECT___SIZEOF___METHODDEF \ {"__sizeof__", (PyCFunction)object___sizeof__, METH_NOARGS, object___sizeof____doc__}, static PyObject * object___sizeof___impl(PyObject *self); static PyObject * object___sizeof__(PyObject *self, PyObject *Py_UNUSED(ignored)) { return object___sizeof___impl(self); } PyDoc_STRVAR(object___dir____doc__, "__dir__($self, /)\n" "--\n" "\n" "Default dir() implementation."); #define OBJECT___DIR___METHODDEF \ {"__dir__", (PyCFunction)object___dir__, METH_NOARGS, object___dir____doc__}, static PyObject * object___dir___impl(PyObject *self); static PyObject * object___dir__(PyObject *self, PyObject *Py_UNUSED(ignored)) { return object___dir___impl(self); } /*[clinic end generated code: output=7a6d272d282308f3 input=a9049054013a1b77]*/
{ "content_hash": "f9c75f8e15c51e06ef8974a508e8654e", "timestamp": "", "source": "github", "line_count": 251, "max_line_length": 102, "avg_line_length": 24.617529880478088, "alnum_prop": 0.6326266386146626, "repo_name": "batermj/algorithm-challenger", "id": "357eb44b12b8a14923caa6a6d61c129ca6d753fa", "size": "6179", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "code-analysis/programming_anguage/python/source_codes/Python3.8.0/Python-3.8.0/Objects/clinic/typeobject.c.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Assembly", "bytes": "655185" }, { "name": "Batchfile", "bytes": "127416" }, { "name": "C", "bytes": "33127630" }, { "name": "C++", "bytes": "1364796" }, { "name": "CSS", "bytes": "3163" }, { "name": "Common Lisp", "bytes": "48962" }, { "name": "DIGITAL Command Language", "bytes": "26402" }, { "name": "DTrace", "bytes": "2196" }, { "name": "Go", "bytes": "26248" }, { "name": "HTML", "bytes": "385719" }, { "name": "Haskell", "bytes": "33612" }, { "name": "Java", "bytes": "1084" }, { "name": "JavaScript", "bytes": "20754" }, { "name": "M4", "bytes": "403992" }, { "name": "Makefile", "bytes": "238185" }, { "name": "Objective-C", "bytes": "4934684" }, { "name": "PHP", "bytes": "3513" }, { "name": "PLSQL", "bytes": "45772" }, { "name": "Perl", "bytes": "649" }, { "name": "PostScript", "bytes": "27606" }, { "name": "PowerShell", "bytes": "21737" }, { "name": "Python", "bytes": "55270625" }, { "name": "R", "bytes": "29951" }, { "name": "Rich Text Format", "bytes": "14551" }, { "name": "Roff", "bytes": "292490" }, { "name": "Ruby", "bytes": "519" }, { "name": "Scala", "bytes": "846446" }, { "name": "Shell", "bytes": "491113" }, { "name": "Swift", "bytes": "881" }, { "name": "TeX", "bytes": "337654" }, { "name": "VBScript", "bytes": "140" }, { "name": "XSLT", "bytes": "153" } ], "symlink_target": "" }
import React, { Component } from 'react'; import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from 'react-modal-bootstrap'; export default class Input extends Component { constructor(props) { super(props); } render() { return ( <Modal isOpen={this.props.isOpen} onRequestHide={this.props.hideModal}> <ModalHeader> <ModalClose onClick={this.props.hideModal} /> </ModalHeader> <ModalBody> {/* <h4>You guessed the song:</h4> */} <h2>{this.props.title}</h2> <h6>by</h6> <h2>{this.props.artist}</h2> <a href={this.props.url} target="_blank">View lyrics on source page.</a> </ModalBody> <ModalFooter> <button type="button" className="btn btn-primary" onClick={(e) => this.props.handleClickEvent(e)}>Play again?</button> </ModalFooter> </Modal> ) } }
{ "content_hash": "98aae5aa904a3a8c8d2db4e7dfafadac", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 138, "avg_line_length": 29.64864864864865, "alnum_prop": 0.5031905195989061, "repo_name": "rxtATX/Lyrical", "id": "2f47c9ca1b14dd2f7e1e0f438b8d142d028c86a2", "size": "1097", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/components/children/Modal.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "609" }, { "name": "HTML", "bytes": "1118" }, { "name": "JavaScript", "bytes": "13349" } ], "symlink_target": "" }
using CommandLine; namespace Revida.Sitecore.Assurance.Configuration { public class CommandLineParameters { [Option('r', "root", Required = true)] public string Root { get; set; } [Option('b', "baseurl")] public string BaseUrl { get; set; } [Option('d', "domain")] public string Domain { get; set; } [Option('u', "username")] public string Username { get; set; } [Option('p', "password")] public string Password { get; set; } [Option('l', "list")] public bool ListUrls { get; set; } [Option('h', "http")] public bool RunHttpChecker { get; set; } [Option('s', "selenium")] public bool RunWebDriverChecker { get; set; } [Option('i', "inputfile")] public string InputFileName { get; set; } } }
{ "content_hash": "1ec5e95212f79edf3b4d4c803a4a6eec", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 53, "avg_line_length": 25.441176470588236, "alnum_prop": 0.5421965317919075, "repo_name": "revida/sitecore-assurance", "id": "b0af000b239206ce1396ae6ddeca5fe25f59a832", "size": "867", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Revida.Sitecore.Assurance.Configuration/CommandLineParameters.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "104243" } ], "symlink_target": "" }
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Function is_alnum</title> <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../../string_algo/reference.html#header.boost.algorithm.string.classification_hpp" title="Header &lt;boost/algorithm/string/classification.hpp&gt;"> <link rel="prev" href="is_space.html" title="Function is_space"> <link rel="next" href="is_alpha.html" title="Function is_alpha"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> <td align="center"><a href="../../../../index.html">Home</a></td> <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="is_space.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../string_algo/reference.html#header.boost.algorithm.string.classification_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_alpha.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.algorithm.is_alnum"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Function is_alnum</span></h2> <p>boost::algorithm::is_alnum &#8212; is_alnum predicate </p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../string_algo/reference.html#header.boost.algorithm.string.classification_hpp" title="Header &lt;boost/algorithm/string/classification.hpp&gt;">boost/algorithm/string/classification.hpp</a>&gt; </span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <span class="identifier">is_alnum</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span> <span class="special">&amp;</span> Loc <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></div> <div class="refsect1"> <a name="id3215667"></a><h2>Description</h2> <p>Construct the <code class="computeroutput">is_classified</code> predicate for the <code class="computeroutput">ctype_base::alnum</code> category.</p> <p> </p> <div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody> <tr> <td><p><span class="term">Parameters:</span></p></td> <td><div class="variablelist"><table border="0"> <col align="left" valign="top"> <tbody><tr> <td><p><span class="term"><code class="computeroutput">Loc</code></span></p></td> <td><p>A locale used for classification </p></td> </tr></tbody> </table></div></td> </tr> <tr> <td><p><span class="term">Returns:</span></p></td> <td><p>An instance of the <code class="computeroutput">is_classified</code> predicate </p></td> </tr> </tbody> </table></div> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2002-2004 Pavol Droba<p>Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="is_space.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../string_algo/reference.html#header.boost.algorithm.string.classification_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_alpha.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
{ "content_hash": "7c052b8f3b5a427520d2ff25e261e72a", "timestamp": "", "source": "github", "line_count": 76, "max_line_length": 599, "avg_line_length": 66.59210526315789, "alnum_prop": 0.663505236119344, "repo_name": "djsedulous/namecoind", "id": "7ffdcdf3200fc5e6c38b5e648ce78082a62f52a5", "size": "5061", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "libs/boost_1_50_0/doc/html/boost/algorithm/is_alnum.html", "mode": "33261", "license": "mit", "language": [ { "name": "Assembly", "bytes": "843598" }, { "name": "Awk", "bytes": "90447" }, { "name": "C", "bytes": "19896147" }, { "name": "C#", "bytes": "121901" }, { "name": "C++", "bytes": "132199970" }, { "name": "CSS", "bytes": "336528" }, { "name": "Emacs Lisp", "bytes": "1639" }, { "name": "IDL", "bytes": "11976" }, { "name": "Java", "bytes": "3955488" }, { "name": "JavaScript", "bytes": "22346" }, { "name": "Max", "bytes": "36857" }, { "name": "Objective-C", "bytes": "23505" }, { "name": "Objective-C++", "bytes": "2450" }, { "name": "PHP", "bytes": "55712" }, { "name": "Perl", "bytes": "4194947" }, { "name": "Python", "bytes": "761429" }, { "name": "R", "bytes": "4009" }, { "name": "Rebol", "bytes": "354" }, { "name": "Scheme", "bytes": "6073" }, { "name": "Shell", "bytes": "550004" }, { "name": "Tcl", "bytes": "2268735" }, { "name": "TeX", "bytes": "13404" }, { "name": "TypeScript", "bytes": "5318296" }, { "name": "XSLT", "bytes": "757548" }, { "name": "eC", "bytes": "5079" } ], "symlink_target": "" }
package org.apache.nutch.hostdb; import java.io.IOException; import java.lang.invoke.MethodHandles; import org.apache.hadoop.io.FloatWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.io.Writable; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapred.Mapper; import org.apache.hadoop.mapred.OutputCollector; import org.apache.hadoop.mapred.Reporter; import org.apache.nutch.crawl.CrawlDatum; import org.apache.nutch.crawl.CrawlDb; import org.apache.nutch.crawl.NutchWritable; import org.apache.nutch.metadata.Nutch; import org.apache.nutch.net.URLFilters; import org.apache.nutch.net.URLNormalizers; import org.apache.nutch.protocol.ProtocolStatus; import org.apache.nutch.util.URLUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Mapper ingesting HostDB and CrawlDB entries. Additionally it can also read * host score info from a plain text key/value file generated by the * Webgraph's NodeDumper tool. */ public class UpdateHostDbMapper implements Mapper<Text, Writable, Text, NutchWritable> { private static final Logger LOG = LoggerFactory .getLogger(MethodHandles.lookup().lookupClass()); protected Text host = new Text(); protected HostDatum hostDatum = null; protected CrawlDatum crawlDatum = null; protected String reprUrl = null; protected String buffer = null; protected String[] args = null; protected boolean filter = false; protected boolean normalize = false; protected boolean readingCrawlDb = false; protected URLFilters filters = null; protected URLNormalizers normalizers = null; public void close() {} /** * @param JobConf * @return void */ public void configure(JobConf job) { readingCrawlDb = job.getBoolean("hostdb.reading.crawldb", false); filter = job.getBoolean(UpdateHostDb.HOSTDB_URL_FILTERING, false); normalize = job.getBoolean(UpdateHostDb.HOSTDB_URL_NORMALIZING, false); if (filter) filters = new URLFilters(job); if (normalize) normalizers = new URLNormalizers(job, URLNormalizers.SCOPE_DEFAULT); } /** * Filters and or normalizes the input URL * * @param String * @return String */ protected String filterNormalize(String url) { // We actually receive a hostname here so let's make a URL // TODO: we force shop.fcgroningen to be https, how do we know that here? // http://issues.openindex.io/browse/SPIDER-40 url = "http://" + url + "/"; try { if (normalize) url = normalizers.normalize(url, URLNormalizers.SCOPE_DEFAULT); if (filter) url = filters.filter(url); if (url == null) return null; } catch (Exception e) { return null; } // Turn back to host return URLUtil.getHost(url); } /** * Mapper ingesting records from the HostDB, CrawlDB and plaintext host * scores file. Statistics and scores are passed on. * * @param Text key * @param Writable value * @param OutputCollector<Text,NutchWritable> output * @param Reporter reporter * @return void */ public void map(Text key, Writable value, OutputCollector<Text,NutchWritable> output, Reporter reporter) throws IOException { // Get the key! String keyStr = key.toString(); // Check if we process records from the CrawlDB if (key instanceof Text && value instanceof CrawlDatum) { // Get the normalized and filtered host of this URL buffer = filterNormalize(URLUtil.getHost(keyStr)); // Filtered out? if (buffer == null) { reporter.incrCounter("UpdateHostDb", "filtered_records", 1); LOG.info("UpdateHostDb: " + URLUtil.getHost(keyStr) + " crawldatum has been filtered"); return; } // Set the host of this URL host.set(buffer); crawlDatum = (CrawlDatum)value; hostDatum = new HostDatum(); /** * TODO: fix multi redirects: host_a => host_b/page => host_c/page/whatever * http://www.ferienwohnung-armbruster.de/ * http://www.ferienwohnung-armbruster.de/website/ * http://www.ferienwohnung-armbruster.de/website/willkommen.php * * We cannot reresolve redirects for host objects as CrawlDatum metadata is * not available. We also cannot reliably use the reducer in all cases * since redirects may be across hosts or even domains. The example * above has redirects that will end up in the same reducer. During that * phase, however, we do not know which URL redirects to the next URL. */ // Do not resolve homepages when the root URL is unfetched if (crawlDatum.getStatus() != CrawlDatum.STATUS_DB_UNFETCHED) { // Get the protocol String protocol = URLUtil.getProtocol(keyStr); // Get the proposed homepage URL String homepage = protocol + "://" + buffer + "/"; // Check if the current key is equals the host if (keyStr.equals(homepage)) { // Check if this is a redirect to the real home page if (crawlDatum.getStatus() == CrawlDatum.STATUS_DB_REDIR_PERM || crawlDatum.getStatus() == CrawlDatum.STATUS_DB_REDIR_TEMP) { // Obtain the repr url for this redirect via protocolstatus from the metadata ProtocolStatus z = (ProtocolStatus)crawlDatum.getMetaData(). get(Nutch.WRITABLE_PROTO_STATUS_KEY); // Get the protocol status' arguments args = z.getArgs(); // ..and the possible redirect URL reprUrl = args[0]; // Am i a redirect? if (reprUrl != null) { LOG.info("UpdateHostDb: homepage: " + keyStr + " redirects to: " + args[0]); output.collect(host, new NutchWritable(hostDatum)); hostDatum.setHomepageUrl(reprUrl); } else { LOG.info("UpdateHostDb: homepage: " + keyStr + " redirects to: " + args[0] + " but has been filtered out"); } } else { hostDatum.setHomepageUrl(homepage); output.collect(host, new NutchWritable(hostDatum)); LOG.info("UpdateHostDb: homepage: " + homepage); } } } // Always emit crawl datum output.collect(host, new NutchWritable(crawlDatum)); } // Check if we got a record from the hostdb if (key instanceof Text && value instanceof HostDatum) { buffer = filterNormalize(keyStr); // Filtered out? if (buffer == null) { reporter.incrCounter("UpdateHostDb", "filtered_records", 1); LOG.info("UpdateHostDb: " + key.toString() + " hostdatum has been filtered"); return; } // Get a HostDatum hostDatum = (HostDatum)value; key.set(buffer); // If we're also reading CrawlDb entries, reset db_* statistics because // we're aggregating them from CrawlDB anyway if (readingCrawlDb) { hostDatum.resetStatistics(); } output.collect(key, new NutchWritable(hostDatum)); } // Check if we got a record with host scores if (key instanceof Text && value instanceof Text) { buffer = filterNormalize(keyStr); // Filtered out? if (buffer == null) { reporter.incrCounter("UpdateHostDb", "filtered_records", 1); LOG.info("UpdateHostDb: " + key.toString() + " score has been filtered"); return; } key.set(buffer); output.collect(key, new NutchWritable(new FloatWritable(Float.parseFloat(value.toString())))); } } }
{ "content_hash": "2ad609c6416bfc788b57f1c2a1dbab23", "timestamp": "", "source": "github", "line_count": 226, "max_line_length": 95, "avg_line_length": 33.6283185840708, "alnum_prop": 0.6506578947368421, "repo_name": "code4wt/nutch-learning", "id": "593bd15541d67f4bfafb1bf03f3421db9d869577", "size": "8401", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/java/org/apache/nutch/hostdb/UpdateHostDbMapper.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "3332" }, { "name": "HTML", "bytes": "78039" }, { "name": "Java", "bytes": "2915119" }, { "name": "Shell", "bytes": "1659" } ], "symlink_target": "" }
package org.apache.hadoop.hdfs.util; import org.apache.hadoop.fs.Path; import java.util.StringTokenizer; /** * Default implementation of PathNameChecker * * Checks that the the path does not contain ":" and "//" * Path should not have relative elements ".", ".." */ public class DefaultPathNameChecker implements PathNameChecker { @Override public boolean isValidPath(String path) { // Path must be absolute. if (!path.startsWith(Path.SEPARATOR)) { return false; } if (path.contains("//")) { return false; } StringTokenizer tokens = new StringTokenizer(path, Path.SEPARATOR); while(tokens.hasMoreTokens()) { String element = tokens.nextToken(); if (element.equals("..") || element.equals(".") || (element.indexOf(":") >= 0)) { return false; } } return true; } }
{ "content_hash": "25d3fe60da7666da1530652b2c71afd7", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 71, "avg_line_length": 22.46153846153846, "alnum_prop": 0.6267123287671232, "repo_name": "rvadali/fb-raid-refactoring", "id": "c5f8655f5a899d303367efe23f30d36559e333af", "size": "1682", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/hdfs/org/apache/hadoop/hdfs/util/DefaultPathNameChecker.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "451987" }, { "name": "C++", "bytes": "419590" }, { "name": "Java", "bytes": "17173220" }, { "name": "JavaScript", "bytes": "10513" }, { "name": "Objective-C", "bytes": "118273" }, { "name": "PHP", "bytes": "152555" }, { "name": "Perl", "bytes": "140392" }, { "name": "Python", "bytes": "621619" }, { "name": "Ruby", "bytes": "28485" }, { "name": "Shell", "bytes": "4077329" }, { "name": "Smalltalk", "bytes": "56562" } ], "symlink_target": "" }
Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
{ "content_hash": "dab0f4b86e3b8c023b06ee095c0f710d", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 161, "avg_line_length": 43.333333333333336, "alnum_prop": 0.5307692307692308, "repo_name": "Telestream/telestream-cloud-python-sdk", "id": "73a7382e129e5e3011b1d7336fcf4d9b49439835", "size": "292", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "telestream_cloud_qc_sdk/docs/AudioCodecType.md", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "1339719" }, { "name": "Shell", "bytes": "6712" } ], "symlink_target": "" }
@interface YLClient : AFOAuth1Client @end
{ "content_hash": "cea4628a0afa453855328ab0aa133e26", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 36, "avg_line_length": 14.333333333333334, "alnum_prop": 0.7906976744186046, "repo_name": "steven-maasch/spotsome", "id": "6bdc5989c9c57de6d1eb3a875a9330cd55ab6a04", "size": "254", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "ios.spotsome/SpotSome/SpotSome/YLClient.h", "mode": "33261", "license": "bsd-2-clause", "language": [ { "name": "C", "bytes": "44364" }, { "name": "HTML", "bytes": "51430" }, { "name": "Java", "bytes": "137218" }, { "name": "Objective-C", "bytes": "953291" }, { "name": "RAML", "bytes": "13182" }, { "name": "Ruby", "bytes": "75" }, { "name": "Shell", "bytes": "6163" } ], "symlink_target": "" }
package com.zhihudailytest.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.BitmapFactory; import android.os.Bundle; import android.support.annotation.Nullable; import android.widget.EditText; import com.umeng.socialize.ShareAction; import com.umeng.socialize.UMAuthListener; import com.umeng.socialize.UMShareAPI; import com.umeng.socialize.UMShareListener; import com.umeng.socialize.bean.SHARE_MEDIA; import com.umeng.socialize.media.UMImage; import com.umeng.socialize.shareboard.SnsPlatform; import com.umeng.socialize.utils.ShareBoardlistener; import com.zhihudailytest.Fragment.LoginFragment; import com.zhihudailytest.Fragment.LogoutFragment; import com.zhihudailytest.R; import com.zhihudailytest.Utils.SPUtils; import org.json.JSONException; import org.json.JSONObject; import java.util.Map; import butterknife.Bind; import butterknife.ButterKnife; import butterknife.OnClick; public class UmengLoginActivity extends BaseActivity{ final SHARE_MEDIA[] displaylist = new SHARE_MEDIA[] { SHARE_MEDIA.WEIXIN, SHARE_MEDIA.WEIXIN_CIRCLE,SHARE_MEDIA.SINA, SHARE_MEDIA.QQ, SHARE_MEDIA.QZONE }; public void onShare(){ ShareAction action = new ShareAction(UmengLoginActivity.this); action.setDisplayList(displaylist); // action.withTitle("分享标题"); action.withText("分享文本内容"); action.withTargetUrl("http://blog.xiongit.com");//点击分享内容打开的链接*//* // action.withMedia(umImage);//附带的图片,音乐,视频等多媒体对象 action.setShareboardclickCallback(mShareBoardlistener);//设置友盟集成的分享面板的点击监听回调 action.open();//打开集成的分享面板 }; public void onDeAuth(){ umShareAPI.deleteOauth(UmengLoginActivity.this,SHARE_MEDIA.SINA,deListener); }; private UMAuthListener deListener=new UMAuthListener() { @Override public void onComplete(SHARE_MEDIA share_media, int i, Map<String, String> map) { showToast("delete Oauth success"); SharedPreferences.Editor editor = SPUtils.getEditor(); editor.remove("name"); editor.remove("avatar"); editor.putBoolean("status", false); editor.remove("uid"); editor.commit(); } @Override public void onError(SHARE_MEDIA share_media, int i, Throwable throwable) { showToast("delete Oauth onError"+throwable.toString()); } @Override public void onCancel(SHARE_MEDIA share_media, int i) { showToast("delete Oauth onCancel"); } }; private UMAuthListener listener=new UMAuthListener() { @Override public void onComplete(SHARE_MEDIA share_media, int i, Map<String, String> map) { // show.setText(map.get("result")); String result=map.get("result"); try { JSONObject object=new JSONObject(result); SharedPreferences.Editor editor = SPUtils.getEditor(); editor.putString("name", object.getString("name")); editor.putString("avatar", object.getString("profile_image_url")); editor.putBoolean("status", true); editor.putString("uid", object.getString("idstr")); editor.commit(); Intent intent=new Intent("login"); localBroadcastManager.sendBroadcast(intent); finish(); } catch (JSONException e) { e.printStackTrace(); } } @Override public void onError(SHARE_MEDIA share_media, int i, Throwable throwable) { showToast("授权失败"); } @Override public void onCancel(SHARE_MEDIA share_media, int i) { } }; private UMAuthListener umAuthListener=new UMAuthListener() { @Override public void onComplete(SHARE_MEDIA share_media, int i, Map<String, String> map) { umShareAPI.getPlatformInfo(UmengLoginActivity.this,SHARE_MEDIA.SINA,listener); } @Override public void onError(SHARE_MEDIA share_media, int i, Throwable throwable) { showToast("error"); } @Override public void onCancel(SHARE_MEDIA share_media, int i) { showToast("cancel"); } }; private ShareBoardlistener mShareBoardlistener=new ShareBoardlistener() { @Override public void onclick(SnsPlatform snsPlatform, SHARE_MEDIA share_media) { UMImage umImage=new UMImage(UmengLoginActivity.this, BitmapFactory.decodeResource(getResources(),R.drawable.kaka)); ShareAction shareAction = new ShareAction(UmengLoginActivity.this); shareAction.setPlatform(share_media); shareAction.setCallback(mUmShareListener);//设置每个平台的点击事件 shareAction.withTitle("分享标题"); shareAction.withText("分享文本内容"); shareAction.withTargetUrl("http://www.baidu.com");//点击分享内容打开的链接 shareAction.withMedia(umImage);//附带的图片,音乐,视频等多媒体对象 shareAction.share();//发起分享,调起微信,QQ,微博客户端进行分享。 } }; /** * 友盟分享后事件监听器 */ private UMShareListener mUmShareListener = new UMShareListener() { @Override public void onResult(SHARE_MEDIA platform) { showToast("success"); // TODO 分享成功 } @Override public void onError(SHARE_MEDIA platform, Throwable t) { showToast("onError"+t.toString()); // TODO 分享失败 } @Override public void onCancel(SHARE_MEDIA platform) { showToast("onCancel"); // TODO 分享取消 } }; private UMShareAPI umShareAPI; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_umeng_login); ButterKnife.bind(this); setToolbar(); getSupportActionBar().setDisplayShowTitleEnabled(true); setTranslucent3(); setNaviBack(); fragmentManager=getSupportFragmentManager(); fragmentTransaction=fragmentManager.beginTransaction(); SharedPreferences sp=SPUtils.getSP(); if (sp.getBoolean("status",false)){ fragmentTransaction.add(R.id.container,new LogoutFragment()); } else{ fragmentTransaction.add(R.id.container,new LoginFragment()); } fragmentTransaction.commit(); umShareAPI=UMShareAPI.get(this); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); umShareAPI.onActivityResult( requestCode, resultCode, data); } @Override protected void initView() { } @Override protected void setListener() { } }
{ "content_hash": "ad29952b50ad6854c466b3adeb05f00f", "timestamp": "", "source": "github", "line_count": 216, "max_line_length": 127, "avg_line_length": 31.77314814814815, "alnum_prop": 0.6488416144543203, "repo_name": "cauchyah/zhihudailytest", "id": "6c2554bd2f86bff621fde781ea243031b0ca0c95", "size": "7185", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/zhihudailytest/Activity/UmengLoginActivity.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "238582" } ], "symlink_target": "" }
package org.kaazing.gateway.server.test.config; import java.net.URI; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; public class ServiceConfiguration implements Configuration<SuppressibleServiceConfiguration> { private final SuppressibleServiceConfigurationImpl _configuration; private final List<AuthorizationConstraintConfiguration> authorizationConstraints; private final List<CrossOriginConstraintConfiguration> crossOriginConstraints; private Suppressible<String> _name; private Suppressible<String> _type; private Suppressible<String> _realmName; private Suppressible<String> _description; private final Set<Suppressible<URI>> balances; private final Set<Suppressible<URI>> accepts; private final Map<String, Suppressible<String>> acceptOptions; private final Set<Suppressible<URI>> connects; private final Map<String, Suppressible<String>> connectOptions; private final Map<String, Suppressible<String>> mimeMappings; private final Set<URI> unsuppressibleAccepts; private final Set<URI> unsuppressibleBalances; private final Map<String, String> unsuppressibleAcceptOptions; private final Set<URI> unsuppressibleConnects; private final Map<String, String> unsuppressibleConnectOptions; private final Map<String, String> unsuppressibleMimeMappings; private final Map<String, Suppressible<String>> properties; private final Map<String, String> unsuppressibleProperties; private final List<NestedServicePropertiesConfiguration> nestedProperties; public ServiceConfiguration() { _configuration = new SuppressibleServiceConfigurationImpl(); _configuration.setSuppression(Suppressibles.getDefaultSuppressions()); balances = new HashSet<>(); unsuppressibleBalances = Suppressibles.unsuppressibleSet(balances); accepts = new HashSet<>(); unsuppressibleAccepts = Suppressibles.unsuppressibleSet(accepts); acceptOptions = new HashMap<>(); unsuppressibleAcceptOptions = Suppressibles.unsuppressibleMap(acceptOptions); connects = new HashSet<>(); unsuppressibleConnects = Suppressibles.unsuppressibleSet(connects); connectOptions = new HashMap<>(); unsuppressibleConnectOptions = Suppressibles.unsuppressibleMap(connectOptions); mimeMappings = new HashMap<>(); unsuppressibleMimeMappings = Suppressibles.unsuppressibleMap(mimeMappings); properties = new HashMap<>(); unsuppressibleProperties = Suppressibles.unsuppressibleMap(properties); authorizationConstraints = new LinkedList<>(); crossOriginConstraints = new LinkedList<>(); nestedProperties = new LinkedList<>(); } @Override public void accept(ConfigurationVisitor visitor) { visitor.visit(this); } @Override public SuppressibleServiceConfiguration getSuppressibleConfiguration() { return _configuration; } public List<AuthorizationConstraintConfiguration> getAuthorizationConstraints() { return authorizationConstraints; } public List<CrossOriginConstraintConfiguration> getCrossOriginConstraints() { return crossOriginConstraints; } // accept public void addAccept(URI acceptURI) { unsuppressibleBalances.add(acceptURI); } public Set<URI> getAccepts() { return unsuppressibleAccepts; } // balance public void addBalance(URI balanceURI) { unsuppressibleBalances.add(balanceURI); } public Set<URI> getBalances() { return unsuppressibleBalances; } // connect public void addConnect(URI connectURI) { unsuppressibleConnects.add(connectURI); } public Set<URI> getConnects() { return unsuppressibleConnects; } // connect options public void addConnectOption(String key, String value) { unsuppressibleMimeMappings.put(key, value); } public Map<String, String> getConnectOptions() { return unsuppressibleConnectOptions; } // mime mapping public void addMimeMapping(String key, String value) { unsuppressibleMimeMappings.put(key, value); } public Map<String, String> getMimeMappings() { return unsuppressibleMimeMappings; } // accept options public void addAcceptOption(String key, String value) { unsuppressibleAcceptOptions.put(key, value); } public Map<String, String> getAcceptOptions() { return unsuppressibleAcceptOptions; } // description public void setDescription(String description) { this._description = new Suppressible<>(description); } public String getDescription() { if (_description == null) { return null; } return _description.value(); } // name public void setName(String name) { this._name = new Suppressible<>(name); } public String getName() { if (_name == null) { return null; } return _name.value(); } // realm name public void setRealmName(String realmName) { this._realmName = new Suppressible<>(realmName); } public String getRealmName() { if (_realmName == null) { return null; } return _realmName.value(); } // type public void setType(String type) { this._type = new Suppressible<>(type); } public String getType() { if (_type == null) { return null; } return _type.value(); } // properties public List<NestedServicePropertiesConfiguration> getNestedProperties() { return nestedProperties; } public void addNestedProperties(NestedServicePropertiesConfiguration configuration) { nestedProperties.add(configuration); } // properties public Map<String, String> getProperties() { return unsuppressibleProperties; } public void addProperty(String key, String value) { unsuppressibleProperties.put(key, value); } protected class SuppressibleServiceConfigurationImpl extends SuppressibleServiceConfiguration { private Set<Suppression> _suppressions; @Override public Set<Suppression> getSuppressions() { return _suppressions; } @Override public void setSuppression(Set<Suppression> suppressions) { _suppressions = suppressions; } @Override public Set<Suppressible<URI>> getAccepts() { return accepts; } @Override public void addAccept(Suppressible<URI> acceptURI) { accepts.add(acceptURI); } @Override public Map<String, Suppressible<String>> getProperties() { return properties; } @Override public void addProperty(String key, Suppressible<String> value) { properties.put(key, value); } @Override public Suppressible<String> getType() { return _type; } @Override public void setType(Suppressible<String> type) { _type = type; } @Override public Suppressible<String> getDescription() { return _description; } @Override public void setDescription(Suppressible<String> description) { _description = description; } @Override public Suppressible<String> getName() { return _name; } @Override public void setName(Suppressible<String> name) { _name = name; } @Override public Suppressible<String> getRealmName() { return _realmName; } @Override public void setRealmName(Suppressible<String> realmName) { _realmName = realmName; } @Override public Map<String, Suppressible<String>> getAcceptOptions() { return acceptOptions; } @Override public void addAcceptOption(String key, Suppressible<String> value) { acceptOptions.put(key, value); } @Override public Set<Suppressible<URI>> getBalances() { return balances; } @Override public void addBalance(Suppressible<URI> balanceURI) { balances.add(balanceURI); } @Override public Set<Suppressible<URI>> getConnects() { return connects; } @Override public void addConnect(Suppressible<URI> acceptURI) { connects.add(acceptURI); } @Override public Map<String, Suppressible<String>> getConnectOptions() { return connectOptions; } @Override public void addConnectOption(String key, Suppressible<String> value) { connectOptions.put(key, value); } @Override public Map<String, Suppressible<String>> getMimeMappings() { return mimeMappings; } @Override public void addMimeMapping(String key, Suppressible<String> value) { mimeMappings.put(key, value); } } }
{ "content_hash": "a8c13877c293d5ebb46fc4f66b13ae6b", "timestamp": "", "source": "github", "line_count": 331, "max_line_length": 99, "avg_line_length": 28.31117824773414, "alnum_prop": 0.6469960516487034, "repo_name": "chao-sun-kaazing/gateway", "id": "6b4651dd898a4e0338871a19809a529791cf4e0e", "size": "9998", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "server/src/main/java/org/kaazing/gateway/server/test/config/ServiceConfiguration.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "1984" }, { "name": "HTML", "bytes": "36480" }, { "name": "Java", "bytes": "10540177" }, { "name": "JavaScript", "bytes": "2848" }, { "name": "Shell", "bytes": "5032" }, { "name": "XSLT", "bytes": "5028" } ], "symlink_target": "" }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>QuaZIP: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">QuaZIP&#160;<span id="projectnumber">quazip-0-7</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="headertitle"> <div class="title">QuaZipFileInfo Member List</div> </div> </div> <div class="contents"> This is the complete list of members for <a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#adc2aad7bbd87ce3415e2a19851266bfc">comment</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#af6116eaac1f36b2a4b3a6a39851a85cc">compressedSize</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#aceee045c9ebce0b9724f40d342bc99ea">crc</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#ad6993d099436813a27fd31aebe42911a">dateTime</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#aa70157fdc2bd8de10405055b4233050b">diskNumberStart</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#afeb65ffdacc4fc0ba7848d4b37f62ecf">externalAttr</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#affc7b097de2c3c2ef5801c60f96adc72">extra</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#a56d36f777e4fc892c71e22d080622e2c">flags</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#af87f96a64d7c02b002622f81d13accdb">getPermissions</a>() const </td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#a36e681a93b041617addee78cb939c93d">internalAttr</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#af5c1bbda7f5dec2c358e7a543564de4c">method</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#a16ac323965deccf0232bfae69d933a84">name</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#a0eb908e1b1ea637d1f1f4d6aa31db07f">uncompressedSize</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#a52f3f1d960ebaa2acbc2a86458fa3e6e">versionCreated</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structQuaZipFileInfo.html#a8b73982808bded49e88e624a65e1a94f">versionNeeded</a></td><td><a class="el" href="structQuaZipFileInfo.html">QuaZipFileInfo</a></td><td></td></tr> </table></div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 24 2014 20:17:18 for QuaZIP by&#160; <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>
{ "content_hash": "84f654567d914c8b59f8a1450ee7885e", "timestamp": "", "source": "github", "line_count": 66, "max_line_length": 227, "avg_line_length": 79.42424242424242, "alnum_prop": 0.7016405951926745, "repo_name": "ufopleds/DengueME", "id": "4165ac31d601b2976eb5cf7d8941a0f494795c6b", "size": "5242", "binary": false, "copies": "2", "ref": "refs/heads/dev", "path": "src/quazip/quazip-0.7/doc/html/structQuaZipFileInfo-members.html", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Ada", "bytes": "89079" }, { "name": "Assembly", "bytes": "138199" }, { "name": "Batchfile", "bytes": "668" }, { "name": "C", "bytes": "1312151" }, { "name": "C#", "bytes": "54013" }, { "name": "C++", "bytes": "7386587" }, { "name": "CMake", "bytes": "12217" }, { "name": "CSS", "bytes": "13445" }, { "name": "DIGITAL Command Language", "bytes": "27303" }, { "name": "HTML", "bytes": "828606" }, { "name": "Lua", "bytes": "47624" }, { "name": "M4", "bytes": "787" }, { "name": "Makefile", "bytes": "7566" }, { "name": "Module Management System", "bytes": "1545" }, { "name": "Objective-C", "bytes": "21403" }, { "name": "Pascal", "bytes": "75208" }, { "name": "Perl", "bytes": "3895" }, { "name": "QMake", "bytes": "9234" }, { "name": "R", "bytes": "51916" }, { "name": "Roff", "bytes": "7800" }, { "name": "Shell", "bytes": "10861" }, { "name": "TeX", "bytes": "211930" } ], "symlink_target": "" }
import argparse import os import random import sys FILE = { 'offverbs': 'OffVerbs.txt', 'onverbs': 'OnVerbs.txt', 'mundaneactions': 'MundaneActions.txt', 'adjectivesbefore': 'AdjectivesBefore.txt', 'verbs': 'Verbs.txt', 'nouns': 'Nouns.txt', 'prefixparts': 'PrefixParts.txt', 'baseparts': 'BaseParts.txt', } def weighted_choice(choices): """Weighted choice pattern http://stackoverflow.com/questions/3679694/a-weighted-version-of-random-choice """ total = sum(w for c, w in choices) r = random.uniform(0, total) upto = 0 for c, w in choices: if upto + w > r: return c upto += w def verb(): verb = random.choice(load_verbs()) part = get_part() return "%s %s!" % (verb, part) def off(): off_verb = random.choice(load_file('offverbs')) noun = get_noun() return "%s %s!" % (off_verb, noun) def on(): on_verb = random.choice(load_file('onverbs')) noun = get_noun() return "%s %s!" % (on_verb, noun) def mundane(): actions = load_file('mundaneactions') action = random.choice(actions) verb, noun = action.split(',') return "%s %s!" % (verb, noun) def setting(): """Returns a string to set a part to a certain value. Like 'Set Psi-Condenser to 5!' """ setting_verb = get_setting_verb() part = get_part() value = get_value() return "%s %s to %s!" % (setting_verb, part, value) def get_noun(): """Returns a fancy prefixed noun""" return random.choice(load_nouns()) def get_adjective(): return random.choice(load_file('adjectivesbefore')) def get_part(): adjective = get_adjective() prefix = random.choice(load_file('prefixparts')) base_part = random.choice(load_file('baseparts')) return "%s %s%s" % (adjective, prefix, base_part) def get_setting_verb(): settings = ['Set', 'Increase', 'Decrease', 'Configure', 'Drop'] return random.choice(settings) def get_value(): values = ['Full Power', 'Maximum', '1', '2', '3', '4', '5'] return random.choice(values) def load_file(name): filename = FILE[name] return map(str.strip, open(filename).readlines()) def load_nouns(): return load_file('nouns') def load_verbs(): return load_file('verbs') def validate_files(): for f in FILE.values(): if os.path.isfile(f) is not True: err = "%s is missing! Make sure this file is available.\n" % f sys.stderr.write(err) sys.exit(1) # List of tuples, (thing, weight) THINGS_TO_SAY = [ (verb, 5), (setting, 5), (off, 1), (on, 1), (mundane, 1), ] def parse_args(): parser = argparse.ArgumentParser( description='Prints a spaceteam-like command.') choices = [x[0].__name__ for x in THINGS_TO_SAY] parser.add_argument('action', nargs='?', default=False, choices=choices, help="optional type of command you want to print.") return parser.parse_args() if __name__ == '__main__': args = parse_args() validate_files() if args.action: # Seems dangerous? print(locals()[args.action]()) else: action = weighted_choice(THINGS_TO_SAY) print(action())
{ "content_hash": "92943c63fb3553bd1e446286de817f2f", "timestamp": "", "source": "github", "line_count": 141, "max_line_length": 82, "avg_line_length": 23.141843971631207, "alnum_prop": 0.5911737664725712, "repo_name": "solarkennedy/spaceteamgen", "id": "1e7891206066069739918481668c1644080fbe26", "size": "3285", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spaceteamgen.py", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Makefile", "bytes": "96" }, { "name": "Python", "bytes": "4751" }, { "name": "Shell", "bytes": "337" } ], "symlink_target": "" }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _PhanCapEgovType = require('../types/PhanCapEgovType'); var _chatEgov = require('../../models/chatEgov'); var _mongodb = require('mongodb'); var _graphql = require('graphql'); var phancap = { type: _PhanCapEgovType.PhanCapType, resolve: function resolve() { return _chatEgov.PhanCap.getLast({}).then(function (phancap) { return phancap; }).error(function (e) {}); } }; exports.default = phancap; module.exports = exports['default']; //# sourceMappingURL=phancapEgov.js.map
{ "content_hash": "932ceeac4c805425397a81245cc9a346", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 66, "avg_line_length": 22.423076923076923, "alnum_prop": 0.6758147512864494, "repo_name": "atum201/egov", "id": "3a9b681e96c3867502d0f9b0eedc7d484147eb9a", "size": "583", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "dist/server/schema/queries/phancapEgov.js", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
select c1.concept_id as concept_id, c1.concept_name as concept_name, hr1.count_value as count_value from @ohdsi_database_schema.heracles_results hr1 inner join @cdm_database_schema.concept c1 on hr1.stratum_1 = CAST(c1.concept_id as VARCHAR(255)) where hr1.analysis_id = 5 and cohort_definition_id = @cohortDefinitionId
{ "content_hash": "f91c85598d9b47ccc6b675a30cc9c6ad", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 55, "avg_line_length": 36.333333333333336, "alnum_prop": 0.7737003058103975, "repo_name": "OHDSI/WebAPI", "id": "ca4a2b39cc6623fc4986b859b968bb7bb5790c58", "size": "327", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/resources/resources/cohortresults/sql/person/ethnicity.sql", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Dockerfile", "bytes": "2198" }, { "name": "HTML", "bytes": "127" }, { "name": "Java", "bytes": "3237113" }, { "name": "Makefile", "bytes": "4511" }, { "name": "PLSQL", "bytes": "161939" }, { "name": "PLpgSQL", "bytes": "4032" }, { "name": "R", "bytes": "6576" }, { "name": "TSQL", "bytes": "1637669" } ], "symlink_target": "" }
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.Analyzers; using Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp.Analyzers.MetaAnalyzers; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.VisualBasic.Analyzers.MetaAnalyzers; using Xunit; namespace Microsoft.CodeAnalysis.UnitTests.Analyzers.MetaAnalyzers { public class InvalidSyntaxKindTypeArgumentRuleTests : CodeFixTestBase { [Fact] public void CSharp_VerifyDiagnostic() { var source = @" using System; using System.Collections.Immutable; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Diagnostics; #pragma warning disable RS1012 #pragma warning disable RS1013 [DiagnosticAnalyzer(LanguageNames.CSharp)] class MyAnalyzer : DiagnosticAnalyzer { public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } } public override void Initialize(AnalysisContext context) { context.RegisterSyntaxNodeAction(AnalyzeSyntax, 0); context.RegisterCodeBlockStartAction<int>(AnalyzeCodeBlockStart); } private static void AnalyzeSyntax(SyntaxNodeAnalysisContext context) { } private static void AnalyzeCodeBlockStart(CodeBlockStartAnalysisContext<int> context) { } }"; DiagnosticResult[] expected = new[] { GetCSharpExpectedDiagnostic(24, 9, typeArgumentName: "Int32", registerMethodName: DiagnosticAnalyzerCorrectnessAnalyzer.RegisterSyntaxNodeActionName), GetCSharpExpectedDiagnostic(25, 9, typeArgumentName: "Int32", registerMethodName: DiagnosticAnalyzerCorrectnessAnalyzer.RegisterCodeBlockStartActionName) }; VerifyCSharp(source, expected); } [Fact] public void VisualBasic_VerifyDiagnostic() { var source = @" Imports System Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Diagnostics #Disable Warning RS1012 #Disable Warning RS1013 <DiagnosticAnalyzer(LanguageNames.CSharp)> Class MyAnalyzer Inherits DiagnosticAnalyzer Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) Get Throw New NotImplementedException() End Get End Property Public Overrides Sub Initialize(context As AnalysisContext) context.RegisterSyntaxNodeAction(AddressOf AnalyzeSyntax, 0) context.RegisterCodeBlockStartAction(Of Int32)(AddressOf AnalyzeCodeBlockStart) End Sub Private Shared Sub AnalyzeSyntax(context As SyntaxNodeAnalysisContext) End Sub Private Shared Sub AnalyzeCodeBlockStart(context As CodeBlockStartAnalysisContext(Of Int32)) End Sub End Class "; DiagnosticResult[] expected = new[] { GetBasicExpectedDiagnostic(20, 9, typeArgumentName: "Int32", registerMethodName: DiagnosticAnalyzerCorrectnessAnalyzer.RegisterSyntaxNodeActionName), GetBasicExpectedDiagnostic(21, 9, typeArgumentName: "Int32", registerMethodName: DiagnosticAnalyzerCorrectnessAnalyzer.RegisterCodeBlockStartActionName) }; VerifyBasic(source, expected); } [Fact] public void CSharp_NoDiagnosticCases() { var source = @" using System; using System.Collections.Immutable; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Diagnostics; #pragma warning disable RS1012 #pragma warning disable RS1013 [DiagnosticAnalyzer(LanguageNames.CSharp)] abstract class MyAnalyzer<T> : DiagnosticAnalyzer where T : struct { public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { throw new NotImplementedException(); } } public override void Initialize(AnalysisContext context) { context.RegisterSyntaxNodeAction(AnalyzeSyntax, null); // Overload resolution failure context.RegisterSyntaxNodeAction<ErrorType>(AnalyzeSyntax, null); // Error type argument context.RegisterCodeBlockStartAction<T>(AnalyzeCodeBlockStart); // NYI: Type param as a type argument } private static void AnalyzeSyntax(SyntaxNodeAnalysisContext context) { } private static void AnalyzeCodeBlockStart(CodeBlockStartAnalysisContext<T> context) { } }"; VerifyCSharp(source); } [Fact] public void VisualBasic_NoDiagnosticCases() { var source = @" Imports System Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Diagnostics #Disable Warning RS1012 #Disable Warning RS1013 <DiagnosticAnalyzer(LanguageNames.CSharp)> Class MyAnalyzer(Of T As Structure) Inherits DiagnosticAnalyzer Public Overrides ReadOnly Property SupportedDiagnostics() As ImmutableArray(Of DiagnosticDescriptor) Get Throw New NotImplementedException() End Get End Property Public Overrides Sub Initialize(context As AnalysisContext) context.RegisterSyntaxNodeAction(AddressOf AnalyzeSyntax, Nothing) ' Overload resolution failure context.RegisterSyntaxNodeAction(Of ErrorType)(AddressOf AnalyzeSyntax, Nothing) ' Error type argument context.RegisterCodeBlockStartAction(Of T)(AddressOf AnalyzeCodeBlockStart) ' NYI: Type param as a type argument End Sub Private Shared Sub AnalyzeSyntax(context As SyntaxNodeAnalysisContext) End Sub Private Shared Sub AnalyzeCodeBlockStart(context As CodeBlockStartAnalysisContext(Of T)) End Sub End Class "; VerifyBasic(source); } protected override CodeFixProvider GetCSharpCodeFixProvider() { return null; } protected override CodeFixProvider GetBasicCodeFixProvider() { return null; } protected override DiagnosticAnalyzer GetCSharpDiagnosticAnalyzer() { return new CSharpRegisterActionAnalyzer(); } protected override DiagnosticAnalyzer GetBasicDiagnosticAnalyzer() { return new BasicRegisterActionAnalyzer(); } private static DiagnosticResult GetCSharpExpectedDiagnostic(int line, int column, string typeArgumentName, string registerMethodName) { return GetExpectedDiagnostic(LanguageNames.CSharp, line, column, typeArgumentName, registerMethodName); } private static DiagnosticResult GetBasicExpectedDiagnostic(int line, int column, string typeArgumentName, string registerMethodName) { return GetExpectedDiagnostic(LanguageNames.VisualBasic, line, column, typeArgumentName, registerMethodName); } private static DiagnosticResult GetExpectedDiagnostic(string language, int line, int column, string typeArgumentName, string registerMethodName) { string fileName = language == LanguageNames.CSharp ? "Test0.cs" : "Test0.vb"; return new DiagnosticResult { Id = DiagnosticIds.InvalidSyntaxKindTypeArgumentRuleId, Message = string.Format(CodeAnalysisDiagnosticsResources.InvalidSyntaxKindTypeArgumentMessage, typeArgumentName, DiagnosticAnalyzerCorrectnessAnalyzer.TLanguageKindEnumName, registerMethodName), Severity = DiagnosticSeverity.Warning, Locations = new[] { new DiagnosticResultLocation(fileName, line, column) } }; } } }
{ "content_hash": "7a618adf2380d55d237f3bc82bd55598", "timestamp": "", "source": "github", "line_count": 232, "max_line_length": 210, "avg_line_length": 34.48275862068966, "alnum_prop": 0.714875, "repo_name": "srivatsn/roslyn-analyzers", "id": "9b77950edba23de3d83028703143bfa24b17d5fe", "size": "8002", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/Microsoft.CodeAnalysis.Analyzers/Test/MetaAnalyzers/InvalidSyntaxKindTypeArgumentRuleTests.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "7988" }, { "name": "C#", "bytes": "5353290" }, { "name": "Groovy", "bytes": "1356" }, { "name": "PowerShell", "bytes": "49937" }, { "name": "Visual Basic", "bytes": "182825" } ], "symlink_target": "" }
package org.jahap.jobs; import edu.emory.mathcs.backport.java.util.Arrays; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.apache.log4j.Logger; import org.jahap.entities.JahapDatabaseConnector; import org.jahap.entities.jobs.JobJobscheduler; import org.jahap.entities.jobs.Jobs; /** * * @author russ */ public class Jobsbean extends DatabaseOperations implements Jobs_i { JahapDatabaseConnector dbhook; private static List<Jobs> allrecordlist; static Logger log = Logger.getLogger(Jobsbean.class.getName()); /** * */ public Jobsbean(){ log.debug("Function entry Jobsbean"); long testg; dbhook = JahapDatabaseConnector.getConnector(); try { query_AllDbRecords = dbhook.getEntity().createQuery("select t from Jobs t ORDER BY t.id"); List<Jobsbean>alladdresseslist= query_AllDbRecords.getResultList(); numberOfLastRecord= alladdresseslist.size()-1; } catch (Exception e) { numberOfLastRecord=0; } query_AllDbRecords = dbhook.getEntity().createQuery("select t from Jobs t ORDER BY t.id"); allrecordlist= query_AllDbRecords.getResultList(); try { testg=allrecordlist.get(currentRecordNumber).getId(); tabelIsEmpty=false; tabelIsInit=true; } catch (Exception e) { tabelIsEmpty=true; } log.debug("Function entry billbean"); } public void jumpToFirstRecord(){ currentRecordNumber=0; } public void jumpToLastRecord(){ currentRecordNumber=numberOfLastRecord; } public List<Jobs>SearchForJobs(String searchstring){ log.debug("Function entry SearchForJobs"); log.debug("Function exit SearchForJobs "); return allrecordlist; } public void createNewEmptyRecord() { log.debug("Function entry createNewEmptyRecord"); if(tabelIsEmpty==true){ allrecordlist = new ArrayList<Jobs>(); numberOfLastRecord++; currentRecordNumber=numberOfLastRecord; } if(tabelIsEmpty==false){ RefreshAllRecords(); numberOfLastRecord++; } Jobs emptyacc = new Jobs(); allrecordlist.add(emptyacc); currentRecordNumber=numberOfLastRecord; setNewEmptyRecordCreadted(); tabelIsInit=true; // Set Tabel iniated - List is connected log.debug("Function exit createNewEmptyRecord"); } @Override public void nextRecordBackward() { log.debug("Function entry nextRecordBackward"); if (currentRecordNumber>0) { currentRecordNumber--; } log.debug("Function exit nextRecordBackward"); } @Override public void nextRecordForeward() { log.debug("Function entry nextRecordForeward"); if (currentRecordNumber<numberOfLastRecord) { currentRecordNumber++; } log.debug("Function exit nextRecordForeward "); } @Override public void saveRecord() { log.debug("Function entry saveRecord"); if (newEmptyRecordCreated==true){ saveNewRecord(); setNewEmptyRecordSaved(); RefreshAllRecords(); } if (newEmptyRecordCreated==false){ saveOldRecord(); } log.debug("Function exit saveRecord "); } private void RefreshAllRecords(){ log.debug("Function entry RefreshAllRecords"); try { allrecordlist.clear(); query_AllDbRecords = dbhook.getEntity().createQuery("select t from Jobs t ORDER BY t.id"); allrecordlist = query_AllDbRecords.getResultList(); numberOfLastRecord=allrecordlist.size()-1; } catch (Exception e) { e.printStackTrace(); } log.debug("Function exit RefreshAllRecords"); } public Jobs getDataRecord(long id){ if(id==0)return null; log.debug("Function entry getDataRecord"); int inl=-1; try { do { inl++; } while (allrecordlist.get(inl).getId() != id && allrecordlist.size() - 1 > inl); currentRecordNumber = inl; } catch (Exception e) { e.printStackTrace(); return null; } log.debug("Function exit getDataRecord " + String.valueOf(currentRecordNumber) ); return allrecordlist.get(currentRecordNumber); } public Jobs getLastPosition(){ log.debug("Function entry getLastPosition("); if( tabelIsEmpty!=true){ log.debug("Function exit getLastPosition"); return allrecordlist.get(currentRecordNumber); } log.debug("Function exit getLastPosition with Null"); return null; } private void saveNewRecord(){ log.debug("Function entry saveNewRecord"); if ( newEmptyRecordCreated=true){ try{ dbhook.getEntity().getTransaction().begin(); dbhook.getEntity().merge(allrecordlist.get(currentRecordNumber)); System.out.printf(dbhook.getEntity().getProperties().toString()); dbhook.getEntity().getTransaction().commit(); newEmptyRecordCreated=false; allrecordlist.clear(); query_AllDbRecords = dbhook.getEntity().createQuery("select t from Jobs t ORDER BY t.id"); // Refresh list allrecordlist= query_AllDbRecords.getResultList(); //currentRecordNumber++; } catch (Exception e){ log.error("SaveNewRecord " ); e.printStackTrace(); } } } public List<String>SearchForJobtypes(){ Jobtypes dd; List<String>hh=new ArrayList<String>(); log.debug("Function entry SearchForCountry" ); hh=Arrays.asList(Jobtypes.values()); return hh; } @Override public void quitDBaccess() { log.debug("Function entry quitDBaccess"); dbhook.getEntity().close(); log.debug("Function exit quitDBaccess"); } private void saveOldRecord(){ log.debug("Function entry saveOldRecord"); if(newEmptyRecordCreated=false){ dbhook.getEntity().getTransaction().begin(); dbhook.getEntity().refresh(dbhook.getEntity().find(Jobs.class,allrecordlist.get(currentRecordNumber).getId() )); dbhook.getEntity().getTransaction().commit(); } log.debug("Function exit saveOldRecord"); } @Override public String getDefinition() { if( tabelIsEmpty!=true){ return allrecordlist.get(currentRecordNumber).getDefinition(); } return null; } @Override public Long getId() { if( tabelIsEmpty!=true){ return allrecordlist.get(currentRecordNumber).getId(); } return null; } @Override public Collection<JobJobscheduler> getJobJobschedulerCollection() { if( tabelIsEmpty!=true){ return allrecordlist.get(currentRecordNumber).getJobJobschedulerCollection(); } return null; } @Override public String getName() { if( tabelIsEmpty!=true){ return allrecordlist.get(currentRecordNumber).getName(); } return null; } @Override public String getType() { if( tabelIsEmpty!=true){ return allrecordlist.get(currentRecordNumber).getType(); } return null; } @Override public void setDefinition(String definition) { if (tabelIsInit==false|| tabelIsEmpty==true)createNewEmptyRecord(); allrecordlist.get(currentRecordNumber).setDefinition(definition); } @Override public void setJobJobschedulerCollection(Collection<JobJobscheduler> jobJobschedulerCollection) { if (tabelIsInit==false|| tabelIsEmpty==true)createNewEmptyRecord(); allrecordlist.get(currentRecordNumber).setJobJobschedulerCollection(jobJobschedulerCollection); } @Override public void setName(String name) { if (tabelIsInit==false|| tabelIsEmpty==true)createNewEmptyRecord(); allrecordlist.get(currentRecordNumber).setName(name); } @Override public void setType(String type) { if (tabelIsInit==false|| tabelIsEmpty==true)createNewEmptyRecord(); allrecordlist.get(currentRecordNumber).setType(type); } }
{ "content_hash": "9afdfc9590286ed377b8661ccadc6478", "timestamp": "", "source": "github", "line_count": 337, "max_line_length": 124, "avg_line_length": 26.80415430267062, "alnum_prop": 0.5868482231816672, "repo_name": "citeaux/JAHAP", "id": "6c622c1cfe33583934253d9aee31e752edef55d8", "size": "10176", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/org/jahap/jobs/Jobsbean.java", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "907" }, { "name": "Java", "bytes": "1229898" } ], "symlink_target": "" }
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor( name='pogoprotos/networking/responses/echo_response.proto', package='pogoprotos.networking.responses', syntax='proto3', serialized_pb=_b('\n3pogoprotos/networking/responses/echo_response.proto\x12\x1fpogoprotos.networking.responses\"\x1f\n\x0c\x45\x63hoResponse\x12\x0f\n\x07\x63ontext\x18\x01 \x01(\tb\x06proto3') ) _sym_db.RegisterFileDescriptor(DESCRIPTOR) _ECHORESPONSE = _descriptor.Descriptor( name='EchoResponse', full_name='pogoprotos.networking.responses.EchoResponse', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='context', full_name='pogoprotos.networking.responses.EchoResponse.context', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=88, serialized_end=119, ) DESCRIPTOR.message_types_by_name['EchoResponse'] = _ECHORESPONSE EchoResponse = _reflection.GeneratedProtocolMessageType('EchoResponse', (_message.Message,), dict( DESCRIPTOR = _ECHORESPONSE, __module__ = 'pogoprotos.networking.responses.echo_response_pb2' # @@protoc_insertion_point(class_scope:pogoprotos.networking.responses.EchoResponse) )) _sym_db.RegisterMessage(EchoResponse) # @@protoc_insertion_point(module_scope)
{ "content_hash": "e1e088825f9f7af65936061f25d1a84b", "timestamp": "", "source": "github", "line_count": 66, "max_line_length": 196, "avg_line_length": 31.12121212121212, "alnum_prop": 0.7439143135345667, "repo_name": "bellowsj/aiopogo", "id": "bd930b96cefbfb2334a932aee0802252f69c8733", "size": "2176", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aiopogo/pogoprotos/networking/responses/echo_response_pb2.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "62068" } ], "symlink_target": "" }
title: axx33 type: products image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png heading: x33 description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj main: heading: Foo Bar BAz description: |- ***This is i a thing***kjh hjk kj # Blah Blah ## Blah![undefined](undefined) ### Baah image1: alt: kkkk ---
{ "content_hash": "4aac28ddeb50da89f915aabe38c51c99", "timestamp": "", "source": "github", "line_count": 15, "max_line_length": 61, "avg_line_length": 22.333333333333332, "alnum_prop": 0.6656716417910448, "repo_name": "pblack/kaldi-hugo-cms-template", "id": "789db3125ce4322f5ff115ffff9a260b8148a725", "size": "339", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "site/content/pages2/axx33.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "94394" }, { "name": "HTML", "bytes": "18889" }, { "name": "JavaScript", "bytes": "10014" } ], "symlink_target": "" }
<?php namespace User\Form; use Zend\Form\Form; class LoginForm extends Form { public function __construct($name = null) { parent::__construct('login'); $mail_user = new \Zend\Form\Element\Text('mail_user'); $mail_user->setAttribute('class', 'form-control'); $mail_user->setAttribute('placeholder', 'Entre ton mail'); $this->add($mail_user); $password_user = new \Zend\Form\Element\Password('password_user'); $password_user->setAttribute('class', 'form-control'); $password_user->setAttribute('placeholder', 'Entre ton password'); $this->add($password_user); $submit = new \Zend\Form\Element\Submit('submit'); $submit->setValue('Login'); $submit->setAttribute('class', 'btn btn-primary col-xs-2'); $this->add($submit); } }
{ "content_hash": "bfcbfde9d0ecaff7bb0eb2f80e7badff", "timestamp": "", "source": "github", "line_count": 29, "max_line_length": 74, "avg_line_length": 29.896551724137932, "alnum_prop": 0.5916955017301038, "repo_name": "yann01240/SOCIALNETWORKDEV", "id": "5c318548f98a7174930b49e2d756c1a68dd823b6", "size": "867", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "module/User/src/User/Form/LoginForm.php", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "1228" }, { "name": "PHP", "bytes": "57152" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Common.Logging; using Rhino.PersistentHashTable; using Rhino.ServiceBus.DataStructures; using Rhino.ServiceBus.Exceptions; using Rhino.ServiceBus.Impl; using Rhino.ServiceBus.Internal; using Rhino.ServiceBus.MessageModules; using Rhino.ServiceBus.Messages; using Rhino.ServiceBus.Transport; namespace Rhino.ServiceBus.RhinoQueues { public class PhtSubscriptionStorage : ISubscriptionStorage, IDisposable, IMessageModule { private const string SubscriptionsKey = "subscriptions"; private readonly Hashtable<string, List<WeakReference>> localInstanceSubscriptions = new Hashtable<string, List<WeakReference>>(); private readonly ILog logger = LogManager.GetLogger(typeof (PhtSubscriptionStorage)); private readonly IMessageSerializer messageSerializer; private PersistentHashTable.PersistentHashTable pht; private readonly IReflection reflection; private readonly MultiValueIndexHashtable<Guid, string, Uri, int> remoteInstanceSubscriptions = new MultiValueIndexHashtable<Guid, string, Uri, int>(); private readonly Hashtable<TypeAndUriKey, IList<int>> subscriptionMessageIds = new Hashtable<TypeAndUriKey, IList<int>>(); private readonly string subscriptionPath; private readonly Hashtable<string, HashSet<Uri>> subscriptions = new Hashtable<string, HashSet<Uri>>(); private bool currentlyLoadingPersistentData; public PhtSubscriptionStorage( string subscriptionPath, IMessageSerializer messageSerializer, IReflection reflection) { this.subscriptionPath = subscriptionPath; this.messageSerializer = messageSerializer; this.reflection = reflection; pht = new PersistentHashTable.PersistentHashTable(subscriptionPath); } #region IDisposable Members public void Dispose() { if (pht != null) { pht.Dispose(); pht = null; } } #endregion #region IMessageModule Members void IMessageModule.Init(ITransport transport, IServiceBus bus) { transport.AdministrativeMessageArrived += HandleAdministrativeMessage; } void IMessageModule.Stop(ITransport transport, IServiceBus bus) { transport.AdministrativeMessageArrived -= HandleAdministrativeMessage; } #endregion #region ISubscriptionStorage Members public void Initialize() { logger.DebugFormat("Initializing msmq subscription storage on: {0}", subscriptionPath); pht.Initialize(); pht.Batch(actions => { var items = actions.GetItems(new GetItemsRequest { Key = SubscriptionsKey }); foreach (var item in items) { object[] msgs; try { msgs = messageSerializer.Deserialize(new MemoryStream(item.Value)); } catch (Exception e) { throw new SubscriptionException("Could not deserialize message from subscription queue", e); } try { currentlyLoadingPersistentData = true; foreach (var msg in msgs) { HandleAdministrativeMessage(new CurrentMessageInformation { AllMessages = msgs, Message = msg, }); } } catch (Exception e) { throw new SubscriptionException("Failed to process subscription records", e); } finally { currentlyLoadingPersistentData = false; } } actions.Commit(); }); } public IEnumerable<Uri> GetSubscriptionsFor(Type type) { HashSet<Uri> subscriptionForType = null; subscriptions.Read(reader => reader.TryGetValue(type.FullName, out subscriptionForType)); var subscriptionsFor = subscriptionForType ?? new HashSet<Uri>(); List<Uri> instanceSubscriptions; remoteInstanceSubscriptions.TryGet(type.FullName, out instanceSubscriptions); subscriptionsFor.UnionWith(instanceSubscriptions); return subscriptionsFor; } public void RemoveLocalInstanceSubscription(IMessageConsumer consumer) { var messagesConsumes = reflection.GetMessagesConsumed(consumer); var changed = false; var list = new List<WeakReference>(); localInstanceSubscriptions.Write(writer => { foreach (var type in messagesConsumes) { List<WeakReference> value; if (writer.TryGetValue(type.FullName, out value) == false) continue; writer.Remove(type.FullName); list.AddRange(value); } }); foreach (var reference in list) { if (ReferenceEquals(reference.Target, consumer)) continue; changed = true; } if (changed) RaiseSubscriptionChanged(); } public object[] GetInstanceSubscriptions(Type type) { List<WeakReference> value = null; localInstanceSubscriptions.Read(reader => reader.TryGetValue(type.FullName, out value)); if (value == null) return new object[0]; var liveInstances = value .Select(x => x.Target) .Where(x => x != null) .ToArray(); if (liveInstances.Length != value.Count) //cleanup { localInstanceSubscriptions.Write(writer => value.RemoveAll(x => x.IsAlive == false)); } return liveInstances; } public event Action SubscriptionChanged; public bool AddSubscription(string type, string endpoint) { var added = false; subscriptions.Write(writer => { HashSet<Uri> subscriptionsForType; if (writer.TryGetValue(type, out subscriptionsForType) == false) { subscriptionsForType = new HashSet<Uri>(); writer.Add(type, subscriptionsForType); } var uri = new Uri(endpoint); added = subscriptionsForType.Add(uri); logger.InfoFormat("Added subscription for {0} on {1}", type, uri); }); RaiseSubscriptionChanged(); return added; } public void RemoveSubscription(string type, string endpoint) { var uri = new Uri(endpoint); RemoveSubscriptionMessageFromPht(type, uri); subscriptions.Write(writer => { HashSet<Uri> subscriptionsForType; if (writer.TryGetValue(type, out subscriptionsForType) == false) { subscriptionsForType = new HashSet<Uri>(); writer.Add(type, subscriptionsForType); } subscriptionsForType.Remove(uri); logger.InfoFormat("Removed subscription for {0} on {1}", type, endpoint); }); RaiseSubscriptionChanged(); } public void AddLocalInstanceSubscription(IMessageConsumer consumer) { localInstanceSubscriptions.Write(writer => { foreach (var type in reflection.GetMessagesConsumed(consumer)) { List<WeakReference> value; if (writer.TryGetValue(type.FullName, out value) == false) { value = new List<WeakReference>(); writer.Add(type.FullName, value); } value.Add(new WeakReference(consumer)); } }); RaiseSubscriptionChanged(); } #endregion private void AddMessageIdentifierForTracking(int messageId, string messageType, Uri uri) { subscriptionMessageIds.Write(writer => { var key = new TypeAndUriKey {TypeName = messageType, Uri = uri}; IList<int> value; if (writer.TryGetValue(key, out value) == false) { value = new List<int>(); writer.Add(key, value); } value.Add(messageId); }); } private void RemoveSubscriptionMessageFromPht(string type, Uri uri) { subscriptionMessageIds.Write(writer => { var key = new TypeAndUriKey { TypeName = type, Uri = uri }; IList<int> messageIds; if (writer.TryGetValue(key, out messageIds) == false) return; pht.Batch(actions => { foreach (var msgId in messageIds) { actions.RemoveItem(new RemoveItemRequest { Id = msgId, Key = SubscriptionsKey }); } actions.Commit(); }); writer.Remove(key); }); } public bool HandleAdministrativeMessage(CurrentMessageInformation msgInfo) { var addSubscription = msgInfo.Message as AddSubscription; if (addSubscription != null) { return ConsumeAddSubscription(addSubscription); } var removeSubscription = msgInfo.Message as RemoveSubscription; if (removeSubscription != null) { return ConsumeRemoveSubscription(removeSubscription); } var addInstanceSubscription = msgInfo.Message as AddInstanceSubscription; if (addInstanceSubscription != null) { return ConsumeAddInstanceSubscription(addInstanceSubscription); } var removeInstanceSubscription = msgInfo.Message as RemoveInstanceSubscription; if (removeInstanceSubscription != null) { return ConsumeRemoveInstanceSubscription(removeInstanceSubscription); } return false; } public bool ConsumeRemoveInstanceSubscription(RemoveInstanceSubscription subscription) { int msgId; if (remoteInstanceSubscriptions.TryRemove(subscription.InstanceSubscriptionKey, out msgId)) { pht.Batch(actions => { actions.RemoveItem(new RemoveItemRequest { Id = msgId, Key = SubscriptionsKey }); actions.Commit(); }); RaiseSubscriptionChanged(); } return true; } public bool ConsumeAddInstanceSubscription( AddInstanceSubscription subscription) { pht.Batch(actions => { var message = new MemoryStream(); messageSerializer.Serialize(new[] {subscription}, message); var itemId = actions.AddItem(new AddItemRequest { Key = SubscriptionsKey, Data = message.ToArray() }); remoteInstanceSubscriptions.Add( subscription.InstanceSubscriptionKey, subscription.Type, new Uri(subscription.Endpoint), itemId); actions.Commit(); }); RaiseSubscriptionChanged(); return true; } public bool ConsumeRemoveSubscription(RemoveSubscription removeSubscription) { RemoveSubscription(removeSubscription.Type, removeSubscription.Endpoint.Uri.ToString()); return true; } public bool ConsumeAddSubscription(AddSubscription addSubscription) { var newSubscription = AddSubscription(addSubscription.Type, addSubscription.Endpoint.Uri.ToString()); if (newSubscription && currentlyLoadingPersistentData == false) { var itemId = 0; pht.Batch(actions => { var stream = new MemoryStream(); messageSerializer.Serialize(new[] {addSubscription}, stream); itemId = actions.AddItem(new AddItemRequest { Key = SubscriptionsKey, Data = stream.ToArray() }); actions.Commit(); }); AddMessageIdentifierForTracking( itemId, addSubscription.Type, addSubscription.Endpoint.Uri); return true; } return false; } private void RaiseSubscriptionChanged() { var copy = SubscriptionChanged; if (copy != null) copy(); } } }
{ "content_hash": "4d65b22f19f55dd5784bd04a5427083a", "timestamp": "", "source": "github", "line_count": 428, "max_line_length": 116, "avg_line_length": 34.20794392523364, "alnum_prop": 0.5056348610067618, "repo_name": "hibernating-rhinos/rhino-esb", "id": "f3d8708b09086aebacbe6f7f1021b9b9fdbf9e21", "size": "14641", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Rhino.ServiceBus.RhinoQueues/RhinoQueues/PhtSubscriptionStorage.cs", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C#", "bytes": "913705" }, { "name": "PowerShell", "bytes": "37530" }, { "name": "XSLT", "bytes": "9157" } ], "symlink_target": "" }
#include "components/logger.hpp" #include <unistd.h> #include "errors.hpp" #include "settings.hpp" #include "utils/concurrency.hpp" #include "utils/factory.hpp" #include "utils/string.hpp" POLYBAR_NS /** * Convert string */ const char* logger::convert(string& arg) const { return arg.c_str(); } const char* logger::convert(const string& arg) const { return arg.c_str(); } /** * Convert thread id */ size_t logger::convert(const std::thread::id arg) const { return concurrency_util::thread_id(arg); } /** * Create instance */ logger::make_type logger::make(loglevel level) { return *factory_util::singleton<std::remove_reference_t<logger::make_type>>(level); } /** * Construct logger */ logger::logger(loglevel level) : m_level(level) { // clang-format off if (isatty(m_fd)) { m_prefixes[loglevel::TRACE] = "\r\033[0;32m- \033[0m"; m_prefixes[loglevel::INFO] = "\r\033[1;32m* \033[0m"; m_prefixes[loglevel::NOTICE] = "\r\033[1;34mnotice: \033[0m"; m_prefixes[loglevel::WARNING] = "\r\033[1;33mwarn: \033[0m"; m_prefixes[loglevel::ERROR] = "\r\033[1;31merror: \033[0m"; m_suffixes[loglevel::TRACE] = "\033[0m"; m_suffixes[loglevel::INFO] = "\033[0m"; m_suffixes[loglevel::NOTICE] = "\033[0m"; m_suffixes[loglevel::WARNING] = "\033[0m"; m_suffixes[loglevel::ERROR] = "\033[0m"; } else { m_prefixes.emplace(make_pair(loglevel::TRACE, "polybar|trace: ")); m_prefixes.emplace(make_pair(loglevel::INFO, "polybar|info: ")); m_prefixes.emplace(make_pair(loglevel::NOTICE, "polybar|notice: ")); m_prefixes.emplace(make_pair(loglevel::WARNING, "polybar|warn: ")); m_prefixes.emplace(make_pair(loglevel::ERROR, "polybar|error: ")); m_suffixes.emplace(make_pair(loglevel::TRACE, "")); m_suffixes.emplace(make_pair(loglevel::INFO, "")); m_suffixes.emplace(make_pair(loglevel::NOTICE, "")); m_suffixes.emplace(make_pair(loglevel::WARNING, "")); m_suffixes.emplace(make_pair(loglevel::ERROR, "")); } // clang-format on } /** * Set output verbosity */ void logger::verbosity(loglevel level) { #ifndef DEBUG_LOGGER if (level == loglevel::TRACE) { throw application_error("Trace logging is not enabled..."); } #endif m_level = level; } /** * Convert given loglevel name to its enum type counterpart */ loglevel logger::parse_verbosity(const string& name, loglevel fallback) { if (string_util::compare(name, "error")) { return loglevel::ERROR; } else if (string_util::compare(name, "warning")) { return loglevel::WARNING; } else if (string_util::compare(name, "notice")) { return loglevel::NOTICE; } else if (string_util::compare(name, "info")) { return loglevel::INFO; } else if (string_util::compare(name, "trace")) { return loglevel::TRACE; } else { return fallback; } } POLYBAR_NS_END
{ "content_hash": "11a8777f4a21a331bd1c980fd602edfb", "timestamp": "", "source": "github", "line_count": 100, "max_line_length": 85, "avg_line_length": 28.73, "alnum_prop": 0.6498433693003829, "repo_name": "jaagr/polybar", "id": "f515179951ea10dfebc852a7fd45e52c6da8bd11", "size": "2873", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/components/logger.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "914854" }, { "name": "CMake", "bytes": "29352" }, { "name": "Python", "bytes": "4274" }, { "name": "Shell", "bytes": "13778" }, { "name": "Vim script", "bytes": "1184" } ], "symlink_target": "" }
#ifndef VALIDATE_HH #define VALIDATE_HH #include <string> class Device; class Region; class Interface; class Contact; namespace dsValidate { std::string onRegiononDevice(const std::string &/*rnm*/, const std::string &/*dnm*/); std::string onContactonDevice(const std::string &/*rnm*/, const std::string &/*dnm*/); std::string onInterfaceonDevice(const std::string &/*inm*/, const std::string &/*dnm*/); std::string ValidateDevice(const std::string &/*deviceName*/, Device *&/*dev*/); std::string ValidateDeviceAndRegion(const std::string &/*deviceName*/, const std::string &/*regionName*/, Device * &/*dev*/, Region * &/*reg*/); std::string ValidateDeviceAndContact(const std::string &/*deviceName*/, const std::string &/*contactName*/, Device * &/*dev*/, Contact * &/*cp*/); std::string ValidateDeviceRegionAndContact(const std::string &/*deviceName*/, const std::string &/*regionName*/, const std::string &/*contactName*/, Device * &/*dev*/, Region * &/*reg*/, Contact * &/*contact*/); std::string ValidateDeviceAndInterface(const std::string &/*deviceName*/, const std::string &/*interfaceName*/, Device * &/*dev*/, Interface * &/*interface*/); std::string ValidateDeviceRegionAndInterface(const std::string &/*deviceName*/, const std::string &/*regionName*/, const std::string &/*interfaceName*/, Device * &/*dev*/, Region * &/*region*/, Interface * &/*interface*/); std::string ValidateNodeModelName(Device * const /*dev*/, Region * const /*reg*/, const std::string &/*node_model*/); std::string ValidateEdgeModelName(Device * const /*dev*/, Region * const /*reg*/, const std::string &/*edge_model*/); std::string ValidateOptionalNodeModelName(Device * const /*dev*/, Region * const /*reg*/, const std::string &/*node_model*/); std::string ValidateOptionalEdgeModelName(Device * const /*dev*/, Region * const /*reg*/, const std::string &/*node_model*/); std::string ValidateInterfaceNodeModelName(Device * const /*dev*/, Interface * const /*interface*/, const std::string &/*interface_model*/); } #endif
{ "content_hash": "d88a7e5e203b295f33b4bd3e8e49cea5", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 140, "avg_line_length": 46.559322033898304, "alnum_prop": 0.5125591554423007, "repo_name": "devsim/devsim", "id": "8290ca14dd7143314a353836167767484c942bf5", "size": "3314", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "src/commands/Validate.hh", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "1377" }, { "name": "C++", "bytes": "2081497" }, { "name": "CMake", "bytes": "34558" }, { "name": "GLSL", "bytes": "9020" }, { "name": "Lex", "bytes": "17407" }, { "name": "M4", "bytes": "1901" }, { "name": "Monkey C", "bytes": "637" }, { "name": "Python", "bytes": "255455" }, { "name": "Shell", "bytes": "16377" }, { "name": "Tcl", "bytes": "7404" }, { "name": "Yacc", "bytes": "52466" } ], "symlink_target": "" }
layout: tagpage tag: blog ---
{ "content_hash": "ab1c714daed5d550e2f6691d68d2e998", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 15, "avg_line_length": 9.666666666666666, "alnum_prop": 0.6896551724137931, "repo_name": "nootfly/nootfly.github.io", "id": "11324a1ecaadd803d727a1da36b3e4b059cc7517", "size": "33", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tags/blog/index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "26852" }, { "name": "HTML", "bytes": "16476" } ], "symlink_target": "" }
package fake import ( "context" v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/storage/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" ) // FakeStorageNotifications implements StorageNotificationInterface type FakeStorageNotifications struct { Fake *FakeStorageV1beta1 ns string } var storagenotificationsResource = schema.GroupVersionResource{Group: "storage.cnrm.cloud.google.com", Version: "v1beta1", Resource: "storagenotifications"} var storagenotificationsKind = schema.GroupVersionKind{Group: "storage.cnrm.cloud.google.com", Version: "v1beta1", Kind: "StorageNotification"} // Get takes name of the storageNotification, and returns the corresponding storageNotification object, and an error if there is any. func (c *FakeStorageNotifications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.StorageNotification, err error) { obj, err := c.Fake. Invokes(testing.NewGetAction(storagenotificationsResource, c.ns, name), &v1beta1.StorageNotification{}) if obj == nil { return nil, err } return obj.(*v1beta1.StorageNotification), err } // List takes label and field selectors, and returns the list of StorageNotifications that match those selectors. func (c *FakeStorageNotifications) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.StorageNotificationList, err error) { obj, err := c.Fake. Invokes(testing.NewListAction(storagenotificationsResource, storagenotificationsKind, c.ns, opts), &v1beta1.StorageNotificationList{}) if obj == nil { return nil, err } label, _, _ := testing.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &v1beta1.StorageNotificationList{ListMeta: obj.(*v1beta1.StorageNotificationList).ListMeta} for _, item := range obj.(*v1beta1.StorageNotificationList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err } // Watch returns a watch.Interface that watches the requested storageNotifications. func (c *FakeStorageNotifications) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { return c.Fake. InvokesWatch(testing.NewWatchAction(storagenotificationsResource, c.ns, opts)) } // Create takes the representation of a storageNotification and creates it. Returns the server's representation of the storageNotification, and an error, if there is any. func (c *FakeStorageNotifications) Create(ctx context.Context, storageNotification *v1beta1.StorageNotification, opts v1.CreateOptions) (result *v1beta1.StorageNotification, err error) { obj, err := c.Fake. Invokes(testing.NewCreateAction(storagenotificationsResource, c.ns, storageNotification), &v1beta1.StorageNotification{}) if obj == nil { return nil, err } return obj.(*v1beta1.StorageNotification), err } // Update takes the representation of a storageNotification and updates it. Returns the server's representation of the storageNotification, and an error, if there is any. func (c *FakeStorageNotifications) Update(ctx context.Context, storageNotification *v1beta1.StorageNotification, opts v1.UpdateOptions) (result *v1beta1.StorageNotification, err error) { obj, err := c.Fake. Invokes(testing.NewUpdateAction(storagenotificationsResource, c.ns, storageNotification), &v1beta1.StorageNotification{}) if obj == nil { return nil, err } return obj.(*v1beta1.StorageNotification), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). func (c *FakeStorageNotifications) UpdateStatus(ctx context.Context, storageNotification *v1beta1.StorageNotification, opts v1.UpdateOptions) (*v1beta1.StorageNotification, error) { obj, err := c.Fake. Invokes(testing.NewUpdateSubresourceAction(storagenotificationsResource, "status", c.ns, storageNotification), &v1beta1.StorageNotification{}) if obj == nil { return nil, err } return obj.(*v1beta1.StorageNotification), err } // Delete takes name of the storageNotification and deletes it. Returns an error if one occurs. func (c *FakeStorageNotifications) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. Invokes(testing.NewDeleteActionWithOptions(storagenotificationsResource, c.ns, name, opts), &v1beta1.StorageNotification{}) return err } // DeleteCollection deletes a collection of objects. func (c *FakeStorageNotifications) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(storagenotificationsResource, c.ns, listOpts) _, err := c.Fake.Invokes(action, &v1beta1.StorageNotificationList{}) return err } // Patch applies the patch and returns the patched storageNotification. func (c *FakeStorageNotifications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.StorageNotification, err error) { obj, err := c.Fake. Invokes(testing.NewPatchSubresourceAction(storagenotificationsResource, c.ns, name, pt, data, subresources...), &v1beta1.StorageNotification{}) if obj == nil { return nil, err } return obj.(*v1beta1.StorageNotification), err }
{ "content_hash": "dac6c340c56bb6759768fe0d84f982c1", "timestamp": "", "source": "github", "line_count": 124, "max_line_length": 204, "avg_line_length": 44.49193548387097, "alnum_prop": 0.7810404205183977, "repo_name": "GoogleCloudPlatform/k8s-config-connector", "id": "29b41ff6dd1d786c148a242e60bb50418d1f5952", "size": "6359", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pkg/clients/generated/client/clientset/versioned/typed/storage/v1beta1/fake/fake_storagenotification.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Dockerfile", "bytes": "13767" }, { "name": "Go", "bytes": "5700747" }, { "name": "HTML", "bytes": "1246" }, { "name": "Makefile", "bytes": "9799" }, { "name": "Python", "bytes": "31671" }, { "name": "Shell", "bytes": "25436" } ], "symlink_target": "" }
This test case asserts that a py_library is not generated due to a naming conflict with existing target.
{ "content_hash": "4277a2f71eaf958f7e4fd9583e9766cc", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 82, "avg_line_length": 52.5, "alnum_prop": 0.8095238095238095, "repo_name": "bazelbuild/rules_python", "id": "cd3691725153c97848dd63f05c6069972d45c39c", "size": "142", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "gazelle/testdata/naming_convention_library_fail/README.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Go", "bytes": "78630" }, { "name": "Python", "bytes": "116552" }, { "name": "Shell", "bytes": "676" }, { "name": "Starlark", "bytes": "196289" } ], "symlink_target": "" }
export module BaseConfig { export interface Word { word: string; score: number; }; export interface Config { words: [Word]; }; }
{ "content_hash": "fe876dce5c35d5aaed1b197eba7e1f94", "timestamp": "", "source": "github", "line_count": 12, "max_line_length": 27, "avg_line_length": 12.916666666666666, "alnum_prop": 0.5935483870967742, "repo_name": "kvss/k-text-analyzer", "id": "3c199f4f2aa1041fe5ce9ef025ea90e08dc5c154", "size": "155", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/configs/config.base.ts", "mode": "33188", "license": "mit", "language": [ { "name": "TypeScript", "bytes": "9035" } ], "symlink_target": "" }
#ifndef mrpt_CUndistortMap_H #define mrpt_CUndistortMap_H #include <mrpt/utils/TCamera.h> #include <mrpt/utils/CImage.h> #include <mrpt/vision/link_pragmas.h> namespace mrpt { namespace vision { /** Use this class to undistort monocular images if the same distortion map is used over and over again. * Using this class is much more efficient that calling mrpt::utils::CImage::rectifyImage or OpenCV's cvUndistort2(), since * the remapping data is computed only once for the camera parameters (typical times: 640x480 image -> 70% build map / 30% actual undistort). * * Works with grayscale or color images. * * Example of usage: * \code * CUndistortMap unmap; * mrpt::utils::TCamera cam_params; * * unmap.setFromCamParams( cam_params ); * * mrpt::utils::CImage img, img_out; * * while (true) { * unmap.undistort(img, img_out); // or: * unmap.undistort(img); // output in place * } * * \endcode * * \sa CStereoRectifyMap, mrpt::utils::TCamera, the application <a href="http://www.mrpt.org/Application:camera-calib" >camera-calib</a> for calibrating a camera. * \ingroup mrpt_vision_grp */ class VISION_IMPEXP CUndistortMap { public: CUndistortMap(); //!< Default ctor /** Prepares the mapping from the distortion parameters of a camera. * Must be called before invoking \a undistort(). */ void setFromCamParams(const mrpt::utils::TCamera &params); /** Undistort the input image and saves the result in the output one - \a setFromCamParams() must have been set prior to calling this. */ void undistort(const mrpt::utils::CImage &in_img, mrpt::utils::CImage &out_img) const; /** Undistort the input image and saves the result in-place- \a setFromCamParams() must have been set prior to calling this. */ void undistort(mrpt::utils::CImage &in_out_img) const; /** Returns the camera parameters which were used to generate the distortion map, as passed by the user to \a setFromCamParams */ inline const mrpt::utils::TCamera & getCameraParams() const { return m_camera_params; } /** Returns true if \a setFromCamParams() has been already called, false otherwise. * Can be used within loops to determine the first usage of the object and when it needs to be initialized. */ inline bool isSet() const { return !m_dat_mapx.empty(); } private: std::vector<int16_t> m_dat_mapx; std::vector<uint16_t> m_dat_mapy; mrpt::utils::TCamera m_camera_params; //!< A copy of the data provided by the user }; // end class } // end namespace } // end namespace #endif
{ "content_hash": "dda776e8a7ec5b71fd94682fca91defe", "timestamp": "", "source": "github", "line_count": 74, "max_line_length": 165, "avg_line_length": 36.108108108108105, "alnum_prop": 0.6751497005988024, "repo_name": "LXiong/mrpt", "id": "a505c2187377a21189a71a852288bf0dbdd13e2e", "size": "3322", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "libs/vision/include/mrpt/vision/CUndistortMap.h", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
$.widget( "dynform.newquestion", { _title : null, _tip : null, _control : null, _inputs : [], options: { editable : true, name : null, confirmDelete : true, type : 'textarea', title : { html : 'Click to edit', value : null }, tip : { html : 'Click to edit', value : null }, }, // construct _create: function() { this.element.addClass( "dyn-question" ); // each question element would have an unique ID, so if the ID attribute is not present, it will be created using guid plugin this.element.guid(); // we can set options using data attribute in html, this can be useful in combination with a php script // i.e. <div data-type="textarea"> will generate this.options.type = "textarea" in this object // ATENTION: this overrides options setted by javascript when creating the object: $( [selector] ).question( { overriden-option-if-using-html-data: 'never used value'} ) $.extend( true, this.options, this.element.data() ); this._title = this._createTitle(); this._tip = this._createTip(); if (this.options.editable) { this._control = this._createControl(); } console.log( this.options); }, _createInputs : function( options ) { return [ this.addInput( options ) ]; }, _setUpInput : function() { return $(this).questionInput(); }, _createTitle : function() { var title = $('<div></div>').editable(this.options.title).addClass("dyn-question-title"); return title.prependTo(this.element); }, _createBody : function() { var body = $('<div></div>').questionBody(this.options); return body.appendTo(this.element); }, _createTip : function() { var title = $('<div></div>').editable(this.options.tip).addClass("dyn-question-tip"); return title.appendTo(this.element); }, _allowCreate : function() { return ($.inArray(this.options.type, ['text','checkbox','radio']) !== -1) ? true : false; }, /** * _createControl method * ===================== * Creates and inserts elements to be used in edition mode * * @return {jQuery Object} * - jQuery Object containing the recently created div and its children elements * * @author Danilo Lizama (dlizama@cisal.cl) * @version 1.0 2013/09/09 */ _createControl : function() { var menu = $('<div></div>') .addClass("dyn-question-control dyn-control buttongroup"); // var editButton = $('<span/>') // .text('e') // .addClass("button edit") // .appendTo(menu).button( { text: false, icons: {primary: "ui-icon-pencil"} } ); var deleteButton = $('<span/>') .text('delete question') .addClass("button delete") .appendTo(menu).button( { text: false, icons: {primary: "ui-icon-trash"} } ); if ( this._allowCreate() ) { var addInputButton = $('<span/>') .text('add an option') .addClass("button add") .appendTo(menu).button( { text: false, icons: {primary: "ui-icon-plus"} } ); } menu.on('click','.button', this._onButtonClick); return menu.prependTo(this.element); }, _onButtonClick : function(e) { e.preventDefault(); var $clicked = $(e.target); var $button = ( $clicked.hasClass("button") ) ? $clicked : $clicked.parent('.button'); if ($button.hasClass("delete")) { $button.parents(".dyn-question").question("destroy"); } if ($button.hasClass("add")) { $button.parents(".dyn-question").question("addInput"); } }, destroy : function() { if ( this._control ) { this._control.off('click', '.button', this._onButtonClick); this.element.remove(); } this._super(); }, // public methods label : function( value ) { return (value === undefined) ? _title.questionTitle("option","text") : this._title.questionTitle("option","text",value); }, tip : function( value ) { return (value === undefined) ? _tip.questionTip("option","text") : this._tip.questionTip("option","text",value); }, inputs : function () { return this._inputs; }, addInput : function( ) { var input = $('<div></div>').questionInput( this.options ); return input.appendTo(this.element); }, _prepMultipleName : function( name ) { var suffix = '[]'; if ( name.slice(-2) !== suffix ) { name = name + suffix; } return name; }, _setOption: function( key, value ) { if ( key === "value" ) { value = this._constrain( value ); } this._super( key, value ); }, _setOptions: function( options ) { this._super( options ); this.refresh(); }, // public methods. value: function( value ) { // No value passed, act as a getter. if ( value === undefined ) { return this.options.value; } // Value passed, act as a setter. this.options.value = this._constrain( value ); var progress = this.options.value + "%"; this.element.text( progress ); }, refresh: function() { var progress = this.options.value + "%"; this.element.text( progress ); if ( this.options.value == 100 ) { this._trigger( "complete", null, { value: 100 } ); } }, config: function() { var config = { name : this.options.name, type : this.options.type, title : this.options.title, tip : this.options.tip, inputs : [] }; $.each( this._inputs, function( index, value ) { config.inputs.push( value.questionInput("config") ); }); return config; }, toJSON : function() { return JSON.stringify( this.config() ); }, // private methods. _constrain: function( value ) { if ( value > 100 ) { value = 100; } if ( value < 0 ) { value = 0; } return value; } });
{ "content_hash": "b07fc8c5631f38233cf3cff9f6e62b08", "timestamp": "", "source": "github", "line_count": 238, "max_line_length": 177, "avg_line_length": 29.26050420168067, "alnum_prop": 0.4840608845491097, "repo_name": "chapalele/jquery-dynform", "id": "da3c6d0436747494ed6eecffff1a6d0d0e90d89a", "size": "6964", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "js/dynform.newquestion.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "12489" }, { "name": "JavaScript", "bytes": "41597" }, { "name": "PHP", "bytes": "4784" } ], "symlink_target": "" }
using StartR.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace StartR.Web.Controllers { public class HomeController : Controller { private IStartRDataSource _db; public HomeController(IStartRDataSource db) { _db = db; } public ActionResult Index() { return View(_db.Clients); } public ActionResult About() { ViewBag.Message = "Your app description page."; return View(); } public ActionResult Contact() { ViewBag.Message = "Your contact page."; return View(); } } }
{ "content_hash": "d258f2d7d1bfe92b1f0aa9c59c0ba028", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 59, "avg_line_length": 19.394736842105264, "alnum_prop": 0.5576662143826323, "repo_name": "jguadagno/StartR", "id": "7ba48d59e4f2dfb86c394f94b504cfaa3f65f833", "size": "739", "binary": false, "copies": "2", "ref": "refs/heads/main", "path": "src/StartR.Web/Controllers/HomeController.cs", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
/**************************************************************************** * Included Files ****************************************************************************/ #include <nuttx/config.h> #include <sys/mount.h> #include <string.h> #include <errno.h> #include <assert.h> #include <debug.h> #include <nuttx/fs/fs.h> #include "inode/inode.h" #include "driver/driver.h" /* At least one filesystem must be defined, or this file will not compile. * It may be desire-able to make filesystems dynamically registered at * some time in the future, but at present, this file needs to know about * every configured filesystem. */ #ifdef CONFIG_FS_READABLE /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ /* Configuration ************************************************************/ /* In the canonical case, a file system is bound to a block driver. However, * some less typical cases a block driver is not required. Examples are * pseudo file systems (like BINFS or PROCFS) and MTD file systems (like NXFFS). * * These file systems all require block drivers: */ #if defined(CONFIG_FS_FAT) || defined(CONFIG_FS_ROMFS) || \ defined(CONFIG_FS_SMARTFS) # define BDFS_SUPPORT 1 #endif /* These file systems do not require block drivers */ #if defined(CONFIG_FS_NXFFS) || defined(CONFIG_FS_BINFS) || \ defined(CONFIG_FS_PROCFS) || defined(CONFIG_NFS) # define NONBDFS_SUPPORT #endif /**************************************************************************** * Private Types ****************************************************************************/ struct fsmap_t { FAR const char *fs_filesystemtype; FAR const struct mountpt_operations *fs_mops; }; /**************************************************************************** * Private Variables ****************************************************************************/ #ifdef BDFS_SUPPORT #ifdef CONFIG_FS_FAT extern const struct mountpt_operations fat_operations; #endif #ifdef CONFIG_FS_ROMFS extern const struct mountpt_operations romfs_operations; #endif #ifdef CONFIG_FS_SMARTFS extern const struct mountpt_operations smartfs_operations; #endif static const struct fsmap_t g_bdfsmap[] = { #ifdef CONFIG_FS_FAT { "vfat", &fat_operations }, #endif #ifdef CONFIG_FS_ROMFS { "romfs", &romfs_operations }, #endif #ifdef CONFIG_FS_SMARTFS { "smartfs", &smartfs_operations }, #endif { NULL, NULL }, }; #endif /* BDFS_SUPPORT*/ #ifdef NONBDFS_SUPPORT #ifdef CONFIG_FS_NXFFS extern const struct mountpt_operations nxffs_operations; #endif #ifdef CONFIG_NFS extern const struct mountpt_operations nfs_operations; #endif #ifdef CONFIG_FS_BINFS extern const struct mountpt_operations binfs_operations; #endif #ifdef CONFIG_FS_PROCFS extern const struct mountpt_operations procfs_operations; #endif static const struct fsmap_t g_nonbdfsmap[] = { #ifdef CONFIG_FS_NXFFS { "nxffs", &nxffs_operations }, #endif #ifdef CONFIG_NFS { "nfs", &nfs_operations }, #endif #ifdef CONFIG_FS_BINFS { "binfs", &binfs_operations }, #endif #ifdef CONFIG_FS_PROCFS { "procfs", &procfs_operations }, #endif { NULL, NULL }, }; #endif /* NONBDFS_SUPPORT */ /**************************************************************************** * Public Variables ****************************************************************************/ /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** * Name: mount_findfs * * Description: * find the specified filesystem * ****************************************************************************/ #if defined(BDFS_SUPPORT) || defined(NONBDFS_SUPPORT) static FAR const struct mountpt_operations * mount_findfs(FAR const struct fsmap_t *fstab, FAR const char *filesystemtype) { FAR const struct fsmap_t *fsmap; for (fsmap = fstab; fsmap->fs_filesystemtype; fsmap++) { if (strcmp(filesystemtype, fsmap->fs_filesystemtype) == 0) { return fsmap->fs_mops; } } return NULL; } #endif /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** * Name: mount * * Description: * mount() attaches the filesystem specified by the 'source' block device * name into the root file system at the path specified by 'target.' * * Return: * Zero is returned on success; -1 is returned on an error and errno is * set appropriately: * * EACCES A component of a path was not searchable or mounting a read-only * filesystem was attempted without giving the MS_RDONLY flag. * EBUSY 'source' is already mounted. * EFAULT One of the pointer arguments points outside the user address * space. * EINVAL 'source' had an invalid superblock. * ENODEV 'filesystemtype' not configured * ENOENT A pathname was empty or had a nonexistent component. * ENOMEM Could not allocate a memory to copy filenames or data into. * ENOTBLK 'source' is not a block device * ****************************************************************************/ int mount(FAR const char *source, FAR const char *target, FAR const char *filesystemtype, unsigned long mountflags, FAR const void *data) { #if defined(BDFS_SUPPORT) || defined(NONBDFS_SUPPORT) #ifdef BDFS_SUPPORT FAR struct inode *blkdrvr_inode = NULL; #endif FAR struct inode *mountpt_inode; FAR const struct mountpt_operations *mops; void *fshandle; int errcode; int ret; /* Verify required pointer arguments */ DEBUGASSERT(target && filesystemtype); /* Find the specified filesystem. Try the block driver file systems first */ #ifdef BDFS_SUPPORT if (source && (mops = mount_findfs(g_bdfsmap, filesystemtype)) != NULL) { /* Make sure that a block driver argument was provided */ DEBUGASSERT(source); /* Find the block driver */ ret = find_blockdriver(source, mountflags, &blkdrvr_inode); if (ret < 0) { fdbg("ERROR: Failed to find block driver %s\n", source); errcode = -ret; goto errout; } } else #endif /* BDFS_SUPPORT */ #ifdef NONBDFS_SUPPORT if ((mops = mount_findfs(g_nonbdfsmap, filesystemtype)) != NULL) { } else #endif /* NONBDFS_SUPPORT */ { fdbg("ERROR: Failed to find file system %s\n", filesystemtype); errcode = ENODEV; goto errout; } /* Insert a dummy node -- we need to hold the inode semaphore * to do this because we will have a momentarily bad structure. */ inode_semtake(); ret = inode_reserve(target, &mountpt_inode); if (ret < 0) { /* inode_reserve can fail for a couple of reasons, but the most likely * one is that the inode already exists. inode_reserve may return: * * -EINVAL - 'path' is invalid for this operation * -EEXIST - An inode already exists at 'path' * -ENOMEM - Failed to allocate in-memory resources for the operation */ fdbg("ERROR: Failed to reserve inode\n"); errcode = -ret; goto errout_with_semaphore; } /* Bind the block driver to an instance of the file system. The file * system returns a reference to some opaque, fs-dependent structure * that encapsulates this binding. */ if (!mops->bind) { /* The filesystem does not support the bind operation ??? */ fdbg("ERROR: Filesystem does not support bind\n"); errcode = EINVAL; goto errout_with_mountpt; } /* Increment reference count for the reference we pass to the file system */ #ifdef BDFS_SUPPORT #ifdef NONBDFS_SUPPORT if (blkdrvr_inode) #endif { blkdrvr_inode->i_crefs++; } #endif /* On failure, the bind method returns -errorcode */ #ifdef BDFS_SUPPORT ret = mops->bind(blkdrvr_inode, data, &fshandle); #else ret = mops->bind(NULL, data, &fshandle); #endif if (ret != 0) { /* The inode is unhappy with the blkdrvr for some reason. Back out * the count for the reference we failed to pass and exit with an * error. */ fdbg("ERROR: Bind method failed: %d\n", ret); #ifdef BDFS_SUPPORT #ifdef NONBDFS_SUPPORT if (blkdrvr_inode) #endif { blkdrvr_inode->i_crefs--; } #endif errcode = -ret; goto errout_with_mountpt; } /* We have it, now populate it with driver specific information. */ INODE_SET_MOUNTPT(mountpt_inode); mountpt_inode->u.i_mops = mops; #ifdef CONFIG_FILE_MODE mountpt_inode->i_mode = mode; #endif mountpt_inode->i_private = fshandle; inode_semgive(); /* We can release our reference to the blkdrver_inode, if the filesystem * wants to retain the blockdriver inode (which it should), then it must * have called inode_addref(). There is one reference on mountpt_inode * that will persist until umount2() is called. */ #ifdef BDFS_SUPPORT #ifdef NONBDFS_SUPPORT if (blkdrvr_inode) #endif { inode_release(blkdrvr_inode); } #endif return OK; /* A lot of goto's! But they make the error handling much simpler */ errout_with_mountpt: mountpt_inode->i_crefs = 0; inode_remove(target); inode_semgive(); #ifdef BDFS_SUPPORT #ifdef NONBDFS_SUPPORT if (blkdrvr_inode) #endif { inode_release(blkdrvr_inode); } #endif inode_release(mountpt_inode); goto errout; errout_with_semaphore: inode_semgive(); #ifdef BDFS_SUPPORT #ifdef NONBDFS_SUPPORT if (blkdrvr_inode) #endif { inode_release(blkdrvr_inode); } #endif errout: set_errno(errcode); return ERROR; #else fdbg("ERROR: No filesystems enabled\n"); set_errno(ENOSYS); return ERROR; #endif /* BDFS_SUPPORT || NONBDFS_SUPPORT */ } #endif /* CONFIG_FS_READABLE */
{ "content_hash": "0a434ea48053fec3b59bd61af5e4b5a8", "timestamp": "", "source": "github", "line_count": 378, "max_line_length": 80, "avg_line_length": 26.994708994708994, "alnum_prop": 0.5770286162289299, "repo_name": "IUTInfoAix/terrarium_2015", "id": "9921bbe6fef739724a97a2086331da7633bb0d49", "size": "12012", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "nuttx/fs/mount/fs_mount.c", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Assembly", "bytes": "1031371" }, { "name": "Bison", "bytes": "30076" }, { "name": "C", "bytes": "64458265" }, { "name": "C++", "bytes": "1383737" }, { "name": "CSS", "bytes": "1959" }, { "name": "Groff", "bytes": "60038" }, { "name": "HTML", "bytes": "1910" }, { "name": "JavaScript", "bytes": "2355" }, { "name": "Makefile", "bytes": "1243982" }, { "name": "Objective-C", "bytes": "1888974" }, { "name": "PHP", "bytes": "471" }, { "name": "Pascal", "bytes": "253088" }, { "name": "Perl", "bytes": "606911" }, { "name": "Python", "bytes": "13656" }, { "name": "R", "bytes": "40046" }, { "name": "Shell", "bytes": "1511569" }, { "name": "Tcl", "bytes": "126857" }, { "name": "Visual Basic", "bytes": "8382" } ], "symlink_target": "" }
lib-cpp-pre {#mainpage} =========== C++11 header-only boost companion library baked with love. ## Features * [to_json](@ref pre::json::to_json) and [from_json](@ref pre::json::from_json) functions for **any custom or standard types & aggregate**. * [Lambda & Function instrospector traits](@ref pre::type_traits::function_traits) * A [mockup serial port](@ref boost::asio::mockup_serial_port_service) working with boost::asio * safe cast from enums underlying\_type in the enum type. * std::chrono::duration & boost::chrono::duration suffixes for ms, sec... until C++14 is mainstream. * bytes & bits manipulation utilities ## About This C++11 header-only library provides utilities that we miss in Boost for the moment when writing productive code. We author it in our free time to help our personal project and companies to centralize useful reusable code, that we polish until we can propose it to the Boost Libraries. We always deprecate our own implementation when the Boost community finally accepts them, because we are just a backward-compatible staging-library for small Boost utilities. That's why we named it pre, like pre::boost. ## Getting started The library is header only, but has dependencies on : * Boost 1.60.0 * nlohmann-json ### With hunter CMake Package manager Simply drop in your CMakeLists.txt the following : ```cmake hunter_add_package(lib-cpp-pre) find_package(lib-cpp-pre 1.3.7 REQUIRED) include_directories(AFTER ${LIB_CPP_PRE_INCLUDE_DIRS}) ``` ### Without hunter You can install these dependencies yourself, and then install the library this way : ```shell mkdir build/ cd build/ cmake .. -DHUNTER_ENABLED=OFF && make install ``` ## What we already brought to Boost - [BOOST\_FUSION\_ADAPT\_STRUCT auto type deduction](http://www.boost.org/doc/libs/release/libs/fusion/doc/html/fusion/adapted/adapt_struct.html) and we maitain it **there**. ## License Licensed under the MIT License, see [LICENSE](LICENSE). ## Contributors * Damien Buhl (alias daminetreg) * Patrick Wieder (alias linkineo) for his reviews * Daniel Friedrich (alias dan-42) : [Lambda & Function instrospector traits](index.html#pre::type_traits::function_traits/pre::type_traits::function_traits)
{ "content_hash": "4e6808b54833d686bebe2ae05413e733", "timestamp": "", "source": "github", "line_count": 56, "max_line_length": 175, "avg_line_length": 40.339285714285715, "alnum_prop": 0.7352810978308987, "repo_name": "daminetreg/lib-cpp-pre", "id": "1be251dfaf626babe5b87a787ba09695322e6f25", "size": "2340", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "153593" }, { "name": "CMake", "bytes": "19796" }, { "name": "CSS", "bytes": "4399" }, { "name": "HTML", "bytes": "2992" }, { "name": "JavaScript", "bytes": "4942" }, { "name": "Python", "bytes": "6608" }, { "name": "Shell", "bytes": "116" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <fullName>Grant+Lifecycle+App</fullName> <types> <members>BudgetActualController</members> <members>BudgetActualDisplayController</members> <members>BudgetActualWrapper</members> <members>BudgetActual_TEST</members> <members>ChatterUtilityClass</members> <members>ConnectApiHelper</members> <members>ConnectApiHelper_TESTS</members> <members>ContactSearchUtility</members> <members>ContactSearchUtility_TEST</members> <members>ConvertOpportunitytoGrantController</members> <members>ConvertOptytoGrant_TESTS</members> <members>DeliverablesWizardControllerExtension</members> <members>DeliverablesWizardController_TESTS</members> <members>DepartmentUtility</members> <members>DepartmentUtility_TEST</members> <members>GrantManagementUtilities</members> <members>GrantManagementUtilities_TESTS</members> <members>IssuesIntersectionController</members> <members>IssuesIntersectionController_TEST</members> <members>ManageStaffParticipation</members> <members>ManageStaffParticipation_TESTS</members> <members>ParticipationControllerExtension</members> <members>ParticipationControllerExtension_TEST</members> <members>SetupCustomSettings</members> <members>SetupNewGrantControllerExtension</members> <members>TestDataFactory_TEST</members> <members>UTIL_Namespace</members> <name>ApexClass</name> </types> <types> <members>BudgetActualDisplayComponent</members> <members>Budget_Actual_Output</members> <members>IssusIntersectionComponent</members> <members>StaffParticipationComponent</members> <name>ApexComponent</name> </types> <types> <members>BudgetvsActual</members> <members>BvAPermissionCheck</members> <members>ConvertToGrantRecord</members> <members>GrantWizardP2</members> <members>GrantWizardP3</members> <members>NewDeliverableIssues</members> <members>ProductWizardP1</members> <members>ProductWizardP2</members> <members>ProductWizardPIssues</members> <members>SetupGMCustomSettings</members> <members>UpdateAccountIssue</members> <members>UpdateAccountIssueAction</members> <members>UpdateAccountStaff</members> <members>UpdateAccountStaffAction</members> <members>UpdateBudgetSettings</members> <members>UpdateContactIssue</members> <members>UpdateContactIssueAction</members> <members>UpdateDeliverableIssues</members> <members>UpdateDeliverableIssuesAction</members> <members>UpdateDeliverableStaff</members> <members>UpdateDeliverableStaffAction</members> <members>UpdateDepartmentIssues</members> <members>UpdateDepartmentIssuesAction</members> <members>UpdateGrantStaff</members> <members>UpdateGrantStaffAction</members> <members>UpdateOpportunityStaff</members> <members>UpdateOpportunityStaffAction</members> <members>UpdateOutreachIssues</members> <members>UpdateOutreachIssuesAction</members> <members>UpdateOutreachStaff</members> <members>UpdateOutreachStaffAction</members> <members>UpdateProjectIssues</members> <members>UpdateProjectIssuesAction</members> <members>UpdateProjectStaff</members> <members>UpdateProjectStaffAction</members> <name>ApexPage</name> </types> <types> <members>ManageStaffParticipationTrigger</members> <name>ApexTrigger</name> </types> <types> <members>Grant_Report_Detail__c.Milestone_Items</members> <members>Grant_Reporting_Requirement__c.Standard_View</members> <members>Staff_Participation__c.Standard_View</members> <name>CompactLayout</name> </types> <types> <members>Grant_Lifecyle</members> <name>CustomApplication</name> </types> <types> <members>Accounting_Category__c.Category_Code__c</members> <members>Accounting_Category__c.Display_Order__c</members> <members>Accounting_Code__c.Accounting_Category__c</members> <members>Accounting_Code__c.Include_on_Budget_Report__c</members> <members>Accounting_Data_Load__c.Account_Code__c</members> <members>Accounting_Data_Load__c.April_Data__c</members> <members>Accounting_Data_Load__c.August_Data__c</members> <members>Accounting_Data_Load__c.December_Data__c</members> <members>Accounting_Data_Load__c.Department_Code__c</members> <members>Accounting_Data_Load__c.February_Data__c</members> <members>Accounting_Data_Load__c.January_Data__c</members> <members>Accounting_Data_Load__c.July_Data__c</members> <members>Accounting_Data_Load__c.June_Data__c</members> <members>Accounting_Data_Load__c.March_Data__c</members> <members>Accounting_Data_Load__c.May_Data__c</members> <members>Accounting_Data_Load__c.November_Data__c</members> <members>Accounting_Data_Load__c.October_Data__c</members> <members>Accounting_Data_Load__c.Org_Code__c</members> <members>Accounting_Data_Load__c.Project_Code__c</members> <members>Accounting_Data_Load__c.September_Data__c</members> <members>Accounting_Data_Load__c.Total__c</members> <members>Accounting_Data_Load__c.Type__c</members> <members>Accounting_Data_Load__c.Year__c</members> <members>Budget_Settings__c.Id_Value__c</members> <members>Budget_Settings__c.String_Value__c</members> <members>Contact.gm_Department_Reference__c</members> <members>Contact.gm_Department__c</members> <members>Contact.gm_Related_User_Record__c</members> <members>Deliverable__c.Departments__c</members> <members>Deliverable__c.Description__c</members> <members>Deliverable__c.Due_Date__c</members> <members>Deliverable__c.Lead_Staff__c</members> <members>Deliverable__c.Organizational_Partners__c</members> <members>Deliverable__c.Outreach_Activities__c</members> <members>Deliverable__c.Outreach_Strategy__c</members> <members>Deliverable__c.Posted__c</members> <members>Deliverable__c.Product_Release_Date__c</members> <members>Deliverable__c.Product_Status__c</members> <members>Deliverable__c.Product_Summary__c</members> <members>Deliverable__c.Product_Type__c</members> <members>Deliverable__c.Project__c</members> <members>Deliverable__c.URL__c</members> <members>Department__c.Code__c</members> <members>Department__c.Parent_Department__c</members> <members>Department__c.Policy_Dept__c</members> <members>Department__c.Roll_Up_Department__c</members> <members>GrantManagementSettings__c.Boolean_Value__c</members> <members>GrantManagementSettings__c.Id_Value__c</members> <members>GrantManagementSettings__c.String_Value__c</members> <members>Grant_Deliverable__c.Deliverable__c</members> <members>Grant_Deliverable__c.Grant_Management__c</members> <members>Grant_Management__c.Amount_of_Grant_Awarded__c</members> <members>Grant_Management__c.Closed__c</members> <members>Grant_Management__c.Development_Lead__c</members> <members>Grant_Management__c.Display_Fringe_Benefits_Separately__c</members> <members>Grant_Management__c.Fund__c</members> <members>Grant_Management__c.Grant_Award_Date__c</members> <members>Grant_Management__c.Grant_End_Date__c</members> <members>Grant_Management__c.Grant_Number__c</members> <members>Grant_Management__c.Grant_Period_End__c</members> <members>Grant_Management__c.Grant_Period_Start__c</members> <members>Grant_Management__c.Grant_Provisions__c</members> <members>Grant_Management__c.Grant_Start_Date__c</members> <members>Grant_Management__c.Grantee__c</members> <members>Grant_Management__c.Lead_Staff__c</members> <members>Grant_Management__c.Multi_Year_Total__c</members> <members>Grant_Management__c.Number_of_Years__c</members> <members>Grant_Management__c.Project_Code__c</members> <members>Grant_Management__c.Project__c</members> <members>Grant_Management__c.Reporting_Requirements__c</members> <members>Grant_Management__c.Revenue_Class__c</members> <members>Grant_Management__c.Source_Opportunity__c</members> <members>Grant_Report_Detail__c.Date_Due_to_Reviewer__c</members> <members>Grant_Report_Detail__c.Grant_Name__c</members> <members>Grant_Report_Detail__c.Grant_Reporting__c</members> <members>Grant_Report_Detail__c.Link_to_Report__c</members> <members>Grant_Report_Detail__c.Report_Format__c</members> <members>Grant_Report_Detail__c.Report_Reviewer_Contact__c</members> <members>Grant_Report_Detail__c.Report_Writer_Contact__c</members> <members>Grant_Report_Detail__c.Report_Writer__c</members> <members>Grant_Report_Detail__c.Reviewer__c</members> <members>Grant_Report_Detail__c.Short_Description__c</members> <members>Grant_Report_Detail__c.Status__c</members> <members>Grant_Reporting_Requirement__c.Completed_Reports__c</members> <members>Grant_Reporting_Requirement__c.Due_Date_Pretty__c</members> <members>Grant_Reporting_Requirement__c.Due_Date__c</members> <members>Grant_Reporting_Requirement__c.Grant_Management__c</members> <members>Grant_Reporting_Requirement__c.Grant_Name__c</members> <members>Grant_Reporting_Requirement__c.Report_Items__c</members> <members>Grant_Reporting_Requirement__c.Report_Type__c</members> <members>Grant_Reporting_Requirement__c.Status__c</members> <members>Impact__c.Deliverable__c</members> <members>Impact__c.Impact_Type__c</members> <members>Impact__c.Narrative__c</members> <members>Issue_Intersection__c.Account__c</members> <members>Issue_Intersection__c.Campaign__c</members> <members>Issue_Intersection__c.Contact__c</members> <members>Issue_Intersection__c.Default_for_Related_Item__c</members> <members>Issue_Intersection__c.Deliverable__c</members> <members>Issue_Intersection__c.Department__c</members> <members>Issue_Intersection__c.Issue_Type__c</members> <members>Issue_Intersection__c.Issue__c</members> <members>Issue_Intersection__c.Metric__c</members> <members>Issue_Intersection__c.Object__c</members> <members>Issue_Intersection__c.Outreach__c</members> <members>Issue_Intersection__c.Project__c</members> <members>Issue_Intersection__c.Record_Id__c</members> <members>Issue_Intersection__c.Record_Name__c</members> <members>Issue_Utility_Settings__c.Issue_Intersection_Field__c</members> <members>Issue_Utility_Settings__c.String_Value__c</members> <members>Issue__c.Issue_Display_Name__c</members> <members>Issue__c.Parent_Issue__c</members> <members>Issue__c.Taxonomy__c</members> <members>Opportunity.Development_Lead__c</members> <members>Opportunity.Final_Report_Due__c</members> <members>Opportunity.Fund__c</members> <members>Opportunity.Grant_Period_End__c</members> <members>Opportunity.Grant_Period_Start__c</members> <members>Opportunity.Grant_Provisions__c</members> <members>Opportunity.Lead_Staff__c</members> <members>Opportunity.Reporting_Requirements__c</members> <members>Opportunity.Revenue_Class__c</members> <members>Opportunity_Code__c.Allocated_to_Project__c</members> <members>Opportunity_Code__c.Amount_Allocated__c</members> <members>Opportunity_Code__c.Opportunity__c</members> <members>Opportunity_Code__c.Project__c</members> <members>Opty_Grant_Fields__c.Grant_Field__c</members> <members>Opty_Grant_Fields__c.Page_Order__c</members> <members>Opty_Grant_Fields__c.Section_on_Page__c</members> <members>Outreach__c.Account__c</members> <members>Outreach__c.Additional_Outreach__c</members> <members>Outreach__c.Article__c</members> <members>Outreach__c.Audience_Size__c</members> <members>Outreach__c.Audience__c</members> <members>Outreach__c.Author__c</members> <members>Outreach__c.Campaign__c</members> <members>Outreach__c.Date__c</members> <members>Outreach__c.Deliverable_Lead_Staff__c</members> <members>Outreach__c.Deliverable_Release_Date__c</members> <members>Outreach__c.Department__c</members> <members>Outreach__c.Description__c</members> <members>Outreach__c.Interviewed_By__c</members> <members>Outreach__c.Lead_Staff__c</members> <members>Outreach__c.Meeting_Notes__c</members> <members>Outreach__c.Must_Read__c</members> <members>Outreach__c.Next_Step__c</members> <members>Outreach__c.Op_Ed__c</members> <members>Outreach__c.Outlet_Reach__c</members> <members>Outreach__c.Picked_up__c</members> <members>Outreach__c.Press_Type__c</members> <members>Outreach__c.Primary_Deliverable__c</members> <members>Outreach__c.Primary_Staff__c</members> <members>Outreach__c.Project__c</members> <members>Outreach__c.Reference__c</members> <members>Outreach__c.Show_Name__c</members> <members>Outreach__c.SourceId__c</members> <members>Outreach__c.Station__c</members> <members>Outreach__c.Status__c</members> <members>Outreach__c.TV_Type__c</members> <members>Outreach__c.Type__c</members> <members>Outreach__c.URL__c</members> <members>ParticipationControllerSettings__c.Staff_Participation_Field__c</members> <members>Project__c.BvA_Notes__c</members> <members>Project__c.Closed__c</members> <members>Project__c.Department__c</members> <members>Project__c.Display_Fringe_Benefits_Separately__c</members> <members>Project__c.End_Date__c</members> <members>Project__c.Grant_Requirements__c</members> <members>Project__c.Include_Operational_Overhead_in_Expense__c</members> <members>Project__c.Lead_Staff__c</members> <members>Project__c.Objectives__c</members> <members>Project__c.Project_Code__c</members> <members>Project__c.Project_Grant_Manager__c</members> <members>Project__c.Start_Date__c</members> <members>Project__c.Use_YTD_Report__c</members> <members>Staff_Participation__c.Access_Budget_Data__c</members> <members>Staff_Participation__c.Account__c</members> <members>Staff_Participation__c.Budget_approver__c</members> <members>Staff_Participation__c.Contact__c</members> <members>Staff_Participation__c.Coordinator_Assistant__c</members> <members>Staff_Participation__c.Deliverables__c</members> <members>Staff_Participation__c.Grant_Management__c</members> <members>Staff_Participation__c.Lead_Staffer__c</members> <members>Staff_Participation__c.Narrative_Approver__c</members> <members>Staff_Participation__c.Opportunity__c</members> <members>Staff_Participation__c.Outreach__c</members> <members>Staff_Participation__c.Project__c</members> <members>Staff_Participation__c.Role__c</members> <members>User.Contact_ID__c</members> <name>CustomField</name> </types> <types> <members>Accounting_Category__c</members> <members>Accounting_Code__c</members> <members>Accounting_Data_Load__c</members> <members>Budget_Settings__c</members> <members>Contact</members> <members>Deliverable__c</members> <members>Department__c</members> <members>GrantManagementSettings__c</members> <members>Grant_Deliverable__c</members> <members>Grant_Management__c</members> <members>Grant_Report_Detail__c</members> <members>Grant_Reporting_Requirement__c</members> <members>Impact__c</members> <members>Issue_Intersection__c</members> <members>Issue_Utility_Settings__c</members> <members>Issue__c</members> <members>Opportunity</members> <members>Opportunity_Code__c</members> <members>Opty_Grant_Fields__c</members> <members>Outreach__c</members> <members>ParticipationControllerSettings__c</members> <members>Project__c</members> <members>Staff_Participation__c</members> <members>User</members> <name>CustomObject</name> </types> <types> <members>Accounting_Category__c</members> <members>Accounting_Code__c</members> <members>Accounting_Data_Load__c</members> <members>Deliverable__c</members> <members>Department__c</members> <members>Grant_Management__c</members> <members>Issue__c</members> <members>Outreach__c</members> <members>Project__c</members> <name>CustomTab</name> </types> <types> <members>Deliverable__c.Deliverable_Wizard_Long</members> <members>Deliverable__c.Deliverable_Wizard_Short</members> <members>Staff_Participation__c.Fields_for_Display_on_Component</members> <members>Staff_Participation__c.Fields_for_Display_on_Deliverable_Compon</members> <members>Staff_Participation__c.Fields_for_Display_on_Grant_Component</members> <members>Staff_Participation__c.Fields_for_Display_on_Project_Component</members> <name>FieldSet</name> </types> <types> <members>Accounting_Category__c-Accounting Category Layout</members> <members>Accounting_Code__c-Accounting Code Layout</members> <members>Accounting_Data_Load__c-Accounting Data Load Layout</members> <members>Deliverable__c-Deliverable Layout</members> <members>Department__c-Department Layout</members> <members>Grant_Deliverable__c-Grant Deliverable Layout</members> <members>Grant_Management__c-Grant Management Layout</members> <members>Grant_Report_Detail__c-Grant Report Layout</members> <members>Grant_Reporting_Requirement__c-Grant Report Layout</members> <members>Impact__c-Impact Layout</members> <members>Issue_Intersection__c-Issue Intersection Layout</members> <members>Issue__c-Issue Layout</members> <members>Opportunity-Opportunity Layout with Grant Management</members> <members>Opportunity_Code__c-Opportunity Code Layout</members> <members>Outreach__c-Impact</members> <members>Outreach__c-Meeting</members> <members>Outreach__c-Outreach Layout</members> <members>Outreach__c-Press Clips - Print</members> <members>Outreach__c-Press Clips - Radio</members> <members>Outreach__c-Press Clips - TV</members> <members>Outreach__c-Testimony%2FSpeech</members> <members>Project__c-Project Layout</members> <members>Staff_Participation__c-Staff Participation Layout</members> <name>Layout</name> </types> <types> <members>Accounting_Category__c.All</members> <members>Accounting_Category__c.All1</members> <members>Accounting_Code__c.All</members> <members>Accounting_Code__c.All1</members> <members>Accounting_Data_Load__c.All</members> <members>Accounting_Data_Load__c.All1</members> <members>Deliverable__c.All</members> <members>Department__c.All</members> <members>Grant_Management__c.All</members> <members>Issue__c.All</members> <members>Outreach__c.All</members> <members>Project__c.All</members> <members>Project__c.all_wit_project_code</members> <members>Staff_Participation__c.All</members> <name>ListView</name> </types> <types> <members>Budget_Data_Access</members> <name>PermissionSet</name> </types> <types> <members>Account.Update_Issues</members> <members>Account.Update_Staff</members> <members>Contact.Update_Issues</members> <members>Deliverable__c.Update_Issues</members> <members>Deliverable__c.Update_Staff</members> <members>Department__c.Update_Issues</members> <members>Grant_Management__c.Update_Staff</members> <members>Grant_Reporting_Requirement__c.New_Report</members> <members>Grant_Reporting_Requirement__c.New_Report_Item</members> <members>Opportunity.Update_Staff</members> <members>Outreach__c.Update_Issues</members> <members>Outreach__c.Update_Staff</members> <members>Project__c.Update_Issues</members> <members>Project__c.Update_Staff</members> <name>QuickAction</name> </types> <types> <members>Outreach__c.Impact</members> <members>Outreach__c.Meeting</members> <members>Outreach__c.Press_Clips_Print</members> <members>Outreach__c.Press_Clips_Radio</members> <members>Outreach__c.Press_Clips_TV</members> <members>Outreach__c.Testimony_Speech</members> <name>RecordType</name> </types> <types> <members>Grant_Lifecycle</members> <members>Grant_Lifecycle/Issues_Directory</members> <members>Grant_Lifecycle/Press_Clips_Print</members> <members>Grant_Lifecycle/Press_Clips_Radio</members> <members>Grant_Lifecycle/Press_Clips_TV</members> <members>Grant_Lifecycle/Projects_Ending_in_Next_3_Months</members> <name>Report</name> </types> <types> <members>Grant_Management_with_Grant_Reporting_with_Grant_Reports</members> <name>ReportType</name> </types> <types> <members>ADLData811</members> <members>ADLData811_managed</members> <members>AccountingTestData1</members> <members>AccountingTestData1_managed</members> <name>StaticResource</name> </types> <types> <members>Deliverable__c.Project_Must_Be_Populated</members> <name>ValidationRule</name> </types> <types> <members>Issue_Intersection__c.Update_Account_Issue</members> <members>Issue_Intersection__c.Update_Contact_Issues</members> <members>Issue_Intersection__c.Update_Deliverable_Issues</members> <members>Issue_Intersection__c.Update_Department_Issues</members> <members>Issue_Intersection__c.Update_Outreach_Issues</members> <members>Issue_Intersection__c.Update_Project_Issues</members> <members>Opportunity.Create_Grant_Record</members> <members>Project__c.Budget_vs_Actual_Report</members> <members>Staff_Participation__c.Update_Account_Staff</members> <members>Staff_Participation__c.Update_Deliverable_Staff</members> <members>Staff_Participation__c.Update_Grant_Staff</members> <members>Staff_Participation__c.Update_Opportunity_Staff</members> <members>Staff_Participation__c.Update_Outreach_Staff</members> <members>Staff_Participation__c.Update_Project_Staff</members> <name>WebLink</name> </types> <types> <members>Issue_Intersection__c</members> <name>Workflow</name> </types> <types> <members>Issue_Intersection__c.II_Object_Name_Populate_Account</members> <members>Issue_Intersection__c.II_Object_Name_Populate_Contact</members> <members>Issue_Intersection__c.II_Object_Name_Populate_Department</members> <members>Issue_Intersection__c.II_Object_Name_Populate_Outreach</members> <members>Issue_Intersection__c.II_Object_Name_Populate_Project</members> <members>Issue_Intersection__c.II_Object_Populate_Campaign</members> <members>Issue_Intersection__c.II_Object_Populate_Product</members> <members>Issue_Intersection__c.II_Record_Id_Populate_Account</members> <members>Issue_Intersection__c.II_Record_Id_Populate_Contact</members> <members>Issue_Intersection__c.II_Record_Id_Populate_Department</members> <members>Issue_Intersection__c.II_Record_Id_Populate_Project</members> <members>Issue_Intersection__c.II_Record_Name_Populate_Account</members> <members>Issue_Intersection__c.II_Record_Name_Populate_Campaign</members> <members>Issue_Intersection__c.II_Record_Name_Populate_Contact</members> <members>Issue_Intersection__c.II_Record_Name_Populate_Department</members> <members>Issue_Intersection__c.II_Record_Name_Populate_Outreach</members> <members>Issue_Intersection__c.II_Record_Name_Populate_Product</members> <members>Issue_Intersection__c.II_Record_Name_Populate_Project</members> <name>WorkflowFieldUpdate</name> </types> <types> <members>Issue_Intersection__c.II - Record Name Populate %28Account%29</members> <members>Issue_Intersection__c.II - Record Name Populate %28Campaign%29</members> <members>Issue_Intersection__c.II - Record Name Populate %28Contact%29</members> <members>Issue_Intersection__c.II - Record Name Populate %28Department%29</members> <members>Issue_Intersection__c.II - Record Name Populate %28Outreach%29</members> <members>Issue_Intersection__c.II - Record Name Populate %28Product%29</members> <members>Issue_Intersection__c.II - Record Name Populate %28Project%29</members> <name>WorkflowRule</name> </types> <version>31.0</version> </Package>
{ "content_hash": "7a41b8f36af71bef77f5563f6ae4cba5", "timestamp": "", "source": "github", "line_count": 483, "max_line_length": 91, "avg_line_length": 53.70600414078675, "alnum_prop": 0.6739398612181958, "repo_name": "jlantz/GrantLifecycleApp", "id": "2cb617228a572c535d974787aad4da67d5fe566e", "size": "25940", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/package.xml", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Apex", "bytes": "216031" }, { "name": "Shell", "bytes": "1441" } ], "symlink_target": "" }
package ru.subscribe.pro.api; /** * Credentials for Subscribe.ru API calls. */ public class Credentials { private String login; private String subLogin; private String password; /** * Constructor. * * @param login login * @param subLogin sub login * @param password password */ public Credentials(String login, String subLogin, String password) { this.login = login; this.subLogin = subLogin; this.password = password; } public String getLogin() { return login; } public String getSubLogin() { return subLogin; } public String getPassword() { return password; } }
{ "content_hash": "3aa523f5365562305f0b4cc7b579cccc", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 72, "avg_line_length": 18.89189189189189, "alnum_prop": 0.6037195994277539, "repo_name": "rychkov/ru.subscribe-api", "id": "28ab2b6ab6d0152f2078779aeed1cee7a16c4f1b", "size": "775", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/ru/subscribe/pro/api/Credentials.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "95270" } ], "symlink_target": "" }
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" /> <link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media="all"/> <link rel="stylesheet" href="../../../../../aui/css/aui-experimental.min.css" media="all"/> <!--[if IE 9]><link rel="stylesheet" href="../../../../../aui/css/aui-ie9.min.css" media="all"/><![endif]--> <style type="text/css" media="all"> @import url('../../../../../style.css'); @import url('../../../../../tree.css'); </style> <script src="../../../../../jquery-1.8.3.min.js" type="text/javascript"></script> <script src="../../../../../aui/js/aui.min.js" type="text/javascript"></script> <script src="../../../../../aui/js/aui-experimental.min.js" type="text/javascript"></script> <script src="../../../../../aui/js/aui-soy.min.js" type="text/javascript"></script> <script src="../../../../../package-nodes-tree.js" type="text/javascript"></script> <script src="../../../../../clover-tree.js" type="text/javascript"></script> <script src="../../../../../clover.js" type="text/javascript"></script> <script src="../../../../../clover-descriptions.js" type="text/javascript"></script> <script src="../../../../../cloud.js" type="text/javascript"></script> <title>ABA Route Transit Number Validator 1.0.1-SNAPSHOT</title> </head> <body> <div id="page"> <header id="header" role="banner"> <nav class="aui-header aui-dropdown2-trigger-group" role="navigation"> <div class="aui-header-inner"> <div class="aui-header-primary"> <h1 id="logo" class="aui-header-logo aui-header-logo-clover"> <a href="http://openclover.org" title="Visit OpenClover home page"><span class="aui-header-logo-device">OpenClover</span></a> </h1> </div> <div class="aui-header-secondary"> <ul class="aui-nav"> <li id="system-help-menu"> <a class="aui-nav-link" title="Open online documentation" target="_blank" href="http://openclover.org/documentation"> <span class="aui-icon aui-icon-small aui-iconfont-help">&#160;Help</span> </a> </li> </ul> </div> </div> </nav> </header> <div class="aui-page-panel"> <div class="aui-page-panel-inner"> <div class="aui-page-panel-nav aui-page-panel-nav-clover"> <div class="aui-page-header-inner" style="margin-bottom: 20px;"> <div class="aui-page-header-image"> <a href="http://cardatechnologies.com" target="_top"> <div class="aui-avatar aui-avatar-large aui-avatar-project"> <div class="aui-avatar-inner"> <img src="../../../../../img/clover_logo_large.png" alt="Clover icon"/> </div> </div> </a> </div> <div class="aui-page-header-main" > <h1> <a href="http://cardatechnologies.com" target="_top"> ABA Route Transit Number Validator 1.0.1-SNAPSHOT </a> </h1> </div> </div> <nav class="aui-navgroup aui-navgroup-vertical"> <div class="aui-navgroup-inner"> <ul class="aui-nav"> <li class=""> <a href="../../../../../dashboard.html">Project overview</a> </li> </ul> <div class="aui-nav-heading packages-nav-heading"> <strong>Packages</strong> </div> <div class="aui-nav project-packages"> <form method="get" action="#" class="aui package-filter-container"> <input type="text" autocomplete="off" class="package-filter text" placeholder="Type to filter packages..." name="package-filter" id="package-filter" title="Start typing package name (or part of the name) to search through the tree. Use arrow keys and the Enter key to navigate."/> </form> <p class="package-filter-no-results-message hidden"> <small>No results found.</small> </p> <div class="packages-tree-wrapper" data-root-relative="../../../../../" data-package-name="com.cardatechnologies.utils.validators.abaroutevalidator"> <div class="packages-tree-container"></div> <div class="clover-packages-lozenges"></div> </div> </div> </div> </nav> </div> <section class="aui-page-panel-content"> <div class="aui-page-panel-content-clover"> <div class="aui-page-header-main"><ol class="aui-nav aui-nav-breadcrumbs"> <li><a href="../../../../../dashboard.html"> Project Clover database Sat Aug 7 2021 12:29:33 MDT</a></li> <li><a href="test-pkg-summary.html">Package com.cardatechnologies.utils.validators.abaroutevalidator</a></li> <li><a href="test-Test_AbaRouteValidator_04.html">Class Test_AbaRouteValidator_04</a></li> </ol></div> <h1 class="aui-h2-clover"> Test testAbaNumberCheck_5399_good </h1> <table class="aui"> <thead> <tr> <th>Test</th> <th><label title="The test result. Either a Pass, Fail or Error.">Status</label></th> <th><label title="When the test execution was started">Start time</label></th> <th><label title="The total time in seconds taken to run this test.">Time (seconds)</label></th> <th><label title="A failure or error message if the test is not successful.">Message</label></th> </tr> </thead> <tbody> <tr> <td> <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_04.html?line=9616#src-9616" >testAbaNumberCheck_5399_good</a> </td> <td> <span class="sortValue">1</span><span class="aui-lozenge aui-lozenge-success">PASS</span> </td> <td> 7 Aug 12:34:31 </td> <td> 0.0 </td> <td> <div></div> <div class="errorMessage"></div> </td> </tr> </tbody> </table> <div>&#160;</div> <table class="aui aui-table-sortable"> <thead> <tr> <th style="white-space:nowrap;"><label title="A class that was directly hit by this test.">Target Class</label></th> <th colspan="4"><label title="The percentage of coverage contributed by each single test.">Coverage contributed by</label> testAbaNumberCheck_5399_good</th> </tr> </thead> <tbody> <tr> <td> <span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</span> &#160;&#160;<a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/AbaRouteValidator.html?id=44235#AbaRouteValidator" title="AbaRouteValidator" name="sl-47">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</a> </td> <td> <span class="sortValue">0.7352941</span>73.5% </td> <td class="align-middle" style="width: 100%" colspan="3"> <div> <div title="73.5% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:73.5%"></div></div></div> </td> </tr> </tbody> </table> </div> <!-- class="aui-page-panel-content-clover" --> <footer id="footer" role="contentinfo"> <section class="footer-body"> <ul> <li> Report generated by <a target="_new" href="http://openclover.org">OpenClover</a> v 4.4.1 on Sat Aug 7 2021 12:49:26 MDT using coverage data from Sat Aug 7 2021 12:47:23 MDT. </li> </ul> <ul> <li>OpenClover is free and open-source software. </li> </ul> </section> </footer> </section> <!-- class="aui-page-panel-content" --> </div> <!-- class="aui-page-panel-inner" --> </div> <!-- class="aui-page-panel" --> </div> <!-- id="page" --> </body> </html>
{ "content_hash": "9fd9ec7d4fba7c1036eef4c563799f9e", "timestamp": "", "source": "github", "line_count": 209, "max_line_length": 297, "avg_line_length": 43.90430622009569, "alnum_prop": 0.5094812554489974, "repo_name": "dcarda/aba.route.validator", "id": "9f1a8ce710f277f4e1081004e7a7a4d57171fc04", "size": "9176", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "target13/site/clover/com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_04_testAbaNumberCheck_5399_good_y4r.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "18715254" } ], "symlink_target": "" }
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "4ac1ceb50cc7b2e65f98119a131d06c3", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.307692307692308, "alnum_prop": 0.6940298507462687, "repo_name": "mdoering/backbone", "id": "76ac681fef1545111917a9369b2684d233d35238", "size": "179", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Chlorophyta/Chlorophyceae/Microsporales/Microsporaceae/Microspora/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
// Transport Security Layer (TLS) // Copyright (c) 2003-2004 Carlos Guzman Alvarez // // 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. // using System; using System.Collections; using System.IO; using System.Net; using System.Net.Sockets; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using Mono.Security.Protocol.Tls.Handshake; using Mono.Security.Interface; namespace Mono.Security.Protocol.Tls { #if INSIDE_SYSTEM internal #else public #endif class SslServerStream : SslStreamBase { #region Internal Events internal event CertificateValidationCallback ClientCertValidation; internal event PrivateKeySelectionCallback PrivateKeySelection; #endregion #region Properties public X509CertificateMono ClientCertificate { get { if (this.context.HandshakeState == HandshakeState.Finished) { return this.context.ClientSettings.ClientCertificate; } return null; } } #endregion #region Callback Properties public CertificateValidationCallback ClientCertValidationDelegate { get { return this.ClientCertValidation; } set { this.ClientCertValidation = value; } } public PrivateKeySelectionCallback PrivateKeyCertSelectionDelegate { get { return this.PrivateKeySelection; } set { this.PrivateKeySelection = value; } } #endregion public event CertificateValidationCallback2 ClientCertValidation2; #region Constructors public SslServerStream( Stream stream, X509Certificate serverCertificate) : this( stream, serverCertificate, false, false, SecurityProtocolType.Default) { } public SslServerStream( Stream stream, X509Certificate serverCertificate, bool clientCertificateRequired, bool ownsStream): this( stream, serverCertificate, clientCertificateRequired, ownsStream, SecurityProtocolType.Default) { } public SslServerStream( Stream stream, X509Certificate serverCertificate, bool clientCertificateRequired, bool requestClientCertificate, bool ownsStream) : this (stream, serverCertificate, clientCertificateRequired, requestClientCertificate, ownsStream, SecurityProtocolType.Default) { } public SslServerStream( Stream stream, X509Certificate serverCertificate, bool clientCertificateRequired, bool ownsStream, SecurityProtocolType securityProtocolType) : this (stream, serverCertificate, clientCertificateRequired, false, ownsStream, securityProtocolType) { } public SslServerStream( Stream stream, X509Certificate serverCertificate, bool clientCertificateRequired, bool requestClientCertificate, bool ownsStream, SecurityProtocolType securityProtocolType) : base(stream, ownsStream) { this.context = new ServerContext( this, securityProtocolType, serverCertificate, clientCertificateRequired, requestClientCertificate); this.protocol = new ServerRecordProtocol(innerStream, (ServerContext)this.context); } #endregion #region Finalizer ~SslServerStream() { this.Dispose(false); } #endregion #region IDisposable Methods protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { this.ClientCertValidation = null; this.PrivateKeySelection = null; } } #endregion #region Handsake Methods /* Client Server ClientHello --------> ServerHello Certificate* ServerKeyExchange* CertificateRequest* <-------- ServerHelloDone Certificate* ClientKeyExchange CertificateVerify* [ChangeCipherSpec] Finished --------> [ChangeCipherSpec] <-------- Finished Application Data <-------> Application Data Fig. 1 - Message flow for a full handshake */ internal override IAsyncResult BeginNegotiateHandshake(AsyncCallback callback, object state) { // Reset the context if needed if (this.context.HandshakeState != HandshakeState.None) { this.context.Clear(); } // Obtain supported cipher suites this.context.SupportedCiphers = CipherSuiteFactory.GetSupportedCiphers (true, context.SecurityProtocol); // Set handshake state this.context.HandshakeState = HandshakeState.Started; // Receive Client Hello message return this.protocol.BeginReceiveRecord(this.innerStream, callback, state); } internal override void EndNegotiateHandshake(IAsyncResult asyncResult) { // Receive Client Hello message and ignore it this.protocol.EndReceiveRecord(asyncResult); // If received message is not an ClientHello send a // Fatal Alert if (this.context.LastHandshakeMsg != HandshakeType.ClientHello) { this.protocol.SendAlert(AlertDescription.UnexpectedMessage); } // Send ServerHello message this.protocol.SendRecord(HandshakeType.ServerHello); // Send ServerCertificate message this.protocol.SendRecord(HandshakeType.Certificate); // If the client certificate is required send the CertificateRequest message if (((ServerContext)this.context).ClientCertificateRequired || ((ServerContext)this.context).RequestClientCertificate) { this.protocol.SendRecord(HandshakeType.CertificateRequest); } // Send ServerHelloDone message this.protocol.SendRecord(HandshakeType.ServerHelloDone); // Receive client response, until the Client Finished message // is received. IE can be interrupted at this stage and never // complete the handshake while (this.context.LastHandshakeMsg != HandshakeType.Finished) { byte[] record = this.protocol.ReceiveRecord(this.innerStream); if ((record == null) || (record.Length == 0)) { throw new TlsException( AlertDescription.HandshakeFailiure, "The client stopped the handshake."); } } // Send ChangeCipherSpec and ServerFinished messages this.protocol.SendChangeCipherSpec(); this.protocol.SendRecord (HandshakeType.Finished); // The handshake is finished this.context.HandshakeState = HandshakeState.Finished; // Reset Handshake messages information this.context.HandshakeMessages.Reset (); // Clear Key Info this.context.ClearKeyInfo(); } #endregion #region Event Methods internal override X509CertificateMono OnLocalCertificateSelection(X509CertificateCollectionMono clientCertificates, X509CertificateMono serverCertificate, string targetHost, X509CertificateCollectionMono serverRequestedCertificates) { throw new NotSupportedException(); } internal override bool OnRemoteCertificateValidation(X509CertificateMono certificate, int[] errors) { if (this.ClientCertValidation != null) { return this.ClientCertValidation(certificate, errors); } return (errors != null && errors.Length == 0); } internal override bool HaveRemoteValidation2Callback { get { return ClientCertValidation2 != null; } } internal override ValidationResult OnRemoteCertificateValidation2 (Mono.Security.X509.X509CertificateCollection collection) { CertificateValidationCallback2 cb = ClientCertValidation2; if (cb != null) return cb (collection); return null; } internal bool RaiseClientCertificateValidation( X509CertificateMono certificate, int[] certificateErrors) { return base.RaiseRemoteCertificateValidation(certificate, certificateErrors); } internal override AsymmetricAlgorithm OnLocalPrivateKeySelection(X509CertificateMono certificate, string targetHost) { if (this.PrivateKeySelection != null) { return this.PrivateKeySelection(certificate, targetHost); } return null; } internal AsymmetricAlgorithm RaisePrivateKeySelection( X509CertificateMono certificate, string targetHost) { return base.RaiseLocalPrivateKeySelection(certificate, targetHost); } #endregion } }
{ "content_hash": "c02fbccd6fda6a8a6fa4d67baf36aec4", "timestamp": "", "source": "github", "line_count": 332, "max_line_length": 234, "avg_line_length": 27.343373493975903, "alnum_prop": 0.7332011456267901, "repo_name": "xamarin/plugins", "id": "35af002aac6e1515f4136909cc5d4c0bb6a94838", "size": "9078", "binary": false, "copies": "3", "ref": "refs/heads/main", "path": "Util/NugetAuditor/Mono.Security/Mono.Security.Protocol.Tls/SslServerStream.cs", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
package com.swemancipation.modelbuildgui; import javax.swing.JPanel; import java.awt.*; /** * Title: * Description: * Copyright: Copyright (c) * Company: * @author * @version 1.0 */ public class JEnabledPanel extends JPanel { public JEnabledPanel() { super(); } public JEnabledPanel(boolean isDoubleBuffered) { super(isDoubleBuffered); } public JEnabledPanel(LayoutManager layout) { super(layout); } public JEnabledPanel(LayoutManager layout, boolean isDoubleBuffered) { super(layout,isDoubleBuffered); } public void setEnabled(boolean enabled) { super.setEnabled(enabled); for(int i=0;i<this.getComponentCount();i++) { Component comp = this.getComponent(i); comp.setEnabled(false); } } }
{ "content_hash": "7d79fac2fac7d436ee5257aff1fe9502", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 72, "avg_line_length": 18.73170731707317, "alnum_prop": 0.6848958333333334, "repo_name": "kit-transue/software-emancipation-discover", "id": "928b5435caa58449844f0adefe1c9a818239fd87", "size": "2792", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "mbgui/src/com/swemancipation/modelbuildgui/JEnabledPanel.java", "mode": "33261", "license": "bsd-2-clause", "language": [ { "name": "Batchfile", "bytes": "178658" }, { "name": "C", "bytes": "2730024" }, { "name": "C#", "bytes": "308" }, { "name": "C++", "bytes": "23349265" }, { "name": "CSS", "bytes": "1861130" }, { "name": "Crystal", "bytes": "105" }, { "name": "Emacs Lisp", "bytes": "50226" }, { "name": "GLSL", "bytes": "2698016" }, { "name": "Gnuplot", "bytes": "1219" }, { "name": "Groff", "bytes": "10934" }, { "name": "HTML", "bytes": "10534201" }, { "name": "Java", "bytes": "272548" }, { "name": "Lex", "bytes": "269984" }, { "name": "Makefile", "bytes": "487619" }, { "name": "Objective-C", "bytes": "10093" }, { "name": "Perl", "bytes": "719227" }, { "name": "Perl6", "bytes": "15568" }, { "name": "PostScript", "bytes": "25588" }, { "name": "Ruby", "bytes": "77891" }, { "name": "Scilab", "bytes": "11247" }, { "name": "Shell", "bytes": "320920" }, { "name": "Smalltalk", "bytes": "83" }, { "name": "SuperCollider", "bytes": "23447" }, { "name": "Tcl", "bytes": "1047438" }, { "name": "XSLT", "bytes": "5277" }, { "name": "Yacc", "bytes": "514644" } ], "symlink_target": "" }
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82a.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml Template File: sources-sink-82a.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate using malloc() and set data pointer to a small buffer * GoodSource: Allocate using malloc() and set data pointer to a large buffer * Sinks: memcpy * BadSink : Copy twoIntsStruct array to data using memcpy * Flow Variant: 82 Data flow: data passed in a parameter to an virtual method called via a pointer * * */ #include "std_testcase.h" #include "CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82.h" namespace CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82 { #ifndef OMITBAD void bad() { twoIntsStruct * data; data = NULL; /* FLAW: Allocate and point data to a small buffer that is smaller than the large buffer used in the sinks */ data = (twoIntsStruct *)malloc(50*sizeof(twoIntsStruct)); CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82_base* baseObject = new CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82_bad; baseObject->action(data); delete baseObject; } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ static void goodG2B() { twoIntsStruct * data; data = NULL; /* FIX: Allocate and point data to a large buffer that is at least as large as the large buffer used in the sink */ data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82_base* baseObject = new CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82_goodG2B; baseObject->action(data); delete baseObject; } void good() { goodG2B(); } #endif /* OMITGOOD */ } /* close namespace */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN using namespace CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82; /* so that we can use good and bad easily */ int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
{ "content_hash": "efa99d488d4575afb23218a1aa546f64", "timestamp": "", "source": "github", "line_count": 88, "max_line_length": 157, "avg_line_length": 31.65909090909091, "alnum_prop": 0.6888011486001435, "repo_name": "maurer/tiamat", "id": "e9e4ed348878f87d06dbf5b559c31c9dd3bf9964", "size": "2786", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "samples/Juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_82a.cpp", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "33d4bbb0d86751837cff62d8486a4c86", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.23076923076923, "alnum_prop": 0.6917293233082706, "repo_name": "mdoering/backbone", "id": "30ec06b131fd6c7a0c5cf8928b99f9086d0e0c96", "size": "184", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Liliopsida/Alismatales/Araceae/Gymnostachys/Gymnostachys anceps/ Syn. Gymnostachys gigantea/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
module FactoryGirlAssociationCallbacks # extends FactoryGirl Evaluation to provide more control over factory execution class UsefulEvaluation def initialize(evaluation) @evaluation = evaluation end def name @evaluation \ .instance_variable_get("@attribute_assigner") \ .instance_variable_get("@build_class") \ .to_s end def strategy_name s = @evaluation \ .instance_variable_get("@attribute_assigner") \ .instance_variable_get("@evaluator") \ .instance_variable_get("@build_strategy") s.class.to_s.demodulize.underscore.to_sym end # return a hash of name => value for ignored values. Values are determined # from the factory defn of the ignored attribute or by an overridden value. A # overridden value has precedence. def ignored_fields fields = {} attributes.select {|a| a.instance_variable_get "@ignored"}.each do |a| fields[a.name] = a.instance_variable_get("@value") end overrides.each do |name, obj| fields.key? name or next fields[name] = obj end fields end # return overrides passed to factory def overrides @evaluation \ .instance_variable_get("@attribute_assigner") \ .instance_variable_get("@evaluator") \ .instance_variable_get("@overrides") end def attributes @evaluation \ .instance_variable_get("@attribute_assigner") \ .instance_variable_get("@attribute_list") \ .instance_variable_get("@attributes") end # return association definitions def associations attributes.select {|a| a.is_a? FactoryGirl::Attribute::Association } end # return a map of overrides to associations and its after proc. If an # association isn't overridden or doesn't have an after proc its not # included. The format looks like this: # # { # #<Obj1...> => [#<Proc...>], # #<Obj2...> => [#<Proc...>], # } def overridden_associations_with_after_procs procs_by_obj = {} overrides.each do |name, obj| a = associations.find {|assoc| assoc.name == name} a or next # @overrides is an array of hashes. I wonder if someday it'll just be a # hash? after_procs = a.instance_variable_get("@overrides").map do |hash| hash[:after] end.compact after_procs.any? or next procs_by_obj[obj] = after_procs end procs_by_obj end # returns this instance that is being built (or nil if it hasn't been # instantiated yet). def instance @evaluation \ .instance_variable_get("@attribute_assigner") \ .instance_variable_get("@evaluator") \ .instance_variable_get("@instance") \ end end end
{ "content_hash": "9ad724905e85f463f85498593b921437", "timestamp": "", "source": "github", "line_count": 98, "max_line_length": 81, "avg_line_length": 29, "alnum_prop": 0.615411681914145, "repo_name": "Cohealo/factory_girl_association_callbacks", "id": "ac361a04896083679712acb94aaf983823dbe880", "size": "2842", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/factory_girl_association_callbacks/useful_evaluation.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "14099" } ], "symlink_target": "" }