text
large_stringlengths
384
2.05k
rank_avg
float64
1
4.19k
rank_max
float64
1
8.21k
rank_min
float64
1
5.03k
rank_median
float64
1
4.21k
rank_by_avgsim
float64
1
4.19k
avgsim_to_github
float32
0.77
0.85
dataset
large_stringclasses
1 value
ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <StackPanel Grid.Row="0" Grid.Column="0"> ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.jboss.as.clustering.infinispan.subsystem; import org.infinispan.Cache; import org.infinispan.interceptors.AsyncInterceptor; import org....
null
null
null
null
null
null
github_plus_top10pct_by_avg
If not, see // <http://www.gnu.org/licenses/>. /* * Copyright (c) 1997 * Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all c...
null
null
null
null
null
null
github_plus_top10pct_by_avg
_detail::_S_function: case __detail::_S_substringfn: { size_t __len = _S_iterator_buf_len; size_t __buf_start_pos = __leaf_pos; size_t __leaf_end = __leaf_pos + __leaf->_M_size; char_producer<_CharT>* __fn = ((_Rope_RopeFunction<_CharT, _Alloc>*)__leaf)->_M_fn; if (__buf_start_pos ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
case __detail::_S_substringfn: __x._M_leaf_pos = __curr_start_pos; goto done; case __detail::_S_concat: { _Rope_RopeConcatenation<_CharT, _Alloc>* __c = (_Rope_RopeConcatenation<_CharT, _Alloc>*)__curr_rope; _RopeRep* __left = __c->_M_left; size_t __left_len = __left->_M_size; ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
_M_size; __dirns >>= 1; } if (__current_index < 0) { // We underflowed the cache. Punt. _S_setcache(__x); return; } __current_node = __x._M_path_end[__current_index]; __c = (_Rope_RopeConcatenation<_CharT, _Alloc>*)__current_node; // current_node is a concatenation node. We are p...
null
null
null
null
null
null
github_plus_top10pct_by_avg
class _Alloc> void _Rope_iterator<_CharT, _Alloc>:: _M_check() { if (_M_root_rope->_M_tree_ptr != this->_M_root) { // _Rope was modified. Get things fixed up. _RopeRep::_S_unref(this->_M_root); this->_M_root = _M_root_rope->_M_tree_ptr; _RopeRep::_S_ref(this->_M_root); this->_M_bu...
null
null
null
null
null
null
github_plus_top10pct_by_avg
nces if we need them. // - Any virtual function would need a 4 or byte vtable pointer; // this only requires a one byte tag per object. template <class _CharT, class _Alloc> void _Rope_RopeRep<_CharT, _Alloc>:: _M_free_tree() { switch(_M_tag) { case __detail::_S_leaf: { _Rope_R...
null
null
null
null
null
null
github_plus_top10pct_by_avg
er, __len, __new_data + __old_len); _S_cond_store_eos(__new_data[__old_len + __len]); __try { __result = _S_new_RopeLeaf(__new_data, __old_len + __len, __r->_M_get_allocator()); } __catch(...) { _RopeRep::__STL_FREE_STRING(__new_data, __old_len + __len, __r->_M_get_allocato...
null
null
null
null
null
null
github_plus_top10pct_by_avg
_result->_M_size < 1000 || __depth > size_t(__detail::_S_max_rope_depth))) { _RopeRep* __balanced; __try { __balanced = _S_balance(__result); __result->_M_unref_nonnil(); } __catch(...) { rope::_C_deallocate(__result,1); __throw_exception_again; } // ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
} return __result; } #ifndef __GC template <class _CharT, class _Alloc> typename rope<_CharT,_Alloc>::_RopeRep* rope<_CharT,_Alloc>:: _S_destr_concat_char_iter(_RopeRep* __r, const _CharT* __s, size_t __slen) { _RopeRep* __result; if (0 == __r) return __STL_ROPE_FROM_UNOWNED_...
null
null
null
null
null
null
github_plus_top10pct_by_avg
_right) { if (0 == __left) { _S_ref(__right); return __right; } if (0 == __right) { __left->_M_ref_nonnil(); return __left; } if (__detail::_S_leaf == __right->_M_tag) { if (__detail::_S_leaf == __left->_M_tag) { if (__right->_M_size + __left->_M_size <= size_t(_S_c...
null
null
null
null
null
null
github_plus_top10pct_by_avg
t: { _RopeConcatenation* __c = (_RopeConcatenation*)__base; _RopeRep* __left = __c->_M_left; _RopeRep* __right = __c->_M_right; size_t __left_len = __left->_M_size; _RopeRep* __result; if (__adj_endp1 <= __left_len) return _S_substring(__left, __start, __endp1); ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ugh: *** } case __detail::_S_function: { _RopeFunction* __f = (_RopeFunction*)__base; _CharT* __section; size_t __result_len; if (__start >= __adj_endp1) return 0; __result_len = __adj_endp1 - __start; if (__result_len > __lazy_threshold) goto lazy; __sectio...
null
null
null
null
null
null
github_plus_top10pct_by_avg
<class _CharT, class _Traits> // Here _CharT is both the stream and rope character type. class _Rope_insert_char_consumer : public _Rope_char_consumer<_CharT> { private: typedef basic_ostream<_CharT,_Traits> _Insert_ostream; _Insert_ostream& _M_o; public: _Rope_insert_char_consum...
null
null
null
null
null
null
github_plus_top10pct_by_avg
__r; size_t __len = __end - __begin; bool __result; _CharT* __buffer = (_CharT*)_Alloc().allocate(__len * sizeof(_CharT)); __try { (*(__f->_M_fn))(__begin, __len, __buffer); __result = __c(__buffer, __len); _Alloc().deallocate(__buffer, __len * sizeof(_CharT)); ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
S_flatten(_RopeRep* __r, size_t __start, size_t __len, _CharT* __buffer) { _Rope_flatten_char_consumer<_CharT> __c(__buffer); _S_apply_to_pieces(__c, __r, __start, __start + __len); return(__buffer + __len); } template <class _CharT, class _Alloc> size_t rope<_CharT, _Alloc>...
null
null
null
null
null
null
github_plus_top10pct_by_avg
->_M_left; _RopeRep* __right = __c->_M_right; #ifdef __GC printf("Concatenation %p (depth = %d, len = %ld, %s balanced)\n", __r, __r->_M_depth, __r->_M_size, __r->_M_is_balanced? "" : "not"); #else printf("Concatenation %p (rc = %ld, depth = %d, " "len = %ld, %s balanced)\n", __r, __r->_M_ref_c...
null
null
null
null
null
null
github_plus_top10pct_by_avg
*/121393, /* 25 */196418, /* 26 */317811, /* 27 */514229, /* 28 */832040, /* 29 */1346269, /* 30 */2178309, /* 31 */3524578, /* 32 */5702887, /* 33 */9227465, /* 34 */14930352, /* 35 */24157817, /* 36 */39088169, /* 37 */63245986, /* 38 */102334155, /* 39 */165580141, /* 40 */267914296, /* 41 *...
null
null
null
null
null
null
github_plus_top10pct_by_avg
->_M_left, __forest); _S_add_to_forest(__c->_M_right, __forest); } } template <class _CharT, class _Alloc> void rope<_CharT, _Alloc>:: _S_add_leaf_to_forest(_RopeRep* __r, _RopeRep** __forest) { _RopeRep* __insertee; // included in refcount _RopeRep* __too_tiny = 0; // inclu...
null
null
null
null
null
null
github_plus_top10pct_by_avg
else __r = __left; } break; case __detail::_S_leaf: { _RopeLeaf* __l = (_RopeLeaf*)__r; return __l->_M_data[__i]; } case __detail::_S_function: case __detail::_S_substringfn: { _RopeFunction* __f = (_RopeFunction*)__r; _CharT __result; (*(__f->_M_fn))(_...
null
null
null
null
null
null
github_plus_top10pct_by_avg
_len; if (0 == __right) return 0 != __left; if (0 == __left) return -1; __left_len = __left->_M_size; __right_len = __right->_M_size; if (__detail::_S_leaf == __left->_M_tag) { _RopeLeaf* __l = (_RopeLeaf*) __left; if (__detail::_S_leaf == __right->_M_tag) { _Ro...
null
null
null
null
null
null
github_plus_top10pct_by_avg
destr_concat_char_iter(__left, &__c, 1)); _RopeRep* __result = _My_rope::_S_concat(__result_left, __right); #ifndef __GC _RopeRep::_S_unref(__old); #endif _M_root->_M_tree_ptr = __result; return *this; } template <class _CharT, class _Alloc> inline _Rope_char_ref_proxy<_Char...
null
null
null
null
null
null
github_plus_top10pct_by_avg
_S_cond_store_eos(__base_buffer[__exponentiate_threshold]); __try { __base_leaf = _S_new_RopeLeaf(__base_buffer, __exponentiate_threshold, _M_get_allocator()); } __catch(...) { _RopeRep::__STL_FREE_STRING(__base_buffer, __exponentiate_threshold, _M_ge...
null
null
null
null
null
null
github_plus_top10pct_by_avg
_old_c_string); size_t __s = size(); _CharT* __result = this->_Data_allocate(_S_rounded_up_size(__s)); _S_flatten(this->_M_tree_ptr, __result); __result[__s] = _S_eos((_CharT*)0); this->_M_tree_ptr->_M_unref_nonnil(); this->_M_tree_ptr = _S_new_RopeLeaf(__result, __s, this->_M...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ar_t, __STL_DEFAULT_ALLOCATOR(char)> __first, _Rope_iterator<wchar_t, __STL_DEFAULT_ALLOCATOR(char)> __middle, _Rope_iterator<wchar_t, __STL_DEFAULT_ALLOCATOR(char)> __last) { _Rope_rotate(__first, __middle, __last); } # endif _GLIBCXX_END_NAMESPACE_VERSION } // namespace { union { ...FC } } fragment ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
e /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; } /// <summary> /// Invoked when the application is launched normally ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ments); } // Ensure the current window is active Window.Current.Activate(); } /// <summary> /// Invoked when Navigation to a certain page fails /// </summary> /// <param name="sender">The Frame which failed navigation</param> /// <para...
null
null
null
null
null
null
github_plus_top10pct_by_avg
, finished = v.t.polls.Drop(v.requestID, v.vdr) } else { results, finished = v.t.polls.Vote(v.requestID, v.vdr, v.response) } if !finished { return } // To prevent any potential deadlocks with un-disclosed dependencies, votes // must be bubbled to the nearest valid block results = v.bubbleVotes(results) ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
espace executors { template <class Executor> class executor_ref : public executor { Executor& ex; public: /// type-erasure to store the works to do typedef executors::work work; /// executor is not copyable. BOOST_THREAD_NO_COPYABLE(executor_ref) executor_ref(Executor& ex) : ex(ex) ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
; template<typename Executor> generic_executor_ref(Executor& ex) //: ex(make_shared<executor_ref<Executor> >(ex)) // todo check why this doesn't works with C++03 : ex( new executor_ref<Executor>(ex) ) { } //generic_executor_ref(generic_executor_ref const& other) noexcept {} //generi...
null
null
null
null
null
null
github_plus_top10pct_by_avg
size_t num_pending_closures() const // { // return ex->num_pending_closures(); // } /** * \par Effects * Try to execute one task. * * \par Returns * Whether a task has been executed. * * \par Throws * Whatever the current task constructor throws or the task() thr...
null
null
null
null
null
null
github_plus_top10pct_by_avg
og (`${n5} x ${n6} = ${recursiveProd(n5, n6)}`); let n7 = -4, n8 = -7; console.log (`${n7} x ${n8} = ${recursiveProd(n7, n8)}`); --- title: Adding RSS Support - RSS Truncation Test author: Eric Nakagawa authorURL: http://twitter.com/ericnakagawa authorFBID: 661277173 --- 1234567890123456789012345678901234567890123456...
null
null
null
null
null
null
github_plus_top10pct_by_avg
og); int result = messageDialog.Run(); if ((ResponseType)result == ResponseType.Cancel) { arguments.SetResult(arguments.Cancel); } else if ((ResponseType)result == ResponseType.Reject) { arguments.SetResult(arguments.Destruction); } messageDialog.Destroy(); } private static void ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ments.Buttons.Count(); i++) { var button = new Gtk.Button(); button.Label = arguments.Buttons.ElementAt(i); button.Clicked += (o, e) => { arguments.SetResult(button.Label); messageDialog.Destroy(); }; button.Show(); vbox.PackStart(button, false, false, 0); } } ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
image objects, or from raw image data you receive. open class Image: View, NSCopying { open class ImageView: UIImageView { var imageLayer: ImageLayer { return self.layer as! ImageLayer // swiftlint:disable:this force_cast } override open class var layerClass: AnyClass { ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ike copying). /// ```` /// let a = Image("logo") /// canvas.add(a) /// let b = Image(image: a) /// b.center = canvas.center /// canvas.add(b) /// ```` /// - parameter image: A Image. convenience public init(copy image: Image) { self.init() let uiimage = image.uiimage ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
th option for specifying the scale of the image. /// ```` /// let cgi = CGImageCreate() /// let img = Image(cgimage: cgi, scale: 2.0) /// canvas.add(img) /// ```` /// - parameter cgimage: A CGImageRef object. /// - parameter scale: The scale of the image. convenience public init(cgimage:...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ge from an URL. /// ```` /// if let url = NSURL(string: "http://www.c4ios.com/images/logo@2x.png") { /// let img = Image(url: url) /// canvas.add(img) /// } /// ```` /// - parameter url: An NSURL object. convenience public init(url: URL) { self.init(url: url, scale: 1....
null
null
null
null
null
null
github_plus_top10pct_by_avg
let width: Int = Int(size.width) let height: Int = Int(size.height) assert(pixels.count == Int(width * height)) var provider: CGDataProvider? pixels.withUnsafeBufferPointer { p in if let address = p.baseAddress { let data = Data(bytes: UnsafePointer(add...
null
null
null
null
null
null
github_plus_top10pct_by_avg
epresentation of the receiver. /// - returns: A UIImage object. open var uiimage: UIImage { let layer = imageView.layer as CALayer let contents = layer.contents as! CGImage // swiftlint:disable:this force_cast return UIImage(cgImage: contents, scale: CGFloat(scale), orientation: imageVie...
null
null
null
null
null
null
github_plus_top10pct_by_avg
/// A variable that provides access to the width of the receiver. Animatable. /// The default value of this property is defined by the image being created. /// Assigning a value to this property causes the receiver to change the width of its frame. If the receiver's /// `contrainsProportions` variable ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
/// The original size of the receiver when it was initialized. public var originalSize: Size { return _originalSize } /// The original width/height ratio of the receiver when it was initialized. public var originalRatio: Double { return _originalSize.width / _originalSize.height }...
null
null
null
null
null
null
github_plus_top10pct_by_avg
lombok.NoArgsConstructor; import org.hibernate.validator.constraints.Length; /** * 系统用户(easyreport_member_user表)持久化类 * * @author Tom Deng * @date 2017-03-25 */ @Data @Builder @NoArgsConstructor @AllArgsConstructor(access = AccessLevel.PRIVATE) public class User implements Serializable { /** * 系统用户标识 ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
Author: 02-Dec-1993 Thu 09:56:07 created -by- Daniel Chou (danielc) [Environment:] GDI Device Driver - Plotter. [Notes:] Revision History: --*/ #ifndef _PLOTUI_ #define _PLOTUI_ // // For compilers that don't support nameless unions // #ifndef DUMMYUNIONNAME #ifdef NONAMELESSUNION #define DUMMY...
null
null
null
null
null
null
github_plus_top10pct_by_avg
>ExtraData) typedef struct _DOCPROPINFO { HWND hWnd; DWORD Result; DOCUMENTPROPERTYHEADER DPHdr; } DOCPROPINFO, *PDOCPROPINFO; typedef struct _DEVPROPINFO { HWND hWnd; DWORD Result; DEVICEPROPERTYHEADER DPHdr; ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
cOPData; union { POPDATA pOPData; _CREATEOIFUNC pfnCreateOI; } DUMMYUNIONNAME2; } OIDATA, *POIDATA; #define PI_OFF(x) (WORD)offsetof(PRINTERINFO, x) #define PLOTDM_OFF(x) (WORD)offsetof(PLOTDEVMODE, x) #define OPTIF_NONE 0 #def...
null
null
null
null
null
null
github_plus_top10pct_by_avg
DI_BLUE 1105 #define IDI_MAGENTA 1106 #define IDI_CYAN 1107 #define IDI_ORANGE 1108 #define IDI_BROWN 1109 #define IDI_VIOLET 1110 #define IDI_COLOR_LAST IDI_VIOLET // // String table ID // #define ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
2100 #define IDS_DEFAULT_PENCLR 2101 #define IDS_QUALITY_FIRST IDS_QUALITY_DRAFT #define IDS_QUALITY_DRAFT 2110 #define IDS_QUALITY_LOW 2111 #define IDS_QUALITY_MEDIUM 2112 #define IDS_QUALITY_HIGH 2113 #define IDS_QUALITY_LAST IDS_QUALITY_HIG...
null
null
null
null
null
null
github_plus_top10pct_by_avg
e Illuminate\Cookie\Middleware\EncryptCookies as Middleware; class EncryptCookies extends Middleware { /** * The names of the cookies that should not be encrypted. * * @var array */ protected $except = [ // ]; } //===--- ASTDiagnostic.h - Diagnostics for the AST library ------...
null
null
null
null
null
null
github_plus_top10pct_by_avg
under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHAN...
null
null
null
null
null
null
github_plus_top10pct_by_avg
e_current), '-t', str(self.thread)]) elif (self.mode == 'ANIME'): subprocess.Popen([sys.argv[0], '-b', blend_path, '-a', '-t', str(self.thread)]) if (self.is_quit): bpy.ops.wm.quit_blender() return {'FINISHED'} def invoke(self, context, event): return context...
null
null
null
null
null
null
github_plus_top10pct_by_avg
, 'UNDO'} items = [ ('ABSOLUTE', "Absolute value", "", 1), ('RELATIVE', "Relative value", "", 2), ] mode: bpy.props.EnumProperty(items=items, name="Mode") levels: bpy.props.IntProperty(name="Level", default=2, min=-20, max=20, soft_min=-20, soft_max=20, step=1) def execute(self, co...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ing size (%)" bl_description = "Setting is set to either rendered in what percent of the size of the resolution" def check(self, context): return True def draw(self, context): x = bpy.context.scene.render.resolution_x y = bpy.context.scene.render.resolution_y self.layout.op...
null
null
null
null
null
null
github_plus_top10pct_by_avg
erResolutionPercentage.bl_idname, text="150% (" + str(int(x * 1.5)) + "x" + str(int(y * 1.5)) + ")", icon="CAMERA_DATA").size = 150 self.layout.operator(SetRenderResolutionPercentage.bl_idname, text="200% (" + str(int(x * 2.0)) + "x" + str(int(y * 2.0)) + ")", icon="CAMERA_DATA").size = 200 self.layout....
null
null
null
null
null
null
github_plus_top10pct_by_avg
r(SetAllSubsurfRenderLevels.bl_idname, text="Subdivision - 1", icon="MOD_SUBSURF") operator.mode = 'RELATIVE' operator.levels = -1 self.layout.separator() operator = self.layout.operator(SetAllSubsurfRenderLevels.bl_idname, text="Subdivision = 0", icon="MOD_SUBSURF") operator.mod...
null
null
null
null
null
null
github_plus_top10pct_by_avg
self.layout.menu(RenderResolutionPercentageMenu.bl_idname, text="Resolution Presets") self.layout.prop_menu_enum(context.scene.render.image_settings, 'file_format', text="File Format") self.layout.separator() self.layout.menu(AnimateRenderMenu.bl_idname, text="Animation") self.layo...
null
null
null
null
null
null
github_plus_top10pct_by_avg
bel = "Render settings" bl_space_type = 'IMAGE_EDITOR' bl_category = 'Render' bl_region_type = 'UI' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH', 'CYCLES'} def draw(self, context): # Cycles layout = self.layout layout.operator_context = 'INVOKE_RE...
null
null
null
null
null
null
github_plus_top10pct_by_avg
rator(RenderBackground.bl_idname) def execute(self, context): return {'FINISHED'} def invoke(self, context, event): return context.window_manager.invoke_popup(self, width=250) # Class List classes = ( RenderBackground, SetRenderResolutionPercentage, ToggleThreadsMode, SetAllS...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ly-rk3399", "rockchip,rk3399"; chosen { stdout-path = &uart2; }; backlight: backlight { compatible = "pwm-backlight"; enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; pwms = <&pwm0 0 25000 0>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
sound-dai = <&rt5640>; }; }; sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rk808 1>; clock-names = "ext_clock"; pinctrl-names = "default"; pinctrl-0 = <&wifi_enable_h>; /* * On the module itself this is one of these (depending * on the actual card populated): * - ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
l>; }; &cpu_l1 { cpu-supply = <&vdd_cpu_l>; }; &cpu_l2 { cpu-supply = <&vdd_cpu_l>; }; &cpu_l3 { cpu-supply = <&vdd_cpu_l>; }; &cpu_b0 { cpu-supply = <&vdd_cpu_b>; }; &cpu_b1 { cpu-supply = <&vdd_cpu_b>; }; &emmc_phy { status = "okay"; }; &gmac { assigned-clocks = <&cru SCLK_RMII_SRC>; assigned-clock-par...
null
null
null
null
null
null
github_plus_top10pct_by_avg
f-in-suspend; }; }; vcc_ddr: DCDC_REG3 { regulator-name = "vcc_ddr"; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend; }; }; vcc_1v8: DCDC_REG4 { regulator-name = "vcc_1v8"; regulator-always-on; regulator-boot-on; regulator-...
null
null
null
null
null
null
github_plus_top10pct_by_avg
regulator-max-microvolt = <1500000>; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <1500000>; }; }; vcca1v8_codec: LDO_REG7 { regulator-name = "vcca1v8_codec"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; regulat...
null
null
null
null
null
null
github_plus_top10pct_by_avg
cks = <&cru SCLK_I2S_8CH_OUT>; clock-names = "mclk"; realtek,in1-differential; #sound-dai-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&rt5640_hpcon>; }; }; &i2c3 { i2c-scl-rising-time-ns = <450>; i2c-scl-falling-time-ns = <15>; status = "okay"; }; &i2c4 { i2c-scl-rising-time-ns = <600>; i2c-s...
null
null
null
null
null
null
github_plus_top10pct_by_avg
C5 RK_FUNC_GPIO &pcfg_pull_none>; }; }; pmic { pmic_int_l: pmic-int-l { rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; }; }; usb2 { host_vbus_drv: host-vbus-drv { rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; }; }; }; &pwm0 { status = "okay"; }; &pwm2 { status = "okay"; }; ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
Distri}/mods/hannibal/simulation/ai/hannibal/data.json" ## DYNAMIC cd $pathCode rm -f \ hannibal.m.js \ _debug.js ls _*.js | xargs cat > _.jss ls [a-z]*.js | xargs cat > az.jss cat _.jss az.jss > hannibal.m.js rm -f \ _.jss \ az.jss mv hannibal.m.js "${pathDistri}/mods...
null
null
null
null
null
null
github_plus_top10pct_by_avg
e unzip -l hannibal.zip echo echo "-- Done --" echo // Copyright 2015 The etcd Authors // // 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/LICE...
null
null
null
null
null
null
github_plus_top10pct_by_avg
:= snap.Marshal() if err != nil { return err } snapMarshallingSec.Observe(time.Since(start).Seconds()) spath := filepath.Join(s.dir, fname) fsyncStart := time.Now() err = pioutil.WriteAndSyncFile(spath, d, 0666) snapFsyncSec.Observe(time.Since(fsyncStart).Seconds()) if err != nil { if s.lg != nil { s...
null
null
null
null
null
null
github_plus_top10pct_by_avg
{ if lg != nil { lg.Warn("failed to read a snap file", zap.String("path", snapname), zap.Error(err)) } else { plog.Errorf("cannot read file %v: %v", snapname, err) } return nil, err } if len(b) == 0 { if lg != nil { lg.Warn("failed to read empty snapshot file", zap.String("path", snapname)) } el...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ps := checkSuffix(s.lg, names) if len(snaps) == 0 { return nil, ErrNoSnapshot } sort.Sort(sort.Reverse(sort.StringSlice(snaps))) return snaps, nil } func checkSuffix(lg *zap.Logger, names []string) []string { snaps := []string{} for i := range names { if strings.HasSuffix(names[i], snapSuffix) { snaps = a...
null
null
null
null
null
null
github_plus_top10pct_by_avg
, 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 Google C++ Testing and Mocki...
null
null
null
null
null
null
github_plus_top10pct_by_avg
m (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 } /* The stack size used by the application. NOTE: you need to adjust according to your application. */ STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x2000; ENTRY(Reset_Handler) /* Section Definitions */ SECTIONS { ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
*); *(.data .data.*); . = ALIGN(4); _erelocate = .; } > ram /* .bss section which is used for uninitialized data */ .bss (NOLOAD) : { . = ALIGN(4); _sbss = . ; _szero = .; *(.bss .bss.*) *(COMMON) . = ALIGN(4); _ebss = . ; ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
directly on non-configure systems. # # The distributed curlbuild.h will be overwritten on configure systems # when the configure script runs, with one that is suitable and specific # to the library being configured and built. # # curlbuild.h.in is the distributed template file from which the configure # script creates...
null
null
null
null
null
null
github_plus_top10pct_by_avg
d_package(Eigen REQUIRED) include_directories(${Eigen_INCLUDE_DIRS} include ${catkin_INCLUDE_DIRS}) add_library(json src/json.cpp) target_link_libraries(json ${catkin_LIBRARIES}) catkin_package( INCLUDE_DIRS include LIBRARIES ${PROJECT_NAME} json CATKIN_DEPENDS roscpp ) add_library(${PROJECT_NAME} src/conve...
null
null
null
null
null
null
github_plus_top10pct_by_avg
st char *path, mode_t mode, \ SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } SYS...
null
null
null
null
null
null
github_plus_top10pct_by_avg
= 43 // { gid_t sys_getegid(void); } SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ SYS_GETGID = 47 // { gid_t sys_getgid(void); } SYS_SI...
null
null
null
null
null
null
github_plus_top10pct_by_avg
P = 73 // { int sys_munmap(void *addr, size_t len); } SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ SYS_FUTIMES = 77 // { int sys_futim...
null
null
null
null
null
null
github_plus_top10pct_by_avg
S_LISTEN = 106 // { int sys_listen(int s, int backlog); } SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } SYS_GETSOCKOPT = 118 // { int sys_gets...
null
null
null
null
null
null
github_plus_top10pct_by_avg
tegid(gid_t egid); } SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
len, int flags); } SYS_PIPE = 263 // { int sys_pipe(int *fdp); } SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ SYS_KQUEUE = 269 // { int sys_kq...
null
null
null
null
null
null
github_plus_top10pct_by_avg
} SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ SYS...
null
null
null
null
null
null
github_plus_top10pct_by_avg
F ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.docx4j.org.apache.poi.poifs.property; import java.util.Iterator; impor...
null
null
null
null
null
null
github_plus_top10pct_by_avg
tice, this list of conditions, and the following disclaimer, * without modification. * 2. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * Alternatively, this software may be distributed and/or modified under the...
null
null
null
null
null
null
github_plus_top10pct_by_avg
017,0x018,0x018,0x019,0x019,0x01a, 0x01a,0x01b,0x01b,0x01c,0x01c,0x01d,0x01d,0x01e, 0x01e,0x01e,0x01f,0x01f,0x020,0x020,0x021,0x021, 0x022,0x022,0x023,0x023,0x024,0x024,0x025,0x025, 0x026,0x026,0x027,0x027,0x028,0x028,0x029,0x029, 0x029,0x02a,0x02a,0x02b,0x02b,0x02c,0x02c,0x02d, 0x02d,0x02e,0x02e,0x02f,0x02f,0x03...
null
null
null
null
null
null
github_plus_top10pct_by_avg
0x0be,0x0bf,0x0c0,0x0c0,0x0c1,0x0c1, 0x0c2,0x0c2,0x0c3,0x0c3,0x0c4,0x0c4,0x0c5,0x0c6, 0x0c6,0x0c7,0x0c7,0x0c8,0x0c8,0x0c9,0x0c9,0x0ca, 0x0cb,0x0cb,0x0cc,0x0cc,0x0cd,0x0cd,0x0ce,0x0ce, 0x0cf,0x0d0,0x0d0,0x0d1,0x0d1,0x0d2,0x0d2,0x0d3, 0x0d3,0x0d4,0x0d5,0x0d5,0x0d6,0x0d6,0x0d7,0x0d7, 0x0d8,0x0d8,0x0d9,0x0da,0x0da,0x...
null
null
null
null
null
null
github_plus_top10pct_by_avg
0,0x180,0x181,0x181,0x182,0x183,0x183, 0x184,0x185,0x185,0x186,0x187,0x187,0x188,0x188, 0x189,0x18a,0x18a,0x18b,0x18c,0x18c,0x18d,0x18e, 0x18e,0x18f,0x190,0x190,0x191,0x191,0x192,0x193, 0x193,0x194,0x195,0x195,0x196,0x197,0x197,0x198, 0x199,0x199,0x19a,0x19a,0x19b,0x19c,0x19c,0x19d, 0x19e,0x19e,0x19f,0x1a0,0x1a0,...
null
null
null
null
null
null
github_plus_top10pct_by_avg
260,0x261,0x262,0x262,0x263,0x264,0x265, 0x265,0x266,0x267,0x267,0x268,0x269,0x26a,0x26a, 0x26b,0x26c,0x26d,0x26d,0x26e,0x26f,0x270,0x270, 0x271,0x272,0x273,0x273,0x274,0x275,0x276,0x276, 0x277,0x278,0x279,0x279,0x27a,0x27b,0x27c,0x27c, 0x27d,0x27e,0x27f,0x27f,0x280,0x281,0x282,0x282, 0x283,0x284,0x285,0x285,0x28...
null
null
null
null
null
null
github_plus_top10pct_by_avg
0x364,0x365,0x366,0x367,0x368,0x369,0x36a, 0x36a,0x36b,0x36c,0x36d,0x36e,0x36f,0x370,0x370, 0x371,0x372,0x373,0x374,0x375,0x376,0x377,0x377, 0x378,0x379,0x37a,0x37b,0x37c,0x37d,0x37d,0x37e, 0x37f,0x380,0x381,0x382,0x383,0x383,0x384,0x385, 0x386,0x387,0x388,0x389,0x38a,0x38a,0x38b,0x38c, 0x38d,0x38e,0x38f,0x390,0x...
null
null
null
null
null
null
github_plus_top10pct_by_avg
i, OPL4_DAMP_BIT); spin_unlock_irqrestore(&opl4->reg_lock, flags); INIT_LIST_HEAD(&opl4->off_voices); INIT_LIST_HEAD(&opl4->on_voices); memset(opl4->voices, 0, sizeof(opl4->voices)); for (i = 0; i < OPL4_MAX_VOICES; i++) { opl4->voices[i].number = i; list_add_tail(&opl4->voices[i].list, &opl4->off_voices); ...
null
null
null
null
null
null
github_plus_top10pct_by_avg
(&opl4->reg_lock, flags); for (i = 0; i < OPL4_MAX_VOICES; i++) { voice = &opl4->voices[i]; if (voice->chan) func(opl4, voice); } spin_unlock_irqrestore(&opl4->reg_lock, flags); } static void snd_opl4_update_volume(struct snd_opl4 *opl4, struct opl4_voice *voice) { int att; att = voice->sound->tone_attenu...
null
null
null
null
null
null
github_plus_top10pct_by_avg
ne and * 0x600 is one octave. */ pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7); pitch += voice->sound->pitch_offset; if (!chan->drum_channel) pitch += chan->gm_rpn_coarse_tuning; pitch += chan->gm_rpn_fine_tuning >> 7; pitch += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range /...
null
null
null
null
null
null
github_plus_top10pct_by_avg
egion_ptr *regions; struct opl4_voice *voice[2]; const struct opl4_sound *sound[2]; int voices = 0, i; unsigned long flags; /* determine the number of voices and voice parameters */ i = chan->drum_channel ? 0x80 : (chan->midi_program & 0x7f); regions = &snd_yrw801_regions[i]; for (i = 0; i < regions->count; i+...
null
null
null
null
null
null
github_plus_top10pct_by_avg
d_opl4_write(opl4, OPL4_REG_MISC + voice[i]->number, voice[i]->reg_misc); } spin_unlock_irqrestore(&opl4->reg_lock, flags); } static void snd_opl4_voice_off(struct snd_opl4 *opl4, struct opl4_voice *voice) { list_move_tail(&voice->list, &opl4->off_voices); voice->reg_misc &= ~OPL4_KEY_ON_BIT; snd_opl4_...
null
null
null
null
null
null
github_plus_top10pct_by_avg
t_ using it enhances the listening experience. */ break; case MIDI_CTL_PITCHBEND: snd_opl4_do_for_channel(opl4, chan, snd_opl4_update_pitch); break; } } void snd_opl4_sysex(void *private_data, unsigned char *buf, int len, int parsed, struct snd_midi_channel_set *chset) { struct snd_opl4 *opl4 = priva...
null
null
null
null
null
null
github_plus_top10pct_by_avg
--------------------------------------- TransLogger will automatically setup a logging handler to the console when called with no arguments. It "just works" in environments that don't configure logging. This is by virtue of its default configuration setting of ``setup_console_handler = True``. .. TODO: .. .. _loggin...
null
null
null
null
null
null
github_plus_top10pct_by_avg
in environments that don't configure logging. Since our logging handlers are configured, we disable the automation via ``setup_console_handler = False``. With the filter in place, TransLogger's logger (named the ``wsgi`` logger) will propagate its log messages to the parent logger (the root logger), sending it...
null
null
null
null
null
null
github_plus_top10pct_by_avg
configuration to wire this new ``accesslog`` formatter into the FileHandler: .. code-block:: ini [handler_accesslog] class = FileHandler args = ('%(here)s/access.log','a') level = INFO formatter = accesslog // // PagerControllerDmeoController.h // TYPagerControllerDemo // // Created by tany o...
null
null
null
null
null
null
github_plus_top10pct_by_avg
" "=Data2\n"; // No key struct ReadFunc { template<class Ptree> void operator()(const std::string &filename, Ptree &pt) const { read_ini(filename, pt); } }; struct WriteFunc { template<class Ptree> void operator()(const std::string &filename, const Ptree &pt) const ...
null
null
null
null
null
null
github_plus_top10pct_by_avg