seed
stringlengths
1
14k
source
stringclasses
2 values
import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * Tonline entity. @author MyEclipse Persistence Tools */ @Entity @Table(name = "T_ONLINE") public class Tonline implements java.io.Serializable {
ise-uiuc/Magicoder-OSS-Instruct-75K
/bin/sed -i 's/#prepend domain-name-servers 127.0.0.1;/prepend domain-name-servers 8.8.8.8, 8.8.4.4;/g' /etc/dhcp/dhclient.conf ifdown eth0 && ifup eth0
ise-uiuc/Magicoder-OSS-Instruct-75K
Test that setup_pd function returns a pandas series
ise-uiuc/Magicoder-OSS-Instruct-75K
} func testParseInvalidJSON() { XCTAssertThrowsError(try Locations(json: "")) } func testGetMinimalJSON() { AssertJSONEqual( Locations( position: 42 ).json as Any,
ise-uiuc/Magicoder-OSS-Instruct-75K
</thead> <tbody> <?php foreach ($detail_data as $detail) : ?> <tr> <td><?= $no++; ?></td> <td><?= $detail['pernyataan_risiko']; ?></td> <?php ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<div id="loading"><i class="fa fa-cog fa-spin fa-3x gray-color"></i></div> <?php Modal::end(); ?> <?php Modal::begin([
ise-uiuc/Magicoder-OSS-Instruct-75K
public static class EnumerableExtensions { public static IEnumerable<SelectListItem> AsSelectListItems(
ise-uiuc/Magicoder-OSS-Instruct-75K
/// [the `template!` macro](https://sycamore-rs.netlify.app/docs/basics/template) in the Sycamore Book. #[proc_macro] pub fn template(component: TokenStream) -> TokenStream { let component = parse_macro_input!(component as template::HtmlRoot); template::template_impl(component).into() }
ise-uiuc/Magicoder-OSS-Instruct-75K
def read(self, n: int) -> bytes: if l := self.stdout.read(n): return l raise EOFError def dispose(self) -> None: try: self.socket.close() except: core.log_exception()
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>zenly/visibility ''' Copyright 2013 <NAME> 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 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
button->SendLearnMorePressedForTest(); } } EXPECT_EQ(1u, number_of_settings_buttons); EXPECT_EQ(1u, settings_provider()->request_count()); const NotifierId* last_settings_button_id = settings_provider()->last_requested_notifier_id(); ASSERT_FALSE(last_settings_button_id == nullptr); EXPECT_...
ise-uiuc/Magicoder-OSS-Instruct-75K
{ _file.reset (new Ftp::FileWritable (_ftpSessionHandle, _path.c_str ())); } ::File::Size File::GetSize () { Assume (_file.get () == 0, "Ftp::File::GetSize called during transfer"); Ftp::FileReadable file (_ftpSessionHandle, _path.c_str ()); return file.GetSize (); }
ise-uiuc/Magicoder-OSS-Instruct-75K
return (boxes[:, 2] - boxes[:, 0]) * (boxes[:, 3] - boxes[:, 1]) def box_cxcywh_to_xyxy(x): x_c, y_c, w, h = x.unbind(-1) b = [x_c - 0.5 * w, y_c - 0.5 * h, x_c + 0.5 * w, y_c + 0.5 * h] return paddle.stacks(b, axis=-1) def box_xyxy_to_cxcywh(x): x0, y0, x1, y1 = x.unbind(-1) b = [(x0 + x1) ...
ise-uiuc/Magicoder-OSS-Instruct-75K
""" return pulumi.get(self, "subnet_id") @subnet_id.setter def subnet_id(self, value: pulumi.Input[str]): pulumi.set(self, "subnet_id", value) @property @pulumi.getter(name="zoneId")
ise-uiuc/Magicoder-OSS-Instruct-75K
impl OwnedBy { pub fn new(entity: Entity) -> Self {
ise-uiuc/Magicoder-OSS-Instruct-75K
As the bowl was too shallow for the stork, she couldn’t have soup at all. But, the fox licked up his soup quickly." print(f"{madlib}")
ise-uiuc/Magicoder-OSS-Instruct-75K
function: get the delete guc from file,
ise-uiuc/Magicoder-OSS-Instruct-75K
print('O ano de {} NÃO é bissexto'.format(ano))
ise-uiuc/Magicoder-OSS-Instruct-75K
logger = logging.getLogger(__name__) class Person: """ Represents an author or contributor in an Atom feed entry. The following parameters are also available as instance attributes:
ise-uiuc/Magicoder-OSS-Instruct-75K
{ renderer.DrawLine(vertices[k], vertices[k + ((horzSegments - 1) * vertSegments)], lineMode: lineMode, thickness: kHorzLineThickness); } } renderer.color = prevColor; } public void OnEdit(IChiselHandles handles) { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
} if( bytes ) { result.push_back( *(TRet*)&val ); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def _add_addresses(info, rrset): # Not sure if this is the correct way to detect addresses. if rrset.rdtype != dns.rdatatype.PTR or rrset.rdclass != dns.rdataclass.IN: return # Meh. if not rrset.name.to_text().endswith('.arpa.'): return info['addresses'].append(dns.reversename.to_...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.handler.clear() del child.attrs['foo'] self.assertEqual(len(self.handler.handled), 1) self.assertTrue(isinstance(self.handler.handled[0], NodeModifiedEvent))
ise-uiuc/Magicoder-OSS-Instruct-75K
state.isProcessingBook = false; state.target = undefined; })
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Interface for external servers providing optional UI for pipe fitting and pipe accessory coefficient calculation. """ def GetDBServerId(self): """ GetDBServerId(self: IPipeFittingAndAccessoryPressureDropUIServer) -> Guid Returns the Id of the corresponding DB server for which this server provid...
ise-uiuc/Magicoder-OSS-Instruct-75K
"PROFILE" ); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mrecyclerview = (RecyclerView) getActivity().findViewById(R.id.recyclerView); FirebaseApp.initializeApp(getActivity()); session = new Sess...
ise-uiuc/Magicoder-OSS-Instruct-75K
raise ValueError('path-to-backup argument must be provided')
ise-uiuc/Magicoder-OSS-Instruct-75K
import requests logger = logging.getLogger(__name__) class MonzoClientError(Exception): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
ise-uiuc/Magicoder-OSS-Instruct-75K
if c[:6].encode().hex() != '{2}3{0}{1}{0}3{2}{1}{0}{0}{2}b'.format(*map(str, [6, 4, 7])): d() if c[int(chr(45) + chr(49))] != chr(125): d() g = c[6:-1].encode()
ise-uiuc/Magicoder-OSS-Instruct-75K
import PIL import tensorflow as tf from keras import backend as K from keras.layers import Input, Lambda, Conv2D from keras.models import load_model, Model from keras.callbacks import TensorBoard, ModelCheckpoint, EarlyStopping
ise-uiuc/Magicoder-OSS-Instruct-75K
# ''' # y_pred = np.zeros((y.size, 1)) # # skf = StratifiedKFold(n_splits=k_fold) # skf.get_n_splits(X, y) # # for train_index, test_index in skf.split(X, y): # #print("TRAIN:", train_index, "TEST:", test_index) # X_tr, X_te = X[train_index], X[test_index] # y_tr, y_te = y[tr...
ise-uiuc/Magicoder-OSS-Instruct-75K
return False return True
ise-uiuc/Magicoder-OSS-Instruct-75K
:param int N: repeat time :param function fn: function to generate module :return: repeated modules :rtype: MultiSequential
ise-uiuc/Magicoder-OSS-Instruct-75K
Firmware upgrades endpoint: https://developer.cisco.com/meraki/api-v1/#!get-network-firmware-upgrades Action batches: https://developer.cisco.com/meraki/api-v1/#!action-batches-overview NB: Once you start the script, there are no confirmation prompts or previews, so test in a lab if necessary. NB: When the final bat...
ise-uiuc/Magicoder-OSS-Instruct-75K
class DevelopmentConfig(Config): """ Development Config... this is your home developer! """
ise-uiuc/Magicoder-OSS-Instruct-75K
text. Here is the structure of a rendered table of contents with two levels of depth: .. code-block:: html <div class="toctree-wrapper compound">
ise-uiuc/Magicoder-OSS-Instruct-75K
shellName += chr(ord('a')+random.randint(0,25)) payload = "ajax/getemaildata.php?DontCheckLogin=1" raw = """ POST /ajax/getemaildata.php?DontCheckLogin=1 HTTP/1.1 Host: 192.168.3.11:8888 Content-Length: 312 Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,ima...
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod terraswap_mock;
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public function connect() { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
sed -i /etc/nginx/conf.d/moira.conf -e "s|MOIRA_API_URI|$MOIRA_API_URI|" exec nginx -g "daemon off;"
ise-uiuc/Magicoder-OSS-Instruct-75K
let regex_set = RegexSet::new( parsers .user_agent_parsers .iter() .map(|e| e.regex.replace("\\/", "/").replace("\\!", "!")), ) .unwrap(); unsafe { assert!(UA_REGEX_SET.is_none());
ise-uiuc/Magicoder-OSS-Instruct-75K
t = nouns.Templates(folders=[nouns.BUILTIN_TEMPLATES_FOLDER], preprocess=x) def get_css():
ise-uiuc/Magicoder-OSS-Instruct-75K
from .commands import extract_rate
ise-uiuc/Magicoder-OSS-Instruct-75K
# Apply aggregations for name, agg in self.iter_aggs_options(options): # `aggs[]=` mutates `self.search` search.aggs[name] = agg if not callable(agg) else agg() # Apply post filters
ise-uiuc/Magicoder-OSS-Instruct-75K
}; var headers = httpClient.DefaultRequestHeaders; headers.AcceptEncoding.Clear(); headers.AcceptEncoding.ParseAdd("gzip"); headers.AcceptEncoding.ParseAdd("deflate"); headers.Accept.Clear();
ise-uiuc/Magicoder-OSS-Instruct-75K
--source-namespace /httpsource \\ --user john \\
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace asllvm::detail { struct StandardFunctions { llvm::FunctionCallee alloc, free, new_script_object, script_vtable_lookup, system_vtable_lookup, call_object_method, panic, set_internal_exception, prepare_system_call, check_execution_status; }; struct GlobalVariables
ise-uiuc/Magicoder-OSS-Instruct-75K
im = cv2.imread(img) # get default cfg file cfg = get_cfg()
ise-uiuc/Magicoder-OSS-Instruct-75K
:param timesheet_line: The timesheet_line of this TimesheetLineObject. # noqa: E501 :type: TimesheetLine """
ise-uiuc/Magicoder-OSS-Instruct-75K
it('copies video sections from the offer to the answer if only the offer has a video', done => { const localDescription: RTCSessionDescriptionInit = { type: 'offer', sdp: SDPMock.VIDEO_HOST_AUDIO_VIDEO_ANSWER, }; context.peer.setLocalDescription(localDescription); const rem...
ise-uiuc/Magicoder-OSS-Instruct-75K
#[case("v5.&.0.^.@.$.81")] #[case("R.0.&.3.^")] #[case("Φ.𝛼0.σ.𝛼3.ρ")] #[case("$.0")] #[case("$.0")] pub fn parses_and_prints(#[case] locator: String) {
ise-uiuc/Magicoder-OSS-Instruct-75K
PresentationManager.Instance.PostUpdate += Instance_PostUpdate; return base.OnInitialize(); #region Setups void SetupMasterScene() { if (string.IsNullOrEmpty(SceneList.Instance.MasterScene)) throw new Exception("master scene is empty");
ise-uiuc/Magicoder-OSS-Instruct-75K
${polorToRectangular(cx, cy, innerR, (36 * 7) - 90)} ${polorToRectangular(cx, cy, outerR, (36 * 8) - 90)} ${polorToRectangular(cx, cy, innerR, (36 * 9) - 90)} ${polorToRectangular(cx, cy, outerR, 0 - 90)} `} strokeWidth="1.5" /> </svg>
ise-uiuc/Magicoder-OSS-Instruct-75K
puz.answer_b = solve(nums, 3) print('Part 2:', puz.answer_b)
ise-uiuc/Magicoder-OSS-Instruct-75K
let mut new_pixels = Vec::new(); for col in 0..side_length {
ise-uiuc/Magicoder-OSS-Instruct-75K
public static final String SPRING_ACTIVE_PROFILE_NAME = "spring.profiles.active"; public static final String SPRING_HTTP_NAME = "httpFacade"; public static final String SPRING_SOAP_NAME = "soapDispatcher"; public static final String URL_SPRING_HTTP_PATTERN = "/remoting/httpFacade"; public void onStartup(Servl...
ise-uiuc/Magicoder-OSS-Instruct-75K
cp package.json dist/ cp yarn.lock dist/ cp .env dist/ cp -r dist bin/dist cd bin image=$(docker images | grep 'registry.cn-hangzhou.aliyuncs.com/youkeda/sugar_server' | awk '{print $3}') if [ -n "$image" ]; then docker rmi $image fi dockerName=registry.cn-hangzhou.aliyuncs.com/youkeda/sugar_server:$(TZ=CST-8 ...
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>lel352/Curso-Python<gh_stars>1-10 def saudacao(saudar, nome): print(saudar, nome) saudacao('Olá', 'Leandro')
ise-uiuc/Magicoder-OSS-Instruct-75K
attr_map = { # attr, sub attr, uri ("userName", None, None): "zerver_userprofile.delivery_email", # We can only reasonably support filtering by name.formatted # as UserProfile.full_name is its equivalent. We don't store # first/last name information for UserProfile, so we can...
ise-uiuc/Magicoder-OSS-Instruct-75K
class Relation: """Contains method to get driver_id and maximum from a requested ride""" @staticmethod def get_driver_id(request_id): """Gets all request""" db_cursor = db.con() db_cursor.execute("SELECT * FROM request WHERE request_id=%s", (request_id,)) request = db_curso...
ise-uiuc/Magicoder-OSS-Instruct-75K
public get label() { return this.initConfig.label; } public get publicDid() { return this.initConfig.publicDid; } public get publicDidSeed() { return this.initConfig.publicDidSeed; }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ this.position = position; } @Override public double getDistance() { return position.getNorm(); } @Override
ise-uiuc/Magicoder-OSS-Instruct-75K
element3 = e3 element4 = e4 element5 = e5 if (cc1 > 0):
ise-uiuc/Magicoder-OSS-Instruct-75K
class BlogList(TestCase): url_name = 'plok:blog_list' def test_reverse_blog_list(self): self.assertEqual(reverse(self.url_name), '/list/')
ise-uiuc/Magicoder-OSS-Instruct-75K
assert breadth_first_search(g, 'a', 'e') == ['a', 'b', 'd', 'e'] def test_multiple_paths_undirected(): g = UndirectedGraph() g.add_edge('a', 'b') g.add_edge('b', 'c') g.add_edge('b', 'e') g.add_edge('b', 'd') g.add_edge('d', 'e') g.add_edge('e', 'f')
ise-uiuc/Magicoder-OSS-Instruct-75K
enum MD2Event { // WidgetEvents case OnClick case OnWidgetChange case OnLeftSwipe case OnRightSwipe case OnWrongValidation case OnTooltip // ContentProviderEvents case OnContentChange // GlobalEvents case OnConnectionLost
ise-uiuc/Magicoder-OSS-Instruct-75K
protected $dates = [ 'deleted_at' ]; protected $formConfig = [ ]; protected $listConfig = [ ]; public function url() { return $this->path.$this->name; }
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Reads a bplist file and writes it to a json file. Args: bplist_file_path (str):
ise-uiuc/Magicoder-OSS-Instruct-75K
im.load()
ise-uiuc/Magicoder-OSS-Instruct-75K
return(True, i) return(False, 0) def Crupier(mano): if Royal_Flush(mano): return(10, 0) elif Straight_Flush(mano): return(9, 0) elif Four_of_a_Kind(mano): return(8, 0) elif Full_House(mano)[0]: return(7, Full_House(mano)[1])
ise-uiuc/Magicoder-OSS-Instruct-75K
expected = { 'card_name': u'현대카드', 'card_number': '43302887****9512', 'customer_uid': valid_customer_uid
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.ccnode.codegenerator.pojo.GeneratedFile; import com.ccnode.codegenerator.pojo.OnePojoInfo; import com.ccnode.codegenerator.pojoHelper.GenCodeResponseHelper; import com.ccnode.codegenerator.util.LoggerWrapper; import com.google.common.collect.Lists; import com.ccnode.codegenerator.util.GenCodeUtil; import org...
ise-uiuc/Magicoder-OSS-Instruct-75K
{ this.BassStreamPipelineFactory.QueryingPipeline -= this.OnQueryingPipeline; this.BassStreamPipelineFactory.CreatingPipeline -= this.OnCreatingPipeline; } } ~BassAsioStreamOutputBehaviour()
ise-uiuc/Magicoder-OSS-Instruct-75K
try { m_pipeHandle.BeginRead(m_readBuffer, 0, m_options.m_numOfReadBytes, OnReadComplete, this); m_connected = true; m_options.m_callBackObj.OnNewConnection(this, IpcConnectStatus.SUCCESS); }
ise-uiuc/Magicoder-OSS-Instruct-75K
# Remove raw files rm *.mat echo "Done"
ise-uiuc/Magicoder-OSS-Instruct-75K
if input::keyboard::is_key_pressed(ctx, KeyCode::Numpad0) { self.params.max_iter = MandelbrotRenderParams::DEFAULT_ITER; self.params.offset_x = 0.0; self.params.offset_y = 0.0;
ise-uiuc/Magicoder-OSS-Instruct-75K
features_4k.append(t_features) labels_4k.append(t_labels)
ise-uiuc/Magicoder-OSS-Instruct-75K
nlohmann::json &groupData = dataArray[i]; std::size_t start = 0, end = groupData.size() - 1; if(scale::IsCategory(xScale.GetType())) { start = fmax(start, xScale.min); end = fmin(end, xScale.max);
ise-uiuc/Magicoder-OSS-Instruct-75K
var animator1: ChainableAnimator! var animator2: ChainableAnimator! @IBAction func addFollowTap(_ sender: UIButton) {
ise-uiuc/Magicoder-OSS-Instruct-75K
from collections import Callable def callable(obj): return isinstance(obj, Callable) else: builtin_str = str bytes = str str = unicode basestring = basestring from UserDict import UserDict # noqa from urlparse import urlparse # noqa from urllib import pathname2url de...
ise-uiuc/Magicoder-OSS-Instruct-75K
name=constants.USAGE_ALIAS_URL_NAME, ), url( r'^detach-alias/(?P<plugin_pk>\d+)/$', views.detach_alias_plugin_view, name=constants.DETACH_ALIAS_PLUGIN_URL_NAME, ), url( r'^delete-alias/(?P<pk>\d+)/$', views.delete_alias_view, name=constants.DELETE_...
ise-uiuc/Magicoder-OSS-Instruct-75K
def c_Beta(a1, a0): ''' Evaluate cumulant function of the Beta distribution When input is vectorized, we compute sum over all entries. Returns ------- c : scalar real ''' return np.sum(gammaln(a1 + a0)) - np.sum(gammaln(a1)) - np.sum(gammaln(a0))
ise-uiuc/Magicoder-OSS-Instruct-75K
"...world...".getBytes()); } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
with open(cache_file, "r") as f: auth_token = f.read().strip() req = requests.get( f"{self.location}/system", params={"X-Plex-Token": auth_token} ) if req.ok: return auth_token # Try to fetch auth token req ...
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(self.DUT.RTK_PROG_DIR, self.DUT.RTK_HOME_DIR + '/analyses/rtk') self.assertEqual(self.DUT.RTK_CONF_DIR, '') @attr(all=True, unit=True) def test01a_set_site_variables(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
var headers: [String: String] public let parameters: [String: Any]? public let method: String public let URLString: String public let requestTask: RequestTask = RequestTask() /// Optional block to obtain a reference to the request's progress instance when available. /// With the URLSession ...
ise-uiuc/Magicoder-OSS-Instruct-75K
runActionIfNeeded, };
ise-uiuc/Magicoder-OSS-Instruct-75K
*/
ise-uiuc/Magicoder-OSS-Instruct-75K
case (.noContent, .noContent): return true default: return false } }
ise-uiuc/Magicoder-OSS-Instruct-75K
continue self._tokens.append(tok) cached = False tok = self._tokens[self._index] self._index += 1 if self._verbose: self.report(cached, False) return tok
ise-uiuc/Magicoder-OSS-Instruct-75K
osu = OsuMap.readFile(OSU_CARAVAN) qua = OsuToQua.convert(osu) # qua.writeFile("out.qua") # @profile def test_osu2(self): # Stops osu = OsuMap.readFile(OSU_ESCAPES)
ise-uiuc/Magicoder-OSS-Instruct-75K
#def eq_ph_A(variables,params): #return [cm.phase(temp) for temp in variables['A']] #np.array(np.arctan2(np.imag(variables['A']), np.real(variables['A']))) #def eq_ph_B(variables,params): #return [cm.phase(temp) for temp in variables['B']] def keyboard_keys(): """ Returns a dictionnary of user defin...
ise-uiuc/Magicoder-OSS-Instruct-75K
cp -r /usr/src/.jx3 /root mkdir /root/jenkinsx3 cd /root/jenkinsx3
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> <div class="card-content text-center"> <button type="submit" class="btn btn-fill btn-info">Submit</button> </div> </div> </form> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
static fromJSON<T>(json: IJSONWebTokenAttrs): JSONWebToken<T>; } export {};
ise-uiuc/Magicoder-OSS-Instruct-75K
settings.save() window.close()
ise-uiuc/Magicoder-OSS-Instruct-75K
from .observation_based import ObservationBasedFitness, MultipleLinearRegression, SimplePolynomialRegression, MultipleLinearRegression
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return LifeCostTooltip?.RawDescription; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
## Copyright (c) 2021 mangalbhaskar. All Rights Reserved. ##__author__ = 'mangalbhaskar' ##---------------------------------------------------------- ## software stack installation configuration
ise-uiuc/Magicoder-OSS-Instruct-75K
public String getDepartmentName() { return departmentName; } public void setDepartmentName(String departmentName) { this.departmentName = departmentName; } }
ise-uiuc/Magicoder-OSS-Instruct-75K