seed stringlengths 1 14k | source stringclasses 2 values |
|---|---|
public LFDMS_Status () {}
private Boolean sliderHasBeenMoved_b = Boolean.FALSE;
/*
If either of these are true then the audio database connection is not
closed, if both are false then it is.
*/
private static Boolean captureAudio_b = Boolean.TRUE,
muteAudio_b = Boolean.FALSE;
/**
* [TODO]
* Documentation.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#socketio = SocketIO(app)
#Message: (':1.654', '/hfp/org/bluez/hci0/dev_94_65_2D_84_61_99', 'org.ofono.Modem', 'PropertyChanged', ('Powered', False))
#Data: Powered
bus = SystemBus()
def cb_server_signal_emission(*args):
print("Message: ", args)
makedev = lambda path : path.split('/')[-1]
iface = args[2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*position += 2;
return Ok(Some(CSSToken::Comment));
}
*position += 1;
empty = points.next().is_none();
}
// If we've reach the end of the iterator return a parse error
Err(ParseError {
token: Some(CSSToken::Comment),
error_text: "Unexpected End Of File (EOF)",
at: *position,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace PasswordQueryTool.Backend.Services.Parsing.Models
{
public class FileModel
{
public string FileName { get; set; }
public long FileSize { get; set; }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
sock = socket.create_connection((var, port), 5)
print("{} - {} - OPEN".format(var, port))
except ConnectionRefusedError:
print("{} - {} - ERRConnRefused".format(var, port))
except socket.timeout:
print("{} - {} - ERRConnTimeout".format(var, port))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
target = self._get_auth_url(target, target_couchdb.auth.url_auth)
if self._drop_first:
try:
target_couchdb.delete_database(target_name)
except:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
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.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
:type J: str
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
list_response = admin.list_topics(timeout=5)
# get all the broker info
logging.info('>Broker details:')
for counter, broker in enumerate(list_response.brokers.items(), start=1):
logging.info(f'{counter}-Broker info: {broker}')
logging.info('>Topics details:')
# get all the topic names
for counter, topic_data in enumerate(list_response.topics.items(), start=1):
logging.info(f'{counter}-Topic info: {topic_data}')
def load_sample_data(topic: str, sample_data: list) -> None:
"""Loads the sample data to the input kafka topic.
This will load data across 10 different partitions.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
:type A: List[int]
:rtype: int
"""
c = Counter(A)
return [x for x in c if c[x] == len(A) // 2][0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
msg_queue.put(
"Running function '%s' finished with result '%s', and"
"stack:\n%s\n" % (func.__name__, result,
traceback.format_stack()))
return result
messages = Queue()
# although creating a separate process is expensive it's the only way to
# ensure cross platform that we can cleanly terminate after timeout
p = Process(target=functools.partial(capture_results, messages, func),
args=args, kwargs=kwargs)
p.start()
p.join(seconds)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--dataset='cifar10' \
--input_size=160 \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if d==3: self.objects['traj_lines'][j].set_3d_properties(xyz[...,2].T)
self.objects['pts'][j].set_data(*xyz[-1:,...,:2].T)
if d==3: self.objects['pts'][j].set_3d_properties(xyz[-1:,...,2].T)
#self.fig.canvas.draw()
return sum(self.objects.values(),[])
def animate(self):
return self._animate().to_html5_video()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
To add the application to the menu, add the include to your header file to
the main.cpp. Also insert the following snippet to the menu creation section
in the main.cpp. (Have a look at the existing code to get an idea how it works):
MenuEntry(std::make_shared<AppLauncher>(c, std::make_shared<$APP_NAME>()))" > $tmp_file
whiptail --title 'Create new application' --textbox $tmp_file $HEIGHT $WIDTH
# print to commandline
echo "########################################"
cat $tmp_file
echo "########################################"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rclient.set("log_pos", binlogevent.packet.log_pos)
if row_count % 1000 == 0:
logger.info("save {} changed rows".format(row_count))
stream.close()
if __name__ == "__main__":
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sAccount.setStatus("Active");
sAccount.setTheme_id(1);
try {
sAccount = SitaAccountDAO.createSiteAccount(sAccount);
} catch (Exception e) {
logger.error(e.getMessage());
isSuccessful = false;
sParams.setErrorMessage(TLController.getTl(sParams, e.getMessage()));
}
if (isSuccessful) {
sParams.setLanguage(sAccount.getLanguage());
}
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
,-whitespace/labels\
,-whitespace/newline\
,-build/header_guard\
,-build/include\
,-runtime/references\
,-runtime/explicit\
,-runtime/int\
,-runtime/sizeof\
,-legal/copyright\
--root=./include ./include/* ./src/* \
./unit_tests/cpp_classes/* ./unit_tests/test_classes/* ./unit_tests/bind_classes/* \
./unit_tests/string_is_integral/* ./unit_tests/tests_may_fail/* \
./unit_tests/tests_must_fail/cpp_acquire/* \
./unit_tests/tests_must_fail/cpp_in/* \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def write_rows_to_csv(filename, data):
with open(filename, 'wb') as csvfile:
writer = csv.writer(csvfile)
for row in data:
writer.writerow(row)
csvfile.close
def deserialize_date_fallback_int(byts, protocol_version):
timestamp_ms = cassandra.marshal.int64_unpack(byts)
try:
return cassandra.util.datetime_from_timestamp(timestamp_ms / 1000.0)
except OverflowError:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//admin
Route::get('/tambahakun','AdminController@index');
Alert::success();
Alert::warning();
// alert()->info('InfoAlert','Lorem ipsum dolor sit amet.');
Route::post('/addAdmin','AdminController@store');
Route::get('/editA','AdminController@edit_Admin');
Route::post('/edit_akun','AdminController@edit_akun_admin');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data.append(tuple(parameters))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
img = Image.new('RGB', img_size, background_color)
draw = ImageDraw.Draw(img)
for x in range(pyxie_size):
for y in range(pyxie_size):
need_to_paint = need_color[x // block_size, y // block_size]
if need_to_paint:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
run should_it_make_deep_link_directory ".local"
[[ "$status" -eq 0 ]]
popd
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("%d dec"%aux)
aux=bin(aux).replace('0b','')
print("%s bin"%aux)
print()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo yum install git
fi
fi
if type "git" &> /dev/null; then
sh_success "$(git --version) installed: $(command -v git)"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param {ListNode} head
# @return {ListNode}
def deleteDuplicates(self, head):
ptr = head
while ptr:
ptr.next = self.findNext(ptr)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public override object GetDefaultVariantValue() {
return 1f;
}
public override object GetVariantValue() {
return Settings.JumpHeight;
}
protected override void DoSetVariantValue(object value) {
Settings.JumpHeight = (float) value;
}
public override void SetLegacyVariantValue(int value) {
Settings.JumpHeight = (value / 10f);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static void main(String[] args) {
String[] ops = new String[]{"5","-2","4","C","D","9","+","+"};
Solution solution = new Solution();
System.out.println(solution.calPoints(ops));
}
static class Solution{
public int calPoints(String[] ops) {
Stack<Integer> stack = new Stack<>();
for(String str : ops){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#![recursion_limit = "1024"]
extern crate proc_macro;
#[macro_use]
extern crate quote;
extern crate syn;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<Control fullwidth={true}>
<Label>MSA License Type</Label>
<DropdownInput
required
value={membership.msaLicenseType}
options={licenseTypes}
setValue={(e): void =>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
payload->validation_code = MHYPROT_ENUM_PROCESS_THREADS_CODE;
payload->process_id = process_id;
payload->owner_process_id = process_id;
if (!request_ioctl(MHYPROT_IOCTL_ENUM_PROCESS_THREADS, payload, alloc_size))
{
free(payload);
return false;
}
//
// if the request succeed in the driver context,
// a number of threads that stored in the buffer will be reported
// in first 4byte
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Clone, Copy)]
pub struct ToJsonHelper;
impl HelperDef for ToJsonHelper {
fn call(&self, h: &Helper<'_>, _: &Handlebars, rc: &mut RenderContext<'_>) -> RenderResult<()> {
let param = h.param(0)
.ok_or_else(|| RenderError::new("Expected 1 parameter for \"toJson\""))?
.value();
let json = serde_json::to_string_pretty(param).map_err(|e| {
RenderError::new(format!("Can't serialize parameter to JSON: {}", e))
})?;
rc.writer.write_all(json.into_bytes().as_ref())?;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
continue
fi
done 2>/dev/null
if [ -s "$FAKE_FILTER_FILE" ]; then
sed -i '1i\fake-ip-filter:' "$FAKE_FILTER_FILE"
else
rm -rf "$FAKE_FILTER_FILE" 2>/dev/null
fi
fi
cfg_server_address()
{
local section="$1"
config_get "server" "$section" "server" ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_name: str = "binance"
_market: str = "future"
def _get_ccxt_config(self) -> dict[str, Any]:
ccxt_config = super()._get_ccxt_config() or {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return image;
}
public static void main(String[] args) {
new ImageExample();
}
@Override
protected void onLightSourceRemove(LightSource l) {
// TODO Auto-generated method stub
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.ruoyi.web.hydrology.domain.WaterMeter;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Inflector, classical mode.
pub fn classical() -> &'static Inflector {
&CLASSICAL
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
parser.add_argument('-strategy', '--strategy', help='naive/mh', required=True)
args = parser.parse_args()
system = args.system
suffix = int(args.suffix)
job = args.job
pn = args.pn
strategy = args.strategy
if DATA_PATH is None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if input("> ").lower() == "n":
break
print("Goodbye.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// Created by Nikolaos Kechagias on 02/09/15.
// Copyright (c) 2015 Your Name. All rights reserved.
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public:
Model();
Model(const Model & copy);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
guard let representation = self.substring(at: range) else {
return []
}
return representation.trimmingCharacters(in: brackets).split(separator: ",").map({ (sub) -> String in
return String(sub).trimmingCharacters(in: arrayString)
})
}
public var range: NSRange {
return NSMakeRange(0, NSMutableString(string: self).length)
}
}
extension NSMutableString {
public var range: NSRange {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@with_production("pass_stmt", "'pass'")
def convert_pass_stmt(config: ParserConfig, children: Sequence[Any]) -> Any:
(name,) = children
return WithLeadingWhitespace(Pass(), name.whitespace_before)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { I18nService } from 'systelab-translate/lib/i18n.service';
import { StylesUtilService } from '../utilities/styles.util.service';
export type rowSelectionType = 'single' | 'multiple';
export abstract class AbstractGrid<T> implements OnInit {
protected static contextMenuColId = 'contextMenu';
public gridOptions: GridOptions;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(" " , j , end=" ")
print()
# CASO DE PRUEBA
# MATRIZ
matrix = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { asyncZip } from './index';
export = asyncZip;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.gateway.on_contract(contract)
self.gateway.write_log("合约信息查询成功")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import discord
from discord.ext import commands
import asyncio
from datetime import datetime, timedelta
import psutil
# Bot related commands
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<img src="{{ asset('theme_src/images/faces/girl.png') }}" class="img-lg rounded-circle mb-2" alt="profile image"/>
@endif
@else
<img src="{{ asset('theme_src/profile_pics/'.$user->Avatar->filename) }}" class="img-lg rounded-circle mb-2" alt="profile image"/>
@endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_add_numpy_10 (benchmark): benchmark.pedantic(add_numpy_10 , rounds=256, iterations=16)
def test_add_numpy_30 (benchmark): benchmark.pedantic(add_numpy_30 , rounds=256, iterations=16)
def test_add_numpy_100 (benchmark): benchmark.pedantic(add_numpy_100 , rounds=256, iterations=16)
def test_add_numpy_300 (benchmark): benchmark.pedantic(add_numpy_300 , rounds=256, iterations=16)
def test_add_numpy_1000 (benchmark): benchmark.pedantic(add_numpy_1000 , rounds=256, iterations=16)
def test_add_numpy_3000 (benchmark): benchmark.pedantic(add_numpy_3000 , rounds=256, iterations=16)
def test_add_simple_1 (benchmark): benchmark.pedantic(add_simple_1 , rounds=256, iterations=16)
def test_add_simple_3 (benchmark): benchmark.pedantic(add_simple_3 , rounds=256, iterations=16)
def test_add_simple_10 (benchmark): benchmark.pedantic(add_simple_10 , rounds=256, iterations=16)
def test_add_simple_30 (benchmark): benchmark.pedantic(add_simple_30 , rounds=256, iterations=16)
def test_add_simple_100 (benchmark): benchmark.pedantic(add_simple_100 , rounds=256, iterations=16)
def test_add_simple_300 (benchmark): benchmark.pedantic(add_simple_300 , rounds=256, iterations=16)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</select><br/>
<input type="date" name="date" value="<?php echo date('Y-m-d');?>"/><br/>
<input type="time" name="start" value="<?php echo date('h:m');?>"/><br/>
<input type="time" name="end" /><br/>
<input type="submit" value='Create this event' autocomplete="off" />
| ise-uiuc/Magicoder-OSS-Instruct-75K |
app = Flask(__name__)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
alphaLeft = 50
else:
alphaLeft = 100
elif (key == '7'):
if (alphaRight == 100):
alphaRight = 50
else:
alphaRight = 100
if (key == '0'):
actStrokeCap = ROUND
colorLeft = color(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->flash('danger', 'This season could not be found!');
return $this->redirect($response, 'season.index');
}
$season->delete();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo python3 -m pip install pip --upgrade | ise-uiuc/Magicoder-OSS-Instruct-75K |
from("direct:countSprintTasks").routeId("countSprintTasks")
.log(LoggingLevel.DEBUG, RouteConstantUtil.LOG_HEADERS)
.transform()
.body((bdy, hdrs) -> {
MessageContentsList queryData = (MessageContentsList) bdy;
String lang = (String) hdrs.get(RouteConstantUtil.ACCEPT_LANG_HEADER);
try {
var tasks = taskDao.countSprintTasks((long) queryData.get(0));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_ => u8::MAX
}
}
fn rev_polish_notation(expr: &str) -> Vec<char> {
let count = expr.len();
let mut stack = Vec::with_capacity(count);
let mut output = Vec::with_capacity(count);
for c in expr.chars(){
match c{
' ' => continue, //遇到空字符,跳过
')' => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let response_html = crate::auto_generated_files_mod::get_file_text("/cargo_crev_reviews/modal_message.html");
crate::auto_generated_mod::cln_methods::cln_modal_error(response_data, &response_html)
}
pub fn response_no_action() -> anyhow::Result<String> {
crate::auto_generated_mod::cln_methods::cln_no_action("", "")
}
pub fn response_modal_close() -> anyhow::Result<String> {
crate::auto_generated_mod::cln_methods::cln_modal_close("", "")
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from PIL import Image
import numpy as np
# Set new frame size dimensions
img_width, img_height = (100, 100)
# Scaler and model imports
| ise-uiuc/Magicoder-OSS-Instruct-75K |
header('Cache-Control:must-revalidate,post-check=0,pre-check=0');
header('Expires:0');
header('Pragma:public');
// 输出表头
echo iconv('utf-8', 'gbk//TRANSLIT', '"' . implode('","', $tableHeader) . '"' . "\n");
// 输出表体
foreach ($data as $key => $value) {
$outPut = [];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(([5,4,-1,7,8],), 23),
)
return func, test_cases | ise-uiuc/Magicoder-OSS-Instruct-75K |
if (xmlResult.status == pugi::status_ok) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
operations = [
migrations.CreateModel(
name="Artist",
fields=[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
out_sen = decoder_model(out_img)
model = Model(inputs=[input_img, input_sen], outputs=[out_img, out_sen])
model.compile('adam', loss=[mean_absolute_error, categorical_crossentropy],
metrics={'sentence_reconstruction': categorical_accuracy})
encoder_model = Model(inputs=[input_img, input_sen], outputs=[out_img])
return model, encoder_model, decoder_model
| ise-uiuc/Magicoder-OSS-Instruct-75K |
6) sub-surface flight constraint
PROBLEM 4: Minimum Fuel Use
MAXIMIZE : landing mass, opt variables are dynamical and
SUBJ TO :
0) same constraints as p1, plus:
1) landing point must be equal or better than that found by p1
'''
def solve(params, params_super = None, codegen = False, verbose=False):
#super params
if (params_super == None):
params_super = GFOLD_params.SuperParams() # default
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
sm_fInitcsIsapiStreamContexts = TRUE;
hr = S_OK;
Finished:
if ( FAILED( hr ) )
{
Terminate();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
set => SetValue(PageIndexProperty, value);
}
/// <summary>
/// 表示当前选中的按钮距离左右两个方向按钮的最大间隔(4表示间隔4个按钮,如果超过则用省略号表示)
/// </summary>
public static readonly DependencyProperty MaxPageIntervalProperty = DependencyProperty.Register(
"MaxPageInterval", typeof(int), typeof(Pagination), new PropertyMetadata(3, (o, args) =>
{
if (o is Pagination pagination)
{
pagination.Update();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
help="directory stores images")
parser.add_argument('-f', action='store', dest='file',
help="image to extract file")
args = parser.parse_args()
if not args.file:
extract(folder=args.directory, file_name=None)
else:
extract(folder=args.directory, file_name=args.file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
selector: '[hTranslate]'
})
export class TranslateDirective implements OnInit {
@Input('hTranslate')
input: string | undefined;
constructor(private readonly elementRef: ElementRef<HTMLElement>, private readonly translateService: TranslateService) { }
ngOnInit(): void {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def memcached_status(request):
return view(request)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param subnets_ips: the ip that will take the router for each network it is going to connect to
format: {network_name => new_router_ip, ...}
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::vector<std::array<int, 3>> indices;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
found=0
seqid=record.id
#print record.seq
if seqid in idlist :
#write to file
#print 'found'
if len(record.seq)>max_len:
max_len_filter=max_len_filter+1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Pipe( {
name: 'shorten'
} )
/**
* Returns <len> number of right most characters.
*
* @param len Optional length, default is 8.
*/
export class ShortenPipe implements PipeTransform{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Slurp two files
jq --sort-keys --slurp --raw-output \
'.[0] == .[1]' \
data/person.json \
<(${Y2J} data/person.yaml) \
| grep -q true
exit
# vim:ai:sw=4:ts=4:et:syntax=sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert False, "Couldn't get the program to terminate"
def parse(input_: str) -> List[Instruction]:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def lazyproperty(fn):
attr_name = '__' + fn.__name__
@property
def _lazyprop(self):
if not hasattr(self, attr_name):
setattr(self, attr_name, fn(self))
return getattr(self, attr_name)
return _lazyprop
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$solrDocument = new Apache_Solr_Document();
$solrDocument = $OpenContextItem->makeSolrDocument($solrDocument);
return $solrDocument;
}
}//end function
public function mediaTestAction(){
$this->_helper->viewRenderer->setNoRender();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Normal Counting sort without any associated array to keep track of
Time Complexity = O(n)
Space Complexity = O(n + k)
Auxilary Space = O(k)
'''
def countingSort(a):
b = [0]*(max(a) + 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.layoutIfNeeded()
self.paddingView.layoutIfNeeded()
self.imageImageView?.layoutIfNeeded()
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mock_args = mock.MagicMock()
expected_fields = ('name', 'endpoint', 'public_endpoint', 'username', 'password')
ret = WebProcessingServiceForm(mock_args)
self.assertEqual(WebProcessingService, ret.Meta.model)
self.assertEqual(expected_fields, ret.Meta.fields)
self.assertTrue('password' in ret.Meta.widgets)
self.assertEqual(self.expected_labels, ret.Meta.labels)
def test_PersistentStoreServiceForm(self):
mock_args = mock.MagicMock()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
source /opt/client/bigdata_env
set spark.sql.tungsten.enabled=false
FILES="../../data/webinar_streaming.sql"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return (
<div className={styles.loading}>
<div>
<span></span>
</div>
<div>
<span></span>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// for the preferred input type).
/// </summary>
public CefNet.DevTools.Protocol.Input.GestureSourceType? GestureSourceType { get; set; }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Assert.AreEqual(1, result.Count);
Assert.AreEqual(HierarchyPath.Create("a"), result.First());
}
[Test]
public void HierarchyDictionary_Values_returns_only_values()
{
// ARRANGE
var a = new Mock<IHierarchyNode<string, int>>();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Build Souffle"
sudo apt-add-repository https://dl.bintray.com/souffle-lang/deb-unstable
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Confirm that task has not started yet
assert 0 == len(scheduler._schedule_executions[schedule.id].task_processes)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
horizontal: 'center',
}}
transformOrigin={{
vertical: 'top',
horizontal: 'left',
}}
>
<ListItem
button
onClick={(e) => {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if feature_types[feature_index] == 'continuous':
self.weights[feature_index] = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Add the script into our docker container and then run it
docker exec -it docker_lrs /bin/setup-admin.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
base = 'Adam'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Google API Key
g_key = "<KEY>"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
constructor(rootGeo: LcEntryGeometry, mediaId: string, labelIterationId) {
super(rootGeo.id, rootGeo, mediaId, labelIterationId, 0, null, [], null, true, [], '');
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_re_r1 = re.compile(_vowel + _non_vowel)
# Endings.
_re_perfective_gerund = re.compile(
r"(((?P<ignore>[ая])(в|вши|вшись))|(ив|ивши|ившись|ыв|ывши|ывшись))$"
)
_re_adjective = re.compile(
r"(ее|ие|ые|ое|ими|ыми|ей|ий|ый|ой|ем|им|ым|ом|его|ого|ему|ому|их|ых|"
r"ую|юю|ая|яя|ою|ею)$"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@overwrite
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for par in "${firstarray[@]}"
do
if [[ "$par" == *.csv ]]
then
echo "Skipping"
continue
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.urls import re_path
from .import views
urlpatterns = [
re_path(r'^query/$',views.queryfunc),
# re_path(r'^weather/([a-z]+)/(\d{4})/$',views.routerfunc),
re_path(r'^weather/(?P<city>[a-z]+)/(?P<year>\d{4})/$',views.routerfunc1),
re_path(r'^form/$',views.formfunc),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
net.sf.jasperreports.chartthemes.simple.BlockFrameWrapper
| ise-uiuc/Magicoder-OSS-Instruct-75K |
gjelderDagerBrukt: boolean;
uttak: Stønadskontouttak[];
}
export const getUttaksstatus = (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif centrality_col_par=="communicability_centrality":
centrality_col = nx.communicability_centrality(dGcol)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.