seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
{
template <typename FormatContext> auto format(const ae::virus::Name& ts, FormatContext& ctx) { return fmt::formatter<std::string_view>::format(static_cast<std::string_view>(ts), ctx); }
};
// ----------------------------------------------------------------------
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return 0
dp = [0] * size
for i in range(size):
dp[i] = triangle[size - 1][i]
for i in range(size - 2, - 1, -1):
for j in range(i + 1):
dp[j] = min(dp[j], dp[j + 1]) + triangle[i][j]
return dp[0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
protected OceanTween currentTween;
protected float startTime;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mini_dss._get_blob('/blobs/foo', {'content-type': 'application/json'})
with self.assertRaises(self.SpecialError):
mini_dss.get_bundle(uuid, version, 'aws')
with self.assertRaises(self.SpecialError):
mini_dss.get_file(uuid, version, 'aws')
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if i % 100 == 0:
print (i//100)
participants = []
# participants.append(WaPlayer1())
# participants.append(Adam())
# participants.append(Rock())
# participants.append(Paper())
# participants.append(BaseStrategy())
# participants.append(Rand())
participants.append(Player2())
participants.append(Player3())
p... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Checking if the workload is not Quarantined already
if instance_labels is not None and instance_labels.get('app') != 'Quarantine':
data = {'workloads':
[
{
'href': instan... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'attribute_types': make_attribute_types(),
})
state_type_id = response.id
yield state_type_id
@pytest.fixture(scope='session')
def leaf_type(request, project):
import tator
host = request.config.option.host
token = request.config.option.token
tator_api = tator.get_api(host, token)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'Environment :: Web Environment',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif args["type"] == "pc":
headers = {
"pid": str(os.getpid()),
"Content-Disposition": f'inline; filename="pc-{Path(args["ace1"]).stem}-vs-{Path(args["ace2"]).stem}.{image_type}"',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# proj command
proj () {
current=$(cut -d/ -f5 <<< "${PWD}")
if [ $# -eq 0 ]; then
cd $PROJECTS_DIR
elif [ $1 == 'new' ] && [ $2 ]; then
firstChar=$(echo $2 | head -c 1)
if [ $firstChar == '-' ] || [ $firstChar == '_' ]; then
mkdir "$PROJECTS_DIR$current$2" && proj "$current$2"
else
| ise-uiuc/Magicoder-OSS-Instruct-75K |
weights[:, :, i:i+cfg.NUMBER_MSK_CHANNELS] = weights_channel
i += cfg.NUMBER_MSK_CHANNELS
return weights | ise-uiuc/Magicoder-OSS-Instruct-75K |
public enum SolidityVisibility { Public, Internal};
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sets.push(t)
return sets
def values_consistent(a, b, c):
return a == b == c or a != b != c
def check_set(c1, c2, c3):
return (values_consistent(c1.color, c2.color, c3.color) and
values_consistent(c1.suit, c2.suit, c3.suit) and
values_consistent(c1.fill, c2.fill, c3.fill) and
| ise-uiuc/Magicoder-OSS-Instruct-75K |
remote_node_id,
active,
private,
capacity,
local_balance,
remote_balance,
unsettled_balance,
local_channel_settings:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import tensorflow as tf
import numpy as np
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>server/db/repositories/index.ts
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public final class ACSCPreferenceKeys {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#######################################
#######################################
# BOCHUM sample #
#######################################
conn.calculate_connectivity(table=global_vars._RES_BOCHUM_TABLE_,
fd_files=global_vars.bochum_fd_files,
t... | ise-uiuc/Magicoder-OSS-Instruct-75K |
jewish_resources = [
Resource("Feed Me Now", "restaurant", "123 1st Street, New York, NY - 555-5555", 123.123, -123.123, "stub"),
Resource("Daven Now", "shul", "234 2nd Street, New York, NY - 444-4444", 44.55, 44.55, "stub 2"),
Resource("Buy Now", "store", "345 3rd Street, New York, NY - 666-6666", 23.8, 15, "st... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(
set(res[0].keys()),
{"id", "name", "office_sought"},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f'\n\nTempo de execução: {time() - inicial}')
print(f'\n\nNumero maximo de ladrões pegos: {pegos}\n\n')
if __name__=='__main__':
distancia = 2
individuos = [
'P', 'L', 'L', 'P', 'L',
'P', 'L', 'L', 'P', 'L',
'P', 'L', 'L', 'P', 'L',
'P', 'L', 'L', 'P', 'L',
]
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* Image constructor.
* @param string $url
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--db="redis" \
--port=$PORT \
--min-reward=2 \
--out-pkl=./db.dump.out.pkl
echo "kill reids server"
killall -9 redis-server
sleep 3
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* {@link #withActionConfigurationProperties(java.util.Collection)} if you want to override the existing values.
* </p>
*
* @param actionConfigurationProperties
* The configuration properties for the action type.
* @return Returns a reference to this object so that method calls can ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
super.prepare()
self.addSubview(self.colorView)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def quantize_weight(self, x, k, clip_value):
if k == 32:
return x
x = normalization_on_weights(x, clip_value)
x = (x + 1.0) / 2.0
x = quantization(x, k)
x = x * 2.0 - 1.0
x = x * clip_value
self.x = x
if self.x.requires_grad:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void dispatchCommand(String[] tokens);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import model.dao.DaoFactory;
import model.dao.SellerDao;
import model.entities.Seller;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (int i = 0; i < steps; i++)
{
c.cpu_step();
//endian...
if (c.registers.pc == 0x017E)
break;
}
if (c.registers.pc != 0x017E)
return false;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django import forms
from django.db.models.base import ModelBase
from phonenumber_field.formfields import PhoneNumberField
from . import models
| ise-uiuc/Magicoder-OSS-Instruct-75K |
jobInfoFile << PrettyLine;
jobInfoFile << " Species Information\n";
jobInfoFile << PrettyLine;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// frida
"/usr/sbin/frida-server",
// MobileSubstrate
"/Library/MobileSubstrate/CydiaSubstrate.dylib",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
y = self.last_bn(self.last_conv1(x))
y = self.last_conv2(x)
if len(devals) > 0:
for j, decode in enumerate(devals):
for _ in range(len(devals) - 1 - j):
decode = self.up_sampling(decode)
devals[j] = decode
combine_x = to... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# in_channels = ds_meta.grid_planes
# for b in range(num_blocks):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
response = self.client.post(url = "/fiber_ms_lt/home",name="getHomeData",data=json.dumps(home_data), headers=self.headers)
if (response.status_code != 200):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert norm_doi(doi) == '10.5334/jors.161'
assert norm_doi(norm_doi(doi)) == '10.5334/jors.161'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub order_id: String,
#[serde(with = "naive_datetime_from_string")]
pub created_at: NaiveDateTime,
pub liquidity: String,
#[serde(with = "string_to_decimal")]
pub fee: Decimal,
pub settled: bool,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# ### Calculate misclassification rate
# In[586]:
print ("Misclassification is " + str(misclassificationRate(yTest, yPrediction)))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export AIT_ANSIBLE_PLAYBOOK="$(pwd)/playbooks/monitoring/docs_parity.yml"
# Setup VM
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# PRIVATE METHODS ////////////////////////////////////////////////////
def _verifyConfiguration(self):
ModuleElasticityImplicit.verifyConfiguration(self, self.mesh())
return
# FACTORIES ////////////////////////////////////////////////////////////
def integrator():
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Args:
view: The view to listen for widget creation in.
"""
if self._listening and view.settings().get('is_widget'):
self._listening = False
self.cb(view)
@classmethod
def instance(cls):
if cls._instance:
return cls._instance
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import Col from 'react-bootstrap/Col';
import Container from 'react-bootstrap/Container';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if 0 == len(nodes):
print('Time Zone not found: ' + tzname)
return 2
ways = {}
for e in parsed['elements']:
if e['type'] != 'way':
continue
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'Content-Length': '69',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': 'ASPSESSIONIDQABSAQDS=EBCFBPHBMKFIIBBNLHJMCHKJ; XINHAI_Admin_Id=; XINHAI_Admin_Password=; XINHAI_Admin_Right=; XINHAI%... | ise-uiuc/Magicoder-OSS-Instruct-75K |
done
for((i=0;i<=5;i++))
do
echo $i
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_search_query_firstname():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
USAGE
exit 1
}
error_exit() {
${2+:} false && echo "${0##*/}: $2" 1>&2
exit $1
}
# === Detect home directory of this app. and define more =============
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sample_size_y = 14
n_trials = 50000
aucs = numpy.empty(n_trials)
variances = numpy.empty(n_trials)
numpy.random.seed(1234235)
labels = numpy.concatenate([numpy.ones(sample_size_x), numpy.zeros(sample_size_y)])
for trial in range(n_trials):
scores = num... | ise-uiuc/Magicoder-OSS-Instruct-75K |
init(json: JSON) {
body = json["body"].stringValue
imageSource = json["image_source"].stringValue
title = json["title"].stringValue
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Threading.Tasks;
namespace Edelstein.Protocol.Util.Repositories
{
public interface ILocalRepositoryWriter<
TKey,
TEntry
> : IRepositoryWriter<TKey, TEntry>
where TEntry : class, IRepositoryEntry<TKey>
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ScoreProjectSerializer(serializers.ModelSerializer):
class Meta:
model = ScoreProject
| ise-uiuc/Magicoder-OSS-Instruct-75K |
input_bdfs - numpy read-only float arrays of one element giving the
missing-data value for the corresponding inputs array
'''
# Create masks of values that are undefined and that are defined
bad_mask = ( inputs[0] == input_bdfs[0] )
good_mask = numpy.logical_not(bad_mask)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
editorialCommunityId: new EditorialCommunityId('b560187e-f2fb-4ff9-a861-a204f3fc0fb0'),
},
{
id: generate(),
type: 'UserUnfollowedEditorialCommunity',
date: new Date(),
userId: aUserId,
editorialCommunityId: new EditorialCommunityId('b560187e-f2fb-4ff9-a861-a2... | ise-uiuc/Magicoder-OSS-Instruct-75K |
aLow = stack[top--];
int p = InternalPartition(aVector, aLow, aHigh);
if (p - 1 > aLow)
{
stack[++top] = aLow;
stack[++top] = p - 1;
}
if (p + 1 < aHigh)
{
stack[++top] = p + 1;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from mmif import Mmif
from mmif.vocabulary import DocumentTypes
from tests.mmif_examples import *
class TestMMIFVersionCompatibility(unittest.TestCase):
def setUp(self) -> None:
self.major = 0
self.minor = 4
self.patch = 3
| ise-uiuc/Magicoder-OSS-Instruct-75K |
['A', 'B'],
['A', 'C'],
['B', 'C'],
['B', 'D'],
['C', 'E'],
['C', 'F'],
['E', 'D'],
['F', 'E'],
['G', 'A'],
['G', 'F'],
]
CASES = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#--------Include modules---------------
from copy import copy
import rospy
from visualization_msgs.msg import Marker
from geometry_msgs.msg import Point
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
let node3: NodeModel = {
id: 'node3', width: 100, height: 100, offsetX: 500, offsetY: 100, annotations: [{ content: 'Node3' }]
};
function setTooltipTemplate(): string | HTMLElement {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sudo service nginx stop || true
git config --global core.editor 'emacs'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from flask_marshmallow.schema import Schema
from flask_marshmallow.fields import fields
class UserSchema(Schema):
email = fields.Email(required=True)
name = fields.String()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
ExecuteRequestError {
source: reqwest::Error,
},
ResponseBytesError {
source: reqwest::Error,
},
DeserializeError {
source: serde_json::Error,
body: bytes::Bytes,
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Microsoft.DotNet.Build.Tasks.Feed
{
public class AzureDevOpsNugetFeedAssetPublisher : IAssetPublisher, IDisposable
{
private readonly TaskLoggingHelper _log;
private readonly string _targetUrl;
private readonly string _accessToken;
private readonly PublishArtifactsInMan... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"spawns": spawns,
"towers": towers
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Models available articles
"""
name = models.CharField(max_length=200)
serial_id = models.CharField(max_length=200)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const onChange = jest.fn()
const doubleStack = createDoubleStackMock<DefaultWebNavigatorItem<BeagleViewType>>({
hasSingleStack: () => !!hasSingleStack,
hasSingleItem: () => !!hasSingleItem,
getTopItem: () => topItem,
// @ts-ignore
popUntil: jest.fn(() => shouldPopUntil ? [{}] : []),
})
const... | ise-uiuc/Magicoder-OSS-Instruct-75K |
import _thread
HOST = "10.0.1.10" # Endereco IP do Servidor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
else {
sendChange()
}
}
func sendChange() {
objectWillChange.send()
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
MOCK_SECRET = "verysecret"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@IBOutlet weak var tipControl: UISegmentedControl!
| ise-uiuc/Magicoder-OSS-Instruct-75K |
**Request**
- **ProjectId** (str) - (Config) 项目ID,不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
- **SigContent** (str) - (Required) 新的短信签名内容;长度为2-12个字符, 可包含中文、数字和符号;无需填写【】或[],系统会自动添加
- **SigId** (str) - (Required) 签名ID,支持以数组的方式,举例,以SigId... | ise-uiuc/Magicoder-OSS-Instruct-75K |
use futures::{Future, Stream};
use paxos::{
BytesValue, Configuration, MultiPaxosBuilder, ProposalSender, Register, ReplicatedState,
UdpServer,
};
use std::borrow::Borrow;
use std::env::args;
use std::net::Ipv4Addr;
use std::net::SocketAddr;
use std::str;
use tokio::net::TcpListener;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
credhub get -n doofenschmirtz | grep wogga
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from core.config import cfg
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#define CVUI_IMPLEMENTATION
#include "cvui.h"
#define WINDOW_NAME "CVUI Canny Edge"
int main(int argc, const char *argv[])
{
cv::Mat lena = cv::imread("lena.jpg");
cv::Mat frame = lena.clone();
int low_threshold = 50, high_threshold = 150;
bool use_canny = false;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return dataclass_getstate(self)
def __setstate__(self, state):
dataclass_setstate(self, state)
def set_name(self, full_name: str, peer_prefix: str) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from sqlalchemy import Column, Integer, String
from .base import Base
class User(Base):
'''User Table'''
__tablename__ = 'user'
id = Column(Integer, primary_key=True)
display_name = Column(String(100), nullable=True)
username = Column(String(300), nullable=False, index=True)
email = Column(Str... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sheet.cell(row=26, column=current_column).value = df_all1['send_time'].std(axis=0, skipna=True) if not isnan(
df_all1['send_time'].std(axis=0, skipna=True)) else 0
# df1_transposed.to_excel('test_stats_2.2.xlsx', engine='xlsxwriter')
output.write(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
file_list = os.listdir(base_path + gov + '/Annotations/')
for file in file_list:
total_images = total_images + 1
if file == '.DS_Store':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public void setmWidth(float width){
this.mWidth = width;
this.mHeight = mWidth/WIDTH_BY_HEIGHT_RATIO;
this.mStarIconSize = (int) (width/2);
}
public void setmValue(int mValue) {
this.mValue = mValue;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TLRegister.register(getUsers)
class getFullUser(TLFunction):
ID = 0xca30a5b1
def get_structure(self):
return ("id", InputUser()),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The expression on the RHS can satisfy the type variable T
# with either the type str or Union[List[str], str]. It should
# pick the simpler of the two.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public override init(){
super.init()
}
enum DomainCodingKeys: String, CodingKey {
case id
case domainName
case createTime
case expirationDate
case packId
case lockStatus
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const dispose = monaco.languages.registerCompletionItemProvider(
"substance",
{
provideCompletionItems: provideCompletion,
} as any
);
// HACK ^
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public boolean methodThree(){
int x = 12345;
int y = 54321;
return x > y;
}
public boolean methodFour(){
long x = 4835783423L;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
final DataBindingContext bindingContext = new DataBindingContext();
//
final IObservableValue observeTextUsageModelFileNameTextObserveWidget = WidgetProperties.text(SWT.Modify).observe(usageModelFileNameText);
final IObservableValue usageModelFileNameModelObserveValue = BeanProperties.va... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# Software distributed under the License is distributed on an AS IS basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Autowired
private FilterIgnorePropertiesConfig filterIgnorePropertiesConfig;
@Override
protected void configure(HttpSecurity http) throws Exception {
ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry registry =
http.formLogin().loginPage("/authen... | ise-uiuc/Magicoder-OSS-Instruct-75K |
add_hour = [(hour_in + 3) % 24, (hour_in - 3) % 24]
concat_hour = df_station[(df_station["Hour"].isin(add_hour))]
concat_df = concat_hour[(concat_hour["Weekday"].isin(weekends))]
#return pd.concat([df, pd.concat([concat_df, concat_df, concat_df.sample(frac=0.... | ise-uiuc/Magicoder-OSS-Instruct-75K |
date_str= "%s_%s_%s" % (date_obj.month,date_obj.day,date_obj.year)
Sessions = {}
SessionCnt = 0
for session in volumePath.glob('*_Results'):
SessionCnt+=1
print('Collecting Info for Session # {}, {}'.format(SessionCnt, session.name))
Files = {}
taskID = 1 #
try:
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn answer() -> u32 {
let mut n: BigInt = One::one();
for i in 2..100 {
n *= BigInt::from(i);
}
n.to_string().chars().map(|c| c.to_digit(10).unwrap()).sum()
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Whitespace was expected.
NoWhitespace {}
/// The string doesn't contain a command.
NoCommand {}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def variance(self, data):
self.result = variance(data)
return self.result
def stddev(self, data):
self.result = stddev(data)
return self.result
def zscore(self, data, x):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from itertools import product
from unittest import TestCase
from fewbit.fft import dct, idct
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"QCXAEWWDYIGTQMJKBTMGSJAJCKIODCAEXVEGYCUBEEGCMARPJIKNAROJHYHKKTKGKKRVVSVYADCJXGSXAR"
"KGOUSUSZGJGFIKJDKJUIRQVSAHSTBCVOWZJDCCBWNNCBIYTCNOUPEYACCEWZNGETBTDJWQIEWRYIQXOZKP"
"ULDPCINLDFFPNORJHOZBSSYPPYNZTLXBRFZGBECKTTNVIHYNKGBXTTIXIKRBGVAPNWBPFNCGWQMZHBAHBX"
"MFEPSWVBUDLYDIVLZFHXTQJWUNWQHSWSCYFXQQSVORFQGUQI... | ise-uiuc/Magicoder-OSS-Instruct-75K |
DEFAULT_ROLES = [ADMIN_ROLE, MEMBER_ROLE, GUEST_ROLE]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
None => {
return self.get_cookie_as_uint(cookie_name, default);
}
}
}
fn process_get_params(params_string: &str) -> BTreeMap<String, String> {
let mut params = BTreeMap::new();
for item in params_string.split('&') {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# V2: Disable the Setup Wizard in case someone wants to look at the Admin GUI
echo "Disable the Setup Wizard on the Admin GUI."
log "----Disable the Setup Wizard on the Admin GUI."
OUT=$(restCall "PUT" "/tm/sys/global-settings" '{"guiSetup": "disabled"}')
log ":: `echo $OUT | python -mjson.tool`"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
read -t 30 FPS
if [ "x$FPS" = "x" ]
then
FPS=8
fi
stty cbreak min 1
stty -echo
go run snake.go -w $(tput cols) -h $(tput lines) -f $FPS
stty echo
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
Error("wrong number of arguments for 'GET' command")
}
b"DEL" | b"del" | b"Del" => {
if v.len() != 2 {
return Error("wrong number of arguments for 'DEL' command");
}
... | 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.