seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
</div>
<form method="POST" action="<?php echo base_url(); ?>/Gamer/validReponse">
<p class="info last">Veuillez taper la clé de l'énigme: <input type="text" name="reponse"><input type="submit" name="soumettre"></p>
</form> | ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>RUN.sh
bundle exec thin start -R config.ru -p 8888 -t 6000
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void process(SimpleMessage message) {
int id = message.getInt("id");
String languageName = message.get("name").trim();
Language language = new Language(Integer.toString(id), languageName);
contest.addLanguage(language);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.Q = Net()
self.criterion = nn.CrossEntropyLoss()
self.optimizer = optim.SGD(Q.parameters(), lr=0.01)
self.action_space = list(range(self.pods_min, self.pods_max+1))
self.alpha = rl_config.alpha
self.gamma = rl_config.gamma
self.epsilon = rl_config.epsilon
# m4.xlarge => 4 vCPU => 0.2 USD / hour
# 1 vCPU => 0.05 USD / hour
# pod => 0.2 core => 0.01 USD
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import mica.archive.asp_l1
mica.archive.asp_l1.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public SubscriptionOrder15 addRltdPtyDtls(Intermediary40 rltdPtyDtls) {
getRltdPtyDtls().add(rltdPtyDtls);
return this;
}
/**
* Adds a new item to the srcOfCsh list.
* @see #getSrcOfCsh()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
-at)
shift
if [ $# -eq 0 ] ; then
LOG ERROR "-at requires address-type argument"
echo "$U_MSG" 1>&2
exit 1
fi
ATYPE=$1
shift
;;
-w)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// SpEL
Assert.isTrue(spelWithDefaultValue.equals("my default system property value"));
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@quiz.route('/')
def index_quiz():
return render_template('quiz/landing-page.html') | ise-uiuc/Magicoder-OSS-Instruct-75K |
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date_update', models.TimeField(auto_now_add=True)),
('title', models.CharField(blank=True, max_length=30, null=True)),
('description', models.TextField(blank=True, max_length=250, null=True)),
('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='post_pictures/post_picture')),
('comments', models.PositiveIntegerField(default=0)),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scrapy runspider ${spider_script}
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# ...
def remember(str_):
seen = set()
res = []
for i in str_:
res.append(i) if i in seen and i not in res else seen.add(i)
return res
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.AddSqliteStorage("Data Source = sqlite-updates.db");
})
.Configure(app =>
{
app.UseRouting();
app.UseEndpoints(setup =>
{
setup.MapHealthChecksUI();
});
var lifetime = app.ApplicationServices.GetRequiredService<IHostApplicationLifetime>();
lifetime.ApplicationStarted.Register(() =>
{
hostReset.Set();
});
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
| ise-uiuc/Magicoder-OSS-Instruct-75K |
include_once(FCPATH . 'assets/fpdiprotection/FPDI_Protection.php');
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dest_path='./similarity.pkl',
unzip=False)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@for ($i = 1; $i <= $secteurs->lastPage(); $i++)
<li class="{{ ($secteurs->currentPage() == $i) ? ' active' : '' }} page-item">
<a href="{{ $secteurs->url($i) }}" class="page-link">{{ $i }}</a>
</li>
@endfor
<li class="dot">....</li>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
},
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if answer2 == True:
is_correct = True
else:
is_correct = is_correct and False
commentizer("Open the site and try changing `cover` to `contain` in DevTools to see the difference.")
commentizer("Check the first one.")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The time after which the token is invalid.
claims = {'exp': token_expire_in_seconds, 'user': user}
token = jwt.encode(claims, JWT_SECRET, algorithm=JWT_SIGN_ALGORITHM)
return token
class LoginView(APIView):
def post(self, request, format=None):
data = request.data
username = data.get('username', None)
password = data.get('password', None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public void StartPlayGame()
{
var zoneScene = this.ZoneScene();
string strcmd = StringUtil.substitute("{0}", RoleID);
zoneScene.GetComponent<SessionComponent>().Session.SendString(TCPGameServerCmds.CMD_PLAY_GAME, strcmd);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
os.makedirs(path+'/data/example/'+lens_name)
image = ccd.output_ccd_data_to_fits(ccd_data=simulated_ccd,
image_path=path+'/data/example/'+lens_name+'/image.fits',
psf_path=path + '/data/example/' + lens_name + '/psf.fits',
noise_map_path=path + '/data/example/' + lens_name + '/noise_map.fits',
overwrite=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Snapshotfile: SnapshotfileProtocol {
// If you want to enable `snapshot`, run `fastlane snapshot init`
// After, this file will be replaced with a custom implementation that contains values you supplied
// during the `init` process, and you won't see this message
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use opencv::Error as OpenCVError;
pub fn compute_pose(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if parent:
self.dialog.set_transient_for(parent)
if filename:
self.dialog.set_current_name(filename)
def get_selection(self):
"""Return the selected file or files from the dialog. This is used
by the selection property."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if self.noise is not None:
array = array + self.noise * np.random.randn(*array.shape)
return array, self.unitstring
class VarianceCombined(ObservationalMethod):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# node ./build/test/deleteTestEntries
# fi | ise-uiuc/Magicoder-OSS-Instruct-75K |
rows = 4
cols = 4
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return variables
def eval(self, variables: Dict[str, int]) -> List[List[str]]:
return self.rval.eval(variables) + self.lval.eval(variables) + [[OpCodes.COMPARE, "1"]]
@classmethod
def keyword(cls) -> str:
return ">"
class LessThanExp(GreaterThanExp):
"""
Syntax: (< arg1 arg2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def generate_control_card_tab1():
""" Build a div that containing controls (button) for graphs.
Currently contains:
- Poll button to download alerts
Returns
---------
div: A Div containing controls for graphs in tab 1.
"""
return html.Div(
id="control-card",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LD[i][v] = LD[i][u] + 1;
q.push(v);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ShelfAutoHideBehavior AutoHideBehaviorFromPref(const std::string& value) {
// Note: To maintain sync compatibility with old images of chrome/chromeos
// the set of values that may be encountered includes the now-extinct
// "Default" as well as "Never" and "Always", "Default" should now
// be treated as "Never" (http://crbug.com/146773).
if (value == kShelfAutoHideBehaviorAlways)
return SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS;
return SHELF_AUTO_HIDE_BEHAVIOR_NEVER;
}
const char* AutoHideBehaviorToPref(ShelfAutoHideBehavior behavior) {
switch (behavior) {
case SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
reportPlayerSent = true;
}
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public static string GenerateAsBase64(int arraySize)
{
return Convert.ToBase64String(Generate(arraySize));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def to_alipay_dict(self):
params = dict()
if self.activity_status:
if hasattr(self.activity_status, 'to_alipay_dict'):
params['activity_status'] = self.activity_status.to_alipay_dict()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class KnowledgeBasesServicer(object):
"""Service for managing [KnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBase].
"""
def ListKnowledgeBases(self, request, context):
"""Returns the list of all knowledge bases of the specified agent.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#loop through (2d embeddings, context token) data points and plot each point
for index, e in enumerate(X_2d):
ct = contexts_present[index]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
admin.site.register(SubBreed, SubBreedAdmin) | ise-uiuc/Magicoder-OSS-Instruct-75K |
'checkpoint_tag': checkpoint_tag,
'arch_tag': arch_tag,
'datatype': datatype,
}
ut.colorprint('[netrun] * ds_tag=%r' % (ds_tag,), 'lightgray')
ut.colorprint('[netrun] * arch_tag=%r' % (arch_tag,), 'lightgray')
ut.colorprint('[netrun] * extern_ds_tag=%r' % (extern_ds_tag,), 'lightgray')
ut.colorprint('[netrun] * checkpoint_tag=%r' % (checkpoint_tag,), 'lightgray')
return requests, hyperparams, tags
| ise-uiuc/Magicoder-OSS-Instruct-75K |
torchvision.datasets.STL10(opt.data_folder, 'train+unlabeled', download=True), transform_crop, transform_others)
return torch.utils.data.DataLoader(dataset, batch_size=opt.batch_size, num_workers=opt.num_workers,
shuffle=True, pin_memory=True)
def get_rate(x):
return sum(x) / len(x) * 100
def main():
opt = parse_option()
print(f'Optimize: {opt.align_w:g} * loss_align(alpha={opt.align_alpha:g}) + {opt.unif_w:g} * loss_uniform(t={opt.unif_t:g})')
torch.cuda.set_device(opt.gpus[0])
torch.backends.cudnn.deterministic = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/python3
"""reducer.py"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if len(item) == 1:
return item[0]
else:
return tuple(item)
if self._layout is ():
# special case for scalar datasets
if self._chunk_index[0] > 0:
raise StopIteration()
self._chunk_index[0] += 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import datetime
print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 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.
# ===============================================
# Add you integration tests here
source "$(dirname $0)"/../../../test-infra/scripts/e2e-tests.sh
echo "TEST_INFRA_SCRIPTS: $TEST_INFRA_SCRIPTS"
echo "Testing hello"
cd ${REPO_ROOT_DIR}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.repository = repository;
}
public JSONArray getById(Long user_id) throws SQLException {
return repository.getById(user_id);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/usr/bin/env sh
echo "$(cat sudo.lecture)" | sudo tee /etc/sudo.lecture > /dev/null
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* The config formats supported, not null.
*/
private ConfigurationFormat configFormat;
/**
* The resource to be read, not null.
*/
private URL resource;
/**
* Creates a new instance.
*
* @param format the formas to be used, not null.
* @param resource the resource to be read, not null.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
my_logger(LOGGER_INFO, "is equivalent.\n");
break;
} else {
my_logger(LOGGER_INFO, "results in counterexample %s .\n", word2string(counterexample).c_str());
table.add_counterexample(counterexample);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return text;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
#endif
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace=valueDict['metadata']['namespace']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn main() {
f(&2);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use self::job_debug_info_read::JobDebugInfoRead;
pub mod job_debug_read;
pub use self::job_debug_read::JobDebugRead;
pub mod job_id_request_body;
pub use self::job_id_request_body::JobIdRequestBody;
pub mod job_info_read;
pub use self::job_info_read::JobInfoRead;
pub mod job_list_request_body;
pub use self::job_list_request_body::JobListRequestBody;
pub mod job_read;
pub use self::job_read::JobRead;
pub mod job_read_list;
pub use self::job_read_list::JobReadList;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
partx --show "${LOOP}"
partx --add "${LOOP}"
mkfs.ext4 -F -O ^metadata_csum,^64bit "${LOOP}p1"
mount --types ext4 "${LOOP}p1" "${ROOTFS}"
bsdtar -xpf "${NAME}.tar.gz" -C "${ROOTFS}"
cp -r "files"/* "$ROOTFS"
sync
umount "${ROOTFS}"
rmdir "${ROOTFS}"
partx --delete "${LOOP}"
losetup --detach "${LOOP}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def config_deepfool(targeted, adv_ys):
if targeted:
yname = 'y_target'
else:
yname = 'y'
deepfool_params = {yname: adv_ys,
'nb_candidate': 10,
'overshoot': 0.02,
'max_iter': 50,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
t = int(raw_input())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[derive(Clone, Debug, Deserialize)]
pub struct Issue {
pub id: u64,
pub node_id: NodeId,
pub url: String,
pub repository_url: String,
pub labels_url: String,
pub comments_url: String,
pub events_url: String,
pub html_url: String,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@abc.abstractmethod
def to_request(self) -> RequestType:
"""Get the request structure for workflow service calls."""
class DefaultEnumMeta(EnumMeta):
"""An EnumMeta which defaults to the first value in the Enum list."""
default = object()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
npt.assert_equal('$r$=1.000' in ax.texts[0].get_text(), True)
with pytest.raises(ValueError):
scatter_correlation(np.arange(10), np.arange(11))
with pytest.raises(ValueError):
scatter_correlation([1], [2])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
num = 1
items = []
while True:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
xattr -dr com.apple.quarantine ./ffmpeg
xattr -dr com.apple.quarantine ./ffprobe
java -Xmx64m -jar gifr.jar
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.springframework.stereotype.Service;
@Service
public class TeamServiceImpl implements TeamService {
@Autowired
TeamRepository teamRepository;
@Override
public Team createTeam(Team team) {
return teamRepository.save(team);
}
@Override
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo \$? > ~/test-exit-status" > cython-bench
chmod +x cython-bench
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import Crypto
/// Manages logging in and registering users.
final class UserController: PigeonController {
override func authBoot(router: Router) throws {
router.get("/login", use: handleUnauthenticatedUser)
router.post("/login", use: loginUserHandler)
router.post(User.self, at: "/register", use: registerUserHandler)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
GetImport().GetStreamForGraphicObjectURLFromBase64();
if( xBase64Stream.is() )
pContext = new XMLBase64ImportContext( GetImport(), nPrefix,
rLocalName, xAttrList,
xBase64Stream );
}
}
}
if( !pContext )
{
pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName );
}
return pContext;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// The current environment.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://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.
def split(arr, size):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
specified component of the specified topology. The start and end times
define the window over which to gather the metrics. The window duration
should be less then 3 hours as this is the limit of what the Topology
master stores.
Arguments:
topology_id (str): The topology identification string.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
paths = []
visite_node(nodes.get("start"), [])
print(len(paths))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Thread.sleep(500);
vertx.fileSystem().deleteSync(subDir.getAbsolutePath(), true);
waitReload(dep);
}
public void testReloadMultipleDeps() throws Exception {
String modName = "my-mod";
File modDir = createModDir(modName);
createModDir("other-mod");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
grunt parallel:travis --reporters dots --browsers SL_Chrome
| ise-uiuc/Magicoder-OSS-Instruct-75K |
interface Props {
children: React.ReactNode
className?: string
title?: string
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# TODO what about 400 Bad Request context and schema?
def decorator(view_method):
return ScrudfulViewFunc(
view_method,
etag_func=etag_func,
last_modified_func=last_modified_func,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>run_tests.sh
python3.6 -m pytest -x -vv --tb=long --cov=.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
imports: [
ReactiveFormsModule,
FormsModule,
MatFormFieldModule,
MatInputModule,
BrowserAnimationsModule
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import re
if not hasattr(re, '_pattern_type'):
re._pattern_type = re.Pattern
import os.path
import sys
from ygo import globals
from ygo.exceptions import LanguageError
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public DateTime UpdateTime { get; set; }
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
mrg.responseSerializer.acceptableContentTypes = NSSet(objects: "text/html", "application/json", "text/plain") as? Set<String>
mrg.GET(url, parameters: parameters, progress: { (progress) in
if let myprogress = myprogress {
myprogress(progress)
}
}, success: { (task: NSURLSessionDataTask, obj: AnyObject?) in
if let mysucceed = mysucceed {
mysucceed(task, obj)
}
}) { (task: NSURLSessionDataTask?, error: NSError) in
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (int count = 0; count <= 20; count++)
{
float C_temperature = celsius(count);
cout << count << "\t\t";
cout << fixed << showpoint << setprecision(2)
<< C_temperature << endl;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
float zy = zyInput;
float zz = zzInput;
float x;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#print "Train Progress: " + str(self.trainProgress)
if self.stopAt > 0:
# if progress exceeds stop at
if self.trainProgress >= self.stopAt:
# stop the train
self.stop()
# reset stop at so it doesn't interfere
self.delay("Zero",delay=0.5,handler=self.zero_out)
def zero_out(self):
self.stopAt = 0
self.trainProgress = 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
for page in pages:
usage = usage + len(page[quota_data["key"]])
try:
percent = round((usage / value) * 100, 2)
except ZeroDivisionError:
percent = 0
if percent >= threshold_requested:
resource_found = Resource(
digest=ResourceDigest(
id=data_quota_code["quota_code"], type="aws_limit"
),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Ok(value) => {
match db.get(&value) {
Ok(Some(data)) => {
pool.spawn(future::lazy(move |_| {
request.respond(Response::from_string(String::from_utf8(data).unwrap()));
})).unwrap();
}
Ok(None) => {
let rep = tiny_http::Response::new_empty(tiny_http::StatusCode(404));
let _ = request.respond(rep);
}
Err(_e) => {
let rep = tiny_http::Response::new_empty(tiny_http::StatusCode(500));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self, num_dims=None, max_iter=100, learning_rate=0.01):
self.num_dims = num_dims
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// finally if there was no content, just dont do anything.
(_code, None) => {}
}
Ok(0)
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
guard let hexData = hex.data(using: .ascii) else { return nil }
guard hexData.count % 2 == 0 else { return nil }
let prefix = hex.hasPrefix("0x") ? 2 : 0
let result: Data? = hexData.withUnsafeBytes { hex in
var result = Data()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
double x1,x2,y1,y2,r1,r2;
scanf("%lf %lf %lf %lf %lf %lf",&x1,&y1,&r1,&x2,&y2,&r2);
double dist = sqrt(pow(x1-x2, 2) + pow(y1-y2,2));
if(dist > r1+r2){
printf("None");
}
else if(x1 == x2 && y1 == y2 && r1 == r2){
printf("More");
}
else if(dist < r1 && dist+r2 == r1){
printf("One");
}
else if(dist < r2 && dist+r1 == r2){
printf("One");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
created: Date;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
MONGO_PORT = 27017
RABBIT_DOCKER_SERVICE = "rabbit"
RABBIT_HOST = "192.168.99.100"
RABBIT_PORT = 5672
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vec.Z += (((-1 * m_parent_scene.gravityz) * m_mass) * 0.06f);
//auto fly height. <NAME>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path('another-page/', views.another_page, name='another-page'),
path('json-endpoint/', views.json_endpoint, name='json-endpoint'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == '__main__':
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class GuessGame(Game):
name = 'Deuce to Seven - Triple Draw'
player_count = 6
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import doctest
import re
with open(os.path.join(os.path.dirname(__file__), "input.txt"), 'r') as input_file:
input_data = input_file.read().strip().split('\n')
regex_entry = re.compile(r'^([a-z ]+) bags contain (.*)\.$')
regex_bag = re.compile(r'^([0-9]+) ([a-z ]*) bags?$')
class Bag():
def __init__(self):
self.color = ""
self.direct_bags = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Make sure response is in enum list
if(in_array($resolutionRow['response'],array('DATA_MISSING','TYPOGRAPHICAL_ERROR','CONFIRMED_CORRECT','WRONG_SOURCE','OTHER'))) {
$response = $resolutionRow['response'];
}
else {
$response = '';
}
$resolutionId = $resolutionRow['res_id'];
$resStatusId = $resolutionRow['status_id'];
$username = $resolutionRow['username'];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
default=",",
show_default=True,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
len = 3;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class CameraClick(BoxLayout):
def capture(self):
'''
Function to capture the images and give them the names
according to their captured time and date.
'''
camera = self.ids['camera']
timestr = time.strftime("%Y%m%d_%H%M%S")
camera.export_to_png("IMG_{}.png".format(timestr))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
celsius = int(input('Digite a temperatura: '))
fahrenheit = (celsius / 5) * 9 + 32
Kelvin = celsius + 273
print(f'A temperatura {celsius}°C em Fahrenheit é {fahrenheit}°F')
print(f'E em Kevin fica {Kelvin} K')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.cootf.wechat.bean.BaseResult;
import com.cootf.wechat.bean.scan.crud.ProductCreate;
public class ProductGetResult extends BaseResult {
private ProductCreate productCreate;
| 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.