seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
m_setupFailedHasBeenSet = true;
}
if(jsonValue.ValueExists("ShuttingDown"))
{
m_shuttingDown = jsonValue.GetInteger("ShuttingDown");
m_shuttingDownHasBeenSet = true;
}
if(jsonValue.ValueExists("StartFailed"))
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@endsection
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export class ReportExportServiceProvider {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_cordinates(self):
return self.head
def place_snake(self):
x = head[0]
y = head[1]
prev = [0.0]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'leadboard':self.leadboard})
def post(self, request):
self.model = request.POST['model']
self.season = request.POST['season']
self.results = get_results(self.season)
return render(request, self.template_name, {'results' :self.resu... | ise-uiuc/Magicoder-OSS-Instruct-75K |
name = item["Name"]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tooltip={StringResources.vsc.commandsTreeViewProvider.createProjectDescription}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
conn._p_jar.close()
registry = ConnectionRegistry()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo"<ul><li><a href='administrador.php'>Volver</a> </li></ul>";
}
echo'<td>'.$fila['idAdmin'].'</td>';
}
?>
<form method="post" action="updateadministrador.php">
<ul>
<li><label for="idAdmin">idAdmin</li></br>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use astroevent::AstroEventRequest;
pub use astroposition::AstroPositionRequest;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function testDoNotConfigureProxyIfNoEnvironmentVarsAreSet()
{
$this->runMiddleware();
$this->assertEmpty(
Environment::getEnv('http_proxy'),
'Proxy information is not set if no outbound proxy is configured'
);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class TelegramConfig(AppConfig):
name = 'telegram'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
epm = irb.EvaluationPackMessage()
epm.ParseFromString(evaluationpack)
sc = storage_client.StorageClient()
return_string = ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
admin.site.register(Room)
admin.site.register(Topic)
admin.site.register(Message)
admin.site.register(User)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public String getBmessage() {
return bmessage;
}
public String getBrequest() {
return brequest;
}
public String getBpayload() {
return bpayload;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def prepare_dir(dirname):
if not os.path.isdir(dirname):
os.makedirs(dirname)
def prepare_dir_for(filename):
dirname = os.path.dirname(filename)
prepare_dir(dirname)
def get_file_size(path):
return os.stat(path).st_size
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.into_iter()
.map(|(mod_path, path)| {
File::open(path)
.map(|file| (mod_path, file))
.map_err(|e| FileError::new(mod_path, e))
})
.collect::<Result<HashMap<&'static str, File>, FileError>>()?;
let path = Pa... | ise-uiuc/Magicoder-OSS-Instruct-75K |
conn.close()
return [
TSubEntry(id=subscription_id, subscriber_id=subscriber_id,
channel_name=channel_name, created_at=created_at)
for (subscription_id, subscriber_id, created_at) in rows
]
def get_channels_subscribed_by(self, subscriber_id):
conn = psycopg2.connect("dbnam... | ise-uiuc/Magicoder-OSS-Instruct-75K |
args = parser.parse_args()
ROOT = 'shapenet/data'
unpackbits = True
res = args.res
min = -0.5
max = 0.5
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ensure_cmake () {
echo "Make sure your cmake version is above 3.13.4:"
echo "your version is: `cmake --version`"
echo
echo "I will download and use the latest sable cmake,"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut table = Table::new("{:<} {:<}");
table.add_row(Row::new().with_cell("NAME").with_cell("AGE"));
for dev in device_array {
let name = dev["metadata"]["name"].as_str();
let creation = dev["metadata"]["creationTimestamp"].as_str();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export class AppService {
constructor(private http: HttpClient) { }
public execute(language: string, code: string, input: string) {
console.log('code:' + code);
console.log('input:' + input);
return this.http.post(`http://localhost:4000/execute/${language}`, {code, input})
.map((res: any) => res... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.x_test = self.x_test.astype('float32') / self.b
#x_pred = x_pred.astype('float32') / c
self.x_train = self.x_train.reshape((self.x_train.shape[0],) + original_img_size)
x_test = x_test.reshape((x_test.shape[0],) + original_img_size)
#x_pred = x_pred.reshape((x_pred.shape[0],... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def _thread_body(self):
seconds = 0
while True:
if seconds > self.HEARTBEAT_INTERVAL_SECONDS or self._shutdown:
self.write()
seconds = 0
if self._shutdown:
break
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# TODO: no need for headline field...
# Strip HTML...
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(tree)
assert tree[2] == 4
assert tree[3] == synth3.id
synth4 = supercollider.Synth(server, "sine", { "gain": -96 }, target=synth1, action=supercollider.ADD_BEFORE)
tree = server.query_tree(group)
print(tree)
assert tree[2] == 5
assert tree[9] == synth4.id
group.free()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else {
if (arr[mid] < target && arr[e] >= target) s = mid+1 ;
else e = mid-1 ;
}
}
return -1 ;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// parameters yielding an instruction.
///
/// ```no_run
/// #[derive(Serialize, Deserialize)]
/// pub struct PdaBuilder {
/// from_public_key: PublicKey,
/// to_public_key: PublicKey,
/// base: PublicKey,
/// space: u64,
/// owner: PublicKey,
/// seed: String,
/// lamports: u64,
/// }
#[de... | ise-uiuc/Magicoder-OSS-Instruct-75K |
await el.findByText("I love socks");
await el.findByText("Jim");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
userPass() {
echo `grep "$1" $2 | awk -F '\t' '{ print $3 }'`
}
### Start Installation ###
echo $$ > $PID_FILE
sleep 5
### Check for configuration files ###
if [ ! -f $NNFILE ] || [ ! -f $DNFILE ]; then
echo "---- [ERROR] Missing configuration files ----"
rm $PID_FILE; exit
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def numOfMinutes(self, n: int, headID: int, manager: List[int], informTime: List[int]) -> int:
children = [[] for i in range(n)]
for i, m in enumerate(manager):
if m >= 0: children[m].append(i)
def dfs(value):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub enum ColumnSpecification {
All,
Some(Vec<String>),
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
def setUp(self):
self.epp = AssignNextStepUDF(self.default_argv
+['--step_udf','step_udf1']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
reconnectThread = new ReconnectThread(server, point.getStartPeriod(), point.getEndPeriod());
reconnectThread.start();
Screen newScr = new DisconnectedScreen(
new MultiplayerScreen(new TitleScreen()),
new LiteralText("§8[§6CatTeleport§8]"),
new LiteralText("startReconnect"));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Exactly one of the 'extension_id' and 'key' arguments can be used.
Exceptions:
InvalidExtensionId: if 'extension_id' is used and is not a valid
extension id.
InvalidExtensionKey: if 'key' is used and is not a valid extensions
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if args.img:
for filename in path:
i = image_extractor(i, filename, Front, Front_left, Side_left, Front_right, Side_right)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Player activePlayer = GameManager.Instance.ActivePlayer;
bool win = GameManager.Instance.LastLevelWin;
bool stillLevel = GameManager.Instance.StillLevel();
bool nextDifficulty = GameManager.Instance.NextDifficulty();
string nextLevel = string.Empty;
SetLobbyCounter();
if (win)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
@stop
| ise-uiuc/Magicoder-OSS-Instruct-75K |
actionArgs = entry.actionArgs
actionKwargs = entry.actionKwargs
if newMtime != entry.lastMtime:
self.updateEntry( entry )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class SetOperator(UpdateOperator):
"""
Support for SET
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.at(1)
.text(),
).toBe('123');
});
it('should set value color', () => {
const wrapper = mountWithTheme(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/**
* 获取概况
* 后台商城消息 编辑器中的图片只记录上传图片容量 删除相关数据时无法标记图片为已删除状态
| ise-uiuc/Magicoder-OSS-Instruct-75K |
QGraphicsView,
QGraphicsTextItem,
QGraphicsItem,
QGraphicsObject,
QGraphicsPixmapItem,
QGraphicsProxyWidget,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert hasattr(network, "_shared_layers") and network._shared_layers is not None
del network
def test_initialisation_multiple_heads():
"""
Test network initialisation with multiple action subspaces i.e. multiple heads.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
srv.SendMsg(origin, "Code Point: U+" + cpline.substr(0, start));
srv.SendMsg(origin, "Name: " + cpline.substr(start+1, (end - start)));
srv.SendMsg(origin, "UTF-8: " + ToUtf8Text(cp));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# self.trainViewList = [10, 11, 12, 13, 14, 15, 19, 23, 27, 31, 36, 37, 38, 39, 40, 42, 44, 46, 48, 51]
#
# self.interpolate_novel_view_num = 6
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
{
'env-title': 'atari-pong',
'score': 3.11,
},
{
'env-title': 'atari-beam-rider',
'score': 1959.22,
},
{
'env-title': 'atari-breakout',
'score': 82.94,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extrapolator.Inform(0, 200);
EXPECT_EQ(*extrapolator.Extrapolate(1), 200 + k48000HzDualPCMByteDuration);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* "no". When the value is "detect" the system waits for SoC detection to
* finish before returning result.
*
* \retval true - QCA1530 is available.
* \retval false - QCA1530 is not available.
*/
static bool is_qca1530(void)
{
static const char qca1530_property_name[] = "sys.qca1530";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
st.push(i); // push the index
if (!st.empty())
curLength = i - st.top();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
""" Runs the steps described in the config
"""
self.prepare()
self.input()
log.warning("TODO -- load and output")
# self.load()
# self.output()
log.info("conversion complete")
def prepare(self):
""" analyzes the config and creates internal wor... | ise-uiuc/Magicoder-OSS-Instruct-75K |
regex = '^tables/C23002/$',
view = RedirectView.as_view(url=reverse_lazy('table_detail',kwargs={'table':'C23002A'})),
kwargs = {},
name = 'redirect_C23002',
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise ValueError(organism_name + ' not found')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
unsigned __int16 ne_segtab;
unsigned __int16 ne_rsrctab;
unsigned __int16 ne_restab;
unsigned __int16 ne_modtab;
unsigned __int16 ne_imptab;
int ne_nrestab;
unsigned __int16 ne_cmovent;
unsigned __int16 ne_align;
unsigned __int16 ne_cres;
c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut res = 0;
'outer: for x in &arr1 {
for y in &arr2 {
if (x-y).abs() <= d {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
associatedtype Wrapped
func unwrap() throws -> Wrapped
}
struct ValueIsMissingError: Swift.Error {
var localizedDescription: String {
NSLocalizedString("Data is missing", comment: "")
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
thread = threading.Thread(target=self.recv, args=[])
thread.start()
def onSetTempChanged(self, value_as_double):
oldPower = self.curPower
if self.curTemp > value_as_double:
self.curPower = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TOTAL_COUNT=$(($PASS_COUNT + $FAIL_COUNT))
echo "$TOTAL_FILES JSON files validated, $TOTAL_COUNT problems detected"
exit $TOTAL_COUNT | ise-uiuc/Magicoder-OSS-Instruct-75K |
return (s1 == s1[ : :-1] or s2 == s2[ : :-1])
# Towards right
a_pointer += 1
# Towards left
| ise-uiuc/Magicoder-OSS-Instruct-75K |
index_min = np.argmax(distances)
print(distances)
top_triangle = (extreme_points[index_min])
print(top_triangle)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class DropDown:
def __init__(self, color_menu, color_option, x: int, y: int, width: int, height: int,
font_name: str, font_size: int, main: str, options: List[str], default: Optional[str] = None):
self._init_pygame()
self._init_openGL()
self.color_menu = color_menu
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
*
* Project Purpose: This project is intended to be a proof of concept concerning certain features of Object Oriented Polymorphism.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class CategoryModel(models.Model):
name = models.CharField(max_length=255)
slug = models.SlugField(unique=True, blank=True, null=True, editable=False)
def __str__(self):
return self.name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(key.caseInsensitiveCompare(item) == ComparisonResult.orderedSame) {
return item
}
}
}
return "Princeton University"
}
static func Year(text: String) -> String {
let myString = text as NSString
let regex1: NSRegul... | ise-uiuc/Magicoder-OSS-Instruct-75K |
outprefix = os.path.dirname(snakemake.output[0]) + '/'
shell(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return v
lower = v.lower()
if lower in ("yes", "true", "t", "1"):
return True
elif lower in ("no", "false", "n", "f", "0"):
return False
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
operations = [
migrations.RemoveField(
model_name='productattributevalue',
name='name',
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<?php if (count($tags)): ?>
<div class="ui header unimportant-text">
Tags
</div>
<?php foreach ($tags as $tag): ?>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# in here we can add all the predicates we are interested in.. Of course, we also need to define how to translate Json messages to predicates.
# function to abstract a dictionary (obtained from Json message) into a list of predicates
def abstract_message(message):
if 'd1' in message and 'd2' in message and 'd3' in... | ise-uiuc/Magicoder-OSS-Instruct-75K |
dependencies = [
('places', '0085_placetype_name_plural'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public partial interface ID03_SubContinentCollDal
{
/// <summary>
/// Loads a D03_SubContinentColl collection from the database.
/// </summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//const Socket = io(/*'http://localhost:3030'*/);
export default function(Socket) {
bootstrap(hp, [Title, Socket]);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
r=0.08 # risk-free rate
rho=0.75 # correlation between 2
sigma1=0.15 # volatility for stock 1
sigma2=0.20 # volatility for stock 1
nSteps=100. # number of steps
nSimulation=1000 # number of simulations
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dp[i][j] = cost[i][j] + MINCOST
return min(dp[n-1])
if __name__ == "__main__":
cost = [[1, 5, 7, 2, 1, 4],
[5, 8, 4, 3, 6, 1],
[3, 2, 9, 7, 2, 3],
[1, 2, 4, 9, 1, 7]]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$data['title'] = 'Laporan Pemesanan Masuk Bulan '.month_name_ind($num_month);
$data['booking'] = $this->m_hot_report_booking->report_monthly($month);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
objective = LpObjective(name='minimize_cpm', expression={x: 998}, constant=8, sense=Maximize)
rhs = LpExpression('rhs', {x: 1})
lhs = LpExpression('lhs', {}, -2)
constraint = LpConstraint(rhs, 'leq', lhs, 'constraint', True, 100)
problem.add_constraint(constraint)
problem... | ise-uiuc/Magicoder-OSS-Instruct-75K |
performer = Performer.objects.get_subclass(
pk=kwargs['pk'],
contact__user_object=self.request.user)
except:
raise Http404
if performer.__class__.__name__ == "Troupe":
redirect = reverse('troupe-update',
u... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class Root
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
func removeToScroll() {
time?.invalidate()
time = nil
}
@objc fileprivate func timeToScroll(){
var x = scrollView.contentOffset.x
x += scrollView.bounds.width
scrollView.setContentOffset(CGPoint(x: x, y: 0), animated: true)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if( !params[BASETEXTURE]->IsDefined() )
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
this.isLevel = isLevel;
}
public void TogglePanel()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
img_feat_iter = pad_img_feat(img_feat_x, self.opt.img_feat_pad_size)
boxes = pad_img_feat(img_feats['bbox'], self.opt.img_feat_pad_size)
# Process question
ques_ix_iter = proc_ques(ques, self.token_to_ix, self.opt.max_token)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.streams = goodStreams
def sync_streams(self):
# sync the streams one at a time to minimize fragmentation (NOTE: Eventually this will be pull-based, so there will be no fragmentation)
for s in self.streams:
# use rsync to perform the copy
syncCmd = ['rsync', ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
train(config) | ise-uiuc/Magicoder-OSS-Instruct-75K |
* @method void setEsVersion(string $EsVersion) Set Target ES version. Valid values: 6.4.3, 6.8.2, 7.5.1
* @method boolean getCheckOnly() Obtain Whether to check for upgrade only. Default value: false
* @method void setCheckOnly(boolean $CheckOnly) Set Whether to check for upgrade only. Default value: false
* @metho... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public String getTagName() {
return tagName;
}
public void setTagName(String tagName) {
this.tagName = tagName;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data = []
for i in fr:
line = i.strip()
if not line:
continue
tmp = map(lambda x: x.split('/'), line.split())
data.append(tmp)
fr.close()
self.segger.train(data)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int deleteByPrimaryKey(String a0100);
int insert(Usra71 record);
int insertSelective(Usra71 record);
List<Usra71> selectByExample(Usra71Example example);
Usra71 selectByPrimaryKey(String a0100);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Default is to use discrete binning, so `discrete == True`.
partitions : positive int, optional.
Denotes the number of partitions to split one's data into for binning.
Only used if `discrete is True`. Default == 10.
n_estimators : positive int, optional.
Determines the number of t... | ise-uiuc/Magicoder-OSS-Instruct-75K |
aux_id = np.concatenate([aux_id_var[:], np_rwis_aux_id])
lat = np.concatenate([lat_var[:], np_rwis_lat])
mid_lat = np.concatenate([mid_pt_lat_var[:], np_rwis_mid_pt_lat])
lon = np.concatenate([lon_var[:], np_rwis_lon])
mid_lon = np.concatenate([mid_pt_lon_var[:], np_rwis_mid_pt_lon])
elev = np.c... | ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut format_str: &'a str = matches.value_of("format").unwrap();
if "choose" == format_str {
format_str = ["dash", "mp4"][Select::new()
.with_prompt("选择视频格式")
.default(0)
.items(&["dash (高清)", "mp4 (低清)"])
.interact()
.unwrap()];
}
fo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Console.WriteLine(" ");
}
else if(sexo.ToLower() == "f")
{
totM += 1;
Console.WriteLine("Nome: {0}\nSexo: Femenino", nome);
Console.WriteLine(" ");
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use std::path::PathBuf;
fn main() -> anyhow::Result<()> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
entry_points={'console_scripts': ['gtkpass=gtkpass.main:main']},
install_requires=[])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return words
def youtube_analysis():
data = get_data()
wnl = WordNetLemmatizer()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Date: 1/07/2019
* Time: 12:30
*/
namespace App\Util;
use App\Provider\ProviderFactory;
use Doctrine\Common\Persistence\ObjectRepository;
class EntityHelper
{
/**
* @var ProviderFactory
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from code.game import *
if __name__ == '__main__':
Game("level01").main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</li>
<li class="list-group-item"><span class="glyphicon glyphicon-tasks"></span> Control multiple computers
at once.
</li>
<li class="list-group-item"><span class="glyphicon glyphicon-thumbs-down"></span> No 'Freemium'
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
for (int i = 0; i < max(b.length(), x.b.length()); i++) {
int p = '0', q = '0';
if (i < b.length()) p = b[i];
if (i < x.b.length()) q = x.b[i];
if (p != q)
return p < q ? 1 : -1;
}
}
return ... | 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.